text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<h3 dir="auto">Feature request</h3> <p dir="auto">Whisper speech recognition without conditioning on previous text.<br> As in <a href="https://github.com/openai/whisper/blob/7858aa9c08d98f75575035ecd6481f462d66ca27/whisper/transcribe.py#L278">https://github.com/openai/whisper/blob/7858aa9c08d98f75575035ecd6481f462d66ca27/whisper/transcribe.py#L278</a></p> <h3 dir="auto">Motivation</h3> <p dir="auto">Whisper implementation is great however conditioning the decoding on previous text can cause significant hallucination and repetitive text, e.g.:</p> <blockquote> <p dir="auto">"Do you have malpractice? Do you have malpractice? Do you have malpractice? Do you have malpractice? Do you have malpractice? Do you have malpractice? Do you have malpractice? Do you have malpractice? Do you have malpractice? Do you have malpractice? Do you have malpractice? Do you have malpractice? Do you have malpractice? Do you have malpractice? Do you have malpractice? Do you have malpractice?"</p> </blockquote> <p dir="auto">Running openai's model with <code class="notranslate">--condition_on_previous_text False</code> drastically reduces hallucination</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ArthurZucker/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ArthurZucker">@ArthurZucker</a></p>
<p dir="auto">Hello,<br> I tried to import this:</p> <p dir="auto"><code class="notranslate">from transformers import AdamW, get_linear_schedule_with_warmup</code><br> but got error : model not found<br> but when i did this, it worked:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from transformers import AdamW from transformers import WarmupLinearSchedule as get_linear_schedule_with_warmup"><pre class="notranslate"><code class="notranslate">from transformers import AdamW from transformers import WarmupLinearSchedule as get_linear_schedule_with_warmup </code></pre></div> <p dir="auto">however when I set the scheduler like this :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="scheduler = get_linear_schedule_with_warmup(optimizer, num_warmup_steps=args.warmup_steps, num_training_steps=t_total) "><pre class="notranslate"><code class="notranslate">scheduler = get_linear_schedule_with_warmup(optimizer, num_warmup_steps=args.warmup_steps, num_training_steps=t_total) </code></pre></div> <p dir="auto">I got this error :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="__init__() got an unexpected keyword argument 'num_warmup_steps'"><pre class="notranslate"><code class="notranslate">__init__() got an unexpected keyword argument 'num_warmup_steps' </code></pre></div>
0
<h3 dir="auto">Bug summary</h3> <p dir="auto">I put a <code class="notranslate">torch.Tensor</code> in <code class="notranslate">matplotlib.pyplot.hist()</code> , but it draw a wrong graphic and take a long time.<br> Although transform to numpy, the function work well. But all the others function I used are work well on tensor. So I think its a bug.</p> <h3 dir="auto">Code for reproduction</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt import torch plt.hist(torch.randn(20)) plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">import</span> <span class="pl-s1">torch</span> <span class="pl-s1">plt</span>.<span class="pl-en">hist</span>(<span class="pl-s1">torch</span>.<span class="pl-en">randn</span>(<span class="pl-c1">20</span>)) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <h3 dir="auto">Actual outcome</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/45221786/184349059-7aca87cb-6a5a-4b89-9d0b-207c8604e45e.png"><img src="https://user-images.githubusercontent.com/45221786/184349059-7aca87cb-6a5a-4b89-9d0b-207c8604e45e.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Expected outcome</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/45221786/184349216-c6ed46e2-bfb3-4bd6-b03e-4fb6120a1686.png"><img src="https://user-images.githubusercontent.com/45221786/184349216-c6ed46e2-bfb3-4bd6-b03e-4fb6120a1686.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Additional information</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Operating system</h3> <p dir="auto">Windows</p> <h3 dir="auto">Matplotlib Version</h3> <p dir="auto">3.5.1</p> <h3 dir="auto">Matplotlib Backend</h3> <p dir="auto">module://ipykernel.pylab.backend_inline</p> <h3 dir="auto">Python version</h3> <p dir="auto">3.7.13</p> <h3 dir="auto">Jupyter version</h3> <p dir="auto">6.4.8</p> <h3 dir="auto">Installation</h3> <p dir="auto">conda</p>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">Generating <code class="notranslate">np.random.randn(1000)</code> values, visualizing them with <code class="notranslate">plt.hist()</code>. Works fine with Numpy.</p> <p dir="auto">When I replace Numpy with tensorflow.experimental.numpy, Matplotlib 3.3.4 fails to display the histogram correctly. Matplotlib 3.2.2 works fine.</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 import numpy as np import tensorflow as tf import tensorflow.experimental.numpy as tnp # bad image labels1 = 15 + 2 * tnp.random.randn(1000) _ = plt.hist(labels1) # good image labels2 = 15 + 2 * np.random.randn(1000) _ = plt.hist(labels2)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span> <span class="pl-k">import</span> <span class="pl-s1">tensorflow</span>.<span class="pl-s1">experimental</span>.<span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">tnp</span> <span class="pl-c"># bad image</span> <span class="pl-s1">labels1</span> <span class="pl-c1">=</span> <span class="pl-c1">15</span> <span class="pl-c1">+</span> <span class="pl-c1">2</span> <span class="pl-c1">*</span> <span class="pl-s1">tnp</span>.<span class="pl-s1">random</span>.<span class="pl-en">randn</span>(<span class="pl-c1">1000</span>) <span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">hist</span>(<span class="pl-s1">labels1</span>) <span class="pl-c"># good image</span> <span class="pl-s1">labels2</span> <span class="pl-c1">=</span> <span class="pl-c1">15</span> <span class="pl-c1">+</span> <span class="pl-c1">2</span> <span class="pl-c1">*</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randn</span>(<span class="pl-c1">1000</span>) <span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">hist</span>(<span class="pl-s1">labels2</span>)</pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/901867/109069736-7b499280-76a6-11eb-87c4-2880aaf759f5.png"><img src="https://user-images.githubusercontent.com/901867/109069736-7b499280-76a6-11eb-87c4-2880aaf759f5.png" alt="np-bad" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/901867/109069769-843a6400-76a6-11eb-9d2e-149fc615c583.png"><img src="https://user-images.githubusercontent.com/901867/109069769-843a6400-76a6-11eb-9d2e-149fc615c583.png" alt="np-good" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: Windows 10</li> <li>Matplotlib version (<code class="notranslate">import matplotlib; print(matplotlib.__version__)</code>): 3.3.4</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): module://ipykernel.pylab.backend_inline</li> <li>Python version: 3.8.7</li> <li>Jupyter version (if applicable): see below</li> <li>Other libraries: see below</li> </ul> <p dir="auto">TensorFlow 2.4.1</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="jupyter --version jupyter core : 4.7.0 jupyter-notebook : 6.1.6 qtconsole : 5.0.1 ipython : 7.20.0 ipykernel : 5.4.2 jupyter client : 6.1.7 jupyter lab : not installed nbconvert : 6.0.7 ipywidgets : 7.6.3 nbformat : 5.0.8 traitlets : 5.0.5"><pre class="notranslate"><code class="notranslate">jupyter --version jupyter core : 4.7.0 jupyter-notebook : 6.1.6 qtconsole : 5.0.1 ipython : 7.20.0 ipykernel : 5.4.2 jupyter client : 6.1.7 jupyter lab : not installed nbconvert : 6.0.7 ipywidgets : 7.6.3 nbformat : 5.0.8 traitlets : 5.0.5 </code></pre></div> <p dir="auto">Python installed from python.org as an exe installer. Everything else is <code class="notranslate">pip install --user</code></p> <p dir="auto">Bug opened with TensorFlow on this same issue:</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="781840855" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/46274" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/46274/hovercard" href="https://github.com/tensorflow/tensorflow/issues/46274">tensorflow/tensorflow#46274</a></p>
1
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.31.2]</li> <li>Operating System: [Windows VM]</li> <li>Browser: [ONLY in Chromium]</li> <li>Other info: It used to work fine until updated to v1.31 and now even if I revert back to previous versions still getting the same error (the error only happens in the Windows VM , not in my local machine, but I do not have access to that VM Windows machine)</li> </ul> <p dir="auto"><strong>Error LOG</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="2023-03-07T09:27:22.6036536Z �[31m 1) [testing Login Setup] › tests\login-setup.ts:6:5 › Login Setup �[2m────────────────────────────────�[22m�[39m 2023-03-07T09:27:22.6037617Z 2023-03-07T09:27:22.6038162Z browserType.launch: Browser closed. 2023-03-07T09:27:22.6038793Z ==================== Browser output: ==================== 2023-03-07T09:27:22.6044850Z &lt;launching&gt; C:\devops-agents\agent\_work\r65\a\Project.Web.Test.Automation\Output\node_modules\playwright-core\.local-browsers\chromium_win64_special-1050\chrome-win\chrome.exe --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --user-data-dir=C:\Users\SVC_TE~1\AppData\Local\Temp\playwright_chromiumdev_profile-uvQwhV --remote-debugging-pipe --no-startup-window 2023-03-07T09:27:22.6052457Z &lt;launched&gt; pid=9100 2023-03-07T09:27:22.6054202Z [pid=9100][err] [0307/092645.718:ERROR:main_dll_loader_win.cc(109)] Failed to load Chrome DLL from C:\devops-agents\agent\_work\r65\a\Project.Web.Test.Automation\Output\node_modules\playwright-core\.local-browsers\chromium_win64_special-1050\chrome-win\chrome.dll: The specified procedure could not be found. (0x7F) 2023-03-07T09:27:22.6056487Z =========================== logs =========================== 2023-03-07T09:27:22.6062693Z &lt;launching&gt; C:\devops-agents\agent\_work\r65\a\Project.Web.Test.Automation\Output\node_modules\playwright-core\.local-browsers\chromium_win64_special-1050\chrome-win\chrome.exe --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --user-data-dir=C:\Users\SVC_TE~1\AppData\Local\Temp\playwright_chromiumdev_profile-uvQwhV --remote-debugging-pipe --no-startup-window 2023-03-07T09:27:22.6068578Z &lt;launched&gt; pid=9100 2023-03-07T09:27:22.6070213Z [pid=9100][err] [0307/092645.718:ERROR:main_dll_loader_win.cc(109)] Failed to load Chrome DLL from C:\devops-agents\agent\_work\r65\a\Project.Web.Test.Automation\Output\node_modules\playwright-core\.local-browsers\chromium_win64_special-1050\chrome-win\chrome.dll: The specified procedure could not be found. (0x7F) 2023-03-07T09:27:22.6071990Z ============================================================"><pre class="notranslate"><span class="pl-c1">2023</span><span class="pl-c1">-</span><span class="pl-c1">03</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-kos"></span><span class="pl-c1">T09</span>:<span class="pl-c1">27</span>:<span class="pl-c1">22.6036536</span><span class="pl-v">Z</span> <span class="pl-s1">�</span><span class="pl-kos">[</span><span class="pl-c1">31</span><span class="pl-s1">m</span> <span class="pl-c1">1</span><span class="pl-kos">)</span> <span class="pl-kos">[</span><span class="pl-s1">testing</span> <span class="pl-v">Login</span> <span class="pl-v">Setup</span><span class="pl-kos">]</span> <span class="pl-s1">›</span> <span class="pl-s1">tests</span>\l<span class="pl-s1">ogin</span><span class="pl-c1">-</span><span class="pl-s1">setup</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">6</span>:<span class="pl-c1">5</span> <span class="pl-s1">›</span> <span class="pl-v">Login</span> <span class="pl-v">Setup</span> <span class="pl-s1">�</span><span class="pl-kos">[</span><span class="pl-c1">2</span><span class="pl-s1">m────────────────────────────────�</span><span class="pl-kos">[</span><span class="pl-c1">22</span><span class="pl-s1">m�</span><span class="pl-kos">[</span><span class="pl-c1">39</span><span class="pl-s1">m</span> <span class="pl-c1">2023</span><span class="pl-c1">-</span><span class="pl-c1">03</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-c1">T09</span>:<span class="pl-c1">27</span>:<span class="pl-c1">22.6037617</span><span class="pl-v">Z</span> <span class="pl-c1">2023</span><span class="pl-c1">-</span><span class="pl-c1">03</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-c1">T09</span>:<span class="pl-c1">27</span>:<span class="pl-c1">22.6038162</span><span class="pl-v">Z</span> <span class="pl-s1">browserType</span><span class="pl-kos">.</span><span class="pl-c1">launch</span>: <span class="pl-v">Browser</span> <span class="pl-s1">closed</span><span class="pl-kos">.</span> <span class="pl-c1">2023</span><span class="pl-c1">-</span><span class="pl-c1">03</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-c1">T09</span>:<span class="pl-c1">27</span>:<span class="pl-c1">22.6038793</span><span class="pl-v">Z</span> <span class="pl-c1">===</span><span class="pl-c1">=</span><span class="pl-c1">===</span><span class="pl-c1">===</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">Browser</span> <span class="pl-s1">output</span>: <span class="pl-c1">===</span><span class="pl-c1">=</span><span class="pl-c1">===</span><span class="pl-c1">=</span><span class="pl-c1">===</span><span class="pl-c1">=</span><span class="pl-c1">===</span><span class="pl-c1">=</span><span class="pl-c1">===</span><span class="pl-c1">=</span> <span class="pl-c1">2023</span><span class="pl-c1">-</span><span class="pl-c1">03</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-c1">T09</span>:<span class="pl-c1">27</span>:<span class="pl-c1">22.6044850</span><span class="pl-v">Z</span> <span class="pl-c1">&lt;</span><span class="pl-s1">launching</span><span class="pl-c1">&gt;</span> <span class="pl-v">C</span>:\d<span class="pl-s1">evops</span><span class="pl-c1">-</span><span class="pl-s1">agents</span>\a<span class="pl-s1">gent</span>\_<span class="pl-s1">work</span>\r<span class="pl-c1">65</span>\a\P<span class="pl-s1">roject</span><span class="pl-kos">.</span><span class="pl-c1">Web</span><span class="pl-kos">.</span><span class="pl-c1">Test</span><span class="pl-kos">.</span><span class="pl-c1">Automation</span>\O<span class="pl-s1">utput</span>\n<span class="pl-s1">ode_modules</span>\p<span class="pl-s1">laywright</span><span class="pl-c1">-</span><span class="pl-s1">core</span>\.<span class="pl-s1">local</span><span class="pl-c1">-</span><span class="pl-s1">browsers</span>\c<span class="pl-s1">hromium_win64_special</span><span class="pl-c1">-</span><span class="pl-c1">1050</span>\c<span class="pl-s1">hrome</span><span class="pl-c1">-</span><span class="pl-s1">win</span>\c<span class="pl-s1">hrome</span><span class="pl-kos">.</span><span class="pl-c1">exe</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">field</span><span class="pl-c1">-</span><span class="pl-s1">trial</span><span class="pl-c1">-</span><span class="pl-s1">config</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">background</span><span class="pl-c1">-</span><span class="pl-s1">networking</span> <span class="pl-c1">--</span><span class="pl-s1">enable</span><span class="pl-c1">-</span><span class="pl-s1">features</span><span class="pl-c1">=</span><span class="pl-v">NetworkService</span><span class="pl-kos">,</span><span class="pl-v">NetworkServiceInProcess</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">background</span><span class="pl-c1">-</span><span class="pl-s1">timer</span><span class="pl-c1">-</span><span class="pl-s1">throttling</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">backgrounding</span><span class="pl-c1">-</span><span class="pl-s1">occluded</span><span class="pl-c1">-</span><span class="pl-s1">windows</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">back</span><span class="pl-c1">-</span><span class="pl-s1">forward</span><span class="pl-c1">-</span><span class="pl-s1">cache</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">breakpad</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">client</span><span class="pl-c1">-</span><span class="pl-s1">side</span><span class="pl-c1">-</span><span class="pl-s1">phishing</span><span class="pl-c1">-</span><span class="pl-s1">detection</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">component</span><span class="pl-c1">-</span><span class="pl-s1">extensions</span><span class="pl-c1">-</span><span class="pl-s1">with</span><span class="pl-c1">-</span><span class="pl-s1">background</span><span class="pl-c1">-</span><span class="pl-s1">pages</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">component</span><span class="pl-c1">-</span><span class="pl-s1">update</span> <span class="pl-c1">--</span><span class="pl-s1">no</span><span class="pl-c1">-</span><span class="pl-s1">default</span><span class="pl-c1">-</span><span class="pl-s1">browser</span><span class="pl-c1">-</span><span class="pl-s1">check</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">default</span><span class="pl-c1">-</span><span class="pl-s1">apps</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">dev</span><span class="pl-c1">-</span><span class="pl-s1">shm</span><span class="pl-c1">-</span><span class="pl-s1">usage</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">extensions</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">features</span><span class="pl-c1">=</span><span class="pl-v">ImprovedCookieControls</span><span class="pl-kos">,</span><span class="pl-v">LazyFrameLoading</span><span class="pl-kos">,</span><span class="pl-v">GlobalMediaControls</span><span class="pl-kos">,</span><span class="pl-v">DestroyProfileOnBrowserClose</span><span class="pl-kos">,</span><span class="pl-v">MediaRouter</span><span class="pl-kos">,</span><span class="pl-v">DialMediaRouteProvider</span><span class="pl-kos">,</span><span class="pl-v">AcceptCHFrame</span><span class="pl-kos">,</span><span class="pl-v">AutoExpandDetailsElement</span><span class="pl-kos">,</span><span class="pl-v">CertificateTransparencyComponentUpdater</span><span class="pl-kos">,</span><span class="pl-v">AvoidUnnecessaryBeforeUnloadCheckSync</span><span class="pl-kos">,</span><span class="pl-v">Translate</span> <span class="pl-c1">--</span><span class="pl-s1">allow</span><span class="pl-c1">-</span><span class="pl-s1">pre</span><span class="pl-c1">-</span><span class="pl-s1">commit</span><span class="pl-c1">-</span><span class="pl-s1">input</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">hang</span><span class="pl-c1">-</span><span class="pl-s1">monitor</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">ipc</span><span class="pl-c1">-</span><span class="pl-s1">flooding</span><span class="pl-c1">-</span><span class="pl-s1">protection</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">popup</span><span class="pl-c1">-</span><span class="pl-s1">blocking</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">prompt</span><span class="pl-c1">-</span><span class="pl-s1">on</span><span class="pl-c1">-</span><span class="pl-s1">repost</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">renderer</span><span class="pl-c1">-</span><span class="pl-s1">backgrounding</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">sync</span> <span class="pl-c1">--</span><span class="pl-s1">force</span><span class="pl-c1">-</span><span class="pl-s1">color</span><span class="pl-c1">-</span><span class="pl-s1">profile</span><span class="pl-c1">=</span><span class="pl-s1">srgb</span> <span class="pl-c1">--</span><span class="pl-s1">metrics</span><span class="pl-c1">-</span><span class="pl-s1">recording</span><span class="pl-c1">-</span><span class="pl-s1">only</span> <span class="pl-c1">--</span><span class="pl-s1">no</span><span class="pl-c1">-</span><span class="pl-s1">first</span><span class="pl-c1">-</span><span class="pl-s1">run</span> <span class="pl-c1">--</span><span class="pl-s1">enable</span><span class="pl-c1">-</span><span class="pl-s1">automation</span> <span class="pl-c1">--</span><span class="pl-s1">password</span><span class="pl-c1">-</span><span class="pl-s1">store</span><span class="pl-c1">=</span><span class="pl-s1">basic</span> <span class="pl-c1">--</span><span class="pl-s1">use</span><span class="pl-c1">-</span><span class="pl-s1">mock</span><span class="pl-c1">-</span><span class="pl-s1">keychain</span> <span class="pl-c1">--</span><span class="pl-s1">no</span><span class="pl-c1">-</span><span class="pl-s1">service</span><span class="pl-c1">-</span><span class="pl-s1">autorun</span> <span class="pl-c1">--</span><span class="pl-s1">export</span><span class="pl-c1">-</span><span class="pl-s1">tagged</span><span class="pl-c1">-</span><span class="pl-s1">pdf</span> <span class="pl-c1">--</span><span class="pl-s1">headless</span> <span class="pl-c1">--</span><span class="pl-s1">hide</span><span class="pl-c1">-</span><span class="pl-s1">scrollbars</span> <span class="pl-c1">--</span><span class="pl-s1">mute</span><span class="pl-c1">-</span><span class="pl-s1">audio</span> <span class="pl-c1">--</span><span class="pl-s1">blink</span><span class="pl-c1">-</span><span class="pl-s1">settings</span><span class="pl-c1">=</span><span class="pl-s1">primaryHoverType</span><span class="pl-c1">=</span><span class="pl-c1">2</span><span class="pl-kos">,</span><span class="pl-s1">availableHoverTypes</span><span class="pl-c1">=</span><span class="pl-c1">2</span><span class="pl-kos">,</span><span class="pl-s1">primaryPointerType</span><span class="pl-c1">=</span><span class="pl-c1">4</span><span class="pl-kos">,</span><span class="pl-s1">availablePointerTypes</span><span class="pl-c1">=</span><span class="pl-c1">4</span> <span class="pl-c1">--</span><span class="pl-s1">no</span><span class="pl-c1">-</span><span class="pl-s1">sandbox</span> <span class="pl-c1">--</span><span class="pl-s1">user</span><span class="pl-c1">-</span><span class="pl-s1">data</span><span class="pl-c1">-</span><span class="pl-s1">dir</span><span class="pl-c1">=</span><span class="pl-v">C</span>:\U<span class="pl-s1">sers</span>\S<span class="pl-c1">VC_TE</span><span class="pl-c1">~</span><span class="pl-c1">1</span>\A<span class="pl-s1">ppData</span>\L<span class="pl-s1">ocal</span>\T<span class="pl-s1">emp</span>\p<span class="pl-s1">laywright_chromiumdev_profile</span><span class="pl-c1">-</span><span class="pl-s1">uvQwhV</span> <span class="pl-c1">--</span><span class="pl-s1">remote</span><span class="pl-c1">-</span><span class="pl-s1">debugging</span><span class="pl-c1">-</span><span class="pl-s1">pipe</span> <span class="pl-c1">--</span><span class="pl-s1">no</span><span class="pl-c1">-</span><span class="pl-s1">startup</span><span class="pl-c1">-</span><span class="pl-smi">window</span> <span class="pl-c1">2023</span><span class="pl-c1">-</span><span class="pl-c1">03</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-c1">T09</span>:<span class="pl-c1">27</span>:<span class="pl-c1">22.6052457</span><span class="pl-v">Z</span> <span class="pl-c1">&lt;</span><span class="pl-s1">launched</span><span class="pl-c1">&gt;</span> <span class="pl-s1">pid</span><span class="pl-c1">=</span><span class="pl-c1">9100</span> <span class="pl-c1">2023</span><span class="pl-c1">-</span><span class="pl-c1">03</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-c1">T09</span>:<span class="pl-c1">27</span>:<span class="pl-c1">22.6054202</span><span class="pl-v">Z</span> <span class="pl-kos">[</span><span class="pl-s1">pid</span><span class="pl-c1">=</span><span class="pl-c1">9100</span><span class="pl-kos">]</span><span class="pl-kos">[</span><span class="pl-s1">err</span><span class="pl-kos">]</span> <span class="pl-kos">[</span><span class="pl-c1">0307</span><span class="pl-c1">/</span><span class="pl-c1">092645.718</span>:<span class="pl-c1">ERROR</span>:<span class="pl-s1">main_dll_loader_win</span><span class="pl-kos">.</span><span class="pl-en">cc</span><span class="pl-kos">(</span><span class="pl-c1">109</span><span class="pl-kos">)</span><span class="pl-kos">]</span> <span class="pl-v">Failed</span> <span class="pl-s1">to</span> <span class="pl-s1">load</span> <span class="pl-v">Chrome</span> <span class="pl-c1">DLL</span> <span class="pl-k">from</span> <span class="pl-v">C</span>:\d<span class="pl-s1">evops</span><span class="pl-c1">-</span><span class="pl-s1">agents</span>\a<span class="pl-s1">gent</span>\_<span class="pl-s1">work</span>\r<span class="pl-c1">65</span>\a\P<span class="pl-s1">roject</span><span class="pl-kos">.</span><span class="pl-c1">Web</span><span class="pl-kos">.</span><span class="pl-c1">Test</span><span class="pl-kos">.</span><span class="pl-c1">Automation</span>\O<span class="pl-s1">utput</span>\n<span class="pl-s1">ode_modules</span>\p<span class="pl-s1">laywright</span><span class="pl-c1">-</span><span class="pl-s1">core</span>\.<span class="pl-s1">local</span><span class="pl-c1">-</span><span class="pl-s1">browsers</span>\c<span class="pl-s1">hromium_win64_special</span><span class="pl-c1">-</span><span class="pl-c1">1050</span>\c<span class="pl-s1">hrome</span><span class="pl-c1">-</span><span class="pl-s1">win</span>\c<span class="pl-s1">hrome</span><span class="pl-kos">.</span><span class="pl-c1">dll</span>: <span class="pl-v">The</span> <span class="pl-s1">specified</span> <span class="pl-s1">procedure</span> <span class="pl-s1">could</span> <span class="pl-s1">not</span> <span class="pl-s1">be</span> <span class="pl-s1">found</span><span class="pl-kos">.</span><span class="pl-en"></span> <span class="pl-kos">(</span><span class="pl-c1">0x7F</span><span class="pl-kos">)</span> <span class="pl-c1">2023</span><span class="pl-c1">-</span><span class="pl-c1">03</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-c1">T09</span>:<span class="pl-c1">27</span>:<span class="pl-c1">22.6056487</span><span class="pl-v">Z</span> <span class="pl-c1">===</span><span class="pl-c1">=</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">==</span> <span class="pl-s1">logs</span> <span class="pl-c1">===</span><span class="pl-c1">=</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">==</span> <span class="pl-c1">2023</span><span class="pl-c1">-</span><span class="pl-c1">03</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-c1">T09</span>:<span class="pl-c1">27</span>:<span class="pl-c1">22.6062693</span><span class="pl-v">Z</span> <span class="pl-c1">&lt;</span><span class="pl-s1">launching</span><span class="pl-c1">&gt;</span> <span class="pl-v">C</span>:\d<span class="pl-s1">evops</span><span class="pl-c1">-</span><span class="pl-s1">agents</span>\a<span class="pl-s1">gent</span>\_<span class="pl-s1">work</span>\r<span class="pl-c1">65</span>\a\P<span class="pl-s1">roject</span><span class="pl-kos">.</span><span class="pl-c1">Web</span><span class="pl-kos">.</span><span class="pl-c1">Test</span><span class="pl-kos">.</span><span class="pl-c1">Automation</span>\O<span class="pl-s1">utput</span>\n<span class="pl-s1">ode_modules</span>\p<span class="pl-s1">laywright</span><span class="pl-c1">-</span><span class="pl-s1">core</span>\.<span class="pl-s1">local</span><span class="pl-c1">-</span><span class="pl-s1">browsers</span>\c<span class="pl-s1">hromium_win64_special</span><span class="pl-c1">-</span><span class="pl-c1">1050</span>\c<span class="pl-s1">hrome</span><span class="pl-c1">-</span><span class="pl-s1">win</span>\c<span class="pl-s1">hrome</span><span class="pl-kos">.</span><span class="pl-c1">exe</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">field</span><span class="pl-c1">-</span><span class="pl-s1">trial</span><span class="pl-c1">-</span><span class="pl-s1">config</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">background</span><span class="pl-c1">-</span><span class="pl-s1">networking</span> <span class="pl-c1">--</span><span class="pl-s1">enable</span><span class="pl-c1">-</span><span class="pl-s1">features</span><span class="pl-c1">=</span><span class="pl-v">NetworkService</span><span class="pl-kos">,</span><span class="pl-v">NetworkServiceInProcess</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">background</span><span class="pl-c1">-</span><span class="pl-s1">timer</span><span class="pl-c1">-</span><span class="pl-s1">throttling</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">backgrounding</span><span class="pl-c1">-</span><span class="pl-s1">occluded</span><span class="pl-c1">-</span><span class="pl-s1">windows</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">back</span><span class="pl-c1">-</span><span class="pl-s1">forward</span><span class="pl-c1">-</span><span class="pl-s1">cache</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">breakpad</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">client</span><span class="pl-c1">-</span><span class="pl-s1">side</span><span class="pl-c1">-</span><span class="pl-s1">phishing</span><span class="pl-c1">-</span><span class="pl-s1">detection</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">component</span><span class="pl-c1">-</span><span class="pl-s1">extensions</span><span class="pl-c1">-</span><span class="pl-s1">with</span><span class="pl-c1">-</span><span class="pl-s1">background</span><span class="pl-c1">-</span><span class="pl-s1">pages</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">component</span><span class="pl-c1">-</span><span class="pl-s1">update</span> <span class="pl-c1">--</span><span class="pl-s1">no</span><span class="pl-c1">-</span><span class="pl-s1">default</span><span class="pl-c1">-</span><span class="pl-s1">browser</span><span class="pl-c1">-</span><span class="pl-s1">check</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">default</span><span class="pl-c1">-</span><span class="pl-s1">apps</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">dev</span><span class="pl-c1">-</span><span class="pl-s1">shm</span><span class="pl-c1">-</span><span class="pl-s1">usage</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">extensions</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">features</span><span class="pl-c1">=</span><span class="pl-v">ImprovedCookieControls</span><span class="pl-kos">,</span><span class="pl-v">LazyFrameLoading</span><span class="pl-kos">,</span><span class="pl-v">GlobalMediaControls</span><span class="pl-kos">,</span><span class="pl-v">DestroyProfileOnBrowserClose</span><span class="pl-kos">,</span><span class="pl-v">MediaRouter</span><span class="pl-kos">,</span><span class="pl-v">DialMediaRouteProvider</span><span class="pl-kos">,</span><span class="pl-v">AcceptCHFrame</span><span class="pl-kos">,</span><span class="pl-v">AutoExpandDetailsElement</span><span class="pl-kos">,</span><span class="pl-v">CertificateTransparencyComponentUpdater</span><span class="pl-kos">,</span><span class="pl-v">AvoidUnnecessaryBeforeUnloadCheckSync</span><span class="pl-kos">,</span><span class="pl-v">Translate</span> <span class="pl-c1">--</span><span class="pl-s1">allow</span><span class="pl-c1">-</span><span class="pl-s1">pre</span><span class="pl-c1">-</span><span class="pl-s1">commit</span><span class="pl-c1">-</span><span class="pl-s1">input</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">hang</span><span class="pl-c1">-</span><span class="pl-s1">monitor</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">ipc</span><span class="pl-c1">-</span><span class="pl-s1">flooding</span><span class="pl-c1">-</span><span class="pl-s1">protection</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">popup</span><span class="pl-c1">-</span><span class="pl-s1">blocking</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">prompt</span><span class="pl-c1">-</span><span class="pl-s1">on</span><span class="pl-c1">-</span><span class="pl-s1">repost</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">renderer</span><span class="pl-c1">-</span><span class="pl-s1">backgrounding</span> <span class="pl-c1">--</span><span class="pl-s1">disable</span><span class="pl-c1">-</span><span class="pl-s1">sync</span> <span class="pl-c1">--</span><span class="pl-s1">force</span><span class="pl-c1">-</span><span class="pl-s1">color</span><span class="pl-c1">-</span><span class="pl-s1">profile</span><span class="pl-c1">=</span><span class="pl-s1">srgb</span> <span class="pl-c1">--</span><span class="pl-s1">metrics</span><span class="pl-c1">-</span><span class="pl-s1">recording</span><span class="pl-c1">-</span><span class="pl-s1">only</span> <span class="pl-c1">--</span><span class="pl-s1">no</span><span class="pl-c1">-</span><span class="pl-s1">first</span><span class="pl-c1">-</span><span class="pl-s1">run</span> <span class="pl-c1">--</span><span class="pl-s1">enable</span><span class="pl-c1">-</span><span class="pl-s1">automation</span> <span class="pl-c1">--</span><span class="pl-s1">password</span><span class="pl-c1">-</span><span class="pl-s1">store</span><span class="pl-c1">=</span><span class="pl-s1">basic</span> <span class="pl-c1">--</span><span class="pl-s1">use</span><span class="pl-c1">-</span><span class="pl-s1">mock</span><span class="pl-c1">-</span><span class="pl-s1">keychain</span> <span class="pl-c1">--</span><span class="pl-s1">no</span><span class="pl-c1">-</span><span class="pl-s1">service</span><span class="pl-c1">-</span><span class="pl-s1">autorun</span> <span class="pl-c1">--</span><span class="pl-s1">export</span><span class="pl-c1">-</span><span class="pl-s1">tagged</span><span class="pl-c1">-</span><span class="pl-s1">pdf</span> <span class="pl-c1">--</span><span class="pl-s1">headless</span> <span class="pl-c1">--</span><span class="pl-s1">hide</span><span class="pl-c1">-</span><span class="pl-s1">scrollbars</span> <span class="pl-c1">--</span><span class="pl-s1">mute</span><span class="pl-c1">-</span><span class="pl-s1">audio</span> <span class="pl-c1">--</span><span class="pl-s1">blink</span><span class="pl-c1">-</span><span class="pl-s1">settings</span><span class="pl-c1">=</span><span class="pl-s1">primaryHoverType</span><span class="pl-c1">=</span><span class="pl-c1">2</span><span class="pl-kos">,</span><span class="pl-s1">availableHoverTypes</span><span class="pl-c1">=</span><span class="pl-c1">2</span><span class="pl-kos">,</span><span class="pl-s1">primaryPointerType</span><span class="pl-c1">=</span><span class="pl-c1">4</span><span class="pl-kos">,</span><span class="pl-s1">availablePointerTypes</span><span class="pl-c1">=</span><span class="pl-c1">4</span> <span class="pl-c1">--</span><span class="pl-s1">no</span><span class="pl-c1">-</span><span class="pl-s1">sandbox</span> <span class="pl-c1">--</span><span class="pl-s1">user</span><span class="pl-c1">-</span><span class="pl-s1">data</span><span class="pl-c1">-</span><span class="pl-s1">dir</span><span class="pl-c1">=</span><span class="pl-v">C</span>:\U<span class="pl-s1">sers</span>\S<span class="pl-c1">VC_TE</span><span class="pl-c1">~</span><span class="pl-c1">1</span>\A<span class="pl-s1">ppData</span>\L<span class="pl-s1">ocal</span>\T<span class="pl-s1">emp</span>\p<span class="pl-s1">laywright_chromiumdev_profile</span><span class="pl-c1">-</span><span class="pl-s1">uvQwhV</span> <span class="pl-c1">--</span><span class="pl-s1">remote</span><span class="pl-c1">-</span><span class="pl-s1">debugging</span><span class="pl-c1">-</span><span class="pl-s1">pipe</span> <span class="pl-c1">--</span><span class="pl-s1">no</span><span class="pl-c1">-</span><span class="pl-s1">startup</span><span class="pl-c1">-</span><span class="pl-smi">window</span> <span class="pl-c1">2023</span><span class="pl-c1">-</span><span class="pl-c1">03</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-c1">T09</span>:<span class="pl-c1">27</span>:<span class="pl-c1">22.6068578</span><span class="pl-v">Z</span> <span class="pl-c1">&lt;</span><span class="pl-s1">launched</span><span class="pl-c1">&gt;</span> <span class="pl-s1">pid</span><span class="pl-c1">=</span><span class="pl-c1">9100</span> <span class="pl-c1">2023</span><span class="pl-c1">-</span><span class="pl-c1">03</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-c1">T09</span>:<span class="pl-c1">27</span>:<span class="pl-c1">22.6070213</span><span class="pl-v">Z</span> <span class="pl-kos">[</span><span class="pl-s1">pid</span><span class="pl-c1">=</span><span class="pl-c1">9100</span><span class="pl-kos">]</span><span class="pl-kos">[</span><span class="pl-s1">err</span><span class="pl-kos">]</span> <span class="pl-kos">[</span><span class="pl-c1">0307</span><span class="pl-c1">/</span><span class="pl-c1">092645.718</span>:<span class="pl-c1">ERROR</span>:<span class="pl-s1">main_dll_loader_win</span><span class="pl-kos">.</span><span class="pl-en">cc</span><span class="pl-kos">(</span><span class="pl-c1">109</span><span class="pl-kos">)</span><span class="pl-kos">]</span> <span class="pl-v">Failed</span> <span class="pl-s1">to</span> <span class="pl-s1">load</span> <span class="pl-v">Chrome</span> <span class="pl-c1">DLL</span> <span class="pl-k">from</span> <span class="pl-v">C</span>:\d<span class="pl-s1">evops</span><span class="pl-c1">-</span><span class="pl-s1">agents</span>\a<span class="pl-s1">gent</span>\_<span class="pl-s1">work</span>\r<span class="pl-c1">65</span>\a\P<span class="pl-s1">roject</span><span class="pl-kos">.</span><span class="pl-c1">Web</span><span class="pl-kos">.</span><span class="pl-c1">Test</span><span class="pl-kos">.</span><span class="pl-c1">Automation</span>\O<span class="pl-s1">utput</span>\n<span class="pl-s1">ode_modules</span>\p<span class="pl-s1">laywright</span><span class="pl-c1">-</span><span class="pl-s1">core</span>\.<span class="pl-s1">local</span><span class="pl-c1">-</span><span class="pl-s1">browsers</span>\c<span class="pl-s1">hromium_win64_special</span><span class="pl-c1">-</span><span class="pl-c1">1050</span>\c<span class="pl-s1">hrome</span><span class="pl-c1">-</span><span class="pl-s1">win</span>\c<span class="pl-s1">hrome</span><span class="pl-kos">.</span><span class="pl-c1">dll</span>: <span class="pl-v">The</span> <span class="pl-s1">specified</span> <span class="pl-s1">procedure</span> <span class="pl-s1">could</span> <span class="pl-s1">not</span> <span class="pl-s1">be</span> <span class="pl-s1">found</span><span class="pl-kos">.</span><span class="pl-en"></span> <span class="pl-kos">(</span><span class="pl-c1">0x7F</span><span class="pl-kos">)</span> <span class="pl-c1">2023</span><span class="pl-c1">-</span><span class="pl-c1">03</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-c1">T09</span>:<span class="pl-c1">27</span>:<span class="pl-c1">22.6071990</span><span class="pl-v">Z</span> <span class="pl-c1">===</span><span class="pl-c1">=</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">==</span></pre></div> <p dir="auto"><strong>Test file</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { test as setup } from '@playwright/test'; setup('Login Setup', async ({ page }) =&gt; { await this.page.goto('URL'); });"><pre class="notranslate"><code class="notranslate">import { test as setup } from '@playwright/test'; setup('Login Setup', async ({ page }) =&gt; { await this.page.goto('URL'); }); </code></pre></div> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>run: "npm set PLAYWRIGHT_BROWSERS_PATH=0&amp;&amp; playwright install"</li> <li>runL "npm set PLAYWRIGHT_BROWSERS_PATH=0&amp;&amp; playwright test"</li> </ul> <p dir="auto"><strong>Expected</strong><br> It used to work fine until updated to v1.31 and now even if I revert back to previous versions still getting the same error (the error only happens in the Windows VM , not in my local machine, but I do not have access to that VM Windows machine)</p> <p dir="auto"><strong>Actual</strong><br> As you can see in the LOG error, the browser cannot even be executed now.</p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: v1.32.2</li> <li>Operating System: Windows 11</li> <li>Browser: All</li> <li>Node.js 18.12.0</li> <li>PowerShell 7.3.3</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p> <p dir="auto"><a href="https://github.com/tadashi-aikawa/nuxt2-vuetify2-playwright-sandbox.git">https://github.com/tadashi-aikawa/nuxt2-vuetify2-playwright-sandbox.git</a></p> <p dir="auto"><strong>Steps</strong></p> <h4 dir="auto">1. Clone the repository and run the application</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="git clone https://github.com/tadashi-aikawa/nuxt2-vuetify2-playwright-sandbox.git cd nuxt2-vuetify2-playwright-sandbox git checkout 413de5f02e7affb8f301396929ca383dc967696e npm install npm run dev"><pre class="notranslate"><code class="notranslate">git clone https://github.com/tadashi-aikawa/nuxt2-vuetify2-playwright-sandbox.git cd nuxt2-vuetify2-playwright-sandbox git checkout 413de5f02e7affb8f301396929ca383dc967696e npm install npm run dev </code></pre></div> <h4 dir="auto">2. Open the playwright GUI mode in another shell process</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cd nuxt2-vuetify2-playwright-sandbox npx playwright test --ui"><pre class="notranslate"><code class="notranslate">cd nuxt2-vuetify2-playwright-sandbox npx playwright test --ui </code></pre></div> <h4 dir="auto">3. Run all tests</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9500018/230776850-6bddb592-22cc-4c39-bc20-54cc0d038784.png"><img src="https://user-images.githubusercontent.com/9500018/230776850-6bddb592-22cc-4c39-bc20-54cc0d038784.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">Success all tests.</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">Some tests fail as follows.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9500018/230776860-dea31128-a1c0-49ed-bc9f-495b42f9fa60.png"><img src="https://user-images.githubusercontent.com/9500018/230776860-dea31128-a1c0-49ed-bc9f-495b42f9fa60.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">The terminal that runs "npm run dev" shows errors.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="node:events:491 throw er; // Unhandled 'error' event ^ Error: EPERM: operation not permitted, stat 'C:\Users\syoum\tmp\nuxt2-vuetify2-playwright-sandbox\test-results\.playwright-artifacts-1\1a98587cb1640f43c20527b24baacb89.zip' Emitted 'error' event on FSWatcher instance at: at FSWatcher.emitWithAll (C:\Users\syoum\tmp\nuxt2-vuetify2-playwright-sandbox\node_modules\chokidar\index.js:540:8) at awfEmit (C:\Users\syoum\tmp\nuxt2-vuetify2-playwright-sandbox\node_modules\chokidar\index.js:599:14) at C:\Users\syoum\tmp\nuxt2-vuetify2-playwright-sandbox\node_modules\chokidar\index.js:714:43 at FSReqCallback.oncomplete (node:fs:207:21) { errno: -4048, code: 'EPERM', syscall: 'stat', path: 'C:\\Users\\syoum\\tmp\\nuxt2-vuetify2-playwright-sandbox\\test-results\\.playwright-artifacts-1\\1a98587cb1640f43c20527b24baacb89.zip' } Node.js v18.12.0"><pre class="notranslate"><code class="notranslate">node:events:491 throw er; // Unhandled 'error' event ^ Error: EPERM: operation not permitted, stat 'C:\Users\syoum\tmp\nuxt2-vuetify2-playwright-sandbox\test-results\.playwright-artifacts-1\1a98587cb1640f43c20527b24baacb89.zip' Emitted 'error' event on FSWatcher instance at: at FSWatcher.emitWithAll (C:\Users\syoum\tmp\nuxt2-vuetify2-playwright-sandbox\node_modules\chokidar\index.js:540:8) at awfEmit (C:\Users\syoum\tmp\nuxt2-vuetify2-playwright-sandbox\node_modules\chokidar\index.js:599:14) at C:\Users\syoum\tmp\nuxt2-vuetify2-playwright-sandbox\node_modules\chokidar\index.js:714:43 at FSReqCallback.oncomplete (node:fs:207:21) { errno: -4048, code: 'EPERM', syscall: 'stat', path: 'C:\\Users\\syoum\\tmp\\nuxt2-vuetify2-playwright-sandbox\\test-results\\.playwright-artifacts-1\\1a98587cb1640f43c20527b24baacb89.zip' } Node.js v18.12.0 </code></pre></div> <h3 dir="auto">Remarks</h3> <ul dir="auto"> <li>Without UI mode, it is always a success (<code class="notranslate">npx playwright test</code>)</li> <li>It occurs even if set <code class="notranslate">1</code> to <code class="notranslate">workers</code></li> <li>I confirmed that I could create <code class="notranslate">C:\Users\syoum\tmp\nuxt2-vuetify2-playwright-sandbox\test-results\.playwright-artifacts-1\1a98587cb1640f43c20527b24baacb89.zip</code> manually</li> <li>It occurs even if I run them as an administrator</li> <li>It occurs even if I select firefox or webkit instead of chromium</li> </ul> <p dir="auto">Please let me know if any information is missing.</p> <p dir="auto">Best regards.</p> <p dir="auto">P.S. The new feature, UI mode, is very awesome!! It looks like as a cool IDE to e2e test! <g-emoji class="g-emoji" alias="smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f604.png">😄</g-emoji></p>
0
<p dir="auto"><a href="https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/container_bridge.go#L122-L143">https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/container_bridge.go#L122-L143</a><br> container_bridge.go assumes that the virtual IP of services &amp; pods will be in the <code class="notranslate">10.</code> space.<br> I propose there is no reason to make this assumption.</p> <p dir="auto">As outlined in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="112308768" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/15932" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/15932/hovercard" href="https://github.com/kubernetes/kubernetes/issues/15932">#15932</a>, cluster admins may need to deploy to hosts in which <code class="notranslate">10.</code> is reserved for the nodes. In such a case, Kubelets must support an alternative range.</p>
<p dir="auto">Today kubelet sets up an iptables MASQUERADE rule for any traffic destined for anything except 10.0.0.0/8. This is close, but not even correct on GCE, and certainly not right elsewhere.</p> <p dir="auto">First GCE. We probably want something like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="iptables -t nat -N KUBE-IPMASQ iptables -t nat -A KUBE-IPMASQ -d 10.0.0.0/8 -j RETURN iptables -t nat -A KUBE-IPMASQ -d 172.16.0.0/12 -j RETURN iptables -t nat -A KUBE-IPMASQ -d 192.168.0.0/16 -j RETURN iptables -t nat -A KUBE-IPMASQ -j MASQUERADE iptables -t nat -I POSTROUTING -j KUBE-IPMASQ"><pre class="notranslate"><code class="notranslate">iptables -t nat -N KUBE-IPMASQ iptables -t nat -A KUBE-IPMASQ -d 10.0.0.0/8 -j RETURN iptables -t nat -A KUBE-IPMASQ -d 172.16.0.0/12 -j RETURN iptables -t nat -A KUBE-IPMASQ -d 192.168.0.0/16 -j RETURN iptables -t nat -A KUBE-IPMASQ -j MASQUERADE iptables -t nat -I POSTROUTING -j KUBE-IPMASQ </code></pre></div> <p dir="auto">This catches all traffic to RFC1918 ranges and masquerades it. We can probably optimize with CONNMARK or something so we only consider packets from containers. This is probably still imperfect, but better, for lack of project-wide NAT for egress.</p> <p dir="auto">For other environments, we really have no idea what the correct policy for this is. It is closer to "your nodes must handle this" than "we can handle this for you". It's debatable whether we should even try.</p> <p dir="auto">Either:<br> a) We teach kubelet a lot more and let people pass flags to nearly=arbitrarily configure this<br> b) We tell people to configure this as part of their node setup</p> <p dir="auto">This popped up when I realized GKE allows users to set up 172.* clusters - any traffic between containers in one of these will get masqueraded - not correct behavior!! This is not a huge deal right now because kube-proxy has the same effect when traversing services. As we fix kube-proxy in the wake of 1.0, masquerade will be a bigger deal, especially for micro-segmenting.</p> <p dir="auto">Additional considerations: VPNs have bizarre and very custom needs. Every such thing has an as yet unmeasured perf implication. This also pops up in our GCE firewall thing that <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ArtfulCoder/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ArtfulCoder">@ArtfulCoder</a> is working on.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dchen1107/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dchen1107">@dchen1107</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alex-mohr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alex-mohr">@alex-mohr</a></p>
1
<p dir="auto">.valid would apply the normal ("successful") input/textarea/select styles when applied to those input types while within a .control-group.error.</p> <p dir="auto">The use case for this is a .control-group section with a "multi-part" input (ex: time entry with hour and minute fields). If minutes was valid, but hour was not the .control-group should still have .error applied.</p> <p dir="auto">This would give users a more obvious indication of what was left to fix--since only input/textarea/select's without the .valid class would be marked in the .error styles.</p> <p dir="auto">.valid could inherit direction form the default input/textarea/select styles.</p>
<p dir="auto">It would be useful to provide column push and pull classes for all three different grids.</p> <p dir="auto">This means that <code class="notranslate">.col-push-*</code> and <code class="notranslate">.col-pull-*</code> only affect the mobile grid and are joined by <code class="notranslate">.col-push-sm-*</code>, <code class="notranslate">.col-pull-sm-*</code> and <code class="notranslate">.col-push-lg-*</code>, <code class="notranslate">.col-pull-lg-*</code> to control the column order differently depending on the grid in use.</p> <p dir="auto">Summary: Allow for different column reordering in different grids.</p>
0
<h3 dir="auto">Is there an existing issue for this?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li> </ul> <h3 dir="auto">This issue exists in the latest npm version</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I am using the latest npm</li> </ul> <h3 dir="auto">Current Behavior</h3> <p dir="auto">Currently, my package.json specifies <code class="notranslate">"typescript": "^5.0.2"</code>. When I change it to say <code class="notranslate">"typescript": "^5.0.3"</code>, npm 9 spins for 4:28 before deciding it doesn't exist. For comparison, npm 8 installs it with no problem in 0:44.</p> <p dir="auto">Ironically, I can't upgrade npm to 9.6 due to this issue: npm 9.5.1 times out when I run <code class="notranslate">npm i -g npm</code>.</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">npm 9 should be able to locate and download these versions with similar performance to npm 8.</p> <h3 dir="auto">Steps To Reproduce</h3> <ol dir="auto"> <li>Have a project with a v2 lockfile and TypeScript 5.0.2</li> <li>Install node 18.16.0 with npm 9.5.1</li> <li>Update the package.json to request TypeScript 5.0.3 or newer</li> <li>Run <code class="notranslate">npm i</code></li> </ol> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>npm: 9.5.1</li> <li>Node.js: 18.16.0</li> <li>OS Name: Windows 10</li> <li>System Model Name: Maingear Vector 2</li> <li>npm config:</li> </ul> <div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="; &quot;user&quot; config from C:\Users\bbrk2\.npmrc //registry.npmjs.org/:_authToken = (protected) ; node bin location = C:\Users\bbrk2\.nvm\versions\node\v18.16.0\bin\node.exe ; node version = v18.16.0 ; npm local prefix = C:\Users\bbrk2\[REDACTED] ; npm version = 9.5.1 ; cwd = C:\Users\bbrk2\[REDACTED] ; HOME = C:\Users\bbrk2 ; Run `npm config ls -l` to show all defaults."><pre class="notranslate"><span class="pl-c"><span class="pl-c">;</span> "user" config from C:\Users\bbrk2\.npmrc</span> //registry.npmjs.org/:<span class="pl-k">_authToken</span> = (protected) <span class="pl-c"><span class="pl-c">;</span> node bin location = C:\Users\bbrk2\.nvm\versions\node\v18.16.0\bin\node.exe</span> <span class="pl-c"><span class="pl-c">;</span> node version = v18.16.0</span> <span class="pl-c"><span class="pl-c">;</span> npm local prefix = C:\Users\bbrk2\[REDACTED]</span> <span class="pl-c"><span class="pl-c">;</span> npm version = 9.5.1</span> <span class="pl-c"><span class="pl-c">;</span> cwd = C:\Users\bbrk2\[REDACTED]</span> <span class="pl-c"><span class="pl-c">;</span> HOME = C:\Users\bbrk2</span> <span class="pl-c"><span class="pl-c">;</span> Run `npm config ls -l` to show all defaults.</span></pre></div>
<h3 dir="auto">Is there an existing issue for this?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li> </ul> <h3 dir="auto">This issue exists in the latest npm version</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I am using the latest npm</li> </ul> <h3 dir="auto">Current Behavior</h3> <p dir="auto">When running <code class="notranslate">npm install</code> it will sometimes hang at a random point. When it does this, it is stuck forever. CTRL+C will do nothing the first time that combination is pressed when this has occurred. Pressing that key combination the second time will make the current line (the one showing the little progress bar) disappear but that's it. No further responses to that key combination are observed.</p> <p dir="auto">The CMD (or Powershell) window cannot be closed regardless. The process cannot be killed by Task Manager either (Access Denied, although I'm an Administrator user so I'd assume the real reason is something non-permissions related). The only way I have found to close it is to reboot the machine.</p> <p dir="auto">My suspicion is it's some sort of deadlock, but this is a guess and I have no idea how to further investigate this. I've tried using Process Explorer to check for handles to files in the project directory from other processes but there are none. There are handles held by the Node process npm is using, and one for the CMD window hosting it, but that's it.</p> <p dir="auto">Even running with <code class="notranslate">log-level silly</code> yields no useful information. When it freezes there are no warnings or errors, it just sits on the line it was on. This is some log output from one of the times when it got stuck (I should again emphasise that the point where it gets stuck seems to be random, so the last line shown here isn't always the one it freezes on):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm timing auditReport:init Completed in 49242ms npm timing reify:audit Completed in 55729ms npm timing reifyNode:node_modules/selenium-webdriver Completed in 54728ms npm timing reifyNode:node_modules/regenerate-unicode-properties Completed in 55637ms npm timing reifyNode:node_modules/ajv-formats/node_modules/ajv Completed in 56497ms npm timing reifyNode:node_modules/@angular-devkit/schematics/node_modules/ajv Completed in 56472ms [##################] \ reify:ajv: timing reifyNode:node_modules/@angular-devkit/schematics/node_modules/ajv Completed in 564"><pre class="notranslate"><code class="notranslate">npm timing auditReport:init Completed in 49242ms npm timing reify:audit Completed in 55729ms npm timing reifyNode:node_modules/selenium-webdriver Completed in 54728ms npm timing reifyNode:node_modules/regenerate-unicode-properties Completed in 55637ms npm timing reifyNode:node_modules/ajv-formats/node_modules/ajv Completed in 56497ms npm timing reifyNode:node_modules/@angular-devkit/schematics/node_modules/ajv Completed in 56472ms [##################] \ reify:ajv: timing reifyNode:node_modules/@angular-devkit/schematics/node_modules/ajv Completed in 564 </code></pre></div> <p dir="auto">The only thing that I can think of right now is that Bit Defender (the only other application running) is interfering somehow, however it's the one application I can't turn off.</p> <p dir="auto">I've seen this issue occur on different projects, on different network and internet connections, and on different machines. Does anyone have any advice on how to investigate this, or at the very least a way to kill the process when it hangs like this without having to reboot the machine? Being forced to reboot when this issue occurs is perhaps the most frustrating thing in all of this.</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto"><code class="notranslate">npm install</code> should either succeed or show an error. If it gets stuck it should either time-out or be closable by the user.</p> <h3 dir="auto">Steps To Reproduce</h3> <ol dir="auto"> <li>Clear down the <code class="notranslate">node_modules</code> folder (ie with something like <code class="notranslate">rmdir /q /s</code>)</li> <li>Run. <code class="notranslate">npm install</code></li> <li>Watch and wait.</li> <li>If it succeeds, repeat the above steps until the freeze is observed.</li> </ol> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>npm: 8.1.3</li> <li>Node: v16.13.0</li> <li>OS: Windows 10 Version 21H1 (OS Build 19043.1288)</li> <li>platform: Lenovo ThinkPad</li> <li>npm config:</li> </ul> <div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="; &quot;builtin&quot; config from C:\Users\&lt;REDACTED&gt;\AppData\Roaming\npm\node_modules\npm\npmrc prefix = &quot;C:\\Users\\&lt;REDACTED&gt;\\AppData\\Roaming\\npm&quot; ; &quot;user&quot; config from C:\Users\&lt;REDACTED&gt;\.npmrc //pkgs.dev.azure.com/&lt;REDACTED&gt;/_packaging/&lt;REDACTED&gt;/npm/registry/:_authToken = (protected) ; node bin location = C:\Program Files\nodejs\node.exe ; cwd = C:\Users\&lt;REDACTED&gt; ; HOME = C:\Users\&lt;REDACTED&gt; ; Run `npm config ls -l` to show all defaults."><pre class="notranslate"><span class="pl-c"><span class="pl-c">;</span> "builtin" config from C:\Users\&lt;REDACTED&gt;\AppData\Roaming\npm\node_modules\npm\npmrc</span> <span class="pl-k">prefix</span> = <span class="pl-s"><span class="pl-pds">"</span>C:\\Users\\&lt;REDACTED&gt;\\AppData\\Roaming\\npm<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">;</span> "user" config from C:\Users\&lt;REDACTED&gt;\.npmrc</span> //pkgs.dev.azure.com/&lt;REDACTED&gt;/_packaging/&lt;REDACTED&gt;/npm/registry/:<span class="pl-k">_authToken</span> = (protected) <span class="pl-c"><span class="pl-c">;</span> node bin location = C:\Program Files\nodejs\node.exe</span> <span class="pl-c"><span class="pl-c">;</span> cwd = C:\Users\&lt;REDACTED&gt;</span> <span class="pl-c"><span class="pl-c">;</span> HOME = C:\Users\&lt;REDACTED&gt;</span> <span class="pl-c"><span class="pl-c">;</span> Run `npm config ls -l` to show all defaults.</span></pre></div>
1
<p dir="auto">I love the Acrylic effect in the new terminal. Really gives it a modern feel. But at the moment, whenever you focus on a different program, i.e click away from the terminal, it loses the Acrylic effect and goes to a solid color. I have two monitors so most of the time, I have my terminal visible on the second monitor while working in the first and most of the time the terminal is just a solid black color. Would it be possible to make it so that it keeps the Acrylic effect or is that a limitation of the UI toolkit?</p>
<p dir="auto">Using Windows Store version 0.5.2762.0</p> <p dir="auto">Zipped DMP file attached.</p> <p dir="auto"><a href="https://github.com/microsoft/terminal/files/3744760/conhost.exe.21732.dmp.zip">conhost.exe.21732.dmp.zip</a></p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.0</li> <li>Operating System version: Mac OS</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="338420654" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/2031" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/2031/hovercard" href="https://github.com/apache/dubbo/issues/2031">#2031</a> have fixed the writePlace stackOverflow issue. The code have been merged into hessian-lite, but not in dubbo.<br> Right now, the issue still there in dubbo 2.7.0. But we are not able to embed hessian-lite, as we are not able to remove hessian from dubbo(conflicts as below).</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Found in: org.apache.dubbo:dubbo:jar:2.7.0:compile com.alibaba:hessian-lite:jar:3.2.5:compile Duplicate classes: com/alibaba/com/caucho/hessian/io/HessianDebugState$DateState.class com/alibaba/com/caucho/hessian/io/ThrowableSerializer.class"><pre class="notranslate"><code class="notranslate">Found in: org.apache.dubbo:dubbo:jar:2.7.0:compile com.alibaba:hessian-lite:jar:3.2.5:compile Duplicate classes: com/alibaba/com/caucho/hessian/io/HessianDebugState$DateState.class com/alibaba/com/caucho/hessian/io/ThrowableSerializer.class </code></pre></div> <ol dir="auto"> <li>Define a class with a writeReplace method return this</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public class WriteReplaceReturningItself implements Serializable { private static final long serialVersionUID = 1L; private String name; WriteReplaceReturningItself(String name) { this.name = name; } public String getName() { return name; } /** * Some object may return itself for wrapReplace, e.g. * https://github.com/FasterXML/jackson-databind/blob/master/src/main/java/com/fasterxml/jackson/databind/JsonMappingException.java#L173 */ Object writeReplace() { //do some extra things return this; } }"><pre class="notranslate"><code class="notranslate">public class WriteReplaceReturningItself implements Serializable { private static final long serialVersionUID = 1L; private String name; WriteReplaceReturningItself(String name) { this.name = name; } public String getName() { return name; } /** * Some object may return itself for wrapReplace, e.g. * https://github.com/FasterXML/jackson-databind/blob/master/src/main/java/com/fasterxml/jackson/databind/JsonMappingException.java#L173 */ Object writeReplace() { //do some extra things return this; } } </code></pre></div> <ol start="2" dir="auto"> <li>Use Hessian2Output to serialize it</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ByteArrayOutputStream bout = new ByteArrayOutputStream(); Hessian2Output out = new Hessian2Output(bout); out.writeObject(data); out.flush();"><pre class="notranslate"><code class="notranslate">ByteArrayOutputStream bout = new ByteArrayOutputStream(); Hessian2Output out = new Hessian2Output(bout); out.writeObject(data); out.flush(); </code></pre></div> <ol start="3" dir="auto"> <li>Error occurs</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.lang.StackOverflowError at com.alibaba.com.caucho.hessian.io.SerializerFactory.getSerializer(SerializerFactory.java:302) at com.alibaba.com.caucho.hessian.io.Hessian2Output.writeObject(Hessian2Output.java:381) at com.alibaba.com.caucho.hessian.io.JavaSerializer.writeObject(JavaSerializer.java:226) at com.alibaba.com.caucho.hessian.io.Hessian2Output.writeObject(Hessian2Output.java:383) at com.alibaba.com.caucho.hessian.io.JavaSerializer.writeObject(JavaSerializer.java:226)"><pre class="notranslate"><code class="notranslate">java.lang.StackOverflowError at com.alibaba.com.caucho.hessian.io.SerializerFactory.getSerializer(SerializerFactory.java:302) at com.alibaba.com.caucho.hessian.io.Hessian2Output.writeObject(Hessian2Output.java:381) at com.alibaba.com.caucho.hessian.io.JavaSerializer.writeObject(JavaSerializer.java:226) at com.alibaba.com.caucho.hessian.io.Hessian2Output.writeObject(Hessian2Output.java:383) at com.alibaba.com.caucho.hessian.io.JavaSerializer.writeObject(JavaSerializer.java:226) </code></pre></div> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">The serialization process should complete with no exception or error.</p> <h3 dir="auto">Actual Result</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.lang.StackOverflowError at com.alibaba.com.caucho.hessian.io.SerializerFactory.getSerializer(SerializerFactory.java:302) at com.alibaba.com.caucho.hessian.io.Hessian2Output.writeObject(Hessian2Output.java:381) at com.alibaba.com.caucho.hessian.io.JavaSerializer.writeObject(JavaSerializer.java:226) at com.alibaba.com.caucho.hessian.io.Hessian2Output.writeObject(Hessian2Output.java:383) at com.alibaba.com.caucho.hessian.io.JavaSerializer.writeObject(JavaSerializer.java:226)"><pre class="notranslate"><code class="notranslate">java.lang.StackOverflowError at com.alibaba.com.caucho.hessian.io.SerializerFactory.getSerializer(SerializerFactory.java:302) at com.alibaba.com.caucho.hessian.io.Hessian2Output.writeObject(Hessian2Output.java:381) at com.alibaba.com.caucho.hessian.io.JavaSerializer.writeObject(JavaSerializer.java:226) at com.alibaba.com.caucho.hessian.io.Hessian2Output.writeObject(Hessian2Output.java:383) at com.alibaba.com.caucho.hessian.io.JavaSerializer.writeObject(JavaSerializer.java:226) </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto"><a href="https://github.com/apache/incubator-dubbo/blob/6e4ff91dfca4395a8d1b180f40f632e97acf779d/dubbo-monitor/dubbo-monitor-api/src/main/java/org/apache/dubbo/monitor/support/MetricsFilter.java#L44-L47">https://github.com/apache/incubator-dubbo/blob/6e4ff91dfca4395a8d1b180f40f632e97acf779d/dubbo-monitor/dubbo-monitor-api/src/main/java/org/apache/dubbo/monitor/support/MetricsFilter.java#L44-L47</a></p> <p dir="auto">The way to calculate the invocation time can be improved by using <code class="notranslate">java.lang.System#nanoTime</code></p>
0
<p dir="auto">I hope this is not a dupe, I was really surprised by this bug because - being so simple in nature - it appears it should have been caught by your tests (or at least stumbled upon by other people), hence there is a slight probability that I misunderstood something or that the compiler isn't capable to do the necessary work (at which point I'd be doubly disappointed).</p> <p dir="auto">Anyway, the example is artificial because it's extracted from a larger code base.</p> <p dir="auto">Imagine a simple project, let's start with <code class="notranslate">tsconfig.json</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;compilerOptions&quot;: { &quot;target&quot; : &quot;ES5&quot;, &quot;noImplicitAny&quot;: true, &quot;out&quot;: &quot;badout.js&quot; } }"><pre class="notranslate"><code class="notranslate">{ "compilerOptions": { "target" : "ES5", "noImplicitAny": true, "out": "badout.js" } } </code></pre></div> <p dir="auto">In the same folder, add a single file <code class="notranslate">c.ts</code> which is just <code class="notranslate">class C {}</code></p> <p dir="auto">Add a subfolder called <code class="notranslate">sub</code> and put the following two files inside:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// file a.ts class A extends B { method1(p1:number, p2:string):void {} }"><pre class="notranslate"><code class="notranslate">// file a.ts class A extends B { method1(p1:number, p2:string):void {} } </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// file b.ts class B { method1(p1:number, p2:string):void {} }"><pre class="notranslate"><code class="notranslate">// file b.ts class B { method1(p1:number, p2:string):void {} } </code></pre></div> <p dir="auto">Then simply run tsc in the project folder (the one containing <code class="notranslate">tsconfig.json</code> and <code class="notranslate">c.ts</code>)</p> <p dir="auto">The output will be:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var C = (function () { function C() { } return C; })(); var __extends = this.__extends || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } __.prototype = b.prototype; d.prototype = new __(); }; var A = (function (_super) { __extends(A, _super); function A() { _super.apply(this, arguments); } A.prototype.method1 = function (p1, p2) { }; return A; })(B); var B = (function () { function B() { } B.prototype.method1 = function (p1, p2) { }; return B; })();"><pre class="notranslate"><code class="notranslate">var C = (function () { function C() { } return C; })(); var __extends = this.__extends || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } __.prototype = b.prototype; d.prototype = new __(); }; var A = (function (_super) { __extends(A, _super); function A() { _super.apply(this, arguments); } A.prototype.method1 = function (p1, p2) { }; return A; })(B); var B = (function () { function B() { } B.prototype.method1 = function (p1, p2) { }; return B; })(); </code></pre></div> <p dir="auto">The problem is obvious - we're trying to use <code class="notranslate">B</code> before it is defined.</p> <p dir="auto">If this has been noted and fixed, please forgive the noise.</p> <p dir="auto">If not, please try to look into fixing this before 1.5 is "done".</p>
<p dir="auto">The compiler should issue an error when code uses values before they could possibly be initialized.</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Error, 'Derived' declaration must be after 'Base' class Derived extends Base { } class Base { }"><pre class="notranslate"><span class="pl-c">// Error, 'Derived' declaration must be after 'Base'</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-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">Base</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div>
1
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1044" rel="nofollow">http://projects.scipy.org/numpy/ticket/1044</a> on 2009-03-09 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pv">@pv</a>, assigned to unknown.</em></p> <p dir="auto">--- Continuation of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="7726510" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/1440" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/1440/hovercard" href="https://github.com/numpy/numpy/issues/1440">#1440</a>.</p> <p dir="auto">Ufuncs return array scalars for 0D array input:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import numpy as np &gt;&gt;&gt; type(np.conjugate(np.array(1+2j))) &lt;type 'numpy.complex128'&gt; &gt;&gt;&gt; type(np.sum(np.array(3.), np.array(5.))) &lt;type 'numpy.float64'&gt;"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; import numpy as np &gt;&gt;&gt; type(np.conjugate(np.array(1+2j))) &lt;type 'numpy.complex128'&gt; &gt;&gt;&gt; type(np.sum(np.array(3.), np.array(5.))) &lt;type 'numpy.float64'&gt; </code></pre></div> <p dir="auto">Should they return 0D arrays instead?</p>
<p dir="auto">I have a unit test failing on <code class="notranslate">np.divide.accumulate</code> with numpy 1.15.0 compiled with the Intel compiler. The same code is fine with a local build of GCC.</p> <p dir="auto">Perhaps this is related to ENH: umath: don't make temporary copies for in-place accumulation (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="300055790" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/10665" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/10665/hovercard" href="https://github.com/numpy/numpy/pull/10665">#10665</a>) where <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/juliantaylor/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/juliantaylor">@juliantaylor</a> fixed <code class="notranslate">numpy/core/src/umath/loops.c.src</code> for GCC's <code class="notranslate">ivdep</code> pragma. That was reviewed by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eric-wieser/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eric-wieser">@eric-wieser</a> .</p> <h3 dir="auto">Reproducing code example</h3> <p dir="auto">Source code was 1.15.0 compiled with the Intel compiler 2018.1.163. where np.divide.accumulate fails in the numpy unit tests.</p> <p dir="auto">I can reproduce with this Python 2.7 test case for <code class="notranslate">float64</code> dtype. It runs correctly for <code class="notranslate">float32</code> and <code class="notranslate">float128</code> on the Intel compiler. It also runs correctly for <code class="notranslate">float64</code> using GCC instead of Intel.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -c &quot;import numpy as np; acc = np.divide.accumulate; a = np.ones(8, dtype=np.float64); print acc(a, out=2*np.ones_like(a)); print acc(a); print acc(a); print acc(a); print acc(a, out=2*np.ones_like(a))&quot; [1. 1. 2. 2. 2. 2. 2. 2.] [1. 1. 1. 1. 2. 2. 2. 2.] [1. 1. 1. 1. 1. 1. 2. 2.] [1. 1. 1. 1. 1. 1. 1. 1.] [1. 1. 2. 2. 2. 2. 2. 2.]"><pre class="notranslate"><code class="notranslate">$ python -c "import numpy as np; acc = np.divide.accumulate; a = np.ones(8, dtype=np.float64); print acc(a, out=2*np.ones_like(a)); print acc(a); print acc(a); print acc(a); print acc(a, out=2*np.ones_like(a))" [1. 1. 2. 2. 2. 2. 2. 2.] [1. 1. 1. 1. 2. 2. 2. 2.] [1. 1. 1. 1. 1. 1. 2. 2.] [1. 1. 1. 1. 1. 1. 1. 1.] [1. 1. 2. 2. 2. 2. 2. 2.] </code></pre></div> <p dir="auto">Notice how only the next two elements are set each time <code class="notranslate">np.divide.accumulate</code> runs. That suggests the <code class="notranslate">float64</code>s are being processed in pairs. Then in the final line, specifying the output array again returns to the first line's incorrect behavior.</p> <h3 dir="auto">Numpy/Python version information:</h3> <p dir="auto">numpy 1.15.0 build with ICC 2018.1.163.<br> python 2.7.11 built with GCC 4.9.3.</p>
0
<p dir="auto">With this issue I would like to track the efforts in integrating the<br> cudnn library within tensorflow.</p> <p dir="auto">As of June 17th 2016 doing a manual grep on the repository gives these<br> functions as being mapped from cudnn to the stream executor,</p> <p dir="auto">From chapter 4 of the cudnn User Guide version 5.0 (April 2016):</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnGetVersion</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetErrorString</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnCreate</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnDestroy</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnSetStream</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetStream</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnCreateTensorDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnSetTensor4dDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnSetTensor4dDescriptorEx</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetTensor4dDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnSetTensorNdDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnDestroyTensorDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnTransformTensor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnAddTensor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnOpTensor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnSetTensor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnScaleTensor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnCreateFilterDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnSetFilter4dDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetFilter4dDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnSetFilter4dDescriptor_v3 (versioned)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetFilter4dDescriptor_v3 (versioned)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnSetFilter4dDescriptor_v4 (versioned)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetFilter4dDescriptor_v4 (versioned)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnSetFilterNdDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetFilterNdDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetFilterNdDescriptor_v3 (versioned)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetFilterNdDescriptor_v3 (versioned)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetFilterNdDescriptor_v4 (versioned)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetFilterNdDescriptor_v4 (versioned)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnDestroyFilterDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnCreateConvolutionDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnSetConvolution2dDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetConvolution2dDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetConvolution2dForwardOutputDim</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnSetConvolutionNdDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetConvolutionNdDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnGetConvolutionNdForwardOutputDim</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnDestroyConvolutionDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnFindConvolutionForwardAlgorithm</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnFindConvolutionForwardAlgorithmEx</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnGetConvolutionForwardAlgorithm</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnGetConvolutionForwardWorkspaceSize</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnConvolutionForward</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnConvolutionBackwardBias</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnFindConvolutionBackwardFilterAlgorithm</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnFindConvolutionBackwardFilterAlgorithmEx</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnGetConvolutionBackwardFilterAlgorithm</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnGetConvolutionBackwardFilterWorkspaceSize</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnConvolutionBackwardFilter</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnFindConvolutionBackwardDataAlgorithm</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnFindConvolutionBackwardDataAlgorithmEx</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnGetConvolutionBackwardDataAlgorithm</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnGetConvolutionBackwardDataWorkspaceSize</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnConvolutionBackwardData</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnSoftmaxForward</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnSoftmaxBackward</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnCreatePoolingDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnSetPooling2dDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetPooling2dDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnSetPoolingNdDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetPoolingNdDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnSetPooling2dDescriptor_v3 (versioned)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetPooling2dDescriptor_v3 (versioned)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnSetPoolingNdDescriptor_v3 (versioned)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetPoolingNdDescriptor_v3 (versioned)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnSetPooling2dDescriptor_v4 (versioned)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetPooling2dDescriptor_v4 (versioned)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnSetPoolingNdDescriptor_v4 (versioned)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetPoolingNdDescriptor_v4 (versioned)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnDestroyPoolingDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetPooling2dForwardOutputDim</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetPoolingNdForwardOutputDim</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnPoolingForward</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnPoolingBackward</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnActivationForward</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnActivationBackward</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnCreateActivationDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnSetActivationDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnGetActivationDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cudnnDestroyActivationDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnActivationForward_v3 (versioned)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnActivationBackward_v3 (versioned)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnActivationForward_v4 (versioned)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnActivationBackward_v4 (versioned)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnCreateLRNDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnSetLRNDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetLRNDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnDestroyLRNDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnLRNCrossChannelForward</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnLRNCrossChannelBackward</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnDivisiveNormalizationForward</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnDivisiveNormalizationBackward</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnBatchNormalizationForwardInference</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnBatchNormalizationForwardTraining</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnBatchNormalizationBackward</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnDeriveBNTensorDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnCreateRNNDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnDestroyRNNDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnSetRNNDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetRNNWorkspaceSize</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetRNNTrainingReserveSize</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetRNNParamsSize</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetRNNLinLayerMatrixParams</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnGetRNNLinLayerBiasParams</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnRNNForwardInference</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnRNNForwardTraining</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnRNNBackwardData</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnRNNBackwardWeights</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnCreateDropoutDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnDestroyDropoutDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnDropoutGetStatesSize</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnDropoutGetReserveSpaceSize</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnSetDropoutDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnDropoutForward</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnDropoutBackward</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnCreateSpatialTransformerDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnDestroySpatialTransformerDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnSetSpatialTransformerNdDescriptor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnSpatialTfGridGeneratorForward</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnSpatialTfGridGeneratorBackward</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnSpatialTfSamplerForward</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cudnnSpatialTfSamplerBackward</li> </ul> <h3 dir="auto">Batch Normalization</h3> <p dir="auto">Seems <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lukemetz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lukemetz">@lukemetz</a> was working on it but has stalled for a bit <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="145555764" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/1759" data-hovercard-type="pull_request" data-hovercard-url="/tensorflow/tensorflow/pull/1759/hovercard" href="https://github.com/tensorflow/tensorflow/pull/1759">#1759</a></p> <h3 dir="auto">What is the plan for the RNN ?</h3> <p dir="auto">I know <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wchan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wchan">@wchan</a> was working on a <a href="https://github.com/tensorflow/tensorflow/pull/2002" data-hovercard-type="pull_request" data-hovercard-url="/tensorflow/tensorflow/pull/2002/hovercard">cpu version</a>. I was trying to get a stub at <a href="https://github.com/Mistobaan/tensorflow/tree/feature/cudnn-rnn-lstm">using the cudnn version</a> but from the comments in that thread seemed like <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zheng-xq/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zheng-xq">@zheng-xq</a> was working on it internally.<br> Can anyone comment on the status of these ops?</p> <h3 dir="auto">Other Questions</h3> <ol dir="auto"> <li>Any reasons why the Softmax functions are not being used ?</li> <li>Would make sense to split the above list in chunks and create issues with contribution welcome, so external contributors can tackle them without duplicating internal work, or mark what google will be working on internally ?</li> </ol> <p dir="auto">I hope this helps in organizing the work around the cudnn and inspire the community to contribute. I will try to keep this issue up to date.</p>
1
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong><br> If there are multiple curves with the same label in a figure/subplot, only the last one of them can be selected in the <em>Figure options</em> window under the <em>Curves</em> tab. In the legend however, they appear as they should.</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.plot([0,1],[0,1],label=&quot;line&quot;) plt.plot([0,1],[1,0],label=&quot;line&quot;) plt.legend() plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-s1">plt</span>.<span class="pl-en">plot</span>([<span class="pl-c1">0</span>,<span class="pl-c1">1</span>],[<span class="pl-c1">0</span>,<span class="pl-c1">1</span>],<span class="pl-s1">label</span><span class="pl-c1">=</span><span class="pl-s">"line"</span>) <span class="pl-s1">plt</span>.<span class="pl-en">plot</span>([<span class="pl-c1">0</span>,<span class="pl-c1">1</span>],[<span class="pl-c1">1</span>,<span class="pl-c1">0</span>],<span class="pl-s1">label</span><span class="pl-c1">=</span><span class="pl-s">"line"</span>) <span class="pl-s1">plt</span>.<span class="pl-en">legend</span>() <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <p dir="auto"><strong>Actual outcome</strong><br> See description above and the image below.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/28358038/109487440-80328b80-7a84-11eb-81a2-b95fab397d9f.png"><img src="https://user-images.githubusercontent.com/28358038/109487440-80328b80-7a84-11eb-81a2-b95fab397d9f.png" alt="figure_options" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Expected outcome</strong><br> All curves should be listed in the <em>Figure options</em> window, even if they have the same label.</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: Windows 10</li> <li>Matplotlib version (<code class="notranslate">import matplotlib; print(matplotlib.__version__)</code>): 3.3.4</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): Qt5Agg</li> <li>Python version: 3.8.5</li> <li>Jupyter version (if applicable): -</li> <li>Other libraries: -</li> </ul> <p dir="auto">Matplotlib has been installed with pip.</p>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></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="# Paste your code here # #"><pre class="notranslate"><span class="pl-c"># Paste your code here</span> <span class="pl-c">#</span> <span class="pl-c">#</span></pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# If applicable, paste the console output here # #"><pre class="notranslate"><code class="notranslate"># If applicable, paste the console output here # # </code></pre></div> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system:</li> <li>Matplotlib version:</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>):</li> <li>Python version:</li> <li>Jupyter version (if applicable):</li> <li>Other libraries:</li> </ul>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">Templating</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1.8.2"><pre class="notranslate"><code class="notranslate">1.8.2 </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">N/A (but rhel7)</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">When entering passwords for login/sudo, they are parsed by the templater instead of being used literally. This creates unexpected behaviour - for example, with a password that contains a '{':</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible -i &quot;testhost1,&quot; all -k -m ping SSH password: testhost1 | FAILED =&gt; template error while templating string: unexpected token 'eof' $"><pre class="notranslate"><code class="notranslate">$ ansible -i "testhost1," all -k -m ping SSH password: testhost1 | FAILED =&gt; template error while templating string: unexpected token 'eof' $ </code></pre></div> <p dir="auto">If the substring in the password were valud template syntax we'd just get 'invalid password' errors, which would be even more confusing.<br> There is potential for destructive behaviour and - while very minor - potential security concerns by use of a malicious password (I don't have a specific example, but in places with esoteric security implementations one could see this being exploitable).</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <ul dir="auto"> <li>Set password on remote host '123abc{'</li> <li>Attempt ansible run with -k</li> </ul> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">Successfully authenticates against remote host and runs my command</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">Connecting to host host fails with 'error while templating string'</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="SSH password: testhost1 | FAILED =&gt; template error while templating string: unexpected token 'eof' "><pre class="notranslate"><code class="notranslate">SSH password: testhost1 | FAILED =&gt; template error while templating string: unexpected token 'eof' </code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Documentation Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto"><a href="https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_documenting.html#return-block" rel="nofollow">https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_documenting.html#return-block</a></p> <h5 dir="auto">ANSIBLE VERSION</h5> <p dir="auto">N/A since it's web documentation</p> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">N/A</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">N/A</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Documentation has the description for<code class="notranslate">returned</code> as "When this value is returned, such as always, on success, always". First, always is repeated. Second, it should list all the options for returned and not just 3.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">N/A</p> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">I'd expect this to be more thorough with a bulleted list of values and what they mean. Such as...</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="always - Returned on every request success - Returned only when request was successful"><pre class="notranslate"><code class="notranslate">always - Returned on every request success - Returned only when request was successful </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">See webpage.</p>
0
<p dir="auto">It would be great if Bootstraps javascripts would be compatible with Zepto. As Zepto is almost API compatible with jquery this shouldn't be that hard.</p>
0
<p dir="auto">please add 'raw' to modules allowed to have duplicate parameters.</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/ansible/ansible/blob/be4dbe76b9fbdd7e377f0d0c3ace61fa6e855e04/lib/ansible/runner/__init__.py#L444">ansible/lib/ansible/runner/__init__.py</a> </p> <p class="mb-0 color-fg-muted"> Line 444 in <a data-pjax="true" class="commit-tease-sha" href="/ansible/ansible/commit/be4dbe76b9fbdd7e377f0d0c3ace61fa6e855e04">be4dbe7</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="L444" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="444"></td> <td id="LC444" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">is_shell_module</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">module_name</span> <span class="pl-c1">in</span> (<span class="pl-s">'command'</span>, <span class="pl-s">'shell'</span>) </td> </tr> </tbody></table> </div> </div> <p></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- is_shell_module = self.module_name in ('command', 'shell') + is_shell_module = self.module_name in ('command', 'shell', 'raw')"><pre class="notranslate"><code class="notranslate">- is_shell_module = self.module_name in ('command', 'shell') + is_shell_module = self.module_name in ('command', 'shell', 'raw') </code></pre></div> <p dir="auto">thank you.</p>
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Feature Idea</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">1.6.6</p> <h5 dir="auto">Environment:</h5> <p dir="auto">N/A</p> <h5 dir="auto">Summary:</h5> <p dir="auto">I developed a lookup plugin which is for pulling secret keys from the cloud server. However, when I use <code class="notranslate">with_secret</code> statement like this</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: foo bar: secret={{ item }} with_secret: eggs/spam/secret.txt"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">foo</span> <span class="pl-ent">bar</span>: <span class="pl-s">secret={{ item }}</span> <span class="pl-ent">with_secret</span>: <span class="pl-s">eggs/spam/secret.txt</span></pre></div> <p dir="auto">and you will see something like this on the screen when you run ansible</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ok: [default] =&gt; (item=&quot;MY_SUPER_SECRET_KEY_HERE&quot;)"><pre class="notranslate"><code class="notranslate">ok: [default] =&gt; (item="MY_SUPER_SECRET_KEY_HERE") </code></pre></div> <p dir="auto">I really don't like how this works, it displays your secret key on screen. If you redirect logging for ansible to a file or what, then all your secret keys are in the file now.</p> <p dir="auto">And in other situations, like with_file, you may see something like</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ok: [default] =&gt; (item=&quot; thousand lines here thousand lines here thousand lines here thousand lines here thousand lines here ...."><pre class="notranslate"><code class="notranslate">ok: [default] =&gt; (item=" thousand lines here thousand lines here thousand lines here thousand lines here thousand lines here .... </code></pre></div> <p dir="auto">I think this is really bad for ansible to print literately everything it got from a lookup. So, I propose, for a lookup class, if a <code class="notranslate">sanitize</code> method is defined, ansible should then call the method for each item before printing it on the screen. So that for my secret getting lookup I can write something like this</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def sanitize(self, item): return '*' * 8"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">sanitize</span>(<span class="pl-s1">self</span>, <span class="pl-s1">item</span>): <span class="pl-k">return</span> <span class="pl-s">'*'</span> <span class="pl-c1">*</span> <span class="pl-c1">8</span></pre></div> <p dir="auto">And for huge file and other things, people can write something like</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def sanitize(self, item): return 'File {} ({} bytes)'.format(item._filename, item._size) def run(self, terms, inject=None, **kwargs): result = 'a long long long long file content' result._filename = terms result._size = len(result) return [result]"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">sanitize</span>(<span class="pl-s1">self</span>, <span class="pl-s1">item</span>): <span class="pl-k">return</span> <span class="pl-s">'File {} ({} bytes)'</span>.<span class="pl-en">format</span>(<span class="pl-s1">item</span>.<span class="pl-s1">_filename</span>, <span class="pl-s1">item</span>.<span class="pl-s1">_size</span>) <span class="pl-k">def</span> <span class="pl-en">run</span>(<span class="pl-s1">self</span>, <span class="pl-s1">terms</span>, <span class="pl-s1">inject</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>): <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-s">'a long long long long file content'</span> <span class="pl-s1">result</span>.<span class="pl-s1">_filename</span> <span class="pl-c1">=</span> <span class="pl-s1">terms</span> <span class="pl-s1">result</span>.<span class="pl-s1">_size</span> <span class="pl-c1">=</span> <span class="pl-en">len</span>(<span class="pl-s1">result</span>) <span class="pl-k">return</span> [<span class="pl-s1">result</span>]</pre></div> <h5 dir="auto">Steps To Reproduce:</h5> <p dir="auto">N/A</p> <h5 dir="auto">Expected Results:</h5> <p dir="auto">N/A</p> <h5 dir="auto">Actual Results:</h5> <p dir="auto">N/A</p>
0
<ul dir="auto"> <li>Electron Version: 3.0 Beta 4</li> <li>Operating System (Platform and Version): Windows10, 8 (x86 and x64)</li> <li>Last known working Electron version: 2.x</li> </ul> <p dir="auto"><strong>Expected Behavior</strong><br> PDF should be displayed.</p> <p dir="auto"><strong>Actual behavior</strong><br> "Save As.." dialog for download appears and pdf will not be displayed, even when downloaded.</p> <p dir="auto"><strong>To Reproduce</strong><br> Create a BrowserWindow and load an URL with a pdf or iframes with pdfs.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const win = new BrowserWindow({ width: 800, height: 600, webPreferences: { plugins: true } }); win.webContents.loadURL(URL_TO_PDF);"><pre class="notranslate"><code class="notranslate">const win = new BrowserWindow({ width: 800, height: 600, webPreferences: { plugins: true } }); win.webContents.loadURL(URL_TO_PDF); </code></pre></div>
<ul dir="auto"> <li>Electron version: 0.36.7</li> <li>Operating system: OS X</li> </ul> <p dir="auto">My electron app needs to make an HTTP request to a service that returns malformed headers:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ curl -IS 'http://192.168.0.1/getdeviceinfo/info.bin' HTTP/1.1 200 OK Date: Wed, 02 Dec 2015 16:42:45 GMT Server: nostradamus 1.9.5 Connection: close Etag: Aug 28 2015, 07:57:20 Transfer-Encoding: chunked HTTP/1.0 200 OK Content-Type: text/html"><pre class="notranslate"><code class="notranslate">$ curl -IS 'http://192.168.0.1/getdeviceinfo/info.bin' HTTP/1.1 200 OK Date: Wed, 02 Dec 2015 16:42:45 GMT Server: nostradamus 1.9.5 Connection: close Etag: Aug 28 2015, 07:57:20 Transfer-Encoding: chunked HTTP/1.0 200 OK Content-Type: text/html </code></pre></div> <p dir="auto">Notice the duplicate <code class="notranslate">200 OK</code> header? Yeah, so does the native Node.js parser and it chokes. In a standalone test script, I've found that I can use the <code class="notranslate">http-parser-js</code> library to make the same request and it handles the bad headers gracefully.</p> <p dir="auto">Now I need to make that work within the Electron app that needs to actually make the call and retrieve the data and it's failing with the same <code class="notranslate">HPE_INVALID_HEADER_TOKEN</code> I've been getting all along. I assume, for that reason, that the native HTTP parser is not getting overridden the way that it does in the test script.</p> <p dir="auto">In my electron app's main process, I have the same code I used in my test script:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="process.binding('http_parser').HTTPParser = require('http-parser-js').HTTPParser; var http = require('http'); var req = http.request( ... )"><pre class="notranslate"><code class="notranslate">process.binding('http_parser').HTTPParser = require('http-parser-js').HTTPParser; var http = require('http'); var req = http.request( ... ) </code></pre></div> <p dir="auto">Is there an alternate process binding syntax I can use within Electron? Or some other means of making an HTTP request without taxing the Node parser?</p>
0
<p dir="auto">Fixing issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="57606889" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/9691" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/9691/hovercard" href="https://github.com/elastic/elasticsearch/issues/9691">#9691</a> revealed a deeper problem with the QuadPrefixTree's memory usage. At 1m precision the example shape in <a href="https://gist.github.com/nknize/abbcb87f091b891f85e1">https://gist.github.com/nknize/abbcb87f091b891f85e1</a> consumes more than 1GB of memory. This is initially alleviated by using 2 bit encoded quads (instead of 1byte) but only delays the problem. Moreover, as new complex shapes are added duplicate quadcells are created - thus introducing unnecessary redundant memory consumption (an inverted index approach makes mosts sense - its Lucene!).</p> <p dir="auto">For now, if a QuadTree is used for complex shapes great care must be taken and precision must be sacrificed (something that's automatically done with the distance_error_pct without the user knowing - which is a TERRIBLE approach). An alternative improvement could be to apply a Hilbert R-Tree - which will be explored as a separate issue. Or to restrict the accuracy to a lower level of precision (something that's undergoing experimentation).</p>
<p dir="auto"><strong>Elasticsearch version</strong>:<br> 2.3.4</p> <p dir="auto"><strong>JVM version</strong>:<br> 1.8</p> <h1 dir="auto">some gc log</h1> <p dir="auto">[monitor.jvm ] [Powerpax] [gc][young][132059][21130] duration [756ms], collections [1]/[1.4s], total [756ms]/[10.3m], memory [26.7gb]-&gt;[24.1gb]/[29.6gb<br> ], all_pools {[young] [2.7gb]-&gt;[3.2mb]/[2.7gb]}{[survivor] [20.6mb]-&gt;[240.8mb]/[357.7mb]}{[old] [23.9gb]-&gt;[23.9gb]/[26.5gb]}</p> <h1 dir="auto">doubt</h1> <p dir="auto">I use bulk to index. 30 billion doc very day. But some node alway out of cluster because long time full gc after some days.<br> I dump bin log and find taskManager object cost most of memory(18GB), I doubt why taskManager cost cost many memory ? It cache large number of task(request) ? some body can explain the situation? thanks</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8613477/17446938/585d0ce0-5b7e-11e6-8833-b2b16622c631.png"><img src="https://cloud.githubusercontent.com/assets/8613477/17446938/585d0ce0-5b7e-11e6-8833-b2b16622c631.png" alt="2016-08-06_023347" style="max-width: 100%;"></a></p>
0
<p dir="auto">Apparently there isn't any narrative documentations for some non-clustering metrics as it was pointed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="9619027" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/1507" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/1507/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/1507">#1507</a>.</p>
<p dir="auto">There is no user guide on the classification / regression metrics....</p>
1
<h2 dir="auto">The Problem</h2> <p dir="auto">VSCode can nicely handle comments in JSON files. However, the <a href="http://www.json.org" rel="nofollow">JSON</a> specification <a href="http://stackoverflow.com/questions/244777/can-i-use-comments-inside-a-json-file" rel="nofollow">does <strong>not</strong> allow comments in JSON files</a>. Therefore most JSON parsers fail when JSON files contain comments. E.g. <a href="https://docs.npmjs.com/files/package.json" rel="nofollow"><code class="notranslate">package.json</code></a> fails, and even the typescript compiler fails on <a href="https://github.com/Microsoft/TypeScript/wiki/tsconfig.json">tsconfig.json</a> files that include comments.</p> <p dir="auto">Another problem is that syntax highlighting does not work on github. For example, the file <a href="https://github.com/Microsoft/vscode/blob/54609ce3f6c701a851157b5a936818b724694a53/extensions/xml/xml.configuration.json"><code class="notranslate">extensions/xml/xml.configuration.json</code></a> ist not legal JSON. This is symptomatic for repositories that are managed with VSCode:</p> <ul dir="auto"> <li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dbaeumer/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dbaeumer">@dbaeumer</a> in <a href="https://github.com/Microsoft/vscode-eslint/blob/1629dbe09d4e252f4fd49fb3786079425ab9e253/eslint/.vscode/tasks.json"><code class="notranslate">eslint/.vscode/tasks.json</code></a></li> <li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/weinand/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/weinand">@weinand</a> in <a href="https://github.com/Microsoft/vscode-node-debug/blob/20fe4f767477b0ad8fe0ee6e60b3b265ad087321/.vscode/launch.json#L33"><code class="notranslate">vscode-node-debug/.vscode/launch.json</code></a></li> <li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/egamma/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/egamma">@egamma</a> in <a href="https://github.com/Microsoft/vscode-go/blob/d3a1502c4766f4fe5a6d471a7d0b95e1f46b7cae/.vscode/launch.json"><code class="notranslate">vscode-go/blame/master/.vscode/launch.json</code></a></li> </ul> <h2 dir="auto">Proposal: create a new file type, e.g. <code class="notranslate">.tson</code></h2> <p dir="auto">Instead of misleading people about the syntax of JSON by providing support for comments in JSON files, VSCode should rather use a new format like <code class="notranslate">TSON</code>, that would be an extension of JSON that allows for comments. There could be a simpler pre-processor for TSON (like <a href="http://blog.getify.com/json-comments/" rel="nofollow">JSON.minify</a>) that converts TSON into JSON by stripping away the comments.</p> <p dir="auto">With such a new file type, VSCode could happily use them without compromising the integrity of existing <code class="notranslate">.json</code> files.</p> <p dir="auto">In addition, it would be cool to use typescript ambient definitions for <code class="notranslate">.tson</code> files. I really like the typescript <a href="https://code.visualstudio.com/docs/editor/tasks_appendix" rel="nofollow">schema for <code class="notranslate">tasks.json</code></a>.</p>
<p dir="auto">I'm running VSCode in a corporate network (Active Directory), when I install VSCode I'm asked for an admin password, after the installation normal users sessions don't have the VSCode context menu options, only the admin account has that menu.</p> <p dir="auto">How can I add the context menu for all users?</p>
0
<p dir="auto">In order to have nice looking paths without hash or bang, I am using history mode:</p> <p dir="auto">var router = new VueRouter({<br> routes: routes,<br> mode: 'history'<br> })</p> <p dir="auto">However, when I refresh a page, I get a 404 error. If I remove mode: 'history', I can go directly to urls at a path and refresh pages in my browser.</p> <p dir="auto">Can I remove hash and bang (#!) from my urls and be able to refresh pages and use direct urls to a path?</p>
<h3 dir="auto">Vue.js version</h3> <p dir="auto">2.0.2</p> <h3 dir="auto">Reproduction Link</h3> <p dir="auto">When I deployment my vue app to IIS, refresh page in SPA component, I go 404 error</p>
1
<h4 dir="auto">Challenge Name</h4> <p dir="auto"><a href="https://www.freecodecamp.com/challenges/target-the-children-of-an-element-using-jquery#?solution=%0Afccss%0A%20%20%24(document).ready(function()%20%7B%0A%20%20%20%20%24(%22%23target1%22).css(%22color%22%2C%20%22red%22)%3B%0A%20%20%20%20%24(%22%23target1%22).prop(%22disabled%22%2C%20true)%3B%0A%20%20%20%20%24(%22%23target4%22).remove()%3B%0A%20%20%20%20%24(%22%23target2%22).appendTo(%22%23right-well%22)%3B%0A%20%20%20%20%24(%22%23target5%22).clone().appendTo(%22%23left-well%22)%3B%0A%20%20%20%20%24(%22%23target1%22).parent().css(%22background-color%22%2C%20%22red%22)%3B%0A%20%20%20%20%24(%22%23right-well%22).children().css(%22color%22%2C%20%22orange%22)%0A%20%20%7D)%3B%0Afcces%0A%0A%3C!--%20Only%20change%20code%20above%20this%20line.%20--%3E%0A%0A%3Cdiv%20class%3D%22container-fluid%22%3E%0A%20%20%3Ch3%20class%3D%22text-primary%20text-center%22%3EjQuery%20Playground%3C%2Fh3%3E%0A%20%20%3Cdiv%20class%3D%22row%22%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23left-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22left-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target1%22%3E%23target1%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target2%22%3E%23target2%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target3%22%3E%23target3%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23right-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22right-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target4%22%3E%23target4%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target5%22%3E%23target5%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target6%22%3E%23target6%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A" rel="nofollow">https://www.freecodecamp.com/challenges/target-the-children-of-an-element-using-jquery#?solution=%0Afccss%0A%20%20%24(document).ready(function()%20%7B%0A%20%20%20%20%24(%22%23target1%22).css(%22color%22%2C%20%22red%22)%3B%0A%20%20%20%20%24(%22%23target1%22).prop(%22disabled%22%2C%20true)%3B%0A%20%20%20%20%24(%22%23target4%22).remove()%3B%0A%20%20%20%20%24(%22%23target2%22).appendTo(%22%23right-well%22)%3B%0A%20%20%20%20%24(%22%23target5%22).clone().appendTo(%22%23left-well%22)%3B%0A%20%20%20%20%24(%22%23target1%22).parent().css(%22background-color%22%2C%20%22red%22)%3B%0A%20%20%20%20%24(%22%23right-well%22).children().css(%22color%22%2C%20%22orange%22)%0A%20%20%7D)%3B%0Afcces%0A%0A%3C!--%20Only%20change%20code%20above%20this%20line.%20--%3E%0A%0A%3Cdiv%20class%3D%22container-fluid%22%3E%0A%20%20%3Ch3%20class%3D%22text-primary%20text-center%22%3EjQuery%20Playground%3C%2Fh3%3E%0A%20%20%3Cdiv%20class%3D%22row%22%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23left-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22left-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target1%22%3E%23target1%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target2%22%3E%23target2%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target3%22%3E%23target3%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23right-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22right-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target4%22%3E%23target4%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target5%22%3E%23target5%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target6%22%3E%23target6%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A</a></p> <h4 dir="auto">Issue Description</h4> <p dir="auto">This page was buggy for me on a new iMac. I know this because it didn't work with my code, and then I tried other things that didn't work, and when I returned it to my first code (no small errors btw), it functioned fine.</p> <p dir="auto">Also, there has been a bug with this code:<br> $("#target5").clone().appendTo("#left-well");</p> <p dir="auto">Apparently, it seems to place two clones at times (most often when I click CTRL+RTN to test).</p> <p dir="auto">Hopefully this helps!</p> <h4 dir="auto">Browser Information</h4> <ul dir="auto"> <li>Browser Name, Version: CHROME 54.0.2840.71</li> <li>Operating System: OSX El Capitan 10.11.6</li> <li>Mobile, Desktop, or Tablet: DESKTOP</li> </ul> <h4 dir="auto">Your Code</h4> &lt;script&gt; $(document).ready(function() { $("#target1").css("color", "red"); $("#target1").prop("disabled", true); $("#target4").remove(); $("#target2").appendTo("#right-well"); $("#target5").clone().appendTo("#left-well"); $("#target1").parent().css("background-color", "red"); $("#right-well").children().css("color", "orange") }); &lt;/script&gt; <div dir="auto"> <h3 dir="auto">jQuery Playground</h3> <div dir="auto"> <div dir="auto"> <h4 dir="auto">#left-well</h4> <div id="user-content-left-well" dir="auto"> #target1 #target2 #target3 </div> </div> <div dir="auto"> <h4 dir="auto">#right-well</h4> <div id="user-content-right-well" dir="auto"> #target4 #target5 #target6 </div> </div> </div> </div> <h4 dir="auto">Screenshot</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/20955450/20050483/76aa9ee4-a47e-11e6-94e2-29d00d98820e.png"><img width="2000" alt="screen shot 2016-11-07 at 12 08 59 am" src="https://cloud.githubusercontent.com/assets/20955450/20050483/76aa9ee4-a47e-11e6-94e2-29d00d98820e.png" style="max-width: 100%;"></a></p>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-clone-an-element-using-jquery#?solution=fccss%0A%20%20%24%28document%29.ready%28function%28%29%20%7B%0A%20%20%20%20%24%28%22%23target1%22%29.css%28%22color%22%2C%20%22red%22%29%3B%0A%20%20%20%20%24%28%22%23target1%22%29.prop%28%22disabled%22%2C%20true%29%3B%0A%20%20%20%20%24%28%22%23target4%22%29.remove%28%29%3B%0A%20%20%20%20%24%28%22%23target2%22%29.appendTo%28%22%23right-well%22%29%3B%0A%20%20%20%20%24%28%22%23target5%22%29.clone%28%29.appendTo%28%22%23left-well%22%29%3B%0A%20%20%7D%29%3B%0Afcces%0A%0A%3C!--%20Only%20change%20code%20above%20this%20line.%20--%3E%0A%0A%3Cdiv%20class%3D%22container-fluid%22%3E%0A%20%20%3Ch3%20class%3D%22text-primary%20text-center%22%3EjQuery%20Playground%3C%2Fh3%3E%0A%20%20%3Cdiv%20class%3D%22row%22%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23left-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22left-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target1%22%3E%23target1%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target2%22%3E%23target2%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target3%22%3E%23target3%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23right-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22right-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target4%22%3E%23target4%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target5%22%3E%23target5%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target6%22%3E%23target6%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A" rel="nofollow">Waypoint: Clone an Element Using jQuery</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.73 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <h2 dir="auto">Issue</h2> <p dir="auto">I believe I've found bug in the phone simulation in <strong>Waypoint: Clone an Element Using jQuery</strong>:</p> <p dir="auto">I entered the code to clone <code class="notranslate">target5</code> and append it to <code class="notranslate">left-well</code>, and now I see three <strong>target5</strong> buttons in the phone simulator. FCC says my code is correct and advances me to the next challenge. The following challenges also show three target5 buttons:</p> <ul dir="auto"> <li>Waypoint: Target the Parent of an Element Using jQuery</li> <li>Waypoint: Target the Children of an Element Using jQuery</li> </ul> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/qualitymanifest/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/qualitymanifest">@qualitymanifest</a> confirms this issue on his <strong>Linux</strong> box.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5673126/11647398/76751658-9d35-11e5-8fcf-112ab89c6920.png"><img src="https://cloud.githubusercontent.com/assets/5673126/11647398/76751658-9d35-11e5-8fcf-112ab89c6920.png" alt="image" style="max-width: 100%;"></a></p> <h2 dir="auto">My code:</h2> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;script&gt; $(document).ready(function() { $(&quot;#target1&quot;).css(&quot;color&quot;, &quot;red&quot;); $(&quot;#target1&quot;).prop(&quot;disabled&quot;, true); $(&quot;#target4&quot;).remove(); $(&quot;#target2&quot;).appendTo(&quot;#right-well&quot;); $(&quot;#target5&quot;).clone().appendTo(&quot;#left-well&quot;); }); &lt;/script&gt; &lt;!-- Only change code above this line. --&gt; &lt;div class=&quot;container-fluid&quot;&gt; &lt;h3 class=&quot;text-primary text-center&quot;&gt;jQuery Playground&lt;/h3&gt; &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;h4&gt;#left-well&lt;/h4&gt; &lt;div class=&quot;well&quot; id=&quot;left-well&quot;&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target1&quot;&gt;#target1&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target2&quot;&gt;#target2&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target3&quot;&gt;#target3&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;h4&gt;#right-well&lt;/h4&gt; &lt;div class=&quot;well&quot; id=&quot;right-well&quot;&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target4&quot;&gt;#target4&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target5&quot;&gt;#target5&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target6&quot;&gt;#target6&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">ready</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"color"</span><span class="pl-kos">,</span> <span class="pl-s">"red"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">prop</span><span class="pl-kos">(</span><span class="pl-s">"disabled"</span><span class="pl-kos">,</span> <span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target4"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">remove</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target2"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#right-well"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target5"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#left-well"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-c">&lt;!-- Only change code above this line. --&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">container-fluid</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h3</span> <span class="pl-c1">class</span>="<span class="pl-s">text-primary text-center</span>"<span class="pl-kos">&gt;</span>jQuery Playground<span class="pl-kos">&lt;/</span><span class="pl-ent">h3</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">row</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span>#left-well<span class="pl-kos">&lt;/</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">left-well</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target1</span>"<span class="pl-kos">&gt;</span>#target1<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target2</span>"<span class="pl-kos">&gt;</span>#target2<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target3</span>"<span class="pl-kos">&gt;</span>#target3<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span>#right-well<span class="pl-kos">&lt;/</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">right-well</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target4</span>"<span class="pl-kos">&gt;</span>#target4<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target5</span>"<span class="pl-kos">&gt;</span>#target5<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target6</span>"<span class="pl-kos">&gt;</span>#target6<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span></pre></div>
1
<blockquote> <p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dfilatov/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dfilatov">@dfilatov</a></p> </blockquote> <h3 dir="auto">Bug information</h3> <ul dir="auto"> <li><strong>Babel version:</strong> 6.3.13</li> <li><strong>Node version:</strong> 4.2.1</li> <li><strong>npm version:</strong> 2.14.7</li> </ul> <h3 dir="auto">Options</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--presets es2015"><pre class="notranslate"><code class="notranslate">--presets es2015 </code></pre></div> <h3 dir="auto">Input code</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export * from './client/mounter';"><pre class="notranslate"><code class="notranslate">export * from './client/mounter'; </code></pre></div> <h3 dir="auto">Description</h3> <p dir="auto">Given input code will be transformed to:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var _mounter = require('./client/mounter'); for (var _key in _mounter) { if (_key === &quot;default&quot;) continue; Object.defineProperty(exports, _key, { enumerable: true, get: function get() { return _mounter[_key]; } }); }"><pre class="notranslate"><code class="notranslate">var _mounter = require('./client/mounter'); for (var _key in _mounter) { if (_key === "default") continue; Object.defineProperty(exports, _key, { enumerable: true, get: function get() { return _mounter[_key]; } }); } </code></pre></div> <p dir="auto">In result all reexported stuff will reference to the same <code class="notranslate">_mounter[_key]</code>, where <code class="notranslate">_key</code> is a last key from <code class="notranslate">_mounter</code>.</p>
<p dir="auto"><a href="https://github.com/facebook/flow/releases/tag/v0.32.0">flow v0.32.0</a>:</p> <blockquote> <p dir="auto">New syntax for exact object types: use {| and |} instead of { and }. Where {x: string} contains at least the property x, {| x: string |} contains ONLY the property x.</p> </blockquote>
0
<p dir="auto">I have a form some fields are not validated based on the validation groups. The validation works as expected but the error message is always added to the wrong field. It seems to just use which ever property is last in the validation.yml file.</p> <p dir="auto">I believe my use case is valid. It worked fine in 2.4 but when testing 2.5 BETA2 there were test failures. Also seems to be an issue with the master branch.</p> <p dir="auto">I found it easiest to reproduce the issue using a system test. This can be found in the following repository: <a href="https://github.com/tompedals/symfony-form-test">https://github.com/tompedals/symfony-form-test</a></p> <p dir="auto">Model: <a href="https://github.com/tompedals/symfony-form-test/blob/master/src/Test/FormTestBundle/Model/Attachment.php">https://github.com/tompedals/symfony-form-test/blob/master/src/Test/FormTestBundle/Model/Attachment.php</a></p> <p dir="auto">Form: <a href="https://github.com/tompedals/symfony-form-test/blob/master/src/Test/FormTestBundle/Form/AttachmentType.php">https://github.com/tompedals/symfony-form-test/blob/master/src/Test/FormTestBundle/Form/AttachmentType.php</a></p> <p dir="auto">Validation mapping: <a href="https://github.com/tompedals/symfony-form-test/blob/master/src/Test/FormTestBundle/Resources/config/validation.yml">https://github.com/tompedals/symfony-form-test/blob/master/src/Test/FormTestBundle/Resources/config/validation.yml</a></p> <p dir="auto">Test: <a href="https://github.com/tompedals/symfony-form-test/blob/master/src/Test/FormTestBundle/Tests/Form/AttachmentTypeTest.php">https://github.com/tompedals/symfony-form-test/blob/master/src/Test/FormTestBundle/Tests/Form/AttachmentTypeTest.php</a></p> <p dir="auto">Use <code class="notranslate">phpunit -c app</code> to run the tests.</p>
<p dir="auto">Hello,</p> <p dir="auto">When using Validator 2.5 to validate an array of scalars, the <code class="notranslate">propertyPath</code> of the returned violations has really strange values.</p> <p dir="auto">Consider the following script:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;?php require 'vendor/autoload.php'; use Symfony\Component\Validator\Constraints; use Symfony\Component\Validator\Validation; $constraints = array( 'foo' =&gt; array( new Constraints\NotBlank(), new Constraints\Date() ), 'bar' =&gt; new Constraints\NotBlank() ); $collectionConstraint = new Constraints\Collection(array('fields' =&gt; $constraints)); $validator = Validation::createValidatorBuilder() -&gt;setApiVersion(Validation::API_VERSION_2_5) -&gt;getValidator(); $value = array( 'foo' =&gt; 'bar' ); $violations = $validator-&gt;validate($value, $collectionConstraint); foreach ($violations as $violation) { var_dump($violation-&gt;getPropertyPath()); }"><pre class="notranslate"><code class="notranslate">&lt;?php require 'vendor/autoload.php'; use Symfony\Component\Validator\Constraints; use Symfony\Component\Validator\Validation; $constraints = array( 'foo' =&gt; array( new Constraints\NotBlank(), new Constraints\Date() ), 'bar' =&gt; new Constraints\NotBlank() ); $collectionConstraint = new Constraints\Collection(array('fields' =&gt; $constraints)); $validator = Validation::createValidatorBuilder() -&gt;setApiVersion(Validation::API_VERSION_2_5) -&gt;getValidator(); $value = array( 'foo' =&gt; 'bar' ); $violations = $validator-&gt;validate($value, $collectionConstraint); foreach ($violations as $violation) { var_dump($violation-&gt;getPropertyPath()); } </code></pre></div> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="string(11) &quot;[foo].[foo]&quot; string(17) &quot;[foo].[foo].[bar]&quot;"><pre class="notranslate"><code class="notranslate">string(11) "[foo].[foo]" string(17) "[foo].[foo].[bar]" </code></pre></div> <p dir="auto">If I set <code class="notranslate">Validation::API_VERSION_2_4</code> and call the old <code class="notranslate">validateValue</code> method, it outputs:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="string(5) &quot;[foo]&quot; string(5) &quot;[bar]&quot;"><pre class="notranslate"><code class="notranslate">string(5) "[foo]" string(5) "[bar]" </code></pre></div> <p dir="auto">Is this something expected ?</p>
1
<p dir="auto">NMF in scikit-learn overview :</p> <p dir="auto"><strong>Current implementation (<a href="https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/decomposition/nmf.py">code</a>):</strong><br> - loss = squared (aka Frobenius norm)<br> - method = projected gradient<br> - regularization = trick to enforce sparseness or low error with beta / eta</p> <p dir="auto"><strong><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="8247053" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/1348" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/1348/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/1348">#1348</a> (or in <a href="https://gist.github.com/omangin/8801846">gist</a>):</strong><br> - loss = (generalized) Kullback-Leibler divergence (aka I-divergence)<br> - method = multiplicative update<br> - regularization = None</p> <p dir="auto"><strong><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="21288191" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/2540" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/2540/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/2540">#2540</a> [WIP]:</strong><br> - loss = squared (aka Frobenius norm)<br> - method = multiplicative update<br> - regularization = None</p> <p dir="auto"><strong><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="4966330" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/896" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/896/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/896">#896</a> (or in <a href="https://gist.github.com/mblondel/09648344984565f9477a">gist</a>):</strong><br> - loss = squared (aka Frobenius norm)<br> - method = coordinate descent, no greedy selection<br> - regularization = L1 or L2</p> <p dir="auto"><strong>Papers describing the methods:</strong><br> - <a href="http://www.researchgate.net/profile/Daniel_Lee27/publication/2538030_Algorithms_for_Non-negative_Matrix_Factorization/links/0fcfd50aab9a59c112000000.pdf" rel="nofollow">Multiplicative update</a><br> - <a href="http://www.csie.ntu.edu.tw/~cjlin/papers/pgradnmf.pdf" rel="nofollow">Projected gradient</a><br> - <a href="http://www.cs.utexas.edu/~cjhsieh/nmf_kdd11.pdf" rel="nofollow">Coordinate descent with greedy selection</a></p> <hr> <p dir="auto"><strong>About the uniqueness of the results</strong><br> The problem is non-convex, and there is no unique minimum:<br> Different losses, different initializations, and/or different optimization methods generally give different results !</p> <p dir="auto"><strong>About the methods</strong></p> <ul dir="auto"> <li>The multiplicative update (MU) is the most widely used because of it's simplicity. It is very easy to adapt it to squared loss, (generalized) Kullback-Leibler divergence or Itakura–Saito divergence, which are 3 specific cases of the so-called beta-divergence. All three losses seem used in practice. A regularization L1 or L2 can easily be added.</li> <li>The Projected gradient (PG) seems very efficient for the squared loss, but does not scale well (w.r.t X size) for the (generalized) KL divergence. A L1 or L2 regularization could possibly be added in the gradient step. I don't know where the sparseness enforcement trick in current code comes from.</li> <li>The Coordinate Descent (CD) seems even more efficient for squared loss, and we can add easily L1 or L2 regularization. It can be further speeded up by a greedy selection of coordinate. The adaptation for KL divergence is possible with a Newton method for solving subproblem (slower), but without greedy selection. This adaptation is supposed to be faster than MU-NMF with (generalized) KL divergence.</li> </ul> <p dir="auto"><strong>About the initialization</strong><br> Different schemes exist, and can change significantly both result and speed. They can be used independantly for each NMF method.</p> <p dir="auto"><strong>About the stopping condition</strong><br> Actual stopping condition in PG-NMF is bugged (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="21766182" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/2557" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/2557/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/2557">#2557</a>), and leads to poor minima when the tolerance is not low enough, especially in the random initialization scheme. It is also completely different from stopping condition in MU-NMF, which is very difficult to set. Talking with audio scientists (who use a lot MU-NMF for source seperation) reveals that they just set a number of iteration.</p> <hr> <p dir="auto">As far as I understand NMF, as there is no unique minimum, there is no perfect loss/method/initialization/regularization. A good choice for some dataset can be terrible for another one. I don't know how many methods we want to maintain in scikit-learn, and how much we want to guide users with few possibilities, but several methods seems more useful than only one.</p> <p dir="auto">I have tested MU-NMF, PG-NMF and CD-NMF from scikit-learn code, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="21288191" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/2540" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/2540/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/2540">#2540</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="4966330" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/896" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/896/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/896">#896</a>, with squared loss and no regularization, on a subsample of 20news dataset, and performances are already very different depending on the initialization (see below).</p> <p dir="auto"><strong>Which methods do we want in scikit-learn?</strong><br> Why do we have stopped <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="8247053" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/1348" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/1348/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/1348">#1348</a> or <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="4966330" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/896" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/896/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/896">#896</a> ?<br> Do we want to continue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="21288191" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/2540" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/2540/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/2540">#2540</a> ?<br> I can work on it as soon as we have decided.</p> <hr> <p dir="auto">NNDSVD (similar curves than NNDSVRAR)<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11065596/7963015/ece155b2-0a10-11e5-83c4-53d1257c4f13.png"><img src="https://cloud.githubusercontent.com/assets/11065596/7963015/ece155b2-0a10-11e5-83c4-53d1257c4f13.png" alt="nndsvd" style="max-width: 100%;"></a><br> NNDSVDA<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11065596/7963016/ece399f8-0a10-11e5-99c3-a5999925ff15.png"><img src="https://cloud.githubusercontent.com/assets/11065596/7963016/ece399f8-0a10-11e5-99c3-a5999925ff15.png" alt="nndsvda" style="max-width: 100%;"></a><br> Random run 1<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11065596/7963017/ece391f6-0a10-11e5-9daf-f6311e46b02b.png"><img src="https://cloud.githubusercontent.com/assets/11065596/7963017/ece391f6-0a10-11e5-9daf-f6311e46b02b.png" alt="random_2" style="max-width: 100%;"></a><br> Random run 2<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11065596/7963018/ece405c8-0a10-11e5-8567-472caea08368.png"><img src="https://cloud.githubusercontent.com/assets/11065596/7963018/ece405c8-0a10-11e5-8567-472caea08368.png" alt="random_3" style="max-width: 100%;"></a><br> Random run 3<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11065596/7963014/ece0f9be-0a10-11e5-8537-af7ee9e75ad3.png"><img src="https://cloud.githubusercontent.com/assets/11065596/7963014/ece0f9be-0a10-11e5-8537-af7ee9e75ad3.png" alt="random_4" style="max-width: 100%;"></a></p>
<p dir="auto">We should fix the remaining sphinx warnings here:<br> <a href="https://circleci.com/gh/scikit-learn/scikit-learn/1629" rel="nofollow">https://circleci.com/gh/scikit-learn/scikit-learn/1629</a></p> <p dir="auto">and then make circle IO error if there are any warnings (grep'ing for <code class="notranslate">WARNINGS</code> I guess?).</p> <p dir="auto">This way we immediately see if someone broke anything in the docs.</p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=cnelson" rel="nofollow">Christian Nelson</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6118?redirect=false" rel="nofollow">SPR-6118</a></strong> and commented</p> <p dir="auto">Spring JDBC 3.0.0.M4 maven pom includes derby and derby.client - these should be optional dependencies.</p> <p dir="auto">Here is the relevant output from mvn dependency:tree...</p> <p dir="auto">[INFO] +- org.springframework:spring-orm:jar:3.0.0.M4:compile<br> [INFO] | +- org.slf4j:slf4j-jdk14:jar:1.5.2:compile<br> [INFO] | +- org.springframework:spring-beans:jar:3.0.0.M4:compile<br> [INFO] | +- org.springframework:spring-core:jar:3.0.0.M4:compile<br> [INFO] | | - org.springframework:spring-asm:jar:3.0.0.M4:compile<br> [INFO] | +- org.springframework:spring-jdbc:jar:3.0.0.M4:compile<br> <strong>[INFO] | | +- org.apache.derby:com.springsource.org.apache.derby:jar:10.5.1000001.764942:compile</strong><br> <strong>[INFO] | | - org.apache.derby:com.springsource.org.apache.derby.client:jar:10.5.1000001.764942:compile</strong><br> [INFO] | - org.springframework:spring-tx:jar:3.0.0.M4:compile<br> [INFO] | +- aopalliance:aopalliance:jar:1.0:compile<br> [INFO] | +- org.springframework:spring-aop:jar:3.0.0.M4:compile<br> [INFO] | - org.springframework:spring-context:jar:3.0.0.M4:compile<br> [INFO] | - org.springframework:spring-expression:jar:3.0.0.M4:compile</p> <p dir="auto">These dependencies should be configured as &lt;optional&gt;true&lt;/optional&gt; since they're not required for regular usage of spring-jdbc.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0 M4</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="398097478" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10777" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10777/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10777">#10777</a> Spring JDBC POM should declare derby dependency is optional (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=garpinc" rel="nofollow">Keith Garry Boyce</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-1412?redirect=false" rel="nofollow">SPR-1412</a></strong> and commented</p> <p dir="auto">I have a situation when I need access to the portlet name in the controller to then in turn look up data related to that data in db. I don't want a separate controller config for each portlet s it would seem if framework detected that I implement and interface requiring that then it would do the right thing and give me access to read it. What do you think?</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0 M1</p>
0
<p dir="auto">In Polish language exists letter 'ś', written by pressing rightAlt+s. In atom this combination brings up the 'Spec suite' window.<br> Worth noticing is fact, that in settings shortcut responsible for this is <strong>ctrl</strong>-alt-s, yet rightAlt+s alone brings up the window too.<br> I tried adding</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'body': 'ralt-s': '' 'ctrl-alt-s' : ''"><pre class="notranslate"><code class="notranslate">'body': 'ralt-s': '' 'ctrl-alt-s' : '' </code></pre></div> <p dir="auto">to the keymap, but it didn't fix my problem.</p> <p dir="auto">Expected change:</p> <ul dir="auto"> <li>chaning default shortcut to a non-colliding one<br> or</li> <li>making only ctrl-alt-s as hotkey and not rightAlt-s,</li> </ul>
<p dir="auto">Original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="28529842" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/1625" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/1625/hovercard" href="https://github.com/atom/atom/issues/1625">atom/atom#1625</a></p> <hr> <p dir="auto">Use <a href="https://atom.io/packages/keyboard-localization" rel="nofollow">https://atom.io/packages/keyboard-localization</a> until this issue gets fixed (should be in the Blink upstream).</p>
1
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> When using Angular 2.3.0 with Safari 9, the application does not start up at all. Instead the console shows the following error message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: (SystemJS) Strict mode does not allow function declarations in a lexically nested statement. eval@[native code] invoke@http://localhost:8000/lib/zone.js:229:31 run@http://localhost:8000/lib/zone.js:113:49 http://localhost:8000/lib/zone.js:509:60 invokeTask@http://localhost:8000/lib/zone.js:262:40 runTask@http://localhost:8000/lib/zone.js:151:57 drainMicroTaskQueue@http://localhost:8000/lib/zone.js:405:42 run@http://localhost:8000/lib/shim.js:4005:30 http://localhost:8000/lib/shim.js:4018:32 flush@http://localhost:8000/lib/shim.js:4373:12 Evaluating http://localhost:8000/lib/@angular/compiler/bundles/compiler.umd.js Error loading http://localhost:8000/lib/@angular/compiler/bundles/compiler.umd.js as &quot;@angular/compiler&quot; from http://localhost:8000/lib/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js — zone.js:672"><pre class="notranslate"><code class="notranslate">Error: (SystemJS) Strict mode does not allow function declarations in a lexically nested statement. eval@[native code] invoke@http://localhost:8000/lib/zone.js:229:31 run@http://localhost:8000/lib/zone.js:113:49 http://localhost:8000/lib/zone.js:509:60 invokeTask@http://localhost:8000/lib/zone.js:262:40 runTask@http://localhost:8000/lib/zone.js:151:57 drainMicroTaskQueue@http://localhost:8000/lib/zone.js:405:42 run@http://localhost:8000/lib/shim.js:4005:30 http://localhost:8000/lib/shim.js:4018:32 flush@http://localhost:8000/lib/shim.js:4373:12 Evaluating http://localhost:8000/lib/@angular/compiler/bundles/compiler.umd.js Error loading http://localhost:8000/lib/@angular/compiler/bundles/compiler.umd.js as "@angular/compiler" from http://localhost:8000/lib/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js — zone.js:672 </code></pre></div> <p dir="auto"><strong>Expected behavior</strong><br> Expected it, that the application works and starts up according to the <a href="https://angular.io/docs/ts/latest/guide/browser-support.html" rel="nofollow">supported browser matrix</a>.</p> <p dir="auto">The same plunkr - as shown below - works as expected in Safari 10.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> To reproduce you can use the template offered when creating a new issue: <a href="http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5" rel="nofollow">http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5</a></p> <p dir="auto">Fire it up in Safari 9 and take a look into the console.</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> macOS El Capitan 10.11.6</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 2.3.0</p> </li> <li> <p dir="auto"><strong>Browser:</strong> Safari 9.1.2</p> </li> </ul> <p dir="auto">Error may be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="194285519" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/13301" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/13301/hovercard" href="https://github.com/angular/angular/issues/13301">#13301</a></p>
0
<ul dir="auto"> <li>VSCode Version: 1.1.0</li> <li>OS Version: OS X 10.11.4</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Create a new text file <code class="notranslate">test.js</code></li> <li>Set the content to the following:</li> </ol> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let x = true ? '' : `${1}` console.log('still part of the template!')"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span> ? <span class="pl-s">''</span> : <span class="pl-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-c1">1</span><span class="pl-kos">}</span></span>`</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">'still part of the template!'</span><span class="pl-kos">)</span></pre></div> <p dir="auto">VS Code fails to parse the opening <code class="notranslate">of the template string at the end of the ternary operator correctly. It therefore sees the final</code> as an opening tick, and interprets the rest of the file as a template string:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1312873/15242549/aedfa33e-18ee-11e6-9c3b-6ddf3a019bfb.png"><img width="356" alt="screenshot 2016-05-13 09 39 32" src="https://cloud.githubusercontent.com/assets/1312873/15242549/aedfa33e-18ee-11e6-9c3b-6ddf3a019bfb.png" style="max-width: 100%;"></a></p> <p dir="auto">As a workaround you can wrap the failure case in parenthesis:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let x = true ? '' : (`${1}`) console.log('still part of the template!')"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span> ? <span class="pl-s">''</span> : <span class="pl-kos">(</span><span class="pl-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-c1">1</span><span class="pl-kos">}</span></span>`</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">'still part of the template!'</span><span class="pl-kos">)</span></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1312873/15242603/0bf29504-18ef-11e6-822b-fb97977930d0.png"><img width="365" alt="screenshot 2016-05-13 09 42 34" src="https://cloud.githubusercontent.com/assets/1312873/15242603/0bf29504-18ef-11e6-822b-fb97977930d0.png" style="max-width: 100%;"></a></p>
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/garthk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/garthk">@garthk</a> on April 8, 2016 4:30</em></p> <ul dir="auto"> <li>VSCode Version: <code class="notranslate">Version 0.10.10 (0.10.10)</code> or <code class="notranslate">Version 0.10.14-insider (0.10.14-insider) 17fa1cbb49e3c5edd5868f304a64115fcc7c9c2c</code></li> <li>OS Version: OS X <code class="notranslate">10.11.4 (15E65)</code></li> <li><code class="notranslate">javascript.validate.enable</code> set either <code class="notranslate">true</code> or <code class="notranslate">false</code></li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Open a new Code – Insiders window</li> <li>Paste in the following JavaScript</li> <li>Observe</li> </ol> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function test1(x) { const defaultValue = `${x}`; const value = x ? x : y; console.log('so far, so good'); } function test2(x) { const value = !x ? `${x}` : x; console.log('so far, so good'); } function test3(x) { const value = x ? x : `${x}`; // this comment is coloured as if it's part of the template literal console.log('this entire line, too'); } // and this one"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">test1</span><span class="pl-kos">(</span><span class="pl-s1">x</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">defaultValue</span> <span class="pl-c1">=</span> <span class="pl-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">x</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">value</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span> ? <span class="pl-s1">x</span> : <span class="pl-s1">y</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">'so far, so good'</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">test2</span><span class="pl-kos">(</span><span class="pl-s1">x</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">value</span> <span class="pl-c1">=</span> <span class="pl-c1">!</span><span class="pl-s1">x</span> ? <span class="pl-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">x</span><span class="pl-kos">}</span></span>`</span> : <span class="pl-s1">x</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">'so far, so good'</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">test3</span><span class="pl-kos">(</span><span class="pl-s1">x</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">value</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span> ? <span class="pl-s1">x</span> : <span class="pl-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">x</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">;</span> <span class="pl-c">// this comment is coloured as if it's part of the template literal</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">'this entire line, too'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c">// and this one</span></pre></div> <p dir="auto">If I'm getting this right:</p> <ul dir="auto"> <li><code class="notranslate">test1</code> shows <code class="notranslate">code</code> knows when a template literal ends, usually</li> <li><code class="notranslate">test2</code> shows <code class="notranslate">code</code> still knows when a template literal ends if it's the first <em>AssignmentExpression</em> in a ternary</li> <li><code class="notranslate">test3</code> shows <code class="notranslate">code</code> somehow misses the end of a template literal as the second <em>AssignmentExpression</em> in a ternary, highlighting from then on as a string</li> </ul> <p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="146810193" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/5090" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/5090/hovercard" href="https://github.com/microsoft/vscode/issues/5090">microsoft/vscode#5090</a></em></p>
1
<p dir="auto"><a href="http://2ality.com/2017/02/ecmascript-2018.html" rel="nofollow">ECMAScript 2018 was finalized</a>, what do we need to enable these features by default for <code class="notranslate">preset-env</code>?</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="SyntaxError: /path/to/file.js: Support for the experimental syntax 'objectRestSpread' isn't currently enabled (11:9): 10 | { &gt; 11 | ...example, | ^ 12 | key: 'value', 13 | },"><pre class="notranslate">SyntaxError: /path/to/file.js: Support <span class="pl-k">for</span> the experimental syntax <span class="pl-s"><span class="pl-pds">'</span>objectRestSpread<span class="pl-pds">'</span></span> isn<span class="pl-s"><span class="pl-pds">'</span>t currently enabled (11:9):</span> <span class="pl-s"></span> <span class="pl-s"> 10 | {</span> <span class="pl-s">&gt; 11 | ...example,</span> <span class="pl-s"> | ^</span> <span class="pl-s"> 12 | key: <span class="pl-pds">'</span></span>value<span class="pl-s"><span class="pl-pds">'</span>,</span> <span class="pl-s"> 13 | },</span></pre></div> <p dir="auto">The <code class="notranslate">proposal</code> keyword was removed from <code class="notranslate">@babel/plugin-syntax-object-rest-spread</code> package name but <code class="notranslate">babel-preset-env/data/plugins.json</code> still have:</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/babel/babel/blob/6f3be3a5438739453510ea969136894c9cae12d8/packages/babel-preset-env/data/plugins.json#L232">babel/packages/babel-preset-env/data/plugins.json</a> </p> <p class="mb-0 color-fg-muted"> Line 232 in <a data-pjax="true" class="commit-tease-sha" href="/babel/babel/commit/6f3be3a5438739453510ea969136894c9cae12d8">6f3be3a</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="L232" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="232"></td> <td id="LC232" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-ent">"proposal-object-rest-spread"</span>: { </td> </tr> </tbody></table> </div> </div> <p></p>
<p dir="auto">Hi there,</p> <p dir="auto">a simple module just reexport a module fails.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export * from './some-module';"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-c1">*</span> <span class="pl-k">from</span> <span class="pl-s">'./some-module'</span><span class="pl-kos">;</span></pre></div> <p dir="auto">My .babelrc looks like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;presets&quot;: [&quot;es2015&quot;, &quot;stage-1&quot;], &quot;plugins&quot;: [&quot;transform-async-to-generator&quot;] }"><pre class="notranslate"><code class="notranslate">{ "presets": ["es2015", "stage-1"], "plugins": ["transform-async-to-generator"] } </code></pre></div> <p dir="auto">This should contain the required export-extensions transform.</p> <p dir="auto">The error message looks like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ./node_modules/.bin/babel test.js Error: test.js: Invariant Violation: To get a node path the parent needs to exist at Object.invariant [as default] (/home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/node_modules/invariant/invariant.js:44:15) at Function.get (/home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/path/index.js:82:27) at TraversalContext.create (/home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/context.js:73:30) at NodePath._containerInsert (/home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/path/modification.js:80:32) at NodePath._containerInsertBefore (/home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/path/modification.js:138:15) at NodePath.insertBefore (/home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/path/modification.js:57:19) at BlockScoping.wrapClosure (/home/markusw/source/ankara/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:485:21) at BlockScoping.run (/home/markusw/source/ankara/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:385:12) at PluginPass.Loop (/home/markusw/source/ankara/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:89:36) at /home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/visitors.js:271:19"><pre class="notranslate"><code class="notranslate">$ ./node_modules/.bin/babel test.js Error: test.js: Invariant Violation: To get a node path the parent needs to exist at Object.invariant [as default] (/home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/node_modules/invariant/invariant.js:44:15) at Function.get (/home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/path/index.js:82:27) at TraversalContext.create (/home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/context.js:73:30) at NodePath._containerInsert (/home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/path/modification.js:80:32) at NodePath._containerInsertBefore (/home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/path/modification.js:138:15) at NodePath.insertBefore (/home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/path/modification.js:57:19) at BlockScoping.wrapClosure (/home/markusw/source/ankara/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:485:21) at BlockScoping.run (/home/markusw/source/ankara/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:385:12) at PluginPass.Loop (/home/markusw/source/ankara/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:89:36) at /home/markusw/source/ankara/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/visitors.js:271:19 </code></pre></div> <p dir="auto">Any hint on this?</p>
0
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# coding: utf-8 import pandas as pd import numpy as np frame = pd.read_csv(&quot;table.csv&quot;, engine=&quot;python&quot;, parse_dates=['since']) print frame d = pd.pivot_table(frame, index=pd.TimeGrouper(key='since', freq='1d'), values=[&quot;value&quot;], columns=['id'], aggfunc=np.sum, fill_value=0) print d print &quot;^that is not what I expected&quot; frame = pd.read_csv(&quot;table2.csv&quot;, engine=&quot;python&quot;, parse_dates=['since']) # add some values to a day print frame d = pd.pivot_table(frame, index=pd.TimeGrouper(key='since', freq='1d'), values=[&quot;value&quot;], columns=['id'], aggfunc=np.sum, fill_value=0) print d"><pre class="notranslate"><span class="pl-c"># coding: utf-8</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">frame</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-s">"table.csv"</span>, <span class="pl-s1">engine</span><span class="pl-c1">=</span><span class="pl-s">"python"</span>, <span class="pl-s1">parse_dates</span><span class="pl-c1">=</span>[<span class="pl-s">'since'</span>]) <span class="pl-k">print</span> <span class="pl-s1">frame</span> <span class="pl-s1">d</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">pivot_table</span>(<span class="pl-s1">frame</span>, <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-v">TimeGrouper</span>(<span class="pl-s1">key</span><span class="pl-c1">=</span><span class="pl-s">'since'</span>, <span class="pl-s1">freq</span><span class="pl-c1">=</span><span class="pl-s">'1d'</span>), <span class="pl-s1">values</span><span class="pl-c1">=</span>[<span class="pl-s">"value"</span>], <span class="pl-s1">columns</span><span class="pl-c1">=</span>[<span class="pl-s">'id'</span>], <span class="pl-s1">aggfunc</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">sum</span>, <span class="pl-s1">fill_value</span><span class="pl-c1">=</span><span class="pl-c1">0</span>) <span class="pl-k">print</span> <span class="pl-s1">d</span> <span class="pl-k">print</span> <span class="pl-s">"^that is not what I expected"</span> <span class="pl-s1">frame</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-s">"table2.csv"</span>, <span class="pl-s1">engine</span><span class="pl-c1">=</span><span class="pl-s">"python"</span>, <span class="pl-s1">parse_dates</span><span class="pl-c1">=</span>[<span class="pl-s">'since'</span>]) <span class="pl-c"># add some values to a day</span> <span class="pl-k">print</span> <span class="pl-s1">frame</span> <span class="pl-s1">d</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">pivot_table</span>(<span class="pl-s1">frame</span>, <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-v">TimeGrouper</span>(<span class="pl-s1">key</span><span class="pl-c1">=</span><span class="pl-s">'since'</span>, <span class="pl-s1">freq</span><span class="pl-c1">=</span><span class="pl-s">'1d'</span>), <span class="pl-s1">values</span><span class="pl-c1">=</span>[<span class="pl-s">"value"</span>], <span class="pl-s1">columns</span><span class="pl-c1">=</span>[<span class="pl-s">'id'</span>], <span class="pl-s1">aggfunc</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">sum</span>, <span class="pl-s1">fill_value</span><span class="pl-c1">=</span><span class="pl-c1">0</span>) <span class="pl-k">print</span> <span class="pl-s1">d</span></pre></div> <p dir="auto">The following data is the contents of <code class="notranslate">table.csv</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;id&quot;,&quot;since&quot;,&quot;value&quot; &quot;81&quot;,&quot;2015-01-31 07:00:00+00:00&quot;,&quot;2200.0000&quot; &quot;81&quot;,&quot;2015-02-01 07:00:00+00:00&quot;,&quot;2200.0000&quot;"><pre class="notranslate"><code class="notranslate">"id","since","value" "81","2015-01-31 07:00:00+00:00","2200.0000" "81","2015-02-01 07:00:00+00:00","2200.0000" </code></pre></div> <p dir="auto">This is <code class="notranslate">table2.csv</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;id&quot;,&quot;since&quot;,&quot;value&quot; &quot;81&quot;,&quot;2015-01-31 07:00:00+00:00&quot;,&quot;2200.0000&quot; &quot;81&quot;,&quot;2015-01-31 08:00:00+00:00&quot;,&quot;2200.0000&quot; &quot;81&quot;,&quot;2015-01-31 09:00:00+00:00&quot;,&quot;2200.0000&quot; &quot;81&quot;,&quot;2015-02-01 07:00:00+00:00&quot;,&quot;2200.0000&quot;"><pre class="notranslate"><code class="notranslate">"id","since","value" "81","2015-01-31 07:00:00+00:00","2200.0000" "81","2015-01-31 08:00:00+00:00","2200.0000" "81","2015-01-31 09:00:00+00:00","2200.0000" "81","2015-02-01 07:00:00+00:00","2200.0000" </code></pre></div> <p dir="auto">The output of print after pivoting <code class="notranslate">table.csv</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" id value &lt;pandas.tseries.resample.TimeGrouper object at 0x7fc595f96c10&gt; 81 2200 id 81 2200"><pre class="notranslate"><code class="notranslate"> id value &lt;pandas.tseries.resample.TimeGrouper object at 0x7fc595f96c10&gt; 81 2200 id 81 2200 </code></pre></div> <p dir="auto">I would expect something like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" value id 81 since 2015-01-31 2200 2015-02-01 2200"><pre class="notranslate"><code class="notranslate"> value id 81 since 2015-01-31 2200 2015-02-01 2200 </code></pre></div> <p dir="auto">I can trace the problem to here:</p> <p dir="auto"><a href="https://github.com/pydata/pandas/blob/62529cca28e9c8652ddf7cca3aa6d41d4e30bc0e/pandas/tools/pivot.py#L114">https://github.com/pydata/pandas/blob/62529cca28e9c8652ddf7cca3aa6d41d4e30bc0e/pandas/tools/pivot.py#L114</a> the index created by groupby already has the object there.</p> <p dir="auto">I can't figure anything else. What is the problem, any fixes?</p> <p dir="auto">Thanks.</p>
<p dir="auto">The following code seems to raise an error, since the result object does not make sense (well, at least to me):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [61]: import datetime In [62]: import pandas as pd In [63]: df = pd.DataFrame.from_records ( [[datetime.datetime(2014,9,10),1234,&quot;start&quot;], [datetime.datetime(2013,10,10),1234,&quot;start&quot;]], columns = [&quot;date&quot;, &quot;change&quot;, &quot;event&quot;] ) In [64]: df Out[64]: date change event 0 2014-09-10 1234 start 1 2013-10-10 1234 start In [65]: ts = df.set_index('date') In [66]: ts Out[66]: change event date 2014-09-10 1234 start 2013-10-10 1234 start In [67]: byperiod = ts.groupby([pd.TimeGrouper(freq=&quot;M&quot;), &quot;event&quot;], as_index=False) In [68]: byperiod.groups Out[68]: {&lt;pandas.tseries.resample.TimeGrouper at 0xab6bcaec&gt;: [Timestamp('2014-09-10 00:00:00')], 'event': [Timestamp('2013-10-10 00:00:00')]}"><pre class="notranslate"><code class="notranslate">In [61]: import datetime In [62]: import pandas as pd In [63]: df = pd.DataFrame.from_records ( [[datetime.datetime(2014,9,10),1234,"start"], [datetime.datetime(2013,10,10),1234,"start"]], columns = ["date", "change", "event"] ) In [64]: df Out[64]: date change event 0 2014-09-10 1234 start 1 2013-10-10 1234 start In [65]: ts = df.set_index('date') In [66]: ts Out[66]: change event date 2014-09-10 1234 start 2013-10-10 1234 start In [67]: byperiod = ts.groupby([pd.TimeGrouper(freq="M"), "event"], as_index=False) In [68]: byperiod.groups Out[68]: {&lt;pandas.tseries.resample.TimeGrouper at 0xab6bcaec&gt;: [Timestamp('2014-09-10 00:00:00')], 'event': [Timestamp('2013-10-10 00:00:00')]} </code></pre></div> <p dir="auto">I would expect, for Out[68], two groups, one for each (date, event) pair.</p> <p dir="auto">Am I wring, or this is a bug?</p>
1
<ul dir="auto"> <li><strong>Electron Version:</strong> <ul dir="auto"> <li>v5.0.0-beta.5</li> </ul> </li> <li><strong>Operating System:</strong> <ul dir="auto"> <li>Windows 10 Pro.</li> </ul> </li> <li><strong>Last Known Working Electron version:</strong>: <ul dir="auto"> <li>4.x (latest)</li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">When I perfrom a GET-request using <code class="notranslate">http</code> or <code class="notranslate">https</code> built-in library, I expect the app to keep running after the request completes.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">When performing a GET request to an arbitrary host, the app crashes after <strong>a few seconds after completing the request</strong>. Usually ranges between 5 and 20 seconds.</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto"><a href="https://github.com/haroldiedema/electron-5x-http-crash">https://github.com/haroldiedema/electron-5x-http-crash</a></p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/haroldiedema/electron-5x-http-crash $ npm install $ node_modules/.bin/electron ."><pre class="notranslate">$ git clone https://github.com/haroldiedema/electron-5x-http-crash $ npm install $ node_modules/.bin/electron <span class="pl-c1">.</span></pre></div> <p dir="auto">Sit back and wait for a few seconds for the app to crash with exit code 127. (or exit code 1 if started from npm or yarn).</p> <h3 dir="auto">Screenshots</h3> <p dir="auto">N/A</p> <h3 dir="auto">Additional Information</h3> <p dir="auto">I think this might have something to do with either:<br> A) Electron not handling the closing of sockets correctly anymore, or<br> B) The garbage collector kicking in and cleaning up the socket resource which makes electron crash.</p> <p dir="auto">Then again, that is purely speculation on my end.</p>
<ul dir="auto"> <li><strong>Electron Version</strong>: <ul dir="auto"> <li>5.0.0-beta (all)</li> </ul> </li> <li><strong>Operating System</strong>: <ul dir="auto"> <li>Ubuntu 18.10, Linux 4.18, x64</li> </ul> </li> <li><strong>Last known working Electron version</strong> (if applicable): <ul dir="auto"> <li>4.0.5</li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Google API should work as it they are meant to.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">Any Google API calls may crash renderer process (even if they are run on Worker thread).<br> The request may be done and the answer given, but immediately or after several seconds the renderer process may crash.</p> <h3 dir="auto">To Reproduce</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/ruslang02/youtube-electron-crash-example $ npm install electron@beta $ npm start || electron ."><pre class="notranslate">$ git clone https://github.com/ruslang02/youtube-electron-crash-example $ npm install electron@beta $ npm start <span class="pl-k">||</span> electron <span class="pl-c1">.</span></pre></div> <p dir="auto">Version 5 will randomly crash, version 4: doesn't</p> <h3 dir="auto">Additional Information</h3> <p dir="auto">May be a Node.JS bug, but not sure</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.6.1</li> <li>Operating System version: Linux version 3.10.0-693.el7.x86_64 (<a href="mailto:[email protected]">[email protected]</a>) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) )</li> <li>Java version: 1.8.0_171</li> <li>zk &amp; zk client version: 3.4.11</li> <li>curator version: 4.0.1</li> </ul> <h3 dir="auto">不定时出现zookeeper session timeout,重连后消费端引用<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/reference/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/reference">@reference</a> 为空,日志如下</h3> <h3 dir="auto">消费端jvm日志</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="04:22:37,427 WARN [main-SendThread(hostname:2181)][zookeeper.ClientCnxn:1111] - Client session timed out, have not heard from server in 33959ms for sessionid 0x10000018d38000b 04:23:07,081 INFO [main-SendThread(hostname:2181)][zookeeper.ClientCnxn:1159] - Client session timed out, have not heard from server in 33959ms for sessionid 0x10000018d38000b, closing socket connection and attempting reconnect 04:23:09,992 INFO [main-EventThread][state.ConnectionStateManager:237] - State change: SUSPENDED 04:23:10,186 INFO [main-SendThread(hostname:2181)][zookeeper.ClientCnxn:1035] - Opening socket connection to server hostname/172.16.10.121:2181. Will not attempt to authenticate using SASL (unknown error) 04:23:10,804 INFO [main-SendThread(hostname:2181)][zookeeper.ClientCnxn:877] - Socket connection established to hostname/172.16.10.121:2181, initiating session 04:23:10,998 WARN [main-SendThread(hostname:2181)][zookeeper.ClientCnxn:1288] - Unable to reconnect to ZooKeeper service, session 0x10000018d38000b has expired 04:23:11,066 INFO [main-SendThread(hostname:2181)][zookeeper.ClientCnxn:1157] - Unable to reconnect to ZooKeeper service, session 0x10000018d38000b has expired, closing socket connection 04:23:11,164 WARN [main-EventThread][curator.ConnectionState:372] - Session expired event received 04:23:12,502 INFO [main-EventThread][zookeeper.ZooKeeper:441] - Initiating client connection, connectString=hostname:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@67f639d3 04:23:13,599 INFO [main-SendThread(hostname:2181)][zookeeper.ClientCnxn:1035] - Opening socket connection to server hostname/172.16.10.121:2181. Will not attempt to authenticate using SASL (unknown error) 04:23:13,671 INFO [main-SendThread(hostname:2181)][zookeeper.ClientCnxn:877] - Socket connection established to hostname/172.16.10.121:2181, initiating session 04:23:13,771 INFO [main-SendThread(hostname:2181)][zookeeper.ClientCnxn:1302] - Session establishment complete on server hostname/172.16.10.121:2181, sessionid = 0x10000018d38002b, negotiated timeout = 40000 04:23:13,672 INFO [main-EventThread][state.ConnectionStateManager:237] - State change: LOST 04:23:13,960 INFO [main-EventThread][state.ConnectionStateManager:237] - State change: RECONNECTED 04:23:14,708 INFO [main-EventThread][zookeeper.ClientCnxn:520] - EventThread shut down for session: 0x10000018d38000b"><pre class="notranslate"><code class="notranslate">04:22:37,427 WARN [main-SendThread(hostname:2181)][zookeeper.ClientCnxn:1111] - Client session timed out, have not heard from server in 33959ms for sessionid 0x10000018d38000b 04:23:07,081 INFO [main-SendThread(hostname:2181)][zookeeper.ClientCnxn:1159] - Client session timed out, have not heard from server in 33959ms for sessionid 0x10000018d38000b, closing socket connection and attempting reconnect 04:23:09,992 INFO [main-EventThread][state.ConnectionStateManager:237] - State change: SUSPENDED 04:23:10,186 INFO [main-SendThread(hostname:2181)][zookeeper.ClientCnxn:1035] - Opening socket connection to server hostname/172.16.10.121:2181. Will not attempt to authenticate using SASL (unknown error) 04:23:10,804 INFO [main-SendThread(hostname:2181)][zookeeper.ClientCnxn:877] - Socket connection established to hostname/172.16.10.121:2181, initiating session 04:23:10,998 WARN [main-SendThread(hostname:2181)][zookeeper.ClientCnxn:1288] - Unable to reconnect to ZooKeeper service, session 0x10000018d38000b has expired 04:23:11,066 INFO [main-SendThread(hostname:2181)][zookeeper.ClientCnxn:1157] - Unable to reconnect to ZooKeeper service, session 0x10000018d38000b has expired, closing socket connection 04:23:11,164 WARN [main-EventThread][curator.ConnectionState:372] - Session expired event received 04:23:12,502 INFO [main-EventThread][zookeeper.ZooKeeper:441] - Initiating client connection, connectString=hostname:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@67f639d3 04:23:13,599 INFO [main-SendThread(hostname:2181)][zookeeper.ClientCnxn:1035] - Opening socket connection to server hostname/172.16.10.121:2181. Will not attempt to authenticate using SASL (unknown error) 04:23:13,671 INFO [main-SendThread(hostname:2181)][zookeeper.ClientCnxn:877] - Socket connection established to hostname/172.16.10.121:2181, initiating session 04:23:13,771 INFO [main-SendThread(hostname:2181)][zookeeper.ClientCnxn:1302] - Session establishment complete on server hostname/172.16.10.121:2181, sessionid = 0x10000018d38002b, negotiated timeout = 40000 04:23:13,672 INFO [main-EventThread][state.ConnectionStateManager:237] - State change: LOST 04:23:13,960 INFO [main-EventThread][state.ConnectionStateManager:237] - State change: RECONNECTED 04:23:14,708 INFO [main-EventThread][zookeeper.ClientCnxn:520] - EventThread shut down for session: 0x10000018d38000b </code></pre></div> <h3 dir="auto">zookeeper服务器日志</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2018-09-12 02:36:05,355 [myid:] - INFO [SessionTracker:ZooKeeperServer@354] - Expiring session 0x10000018dc20000, timeout of 40000ms exceeded 2018-09-12 02:36:05,356 [myid:] - INFO [SessionTracker:ZooKeeperServer@354] - Expiring session 0x10000018dc20002, timeout of 40000ms exceeded 2018-09-12 02:36:05,356 [myid:] - INFO [SessionTracker:ZooKeeperServer@354] - Expiring session 0x10000018dc20003, timeout of 40000ms exceeded 2018-09-12 02:36:05,356 [myid:] - INFO [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@487] - Processed session termination for sessionid: 0x10000018dc20000 2018-09-12 02:36:05,356 [myid:] - INFO [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@487] - Processed session termination for sessionid: 0x10000018dc20002 2018-09-12 02:36:05,357 [myid:] - INFO [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@487] - Processed session termination for sessionid: 0x10000018dc20003 2018-09-12 02:39:41,884 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@215] - Accepted socket connection from /172.16.10.123:33164 2018-09-12 02:39:41,888 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@938] - Client attempting to establish new session at /172.16.10.123:33164 2018-09-12 02:39:41,996 [myid:] - INFO [SyncThread:0:ZooKeeperServer@683] - Established session 0x10000018d380001 with negotiated timeout 40000 for client /172.16.10.123:33164"><pre class="notranslate"><code class="notranslate">2018-09-12 02:36:05,355 [myid:] - INFO [SessionTracker:ZooKeeperServer@354] - Expiring session 0x10000018dc20000, timeout of 40000ms exceeded 2018-09-12 02:36:05,356 [myid:] - INFO [SessionTracker:ZooKeeperServer@354] - Expiring session 0x10000018dc20002, timeout of 40000ms exceeded 2018-09-12 02:36:05,356 [myid:] - INFO [SessionTracker:ZooKeeperServer@354] - Expiring session 0x10000018dc20003, timeout of 40000ms exceeded 2018-09-12 02:36:05,356 [myid:] - INFO [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@487] - Processed session termination for sessionid: 0x10000018dc20000 2018-09-12 02:36:05,356 [myid:] - INFO [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@487] - Processed session termination for sessionid: 0x10000018dc20002 2018-09-12 02:36:05,357 [myid:] - INFO [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@487] - Processed session termination for sessionid: 0x10000018dc20003 2018-09-12 02:39:41,884 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@215] - Accepted socket connection from /172.16.10.123:33164 2018-09-12 02:39:41,888 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@938] - Client attempting to establish new session at /172.16.10.123:33164 2018-09-12 02:39:41,996 [myid:] - INFO [SyncThread:0:ZooKeeperServer@683] - Established session 0x10000018d380001 with negotiated timeout 40000 for client /172.16.10.123:33164 </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.4.1</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Actual Result</h3> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/apache/dubbo/blob/839d2a604e629ea9e96b964be09ae221e85312ba/dubbo-common/src/main/java/org/apache/dubbo/rpc/model/ApplicationModel.java#L80">dubbo/dubbo-common/src/main/java/org/apache/dubbo/rpc/model/ApplicationModel.java</a> </p> <p class="mb-0 color-fg-muted"> Line 80 in <a data-pjax="true" class="commit-tease-sha" href="/apache/dubbo/commit/839d2a604e629ea9e96b964be09ae221e85312ba">839d2a6</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="L80" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="80"></td> <td id="LC80" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">public</span> <span class="pl-k">static</span> <span class="pl-smi">void</span> <span class="pl-en">iniFrameworkExts</span>() { </td> </tr> </tbody></table> </div> </div> <p></p> <h3 dir="auto">Expected Result</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="initFrameworkExts"><pre class="notranslate"><code class="notranslate">initFrameworkExts </code></pre></div>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=brunohansen" rel="nofollow">Bruno Hansen</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9334?redirect=false" rel="nofollow">SPR-9334</a></strong> and commented</p> <p dir="auto">New support for Jackson 2.X because of changing of packages:</p> <p dir="auto">Jackson reference:<br> <a href="http://wiki.fasterxml.com/JacksonRelease20#Changing_Java_packages" rel="nofollow">http://wiki.fasterxml.com/JacksonRelease20#Changing_Java_packages</a></p> <p dir="auto">Spring forum reference:<br> <a href="http://forum.springsource.org/showthread.php?125213-Support-for-Jackson-2-0&amp;p=408474#post408474" rel="nofollow">http://forum.springsource.org/showthread.php?125213-Support-for-Jackson-2-0&amp;p=408474#post408474</a></p> <hr> <p dir="auto"><strong>Affects:</strong> 3.2 M1, 3.2 M2</p> <p dir="auto"><strong>Reference URL:</strong> <a href="http://forum.springsource.org/showthread.php?125213-Support-for-Jackson-2-0&amp;p=408474#post408474" rel="nofollow">http://forum.springsource.org/showthread.php?125213-Support-for-Jackson-2-0&amp;p=408474#post408474</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="398118501" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13940" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13940/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13940">#13940</a> Use Jackson 2.0 for Jackson based json processing such as MappingJacksonJsonView (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=xun.wang.us" rel="nofollow">Xun Wang</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9302?redirect=false" rel="nofollow">SPR-9302</a></strong> and commented</p> <p dir="auto">Due to recent release of Jackson 2.0, hope it is on the road map to give Spring user the option to use Jackson 2.0 for Jackson related json functions. Jackson 2.x has different package name for its classes to let code with 1.x be able to coexist. Maybe a new set of the Spring classes need to be created for the same reason for those who like to use the 2.x while others can remain on 1.x. For example MappingJacksonJsonView remains but with MappingJacksonJsonView2 for the 2.x Jackson. I believe someone has better idea how to get it done.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.5</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/19613/MappingJacksonHttpMessageConverter.patch" rel="nofollow">MappingJacksonHttpMessageConverter.patch</a> (<em>1.65 kB</em>)</li> </ul> <p dir="auto"><strong>Sub-tasks:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398151195" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14141" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14141/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14141">#14141</a> Backport "Use Jackson 2.0 for Jackson based json processing such as MappingJacksonJsonView"</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="398118720" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13972" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13972/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13972">#13972</a> Support for Jackson 2.X (<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="398154570" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14589" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14589/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14589">#14589</a> Add support for jackson 2.0 message converters MappingJacksonHttpMessageConverter refers to the older ObjectMapper package and methods (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto">9 votes, 10 watchers</p>
1
<p dir="auto">All of the below testing was done with Fiddler. User and password proxy auth in Fiddler was enabled the default way by doing Rules-&gt;Require Proxy Authentication which requires user be '1' and password be '1'. The code below does not contain the https section of the proxy as it's largely identical.</p> <p dir="auto">If a proxy is set on the session without user and password and Fiddler auth is off, Fiddler is used correctly:<br> <code class="notranslate">session.proxies['http'] = 'http://127.0.0.1:8888'.format(proxy_string) session.request(....)</code></p> <p dir="auto">If a proxy is set on the session with user and password, Fiddler returns proxy auth failures:<br> <code class="notranslate">session.proxies['http'] = 'http://1:[email protected]:8888'.format(proxy_string) session.request(....)</code></p> <p dir="auto">If I do exactly the same thing but send the proxy with the request directly, both cases work.<br> <code class="notranslate">proxies = {} proxies['http'] = 'http://1:[email protected]:8888'.format(proxy_string) session.request(...., proxies=proxies)</code></p>
<p dir="auto">When subscribing to a Server Sent Events endpoint, I notice an error given the processing of a heartbeat. Heartbeats in SSE can be sent as an empty line. Consider the following SSE reply for chunked transfer encoding:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 00000000 48 54 54 50 2f 31 2e 31 20 32 30 30 20 4f 4b 0d HTTP/1.1 200 OK. 00000010 0a 53 65 72 76 65 72 3a 20 6f 70 65 6e 72 65 73 .Server: openres 00000020 74 79 2f 31 2e 39 2e 31 35 2e 31 0d 0a 44 61 74 ty/1.9.1 5.1..Dat 00000030 65 3a 20 46 72 69 2c 20 32 38 20 4f 63 74 20 32 e: Fri, 28 Oct 2 00000040 30 31 36 20 30 32 3a 33 39 3a 35 34 20 47 4d 54 016 02:3 9:54 GMT 00000050 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 ..Conten t-Type: 00000060 74 65 78 74 2f 65 76 65 6e 74 2d 73 74 72 65 61 text/eve nt-strea 00000070 6d 0d 0a 54 72 61 6e 73 66 65 72 2d 45 6e 63 6f m..Trans fer-Enco 00000080 64 69 6e 67 3a 20 63 68 75 6e 6b 65 64 0d 0a 43 ding: ch unked..C 00000090 6f 6e 6e 65 63 74 69 6f 6e 3a 20 6b 65 65 70 2d onnectio n: keep- 000000A0 61 6c 69 76 65 0d 0a 0d 0a alive... . 000000A9 31 0d 0a 0a 0d 0a 1....."><pre class="notranslate"><code class="notranslate"> 00000000 48 54 54 50 2f 31 2e 31 20 32 30 30 20 4f 4b 0d HTTP/1.1 200 OK. 00000010 0a 53 65 72 76 65 72 3a 20 6f 70 65 6e 72 65 73 .Server: openres 00000020 74 79 2f 31 2e 39 2e 31 35 2e 31 0d 0a 44 61 74 ty/1.9.1 5.1..Dat 00000030 65 3a 20 46 72 69 2c 20 32 38 20 4f 63 74 20 32 e: Fri, 28 Oct 2 00000040 30 31 36 20 30 32 3a 33 39 3a 35 34 20 47 4d 54 016 02:3 9:54 GMT 00000050 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 ..Conten t-Type: 00000060 74 65 78 74 2f 65 76 65 6e 74 2d 73 74 72 65 61 text/eve nt-strea 00000070 6d 0d 0a 54 72 61 6e 73 66 65 72 2d 45 6e 63 6f m..Trans fer-Enco 00000080 64 69 6e 67 3a 20 63 68 75 6e 6b 65 64 0d 0a 43 ding: ch unked..C 00000090 6f 6e 6e 65 63 74 69 6f 6e 3a 20 6b 65 65 70 2d onnectio n: keep- 000000A0 61 6c 69 76 65 0d 0a 0d 0a alive... . 000000A9 31 0d 0a 0a 0d 0a 1..... </code></pre></div> <p dir="auto">With the last line, the <code class="notranslate">31</code> indicates that there is just one byte to receive (ASCII <code class="notranslate">1</code>). The chunked size is then followed by a CRLF and then the empty line (<code class="notranslate">LF</code>), followed again by a CRLF.</p> <p dir="auto">This appears to cause the following stacktrace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ... File &quot;/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/utils.py&quot;, line 377, in stream_decode_response_unicode for chunk in iterator: File &quot;/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/models.py&quot;, line 676, in generate for chunk in self.raw.stream(chunk_size, decode_content=True): File &quot;/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/packages/urllib3/response.py&quot;, line 353, in stream for line in self.read_chunked(amt, decode_content=decode_content): File &quot;/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/packages/urllib3/response.py&quot;, line 502, in read_chunked self._update_chunk_length() File &quot;/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/packages/urllib3/response.py&quot;, line 448, in _update_chunk_length line = self._fp.fp.readline() AttributeError: 'NoneType' object has no attribute 'readline'"><pre class="notranslate"><code class="notranslate"> ... File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/utils.py", line 377, in stream_decode_response_unicode for chunk in iterator: File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/models.py", line 676, in generate for chunk in self.raw.stream(chunk_size, decode_content=True): File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/packages/urllib3/response.py", line 353, in stream for line in self.read_chunked(amt, decode_content=decode_content): File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/packages/urllib3/response.py", line 502, in read_chunked self._update_chunk_length() File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/packages/urllib3/response.py", line 448, in _update_chunk_length line = self._fp.fp.readline() AttributeError: 'NoneType' object has no attribute 'readline' </code></pre></div> <p dir="auto">What I'm left wondering is whether chunked responses that only contain a newline cause the requests library a problem.</p> <p dir="auto">I'm using requests 2.11.1.</p>
0
<p dir="auto">I've created the <code class="notranslate">_app.js</code> file exactly as the example in the documentation, and tried to build it, but i got a big error.</p> <p dir="auto">This is my _app.js</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import App, { Container } from &quot;next/app&quot;; import React from &quot;react&quot;; import { CSSTransition, TransitionGroup } from &quot;react-transition-group&quot;; import Layout from &quot;../components/App&quot;; export default class MyApp extends App { static async getInitialProps({ Component, router, ctx }) { let pageProps = {}; if (Component.getInitialProps) { pageProps = await Component.getInitialProps(ctx); } console.log(ctx, &quot;rendering!&quot;); return { pageProps }; } render() { const { Component, pageProps } = this.props; return ( &lt;Container&gt; &lt;Layout&gt; &lt;TransitionGroup&gt; &lt;CSSTransition key={this.props.router.route} classNames=&quot;fade&quot; timeout={2000}&gt; &lt;Component {...pageProps} /&gt; &lt;/CSSTransition&gt; &lt;/TransitionGroup&gt; &lt;/Layout&gt; &lt;style jsx global&gt;{`...`}&lt;/style&gt; &lt;/Container&gt; ); } }"><pre class="notranslate"><code class="notranslate">import App, { Container } from "next/app"; import React from "react"; import { CSSTransition, TransitionGroup } from "react-transition-group"; import Layout from "../components/App"; export default class MyApp extends App { static async getInitialProps({ Component, router, ctx }) { let pageProps = {}; if (Component.getInitialProps) { pageProps = await Component.getInitialProps(ctx); } console.log(ctx, "rendering!"); return { pageProps }; } render() { const { Component, pageProps } = this.props; return ( &lt;Container&gt; &lt;Layout&gt; &lt;TransitionGroup&gt; &lt;CSSTransition key={this.props.router.route} classNames="fade" timeout={2000}&gt; &lt;Component {...pageProps} /&gt; &lt;/CSSTransition&gt; &lt;/TransitionGroup&gt; &lt;/Layout&gt; &lt;style jsx global&gt;{`...`}&lt;/style&gt; &lt;/Container&gt; ); } } </code></pre></div> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Project built up to run <code class="notranslate">yarn start</code></p> <h2 dir="auto">Current Behavior</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="yarn run v1.5.1 $ next build &gt; Using external babel configuration &gt; Location: &quot;/Users/facundogordillo/OneDrive/clinical-web-next/.babelrc&quot; &gt; Failed to build { Error: (client) ./pages/_app.js Module not found: Error: Can't resolve 'next/app' in '/Users/facundogordillo/OneDrive/clinical-web-next/pages' resolve 'next/app' in '/Users/facundogordillo/OneDrive/clinical-web-next/pages' Parsed request is a module using description file: /Users/facundogordillo/OneDrive/clinical-web-next/package.json (relative path: ./pages) aliased with mapping 'next': '/Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next' to '/Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next/app' using description file: /Users/facundogordillo/OneDrive/clinical-web-next/package.json (relative path: ./pages) Field 'browser' doesn't contain a valid alias configuration after using description file: /Users/facundogordillo/OneDrive/clinical-web-next/package.json (relative path: ./pages) using description file: /Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next/package.json (relative path: ./app) no extension Field 'browser' doesn't contain a valid alias configuration /Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next/app doesn't exist .js Field 'browser' doesn't contain a valid alias configuration /Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next/app.js doesn't exist .jsx Field 'browser' doesn't contain a valid alias configuration /Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next/app.jsx doesn't exist .json Field 'browser' doesn't contain a valid alias configuration /Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next/app.json doesn't exist as directory /Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next/app doesn't exist [/Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next/app] [/Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next/app.js] [/Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next/app.jsx] [/Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next/app.json] [/Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next/app]"><pre class="notranslate"><code class="notranslate">yarn run v1.5.1 $ next build &gt; Using external babel configuration &gt; Location: "/Users/facundogordillo/OneDrive/clinical-web-next/.babelrc" &gt; Failed to build { Error: (client) ./pages/_app.js Module not found: Error: Can't resolve 'next/app' in '/Users/facundogordillo/OneDrive/clinical-web-next/pages' resolve 'next/app' in '/Users/facundogordillo/OneDrive/clinical-web-next/pages' Parsed request is a module using description file: /Users/facundogordillo/OneDrive/clinical-web-next/package.json (relative path: ./pages) aliased with mapping 'next': '/Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next' to '/Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next/app' using description file: /Users/facundogordillo/OneDrive/clinical-web-next/package.json (relative path: ./pages) Field 'browser' doesn't contain a valid alias configuration after using description file: /Users/facundogordillo/OneDrive/clinical-web-next/package.json (relative path: ./pages) using description file: /Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next/package.json (relative path: ./app) no extension Field 'browser' doesn't contain a valid alias configuration /Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next/app doesn't exist .js Field 'browser' doesn't contain a valid alias configuration /Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next/app.js doesn't exist .jsx Field 'browser' doesn't contain a valid alias configuration /Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next/app.jsx doesn't exist .json Field 'browser' doesn't contain a valid alias configuration /Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next/app.json doesn't exist as directory /Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next/app doesn't exist [/Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next/app] [/Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next/app.js] [/Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next/app.jsx] [/Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next/app.json] [/Users/facundogordillo/OneDrive/clinical-web-next/node_modules/next/app] </code></pre></div> <h2 dir="auto">Context</h2> <p dir="auto">.babelrc</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;presets&quot;: [&quot;next/babel&quot;], &quot;plugins&quot;: [&quot;import-static-files&quot;] }"><pre class="notranslate"><code class="notranslate">{ "presets": ["next/babel"], "plugins": ["import-static-files"] } </code></pre></div> <p dir="auto">I don't have a next.config.js file.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>5.1.0</td> </tr> <tr> <td>node</td> <td>9.11.1</td> </tr> <tr> <td>OS</td> <td>MacOS High Sierra</td> </tr> <tr> <td>browser</td> <td>Firefox Developer Edition</td> </tr> </tbody> </table>
<p dir="auto">I'm trying to integrate Flow with my current next project I notice there is a issue with<br> getInitialProps method. Flow complains:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1383250/33230671-198946dc-d1e8-11e7-8732-afaf163fbcbb.png"><img width="579" alt="screen shot 2017-11-25 at 13 49 09" src="https://user-images.githubusercontent.com/1383250/33230671-198946dc-d1e8-11e7-8732-afaf163fbcbb.png" style="max-width: 100%;"></a></p> <p dir="auto">I'm a little bit confused do I have to specify<br> <code class="notranslate">static getInitialProps: (ctx: {pathname: string, query: any, req?: any, res?: any, jsonPageRes?: any, err?: any}) =&gt; Promise&lt;any&gt;; </code><br> for every page or it could be done with next.js.flow file?<br> I see there is definition within the file</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="declare module &quot;next/document&quot; { declare export var Head: Class&lt;React$Component&lt;any, any&gt;&gt;; declare export var Main: Class&lt;React$Component&lt;any, any&gt;&gt;; declare export var NextScript: Class&lt;React$Component&lt;any, any&gt;&gt;; declare export default Class&lt;React$Component&lt;any, any&gt;&gt; &amp; { getInitialProps: (ctx: {pathname: string, query: any, req?: any, res?: any, jsonPageRes?: any, err?: any}) =&gt; Promise&lt;any&gt;; renderPage(cb: Function): void; }; }"><pre class="notranslate"><code class="notranslate">declare module "next/document" { declare export var Head: Class&lt;React$Component&lt;any, any&gt;&gt;; declare export var Main: Class&lt;React$Component&lt;any, any&gt;&gt;; declare export var NextScript: Class&lt;React$Component&lt;any, any&gt;&gt;; declare export default Class&lt;React$Component&lt;any, any&gt;&gt; &amp; { getInitialProps: (ctx: {pathname: string, query: any, req?: any, res?: any, jsonPageRes?: any, err?: any}) =&gt; Promise&lt;any&gt;; renderPage(cb: Function): void; }; } </code></pre></div> <p dir="auto">But it seems this definition already have some problems. Please note I tried with flow-bin version specified in the example, but I also tried with newest flow-bin and it seems the same.</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">I think this has to work automatically if it's well defined within the next.js.flow file</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Take with-flow example</li> <li>Change index.js page to be statefull component and add getInitialProps to it</li> <li>run yarn flow</li> </ol> <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>latest</td> </tr> <tr> <td>node</td> <td>8.7.0</td> </tr> <tr> <td>OS</td> <td>OSX</td> </tr> </tbody> </table>
0
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/16669905/12421276/08f54666-be87-11e5-90c0-94eb70be19c8.png"><img src="https://cloud.githubusercontent.com/assets/16669905/12421276/08f54666-be87-11e5-90c0-94eb70be19c8.png" alt="fcc-print" style="max-width: 100%;"></a></p> <p dir="auto">Anytime I click inside the code editor, a "copy / paste" popup appears, obscuring the code.</p> <p dir="auto">How do I get rid of it?</p>
<p dir="auto">Hey guys,</p> <p dir="auto">I just noticed a new feature in the code editor today. Its great to have for copying and pasting code to ask questions, but it can get in the way if I am just doing regular copy and pasting.</p> <p dir="auto">Would a better solution to this be to hold down shift + highlight the section as a way to access the menu?</p> <p dir="auto">What do you guys think?</p>
1
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alexanderby/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alexanderby">@alexanderby</a> on November 19, 2015 9:35</em></p> <p dir="auto">When formatting JavaScript or TypeScript, comments placed between parts of multi-line expressions are placed wrong.<br> Expected to look like</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="doStuff() .then() // Comment .then();"><pre class="notranslate"><span class="pl-en">doStuff</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c">// Comment</span> <span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">but actually is</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="doStuff() .then() // Comment .then();"><pre class="notranslate"><span class="pl-en">doStuff</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c">// Comment</span> <span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="117775495" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/184" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/184/hovercard" href="https://github.com/microsoft/vscode/issues/184">microsoft/vscode#184</a></em></p>
<p dir="auto">To reproduce:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="declare var _: any; function chainer() { _.chain() // something here .then() // something here .then() // something here .then(); }"><pre class="notranslate"><span class="pl-k">declare</span> <span class="pl-k">var</span> <span class="pl-s1">_</span>: <span class="pl-smi">any</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-en">chainer</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">_</span><span class="pl-kos">.</span><span class="pl-en">chain</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c">// something here</span> <span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c">// something here </span> <span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c">// something here</span> <span class="pl-kos">.</span><span class="pl-en">then</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">Format the code. You get</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" declare var _: any; function chainer() { _.chain() // something here .then() // something here .then() // something here .then(); }"><pre class="notranslate"><span class="pl-k">declare</span> <span class="pl-k">var</span> <span class="pl-s1">_</span>: <span class="pl-smi">any</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-en">chainer</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">_</span><span class="pl-kos">.</span><span class="pl-en">chain</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c">// something here</span> <span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c">// something here </span> <span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c">// something here</span> <span class="pl-kos">.</span><span class="pl-en">then</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">Observe the unindented comments.</p>
1
<p dir="auto"><code class="notranslate">&lt;input type='number' defaultValue={someValue}/&gt;</code> does not work correctly in Chrome. When user type in a decimal point <code class="notranslate">.</code>, the point will disappear and the caret will be be reset to the beginning of the input. If you keep typing in <code class="notranslate">.</code> twice, the value of input will disappear. However, if a input has no defaultValue, it seems to work fine.</p> <p dir="auto">I've put together a fiddle page to demo the bug: <a href="https://jsfiddle.net/sc3wpujs/2/" rel="nofollow">https://jsfiddle.net/sc3wpujs/2/</a></p> <p dir="auto">I think it has something to do with the internal state management of an uncontrolled component. When the first <code class="notranslate">.</code> is typed, it does not get to <code class="notranslate">target.value</code> (chrome may have trimmed the "unnecessary" <code class="notranslate">.</code> from the value because it's type is <code class="notranslate">number</code>). React pushing <code class="notranslate">target.value</code> back to input causing the <code class="notranslate">.</code> to disappear and caret position reset. Now if two <code class="notranslate">.</code> are typed in, the value is no longer a valid number and Chrome may return <code class="notranslate">''</code> for <code class="notranslate">target.value</code>, causing the input to be reset.</p>
<p dir="auto">This appears to have been introduced in a new Chrome version, but I can't find any reference to where.</p> <p dir="auto">Affected/Tested Browsers (OS X):</p> <ul dir="auto"> <li>Chrome 51.0.2704.106 (64-bit)</li> <li>Opera 39.0.2256.15</li> </ul> <p dir="auto">Unaffected Browsers:</p> <ul dir="auto"> <li>Safari 9.1</li> <li>Firefox 49</li> </ul> <p dir="auto">Backspacing in an input element with <code class="notranslate">value</code> or <code class="notranslate">defaultValue</code> set causes some very odd behavior. Once a decimal point is gone, it can't easily be re-added.</p> <p dir="auto">Example:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1197375/16786390/1d722fd4-485a-11e6-8969-780d4e4e9752.gif"><img src="https://cloud.githubusercontent.com/assets/1197375/16786390/1d722fd4-485a-11e6-8969-780d4e4e9752.gif" alt="react-input-bug" data-animated-image="" style="max-width: 100%;"></a></p> <p dir="auto">In this example, I simply backspaced twice. On the second backspace, when I expect <code class="notranslate">3.</code> to be showing, the input instead reads <code class="notranslate">3</code> and the cursor has moved to the beginning. The next two jumps are my attempts to add another decimal point.</p> <p dir="auto">Fiddle: <a href="https://jsfiddle.net/kmqz6kw8/" rel="nofollow">https://jsfiddle.net/kmqz6kw8/</a></p> <p dir="auto">Tested with React 15.2.</p> <p dir="auto">Notes: This only occurs when <code class="notranslate">value</code> or <code class="notranslate">defaultValue</code> is set. If neither is set, the input behaves properly. We are currently working around this issue by (unfortunately) setting the input value on <code class="notranslate">componentDidMount</code> via a ref.</p>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.1.0</li> <li>Operating System / Platform =&gt; Mac OS Mojave 10.14</li> <li>Compiler =&gt; n/a python 3.7</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto"><a href="https://docs.opencv.org/4.1.0/dd/dd7/tutorial_morph_lines_detection.html" rel="nofollow">https://docs.opencv.org/4.1.0/dd/dd7/tutorial_morph_lines_detection.html</a></p> <p dir="auto">python version of tutorial throws the following error:<br> File "ExtractHorzVert.py", line 104, in <br> main()<br> File "ExtractHorzVert.py", line 53, in main<br> horizontalStructure = cv.getStructuringElement(cv.MORPH_RECT, (horizontal_size, 1))<br> TypeError: integer argument expected, got float</p> <h5 dir="auto">Steps to reproduce</h5> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" horizontal_size = cols / 30 horizontalStructure = cv.getStructuringElement(cv.MORPH_RECT, (horizontal_size, 1)) "><pre class="notranslate"> <span class="pl-s1">horizontal_size</span> <span class="pl-c1">=</span> <span class="pl-s1">cols</span> <span class="pl-c1">/</span> <span class="pl-c1">30</span> <span class="pl-s1">horizontalStructure</span> <span class="pl-c1">=</span> <span class="pl-s1">cv</span>.<span class="pl-en">getStructuringElement</span>(<span class="pl-s1">cv</span>.<span class="pl-v">MORPH_RECT</span>, (<span class="pl-s1">horizontal_size</span>, <span class="pl-c1">1</span>)) </pre></div>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; :3.4</li> <li>Operating System / Platform =&gt; :Windows 64 Bit / python</li> <li>Compiler =&gt; :(python 3.6)</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">OpenCV writes a hdr file with header starting with "#?RGBE". But many programs suppose "#?RADIANCE" and don't work on files with "#?RGBE". Would you change this header line to "#?RADIANCE"?</p>
0
<p dir="auto">I've been messing with it all night to see if I can isolate the problem.</p> <p dir="auto">What I've come up with is it seems to fire partially, but the function call doesn't bubble up to any of the Table components.</p> <p dir="auto">In <code class="notranslate">table-row.js</code> the following code runs when I click a TableRowColumn:<br> (lines 179 to 183)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="_onCellClick: function _onCellClick(e, columnIndex) { if (this.props.selectable &amp;&amp; this.props.onCellClick) this.props.onCellClick(e, this.props.rowNumber, columnIndex); e.ctrlKey = true; this._onRowClick(e); },"><pre class="notranslate"><code class="notranslate">_onCellClick: function _onCellClick(e, columnIndex) { if (this.props.selectable &amp;&amp; this.props.onCellClick) this.props.onCellClick(e, this.props.rowNumber, columnIndex); e.ctrlKey = true; this._onRowClick(e); }, </code></pre></div> <p dir="auto">This does then call <code class="notranslate">_onRowClick</code> in <code class="notranslate">table-row.js</code>:<br> (lines 166 to 169)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="_onRowClick: function _onRowClick(e) { console.log(&quot;table-row&quot;) //Ignore this. My test logging. if (this.props.onRowClick) this.props.onRowClick(e, this.props.rowNumber); },"><pre class="notranslate"><code class="notranslate">_onRowClick: function _onRowClick(e) { console.log("table-row") //Ignore this. My test logging. if (this.props.onRowClick) this.props.onRowClick(e, this.props.rowNumber); }, </code></pre></div> <p dir="auto">My component code looks like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;Table fixedHeader={this.state.fixedHeader} selectable={this.state.selectable} onRowClick={this._handleClick.bind(this)} &gt; &lt;TableHeader enableSelectAll={this.state.enableSelectAll} displaySelectAll={this.state.displaySelectAll} adjustForCheckbox={this.state.adjustForCheckbox}&gt; &lt;TableRow displayRowCheckbox={this.state.displayRowCheckbox} selectable={false}&gt; &lt;TableHeaderColumn&gt;Filename&lt;/TableHeaderColumn&gt; &lt;TableHeaderColumn&gt;Experiment&lt;/TableHeaderColumn&gt; &lt;TableHeaderColumn&gt;Date created&lt;/TableHeaderColumn&gt; &lt;/TableRow&gt; &lt;/TableHeader&gt; &lt;TableBody showRowHover={this.state.showRowHover} displayRowCheckbox={this.state.displayRowCheckbox}&gt; {this.props.rows.map(function(row) { return ( &lt;TableRow selectable={this.state.selectable} key={row.name}&gt; &lt;TableRowColumn&gt;{row.name}&lt;/TableRowColumn&gt; &lt;TableRowColumn&gt;{row.experiment}&lt;/TableRowColumn&gt; &lt;TableRowColumn&gt;{row.created}&lt;/TableRowColumn&gt; &lt;/TableRow&gt; ); }, this)} // you can pass an arg to define 'this' in the callback! &lt;/TableBody&gt; &lt;/Table&gt;"><pre class="notranslate"><code class="notranslate">&lt;Table fixedHeader={this.state.fixedHeader} selectable={this.state.selectable} onRowClick={this._handleClick.bind(this)} &gt; &lt;TableHeader enableSelectAll={this.state.enableSelectAll} displaySelectAll={this.state.displaySelectAll} adjustForCheckbox={this.state.adjustForCheckbox}&gt; &lt;TableRow displayRowCheckbox={this.state.displayRowCheckbox} selectable={false}&gt; &lt;TableHeaderColumn&gt;Filename&lt;/TableHeaderColumn&gt; &lt;TableHeaderColumn&gt;Experiment&lt;/TableHeaderColumn&gt; &lt;TableHeaderColumn&gt;Date created&lt;/TableHeaderColumn&gt; &lt;/TableRow&gt; &lt;/TableHeader&gt; &lt;TableBody showRowHover={this.state.showRowHover} displayRowCheckbox={this.state.displayRowCheckbox}&gt; {this.props.rows.map(function(row) { return ( &lt;TableRow selectable={this.state.selectable} key={row.name}&gt; &lt;TableRowColumn&gt;{row.name}&lt;/TableRowColumn&gt; &lt;TableRowColumn&gt;{row.experiment}&lt;/TableRowColumn&gt; &lt;TableRowColumn&gt;{row.created}&lt;/TableRowColumn&gt; &lt;/TableRow&gt; ); }, this)} // you can pass an arg to define 'this' in the callback! &lt;/TableBody&gt; &lt;/Table&gt; </code></pre></div> <p dir="auto">I'm able to get onCellClick to work just fine, but onRowClick doesn't work if I place it on the <code class="notranslate">&lt;Table/&gt;, &lt;TableBody/&gt; or &lt;TableRow/&gt;</code></p> <p dir="auto">One of the things I've noticed is that <code class="notranslate">table.js</code> doesn't make any mention of onRowClick. <code class="notranslate">table-body.js</code> makes some mention of <code class="notranslate">onRowClick</code>, but it has different intentions than the similar <code class="notranslate">onCellClick</code> code in the same file.</p> <p dir="auto">In <code class="notranslate">table-body.js</code> lines 194 to 203:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="_onRowClick(e, rowNumber) { console.log(&quot;poop&quot;) e.stopPropagation(); if (this.props.selectable) { // Prevent text selection while selecting rows. window.getSelection().removeAllRanges(); this._processRowSelection(e, rowNumber); } },"><pre class="notranslate"><code class="notranslate">_onRowClick(e, rowNumber) { console.log("poop") e.stopPropagation(); if (this.props.selectable) { // Prevent text selection while selecting rows. window.getSelection().removeAllRanges(); this._processRowSelection(e, rowNumber); } }, </code></pre></div> <p dir="auto">(lines 293 to 296):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" _onCellClick(e, rowNumber, columnNumber) { e.stopPropagation(); if (this.props.onCellClick) this.props.onCellClick(rowNumber, this._getColumnId(columnNumber)); },"><pre class="notranslate"><code class="notranslate"> _onCellClick(e, rowNumber, columnNumber) { e.stopPropagation(); if (this.props.onCellClick) this.props.onCellClick(rowNumber, this._getColumnId(columnNumber)); }, </code></pre></div> <p dir="auto">I've tried messing with material-ul source a bit, but haven't yet found a fix. I'm missing something, but I don't know what I'm missing.</p>
<p dir="auto">I'm working on implementing sorting functionality and cannot for the life of me get <code class="notranslate">onClick</code> to fire for <code class="notranslate">&lt;TableHeaderColumn&gt;</code>. I see that there is an onClick prop in the docs, but no luck.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;Table fixedHeader={true} &gt; &lt;TableHeader adjustForCheckbox={false} displaySelectAll={false}&gt; &lt;TableRow&gt; &lt;TableHeaderColumn style={{width: '7%'}}&gt;&lt;/TableHeaderColumn&gt; &lt;TableHeaderColumn style={{width: '12%'}} tooltip=&quot;Click to sort&quot;&gt;Name&lt;/TableHeaderColumn&gt; &lt;TableHeaderColumn onClick={(row, col) =&gt; console.log(col)} style={{width: '17%'}} tooltip=&quot;Click to sort&quot;&gt;Email&lt;/TableHeaderColumn&gt; &lt;TableHeaderColumn style={{width: '7%'}} tooltip=&quot;Click to sort&quot;&gt;Role&lt;/TableHeaderColumn&gt; &lt;TableHeaderColumn style={{width: '10%'}} tooltip=&quot;Click to sort&quot;&gt;Status&lt;/TableHeaderColumn&gt; &lt;TableHeaderColumn style={{width: '2%'}}&gt;&lt;/TableHeaderColumn&gt; &lt;/TableRow&gt; &lt;/TableHeader&gt; &lt;TableBody selectable={true} showRowHover={true} displayRowCheckbox={false} style={{overflow: 'visible'}}&gt; {rows} &lt;/TableBody&gt; &lt;/Table&gt;"><pre class="notranslate"><code class="notranslate">&lt;Table fixedHeader={true} &gt; &lt;TableHeader adjustForCheckbox={false} displaySelectAll={false}&gt; &lt;TableRow&gt; &lt;TableHeaderColumn style={{width: '7%'}}&gt;&lt;/TableHeaderColumn&gt; &lt;TableHeaderColumn style={{width: '12%'}} tooltip="Click to sort"&gt;Name&lt;/TableHeaderColumn&gt; &lt;TableHeaderColumn onClick={(row, col) =&gt; console.log(col)} style={{width: '17%'}} tooltip="Click to sort"&gt;Email&lt;/TableHeaderColumn&gt; &lt;TableHeaderColumn style={{width: '7%'}} tooltip="Click to sort"&gt;Role&lt;/TableHeaderColumn&gt; &lt;TableHeaderColumn style={{width: '10%'}} tooltip="Click to sort"&gt;Status&lt;/TableHeaderColumn&gt; &lt;TableHeaderColumn style={{width: '2%'}}&gt;&lt;/TableHeaderColumn&gt; &lt;/TableRow&gt; &lt;/TableHeader&gt; &lt;TableBody selectable={true} showRowHover={true} displayRowCheckbox={false} style={{overflow: 'visible'}}&gt; {rows} &lt;/TableBody&gt; &lt;/Table&gt; </code></pre></div> <p dir="auto">This was just for testing purposes, but the third <code class="notranslate">&lt;TableHeaderColumn&gt;</code> does nothing when clicked. It also doesn't fire when passed a <code class="notranslate">this.handleClick</code> or other callback. onCellClick being passed to <code class="notranslate">&lt;Table&gt;</code> works when clicked on anything other than the header cells. This is using React 0.13.2 and Material-UI 0.11.0.</p>
1
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd import numpy as np idx0 = range(2) idx1 = np.repeat(range(2), 2) midx = pd.MultiIndex( levels=[idx0, idx1], labels=[ np.repeat(range(len(idx0)), len(idx1)), np.tile(range(len(idx1)), len(idx0)) ], names=['idx0', 'idx1'] ) df = pd.DataFrame( [ [i**2/float(j), 'example{}'.format(i), i**3/float(j)] for j in range(1, len(idx0) + 1) for i in range(1, len(idx1) + 1) ], columns=['col0', 'col1', 'col2'], index=midx ) example = df.loc[[(0, 1)]]"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-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">idx0</span> <span class="pl-c1">=</span> <span class="pl-en">range</span>(<span class="pl-c1">2</span>) <span class="pl-s1">idx1</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">repeat</span>(<span class="pl-en">range</span>(<span class="pl-c1">2</span>), <span class="pl-c1">2</span>) <span class="pl-s1">midx</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">MultiIndex</span>( <span class="pl-s1">levels</span><span class="pl-c1">=</span>[<span class="pl-s1">idx0</span>, <span class="pl-s1">idx1</span>], <span class="pl-s1">labels</span><span class="pl-c1">=</span>[ <span class="pl-s1">np</span>.<span class="pl-en">repeat</span>(<span class="pl-en">range</span>(<span class="pl-en">len</span>(<span class="pl-s1">idx0</span>)), <span class="pl-en">len</span>(<span class="pl-s1">idx1</span>)), <span class="pl-s1">np</span>.<span class="pl-en">tile</span>(<span class="pl-en">range</span>(<span class="pl-en">len</span>(<span class="pl-s1">idx1</span>)), <span class="pl-en">len</span>(<span class="pl-s1">idx0</span>)) ], <span class="pl-s1">names</span><span class="pl-c1">=</span>[<span class="pl-s">'idx0'</span>, <span class="pl-s">'idx1'</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">i</span><span class="pl-c1">**</span><span class="pl-c1">2</span><span class="pl-c1">/</span><span class="pl-en">float</span>(<span class="pl-s1">j</span>), <span class="pl-s">'example{}'</span>.<span class="pl-en">format</span>(<span class="pl-s1">i</span>), <span class="pl-s1">i</span><span class="pl-c1">**</span><span class="pl-c1">3</span><span class="pl-c1">/</span><span class="pl-en">float</span>(<span class="pl-s1">j</span>)] <span class="pl-k">for</span> <span class="pl-s1">j</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">1</span>, <span class="pl-en">len</span>(<span class="pl-s1">idx0</span>) <span class="pl-c1">+</span> <span class="pl-c1">1</span>) <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">1</span>, <span class="pl-en">len</span>(<span class="pl-s1">idx1</span>) <span class="pl-c1">+</span> <span class="pl-c1">1</span>) ], <span class="pl-s1">columns</span><span class="pl-c1">=</span>[<span class="pl-s">'col0'</span>, <span class="pl-s">'col1'</span>, <span class="pl-s">'col2'</span>], <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">midx</span> ) <span class="pl-s1">example</span> <span class="pl-c1">=</span> <span class="pl-s1">df</span>.<span class="pl-s1">loc</span>[[(<span class="pl-c1">0</span>, <span class="pl-c1">1</span>)]]</pre></div> <p dir="auto">For display</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [13]: example Out[13]: col0 col1 col2 idx0 idx1 0 1 16.0 example4 64.0"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">13</span>]: <span class="pl-s1">example</span> <span class="pl-v">Out</span>[<span class="pl-c1">13</span>]: <span class="pl-s1">col0</span> <span class="pl-s1">col1</span> <span class="pl-s1">col2</span> <span class="pl-s1">idx0</span> <span class="pl-s1">idx1</span> <span class="pl-c1">0</span> <span class="pl-c1">1</span> <span class="pl-c1">16.0</span> <span class="pl-s1">example4</span> <span class="pl-c1">64.0</span></pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">Taken from this StackOverflow post:</p> <ul dir="auto"> <li><a href="https://stackoverflow.com/q/46098097/4013571" rel="nofollow">https://stackoverflow.com/q/46098097/4013571</a></li> </ul> <p dir="auto">Given the following dataframe</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" col0 col1 col2 idx0 idx1 0 0 1.0 example1 1.0 0 4.0 example2 8.0 1 9.0 example3 27.0 1 16.0 example4 64.0 1 0 0.5 example1 0.5 0 2.0 example2 4.0 1 4.5 example3 13.5 1 8.0 example4 32.0"><pre class="notranslate"> <span class="pl-s1">col0</span> <span class="pl-s1">col1</span> <span class="pl-s1">col2</span> <span class="pl-s1">idx0</span> <span class="pl-s1">idx1</span> <span class="pl-c1">0</span> <span class="pl-c1">0</span> <span class="pl-c1">1.0</span> <span class="pl-s1">example1</span> <span class="pl-c1">1.0</span> <span class="pl-c1">0</span> <span class="pl-c1">4.0</span> <span class="pl-s1">example2</span> <span class="pl-c1">8.0</span> <span class="pl-c1">1</span> <span class="pl-c1">9.0</span> <span class="pl-s1">example3</span> <span class="pl-c1">27.0</span> <span class="pl-c1">1</span> <span class="pl-c1">16.0</span> <span class="pl-s1">example4</span> <span class="pl-c1">64.0</span> <span class="pl-c1">1</span> <span class="pl-c1">0</span> <span class="pl-c1">0.5</span> <span class="pl-s1">example1</span> <span class="pl-c1">0.5</span> <span class="pl-c1">0</span> <span class="pl-c1">2.0</span> <span class="pl-s1">example2</span> <span class="pl-c1">4.0</span> <span class="pl-c1">1</span> <span class="pl-c1">4.5</span> <span class="pl-s1">example3</span> <span class="pl-c1">13.5</span> <span class="pl-c1">1</span> <span class="pl-c1">8.0</span> <span class="pl-s1">example4</span> <span class="pl-c1">32.0</span></pre></div> <p dir="auto">the <a href="https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.xs.html" rel="nofollow"><code class="notranslate">.xs</code></a> operation will select</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [121]: df.xs((0,1), level=[0,1]) Out[121]: col0 col1 col2 idx0 idx1 0 1 9.0 example3 27.0 1 16.0 example4 64.0"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">121</span>]: <span class="pl-s1">df</span>.<span class="pl-en">xs</span>((<span class="pl-c1">0</span>,<span class="pl-c1">1</span>), <span class="pl-s1">level</span><span class="pl-c1">=</span>[<span class="pl-c1">0</span>,<span class="pl-c1">1</span>]) <span class="pl-v">Out</span>[<span class="pl-c1">121</span>]: <span class="pl-s1">col0</span> <span class="pl-s1">col1</span> <span class="pl-s1">col2</span> <span class="pl-s1">idx0</span> <span class="pl-s1">idx1</span> <span class="pl-c1">0</span> <span class="pl-c1">1</span> <span class="pl-c1">9.0</span> <span class="pl-s1">example3</span> <span class="pl-c1">27.0</span> <span class="pl-c1">1</span> <span class="pl-c1">16.0</span> <span class="pl-s1">example4</span> <span class="pl-c1">64.0</span></pre></div> <p dir="auto">whilst the <a href="https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.loc.html" rel="nofollow"><code class="notranslate">.loc</code></a> operation will select</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [125]: df.loc[[(0,1)]] Out[125]: col0 col1 col2 idx0 idx1 0 1 16.0 example4 64.0"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">125</span>]: <span class="pl-s1">df</span>.<span class="pl-s1">loc</span>[[(<span class="pl-c1">0</span>,<span class="pl-c1">1</span>)]] <span class="pl-v">Out</span>[<span class="pl-c1">125</span>]: <span class="pl-s1">col0</span> <span class="pl-s1">col1</span> <span class="pl-s1">col2</span> <span class="pl-s1">idx0</span> <span class="pl-s1">idx1</span> <span class="pl-c1">0</span> <span class="pl-c1">1</span> <span class="pl-c1">16.0</span> <span class="pl-s1">example4</span> <span class="pl-c1">64.0</span></pre></div> <p dir="auto">This is highlighted even further by the following</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [149]: df.loc[pd.IndexSlice[:, 1], :] Out[149]: col0 col1 col2 idx0 idx1 0 1 9.0 example3 27.0 1 16.0 example4 64.0 In [150]: df.loc[pd.IndexSlice[0, 1], :] Out[150]: col0 16 col1 example4 col2 64 Name: (0, 1), dtype: object"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">149</span>]: <span class="pl-s1">df</span>.<span class="pl-s1">loc</span>[<span class="pl-s1">pd</span>.<span class="pl-v">IndexSlice</span>[:, <span class="pl-c1">1</span>], :] <span class="pl-v">Out</span>[<span class="pl-c1">149</span>]: <span class="pl-s1">col0</span> <span class="pl-s1">col1</span> <span class="pl-s1">col2</span> <span class="pl-s1">idx0</span> <span class="pl-s1">idx1</span> <span class="pl-c1">0</span> <span class="pl-c1">1</span> <span class="pl-c1">9.0</span> <span class="pl-s1">example3</span> <span class="pl-c1">27.0</span> <span class="pl-c1">1</span> <span class="pl-c1">16.0</span> <span class="pl-s1">example4</span> <span class="pl-c1">64.0</span> <span class="pl-v">In</span> [<span class="pl-c1">150</span>]: <span class="pl-s1">df</span>.<span class="pl-s1">loc</span>[<span class="pl-s1">pd</span>.<span class="pl-v">IndexSlice</span>[<span class="pl-c1">0</span>, <span class="pl-c1">1</span>], :] <span class="pl-v">Out</span>[<span class="pl-c1">150</span>]: <span class="pl-s1">col0</span> <span class="pl-c1">16</span> <span class="pl-s1">col1</span> <span class="pl-s1">example4</span> <span class="pl-s1">col2</span> <span class="pl-c1">64</span> <span class="pl-v">Name</span>: (<span class="pl-c1">0</span>, <span class="pl-c1">1</span>), <span class="pl-s1">dtype</span>: <span class="pl-s1">object</span></pre></div> <h4 dir="auto">Expected Output</h4> <p dir="auto">Note that this only works for this minimal example because there is only one label in level 0 index axis</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [8]: df.loc[pd.IndexSlice[:, 1], :] Out[8]: col0 col1 col2 idx0 idx1 0 1 9.0 example3 27.0 1 16.0 example4 64.0"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">8</span>]: <span class="pl-s1">df</span>.<span class="pl-s1">loc</span>[<span class="pl-s1">pd</span>.<span class="pl-v">IndexSlice</span>[:, <span class="pl-c1">1</span>], :] <span class="pl-v">Out</span>[<span class="pl-c1">8</span>]: <span class="pl-s1">col0</span> <span class="pl-s1">col1</span> <span class="pl-s1">col2</span> <span class="pl-s1">idx0</span> <span class="pl-s1">idx1</span> <span class="pl-c1">0</span> <span class="pl-c1">1</span> <span class="pl-c1">9.0</span> <span class="pl-s1">example3</span> <span class="pl-c1">27.0</span> <span class="pl-c1">1</span> <span class="pl-c1">16.0</span> <span class="pl-s1">example4</span> <span class="pl-c1">64.0</span></pre></div> <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: 2.7.13.final.0<br> python-bits: 64<br> OS: Windows<br> OS-release: 7<br> machine: AMD64<br> processor: Intel64 Family 6 Model 79 Stepping 1, GenuineIntel<br> byteorder: little<br> LC_ALL: None<br> LANG: None<br> LOCALE: None.None</p> <p dir="auto">pandas: 0.20.3<br> pytest: 3.0.7<br> pip: 9.0.1<br> setuptools: 36.2.7<br> Cython: 0.25.2<br> numpy: 1.13.1<br> scipy: 0.19.0<br> xarray: None<br> IPython: 5.3.0<br> sphinx: 1.5.6<br> patsy: 0.4.1<br> dateutil: 2.6.1<br> pytz: 2017.2<br> blosc: None<br> bottleneck: 1.2.1<br> tables: 3.2.2<br> numexpr: 2.6.2<br> feather: None<br> matplotlib: 2.0.2<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.999<br> sqlalchemy: 1.1.9<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.9.6<br> s3fs: None<br> pandas_gbq: None<br> pandas_datareader: 0.5.0</p> </details>
<p dir="auto">I have an odd issue where if I specify the axis in concat it throws the following error:</p> <p dir="auto">InvalidIndexError: Reindexing only valid with uniquely valued Index objects</p> <p dir="auto">Pandas version: 0.16.0<br> OS: Ubuntu 14.04 LTS x64</p> <p dir="auto">Here's the pickle of the data structure causing this (it's rather large, ~60 megs, but it's my real use case which caused this error)</p> <p dir="auto"><a href="https://www.dropbox.com/s/02dn99dbi6p14um/pandas_error.pickle?dl=0" rel="nofollow">https://www.dropbox.com/s/02dn99dbi6p14um/pandas_error.pickle?dl=0</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pickle import pandas as pd l = pickle.load(open('pandas_error.pickle')) scan_query = '(index &gt;= 624.306193 &amp; index &lt;= 624.326171) | (index &gt;= 624.807981 &amp; index &lt;= 624.826795) | (index &gt;= 625.309633 &amp; index &lt;= 625.32635) | (index &gt;= 628.315655 &amp; index &lt;= 628.331508) | (index &gt;= 628.815043 &amp; index &lt;= 628.83164)' # works pd.concat([i.dropna().to_frame().query(scan_query) for i in l]) # breaks #pd.concat([i.dropna().to_frame().query(scan_query) for i in l], axis=1)"><pre class="notranslate"><code class="notranslate">import pickle import pandas as pd l = pickle.load(open('pandas_error.pickle')) scan_query = '(index &gt;= 624.306193 &amp; index &lt;= 624.326171) | (index &gt;= 624.807981 &amp; index &lt;= 624.826795) | (index &gt;= 625.309633 &amp; index &lt;= 625.32635) | (index &gt;= 628.315655 &amp; index &lt;= 628.331508) | (index &gt;= 628.815043 &amp; index &lt;= 628.83164)' # works pd.concat([i.dropna().to_frame().query(scan_query) for i in l]) # breaks #pd.concat([i.dropna().to_frame().query(scan_query) for i in l], axis=1) </code></pre></div>
0
<p dir="auto">When using <code class="notranslate">Deno.listen()</code> without passing in the parameter <code class="notranslate">hostname</code>, it should listen to both ipv6 and ipv4 by default.</p> <p dir="auto">I found that currently it only listens on ipv4.</p> <p dir="auto">Deno 1.21.1</p>
<p dir="auto">After upgrading to version 1.14 this error happened when using <code class="notranslate">deno bundle</code></p> <p dir="auto">Example test.ts code:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { Application } from &quot;https://deno.land/x/[email protected]/mod.ts&quot;; const app = new Application(); app.use((ctx) =&gt; { ctx.response.body = &quot;Hello World!&quot;; }); await app.listen({ port: 8000 });"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">Application</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://deno.land/x/[email protected]/mod.ts"</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Application</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">use</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">ctx</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">ctx</span><span class="pl-kos">.</span><span class="pl-c1">response</span><span class="pl-kos">.</span><span class="pl-c1">body</span> <span class="pl-c1">=</span> <span class="pl-s">"Hello World!"</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">listen</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">port</span>: <span class="pl-c1">8000</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Commads:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno bundle test.ts out.js deno run -A out.js"><pre class="notranslate">deno bundle test.ts out.js deno run -A out.js</pre></div> <p dir="auto">Error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Uncaught ReferenceError: Cannot access 'Response' before initialization const DomResponse = Response; ^"><pre class="notranslate"><code class="notranslate">error: Uncaught ReferenceError: Cannot access 'Response' before initialization const DomResponse = Response; ^ </code></pre></div> <p dir="auto">Deno version</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno 1.14.0 (release, x86_64-apple-darwin) v8 9.4.146.15 typescript 4.4.2"><pre class="notranslate"><code class="notranslate">deno 1.14.0 (release, x86_64-apple-darwin) v8 9.4.146.15 typescript 4.4.2 </code></pre></div>
0
<ul dir="auto"> <li>Electron version: 0.37.2 + 0.36.12</li> <li>Operating system: OS X 10.11.4 (15E65)</li> </ul> <p dir="auto">The process doesn't seem to exit like <code class="notranslate">node</code> does. I've reduced it to something <code class="notranslate">babel-register</code> is doing. I'm not sure if this is a bug within babel or electron, so feel free to close this if it's a bug with babel. It's the same behavior on both 0.37.2 and 0.36.12.</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# works properly, does nothing and exits node -e &quot;require('babel-register')&quot; # hangs forever until you ctrl+c ELECTRON_RUN_AS_NODE=true node_modules/.bin/electron -e &quot;require('babel-register')&quot;"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> works properly, does nothing and exits</span> node -e <span class="pl-s"><span class="pl-pds">"</span>require('babel-register')<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> hangs forever until you ctrl+c</span> ELECTRON_RUN_AS_NODE=true node_modules/.bin/electron -e <span class="pl-s"><span class="pl-pds">"</span>require('babel-register')<span class="pl-pds">"</span></span></pre></div> <p dir="auto">A complete test:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="mkdir electron-node-hang cd electron-node-hang npm init -y npm install electron-prebuilt babel-register --save ELECTRON_RUN_AS_NODE=true node_modules/.bin/electron -e &quot;require('babel-register')&quot;"><pre class="notranslate">mkdir electron-node-hang <span class="pl-c1">cd</span> electron-node-hang npm init -y npm install electron-prebuilt babel-register --save ELECTRON_RUN_AS_NODE=true node_modules/.bin/electron -e <span class="pl-s"><span class="pl-pds">"</span>require('babel-register')<span class="pl-pds">"</span></span></pre></div>
<h2 dir="auto">Description</h2> <p dir="auto">Our project is using <code class="notranslate">child_process#fork()</code> to run npm commands, but it turns out taking much longer time than normal.<br> I haven't tested if this problem occurs when running other scripts, but as shown in the test below, running the same code in pure <code class="notranslate">node</code> behaves normally.</p> <h2 dir="auto">Reproduction</h2> <ol dir="auto"> <li>In a new folder, clone an empty app: <code class="notranslate">git clone https://github.com/atom/electron-quick-start</code></li> <li><code class="notranslate">cd</code> into that directory and install npm locally: <code class="notranslate">npm i npm</code></li> <li>Open this app: <code class="notranslate">electron .</code></li> <li>In the console, run the following code</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var npmpath=require('path').join(__dirname,'node_modules','.bin','npm'); var startTime=new Date().getTime(); var cp=require('child_process'); var child = cp.fork(npmpath,['dist-tag','ls','npm'],{stdio:'pipe',silent:true}); child.stdout.on('data', function(data) { console.log('stdout: ' + data); }); child.stderr.on('data', function(data) { console.log('stdout: ' + data); }); child.on('close', function(code) { console.log('closing code: ' + code); console.log('time: ' + (new Date().getTime()-startTime)); });"><pre class="notranslate"><code class="notranslate">var npmpath=require('path').join(__dirname,'node_modules','.bin','npm'); var startTime=new Date().getTime(); var cp=require('child_process'); var child = cp.fork(npmpath,['dist-tag','ls','npm'],{stdio:'pipe',silent:true}); child.stdout.on('data', function(data) { console.log('stdout: ' + data); }); child.stderr.on('data', function(data) { console.log('stdout: ' + data); }); child.on('close', function(code) { console.log('closing code: ' + code); console.log('time: ' + (new Date().getTime()-startTime)); }); </code></pre></div> <p dir="auto">On my computer it takes about 36 seconds,<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1596656/12667586/35996b1e-c613-11e5-9b30-cbe14d4d52f9.png"><img src="https://cloud.githubusercontent.com/assets/1596656/12667586/35996b1e-c613-11e5-9b30-cbe14d4d52f9.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">On the other hand, to test it in pure node,</p> <ol dir="auto"> <li>Save the script above in the root directory of the same app as <code class="notranslate">run.js</code></li> <li><code class="notranslate">node run.js</code></li> </ol> <p dir="auto">On my computer it takes about 1.2 seconds, which is about the same as directly running this command in command line.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1596656/12667603/7d7a64c4-c613-11e5-90be-7a2ca47d3648.png"><img src="https://cloud.githubusercontent.com/assets/1596656/12667603/7d7a64c4-c613-11e5-90be-7a2ca47d3648.png" alt="image" style="max-width: 100%;"></a></p> <h2 dir="auto">Platform</h2> <ul dir="auto"> <li>node 5.1.1</li> <li>Chrome 47.0.2526.110</li> <li>Electron 0.36.5</li> <li>OS X 10.11.3</li> </ul>
1
<p dir="auto">Long pages such as in <a href="http://doc.rust-lang.org/regex/regex/index.html" rel="nofollow">regex</a> have many examples but it's difficult to know at a glance what the documentation contains without scanning the entire document. Having a table of contents would help a lot with this.</p> <p dir="auto">Here is a list of links to different TOC styles from various places for ways it could be done:</p> <ul dir="auto"> <li><a href="https://docs.python.org/2/tutorial/introduction.html" rel="nofollow">Python 2.7</a> has one in the sidebar. Stays with you as you scroll.</li> <li><a href="https://docs.python.org/3.5/tutorial/introduction.html" rel="nofollow">Python 3.5</a> seems to be slightly cleaner but similar. Doesn't stay with you.</li> <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Functions" rel="nofollow">mozilla javascript docs</a>: is nicely in the sidebar. Follows you down the page (requires the window to be wide enough).</li> <li><a href="https://en.wikipedia.org/wiki/Cat" rel="nofollow">wikipedia</a>: in the middle of the page. Doesn't scroll with you.</li> <li><a href="http://rustbyexample.com/" rel="nofollow">gitbook</a>: stays with you. provides scrolling.</li> <li><a href="http://perldoc.perl.org/perl.html" rel="nofollow">perl</a>: looks like it's formatted like a man page.</li> </ul> <p dir="auto">I looked for some more but didn't find other good examples.</p> <p dir="auto">Of these, I like the mozilla, python 2, and gitbook TOCs best with the mozilla probably the best among them (probably because it's small and clean). However, I think the gitbook style is probably the most appropriate fit to the std libs style.</p> <p dir="auto">I've also provided a mockups of what a TOC could look like in that style which is similar to a <a href="https://internals.rust-lang.org/t/rustdoc-mockup-for-including-more-structured-content/2540" rel="nofollow">different thread</a>. Clearly, something would need to be done with the current sidebar to use this format.</p> <p dir="auto">Mockup:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4156987/9537217/e8e5fac2-4d03-11e5-9015-64ca37e752f1.png"><img src="https://cloud.githubusercontent.com/assets/4156987/9537217/e8e5fac2-4d03-11e5-9015-64ca37e752f1.png" alt="toc" style="max-width: 100%;"></a></p>
<p dir="auto">Here's a minimal code example that reproduces the error:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#![crate_name = &quot;test&quot;] #![crate_type = &quot;dylib&quot;] use std::ops::Div; pub struct Test { pub test:i32, } impl Div&lt;Test,Test&gt; for Test { fn div( &amp;self, v:&amp;Test ) -&gt; Test { Test{ test:self.test / v.test } } }"><pre class="notranslate"><span class="pl-c1">#!<span class="pl-kos">[</span>crate_name = <span class="pl-s">"test"</span><span class="pl-kos">]</span></span> <span class="pl-c1">#!<span class="pl-kos">[</span>crate_type = <span class="pl-s">"dylib"</span><span class="pl-kos">]</span></span> <span class="pl-k">use</span> std<span class="pl-kos">::</span>ops<span class="pl-kos">::</span><span class="pl-v">Div</span><span class="pl-kos">;</span> <span class="pl-k">pub</span> <span class="pl-k">struct</span> <span class="pl-smi">Test</span> <span class="pl-kos">{</span> <span class="pl-k">pub</span> <span class="pl-c1">test</span><span class="pl-kos">:</span><span class="pl-smi">i32</span><span class="pl-kos">,</span> <span class="pl-kos">}</span> <span class="pl-k">impl</span> <span class="pl-smi">Div</span><span class="pl-kos">&lt;</span><span class="pl-smi">Test</span><span class="pl-kos">,</span><span class="pl-smi">Test</span><span class="pl-kos">&gt;</span> <span class="pl-k">for</span> <span class="pl-smi">Test</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">div</span><span class="pl-kos">(</span> <span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">,</span> <span class="pl-s1">v</span><span class="pl-kos">:</span><span class="pl-c1">&amp;</span><span class="pl-smi">Test</span> <span class="pl-kos">)</span> -&gt; <span class="pl-smi">Test</span> <span class="pl-kos">{</span> <span class="pl-smi">Test</span><span class="pl-kos">{</span> <span class="pl-c1">test</span><span class="pl-kos">:</span><span class="pl-smi">self</span><span class="pl-kos">.</span><span class="pl-c1">test</span> / v<span class="pl-kos">.</span><span class="pl-c1">test</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">And part of the error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="note: D:\#dev\#compilers\Rust\bin\rustlib\i686-pc-windows-gnu\lib\libcore-4e7c5e5c.rlib(core-4e7c5e5c.o):(.text+0x6b9b): undefined reference to `rust_begin_unwind'"><pre class="notranslate"><code class="notranslate">note: D:\#dev\#compilers\Rust\bin\rustlib\i686-pc-windows-gnu\lib\libcore-4e7c5e5c.rlib(core-4e7c5e5c.o):(.text+0x6b9b): undefined reference to `rust_begin_unwind' </code></pre></div> <p dir="auto">Version:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc 0.13.0-nightly (45cbdec41 2014-11-07 00:02:18 +0000) binary: rustc commit-hash: 45cbdec4174778bf915f17561ef971c068a7fcbc commit-date: 2014-11-07 00:02:18 +0000 host: i686-pc-windows-gnu release: 0.13.0-nightly"><pre class="notranslate"><code class="notranslate">rustc 0.13.0-nightly (45cbdec41 2014-11-07 00:02:18 +0000) binary: rustc commit-hash: 45cbdec4174778bf915f17561ef971c068a7fcbc commit-date: 2014-11-07 00:02:18 +0000 host: i686-pc-windows-gnu release: 0.13.0-nightly </code></pre></div> <p dir="auto">This also happens on the x86_64 nightly</p>
0
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: 1.31.2</li> <li>Operating System: Ubuntu 22.04</li> <li>Browser: WebKit</li> </ul> <h3 dir="auto">Source code</h3> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { test } from '@playwright/test'; test('getByRole behaviour', async ({ page }) =&gt; { await page.setContent(` &lt;html&gt; &lt;body&gt; &lt;my-dialog&gt; &lt;button&gt;dont click me&lt;/button&gt; &lt;/my-dialog&gt; &lt;button&gt;click me instead&lt;/button&gt; &lt;script type=&quot;module&quot;&gt; class MyDialog extends HTMLElement { connectedCallback() { this.attachShadow({mode: 'open'}); this.shadowRoot.innerHTML = 'we dont add a slot here so the light dom is not visible' } } customElements.define('my-dialog', MyDialog); &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; `); // chrome finds 1 element, because only one is actually available to the user // webkit finds 2 elements, so strict validation fails only in webkit await page.getByRole('button').click(); // finds 2 elements, because there are two elements in the dom // strict validation fails in all browsers, as expected // await page.locator('button').click(); });"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">test</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'getByRole behaviour'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">setContent</span><span class="pl-kos">(</span><span class="pl-s">`</span> <span class="pl-s"> &lt;html&gt;</span> <span class="pl-s"> &lt;body&gt;</span> <span class="pl-s"> &lt;my-dialog&gt;</span> <span class="pl-s"> &lt;button&gt;dont click me&lt;/button&gt;</span> <span class="pl-s"> &lt;/my-dialog&gt;</span> <span class="pl-s"> &lt;button&gt;click me instead&lt;/button&gt;</span> <span class="pl-s"> &lt;script type="module"&gt;</span> <span class="pl-s"> class MyDialog extends HTMLElement {</span> <span class="pl-s"> connectedCallback() {</span> <span class="pl-s"> this.attachShadow({mode: 'open'});</span> <span class="pl-s"> this.shadowRoot.innerHTML = 'we dont add a slot here so the light dom is not visible'</span> <span class="pl-s"> }</span> <span class="pl-s"> }</span> <span class="pl-s"> customElements.define('my-dialog', MyDialog);</span> <span class="pl-s"> &lt;/script&gt;</span> <span class="pl-s"> &lt;/body&gt;</span> <span class="pl-s"> &lt;/html&gt;</span> <span class="pl-s"> `</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// chrome finds 1 element, because only one is actually available to the user</span> <span class="pl-c">// webkit finds 2 elements, so strict validation fails only in webkit</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'button'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// finds 2 elements, because there are two elements in the dom</span> <span class="pl-c">// strict validation fails in all browsers, as expected</span> <span class="pl-c">// await page.locator('button').click(); </span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Config file is the default npm init playwright@latest, strict mode enabled.</p> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>Run the test in chrome and firefox, it works</li> <li>Run the test in webkit and the click fails strict validation</li> </ul> <p dir="auto"><strong>Expected</strong><br> All browsers behave the same, ideally the test should pass for all browsers.</p> <p dir="auto"><strong>Actual</strong><br> WebKit seems to keep light-dom elements in the accessibility tree, even if they have no slot in the corresponding shadow-root. This causes getByRole to find more than one element to click on the page.</p> <p dir="auto">I am really not sure if this is a playwright issue, a playwright-webkit issues, or a webkit issue. I'd be perfectly happy with filing the issue somewhere else if we find this to be the wrong place.</p> <p dir="auto">Edit: Whoops, my copy pasta had an accidential display: none on the button, I removed that with an edit</p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.XX]</li> <li>Operating System: [All, Windows 11, Ubuntu 20, macOS 13.2, etc.]</li> <li>Browser: [All, Chromium, Firefox, WebKit]</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p> <p dir="auto">[https://github.com/your_profile/playwright_issue_title]</p> <p dir="auto">or</p> <p dir="auto"><strong>Config file</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// playwright.config.ts import { defineConfig, devices } from '@playwright/test'; export default defineConfig({ projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'], }, }, });"><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">defineConfig</span><span class="pl-kos">,</span> <span class="pl-s1">devices</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-en">defineConfig</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">projects</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'chromium'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Desktop Chrome'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos"></span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Test file (self-contained)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="it('should check the box using setChecked', async ({ page }) =&gt; { await page.setContent(`&lt;input id='checkbox' type='checkbox'&gt;&lt;/input&gt;`); await page.getByRole('checkbox').check(); await expect(page.getByRole('checkbox')).toBeChecked(); });"><pre class="notranslate"><span class="pl-en">it</span><span class="pl-kos">(</span><span class="pl-s">'should check the box using setChecked'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">setContent</span><span class="pl-kos">(</span><span class="pl-s">`&lt;input id='checkbox' type='checkbox'&gt;&lt;/input&gt;`</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'checkbox'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">check</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'checkbox'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeChecked</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>[Run the test]</li> <li>[...]</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">[Describe expected behavior]</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">[Describe actual behavior]</p>
0
<p dir="auto">The C function <code class="notranslate">malloc()</code> returns NULL (i.e. 0) if it fails to allocate memory. The return value of a <code class="notranslate">malloc()</code> call must be checked for this value before attempting to use the result. Here are places in the scipy code where this check is not made. If any of these calls fails, the result is likely to be a segmentation fault.</p> <p dir="auto"><strong>Cython</strong></p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">cluster</code><br> In the file <code class="notranslate">_optimal_leaf_ordering.pyx</code>, in the function <code class="notranslate">identify_swaps</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">interpolate</code><br> In the file <code class="notranslate">_ppoly.pyx</code>, in the functions <code class="notranslate">real_roots</code>, <code class="notranslate">croots_poly1</code> and <code class="notranslate">_croots_poly1</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">spatial</code><br> In <code class="notranslate">setlist.pxd</code>, in the function <code class="notranslate">init</code>, in the statement <code class="notranslate">setlists.sets[j] = ...</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">sparse.csgraph</code><br> File <code class="notranslate">_shortest_path.pyx</code>, in the code that creates <code class="notranslate">nodes</code> in the functions <code class="notranslate">_dijkstra_directed</code>, <code class="notranslate">_dijkstra_directed_multi</code>, <code class="notranslate">_dijkstra_undirected</code>, <code class="notranslate">_dijkstra_undirected_multi</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">_lib</code><br> In the file <code class="notranslate">_ccallback_c.pyx</code>, the result of <code class="notranslate">strdup</code> is used without checking for NULL. <code class="notranslate">strdup</code> can fail to allocate memory for the duplicated string. In that case, it returns NULL. (Note: this might be harmless. I haven't checked to see if the pointer is ever dereferenced while the capsule is in use.)</li> </ul> <p dir="auto"><strong>C</strong></p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">fftpack</code><br> In the file <code class="notranslate">fftpack.h</code>, the macro <code class="notranslate">GEN_CACHE</code> is defined. It is used in the files <code class="notranslate">convolve.c</code>, <code class="notranslate">drfft.c</code>, <code class="notranslate">zfft.c</code>,<code class="notranslate">zfftnd.c</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">ndimage</code><br> In the file <code class="notranslate">src/ni_morphology.c</code>, at line 624 (at the time of this writing): <code class="notranslate">temp-&gt;coordinates = malloc(...)</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">signal</code><br> File <code class="notranslate">sigtoolsmodule.c</code>, lines 914--927 (8 unchecked calls to malloc) and line 1096</li> </ul> <hr> <p dir="auto">We have vendored code in <code class="notranslate">sparse</code> and <code class="notranslate">spatial</code> that use <code class="notranslate">malloc</code>:</p> <ul dir="auto"> <li>The SuperLU code in <code class="notranslate">linalg/dsolve/SuperLU/SRC</code> has its own memory management code. I didn't spend time trying to figure out the memory management here. The file <code class="notranslate">cmemory.c</code> is the most relevant, and there appear to be calls to <code class="notranslate">intMalloc()</code> and <code class="notranslate">user_malloc()</code> that do not check for failure, but I didn't dig deeper to see if those functions check for failure before returning.</li> <li><code class="notranslate">spatial</code> provides a wrapper for QHull. I didn't look very deeply into how the qhull code manages memory. It looks like the function <code class="notranslate">qh_memalloc()</code> in <code class="notranslate">mem_r.c</code> will print an error and exit if it fails.</li> </ul> <p dir="auto">We should be aware of these vendored packages using malloc, but I think a thorough review of their memory management is not required. Someone can do a deep dive into either of these libraries in the future if there is ever a suspicion that they are leaking memory.</p>
<p dir="auto">My issue is about the error LinAlgError: Schur form not found. Possibly ill-conditioned raised when I use the following code. The problem is that it only happens in the first execution of the script, then it disappears. It also happens when I try to use <code class="notranslate">scipy.linalg.expm</code> and <code class="notranslate">scipy.linalg.logm</code> as it has to do with the Schur decomposition.</p> <h4 dir="auto">Reproducing code example:</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &quot;&quot;&quot; Obtains the fidelity for the QFT for n=3 for Qiskit noise model &quot;&quot;&quot; import numpy as np def fidelity(a,b): ''' Computes the fidelity of two density matrices Args: a (array): density matrix b (array): density matrix Returns: float: fidelity of a and b ''' return (np.matrix.trace(scipy.linalg.sqrtm(np.matmul(scipy.linalg.sqrtm(a),np.matmul(b,scipy.linalg.sqrtm(a))))))**2 rho0=np.array([[0.23394436+0.j , 0.11036513+0.07068888j, 0.03302341+0.1088189j , 0.02706909+0.0881958j , 0.05815633-0.01072523j, 0.02037557-0.02607218j, 0.1016744 +0.00529989j, 0.12719727+0.00524902j], [0.11036513-0.07068888j, 0.13571167+0.j , 0.05817668+0.06459554j, 0.05001153+0.03409153j, 0.01467896-0.03614299j, 0.02297974-0.02354262j, 0.05975342-0.05200195j, 0.07036336-0.04786174j], [0.03302341-0.1088189j , 0.05817668-0.06459554j, 0.14170668+0.j , 0.09006076-0.00379435j, 0.0081075 -0.02009074j, 0.00140381-0.01287842j, 0.01685588-0.05481296j, 0.02995809-0.0568339j ], [0.02706909-0.0881958j , 0.05001153-0.03409153j, 0.09006076+0.00379435j, 0.1104499 +0.j , 0.0189209 -0.01251221j, 0.00768026-0.02039591j, 0.03121948-0.0254008j , 0.03673299-0.03857761j], [0.05815633+0.01072523j, 0.01467896+0.03614299j, 0.0081075 +0.02009074j, 0.0189209 +0.01251221j, 0.0863071 +0.j , 0.04125298+0.00418091j, 0.01762221-0.00102403j, 0.03347778+0.00219727j], [0.02037557+0.02607218j, 0.02297974+0.02354262j, 0.00140381+0.01287842j, 0.00768026+0.02039591j, 0.04125298-0.00418091j, 0.06473456+0.j , 0.0410258 +0.00813802j, 0.01971775+0.01372613j], [0.1016744 -0.00529989j, 0.05975342+0.05200195j, 0.01685588+0.05481296j, 0.03121948+0.0254008j , 0.01762221+0.00102403j, 0.0410258 -0.00813802j, 0.11333211+0.j , 0.06110975+0.02015177j], [0.12719727-0.00524902j, 0.07036336+0.04786174j, 0.02995809+0.0568339j , 0.03673299+0.03857761j, 0.03347778-0.00219727j, 0.01971775-0.01372613j, 0.06110975-0.02015177j, 0.11381361+0.j ]]) rho=np.array([[ 0.17706638+0.j , 0.06659953+0.01608955j, 0.0297682 +0.01830716j, 0.00812785+0.01222738j, 0.00753445-0.00309584j, 0.00878906-0.01509603j, 0.02885946-0.0179952j , 0.04318237-0.01519775j], [ 0.06659953-0.01608955j, 0.13491143+0.j , 0.03180949+0.01096598j, 0.01931085+0.01529609j, 0.00876872-0.00343831j, 0.00969103-0.01005385j, 0.01644897-0.02258301j, 0.02629598-0.01775106j], [ 0.0297682 -0.01830716j, 0.03180949-0.01096598j, 0.12190416+0.j , 0.03262329+0.01110501j, 0.0140686 -0.00460815j, 0.00094604-0.01165771j, 0.00431993-0.02871026j, 0.01617432-0.02577718j], [ 0.00812785-0.01222738j, 0.01931085-0.01529609j, 0.03262329-0.01110501j, 0.10249498+0.j , 0.00314331-0.00964355j, 0.00564575+0.00064087j, -0.00264486-0.00935872j, 0.00440131-0.01796807j], [ 0.00753445+0.00309584j, 0.00876872+0.00343831j, 0.0140686 +0.00460815j, 0.00314331+0.00964355j, 0.10799493+0.j , 0.02676392+0.0035163j , 0.01410251+0.00034248j, 0.00727336+0.00429281j], [ 0.00878906+0.01509603j, 0.00969103+0.01005385j, 0.00094604+0.01165771j, 0.00564575-0.00064087j, 0.02676392-0.0035163j , 0.10673353+0.j , 0.01838175+0.00315348j, 0.02171156+0.01295641j], [ 0.02885946+0.0179952j , 0.01644897+0.02258301j, 0.00431993+0.02871026j, -0.00264486+0.00935872j, 0.01410251-0.00034248j, 0.01838175-0.00315348j, 0.12371487+0.j , 0.0449117 +0.01037259j], [ 0.04318237+0.01519775j, 0.02629598+0.01775106j, 0.01617432+0.02577718j, 0.00440131+0.01796807j, 0.00727336-0.00429281j, 0.02171156-0.01295641j, 0.0449117 -0.01037259j, 0.12517971+0.j ]]) fidelity=DAQC.fidelity(rho0,rho) "><pre class="notranslate"><span class="pl-s">""" Obtains the fidelity for the QFT for n=3 for Qiskit noise model """</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">def</span> <span class="pl-en">fidelity</span>(<span class="pl-s1">a</span>,<span class="pl-s1">b</span>): <span class="pl-s">''' Computes the fidelity of two density matrices</span> <span class="pl-s"> </span> <span class="pl-s"> Args:</span> <span class="pl-s"> a (array): density matrix</span> <span class="pl-s"> b (array): density matrix</span> <span class="pl-s"> </span> <span class="pl-s"> Returns:</span> <span class="pl-s"> float: fidelity of a and b</span> <span class="pl-s"> '''</span> <span class="pl-k">return</span> (<span class="pl-s1">np</span>.<span class="pl-s1">matrix</span>.<span class="pl-en">trace</span>(<span class="pl-s1">scipy</span>.<span class="pl-s1">linalg</span>.<span class="pl-en">sqrtm</span>(<span class="pl-s1">np</span>.<span class="pl-en">matmul</span>(<span class="pl-s1">scipy</span>.<span class="pl-s1">linalg</span>.<span class="pl-en">sqrtm</span>(<span class="pl-s1">a</span>),<span class="pl-s1">np</span>.<span class="pl-en">matmul</span>(<span class="pl-s1">b</span>,<span class="pl-s1">scipy</span>.<span class="pl-s1">linalg</span>.<span class="pl-en">sqrtm</span>(<span class="pl-s1">a</span>))))))<span class="pl-c1">**</span><span class="pl-c1">2</span> <span class="pl-s1">rho0</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-en">array</span>([[<span class="pl-c1">0.23394436</span><span class="pl-c1">+</span><span class="pl-c1">0.j</span> , <span class="pl-c1">0.11036513</span><span class="pl-c1">+</span><span class="pl-c1">0.07068888j</span>, <span class="pl-c1">0.03302341</span><span class="pl-c1">+</span><span class="pl-c1">0.1088189j</span> , <span class="pl-c1">0.02706909</span><span class="pl-c1">+</span><span class="pl-c1">0.0881958j</span> , <span class="pl-c1">0.05815633</span><span class="pl-c1">-</span><span class="pl-c1">0.01072523j</span>, <span class="pl-c1">0.02037557</span><span class="pl-c1">-</span><span class="pl-c1">0.02607218j</span>, <span class="pl-c1">0.1016744</span> <span class="pl-c1">+</span><span class="pl-c1">0.00529989j</span>, <span class="pl-c1">0.12719727</span><span class="pl-c1">+</span><span class="pl-c1">0.00524902j</span>], [<span class="pl-c1">0.11036513</span><span class="pl-c1">-</span><span class="pl-c1">0.07068888j</span>, <span class="pl-c1">0.13571167</span><span class="pl-c1">+</span><span class="pl-c1">0.j</span> , <span class="pl-c1">0.05817668</span><span class="pl-c1">+</span><span class="pl-c1">0.06459554j</span>, <span class="pl-c1">0.05001153</span><span class="pl-c1">+</span><span class="pl-c1">0.03409153j</span>, <span class="pl-c1">0.01467896</span><span class="pl-c1">-</span><span class="pl-c1">0.03614299j</span>, <span class="pl-c1">0.02297974</span><span class="pl-c1">-</span><span class="pl-c1">0.02354262j</span>, <span class="pl-c1">0.05975342</span><span class="pl-c1">-</span><span class="pl-c1">0.05200195j</span>, <span class="pl-c1">0.07036336</span><span class="pl-c1">-</span><span class="pl-c1">0.04786174j</span>], [<span class="pl-c1">0.03302341</span><span class="pl-c1">-</span><span class="pl-c1">0.1088189j</span> , <span class="pl-c1">0.05817668</span><span class="pl-c1">-</span><span class="pl-c1">0.06459554j</span>, <span class="pl-c1">0.14170668</span><span class="pl-c1">+</span><span class="pl-c1">0.j</span> , <span class="pl-c1">0.09006076</span><span class="pl-c1">-</span><span class="pl-c1">0.00379435j</span>, <span class="pl-c1">0.0081075</span> <span class="pl-c1">-</span><span class="pl-c1">0.02009074j</span>, <span class="pl-c1">0.00140381</span><span class="pl-c1">-</span><span class="pl-c1">0.01287842j</span>, <span class="pl-c1">0.01685588</span><span class="pl-c1">-</span><span class="pl-c1">0.05481296j</span>, <span class="pl-c1">0.02995809</span><span class="pl-c1">-</span><span class="pl-c1">0.0568339j</span> ], [<span class="pl-c1">0.02706909</span><span class="pl-c1">-</span><span class="pl-c1">0.0881958j</span> , <span class="pl-c1">0.05001153</span><span class="pl-c1">-</span><span class="pl-c1">0.03409153j</span>, <span class="pl-c1">0.09006076</span><span class="pl-c1">+</span><span class="pl-c1">0.00379435j</span>, <span class="pl-c1">0.1104499</span> <span class="pl-c1">+</span><span class="pl-c1">0.j</span> , <span class="pl-c1">0.0189209</span> <span class="pl-c1">-</span><span class="pl-c1">0.01251221j</span>, <span class="pl-c1">0.00768026</span><span class="pl-c1">-</span><span class="pl-c1">0.02039591j</span>, <span class="pl-c1">0.03121948</span><span class="pl-c1">-</span><span class="pl-c1">0.0254008j</span> , <span class="pl-c1">0.03673299</span><span class="pl-c1">-</span><span class="pl-c1">0.03857761j</span>], [<span class="pl-c1">0.05815633</span><span class="pl-c1">+</span><span class="pl-c1">0.01072523j</span>, <span class="pl-c1">0.01467896</span><span class="pl-c1">+</span><span class="pl-c1">0.03614299j</span>, <span class="pl-c1">0.0081075</span> <span class="pl-c1">+</span><span class="pl-c1">0.02009074j</span>, <span class="pl-c1">0.0189209</span> <span class="pl-c1">+</span><span class="pl-c1">0.01251221j</span>, <span class="pl-c1">0.0863071</span> <span class="pl-c1">+</span><span class="pl-c1">0.j</span> , <span class="pl-c1">0.04125298</span><span class="pl-c1">+</span><span class="pl-c1">0.00418091j</span>, <span class="pl-c1">0.01762221</span><span class="pl-c1">-</span><span class="pl-c1">0.00102403j</span>, <span class="pl-c1">0.03347778</span><span class="pl-c1">+</span><span class="pl-c1">0.00219727j</span>], [<span class="pl-c1">0.02037557</span><span class="pl-c1">+</span><span class="pl-c1">0.02607218j</span>, <span class="pl-c1">0.02297974</span><span class="pl-c1">+</span><span class="pl-c1">0.02354262j</span>, <span class="pl-c1">0.00140381</span><span class="pl-c1">+</span><span class="pl-c1">0.01287842j</span>, <span class="pl-c1">0.00768026</span><span class="pl-c1">+</span><span class="pl-c1">0.02039591j</span>, <span class="pl-c1">0.04125298</span><span class="pl-c1">-</span><span class="pl-c1">0.00418091j</span>, <span class="pl-c1">0.06473456</span><span class="pl-c1">+</span><span class="pl-c1">0.j</span> , <span class="pl-c1">0.0410258</span> <span class="pl-c1">+</span><span class="pl-c1">0.00813802j</span>, <span class="pl-c1">0.01971775</span><span class="pl-c1">+</span><span class="pl-c1">0.01372613j</span>], [<span class="pl-c1">0.1016744</span> <span class="pl-c1">-</span><span class="pl-c1">0.00529989j</span>, <span class="pl-c1">0.05975342</span><span class="pl-c1">+</span><span class="pl-c1">0.05200195j</span>, <span class="pl-c1">0.01685588</span><span class="pl-c1">+</span><span class="pl-c1">0.05481296j</span>, <span class="pl-c1">0.03121948</span><span class="pl-c1">+</span><span class="pl-c1">0.0254008j</span> , <span class="pl-c1">0.01762221</span><span class="pl-c1">+</span><span class="pl-c1">0.00102403j</span>, <span class="pl-c1">0.0410258</span> <span class="pl-c1">-</span><span class="pl-c1">0.00813802j</span>, <span class="pl-c1">0.11333211</span><span class="pl-c1">+</span><span class="pl-c1">0.j</span> , <span class="pl-c1">0.06110975</span><span class="pl-c1">+</span><span class="pl-c1">0.02015177j</span>], [<span class="pl-c1">0.12719727</span><span class="pl-c1">-</span><span class="pl-c1">0.00524902j</span>, <span class="pl-c1">0.07036336</span><span class="pl-c1">+</span><span class="pl-c1">0.04786174j</span>, <span class="pl-c1">0.02995809</span><span class="pl-c1">+</span><span class="pl-c1">0.0568339j</span> , <span class="pl-c1">0.03673299</span><span class="pl-c1">+</span><span class="pl-c1">0.03857761j</span>, <span class="pl-c1">0.03347778</span><span class="pl-c1">-</span><span class="pl-c1">0.00219727j</span>, <span class="pl-c1">0.01971775</span><span class="pl-c1">-</span><span class="pl-c1">0.01372613j</span>, <span class="pl-c1">0.06110975</span><span class="pl-c1">-</span><span class="pl-c1">0.02015177j</span>, <span class="pl-c1">0.11381361</span><span class="pl-c1">+</span><span class="pl-c1">0.j</span> ]]) <span class="pl-s1">rho</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-en">array</span>([[ <span class="pl-c1">0.17706638</span><span class="pl-c1">+</span><span class="pl-c1">0.j</span> , <span class="pl-c1">0.06659953</span><span class="pl-c1">+</span><span class="pl-c1">0.01608955j</span>, <span class="pl-c1">0.0297682</span> <span class="pl-c1">+</span><span class="pl-c1">0.01830716j</span>, <span class="pl-c1">0.00812785</span><span class="pl-c1">+</span><span class="pl-c1">0.01222738j</span>, <span class="pl-c1">0.00753445</span><span class="pl-c1">-</span><span class="pl-c1">0.00309584j</span>, <span class="pl-c1">0.00878906</span><span class="pl-c1">-</span><span class="pl-c1">0.01509603j</span>, <span class="pl-c1">0.02885946</span><span class="pl-c1">-</span><span class="pl-c1">0.0179952j</span> , <span class="pl-c1">0.04318237</span><span class="pl-c1">-</span><span class="pl-c1">0.01519775j</span>], [ <span class="pl-c1">0.06659953</span><span class="pl-c1">-</span><span class="pl-c1">0.01608955j</span>, <span class="pl-c1">0.13491143</span><span class="pl-c1">+</span><span class="pl-c1">0.j</span> , <span class="pl-c1">0.03180949</span><span class="pl-c1">+</span><span class="pl-c1">0.01096598j</span>, <span class="pl-c1">0.01931085</span><span class="pl-c1">+</span><span class="pl-c1">0.01529609j</span>, <span class="pl-c1">0.00876872</span><span class="pl-c1">-</span><span class="pl-c1">0.00343831j</span>, <span class="pl-c1">0.00969103</span><span class="pl-c1">-</span><span class="pl-c1">0.01005385j</span>, <span class="pl-c1">0.01644897</span><span class="pl-c1">-</span><span class="pl-c1">0.02258301j</span>, <span class="pl-c1">0.02629598</span><span class="pl-c1">-</span><span class="pl-c1">0.01775106j</span>], [ <span class="pl-c1">0.0297682</span> <span class="pl-c1">-</span><span class="pl-c1">0.01830716j</span>, <span class="pl-c1">0.03180949</span><span class="pl-c1">-</span><span class="pl-c1">0.01096598j</span>, <span class="pl-c1">0.12190416</span><span class="pl-c1">+</span><span class="pl-c1">0.j</span> , <span class="pl-c1">0.03262329</span><span class="pl-c1">+</span><span class="pl-c1">0.01110501j</span>, <span class="pl-c1">0.0140686</span> <span class="pl-c1">-</span><span class="pl-c1">0.00460815j</span>, <span class="pl-c1">0.00094604</span><span class="pl-c1">-</span><span class="pl-c1">0.01165771j</span>, <span class="pl-c1">0.00431993</span><span class="pl-c1">-</span><span class="pl-c1">0.02871026j</span>, <span class="pl-c1">0.01617432</span><span class="pl-c1">-</span><span class="pl-c1">0.02577718j</span>], [ <span class="pl-c1">0.00812785</span><span class="pl-c1">-</span><span class="pl-c1">0.01222738j</span>, <span class="pl-c1">0.01931085</span><span class="pl-c1">-</span><span class="pl-c1">0.01529609j</span>, <span class="pl-c1">0.03262329</span><span class="pl-c1">-</span><span class="pl-c1">0.01110501j</span>, <span class="pl-c1">0.10249498</span><span class="pl-c1">+</span><span class="pl-c1">0.j</span> , <span class="pl-c1">0.00314331</span><span class="pl-c1">-</span><span class="pl-c1">0.00964355j</span>, <span class="pl-c1">0.00564575</span><span class="pl-c1">+</span><span class="pl-c1">0.00064087j</span>, <span class="pl-c1">-</span><span class="pl-c1">0.00264486</span><span class="pl-c1">-</span><span class="pl-c1">0.00935872j</span>, <span class="pl-c1">0.00440131</span><span class="pl-c1">-</span><span class="pl-c1">0.01796807j</span>], [ <span class="pl-c1">0.00753445</span><span class="pl-c1">+</span><span class="pl-c1">0.00309584j</span>, <span class="pl-c1">0.00876872</span><span class="pl-c1">+</span><span class="pl-c1">0.00343831j</span>, <span class="pl-c1">0.0140686</span> <span class="pl-c1">+</span><span class="pl-c1">0.00460815j</span>, <span class="pl-c1">0.00314331</span><span class="pl-c1">+</span><span class="pl-c1">0.00964355j</span>, <span class="pl-c1">0.10799493</span><span class="pl-c1">+</span><span class="pl-c1">0.j</span> , <span class="pl-c1">0.02676392</span><span class="pl-c1">+</span><span class="pl-c1">0.0035163j</span> , <span class="pl-c1">0.01410251</span><span class="pl-c1">+</span><span class="pl-c1">0.00034248j</span>, <span class="pl-c1">0.00727336</span><span class="pl-c1">+</span><span class="pl-c1">0.00429281j</span>], [ <span class="pl-c1">0.00878906</span><span class="pl-c1">+</span><span class="pl-c1">0.01509603j</span>, <span class="pl-c1">0.00969103</span><span class="pl-c1">+</span><span class="pl-c1">0.01005385j</span>, <span class="pl-c1">0.00094604</span><span class="pl-c1">+</span><span class="pl-c1">0.01165771j</span>, <span class="pl-c1">0.00564575</span><span class="pl-c1">-</span><span class="pl-c1">0.00064087j</span>, <span class="pl-c1">0.02676392</span><span class="pl-c1">-</span><span class="pl-c1">0.0035163j</span> , <span class="pl-c1">0.10673353</span><span class="pl-c1">+</span><span class="pl-c1">0.j</span> , <span class="pl-c1">0.01838175</span><span class="pl-c1">+</span><span class="pl-c1">0.00315348j</span>, <span class="pl-c1">0.02171156</span><span class="pl-c1">+</span><span class="pl-c1">0.01295641j</span>], [ <span class="pl-c1">0.02885946</span><span class="pl-c1">+</span><span class="pl-c1">0.0179952j</span> , <span class="pl-c1">0.01644897</span><span class="pl-c1">+</span><span class="pl-c1">0.02258301j</span>, <span class="pl-c1">0.00431993</span><span class="pl-c1">+</span><span class="pl-c1">0.02871026j</span>, <span class="pl-c1">-</span><span class="pl-c1">0.00264486</span><span class="pl-c1">+</span><span class="pl-c1">0.00935872j</span>, <span class="pl-c1">0.01410251</span><span class="pl-c1">-</span><span class="pl-c1">0.00034248j</span>, <span class="pl-c1">0.01838175</span><span class="pl-c1">-</span><span class="pl-c1">0.00315348j</span>, <span class="pl-c1">0.12371487</span><span class="pl-c1">+</span><span class="pl-c1">0.j</span> , <span class="pl-c1">0.0449117</span> <span class="pl-c1">+</span><span class="pl-c1">0.01037259j</span>], [ <span class="pl-c1">0.04318237</span><span class="pl-c1">+</span><span class="pl-c1">0.01519775j</span>, <span class="pl-c1">0.02629598</span><span class="pl-c1">+</span><span class="pl-c1">0.01775106j</span>, <span class="pl-c1">0.01617432</span><span class="pl-c1">+</span><span class="pl-c1">0.02577718j</span>, <span class="pl-c1">0.00440131</span><span class="pl-c1">+</span><span class="pl-c1">0.01796807j</span>, <span class="pl-c1">0.00727336</span><span class="pl-c1">-</span><span class="pl-c1">0.00429281j</span>, <span class="pl-c1">0.02171156</span><span class="pl-c1">-</span><span class="pl-c1">0.01295641j</span>, <span class="pl-c1">0.0449117</span> <span class="pl-c1">-</span><span class="pl-c1">0.01037259j</span>, <span class="pl-c1">0.12517971</span><span class="pl-c1">+</span><span class="pl-c1">0.j</span> ]]) <span class="pl-s1">fidelity</span><span class="pl-c1">=</span><span class="pl-v">DAQC</span>.<span class="pl-en">fidelity</span>(<span class="pl-s1">rho0</span>,<span class="pl-s1">rho</span>)</pre></div> <h4 dir="auto">Error message:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="File &quot;C:\Users\Paula\Dropbox\Master thesis\FinalCode\ibmq_estimation\DAQC.py&quot;, line 37, in fidelity return (np.matrix.trace(scipy.linalg.sqrtm(np.matmul(scipy.linalg.sqrtm(a),np.matmul(b,scipy.linalg.sqrtm(a))))))**2 File &quot;C:\Users\Paula\Anaconda3\envs\test_env\lib\site-packages\scipy\linalg\_matfuncs_sqrtm.py&quot;, line 172, in sqrtm T, Z = schur(A, output='complex') File &quot;C:\Users\Paula\Anaconda3\envs\test_env\lib\site-packages\scipy\linalg\decomp_schur.py&quot;, line 170, in schur raise LinAlgError(&quot;Schur form not found. Possibly ill-conditioned.&quot;) LinAlgError: Schur form not found. Possibly ill-conditioned. ..."><pre class="notranslate"><code class="notranslate">File "C:\Users\Paula\Dropbox\Master thesis\FinalCode\ibmq_estimation\DAQC.py", line 37, in fidelity return (np.matrix.trace(scipy.linalg.sqrtm(np.matmul(scipy.linalg.sqrtm(a),np.matmul(b,scipy.linalg.sqrtm(a))))))**2 File "C:\Users\Paula\Anaconda3\envs\test_env\lib\site-packages\scipy\linalg\_matfuncs_sqrtm.py", line 172, in sqrtm T, Z = schur(A, output='complex') File "C:\Users\Paula\Anaconda3\envs\test_env\lib\site-packages\scipy\linalg\decomp_schur.py", line 170, in schur raise LinAlgError("Schur form not found. Possibly ill-conditioned.") LinAlgError: Schur form not found. Possibly ill-conditioned. ... </code></pre></div> <h4 dir="auto">Scipy/Numpy/Python version information:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info) 1.5.2 1.18.5 sys.version_info(major=3, minor=7, micro=7, releaselevel='final', serial=0)"><pre class="notranslate"><code class="notranslate">import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info) 1.5.2 1.18.5 sys.version_info(major=3, minor=7, micro=7, releaselevel='final', serial=0) </code></pre></div>
0
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.1.0-dev</li> <li>Operating System / Platform =&gt; Ubuntu x64 bionic 18.04.1</li> <li>Compiler =&gt; gcc 8.0.1</li> </ul> <p dir="auto"><strong>Hello, There is a bug with dot product <a href=""><code class="notranslate">dot (InputArray m) const</code></a> when used in c++ implementation, But strangely this bug is not present in python implementation.</strong></p> <h5 dir="auto">Detailed description</h5> <p dir="auto">Check following python code:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Python 3.6.8 (default, Jan 14 2019, 11:02:34) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information. &gt;&gt;&gt; import numpy as np &gt;&gt;&gt; a = np.zeros((5, 5),np.float32) &gt;&gt;&gt; b = np.ones((5,1),np.float32) &gt;&gt;&gt; a.dot(b) array([[0.], [0.], [0.], [0.], [0.]], dtype=float32)"><pre class="notranslate">Python 3.6.8 (default, Jan 14 2019, 11:02:34) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux Type <span class="pl-s"><span class="pl-pds">"</span>help<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>copyright<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>credits<span class="pl-pds">"</span></span> or <span class="pl-s"><span class="pl-pds">"</span>license<span class="pl-pds">"</span></span> <span class="pl-k">for</span> more information. <span class="pl-k">&gt;&gt;&gt;</span> import numpy as np <span class="pl-k">&gt;&gt;&gt;</span> a <span class="pl-k">=</span> np.zeros<span class="pl-s"><span class="pl-pds">((</span><span class="pl-c1">5</span><span class="pl-k">,</span> <span class="pl-c1">5</span>)<span class="pl-k">,</span>np.float<span class="pl-c1">32</span>)</span> <span class="pl-s"><span class="pl-k">&gt;&gt;&gt;</span> b <span class="pl-k">=</span> np.ones((<span class="pl-c1">5</span><span class="pl-k">,</span><span class="pl-c1">1</span>)<span class="pl-k">,</span>np.float<span class="pl-c1">32</span>)</span> <span class="pl-s"><span class="pl-k">&gt;&gt;&gt;</span> a.dot(b)</span> <span class="pl-s">array([[<span class="pl-c1">0</span>.],</span> <span class="pl-s"> [<span class="pl-c1">0</span>.],</span> <span class="pl-s"> [<span class="pl-c1">0</span>.],</span> <span class="pl-s"> [<span class="pl-c1">0</span>.],</span> <span class="pl-s"> [<span class="pl-c1">0</span>.]], dtype=float<span class="pl-c1">32</span>)</span></pre></div> <p dir="auto">which works as expected.</p> <p dir="auto">But when I tried to implement the same code in C++, it throws the following error everytime regardless of the case:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="abhishek@abhishek-HP-Pavilion-Notebook:~/testing$ ./test terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.0.1-dev) /home/abhishek/Downloads/opencv-master/modules/core/src/matmul.cpp:3274: error: (-215:Assertion failed) mat.size == size in function 'dot' Aborted (core dumped)"><pre class="notranslate">abhishek@abhishek-HP-Pavilion-Notebook:<span class="pl-k">~</span>/testing$ ./test terminate called after throwing an instance of <span class="pl-s"><span class="pl-pds">'</span>cv::Exception<span class="pl-pds">'</span></span> <span class="pl-en">what</span>(): OpenCV(4.0.1-dev) /home/abhishek/Downloads/opencv-master/modules/core/src/matmul.cpp:3274: error: (-215:Assertion failed) mat.size == size <span class="pl-k">in</span> <span class="pl-k">function</span> <span class="pl-en">'dot'</span> Aborted (core dumped)</pre></div> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">The code I'm using for c++ is as below:</p> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#include &lt;opencv2/opencv.hpp&gt; #include &lt;iostream&gt; #include &lt;cassert&gt; #include &lt;fstream&gt; int main(){ cv::Mat a = cv::Mat::ones(5,5, CV_32F); cv::Mat b = cv::Mat::ones(5,1, CV_32F); cout &lt;&lt; a.dot(b) &lt;&lt; endl ; return 0; }"><pre class="notranslate">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>opencv2/opencv.hpp<span class="pl-pds">&gt;</span></span> #<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>iostream<span class="pl-pds">&gt;</span></span> #<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>cassert<span class="pl-pds">&gt;</span></span> #<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>fstream<span class="pl-pds">&gt;</span></span> <span class="pl-k">int</span> <span class="pl-en">main</span>(){ cv::Mat a = <span class="pl-c1">cv::Mat::ones</span>(<span class="pl-c1">5</span>,<span class="pl-c1">5</span>, CV_32F); cv::Mat b = <span class="pl-c1">cv::Mat::ones</span>(<span class="pl-c1">5</span>,<span class="pl-c1">1</span>, CV_32F); cout &lt;&lt; a.<span class="pl-c1">dot</span>(b) &lt;&lt; endl ; <span class="pl-k">return</span> <span class="pl-c1">0</span>; }</pre></div>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.0.1, master branch <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/opencv/opencv/commit/e2dbf054ac5c54bd328f648d9d6146c09dfd5484/hovercard" href="https://github.com/opencv/opencv/commit/e2dbf054ac5c54bd328f648d9d6146c09dfd5484"><tt>e2dbf05</tt></a></li> <li>Operating System / Platform =&gt; Windows 64 Bit</li> <li>Compiler =&gt; Visual Studio 2017</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">The compilation of the DNN module fails with several error C2398, e.g. due to the narrowing at line 106 in op_inf_engine.cpp<br> netBuilder.connect(inpId, {layerId, i});<br> possible fix<br> netBuilder.connect(inpId, { static_castInferenceEngine::idx_t(layerId), static_castInferenceEngine::idx_t(i)});</p> <p dir="auto">Affected files are</p> <ul dir="auto"> <li>convolution_layer.cpp</li> <li>pooling_layer.cpp</li> <li>op_inf_engine.cpp</li> </ul>
0
<p dir="auto">From the master, whenever I try to open a shell into a pod running on a remote node, kubectl would completely hang.<br> Below a verbose trace.</p> <p dir="auto">Can someone point me to where else I can look?<br> I know kubectl --&gt; master --&gt; proxy --&gt; pod/container.<br> Where would this error come from.<br> This has always worked prior to upgrading to kubernetes 1.1.7 and docker 1.10.<br> I'm going to downgrade one at a time to see which upgrade broke it.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="kubectl exec --v=9 kibana-ndeps bash -it I0209 03:16:35.628245 1 debugging.go:102] curl -k -v -XGET -H &quot;User-Agent: kubectl/v1.1.7 (linux/amd64) kubernetes/e4e6878&quot; http://minux:8080/api I0209 03:16:35.639050 1 debugging.go:121] GET http://minux:8080/api 200 OK in 10 milliseconds I0209 03:16:35.639064 1 debugging.go:127] Response Headers: I0209 03:16:35.639069 1 debugging.go:130] Content-Type: application/json I0209 03:16:35.639074 1 debugging.go:130] Date: Tue, 09 Feb 2016 03:16:35 GMT I0209 03:16:35.639079 1 debugging.go:130] Content-Length: 57 I0209 03:16:35.639093 1 request.go:746] Response Body: { &quot;kind&quot;: &quot;APIVersions&quot;, &quot;versions&quot;: [ &quot;v1&quot; ] } I0209 03:16:35.639218 1 debugging.go:102] curl -k -v -XGET -H &quot;User-Agent: kubectl/v1.1.7 (linux/amd64) kubernetes/e4e6878&quot; http://minux:8080/api/v1/namespaces/default/pods/kibana-ndeps I0209 03:16:35.640083 1 debugging.go:121] GET http://minux:8080/api/v1/namespaces/default/pods/kibana-ndeps 200 OK in 0 milliseconds I0209 03:16:35.640096 1 debugging.go:127] Response Headers: I0209 03:16:35.640101 1 debugging.go:130] Content-Type: application/json I0209 03:16:35.640106 1 debugging.go:130] Date: Tue, 09 Feb 2016 03:16:35 GMT I0209 03:16:35.640130 1 request.go:746] Response Body: {&quot;kind&quot;:&quot;Pod&quot;,&quot;apiVersion&quot;:&quot;v1&quot;,&quot;metadata&quot;:{&quot;name&quot;:&quot;kibana-ndeps&quot;,&quot;generateName&quot;:&quot;kibana-&quot;,&quot;namespace&quot;:&quot;default&quot;,&quot;selfLink&quot;:&quot;/api/v1/namespaces/default/pods/kibana-ndeps&quot;,&quot;uid&quot;:&quot;a4649aad-ced8-11e5-80b6-7824afc0a170&quot;,&quot;resourceVersion&quot;:&quot;13142485&quot;,&quot;creationTimestamp&quot;:&quot;2016-02-09T02:55:57Z&quot;,&quot;labels&quot;:{&quot;name&quot;:&quot;kibana&quot;},&quot;annotations&quot;:{&quot;kubernetes.io/created-by&quot;:&quot;{\&quot;kind\&quot;:\&quot;SerializedReference\&quot;,\&quot;apiVersion\&quot;:\&quot;v1\&quot;,\&quot;reference\&quot;:{\&quot;kind\&quot;:\&quot;ReplicationController\&quot;,\&quot;namespace\&quot;:\&quot;default\&quot;,\&quot;name\&quot;:\&quot;kibana\&quot;,\&quot;uid\&quot;:\&quot;4a4de2fe-c888-11e5-b7f7-7824afc0a170\&quot;,\&quot;apiVersion\&quot;:\&quot;v1\&quot;,\&quot;resourceVersion\&quot;:\&quot;12885522\&quot;}}\n&quot;}},&quot;spec&quot;:{&quot;volumes&quot;:[{&quot;name&quot;:&quot;log&quot;,&quot;emptyDir&quot;:{}}],&quot;containers&quot;:[{&quot;name&quot;:&quot;kibana&quot;,&quot;image&quot;:&quot;minux:5000/kibana:latest&quot;,&quot;env&quot;:[{&quot;name&quot;:&quot;ELASTICSEARCH_HOST&quot;,&quot;value&quot;:&quot;elasticsearch&quot;}],&quot;resources&quot;:{},&quot;volumeMounts&quot;:[{&quot;name&quot;:&quot;log&quot;,&quot;mountPath&quot;:&quot;/var/log&quot;}],&quot;readinessProbe&quot;:{&quot;httpGet&quot;:{&quot;path&quot;:&quot;/&quot;,&quot;port&quot;:5601,&quot;scheme&quot;:&quot;HTTP&quot;},&quot;initialDelaySeconds&quot;:30,&quot;timeoutSeconds&quot;:1},&quot;terminationMessagePath&quot;:&quot;/dev/termination-log&quot;,&quot;imagePullPolicy&quot;:&quot;Always&quot;},{&quot;name&quot;:&quot;fluentd-kafka&quot;,&quot;image&quot;:&quot;minux:5000/fluentd-kafka:latest&quot;,&quot;env&quot;:[{&quot;name&quot;:&quot;ZOOKEEPER&quot;,&quot;value&quot;:&quot;zookeeper:2181&quot;},{&quot;name&quot;:&quot;LABEL&quot;,&quot;value&quot;:&quot;KIBANA&quot;}],&quot;resources&quot;:{},&quot;volumeMounts&quot;:[{&quot;name&quot;:&quot;log&quot;,&quot;mountPath&quot;:&quot;/var/log&quot;}],&quot;terminationMessagePath&quot;:&quot;/dev/termination-log&quot;,&quot;imagePullPolicy&quot;:&quot;Always&quot;}],&quot;restartPolicy&quot;:&quot;Always&quot;,&quot;terminationGracePeriodSeconds&quot;:30,&quot;dnsPolicy&quot;:&quot;ClusterFirst&quot;,&quot;nodeSelector&quot;:{&quot;zone&quot;:&quot;green&quot;},&quot;nodeName&quot;:&quot;192.168.1.176&quot;},&quot;status&quot;:{&quot;phase&quot;:&quot;Running&quot;,&quot;conditions&quot;:[{&quot;type&quot;:&quot;Ready&quot;,&quot;status&quot;:&quot;True&quot;,&quot;lastProbeTime&quot;:null,&quot;lastTransitionTime&quot;:null}],&quot;hostIP&quot;:&quot;192.168.1.176&quot;,&quot;podIP&quot;:&quot;10.244.176.4&quot;,&quot;startTime&quot;:&quot;2016-02-09T02:55:59Z&quot;,&quot;containerStatuses&quot;:[{&quot;name&quot;:&quot;fluentd-kafka&quot;,&quot;state&quot;:{&quot;running&quot;:{&quot;startedAt&quot;:&quot;2016-02-09T02:58:38Z&quot;}},&quot;lastState&quot;:{},&quot;ready&quot;:true,&quot;restartCount&quot;:0,&quot;image&quot;:&quot;minux:5000/fluentd-kafka:latest&quot;,&quot;imageID&quot;:&quot;docker://sha256:0948b0085872577fa50fc415feda363178bba8361834adae79952aee7431492f&quot;,&quot;containerID&quot;:&quot;docker://e1f509c8fe3f6004c81b26f42c2cfd0c389afef459ac67797ed60f162e30d960&quot;},{&quot;name&quot;:&quot;kibana&quot;,&quot;state&quot;:{&quot;running&quot;:{&quot;startedAt&quot;:&quot;2016-02-09T02:58:38Z&quot;}},&quot;lastState&quot;:{},&quot;ready&quot;:true,&quot;restartCount&quot;:0,&quot;image&quot;:&quot;minux:5000/kibana:latest&quot;,&quot;imageID&quot;:&quot;docker://sha256:8b09cbc206d53a799211a4d96ff5e06d19f216be258a8a4dec7204d5911bc18d&quot;,&quot;containerID&quot;:&quot;docker://d7c6bc51d4f70074c89ca21fdc65d075acb322f66fd52c2b7bf5a5cce479c823&quot;}]}} I0209 03:16:35.640649 1 exec.go:179] defaulting container name to kibana I0209 03:16:35.640722 1 debugging.go:102] curl -k -v -XPOST -H &quot;X-Stream-Protocol-Version: v2.channel.k8s.io&quot; -H &quot;X-Stream-Protocol-Version: channel.k8s.io&quot; http://minux:8080/api/v1/namespaces/default/pods/kibana-ndeps/exec?command=bash&amp;container=kibana&amp;container=kibana&amp;stderr=true&amp;stdin=true&amp;stdout=true&amp;tty=true I0209 03:16:35.668922 1 debugging.go:121] POST http://minux:8080/api/v1/namespaces/default/pods/kibana-ndeps/exec?command=bash&amp;container=kibana&amp;container=kibana&amp;stderr=true&amp;stdin=true&amp;stdout=true&amp;tty=true 101 Switching Protocols in 28 milliseconds I0209 03:16:35.668936 1 debugging.go:127] Response Headers: I0209 03:16:35.668941 1 debugging.go:130] Connection: Upgrade I0209 03:16:35.668947 1 debugging.go:130] Upgrade: SPDY/3.1 I0209 03:16:35.668955 1 debugging.go:130] X-Stream-Protocol-Version: v2.channel.k8s.io I0209 03:16:35.668962 1 debugging.go:130] Date: Tue, 09 Feb 2016 03:16:37 GMT Content-Type specified (plain/text) must be 'application/json'"><pre class="notranslate"><code class="notranslate">kubectl exec --v=9 kibana-ndeps bash -it I0209 03:16:35.628245 1 debugging.go:102] curl -k -v -XGET -H "User-Agent: kubectl/v1.1.7 (linux/amd64) kubernetes/e4e6878" http://minux:8080/api I0209 03:16:35.639050 1 debugging.go:121] GET http://minux:8080/api 200 OK in 10 milliseconds I0209 03:16:35.639064 1 debugging.go:127] Response Headers: I0209 03:16:35.639069 1 debugging.go:130] Content-Type: application/json I0209 03:16:35.639074 1 debugging.go:130] Date: Tue, 09 Feb 2016 03:16:35 GMT I0209 03:16:35.639079 1 debugging.go:130] Content-Length: 57 I0209 03:16:35.639093 1 request.go:746] Response Body: { "kind": "APIVersions", "versions": [ "v1" ] } I0209 03:16:35.639218 1 debugging.go:102] curl -k -v -XGET -H "User-Agent: kubectl/v1.1.7 (linux/amd64) kubernetes/e4e6878" http://minux:8080/api/v1/namespaces/default/pods/kibana-ndeps I0209 03:16:35.640083 1 debugging.go:121] GET http://minux:8080/api/v1/namespaces/default/pods/kibana-ndeps 200 OK in 0 milliseconds I0209 03:16:35.640096 1 debugging.go:127] Response Headers: I0209 03:16:35.640101 1 debugging.go:130] Content-Type: application/json I0209 03:16:35.640106 1 debugging.go:130] Date: Tue, 09 Feb 2016 03:16:35 GMT I0209 03:16:35.640130 1 request.go:746] Response Body: {"kind":"Pod","apiVersion":"v1","metadata":{"name":"kibana-ndeps","generateName":"kibana-","namespace":"default","selfLink":"/api/v1/namespaces/default/pods/kibana-ndeps","uid":"a4649aad-ced8-11e5-80b6-7824afc0a170","resourceVersion":"13142485","creationTimestamp":"2016-02-09T02:55:57Z","labels":{"name":"kibana"},"annotations":{"kubernetes.io/created-by":"{\"kind\":\"SerializedReference\",\"apiVersion\":\"v1\",\"reference\":{\"kind\":\"ReplicationController\",\"namespace\":\"default\",\"name\":\"kibana\",\"uid\":\"4a4de2fe-c888-11e5-b7f7-7824afc0a170\",\"apiVersion\":\"v1\",\"resourceVersion\":\"12885522\"}}\n"}},"spec":{"volumes":[{"name":"log","emptyDir":{}}],"containers":[{"name":"kibana","image":"minux:5000/kibana:latest","env":[{"name":"ELASTICSEARCH_HOST","value":"elasticsearch"}],"resources":{},"volumeMounts":[{"name":"log","mountPath":"/var/log"}],"readinessProbe":{"httpGet":{"path":"/","port":5601,"scheme":"HTTP"},"initialDelaySeconds":30,"timeoutSeconds":1},"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"Always"},{"name":"fluentd-kafka","image":"minux:5000/fluentd-kafka:latest","env":[{"name":"ZOOKEEPER","value":"zookeeper:2181"},{"name":"LABEL","value":"KIBANA"}],"resources":{},"volumeMounts":[{"name":"log","mountPath":"/var/log"}],"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"Always"}],"restartPolicy":"Always","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","nodeSelector":{"zone":"green"},"nodeName":"192.168.1.176"},"status":{"phase":"Running","conditions":[{"type":"Ready","status":"True","lastProbeTime":null,"lastTransitionTime":null}],"hostIP":"192.168.1.176","podIP":"10.244.176.4","startTime":"2016-02-09T02:55:59Z","containerStatuses":[{"name":"fluentd-kafka","state":{"running":{"startedAt":"2016-02-09T02:58:38Z"}},"lastState":{},"ready":true,"restartCount":0,"image":"minux:5000/fluentd-kafka:latest","imageID":"docker://sha256:0948b0085872577fa50fc415feda363178bba8361834adae79952aee7431492f","containerID":"docker://e1f509c8fe3f6004c81b26f42c2cfd0c389afef459ac67797ed60f162e30d960"},{"name":"kibana","state":{"running":{"startedAt":"2016-02-09T02:58:38Z"}},"lastState":{},"ready":true,"restartCount":0,"image":"minux:5000/kibana:latest","imageID":"docker://sha256:8b09cbc206d53a799211a4d96ff5e06d19f216be258a8a4dec7204d5911bc18d","containerID":"docker://d7c6bc51d4f70074c89ca21fdc65d075acb322f66fd52c2b7bf5a5cce479c823"}]}} I0209 03:16:35.640649 1 exec.go:179] defaulting container name to kibana I0209 03:16:35.640722 1 debugging.go:102] curl -k -v -XPOST -H "X-Stream-Protocol-Version: v2.channel.k8s.io" -H "X-Stream-Protocol-Version: channel.k8s.io" http://minux:8080/api/v1/namespaces/default/pods/kibana-ndeps/exec?command=bash&amp;container=kibana&amp;container=kibana&amp;stderr=true&amp;stdin=true&amp;stdout=true&amp;tty=true I0209 03:16:35.668922 1 debugging.go:121] POST http://minux:8080/api/v1/namespaces/default/pods/kibana-ndeps/exec?command=bash&amp;container=kibana&amp;container=kibana&amp;stderr=true&amp;stdin=true&amp;stdout=true&amp;tty=true 101 Switching Protocols in 28 milliseconds I0209 03:16:35.668936 1 debugging.go:127] Response Headers: I0209 03:16:35.668941 1 debugging.go:130] Connection: Upgrade I0209 03:16:35.668947 1 debugging.go:130] Upgrade: SPDY/3.1 I0209 03:16:35.668955 1 debugging.go:130] X-Stream-Protocol-Version: v2.channel.k8s.io I0209 03:16:35.668962 1 debugging.go:130] Date: Tue, 09 Feb 2016 03:16:37 GMT Content-Type specified (plain/text) must be 'application/json' </code></pre></div>
<p dir="auto">I have a setup using .AttachToContainer. After upgrading to Docker 1.10-rc2 I'm getting an error <code class="notranslate">Content-Type specified (plain/text) must be 'application/json'</code>.</p> <p dir="auto">Why am I getting this?</p> <p dir="auto">Any help would be great!</p> <p dir="auto">/beetree</p>
1
<p dir="auto">Looking at core.ops. _comp_method_SERIES and whether we can have the datetime and timedelta cases defer to Index subclass implementations, a couple questions come up:</p> <p dir="auto"><a href="https://github.com/pandas-dev/pandas/blob/master/pandas/core/ops.py#L744">https://github.com/pandas-dev/pandas/blob/master/pandas/core/ops.py#L744</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" def na_op(x, y): # dispatch to the categorical if we have a categorical # in either operand if is_categorical_dtype(x): return op(x, y) elif is_categorical_dtype(y) and not is_scalar(y): return op(y, x)"><pre class="notranslate"><code class="notranslate"> def na_op(x, y): # dispatch to the categorical if we have a categorical # in either operand if is_categorical_dtype(x): return op(x, y) elif is_categorical_dtype(y) and not is_scalar(y): return op(y, x) </code></pre></div> <p dir="auto">This <code class="notranslate">return op(y, x)</code> looks weird. Should it be a reverse-op? e.g if op is operator.ge, should this become <code class="notranslate">return operator.le(y, x)</code>? Maybe this is irrelevant if categorical comparisons are only defined for <code class="notranslate">__eq__</code> and <code class="notranslate">__ne__</code>? If that is the explanation, there should be a comment.</p> <p dir="auto"><a href="https://github.com/pandas-dev/pandas/blob/master/pandas/core/ops.py#L812">Special casing</a> for PeriodIndex:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" if isinstance(other, ABCPeriodIndex): # temp workaround until fixing GH 13637 # tested in test_nat_comparisons # (pandas.tests.series.test_operators.TestSeriesOperators) return self._constructor(na_op(self.values, other.astype(object).values), index=self.index)"><pre class="notranslate"><code class="notranslate"> if isinstance(other, ABCPeriodIndex): # temp workaround until fixing GH 13637 # tested in test_nat_comparisons # (pandas.tests.series.test_operators.TestSeriesOperators) return self._constructor(na_op(self.values, other.astype(object).values), index=self.index) </code></pre></div> <p dir="auto">I couldn't tell from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="165233792" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/13637" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/13637/hovercard" href="https://github.com/pandas-dev/pandas/issues/13637">#13637</a> what the connection was. Commenting this out did not appear to break anything in the tests. Anyone know if this is still relevant?</p> <p dir="auto"><b>Update</b> I forgot to mention the question mentioned in the Issue title. Most cases return <code class="notranslate">self._constructor(res, index=self.index, name=whatever)</code>, but <a href="https://github.com/pandas-dev/pandas/blob/master/pandas/core/ops.py#L821">one case</a> returns <code class="notranslate">self._constructor(na_op(self.values, np.asarray(other)), index=self.index).__finalize__(self)</code>. Why is <code class="notranslate">__finalize__</code> called in this case but not others?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#!/bin/env python &quot;&quot;&quot; Example bug in derived Pandas Series. __finalized__ is not called in arithmetic binary operators, but it is in in some booleans cases. &gt;&gt;&gt; m = MySeries([1, 2, 3], name='test') &gt;&gt;&gt; m.x = 42 &gt;&gt;&gt; n=m[:2] &gt;&gt;&gt; n 0 1 1 2 dtype: int64 &gt;&gt;&gt; n.x 42 &gt;&gt;&gt; o=n+1 &gt;&gt;&gt; o 0 2 1 3 dtype: int64 &gt;&gt;&gt; o.x Traceback (most recent call last): ... AttributeError: 'MySeries' object has no attribute 'x' &gt;&gt;&gt; m = MySeries([True, False, True], name='test2') &gt;&gt;&gt; m.x = 42 &gt;&gt;&gt; n=m[:2] &gt;&gt;&gt; n 0 True 1 False dtype: bool &gt;&gt;&gt; n.x 42 &gt;&gt;&gt; o=n ^ True &gt;&gt;&gt; o 0 False 1 True dtype: bool &gt;&gt;&gt; o.x 42 &gt;&gt;&gt; p = n ^ o &gt;&gt;&gt; p 0 True 1 True dtype: bool &gt;&gt;&gt; p.x 42 &quot;&quot;&quot; import pandas as pd class MySeries(pd.Series): _metadata = ['x'] @property def _constructor(self): return MySeries if __name__ == &quot;__main__&quot;: import doctest doctest.testmod() "><pre class="notranslate"><code class="notranslate">#!/bin/env python """ Example bug in derived Pandas Series. __finalized__ is not called in arithmetic binary operators, but it is in in some booleans cases. &gt;&gt;&gt; m = MySeries([1, 2, 3], name='test') &gt;&gt;&gt; m.x = 42 &gt;&gt;&gt; n=m[:2] &gt;&gt;&gt; n 0 1 1 2 dtype: int64 &gt;&gt;&gt; n.x 42 &gt;&gt;&gt; o=n+1 &gt;&gt;&gt; o 0 2 1 3 dtype: int64 &gt;&gt;&gt; o.x Traceback (most recent call last): ... AttributeError: 'MySeries' object has no attribute 'x' &gt;&gt;&gt; m = MySeries([True, False, True], name='test2') &gt;&gt;&gt; m.x = 42 &gt;&gt;&gt; n=m[:2] &gt;&gt;&gt; n 0 True 1 False dtype: bool &gt;&gt;&gt; n.x 42 &gt;&gt;&gt; o=n ^ True &gt;&gt;&gt; o 0 False 1 True dtype: bool &gt;&gt;&gt; o.x 42 &gt;&gt;&gt; p = n ^ o &gt;&gt;&gt; p 0 True 1 True dtype: bool &gt;&gt;&gt; p.x 42 """ import pandas as pd class MySeries(pd.Series): _metadata = ['x'] @property def _constructor(self): return MySeries if __name__ == "__main__": import doctest doctest.testmod() </code></pre></div> <h4 dir="auto">Expected Output</h4> <p dir="auto">In all cases, the metadata 'x' should be transferred from the passed values when applying binary operators.<br> When the right-hand value is a constant, the left-hand value metadata should be used in <strong>finalize</strong> for arithmetic operators, just like it is for Boolean binary operators.<br> When two series are used in binary operators, some resolution should be possible in <strong>finalize</strong>.<br> I would pass the second (right-hand) value by calling <strong>finalize</strong>(self, other=other), leaving the resolution to the derived class implementer, but there might be a smarter approach.</p> <h4 dir="auto">output of <code class="notranslate">pd.show_versions()</code></h4> <p dir="auto">pd.show_versions()</p> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 2.7.6.final.0<br> python-bits: 64<br> OS: Linux<br> OS-release: 3.19.0-59-generic<br> machine: x86_64<br> processor: x86_64<br> byteorder: little<br> LC_ALL: None<br> LANG: en_US.UTF-8</p> <p dir="auto">pandas: 0.18.1<br> nose: 1.3.7<br> pip: None<br> setuptools: 20.2.2<br> Cython: 0.24<br> numpy: 1.11.0<br> scipy: 0.17.0<br> statsmodels: 0.6.1<br> xarray: None<br> IPython: 4.0.1<br> sphinx: 1.3.1<br> patsy: 0.4.0<br> dateutil: 2.4.2<br> pytz: 2015.7<br> blosc: None<br> bottleneck: 1.0.0<br> tables: 3.2.2<br> numexpr: 2.5.2<br> matplotlib: 1.5.0<br> openpyxl: 2.2.6<br> xlrd: 0.9.4<br> xlwt: 1.0.0<br> xlsxwriter: 0.7.7<br> lxml: 3.4.4<br> bs4: 4.4.1<br> html5lib: 0.9999999<br> httplib2: None<br> apiclient: None<br> sqlalchemy: 1.0.9<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.8<br> boto: 2.38.0<br> pandas_datareader: None</p>
1
<p dir="auto">Night Light got crashed too.</p>
<p dir="auto">currently to add / remove items in shell, we have to kick explorer. After this happens, PT can then enable / disable for them showing up.</p> <p dir="auto">We should see how we can do some alternative methods</p>
1
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/859" rel="nofollow">http://projects.scipy.org/numpy/ticket/859</a> on 2008-07-24 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cournape/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cournape">@cournape</a>, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cournape/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cournape">@cournape</a>.</em></p> <p dir="auto">Detected under valgrind, and looking at the code, it looks like there is a problem, but I don't know enough about that code to solve it quickly:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Tests compress2d==5148== ==5148== Conditional jump or move depends on uninitialised value(s) ==5148== at 0x4636A27: PyArray_MapIterReset (arrayobject.c:10242) ==5148== by 0x466B511: array_subscript (arrayobject.c:2549) ==5148== by 0x466C07B: array_subscript_nice (arrayobject.c:3173) ==5148== by 0x80C7235: PyEval_EvalFrameEx (ceval.c:1193) ==5148== by 0x80CB0D6: PyEval_EvalCodeEx (ceval.c:2836) ==5148== by 0x80C92DD: PyEval_EvalFrameEx (ceval.c:3669) ==5148== by 0x80C95C4: PyEval_EvalFrameEx (ceval.c:3659) ==5148== by 0x80CB0D6: PyEval_EvalCodeEx (ceval.c:2836) ==5148== by 0x81133BA: function_call (funcobject.c:517) ==5148== by 0x805CB36: PyObject_Call (abstract.c:1861) ==5148== by 0x80C7CE3: PyEval_EvalFrameEx (ceval.c:3853) ==5148== by 0x80CB0D6: PyEval_EvalCodeEx (ceval.c:2836)"><pre class="notranslate"><code class="notranslate">Tests compress2d==5148== ==5148== Conditional jump or move depends on uninitialised value(s) ==5148== at 0x4636A27: PyArray_MapIterReset (arrayobject.c:10242) ==5148== by 0x466B511: array_subscript (arrayobject.c:2549) ==5148== by 0x466C07B: array_subscript_nice (arrayobject.c:3173) ==5148== by 0x80C7235: PyEval_EvalFrameEx (ceval.c:1193) ==5148== by 0x80CB0D6: PyEval_EvalCodeEx (ceval.c:2836) ==5148== by 0x80C92DD: PyEval_EvalFrameEx (ceval.c:3669) ==5148== by 0x80C95C4: PyEval_EvalFrameEx (ceval.c:3659) ==5148== by 0x80CB0D6: PyEval_EvalCodeEx (ceval.c:2836) ==5148== by 0x81133BA: function_call (funcobject.c:517) ==5148== by 0x805CB36: PyObject_Call (abstract.c:1861) ==5148== by 0x80C7CE3: PyEval_EvalFrameEx (ceval.c:3853) ==5148== by 0x80CB0D6: PyEval_EvalCodeEx (ceval.c:2836) </code></pre></div> <p dir="auto">The problem is inside the macro PyArrayIter_GOTO: some items of the argument destination are accessed without having been set previously (when they are swapped with the copyswap function).</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/333" rel="nofollow">http://projects.scipy.org/numpy/ticket/333</a> on 2006-10-11 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/FrancescAlted/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/FrancescAlted">@FrancescAlted</a>, assigned to unknown.</em></p> <p dir="auto">The next exposes the problem:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [142]:dt1=numpy.dtype('i4') In [143]:numpy.array(0, dtype=dt1.type) Out[143]:array(0) # good, but In [144]:dt2=numpy.dtype(('i4',(2,))) In [145]:numpy.array(0, dtype=dt2.type) --------------------------------------------------------------------------- exceptions.MemoryError Traceback (most recent call last) /home/faltet/python.nobackup/numpy/&lt;ipython console&gt; MemoryError:"><pre class="notranslate"><code class="notranslate">In [142]:dt1=numpy.dtype('i4') In [143]:numpy.array(0, dtype=dt1.type) Out[143]:array(0) # good, but In [144]:dt2=numpy.dtype(('i4',(2,))) In [145]:numpy.array(0, dtype=dt2.type) --------------------------------------------------------------------------- exceptions.MemoryError Traceback (most recent call last) /home/faltet/python.nobackup/numpy/&lt;ipython console&gt; MemoryError: </code></pre></div> <p dir="auto">Moreover:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [147]:numpy.array([0], dtype=dt1.type) Out[147]:array([0]) # good, but In [148]:numpy.array([0], dtype=dt2.type) --------------------------------------------------------------------------- exceptions.TypeError Traceback (most recent call last) /home/faltet/python.nobackup/numpy/&lt;ipython console&gt; TypeError: expected a readable buffer object"><pre class="notranslate"><code class="notranslate">In [147]:numpy.array([0], dtype=dt1.type) Out[147]:array([0]) # good, but In [148]:numpy.array([0], dtype=dt2.type) --------------------------------------------------------------------------- exceptions.TypeError Traceback (most recent call last) /home/faltet/python.nobackup/numpy/&lt;ipython console&gt; TypeError: expected a readable buffer object </code></pre></div> <p dir="auto">I'd say that the .type is an scalar type that should be independent of the shape of the base dtype.</p>
1
<h3 dir="auto">Bug report</h3> <p dir="auto">Something now breaks this code that used to work. Now, I have to call plt.subplots first and use stackplot on an axis object.</p> <p dir="auto">TypeError: stackplot() got multiple values for argument 'x'</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from matplotlib import pyplot as plt plt.stackplot([1,2,3], [1,2,3]) "><pre class="notranslate"><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">plt</span>.<span class="pl-en">stackplot</span>([<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>], [<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>]) </pre></div> <p dir="auto">Should be equivalent to</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" fig, ax = plt.subplots() ax.stackplot([1,2,3], [1,2,3]) "><pre class="notranslate"><span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>() <span class="pl-s1">ax</span>.<span class="pl-en">stackplot</span>([<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>], [<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>]) </pre></div> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system:</li> <li>Matplotlib version: 3.0.0</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): 'module://ipykernel.pylab.backend_inline'</li> <li>Python version: 3.6.6</li> <li>Jupyter version (if applicable): 4.4.0</li> <li>Other libraries:</li> </ul> <p dir="auto">Installed matplotlib using conda with default channel.</p>
1
<p dir="auto">Again from the <a href="https://github.com/paypal/bootstrap-accessibility-plugin/#tab-panel">paypal/bootstrap-accessibility-plugin</a>, these changes should be added to the documentation and the JS plugin.</p> <h3 dir="auto">Tab Panel</h3> <ol dir="auto"> <li><del>Add ARIA roles like tablist, presentation, and tab for tabs UL, LI.</del></li> <li>Add tabIndex, <del>aria-expanded</del>, aria-selected, <del>aria-controls</del> for tab.</li> <li>Add ARIA roles of <del>tabpanel</del>, tabIndex, aria-hidden, and aria-labelledBy for tabPanel.</li> <li>Add keydown event listener for the tab to work with keyboard.</li> <li>Dynamically flip tabIndex, aria-selected, and <del>aria-expanded</del> for tab when it is activated and add aria-hidden to hide the previously visible tab.</li> </ol>
<p dir="auto">Please see following demo image, when text is too short, popover's arrow should be correctly adjusted to point to the center of the label.</p> <ul dir="auto"> <li>image<br> <a href="http://cl.ly/image/0W38012y3K1H" rel="nofollow">http://cl.ly/image/0W38012y3K1H</a></li> </ul> <p dir="auto">I've created a simple fix for that, but it's doing from outside of the plugin, would be great if it's integrated into the plugin itself, please see it here:</p> <ul dir="auto"> <li>sample code<br> <a href="https://gist.github.com/coodoo/5667953">https://gist.github.com/coodoo/5667953</a></li> </ul>
0
<p dir="auto">When trying to run the test-suite on a fresh installation it breaks.<br> Long story short, doctests require <code class="notranslate">PIL</code> and <code class="notranslate">test_lda_predict</code> fails as well.</p> <p dir="auto">This has been done in a Linux machine. <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/martinagvilas/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/martinagvilas">@martinagvilas</a> can you replicate in mac? thx.</p> <p dir="auto">cc: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lesteve/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lesteve">@lesteve</a></p> <p dir="auto">Here is what we did:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ conda remove --name test-sklearn --all $ conda create --name test-sklearn -y $ conda activate test-sklearn $ conda install -c conda-forge scikit-learn cython pytest $ cd ~ $ python -c &quot;import sklearn; print(sklearn.__version__)&quot; # 0.21.3 $ conda remove --name test-sklearn scikit-learn --force-remove # keep dependencies $ conda list | grep sklearn $ cd ~/code/scikit-learn $ pip install -e . $ pytest sklearn"><pre class="notranslate">$ conda remove --name test-sklearn --all $ conda create --name test-sklearn -y $ conda activate test-sklearn $ conda install -c conda-forge scikit-learn cython pytest $ <span class="pl-c1">cd</span> <span class="pl-k">~</span> $ python -c <span class="pl-s"><span class="pl-pds">"</span>import sklearn; print(sklearn.__version__)<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> 0.21.3</span> $ conda remove --name test-sklearn scikit-learn --force-remove <span class="pl-c"><span class="pl-c">#</span> keep dependencies</span> $ conda list <span class="pl-k">|</span> grep sklearn $ <span class="pl-c1">cd</span> <span class="pl-k">~</span>/code/scikit-learn $ pip install -e <span class="pl-c1">.</span> $ pytest sklearn</pre></div> <p dir="auto">Here is the full pytest output</p> <details> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" ========================= test session starts ========================== platform linux -- Python 3.7.3, pytest-5.1.2, py-1.8.0, pluggy-0.12.0 rootdir: /home/sik/code/scikit-learn, inifile: setup.cfg collected 13419 items / 2 skipped / 13417 selected sklearn/_config.py . [ 0%] sklearn/discriminant_analysis.py .. [ 0%] sklearn/exceptions.py .. [ 0%] sklearn/isotonic.py . [ 0%] sklearn/kernel_approximation.py .... [ 0%] sklearn/kernel_ridge.py . [ 0%] sklearn/naive_bayes.py .... [ 0%] sklearn/pipeline.py .... [ 0%] sklearn/random_projection.py ... [ 0%] sklearn/cluster/affinity_propagation_.py . [ 0%] sklearn/cluster/bicluster.py .. [ 0%] sklearn/cluster/birch.py . [ 0%] sklearn/cluster/dbscan_.py . [ 0%] sklearn/cluster/hierarchical.py .. [ 0%] sklearn/cluster/k_means_.py .. [ 0%] sklearn/cluster/mean_shift_.py . [ 0%] sklearn/cluster/spectral.py . [ 0%] sklearn/cluster/tests/test_affinity_propagation.py ......... [ 0%] sklearn/cluster/tests/test_bicluster.py ........s......... [ 0%] sklearn/cluster/tests/test_birch.py ....... [ 0%] sklearn/cluster/tests/test_dbscan.py ........................... [ 0%] [ 0%] sklearn/cluster/tests/test_feature_agglomeration.py . [ 0%] sklearn/cluster/tests/test_hierarchical.py ..................... [ 0%] ................. [ 0%] sklearn/cluster/tests/test_k_means.py .......................... [ 1%] ................................................................ [ 1%] .................................. [ 1%] sklearn/cluster/tests/test_mean_shift.py ............ [ 2%] sklearn/cluster/tests/test_optics.py ........................... [ 2%] ............. [ 2%] sklearn/cluster/tests/test_spectral.py .............. [ 2%] sklearn/compose/_column_transformer.py .. [ 2%] sklearn/compose/_target.py . [ 2%] sklearn/compose/tests/test_column_transformer.py .ss.s........s. [ 2%] ...s............sssssssss.........................s.sss.. [ 2%] sklearn/compose/tests/test_target.py ............. [ 3%] sklearn/covariance/elliptic_envelope.py . [ 3%] sklearn/covariance/empirical_covariance_.py . [ 3%] sklearn/covariance/graph_lasso_.py .. [ 3%] sklearn/covariance/robust_covariance.py . [ 3%] sklearn/covariance/shrunk_covariance_.py .. [ 3%] sklearn/covariance/tests/test_covariance.py ...... [ 3%] sklearn/covariance/tests/test_elliptic_envelope.py .. [ 3%] sklearn/covariance/tests/test_graphical_lasso.py ..... [ 3%] sklearn/covariance/tests/test_robust_covariance.py ....... [ 3%] sklearn/cross_decomposition/cca_.py . [ 3%] sklearn/cross_decomposition/pls_.py ... [ 3%] sklearn/cross_decomposition/tests/test_pls.py ........ [ 3%] sklearn/datasets/base.py ....... [ 3%] sklearn/datasets/samples_generator.py . [ 3%] sklearn/datasets/tests/test_20news.py sss [ 3%] sklearn/datasets/tests/test_base.py .................... [ 3%] sklearn/datasets/tests/test_california_housing.py . [ 3%] sklearn/datasets/tests/test_covtype.py s [ 3%] sklearn/datasets/tests/test_kddcup99.py ss [ 3%] sklearn/datasets/tests/test_lfw.py sssss [ 3%] sklearn/datasets/tests/test_olivetti_faces.py s [ 3%] sklearn/datasets/tests/test_openml.py ...........sssss.ssssss... [ 3%] .................................................... [ 4%] sklearn/datasets/tests/test_rcv1.py s [ 4%] sklearn/datasets/tests/test_samples_generator.py ............... [ 4%] ............. [ 4%] sklearn/datasets/tests/test_svmlight_format.py ...........s..... [ 4%] ...................................... [ 4%] sklearn/decomposition/base.py . [ 4%] sklearn/decomposition/factor_analysis.py . [ 4%] sklearn/decomposition/fastica_.py . [ 4%] sklearn/decomposition/incremental_pca.py .. [ 4%] sklearn/decomposition/kernel_pca.py . [ 4%] sklearn/decomposition/nmf.py .. [ 4%] sklearn/decomposition/online_lda.py . [ 4%] sklearn/decomposition/pca.py . [ 4%] sklearn/decomposition/sparse_pca.py .. [ 4%] sklearn/decomposition/truncated_svd.py . [ 4%] sklearn/decomposition/tests/test_dict_learning.py .............. [ 5%] ..................................................... [ 5%] sklearn/decomposition/tests/test_factor_analysis.py . [ 5%] sklearn/decomposition/tests/test_fastica.py ......... [ 5%] sklearn/decomposition/tests/test_incremental_pca.py ............ [ 5%] ........ [ 5%] sklearn/decomposition/tests/test_kernel_pca.py .............. [ 5%] sklearn/decomposition/tests/test_nmf.py ........................ [ 5%] [ 5%] sklearn/decomposition/tests/test_online_lda.py ................. [ 6%] .............. [ 6%] sklearn/decomposition/tests/test_pca.py ........................ [ 6%] ................................................................ [ 6%] ...................... [ 7%] sklearn/decomposition/tests/test_sparse_pca.py .......s...... [ 7%] sklearn/decomposition/tests/test_truncated_svd.py .............. [ 7%] .................. [ 7%] sklearn/ensemble/forest.py .. [ 7%] sklearn/ensemble/partial_dependence.py .. [ 7%] sklearn/ensemble/voting.py .. [ 7%] sklearn/ensemble/weight_boosting.py .. [ 7%] sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py .. [ 7%] [ 7%] sklearn/ensemble/_hist_gradient_boosting/tests/test_binning.py . [ 7%] ............................................. [ 7%] sklearn/ensemble/_hist_gradient_boosting/tests/test_gradient_boosting.py . [ 7%] ................................................................ [ 8%] ............... [ 8%] sklearn/ensemble/_hist_gradient_boosting/tests/test_grower.py .. [ 8%] ...................... [ 8%] sklearn/ensemble/_hist_gradient_boosting/tests/test_histogram.py . [ 8%] ...... [ 8%] sklearn/ensemble/_hist_gradient_boosting/tests/test_loss.py .... [ 8%] ....... [ 8%] sklearn/ensemble/_hist_gradient_boosting/tests/test_predictor.py . [ 8%] ...... [ 8%] sklearn/ensemble/_hist_gradient_boosting/tests/test_splitting.py . [ 8%] ............... [ 8%] sklearn/ensemble/_hist_gradient_boosting/tests/test_warm_start.py . [ 8%] ............... [ 8%] sklearn/ensemble/tests/test_bagging.py ......................... [ 9%] ...... [ 9%] sklearn/ensemble/tests/test_base.py .... [ 9%] sklearn/ensemble/tests/test_forest.py .......................... [ 9%] ................................................................ [ 9%] ................................................................ [ 10%] ............. [ 10%] sklearn/ensemble/tests/test_gradient_boosting.py ............... [ 10%] ................................................................ [ 11%] ............................................... [ 11%] sklearn/ensemble/tests/test_gradient_boosting_loss_functions.py . [ 11%] .............. [ 11%] sklearn/ensemble/tests/test_iforest.py .................... [ 11%] sklearn/ensemble/tests/test_partial_dependence.py .....sssss [ 11%] sklearn/ensemble/tests/test_voting.py ......................... [ 11%] sklearn/ensemble/tests/test_weight_boosting.py ................. [ 12%] .... [ 12%] sklearn/experimental/enable_hist_gradient_boosting.py . [ 12%] sklearn/experimental/enable_iterative_imputer.py . [ 12%] sklearn/experimental/tests/test_enable_hist_gradient_boosting.py . [ 12%] [ 12%] sklearn/experimental/tests/test_enable_iterative_imputer.py . [ 12%] sklearn/feature_extraction/dict_vectorizer.py .. [ 12%] sklearn/feature_extraction/hashing.py . [ 12%] sklearn/feature_extraction/image.py FF [ 12%] sklearn/feature_extraction/text.py ... [ 12%] sklearn/feature_extraction/tests/test_dict_vectorizer.py ....... [ 12%] ..................... [ 12%] sklearn/feature_extraction/tests/test_feature_hasher.py ........ [ 12%] .. [ 12%] sklearn/feature_extraction/tests/test_image.py ................. [ 12%] ... [ 12%] sklearn/feature_extraction/tests/test_text.py .................. [ 12%] ..............................................x.........x..x.... [ 13%] ..........x.................. [ 13%] sklearn/feature_selection/rfe.py .. [ 13%] sklearn/feature_selection/univariate_selection.py ...... [ 13%] sklearn/feature_selection/variance_threshold.py . [ 13%] sklearn/feature_selection/tests/test_base.py ..... [ 13%] sklearn/feature_selection/tests/test_chi2.py ..... [ 13%] sklearn/feature_selection/tests/test_feature_select.py ......... [ 13%] ................................ [ 13%] sklearn/feature_selection/tests/test_from_model.py ............. [ 13%] ........ [ 14%] sklearn/feature_selection/tests/test_mutual_info.py ........ [ 14%] sklearn/feature_selection/tests/test_rfe.py ............ [ 14%] sklearn/feature_selection/tests/test_variance_threshold.py ... [ 14%] sklearn/gaussian_process/gpc.py . [ 14%] sklearn/gaussian_process/gpr.py . [ 14%] sklearn/gaussian_process/tests/test_gpc.py ..................... [ 14%] ............. [ 14%] sklearn/gaussian_process/tests/test_gpr.py ..................... [ 14%] ................................................................ [ 15%] . [ 15%] sklearn/gaussian_process/tests/test_kernels.py ................. [ 15%] ................................................................ [ 15%] ................................................................ [ 16%] ................................................................ [ 16%] ............................................. [ 17%] sklearn/impute/_base.py .. [ 17%] sklearn/impute/_iterative.py . [ 17%] sklearn/impute/_knn.py . [ 17%] sklearn/impute/tests/test_impute.py ............................ [ 17%] ......ss..........ss............................................ [ 17%] ................................................................ [ 18%] .. [ 18%] sklearn/impute/tests/test_knn.py ............................... [ 18%] ........ [ 18%] sklearn/inspection/partial_dependence.py .. [ 18%] sklearn/inspection/tests/test_partial_dependence.py ............ [ 18%] ................................................................ [ 19%] ..................................................ssssssssssssss [ 19%] [ 19%] sklearn/inspection/tests/test_permutation_importance.py ..ss.s. [ 19%] sklearn/linear_model/base.py . [ 19%] sklearn/linear_model/bayes.py .. [ 19%] sklearn/linear_model/coordinate_descent.py ......... [ 19%] sklearn/linear_model/huber.py . [ 19%] sklearn/linear_model/least_angle.py ..... [ 19%] sklearn/linear_model/logistic.py .. [ 19%] sklearn/linear_model/omp.py .. [ 19%] sklearn/linear_model/passive_aggressive.py .. [ 19%] sklearn/linear_model/perceptron.py . [ 19%] sklearn/linear_model/ransac.py . [ 19%] sklearn/linear_model/ridge.py .... [ 19%] sklearn/linear_model/sag.py . [ 19%] sklearn/linear_model/stochastic_gradient.py .. [ 19%] sklearn/linear_model/theil_sen.py . [ 19%] sklearn/linear_model/tests/test_base.py ....................... [ 20%] sklearn/linear_model/tests/test_bayes.py ............. [ 20%] sklearn/linear_model/tests/test_coordinate_descent.py .......... [ 20%] ........................................ [ 20%] sklearn/linear_model/tests/test_huber.py .......... [ 20%] sklearn/linear_model/tests/test_least_angle.py ................. [ 20%] ...................... [ 20%] sklearn/linear_model/tests/test_logistic.py .................... [ 21%] ................................................................ [ 21%] ............s.....s............................................. [ 21%] ................................... [ 22%] sklearn/linear_model/tests/test_omp.py .................. [ 22%] sklearn/linear_model/tests/test_passive_aggressive.py .......... [ 22%] ...... [ 22%] sklearn/linear_model/tests/test_perceptron.py ... [ 22%] sklearn/linear_model/tests/test_ransac.py ...................... [ 22%] . [ 22%] sklearn/linear_model/tests/test_ridge.py ....................... [ 22%] ................................................................ [ 23%] ................................................................ [ 23%] ................................................................ [ 24%] ................................................................ [ 24%] ................ [ 24%] sklearn/linear_model/tests/test_sag.py .................. [ 25%] sklearn/linear_model/tests/test_sgd.py ......................... [ 25%] ................................................................ [ 25%] ................................................................ [ 26%] ........................................................... [ 26%] sklearn/linear_model/tests/test_sparse_coordinate_descent.py ... [ 26%] ......... [ 26%] sklearn/linear_model/tests/test_theil_sen.py ................. [ 26%] sklearn/manifold/isomap.py . [ 26%] sklearn/manifold/locally_linear.py . [ 26%] sklearn/manifold/mds.py . [ 26%] sklearn/manifold/spectral_embedding_.py . [ 26%] sklearn/manifold/t_sne.py . [ 26%] sklearn/manifold/tests/test_isomap.py ...... [ 26%] sklearn/manifold/tests/test_locally_linear.py ....... [ 26%] sklearn/manifold/tests/test_mds.py ... [ 26%] sklearn/manifold/tests/test_spectral_embedding.py ....ss....... [ 27%] sklearn/manifold/tests/test_t_sne.py ........................... [ 27%] ....................... [ 27%] sklearn/metrics/classification.py ................. [ 27%] sklearn/metrics/pairwise.py ...... [ 27%] sklearn/metrics/ranking.py ........ [ 27%] sklearn/metrics/regression.py .......... [ 27%] sklearn/metrics/scorer.py . [ 27%] sklearn/metrics/_plot/tests/test_plot_roc_curve.py sssssssssssss [ 27%] [ 27%] sklearn/metrics/cluster/supervised.py ....... [ 27%] sklearn/metrics/cluster/tests/test_bicluster.py ... [ 27%] sklearn/metrics/cluster/tests/test_common.py ................... [ 28%] ..................... [ 28%] sklearn/metrics/cluster/tests/test_supervised.py ............... [ 28%] .... [ 28%] sklearn/metrics/cluster/tests/test_unsupervised.py ........... [ 28%] sklearn/metrics/tests/test_classification.py ................... [ 28%] ........................................................... [ 29%] sklearn/metrics/tests/test_common.py ........................... [ 29%] ................................................................ [ 29%] ................................................................ [ 30%] ................................................................ [ 30%] ................................................................ [ 31%] ................................................................ [ 31%] ................................................................ [ 32%] ................................................................ [ 32%] ................................................................ [ 33%] ................................................................ [ 33%] .................... [ 33%] sklearn/metrics/tests/test_pairwise.py ......................... [ 33%] ................................................................ [ 34%] ...........................x.x.................................. [ 34%] .................................. [ 35%] sklearn/metrics/tests/test_ranking.py .......................... [ 35%] ................................................................ [ 35%] .... [ 35%] sklearn/metrics/tests/test_regression.py ......... [ 35%] sklearn/metrics/tests/test_score_objects.py .................... [ 36%] ........................................ [ 36%] sklearn/mixture/tests/test_bayesian_mixture.py ................. [ 36%] .. [ 36%] sklearn/mixture/tests/test_gaussian_mixture.py ................. [ 36%] .................... [ 36%] sklearn/mixture/tests/test_mixture.py .. [ 36%] sklearn/model_selection/_search.py .... [ 36%] sklearn/model_selection/_split.py .............. [ 36%] sklearn/model_selection/_validation.py s... [ 36%] sklearn/model_selection/tests/test_search.py ................... [ 37%] ................................................. [ 37%] sklearn/model_selection/tests/test_split.py .................... [ 37%] ................................................................ [ 38%] ..................... [ 38%] sklearn/model_selection/tests/test_validation.py ............... [ 38%] .......................................... [ 38%] sklearn/neighbors/base.py .... [ 38%] sklearn/neighbors/classification.py .. [ 38%] sklearn/neighbors/graph.py .. [ 38%] sklearn/neighbors/nca.py . [ 38%] sklearn/neighbors/nearest_centroid.py . [ 38%] sklearn/neighbors/regression.py .. [ 38%] sklearn/neighbors/unsupervised.py . [ 38%] sklearn/neighbors/tests/test_ball_tree.py ...................... [ 38%] ................................................................ [ 39%] ................................................................ [ 39%] ................................................................ [ 40%] .................................. [ 40%] sklearn/neighbors/tests/test_dist_metrics.py ................... [ 40%] ....................................... [ 40%] sklearn/neighbors/tests/test_kd_tree.py ........................ [ 41%] ..................................................... [ 41%] sklearn/neighbors/tests/test_kde.py ............................ [ 41%] ............ [ 41%] sklearn/neighbors/tests/test_lof.py ............ [ 41%] sklearn/neighbors/tests/test_nca.py ............................ [ 42%] ................................................................ [ 42%] ................................................................ [ 43%] ........................................................... [ 43%] sklearn/neighbors/tests/test_nearest_centroid.py ......... [ 43%] sklearn/neighbors/tests/test_neighbors.py ...................... [ 43%] ..................................................... [ 44%] sklearn/neighbors/tests/test_quad_tree.py ........... [ 44%] sklearn/neural_network/rbm.py . [ 44%] sklearn/neural_network/tests/test_mlp.py ....................... [ 44%] ........ [ 44%] sklearn/neural_network/tests/test_rbm.py ............ [ 44%] sklearn/neural_network/tests/test_stochastic_optimizers.py ..... [ 44%] . [ 44%] sklearn/preprocessing/_discretization.py . [ 44%] sklearn/preprocessing/_encoders.py .. [ 44%] sklearn/preprocessing/data.py ............. [ 44%] sklearn/preprocessing/label.py .... [ 44%] sklearn/preprocessing/tests/test_common.py ......... [ 44%] sklearn/preprocessing/tests/test_data.py ....................... [ 45%] .............................................s.s.s.s...........s [ 45%] .s.............................................................. [ 45%] .......................................... [ 46%] sklearn/preprocessing/tests/test_discretization.py ............. [ 46%] ............................... [ 46%] sklearn/preprocessing/tests/test_encoders.py ..............sss.. [ 46%] ..........ss.........s......ss..ss...........s.............. [ 47%] sklearn/preprocessing/tests/test_function_transformer.py ....... [ 47%] s [ 47%] sklearn/preprocessing/tests/test_label.py ...................... [ 47%] ............ [ 47%] sklearn/semi_supervised/label_propagation.py ... [ 47%] sklearn/semi_supervised/tests/test_label_propagation.py ........ [ 47%] . [ 47%] sklearn/svm/classes.py ....... [ 47%] sklearn/svm/tests/test_bounds.py ................... [ 47%] sklearn/svm/tests/test_sparse.py ............................... [ 48%] [ 48%] sklearn/svm/tests/test_svm.py .................................. [ 48%] ...................... [ 48%] sklearn/tests/test_base.py .......................... [ 48%] sklearn/tests/test_calibration.py ........... [ 48%] sklearn/tests/test_check_build.py . [ 48%] sklearn/tests/test_common.py ...................s............... [ 48%] ......s...........s............................................. [ 49%] .......................................s.............s.......... [ 49%] .........s..............ss...................................... [ 50%] .............s.....................................s............ [ 50%] ................................................................ [ 51%] ...................................................s............ [ 51%] .........................s...................................... [ 52%] .......................s...................................s.... [ 52%] ....................................................s........... [ 53%] ................................................................ [ 53%] ................s........................s...................... [ 54%] ...............s......................................s......... [ 54%] .....................s......................................s... [ 55%] ...............................................................s [ 55%] ...................s...........s................................ [ 56%] ................................................................ [ 56%] ...............................................................s [ 57%] ......................................s......................... [ 57%] ..........s......................................s.............. [ 58%] ................................................................ [ 58%] ................................................................ [ 59%] .......................................s........................ [ 59%] ................................................................ [ 59%] ................................................................ [ 60%] ....................s.....................................s..... [ 60%] ................................................................ [ 61%] ................................................................ [ 61%] ..........................s..................................... [ 62%] .............................s.................................. [ 62%] ................................................................ [ 63%] .......................s........................................ [ 63%] ................................................................ [ 64%] ................................................................ [ 64%] ...s.......................................................s.... [ 65%] ................................................................ [ 65%] ................................................................ [ 66%] ................................................................ [ 66%] ................................................................ [ 67%] ................................................................ [ 67%] ................................................................ [ 68%] ................................................................ [ 68%] ............s...................................s............... [ 69%] ........................s....................................... [ 69%] .....................................................s.......... [ 69%] .............................s.................................. [ 70%] ................................................................ [ 70%] ................................................................ [ 71%] ................................................................ [ 71%] .............................................................s.. [ 72%] ....................................................s........... [ 72%] ..............................s................................. [ 73%] ................................................................ [ 73%] ................................................................ [ 74%] ..................s............................................. [ 74%] ................................................................ [ 75%] ................................................................ [ 75%] ......................s......................s...s...........s.. [ 76%] ................................................................ [ 76%] .........................................................s...... [ 77%] ................................................................ [ 77%] ................................................................ [ 78%] ................................................................ [ 78%] ...............................................................s [ 79%] .......................................s........................ [ 79%] ................................................................ [ 79%] ............................................s................... [ 80%] ................................................................ [ 80%] ................................................................ [ 81%] .....................s.......................................... [ 81%] ................................................................ [ 82%] ................................................................ [ 82%] ........................................................s....... [ 83%] ...............................s................................ [ 83%] ...s............................................................ [ 84%] ......s...................................s..................... [ 84%] ..............s......................................s.......... [ 85%] ..........................................................s..... [ 85%] ..................................s............................. [ 86%] .......s......................................s................. [ 86%] ................................................................ [ 87%] ................................................................ [ 87%] ................................................................ [ 88%] ................................................................ [ 88%] ......................................................s......... [ 89%] ................................................................ [ 89%] ................................................................ [ 90%] ......................................................s......... [ 90%] ................................................................ [ 90%] ............................. [ 91%] sklearn/tests/test_config.py ... [ 91%] sklearn/tests/test_discriminant_analysis.py F................... [ 91%] .......... [ 91%] sklearn/tests/test_docstring_parameters.py ss [ 91%] sklearn/tests/test_dummy.py .................................... [ 91%] .................. [ 91%] sklearn/tests/test_init.py . [ 91%] sklearn/tests/test_isotonic.py ................................ [ 92%] sklearn/tests/test_kernel_approximation.py .......... [ 92%] sklearn/tests/test_kernel_ridge.py ........ [ 92%] sklearn/tests/test_metaestimators.py . [ 92%] sklearn/tests/test_multiclass.py ............................... [ 92%] ........ [ 92%] sklearn/tests/test_multioutput.py ........................... [ 92%] sklearn/tests/test_naive_bayes.py .............................. [ 92%] ................ [ 93%] sklearn/tests/test_pipeline.py ................................. [ 93%] ........................... [ 93%] sklearn/tests/test_random_projection.py ................ [ 93%] sklearn/tests/test_site_joblib.py . [ 93%] sklearn/tree/export.py ... [ 93%] sklearn/tree/tree.py .. [ 93%] sklearn/tree/tests/test_export.py ......ss [ 93%] sklearn/tree/tests/test_reingold_tilford.py .. [ 93%] sklearn/tree/tests/test_tree.py ................................ [ 93%] ................................................................ [ 94%] ................................................................ [ 94%] ................................................................ [ 95%] ......................................................... [ 95%] sklearn/utils/__init__.py ........ [ 95%] sklearn/utils/deprecation.py . [ 95%] sklearn/utils/extmath.py .. [ 95%] sklearn/utils/graph.py . [ 95%] sklearn/utils/multiclass.py ... [ 95%] sklearn/utils/testing.py . [ 95%] sklearn/utils/validation.py . [ 95%] sklearn/utils/tests/test_class_weight.py ........... [ 96%] sklearn/utils/tests/test_cython_blas.py ........................ [ 96%] .................... [ 96%] sklearn/utils/tests/test_deprecation.py ... [ 96%] sklearn/utils/tests/test_estimator_checks.py .......... [ 96%] sklearn/utils/tests/test_extmath.py ........................... [ 96%] sklearn/utils/tests/test_fast_dict.py .. [ 96%] sklearn/utils/tests/test_fixes.py ...... [ 96%] sklearn/utils/tests/test_linear_assignment.py . [ 96%] sklearn/utils/tests/test_metaestimators.py .. [ 96%] sklearn/utils/tests/test_multiclass.py ......s... [ 96%] sklearn/utils/tests/test_murmurhash.py ...... [ 96%] sklearn/utils/tests/test_optimize.py . [ 96%] sklearn/utils/tests/test_pprint.py ......... [ 96%] sklearn/utils/tests/test_random.py ..... [ 96%] sklearn/utils/tests/test_seq_dataset.py ......... [ 97%] sklearn/utils/tests/test_shortest_path.py .... [ 97%] sklearn/utils/tests/test_show_versions.py ... [ 97%] sklearn/utils/tests/test_sparsefuncs.py ........................ [ 97%] ......................................... [ 97%] sklearn/utils/tests/test_testing.py ...........s.......... [ 97%] sklearn/utils/tests/test_utils.py .............................. [ 97%] .s...sssss...s..s..ssss..s..s..ssss..s..s..ssss..s........ssssss [ 98%] ssssssssss........ssssssssssssssss..s..ssss..s..ssss..s..ssss... [ 98%] s..s..s..s...s...s.ss........................................... [ 99%] ... [ 99%] sklearn/utils/tests/test_validation.py ......................... [ 99%] ....................s.ss........................... [100%] =============================== FAILURES =============================== ______ [doctest] sklearn.feature_extraction.image.PatchExtractor _______ 459 deterministic. 460 See :term:`Glossary &lt;random_state&gt;`. 461 462 463 Examples 464 -------- 465 &gt;&gt;&gt; from sklearn.datasets import load_sample_images 466 &gt;&gt;&gt; from sklearn.feature_extraction import image 467 &gt;&gt;&gt; # Use the array data from the second image in this dataset: 468 &gt;&gt;&gt; X = load_sample_images().images[1] UNEXPECTED EXCEPTION: ImportError('The Python Imaging Library (PIL) is required to load data from jpeg files. Please refer to https://pillow.readthedocs.io/en/stable/installation.html for installing PIL.') Traceback (most recent call last): File &quot;/home/sik/miniconda3/envs/test-sklearn/lib/python3.7/doctest.py&quot;, line 1329, in __run compileflags, 1), test.globs) File &quot;&lt;doctest sklearn.feature_extraction.image.PatchExtractor[2]&gt;&quot;, line 1, in &lt;module&gt; File &quot;/home/sik/code/scikit-learn/sklearn/datasets/base.py&quot;, line 801, in load_sample_images images = [imread(filename) for filename in filenames] File &quot;/home/sik/code/scikit-learn/sklearn/datasets/base.py&quot;, line 801, in &lt;listcomp&gt; images = [imread(filename) for filename in filenames] File &quot;/home/sik/code/scikit-learn/sklearn/externals/_pilutil.py&quot;, line 204, in imread raise ImportError(PILLOW_ERROR_MESSAGE) ImportError: The Python Imaging Library (PIL) is required to load data from jpeg files. Please refer to https://pillow.readthedocs.io/en/stable/installation.html for installing PIL. /home/sik/code/scikit-learn/sklearn/feature_extraction/image.py:468: UnexpectedException ____ [doctest] sklearn.feature_extraction.image.extract_patches_2d _____ 334 The collection of patches extracted from the image, where `n_patches` 335 is either `max_patches` or the total number of patches that can be 336 extracted. 337 338 Examples 339 -------- 340 &gt;&gt;&gt; from sklearn.datasets import load_sample_image 341 &gt;&gt;&gt; from sklearn.feature_extraction import image 342 &gt;&gt;&gt; # Use the array data from the first image in this dataset: 343 &gt;&gt;&gt; one_image = load_sample_image(&quot;china.jpg&quot;) UNEXPECTED EXCEPTION: ImportError('The Python Imaging Library (PIL) is required to load data from jpeg files. Please refer to https://pillow.readthedocs.io/en/stable/installation.html for installing PIL.') Traceback (most recent call last): File &quot;/home/sik/miniconda3/envs/test-sklearn/lib/python3.7/doctest.py&quot;, line 1329, in __run compileflags, 1), test.globs) File &quot;&lt;doctest sklearn.feature_extraction.image.extract_patches_2d[2]&gt;&quot;, line 1, in &lt;module&gt; File &quot;/home/sik/code/scikit-learn/sklearn/datasets/base.py&quot;, line 838, in load_sample_image images = load_sample_images() File &quot;/home/sik/code/scikit-learn/sklearn/datasets/base.py&quot;, line 801, in load_sample_images images = [imread(filename) for filename in filenames] File &quot;/home/sik/code/scikit-learn/sklearn/datasets/base.py&quot;, line 801, in &lt;listcomp&gt; images = [imread(filename) for filename in filenames] File &quot;/home/sik/code/scikit-learn/sklearn/externals/_pilutil.py&quot;, line 204, in imread raise ImportError(PILLOW_ERROR_MESSAGE) ImportError: The Python Imaging Library (PIL) is required to load data from jpeg files. Please refer to https://pillow.readthedocs.io/en/stable/installation.html for installing PIL. /home/sik/code/scikit-learn/sklearn/feature_extraction/image.py:343: UnexpectedException ___________________________ test_lda_predict ___________________________ def test_lda_predict(): # Test LDA classification. # This checks that LDA implements fit and predict and returns correct # values for simple toy data. for test_case in solver_shrinkage: solver, shrinkage = test_case clf = LinearDiscriminantAnalysis(solver=solver, shrinkage=shrinkage) y_pred = clf.fit(X, y).predict(X) assert_array_equal(y_pred, y, 'solver %s' % solver) # Assert that it works with 1D data y_pred1 = clf.fit(X1, y).predict(X1) assert_array_equal(y_pred1, y, 'solver %s' % solver) # Test probability estimates y_proba_pred1 = clf.predict_proba(X1) assert_array_equal((y_proba_pred1[:, 1] &gt; 0.5) + 1, y, 'solver %s' % solver) y_log_proba_pred1 = clf.predict_log_proba(X1) assert_array_almost_equal(np.exp(y_log_proba_pred1), y_proba_pred1, &gt; 8, 'solver %s' % solver) E AssertionError: E Arrays are not almost equal to 8 decimals E solver svd E Mismatch: 16.7% E Max absolute difference: 5.9604645e-08 E Max relative difference: 4.7683716e-07 E x: array([[9.9999994e-01, 1.1253517e-07], E [9.9966466e-01, 3.3535002e-04], E [9.9966466e-01, 3.3535002e-04],... E y: array([[9.99999881e-01, 1.12535155e-07], E [9.99664664e-01, 3.35350138e-04], E [9.99664664e-01, 3.35350138e-04],... sklearn/tests/test_discriminant_analysis.py:80: AssertionError ======================= short test summary info ======================== SKIPPED [3] /home/sik/code/scikit-learn/sklearn/ensemble/_hist_gradient_boosting/tests/test_compare_lightgbm.py:17: could not import 'lightgbm': No module named 'lightgbm' SKIPPED [1] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/unittest.py:238: This test is failing on the buildbot, but cannot reproduce. Temporarily disabling it until it can be reproduced and fixed. SKIPPED [1] /home/sik/code/scikit-learn/sklearn/compose/tests/test_column_transformer.py:132: could not import 'pandas': No module named 'pandas' SKIPPED [2] /home/sik/code/scikit-learn/sklearn/compose/tests/test_column_transformer.py:263: could not import 'pandas': No module named 'pandas' SKIPPED [1] /home/sik/code/scikit-learn/sklearn/compose/tests/test_column_transformer.py:467: could not import 'pandas': No module named 'pandas' SKIPPED [1] /home/sik/code/scikit-learn/sklearn/compose/tests/test_column_transformer.py:538: could not import 'pandas': No module named 'pandas' SKIPPED [9] /home/sik/code/scikit-learn/sklearn/compose/tests/test_column_transformer.py:812: could not import 'pandas': No module named 'pandas' SKIPPED [1] /home/sik/code/scikit-learn/sklearn/compose/tests/test_column_transformer.py:1054: could not import 'pandas': No module named 'pandas' SKIPPED [2] /home/sik/code/scikit-learn/sklearn/compose/tests/test_column_transformer.py:1091: could not import 'pandas': No module named 'pandas' SKIPPED [1] /home/sik/code/scikit-learn/sklearn/compose/tests/test_column_transformer.py:1125: could not import 'pandas': No module named 'pandas' SKIPPED [3] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/unittest.py:238: Download 20 newsgroups to run this test SKIPPED [1] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/unittest.py:238: Covertype dataset can not be loaded. SKIPPED [2] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/unittest.py:238: kddcup99 dataset can not be loaded. SKIPPED [5] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/unittest.py:238: PIL not installed. SKIPPED [1] sklearn/datasets/tests/test_olivetti_faces.py:20: Download Olivetti faces dataset to run this test SKIPPED [1] /home/sik/code/scikit-learn/sklearn/datasets/tests/test_openml.py:289: could not import 'pandas': No module named 'pandas' SKIPPED [1] /home/sik/code/scikit-learn/sklearn/datasets/tests/test_openml.py:329: could not import 'pandas': No module named 'pandas' SKIPPED [1] /home/sik/code/scikit-learn/sklearn/datasets/tests/test_openml.py:348: could not import 'pandas': No module named 'pandas' SKIPPED [1] /home/sik/code/scikit-learn/sklearn/datasets/tests/test_openml.py:389: could not import 'pandas': No module named 'pandas' SKIPPED [1] /home/sik/code/scikit-learn/sklearn/datasets/tests/test_openml.py:426: could not import 'pandas': No module named 'pandas' SKIPPED [1] /home/sik/code/scikit-learn/sklearn/datasets/tests/test_openml.py:478: could not import 'pandas': No module named 'pandas' SKIPPED [1] /home/sik/code/scikit-learn/sklearn/datasets/tests/test_openml.py:490: could not import 'pandas': No module named 'pandas' SKIPPED [1] /home/sik/code/scikit-learn/sklearn/datasets/tests/test_openml.py:518: could not import 'pandas': No module named 'pandas' SKIPPED [1] /home/sik/code/scikit-learn/sklearn/datasets/tests/test_openml.py:557: could not import 'pandas': No module named 'pandas' SKIPPED [1] /home/sik/code/scikit-learn/sklearn/datasets/tests/test_openml.py:595: could not import 'pandas': No module named 'pandas' SKIPPED [1] /home/sik/code/scikit-learn/sklearn/datasets/tests/test_openml.py:633: could not import 'pandas': No module named 'pandas' SKIPPED [1] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/unittest.py:238: Download RCV1 dataset to run this test. SKIPPED [1] sklearn/datasets/tests/test_svmlight_format.py:188: testing the overflow of 32 bit sparse indexing requires a large amount of memory SKIPPED [1] sklearn/decomposition/tests/test_sparse_pca.py:134: skipping mini_batch_fit_transform. SKIPPED [34] /home/sik/code/scikit-learn/sklearn/conftest.py:18: could not import 'matplotlib': No module named 'matplotlib' SKIPPED [2] /home/sik/code/scikit-learn/sklearn/impute/tests/test_impute.py:315: could not import 'pandas': No module named 'pandas' SKIPPED [2] /home/sik/code/scikit-learn/sklearn/impute/tests/test_impute.py:428: could not import 'pandas': No module named 'pandas' SKIPPED [2] /home/sik/code/scikit-learn/sklearn/inspection/tests/test_permutation_importance.py:52: could not import 'pandas': No module named 'pandas' SKIPPED [1] /home/sik/code/scikit-learn/sklearn/inspection/tests/test_permutation_importance.py:114: could not import 'pandas': No module named 'pandas' SKIPPED [2] /home/sik/code/scikit-learn/sklearn/linear_model/tests/test_logistic.py:1306: liblinear does not support multinomial logistic SKIPPED [1] /home/sik/code/scikit-learn/sklearn/manifold/tests/test_spectral_embedding.py:166: could not import 'pyamg': No module named 'pyamg' SKIPPED [1] /home/sik/code/scikit-learn/sklearn/manifold/tests/test_spectral_embedding.py:196: could not import 'pyamg': No module named 'pyamg' SKIPPED [1] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/doctest.py:351: all tests skipped by +SKIP option SKIPPED [4] /home/sik/code/scikit-learn/sklearn/preprocessing/tests/test_data.py:866: 'with_mean=True' cannot be used with sparse matrix. SKIPPED [2] /home/sik/code/scikit-learn/sklearn/preprocessing/tests/test_data.py:1077: RobustScaler cannot center sparse matrix SKIPPED [3] /home/sik/code/scikit-learn/sklearn/preprocessing/tests/test_encoders.py:127: could not import 'pandas': No module named 'pandas' SKIPPED [2] /home/sik/code/scikit-learn/sklearn/preprocessing/tests/test_encoders.py:283: could not import 'pandas': No module named 'pandas' SKIPPED [1] /home/sik/code/scikit-learn/sklearn/preprocessing/tests/test_encoders.py:378: could not import 'pandas': No module named 'pandas' SKIPPED [4] /home/sik/code/scikit-learn/sklearn/preprocessing/tests/test_encoders.py:450: could not import 'pandas': No module named 'pandas' SKIPPED [1] /home/sik/code/scikit-learn/sklearn/preprocessing/tests/test_encoders.py:584: could not import 'pandas': No module named 'pandas' SKIPPED [1] /home/sik/code/scikit-learn/sklearn/preprocessing/tests/test_function_transformer.py:157: could not import 'pandas': No module named 'pandas' SKIPPED [1] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/unittest.py:238: Can't instantiate estimator ColumnTransformer which requires parameters ['transformers'] SKIPPED [1] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/unittest.py:238: Can't instantiate estimator FeatureUnion which requires parameters ['transformer_list'] SKIPPED [1] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/unittest.py:238: Can't instantiate estimator GridSearchCV which requires parameters ['estimator', 'param_grid'] SKIPPED [1] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/unittest.py:238: Can't instantiate estimator Pipeline which requires parameters ['steps'] SKIPPED [1] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/unittest.py:238: Can't instantiate estimator RandomizedSearchCV which requires parameters ['estimator', 'param_distributions'] SKIPPED [1] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/unittest.py:238: Can't instantiate estimator SparseCoder which requires parameters ['dictionary'] SKIPPED [1] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/unittest.py:238: Can't instantiate estimator VotingClassifier which requires parameters ['estimators'] SKIPPED [1] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/unittest.py:238: Can't instantiate estimator VotingRegressor which requires parameters ['estimators'] SKIPPED [50] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/unittest.py:238: pandas is not installed: not testing for input of type pandas.Series to class weight. SKIPPED [1] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/unittest.py:238: score_samples of BernoulliRBM is not invariant when applied to a subset. SKIPPED [3] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/unittest.py:238: Skipping check_estimators_data_not_an_array for cross decomposition module as estimators are not deterministic. SKIPPED [1] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/unittest.py:238: predict of DummyClassifier is not invariant when applied to a subset. SKIPPED [1] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/unittest.py:238: transform of MiniBatchSparsePCA is not invariant when applied to a subset. SKIPPED [1] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/unittest.py:238: Not testing NuSVC class weight as it is ignored. SKIPPED [1] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/unittest.py:238: decision_function of NuSVC is not invariant when applied to a subset. SKIPPED [1] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/unittest.py:238: transform of SparsePCA is not invariant when applied to a subset. SKIPPED [2] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/unittest.py:238: numpydoc is required to test the docstrings SKIPPED [1] /home/sik/code/scikit-learn/sklearn/utils/tests/test_multiclass.py:299: could not import 'pandas': No module named 'pandas' SKIPPED [37] /home/sik/code/scikit-learn/sklearn/utils/tests/test_utils.py:239: could not import 'pandas': No module named 'pandas' SKIPPED [39] /home/sik/code/scikit-learn/sklearn/utils/tests/test_utils.py:242: could not import 'pandas': No module named 'pandas' SKIPPED [1] /home/sik/code/scikit-learn/sklearn/utils/tests/test_utils.py:423: could not import 'pandas': No module named 'pandas' SKIPPED [1] /home/sik/code/scikit-learn/sklearn/utils/tests/test_utils.py:444: could not import 'pandas': No module named 'pandas' SKIPPED [2] /home/sik/code/scikit-learn/sklearn/utils/tests/test_utils.py:466: could not import 'pandas': No module named 'pandas' SKIPPED [1] /home/sik/miniconda3/envs/test-sklearn/lib/python3.7/site-packages/_pytest/unittest.py:238: Pandas not found SKIPPED [1] /home/sik/code/scikit-learn/sklearn/utils/tests/test_validation.py:719: could not import 'pandas': No module named 'pandas' SKIPPED [1] /home/sik/code/scikit-learn/sklearn/utils/tests/test_validation.py:732: could not import 'pandas': No module named 'pandas' = 3 failed, 13147 passed, 265 skipped, 6 xfailed, 1572 warnings in 409.77s (0:06:49) = This problem is unconstrained. RUNNING THE L-BFGS-B CODE * * * Machine precision = 2.220D-16 N = 3 M = 10 At X0 0 variables are exactly at the bounds At iterate 0 f= 1.38629D+02 |proj g|= 6.27865D+01 * * * Tit = total number of iterations Tnf = total number of function evaluations Tnint = total number of segments explored during Cauchy searches Skip = number of BFGS updates skipped Nact = number of active bounds at final generalized Cauchy point Projg = norm of the final projected gradient F = final function value * * * N Tit Tnf Tnint Skip Nact Projg F 3 1 2 1 0 0 2.422D+01 9.713D+01 F = 97.133816163368223 STOP: TOTAL NO. of ITERATIONS REACHED LIMIT Cauchy time 0.000E+00 seconds. Subspace minimization time 0.000E+00 seconds. Line search time 0.000E+00 seconds. Total User time 0.000E+00 seconds. "><pre class="notranslate">========================= <span class="pl-c1">test</span> session starts ========================== platform linux -- Python 3.7.3, pytest-5.1.2, py-1.8.0, pluggy-0.12.0 rootdir: /home/sik/code/scikit-learn, inifile: setup.cfg collected 13419 items / 2 skipped / 13417 selected sklearn/_config.py <span class="pl-c1">.</span> [ 0%] sklearn/discriminant_analysis.py .. [ 0%] sklearn/exceptions.py .. [ 0%] sklearn/isotonic.py <span class="pl-c1">.</span> [ 0%] sklearn/kernel_approximation.py .... [ 0%] sklearn/kernel_ridge.py <span class="pl-c1">.</span> [ 0%] sklearn/naive_bayes.py .... [ 0%] sklearn/pipeline.py .... [ 0%] sklearn/random_projection.py ... [ 0%] sklearn/cluster/affinity_propagation_.py <span class="pl-c1">.</span> [ 0%] sklearn/cluster/bicluster.py .. [ 0%] sklearn/cluster/birch.py <span class="pl-c1">.</span> [ 0%] sklearn/cluster/dbscan_.py <span class="pl-c1">.</span> [ 0%] sklearn/cluster/hierarchical.py .. [ 0%] sklearn/cluster/k_means_.py .. [ 0%] sklearn/cluster/mean_shift_.py <span class="pl-c1">.</span> [ 0%] sklearn/cluster/spectral.py <span class="pl-c1">.</span> [ 0%] sklearn/cluster/tests/test_affinity_propagation.py ......... [ 0%] sklearn/cluster/tests/test_bicluster.py ........s......... [ 0%] sklearn/cluster/tests/test_birch.py ....... [ 0%] sklearn/cluster/tests/test_dbscan.py ........................... [ 0%] [ 0%] sklearn/cluster/tests/test_feature_agglomeration.py <span class="pl-c1">.</span> [ 0%] sklearn/cluster/tests/test_hierarchical.py ..................... [ 0%] ................. [ 0%] sklearn/cluster/tests/test_k_means.py .......................... [ 1%] ................................................................ [ 1%] .................................. [ 1%] sklearn/cluster/tests/test_mean_shift.py ............ [ 2%] sklearn/cluster/tests/test_optics.py ........................... [ 2%] ............. [ 2%] sklearn/cluster/tests/test_spectral.py .............. [ 2%] sklearn/compose/_column_transformer.py .. [ 2%] sklearn/compose/_target.py <span class="pl-c1">.</span> [ 2%] sklearn/compose/tests/test_column_transformer.py .ss.s........s. [ 2%] ...s............sssssssss.........................s.sss.. [ 2%] sklearn/compose/tests/test_target.py ............. [ 3%] sklearn/covariance/elliptic_envelope.py <span class="pl-c1">.</span> [ 3%] sklearn/covariance/empirical_covariance_.py <span class="pl-c1">.</span> [ 3%] sklearn/covariance/graph_lasso_.py .. [ 3%] sklearn/covariance/robust_covariance.py <span class="pl-c1">.</span> [ 3%] sklearn/covariance/shrunk_covariance_.py .. [ 3%] sklearn/covariance/tests/test_covariance.py ...... [ 3%] sklearn/covariance/tests/test_elliptic_envelope.py .. [ 3%] sklearn/covariance/tests/test_graphical_lasso.py ..... [ 3%] sklearn/covariance/tests/test_robust_covariance.py ....... [ 3%] sklearn/cross_decomposition/cca_.py <span class="pl-c1">.</span> [ 3%] sklearn/cross_decomposition/pls_.py ... [ 3%] sklearn/cross_decomposition/tests/test_pls.py ........ [ 3%] sklearn/datasets/base.py ....... [ 3%] sklearn/datasets/samples_generator.py <span class="pl-c1">.</span> [ 3%] sklearn/datasets/tests/test_20news.py sss [ 3%] sklearn/datasets/tests/test_base.py .................... [ 3%] sklearn/datasets/tests/test_california_housing.py <span class="pl-c1">.</span> [ 3%] sklearn/datasets/tests/test_covtype.py s [ 3%] sklearn/datasets/tests/test_kddcup99.py ss [ 3%] sklearn/datasets/tests/test_lfw.py sssss [ 3%] sklearn/datasets/tests/test_olivetti_faces.py s [ 3%] sklearn/datasets/tests/test_openml.py ...........sssss.ssssss... [ 3%] .................................................... [ 4%] sklearn/datasets/tests/test_rcv1.py s [ 4%] sklearn/datasets/tests/test_samples_generator.py ............... [ 4%] ............. [ 4%] sklearn/datasets/tests/test_svmlight_format.py ...........s..... [ 4%] ...................................... [ 4%] sklearn/decomposition/base.py <span class="pl-c1">.</span> [ 4%] sklearn/decomposition/factor_analysis.py <span class="pl-c1">.</span> [ 4%] sklearn/decomposition/fastica_.py <span class="pl-c1">.</span> [ 4%] sklearn/decomposition/incremental_pca.py .. [ 4%] sklearn/decomposition/kernel_pca.py <span class="pl-c1">.</span> [ 4%] sklearn/decomposition/nmf.py .. [ 4%] sklearn/decomposition/online_lda.py <span class="pl-c1">.</span> [ 4%] sklearn/decomposition/pca.py <span class="pl-c1">.</span> [ 4%] sklearn/decomposition/sparse_pca.py .. [ 4%] sklearn/decomposition/truncated_svd.py <span class="pl-c1">.</span> [ 4%] sklearn/decomposition/tests/test_dict_learning.py .............. [ 5%] ..................................................... [ 5%] sklearn/decomposition/tests/test_factor_analysis.py <span class="pl-c1">.</span> [ 5%] sklearn/decomposition/tests/test_fastica.py ......... [ 5%] sklearn/decomposition/tests/test_incremental_pca.py ............ [ 5%] ........ [ 5%] sklearn/decomposition/tests/test_kernel_pca.py .............. [ 5%] sklearn/decomposition/tests/test_nmf.py ........................ [ 5%] [ 5%] sklearn/decomposition/tests/test_online_lda.py ................. [ 6%] .............. [ 6%] sklearn/decomposition/tests/test_pca.py ........................ [ 6%] ................................................................ [ 6%] ...................... [ 7%] sklearn/decomposition/tests/test_sparse_pca.py .......s...... [ 7%] sklearn/decomposition/tests/test_truncated_svd.py .............. [ 7%] .................. [ 7%] sklearn/ensemble/forest.py .. [ 7%] sklearn/ensemble/partial_dependence.py .. [ 7%] sklearn/ensemble/voting.py .. [ 7%] sklearn/ensemble/weight_boosting.py .. [ 7%] sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py .. [ 7%] [ 7%] sklearn/ensemble/_hist_gradient_boosting/tests/test_binning.py <span class="pl-c1">.</span> [ 7%] ............................................. [ 7%] sklearn/ensemble/_hist_gradient_boosting/tests/test_gradient_boosting.py <span class="pl-c1">.</span> [ 7%] ................................................................ [ 8%] ............... [ 8%] sklearn/ensemble/_hist_gradient_boosting/tests/test_grower.py .. [ 8%] ...................... [ 8%] sklearn/ensemble/_hist_gradient_boosting/tests/test_histogram.py <span class="pl-c1">.</span> [ 8%] ...... [ 8%] sklearn/ensemble/_hist_gradient_boosting/tests/test_loss.py .... [ 8%] ....... [ 8%] sklearn/ensemble/_hist_gradient_boosting/tests/test_predictor.py <span class="pl-c1">.</span> [ 8%] ...... [ 8%] sklearn/ensemble/_hist_gradient_boosting/tests/test_splitting.py <span class="pl-c1">.</span> [ 8%] ............... [ 8%] sklearn/ensemble/_hist_gradient_boosting/tests/test_warm_start.py <span class="pl-c1">.</span> [ 8%] ............... [ 8%] sklearn/ensemble/tests/test_bagging.py ......................... [ 9%] ...... [ 9%] sklearn/ensemble/tests/test_base.py .... [ 9%] sklearn/ensemble/tests/test_forest.py .......................... [ 9%] ................................................................ [ 9%] ................................................................ [ 10%] ............. [ 10%] sklearn/ensemble/tests/test_gradient_boosting.py ............... [ 10%] ................................................................ [ 11%] ............................................... [ 11%] sklearn/ensemble/tests/test_gradient_boosting_loss_functions.py <span class="pl-c1">.</span> [ 11%] .............. [ 11%] sklearn/ensemble/tests/test_iforest.py .................... [ 11%] sklearn/ensemble/tests/test_partial_dependence.py .....sssss [ 11%] sklearn/ensemble/tests/test_voting.py ......................... [ 11%] sklearn/ensemble/tests/test_weight_boosting.py ................. [ 12%] .... [ 12%] sklearn/experimental/enable_hist_gradient_boosting.py <span class="pl-c1">.</span> [ 12%] sklearn/experimental/enable_iterative_imputer.py <span class="pl-c1">.</span> [ 12%] sklearn/experimental/tests/test_enable_hist_gradient_boosting.py <span class="pl-c1">.</span> [ 12%] [ 12%] sklearn/experimental/tests/test_enable_iterative_imputer.py <span class="pl-c1">.</span> [ 12%] sklearn/feature_extraction/dict_vectorizer.py .. [ 12%] sklearn/feature_extraction/hashing.py <span class="pl-c1">.</span> [ 12%] sklearn/feature_extraction/image.py FF [ 12%] sklearn/feature_extraction/text.py ... [ 12%] sklearn/feature_extraction/tests/test_dict_vectorizer.py ....... [ 12%] ..................... [ 12%] sklearn/feature_extraction/tests/test_feature_hasher.py ........ [ 12%] .. [ 12%] sklearn/feature_extraction/tests/test_image.py ................. [ 12%] ... [ 12%] sklearn/feature_extraction/tests/test_text.py .................. [ 12%] ..............................................x.........x..x.... [ 13%] ..........x.................. [ 13%] sklearn/feature_selection/rfe.py .. [ 13%] sklearn/feature_selection/univariate_selection.py ...... [ 13%] sklearn/feature_selection/variance_threshold.py <span class="pl-c1">.</span> [ 13%] sklearn/feature_selection/tests/test_base.py ..... [ 13%] sklearn/feature_selection/tests/test_chi2.py ..... [ 13%] sklearn/feature_selection/tests/test_feature_select.py ......... [ 13%] ................................ [ 13%] sklearn/feature_selection/tests/test_from_model.py ............. [ 13%] ........ [ 14%] sklearn/feature_selection/tests/test_mutual_info.py ........ [ 14%] sklearn/feature_selection/tests/test_rfe.py ............ [ 14%] sklearn/feature_selection/tests/test_variance_threshold.py ... [ 14%] sklearn/gaussian_process/gpc.py <span class="pl-c1">.</span> [ 14%] sklearn/gaussian_process/gpr.py <span class="pl-c1">.</span> [ 14%] sklearn/gaussian_process/tests/test_gpc.py ..................... [ 14%] ............. [ 14%] sklearn/gaussian_process/tests/test_gpr.py ..................... [ 14%] ................................................................ [ 15%] <span class="pl-c1">.</span> [ 15%] sklearn/gaussian_process/tests/test_kernels.py ................. [ 15%] ................................................................ [ 15%] ................................................................ [ 16%] ................................................................ [ 16%] ............................................. [ 17%] sklearn/impute/_base.py .. [ 17%] sklearn/impute/_iterative.py <span class="pl-c1">.</span> [ 17%] sklearn/impute/_knn.py <span class="pl-c1">.</span> [ 17%] sklearn/impute/tests/test_impute.py ............................ [ 17%] ......ss..........ss............................................ [ 17%] ................................................................ [ 18%] .. [ 18%] sklearn/impute/tests/test_knn.py ............................... [ 18%] ........ [ 18%] sklearn/inspection/partial_dependence.py .. [ 18%] sklearn/inspection/tests/test_partial_dependence.py ............ [ 18%] ................................................................ [ 19%] ..................................................ssssssssssssss [ 19%] [ 19%] sklearn/inspection/tests/test_permutation_importance.py ..ss.s. [ 19%] sklearn/linear_model/base.py <span class="pl-c1">.</span> [ 19%] sklearn/linear_model/bayes.py .. [ 19%] sklearn/linear_model/coordinate_descent.py ......... [ 19%] sklearn/linear_model/huber.py <span class="pl-c1">.</span> [ 19%] sklearn/linear_model/least_angle.py ..... [ 19%] sklearn/linear_model/logistic.py .. [ 19%] sklearn/linear_model/omp.py .. [ 19%] sklearn/linear_model/passive_aggressive.py .. [ 19%] sklearn/linear_model/perceptron.py <span class="pl-c1">.</span> [ 19%] sklearn/linear_model/ransac.py <span class="pl-c1">.</span> [ 19%] sklearn/linear_model/ridge.py .... [ 19%] sklearn/linear_model/sag.py <span class="pl-c1">.</span> [ 19%] sklearn/linear_model/stochastic_gradient.py .. [ 19%] sklearn/linear_model/theil_sen.py <span class="pl-c1">.</span> [ 19%] sklearn/linear_model/tests/test_base.py ....................... [ 20%] sklearn/linear_model/tests/test_bayes.py ............. [ 20%] sklearn/linear_model/tests/test_coordinate_descent.py .......... [ 20%] ........................................ [ 20%] sklearn/linear_model/tests/test_huber.py .......... [ 20%] sklearn/linear_model/tests/test_least_angle.py ................. [ 20%] ...................... [ 20%] sklearn/linear_model/tests/test_logistic.py .................... [ 21%] ................................................................ [ 21%] ............s.....s............................................. [ 21%] ................................... [ 22%] sklearn/linear_model/tests/test_omp.py .................. [ 22%] sklearn/linear_model/tests/test_passive_aggressive.py .......... [ 22%] ...... [ 22%] sklearn/linear_model/tests/test_perceptron.py ... [ 22%] sklearn/linear_model/tests/test_ransac.py ...................... [ 22%] <span class="pl-c1">.</span> [ 22%] sklearn/linear_model/tests/test_ridge.py ....................... [ 22%] ................................................................ [ 23%] ................................................................ [ 23%] ................................................................ [ 24%] ................................................................ [ 24%] ................ [ 24%] sklearn/linear_model/tests/test_sag.py .................. [ 25%] sklearn/linear_model/tests/test_sgd.py ......................... [ 25%] ................................................................ [ 25%] ................................................................ [ 26%] ........................................................... [ 26%] sklearn/linear_model/tests/test_sparse_coordinate_descent.py ... [ 26%] ......... [ 26%] sklearn/linear_model/tests/test_theil_sen.py ................. [ 26%] sklearn/manifold/isomap.py <span class="pl-c1">.</span> [ 26%] sklearn/manifold/locally_linear.py <span class="pl-c1">.</span> [ 26%] sklearn/manifold/mds.py <span class="pl-c1">.</span> [ 26%] sklearn/manifold/spectral_embedding_.py <span class="pl-c1">.</span> [ 26%] sklearn/manifold/t_sne.py <span class="pl-c1">.</span> [ 26%] sklearn/manifold/tests/test_isomap.py ...... [ 26%] sklearn/manifold/tests/test_locally_linear.py ....... [ 26%] sklearn/manifold/tests/test_mds.py ... [ 26%] sklearn/manifold/tests/test_spectral_embedding.py ....ss....... [ 27%] sklearn/manifold/tests/test_t_sne.py ........................... [ 27%] ....................... [ 27%] sklearn/metrics/classification.py ................. [ 27%] sklearn/metrics/pairwise.py ...... [ 27%] sklearn/metrics/ranking.py ........ [ 27%] sklearn/metrics/regression.py .......... [ 27%] sklearn/metrics/scorer.py <span class="pl-c1">.</span> [ 27%] sklearn/metrics/_plot/tests/test_plot_roc_curve.py sssssssssssss [ 27%] [ 27%] sklearn/metrics/cluster/supervised.py ....... [ 27%] sklearn/metrics/cluster/tests/test_bicluster.py ... [ 27%] sklearn/metrics/cluster/tests/test_common.py ................... [ 28%] ..................... [ 28%] sklearn/metrics/cluster/tests/test_supervised.py ............... [ 28%] .... [ 28%] sklearn/metrics/cluster/tests/test_unsupervised.py ........... [ 28%] sklearn/metrics/tests/test_classification.py ................... [ 28%] ........................................................... [ 29%] sklearn/metrics/tests/test_common.py ........................... [ 29%] ................................................................ [ 29%] ................................................................ [ 30%] ................................................................ [ 30%] ................................................................ [ 31%] ................................................................ [ 31%] ................................................................ [ 32%] ................................................................ [ 32%] ................................................................ [ 33%] ................................................................ [ 33%] .................... [ 33%] sklearn/metrics/tests/test_pairwise.py ......................... [ 33%] ................................................................ [ 34%] ...........................x.x.................................. [ 34%] .................................. [ 35%] sklearn/metrics/tests/test_ranking.py .......................... [ 35%] ................................................................ [ 35%] .... [ 35%] sklearn/metrics/tests/test_regression.py ......... [ 35%] sklearn/metrics/tests/test_score_objects.py .................... [ 36%] ........................................ [ 36%] sklearn/mixture/tests/test_bayesian_mixture.py ................. [ 36%] .. [ 36%] sklearn/mixture/tests/test_gaussian_mixture.py ................. [ 36%] .................... [ 36%] sklearn/mixture/tests/test_mixture.py .. [ 36%] sklearn/model_selection/_search.py .... [ 36%] sklearn/model_selection/_split.py .............. [ 36%] sklearn/model_selection/_validation.py s... [ 36%] sklearn/model_selection/tests/test_search.py ................... [ 37%] ................................................. [ 37%] sklearn/model_selection/tests/test_split.py .................... [ 37%] ................................................................ [ 38%] ..................... [ 38%] sklearn/model_selection/tests/test_validation.py ............... [ 38%] .......................................... [ 38%] sklearn/neighbors/base.py .... [ 38%] sklearn/neighbors/classification.py .. [ 38%] sklearn/neighbors/graph.py .. [ 38%] sklearn/neighbors/nca.py <span class="pl-c1">.</span> [ 38%] sklearn/neighbors/nearest_centroid.py <span class="pl-c1">.</span> [ 38%] sklearn/neighbors/regression.py .. [ 38%] sklearn/neighbors/unsupervised.py <span class="pl-c1">.</span> [ 38%] sklearn/neighbors/tests/test_ball_tree.py ...................... [ 38%] ................................................................ [ 39%] ................................................................ [ 39%] ................................................................ [ 40%] .................................. [ 40%] sklearn/neighbors/tests/test_dist_metrics.py ................... [ 40%] ....................................... [ 40%] sklearn/neighbors/tests/test_kd_tree.py ........................ [ 41%] ..................................................... [ 41%] sklearn/neighbors/tests/test_kde.py ............................ [ 41%] ............ [ 41%] sklearn/neighbors/tests/test_lof.py ............ [ 41%] sklearn/neighbors/tests/test_nca.py ............................ [ 42%] ................................................................ [ 42%] ................................................................ [ 43%] ........................................................... [ 43%] sklearn/neighbors/tests/test_nearest_centroid.py ......... [ 43%] sklearn/neighbors/tests/test_neighbors.py ...................... [ 43%] ..................................................... [ 44%] sklearn/neighbors/tests/test_quad_tree.py ........... [ 44%] sklearn/neural_network/rbm.py <span class="pl-c1">.</span> [ 44%] sklearn/neural_network/tests/test_mlp.py ....................... [ 44%] ........ [ 44%] sklearn/neural_network/tests/test_rbm.py ............ [ 44%] sklearn/neural_network/tests/test_stochastic_optimizers.py ..... [ 44%] <span class="pl-c1">.</span> [ 44%] sklearn/preprocessing/_discretization.py <span class="pl-c1">.</span> [ 44%] sklearn/preprocessing/_encoders.py .. [ 44%] sklearn/preprocessing/data.py ............. [ 44%] sklearn/preprocessing/label.py .... [ 44%] sklearn/preprocessing/tests/test_common.py ......... [ 44%] sklearn/preprocessing/tests/test_data.py ....................... [ 45%] .............................................s.s.s.s...........s [ 45%] .s.............................................................. [ 45%] .......................................... [ 46%] sklearn/preprocessing/tests/test_discretization.py ............. [ 46%] ............................... [ 46%] sklearn/preprocessing/tests/test_encoders.py ..............sss.. [ 46%] ..........ss.........s......ss..ss...........s.............. [ 47%] sklearn/preprocessing/tests/test_function_transformer.py ....... [ 47%] s [ 47%] sklearn/preprocessing/tests/test_label.py ...................... [ 47%] ............ [ 47%] sklearn/semi_supervised/label_propagation.py ... [ 47%] sklearn/semi_supervised/tests/test_label_propagation.py ........ [ 47%] <span class="pl-c1">.</span> [ 47%] sklearn/svm/classes.py ....... [ 47%] sklearn/svm/tests/test_bounds.py ................... [ 47%] sklearn/svm/tests/test_sparse.py ............................... [ 48%] [ 48%] sklearn/svm/tests/test_svm.py .................................. [ 48%] ...................... [ 48%] sklearn/tests/test_base.py .......................... [ 48%] sklearn/tests/test_calibration.py ........... [ 48%] sklearn/tests/test_check_build.py <span class="pl-c1">.</span> [ 48%] sklearn/tests/test_common.py ...................s............... [ 48%] ......s...........s............................................. [ 49%] .......................................s.............s.......... [ 49%] .........s..............ss...................................... [ 50%] .............s.....................................s............ [ 50%] ................................................................ [ 51%] ...................................................s............ [ 51%] .........................s...................................... [ 52%] .......................s...................................s.... [ 52%] ....................................................s........... [ 53%] ................................................................ [ 53%] ................s........................s...................... [ 54%] ...............s......................................s......... [ 54%] .....................s......................................s... [ 55%] ...............................................................s [ 55%] ...................s...........s................................ [ 56%] ................................................................ [ 56%] ...............................................................s [ 57%] ......................................s......................... [ 57%] ..........s......................................s.............. [ 58%] ................................................................ [ 58%] ................................................................ [ 59%] .......................................s........................ [ 59%] ................................................................ [ 59%] ................................................................ [ 60%] ....................s.....................................s..... [ 60%] ................................................................ [ 61%] ................................................................ [ 61%] ..........................s..................................... [ 62%] .............................s.................................. [ 62%] ................................................................ [ 63%] .......................s........................................ [ 63%] ................................................................ [ 64%] ................................................................ [ 64%] ...s.......................................................s.... [ 65%] ................................................................ [ 65%] ................................................................ [ 66%] ................................................................ [ 66%] ................................................................ [ 67%] ................................................................ [ 67%] ................................................................ [ 68%] ................................................................ [ 68%] ............s...................................s............... [ 69%] ........................s....................................... [ 69%] .....................................................s.......... [ 69%] .............................s.................................. [ 70%] ................................................................ [ 70%] ................................................................ [ 71%] ................................................................ [ 71%] .............................................................s.. [ 72%] ....................................................s........... [ 72%] ..............................s................................. [ 73%] ................................................................ [ 73%] ................................................................ [ 74%] ..................s............................................. [ 74%] ................................................................ [ 75%] ................................................................ [ 75%] ......................s......................s...s...........s.. [ 76%] ................................................................ [ 76%] .........................................................s...... [ 77%] ................................................................ [ 77%] ................................................................ [ 78%] ................................................................ [ 78%] ...............................................................s [ 79%] .......................................s........................ [ 79%] ................................................................ [ 79%] ............................................s................... [ 80%] ................................................................ [ 80%] ................................................................ [ 81%] .....................s.......................................... [ 81%] ................................................................ [ 82%] ................................................................ [ 82%] ........................................................s....... [ 83%] ...............................s................................ [ 83%] ...s............................................................ [ 84%] ......s...................................s..................... [ 84%] ..............s......................................s.......... [ 85%] ..........................................................s..... [ 85%] ..................................s............................. [ 86%] .......s......................................s................. [ 86%] ................................................................ [ 87%] ................................................................ [ 87%] ................................................................ [ 88%] ................................................................ [ 88%] ......................................................s......... [ 89%] ................................................................ [ 89%] ................................................................ [ 90%] ......................................................s......... [ 90%] ................................................................ [ 90%] ............................. [ 91%] sklearn/tests/test_config.py ... [ 91%] sklearn/tests/test_discriminant_analysis.py F................... [ 91%] .......... [ 91%] sklearn/tests/test_docstring_parameters.py ss [ 91%] sklearn/tests/test_dummy.py .................................... [ 91%] .................. [ 91%] sklearn/tests/test_init.py <span class="pl-c1">.</span> [ 91%] sklearn/tests/test_isotonic.py ................................ [ 92%] sklearn/tests/test_kernel_approximation.py .......... [ 92%] sklearn/tests/test_kernel_ridge.py ........ [ 92%] sklearn/tests/test_metaestimators.py <span class="pl-c1">.</span> [ 92%] sklearn/tests/test_multiclass.py ............................... [ 92%] ........ [ 92%] sklearn/tests/test_multioutput.py ........................... [ 92%] sklearn/tests/test_naive_bayes.py .............................. [ 92%] ................ [ 93%] sklearn/tests/test_pipeline.py ................................. [ 93%] ........................... [ 93%] sklearn/tests/test_random_projection.py ................ [ 93%] sklearn/tests/test_site_joblib.py <span class="pl-c1">.</span> [ 93%] sklearn/tree/export.py ... [ 93%] sklearn/tree/tree.py .. [ 93%] sklearn/tree/tests/test_export.py ......ss [ 93%] sklearn/tree/tests/test_reingold_tilford.py .. [ 93%] sklearn/tree/tests/test_tree.py ................................ [ 93%] ................................................................ [ 94%] ................................................................ [ 94%] ................................................................ [ 95%] ......................................................... [ 95%] sklearn/utils/__init__.py ........ [ 95%] sklearn/utils/deprecation.py <span class="pl-c1">.</span> [ 95%] sklearn/utils/extmath.py .. [ 95%] sklearn/utils/graph.py <span class="pl-c1">.</span> [ 95%] sklearn/utils/multiclass.py ... [ 95%] sklearn/utils/testing.py <span class="pl-c1">.</span> [ 95%] sklearn/utils/validation.py <span class="pl-c1">.</span> [ 95%] sklearn/utils/tests/test_class_weight.py ........... [ 96%] sklearn/utils/tests/test_cython_blas.py ........................ [ 96%] .................... [ 96%] sklearn/utils/tests/test_deprecation.py ... [ 96%] sklearn/utils/tests/test_estimator_checks.py .......... [ 96%] sklearn/utils/tests/test_extmath.py ........................... [ 96%] sklearn/utils/tests/test_fast_dict.py .. [ 96%] sklearn/utils/tests/test_fixes.py ...... [ 96%] sklearn/utils/tests/test_linear_assignment.py <span class="pl-c1">.</span> [ 96%] sklearn/utils/tests/test_metaestimators.py .. [ 96%] sklearn/utils/tests/test_multiclass.py ......s... [ 96%] sklearn/utils/tests/test_murmurhash.py ...... [ 96%] sklearn/utils/tests/test_optimize.py <span class="pl-c1">.</span> [ 96%] sklearn/utils/tests/test_pprint.py ......... [ 96%] sklearn/utils/tests/test_random.py ..... [ 96%] sklearn/utils/tests/test_seq_dataset.py ......... [ 97%] sklearn/utils/tests/test_shortest_path.py .... [ 97%] sklearn/utils/tests/test_show_versions.py ... [ 97%] sklearn/utils/tests/test_sparsefuncs.py ........................ [ 97%] ......................................... [ 97%] sklearn/utils/tests/test_testing.py ...........s.......... [ 97%] sklearn/utils/tests/test_utils.py .............................. [ 97%] .s...sssss...s..s..ssss..s..s..ssss..s..s..ssss..s........ssssss [ 98%] ssssssssss........ssssssssssssssss..s..ssss..s..ssss..s..ssss... [ 98%] s..s..s..s...s...s.ss........................................... [ 99%] ... [ 99%] sklearn/utils/tests/test_validation.py ......................... [ 99%] ....................s.ss........................... [100%] =============================== FAILURES =============================== ______ [doctest] sklearn.feature_extraction.image.PatchExtractor _______ 459 deterministic. 460 See :term:<span class="pl-s"><span class="pl-pds">`</span>Glossary <span class="pl-k">&lt;</span>random_state<span class="pl-k">&gt;</span><span class="pl-pds">`</span></span>. 461 462 463 Examples 464 -------- 465 &gt;&gt;&gt; from sklearn.datasets import load_sample_images 466 &gt;&gt;&gt; from sklearn.feature_extraction import image 467 &gt;&gt;&gt; <span class="pl-c"><span class="pl-c">#</span> Use the array data from the second image in this dataset:</span> 468 &gt;&gt;&gt; X = <span class="pl-en">load_sample_images</span>().images[1] UNEXPECTED EXCEPTION: ImportError(<span class="pl-s"><span class="pl-pds">'</span>The Python Imaging Library (PIL) is required to load data from jpeg files. Please refer to https://pillow.readthedocs.io/en/stable/installation.html for installing PIL.<span class="pl-pds">'</span></span>) Traceback (most recent call last): File <span class="pl-s"><span class="pl-pds">"</span>/home/sik/miniconda3/envs/test-sklearn/lib/python3.7/doctest.py<span class="pl-pds">"</span></span>, line 1329, <span class="pl-k">in</span> __run compileflags, 1), test.globs) File <span class="pl-s"><span class="pl-pds">"</span>&lt;doctest sklearn.feature_extraction.image.PatchExtractor[2]&gt;<span class="pl-pds">"</span></span>, line 1, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> File <span class="pl-s"><span class="pl-pds">"</span>/home/sik/code/scikit-learn/sklearn/datasets/base.py<span class="pl-pds">"</span></span>, line 801, <span class="pl-k">in</span> load_sample_images images = [imread(filename) <span class="pl-k">for</span> <span class="pl-smi">filename</span> <span class="pl-k">in</span> filenames] File <span class="pl-s"><span class="pl-pds">"</span>/home/sik/code/scikit-learn/sklearn/datasets/base.py<span class="pl-pds">"</span></span>, line 801, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>listcomp<span class="pl-k">&gt;</span> images = [imread(filename) <span class="pl-k">for</span> <span class="pl-smi">filename</span> <span class="pl-k">in</span> filenames] File <span class="pl-s"><span class="pl-pds">"</span>/home/sik/code/scikit-learn/sklearn/externals/_pilutil.py<span class="pl-pds">"</span></span>, line 204, <span class="pl-k">in</span> imread raise ImportError(PILLOW_ERROR_MESSAGE) ImportError: The Python Imaging Library (PIL) is required to load data from jpeg files. Please refer to https://pillow.readthedocs.io/en/stable/installation.html <span class="pl-k">for</span> installing PIL. /home/sik/code/scikit-learn/sklearn/feature_extraction/image.py:468: UnexpectedException ____ [doctest] sklearn.feature_extraction.image.extract_patches_2d _____ 334 The collection of patches extracted from the image, where <span class="pl-s"><span class="pl-pds">`</span>n_patches<span class="pl-pds">`</span></span> 335 is either <span class="pl-s"><span class="pl-pds">`</span>max_patches<span class="pl-pds">`</span></span> or the total number of patches that can be 336 extracted. 337 338 Examples 339 -------- 340 &gt;&gt;&gt; from sklearn.datasets import load_sample_image 341 &gt;&gt;&gt; from sklearn.feature_extraction import image 342 &gt;&gt;&gt; <span class="pl-c"><span class="pl-c">#</span> Use the array data from the first image in this dataset:</span> 343 &gt;&gt;&gt; one_image = load_sample_image(<span class="pl-s"><span class="pl-pds">"</span>china.jpg<span class="pl-pds">"</span></span>) UNEXPECTED EXCEPTION: ImportError(<span class="pl-s"><span class="pl-pds">'</span>The Python Imaging Library (PIL) is required to load data from jpeg files. Please refer to https://pillow.readthedocs.io/en/stable/installation.html for installing PIL.<span class="pl-pds">'</span></span>) Traceback (most recent call last): File <span class="pl-s"><span class="pl-pds">"</span>/home/sik/miniconda3/envs/test-sklearn/lib/python3.7/doctest.py<span class="pl-pds">"</span></span>, line 1329, <span class="pl-k">in</span> __run compileflags, 1), test.globs) File <span class="pl-s"><span class="pl-pds">"</span>&lt;doctest sklearn.feature_extraction.image.extract_patches_2d[2]&gt;<span class="pl-pds">"</span></span>, line 1, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> File <span class="pl-s"><span class="pl-pds">"</span>/home/sik/code/scikit-learn/sklearn/datasets/base.py<span class="pl-pds">"</span></span>, line 838, <span class="pl-k">in</span> load_sample_image images = <span class="pl-en">load_sample_images</span>() File <span class="pl-s"><span class="pl-pds">"</span>/home/sik/code/scikit-learn/sklearn/datasets/base.py<span class="pl-pds">"</span></span>, line 801, <span class="pl-k">in</span> load_sample_images images = [imread(filename) <span class="pl-k">for</span> <span class="pl-smi">filename</span> <span class="pl-k">in</span> filenames] File <span class="pl-s"><span class="pl-pds">"</span>/home/sik/code/scikit-learn/sklearn/datasets/base.py<span class="pl-pds">"</span></span>, line 801, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>listcomp<span class="pl-k">&gt;</span> images = [imread(filename) <span class="pl-k">for</span> <span class="pl-smi">filename</span> <span class="pl-k">in</span> filenames] File <span class="pl-s"><span class="pl-pds">"</span>/home/sik/code/scikit-learn/sklearn/externals/_pilutil.py<span class="pl-pds">"</span></span>, line 204, <span class="pl-k">in</span> imread raise ImportError(PILLOW_ERROR_MESSAGE) ImportError: The Python Imaging Library (PIL) is required to load data from jpeg files. Please refer to https://pillow.readthedocs.io/en/stable/installation.html <span class="pl-k">for</span> installing PIL. /home/sik/code/scikit-learn/sklearn/feature_extraction/image.py:343: UnexpectedException ___________________________ test_lda_predict ___________________________ def <span class="pl-en">test_lda_predict</span>(): <span class="pl-c"><span class="pl-c">#</span> Test LDA classification.</span> <span class="pl-c"><span class="pl-c">#</span> This checks that LDA implements fit and predict and returns correct</span> <span class="pl-c"><span class="pl-c">#</span> values for simple toy data.</span> <span class="pl-k">for</span> <span class="pl-smi">test_case</span> <span class="pl-k">in</span> solver_shrinkage: solver, shrinkage = test_case clf = LinearDiscriminantAnalysis(solver=solver, shrinkage=shrinkage) y_pred = clf.fit(X, y).predict(X) assert_array_equal(y_pred, y, <span class="pl-s"><span class="pl-pds">'</span>solver %s<span class="pl-pds">'</span></span> % solver) <span class="pl-c"><span class="pl-c">#</span> Assert that it works with 1D data</span> y_pred1 = clf.fit(X1, y).predict(X1) assert_array_equal(y_pred1, y, <span class="pl-s"><span class="pl-pds">'</span>solver %s<span class="pl-pds">'</span></span> % solver) <span class="pl-c"><span class="pl-c">#</span> Test probability estimates</span> y_proba_pred1 = clf.predict_proba(X1) assert_array_equal<span class="pl-s"><span class="pl-pds">((</span>y_proba_pred<span class="pl-c1">1</span>[<span class="pl-k">:,</span> <span class="pl-c1">1</span>] <span class="pl-k">&gt;</span> <span class="pl-c1">0</span>.<span class="pl-c1">5</span>) <span class="pl-k">+</span> <span class="pl-c1">1</span><span class="pl-k">,</span> y<span class="pl-k">,</span></span> <span class="pl-s"> 'solver %s' % solver)</span> <span class="pl-s"> y_log_proba_pred<span class="pl-c1">1</span> = clf.predict_log_proba(X<span class="pl-c1">1</span>)</span> <span class="pl-s"> assert_array_almost_equal(np.exp(y_log_proba_pred<span class="pl-c1">1</span>), y_proba_pred<span class="pl-c1">1</span>,</span> <span class="pl-s"><span class="pl-k">&gt;</span> <span class="pl-c1">8</span><span class="pl-k">,</span> 'solver <span class="pl-k">%</span>s' <span class="pl-k">%</span> solver)</span> <span class="pl-s">E AssertionError: </span> <span class="pl-s">E Arrays are not almost equal to <span class="pl-c1">8</span> decimals</span> <span class="pl-s">E solver svd</span> <span class="pl-s">E Mismatch: <span class="pl-c1">16</span>.<span class="pl-c1">7</span>%</span> <span class="pl-s">E Max absolute difference: <span class="pl-c1">5</span>.<span class="pl-c1">9604645</span>e-<span class="pl-c1">08</span></span> <span class="pl-s">E Max relative difference: <span class="pl-c1">4</span>.<span class="pl-c1">7683716</span>e-<span class="pl-c1">07</span></span> <span class="pl-s">E x: array([[<span class="pl-c1">9</span>.<span class="pl-c1">9999994</span>e-<span class="pl-c1">01</span>, <span class="pl-c1">1</span>.<span class="pl-c1">1253517</span>e-<span class="pl-c1">07</span>],</span> <span class="pl-s">E [<span class="pl-c1">9</span>.<span class="pl-c1">9966466</span>e-<span class="pl-c1">01</span>, <span class="pl-c1">3</span>.<span class="pl-c1">3535002</span>e-<span class="pl-c1">04</span>],</span> <span class="pl-s">E [<span class="pl-c1">9</span>.<span class="pl-c1">9966466</span>e-<span class="pl-c1">01</span>, <span class="pl-c1">3</span>.<span class="pl-c1">3535002</span>e-<span class="pl-c1">04</span>],...</span> <span class="pl-s">E y: array([[<span class="pl-c1">9</span>.<span class="pl-c1">99999881</span>e-<span class="pl-c1">01</span>, <span class="pl-c1">1</span>.<span class="pl-c1">12535155</span>e-<span class="pl-c1">07</span>],</span> <span class="pl-s">E [<span class="pl-c1">9</span>.<span class="pl-c1">99664664</span>e-<span class="pl-c1">01</span>, <span class="pl-c1">3</span>.<span class="pl-c1">35350138</span>e-<span class="pl-c1">04</span>],</span> <span class="pl-s">E [<span class="pl-c1">9</span>.<span class="pl-c1">99664664</span>e-<span class="pl-c1">01</span>, <span class="pl-c1">3</span>.<span class="pl-c1">35350138</span>e-<span class="pl-c1">04</span>],...</span> <span class="pl-s"></span> <span class="pl-s">sklearn/tests/test_discriminant_analysis.py:<span class="pl-c1">80</span>: AssertionError</span> <span class="pl-s"><span class="pl-k">=======================</span> short test summary info <span class="pl-k">========================</span></span> <span class="pl-s">SKIPPED [<span class="pl-c1">3</span>] /home/sik/code/scikit-learn/sklearn/ensemble/_hist_gradient_boosting/tests/test_compare_lightgbm.py:<span class="pl-c1">17</span>: could not import 'lightgbm': No module named 'lightgbm'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/unittest.py:<span class="pl-c1">238</span>: This test is failing on the buildbot, but cannot reproduce. Temporarily disabling it until it can be reproduced and fixed.</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/compose/tests/test_column_transformer.py:<span class="pl-c1">132</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">2</span>] /home/sik/code/scikit-learn/sklearn/compose/tests/test_column_transformer.py:<span class="pl-c1">263</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/compose/tests/test_column_transformer.py:<span class="pl-c1">467</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/compose/tests/test_column_transformer.py:<span class="pl-c1">538</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">9</span>] /home/sik/code/scikit-learn/sklearn/compose/tests/test_column_transformer.py:<span class="pl-c1">812</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/compose/tests/test_column_transformer.py:<span class="pl-c1">1054</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">2</span>] /home/sik/code/scikit-learn/sklearn/compose/tests/test_column_transformer.py:<span class="pl-c1">1091</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/compose/tests/test_column_transformer.py:<span class="pl-c1">1125</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">3</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/unittest.py:<span class="pl-c1">238</span>: Download <span class="pl-c1">20</span> newsgroups to run this test</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/unittest.py:<span class="pl-c1">238</span>: Covertype dataset can not be loaded.</span> <span class="pl-s">SKIPPED [<span class="pl-c1">2</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/unittest.py:<span class="pl-c1">238</span>: kddcup<span class="pl-c1">99</span> dataset can not be loaded.</span> <span class="pl-s">SKIPPED [<span class="pl-c1">5</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/unittest.py:<span class="pl-c1">238</span>: PIL not installed.</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] sklearn/datasets/tests/test_olivetti_faces.py:<span class="pl-c1">20</span>: Download Olivetti faces dataset to run this test</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/datasets/tests/test_openml.py:<span class="pl-c1">289</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/datasets/tests/test_openml.py:<span class="pl-c1">329</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/datasets/tests/test_openml.py:<span class="pl-c1">348</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/datasets/tests/test_openml.py:<span class="pl-c1">389</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/datasets/tests/test_openml.py:<span class="pl-c1">426</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/datasets/tests/test_openml.py:<span class="pl-c1">478</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/datasets/tests/test_openml.py:<span class="pl-c1">490</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/datasets/tests/test_openml.py:<span class="pl-c1">518</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/datasets/tests/test_openml.py:<span class="pl-c1">557</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/datasets/tests/test_openml.py:<span class="pl-c1">595</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/datasets/tests/test_openml.py:<span class="pl-c1">633</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/unittest.py:<span class="pl-c1">238</span>: Download RCV<span class="pl-c1">1</span> dataset to run this test.</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] sklearn/datasets/tests/test_svmlight_format.py:<span class="pl-c1">188</span>: testing the overflow of <span class="pl-c1">32</span> bit sparse indexing requires a large amount of memory</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] sklearn/decomposition/tests/test_sparse_pca.py:<span class="pl-c1">134</span>: skipping mini_batch_fit_transform.</span> <span class="pl-s">SKIPPED [<span class="pl-c1">34</span>] /home/sik/code/scikit-learn/sklearn/conftest.py:<span class="pl-c1">18</span>: could not import 'matplotlib': No module named 'matplotlib'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">2</span>] /home/sik/code/scikit-learn/sklearn/impute/tests/test_impute.py:<span class="pl-c1">315</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">2</span>] /home/sik/code/scikit-learn/sklearn/impute/tests/test_impute.py:<span class="pl-c1">428</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">2</span>] /home/sik/code/scikit-learn/sklearn/inspection/tests/test_permutation_importance.py:<span class="pl-c1">52</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/inspection/tests/test_permutation_importance.py:<span class="pl-c1">114</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">2</span>] /home/sik/code/scikit-learn/sklearn/linear_model/tests/test_logistic.py:<span class="pl-c1">1306</span>: liblinear does not support multinomial logistic</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/manifold/tests/test_spectral_embedding.py:<span class="pl-c1">166</span>: could not import 'pyamg': No module named 'pyamg'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/manifold/tests/test_spectral_embedding.py:<span class="pl-c1">196</span>: could not import 'pyamg': No module named 'pyamg'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/doctest.py:<span class="pl-c1">351</span>: all tests skipped by +SKIP option</span> <span class="pl-s">SKIPPED [<span class="pl-c1">4</span>] /home/sik/code/scikit-learn/sklearn/preprocessing/tests/test_data.py:<span class="pl-c1">866</span>: 'with_mean=True' cannot be used with sparse matrix.</span> <span class="pl-s">SKIPPED [<span class="pl-c1">2</span>] /home/sik/code/scikit-learn/sklearn/preprocessing/tests/test_data.py:<span class="pl-c1">1077</span>: RobustScaler cannot center sparse matrix</span> <span class="pl-s">SKIPPED [<span class="pl-c1">3</span>] /home/sik/code/scikit-learn/sklearn/preprocessing/tests/test_encoders.py:<span class="pl-c1">127</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">2</span>] /home/sik/code/scikit-learn/sklearn/preprocessing/tests/test_encoders.py:<span class="pl-c1">283</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/preprocessing/tests/test_encoders.py:<span class="pl-c1">378</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">4</span>] /home/sik/code/scikit-learn/sklearn/preprocessing/tests/test_encoders.py:<span class="pl-c1">450</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/preprocessing/tests/test_encoders.py:<span class="pl-c1">584</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/preprocessing/tests/test_function_transformer.py:<span class="pl-c1">157</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/unittest.py:<span class="pl-c1">238</span>: Can't instantiate estimator ColumnTransformer which requires parameters ['transformers']</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/unittest.py:<span class="pl-c1">238</span>: Can't instantiate estimator FeatureUnion which requires parameters ['transformer_list']</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/unittest.py:<span class="pl-c1">238</span>: Can't instantiate estimator GridSearchCV which requires parameters ['estimator', 'param_grid']</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/unittest.py:<span class="pl-c1">238</span>: Can't instantiate estimator Pipeline which requires parameters ['steps']</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/unittest.py:<span class="pl-c1">238</span>: Can't instantiate estimator RandomizedSearchCV which requires parameters ['estimator', 'param_distributions']</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/unittest.py:<span class="pl-c1">238</span>: Can't instantiate estimator SparseCoder which requires parameters ['dictionary']</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/unittest.py:<span class="pl-c1">238</span>: Can't instantiate estimator VotingClassifier which requires parameters ['estimators']</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/unittest.py:<span class="pl-c1">238</span>: Can't instantiate estimator VotingRegressor which requires parameters ['estimators']</span> <span class="pl-s">SKIPPED [<span class="pl-c1">50</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/unittest.py:<span class="pl-c1">238</span>: pandas is not installed: not testing for input of type pandas.Series to class weight.</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/unittest.py:<span class="pl-c1">238</span>: score_samples of BernoulliRBM is not invariant when applied to a subset.</span> <span class="pl-s">SKIPPED [<span class="pl-c1">3</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/unittest.py:<span class="pl-c1">238</span>: Skipping check_estimators_data_not_an_array for cross decomposition module as estimators are not deterministic.</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/unittest.py:<span class="pl-c1">238</span>: predict of DummyClassifier is not invariant when applied to a subset.</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/unittest.py:<span class="pl-c1">238</span>: transform of MiniBatchSparsePCA is not invariant when applied to a subset.</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/unittest.py:<span class="pl-c1">238</span>: Not testing NuSVC class weight as it is ignored.</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/unittest.py:<span class="pl-c1">238</span>: decision_function of NuSVC is not invariant when applied to a subset.</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/unittest.py:<span class="pl-c1">238</span>: transform of SparsePCA is not invariant when applied to a subset.</span> <span class="pl-s">SKIPPED [<span class="pl-c1">2</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/unittest.py:<span class="pl-c1">238</span>: numpydoc is required to test the docstrings</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/utils/tests/test_multiclass.py:<span class="pl-c1">299</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">37</span>] /home/sik/code/scikit-learn/sklearn/utils/tests/test_utils.py:<span class="pl-c1">239</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">39</span>] /home/sik/code/scikit-learn/sklearn/utils/tests/test_utils.py:<span class="pl-c1">242</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/utils/tests/test_utils.py:<span class="pl-c1">423</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/utils/tests/test_utils.py:<span class="pl-c1">444</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">2</span>] /home/sik/code/scikit-learn/sklearn/utils/tests/test_utils.py:<span class="pl-c1">466</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/miniconda<span class="pl-c1">3</span>/envs/test-sklearn/lib/python<span class="pl-c1">3</span>.<span class="pl-c1">7</span>/site-packages/_pytest/unittest.py:<span class="pl-c1">238</span>: Pandas not found</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/utils/tests/test_validation.py:<span class="pl-c1">719</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">SKIPPED [<span class="pl-c1">1</span>] /home/sik/code/scikit-learn/sklearn/utils/tests/test_validation.py:<span class="pl-c1">732</span>: could not import 'pandas': No module named 'pandas'</span> <span class="pl-s">= <span class="pl-c1">3</span> failed, <span class="pl-c1">13147</span> passed, <span class="pl-c1">265</span> skipped, <span class="pl-c1">6</span> xfailed, <span class="pl-c1">1572</span> warnings in <span class="pl-c1">409</span>.<span class="pl-c1">77</span>s (<span class="pl-c1">0</span>:<span class="pl-c1">06</span>:<span class="pl-c1">49</span>) =</span> <span class="pl-s"> This problem is unconstrained.</span> <span class="pl-s">RUNNING THE L-BFGS-B CODE</span> <span class="pl-s"></span> <span class="pl-s"> * * *</span> <span class="pl-s"></span> <span class="pl-s">Machine precision = <span class="pl-c1">2</span>.<span class="pl-c1">220</span>D-<span class="pl-c1">16</span></span> <span class="pl-s"> N = <span class="pl-c1">3</span> M = <span class="pl-c1">10</span></span> <span class="pl-s"></span> <span class="pl-s">At X<span class="pl-c1">0</span> <span class="pl-c1">0</span> variables are exactly at the bounds</span> <span class="pl-s"></span> <span class="pl-s">At iterate <span class="pl-c1">0</span> f= <span class="pl-c1">1</span>.<span class="pl-c1">38629</span>D+<span class="pl-c1">02</span> |proj g|= <span class="pl-c1">6</span>.<span class="pl-c1">27865</span>D+<span class="pl-c1">01</span></span> <span class="pl-s"></span> <span class="pl-s"> * * *</span> <span class="pl-s"></span> <span class="pl-s">Tit = total number of iterations</span> <span class="pl-s">Tnf = total number of function evaluations</span> <span class="pl-s">Tnint = total number of segments explored during Cauchy searches</span> <span class="pl-s">Skip = number of BFGS updates skipped</span> <span class="pl-s">Nact = number of active bounds at final generalized Cauchy point</span> <span class="pl-s">Projg = norm of the final projected gradient</span> <span class="pl-s">F = final function value</span> <span class="pl-s"></span> <span class="pl-s"> * * *</span> <span class="pl-s"></span> <span class="pl-s"> N Tit Tnf Tnint Skip Nact Projg F</span> <span class="pl-s"> <span class="pl-c1">3</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">1</span> <span class="pl-c1">0</span> <span class="pl-c1">0</span> <span class="pl-c1">2</span>.<span class="pl-c1">422</span>D+<span class="pl-c1">01</span> <span class="pl-c1">9</span>.<span class="pl-c1">713</span>D+<span class="pl-c1">01</span></span> <span class="pl-s"> F = <span class="pl-c1">97</span>.<span class="pl-c1">133816163368223</span> </span> <span class="pl-s"></span> <span class="pl-s">STOP: TOTAL NO. of ITERATIONS REACHED LIMIT </span> <span class="pl-s"></span> <span class="pl-s"> Cauchy time <span class="pl-c1">0</span>.<span class="pl-c1">000</span>E+<span class="pl-c1">00</span> seconds.</span> <span class="pl-s"> Subspace minimization time <span class="pl-c1">0</span>.<span class="pl-c1">000</span>E+<span class="pl-c1">00</span> seconds.</span> <span class="pl-s"> Line search time <span class="pl-c1">0</span>.<span class="pl-c1">000</span>E+<span class="pl-c1">00</span> seconds.</span> <span class="pl-s"></span> <span class="pl-s"> Total User time <span class="pl-c1">0</span>.<span class="pl-c1">000</span>E+<span class="pl-c1">00</span> seconds.</span> <span class="pl-s"></span></pre></div> </details> <p dir="auto">Here is the output of <code class="notranslate">conda list</code></p> <details> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# packages in environment at /home/sik/miniconda3/envs/test-sklearn: # # Name Version Build Channel _libgcc_mutex 0.1 main atomicwrites 1.3.0 py_0 conda-forge attrs 19.1.0 py_0 conda-forge bzip2 1.0.8 h516909a_0 conda-forge ca-certificates 2019.6.16 hecc5488_0 conda-forge certifi 2019.6.16 py37_1 conda-forge cython 0.29.13 py37he1b5a44_0 conda-forge importlib_metadata 0.20 py37_0 conda-forge joblib 0.13.2 pypi_0 pypi libblas 3.8.0 12_openblas conda-forge libcblas 3.8.0 12_openblas conda-forge libffi 3.2.1 he1b5a44_1006 conda-forge libgcc-ng 9.1.0 hdf63c60_0 libgfortran-ng 7.3.0 hdf63c60_0 liblapack 3.8.0 12_openblas conda-forge libopenblas 0.3.7 h6e990d7_1 conda-forge libstdcxx-ng 9.1.0 hdf63c60_0 more-itertools 7.2.0 py_0 conda-forge ncurses 6.1 hf484d3e_1002 conda-forge numpy 1.17.1 py37h95a1406_0 conda-forge openssl 1.1.1c h516909a_0 conda-forge packaging 19.0 py_0 conda-forge pip 19.2.3 py37_0 conda-forge pluggy 0.12.0 py_0 conda-forge py 1.8.0 py_0 conda-forge pyparsing 2.4.2 py_0 conda-forge pytest 5.1.2 py37_0 conda-forge python 3.7.3 h33d41f4_1 conda-forge readline 8.0 hf8c457e_0 conda-forge scikit-learn 0.22.dev0 dev_0 &lt;develop&gt; scipy 1.3.1 py37h921218d_2 conda-forge setuptools 41.2.0 py37_0 conda-forge six 1.12.0 py37_1000 conda-forge sqlite 3.29.0 hcee41ef_1 conda-forge tk 8.6.9 hed695b0_1002 conda-forge wcwidth 0.1.7 py_1 conda-forge wheel 0.33.6 py37_0 conda-forge xz 5.2.4 h14c3975_1001 conda-forge zipp 0.6.0 py_0 conda-forge zlib 1.2.11 h516909a_1005 conda-forge"><pre class="notranslate"><code class="notranslate"># packages in environment at /home/sik/miniconda3/envs/test-sklearn: # # Name Version Build Channel _libgcc_mutex 0.1 main atomicwrites 1.3.0 py_0 conda-forge attrs 19.1.0 py_0 conda-forge bzip2 1.0.8 h516909a_0 conda-forge ca-certificates 2019.6.16 hecc5488_0 conda-forge certifi 2019.6.16 py37_1 conda-forge cython 0.29.13 py37he1b5a44_0 conda-forge importlib_metadata 0.20 py37_0 conda-forge joblib 0.13.2 pypi_0 pypi libblas 3.8.0 12_openblas conda-forge libcblas 3.8.0 12_openblas conda-forge libffi 3.2.1 he1b5a44_1006 conda-forge libgcc-ng 9.1.0 hdf63c60_0 libgfortran-ng 7.3.0 hdf63c60_0 liblapack 3.8.0 12_openblas conda-forge libopenblas 0.3.7 h6e990d7_1 conda-forge libstdcxx-ng 9.1.0 hdf63c60_0 more-itertools 7.2.0 py_0 conda-forge ncurses 6.1 hf484d3e_1002 conda-forge numpy 1.17.1 py37h95a1406_0 conda-forge openssl 1.1.1c h516909a_0 conda-forge packaging 19.0 py_0 conda-forge pip 19.2.3 py37_0 conda-forge pluggy 0.12.0 py_0 conda-forge py 1.8.0 py_0 conda-forge pyparsing 2.4.2 py_0 conda-forge pytest 5.1.2 py37_0 conda-forge python 3.7.3 h33d41f4_1 conda-forge readline 8.0 hf8c457e_0 conda-forge scikit-learn 0.22.dev0 dev_0 &lt;develop&gt; scipy 1.3.1 py37h921218d_2 conda-forge setuptools 41.2.0 py37_0 conda-forge six 1.12.0 py37_1000 conda-forge sqlite 3.29.0 hcee41ef_1 conda-forge tk 8.6.9 hed695b0_1002 conda-forge wcwidth 0.1.7 py_1 conda-forge wheel 0.33.6 py37_0 conda-forge xz 5.2.4 h14c3975_1001 conda-forge zipp 0.6.0 py_0 conda-forge zlib 1.2.11 h516909a_1005 conda-forge </code></pre></div> </details>
<p dir="auto">I haven't followed the openmp building in detail but it looks like on OS X and windows building are now failing by default?<br> That's pretty annoying for sprinting with a bigger group and also can raise the frustration level of new contributors who are likely to be on these OSs</p>
1
<h1 dir="auto">Environment</h1> <p dir="auto">Microsoft Windows [Version 10.0.18362.418]</p> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Open windows terminal and move it with cursor to a new screen in a dual screen setup. Specifically from a 4k to 1080p monitor.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The windows terminal window should move to the other screen.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The window when moved to the other screen freezes and then crashes.</p> <p dir="auto">Note: It works if the windows terminal window starts and is maximised on the first monitor and then is win+shift+arrowed to the other monitor. No crash but if it is not maximized and either moved by way of win+shift+arrows OR cursor drag then it crashes.</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): 0.6.2951.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.418] Windows Terminal version (if applicable): 0.6.2951.0 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Open Windows Terminal with "only one tab open"</li> <li>Drag to another monitor with a lower resolution (from 2160p to 1080p)</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Terminal is dragged onto another monitor</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">It crashes.<br> Funny thing: The terminal doesn't crash when I have more than one tab open.</p>
1
<p dir="auto"><strong>TypeScript Version:</strong><br> 1.8.9</p> <p dir="auto">React.__spread has been deprecated for a while, and has been removed in 15.0.<br> (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/facebook/react/commit/a142fd257803a218b5b9b2e76c327f0421b9b8b6/hovercard" href="https://github.com/facebook/react/commit/a142fd257803a218b5b9b2e76c327f0421b9b8b6">facebook/react@<tt>a142fd2</tt></a>)</p> <p dir="auto">When upgrading a typescript project to React 0.15, an error is shown that <code class="notranslate">React.__spread is not defined</code> when using spread props.</p> <p dir="auto">It looks like it'll be turned into a warning instead soon(<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/facebook/react/commit/fc1cfb6225f5c3af6843515363db63ed3dcbb824/hovercard" href="https://github.com/facebook/react/commit/fc1cfb6225f5c3af6843515363db63ed3dcbb824">facebook/react@<tt>fc1cfb6</tt></a>), but it's advisable to migrate tsx transformations from using <code class="notranslate">React.__spread</code> to using <code class="notranslate">Object.assign</code></p>
<p dir="auto"><strong>TypeScript Version:</strong><br> 1.8.10</p> <p dir="auto">Node version :v4.2.2<br> OS: OSX</p> <p dir="auto"><strong>Code</strong></p> <p dir="auto"><strong>Main.ts</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/// &lt;reference path=&quot;./typings/node/node.d.ts&quot;/&gt; import * as http from 'http'; namespace Scratch { export class ServerWrapper { public constructor() { this.server = http.createServer(); } public Start(handler :(request :http.ClientRequest, response :http.ClientResponse)=&gt;void) :void { this.server.listen(handler); } private server : http.Server; } var s = new Scratch.ServerWrapper(); s.Start((req,res)=&gt;{}); }"><pre class="notranslate"><span class="pl-c">/// &lt;reference path="./typings/node/node.d.ts"/&gt;</span> <span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">http</span> <span class="pl-k">from</span> <span class="pl-s">'http'</span><span class="pl-kos">;</span> <span class="pl-k">namespace</span> <span class="pl-smi">Scratch</span> <span class="pl-kos">{</span> <span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">ServerWrapper</span> <span class="pl-kos">{</span> <span class="pl-k">public</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">server</span> <span class="pl-c1">=</span> <span class="pl-s1">http</span><span class="pl-kos">.</span><span class="pl-en">createServer</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">public</span> <span class="pl-en">Start</span><span class="pl-kos">(</span><span class="pl-s1">handler</span> :<span class="pl-kos">(</span><span class="pl-s1">request</span> :<span class="pl-s1">http</span><span class="pl-kos">.</span><span class="pl-smi">ClientRequest</span><span class="pl-kos">,</span> <span class="pl-s1">response</span> :<span class="pl-s1">http</span><span class="pl-kos">.</span><span class="pl-smi">ClientResponse</span><span class="pl-kos">)</span><span class="pl-c1">=&gt;</span><span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">)</span> :<span class="pl-smi"><span class="pl-k">void</span></span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">server</span><span class="pl-kos">.</span><span class="pl-en">listen</span><span class="pl-kos">(</span><span class="pl-s1">handler</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">private</span> <span class="pl-c1">server</span> : <span class="pl-s1">http</span><span class="pl-kos">.</span><span class="pl-smi">Server</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">var</span> <span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Scratch</span><span class="pl-kos">.</span><span class="pl-c1">ServerWrapper</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">s</span><span class="pl-kos">.</span><span class="pl-en">Start</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">req</span><span class="pl-kos">,</span><span class="pl-s1">res</span><span class="pl-kos">)</span><span class="pl-c1">=&gt;</span><span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Compile with</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tsc ./Main.ts --outFile /dev/stdout"><pre class="notranslate"><code class="notranslate">tsc ./Main.ts --outFile /dev/stdout </code></pre></div> <p dir="auto"><strong>Expected behavior:</strong> (what is emitted as Main.js when --outFile is not specified)</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&quot;use strict&quot;; var http = require('http'); var Scratch; (function (Scratch) { var ServerWrapper = (function () { function ServerWrapper() { this.server = http.createServer(); } ServerWrapper.prototype.Start = function (handler) { this.server.listen(handler); }; return ServerWrapper; }()); Scratch.ServerWrapper = ServerWrapper; var s = new Scratch.ServerWrapper(); s.Start(function (req, res) { }); })(Scratch || (Scratch = {}));"><pre class="notranslate"><span class="pl-s">"use strict"</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">http</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'http'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-v">Scratch</span><span class="pl-kos">;</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-v">Scratch</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-v">ServerWrapper</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">function</span> <span class="pl-v">ServerWrapper</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">server</span> <span class="pl-c1">=</span> <span class="pl-s1">http</span><span class="pl-kos">.</span><span class="pl-en">createServer</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">ServerWrapper</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-en">Start</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">handler</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">server</span><span class="pl-kos">.</span><span class="pl-en">listen</span><span class="pl-kos">(</span><span class="pl-s1">handler</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-v">ServerWrapper</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-v">Scratch</span><span class="pl-kos">.</span><span class="pl-c1">ServerWrapper</span> <span class="pl-c1">=</span> <span class="pl-v">ServerWrapper</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Scratch</span><span class="pl-kos">.</span><span class="pl-c1">ServerWrapper</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">s</span><span class="pl-kos">.</span><span class="pl-en">Start</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">req</span><span class="pl-kos">,</span> <span class="pl-s1">res</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-v">Scratch</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-v">Scratch</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-kos">;</span></pre></div> <p dir="auto"><strong>Actual behavior:</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/// &lt;reference path=&quot;./typings/node/node.d.ts&quot;/&gt;"><pre class="notranslate"><code class="notranslate">/// &lt;reference path="./typings/node/node.d.ts"/&gt; </code></pre></div>
0
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[X] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[X] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> A plain element attribute (no syntax sugar) containing a number value is being bound to the component as a string value.</p> <p dir="auto"><strong>Expected behavior</strong><br> The attribute would be converted to the data type of the input variable it's being bound to... or at the very least the compiler would warn me of the data-type mismatch.</p> <p dir="auto"><strong>Reproduction of the problem</strong><br> Create a component with the following property that uses the Input decorator:<br> <code class="notranslate">@Input('maxlength') public maxLength: number;</code><br> Use the custom component somewhere like so:<br> <code class="notranslate">&lt;custom-component maxlength="250"&gt;&lt;/custom-component&gt;</code><br> Note that the "maxLength" property in the JavaScript code contains a string value despite being defined as a number data type.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> I want to be able to use a strict equals (===) to compare "maxLength" to "length", but that doesn't work if "maxLength" is a string and "length" is a number.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <p dir="auto">Windows 8.1, Visual Studio 2015, npm, IIS Express 10</p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0</li> <li><strong>Browser:</strong> Chrome 52.0.2743.116</li> <li><strong>Language:</strong> TypeScript 1.8.10</li> <li><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = using JIT, not AoT</li> </ul>
<p dir="auto">When building reusable components, using boolean properties, such as <code class="notranslate">checked</code>, <code class="notranslate">disabled</code>, <code class="notranslate">readonly</code>, etc., is extremely common. This ends up looking like this:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class CoolCheckbox { private _checked: boolean; @Input() get checked() { return this._checked; } set checked(v: boolean) { // Is &quot;checked&quot; if *any* value is present other than `false` or `&quot;false&quot;`. this._checked = value != null &amp;&amp; `${value}` !== 'false'; } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">CoolCheckbox</span> <span class="pl-kos">{</span> <span class="pl-k">private</span> <span class="pl-c1">_checked</span>: <span class="pl-smi">boolean</span><span class="pl-kos">;</span> @<span class="pl-smi">Input</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-k">get</span> <span class="pl-en">checked</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">_checked</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">set</span> <span class="pl-en">checked</span><span class="pl-kos">(</span><span class="pl-s1">v</span>: <span class="pl-smi">boolean</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// Is "checked" if *any* value is present other than `false` or `"false"`.</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">_checked</span> <span class="pl-c1">=</span> <span class="pl-s1">value</span> <span class="pl-c1">!=</span> <span class="pl-c1">null</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">value</span><span class="pl-kos">}</span></span>`</span> <span class="pl-c1">!==</span> <span class="pl-s">'false'</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">This is a <em>lot</em> of boilerplate to create a simple boolean bound property, and something that needs to be done for <em>every</em> boolean <code class="notranslate">@Input</code>. The same problem also applies to <code class="notranslate">number</code> inputs.</p> <p dir="auto">A simple approach for TypeScript users might be to create their own decorator, something like</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Input() @BooleanField() checked: boolean;"><pre class="notranslate">@<span class="pl-smi">Input</span><span class="pl-kos">(</span><span class="pl-kos">)</span> @<span class="pl-smi">BooleanField</span><span class="pl-kos">(</span><span class="pl-kos">)</span> checked: <span class="pl-s1">boolean</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Unfortunately, this is incompatible with using the offline-compiler, as the presence of user-defined decorators prevents tree-shaking. As such, this seems to be something that should really be built into the framework itself. This could look something like:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class CoolCheckbox { @BooleanInput() checked: boolean; }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">CoolCheckbox</span> <span class="pl-kos">{</span> @<span class="pl-smi">BooleanInput</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">checked</span>: <span class="pl-smi">boolean</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pkozlowski-opensource/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pkozlowski-opensource">@pkozlowski-opensource</a> has encountered the same friction for ngBootstrap.</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tbosch/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tbosch">@tbosch</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mhevery/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mhevery">@mhevery</a></p>
1
<p dir="auto"><a href="https://sourceforge.net/tracker/?func=detail&amp;aid=3178834&amp;group_id=80706&amp;atid=560722" rel="nofollow">Original report at SourceForge, opened Fri Feb 11 22:02:28 2011</a></p> <p dir="auto">One of the annoying things about axes.hist is that with histtype='step' the automatic legend style is an empty box, instead of a line, as I would expect. This behaviour doesn't seem to make sense, because it seems a line would be much more appropriate for this case. Example code to demonstrate this:</p> <p dir="auto">import matplotlib.pyplot as plt<br> plt.hist([0,1,1,2,2,2], [0,1,2,3], histtype='step', label="histtype='step'")<br> plt.legend()<br> plt.show()</p> <p dir="auto">With the current uncustomisability of legend styles one can get around this by using proxy Line2D objects in building the legend, but this can be a common operation and becomes messy and annoying.</p> <p dir="auto">The cause of this is the fact that in axes.py::7799 (current SVN head), in axes.hist, patch objects are always created, even for the line-based step style. I searched the tracker, and couldn't find this mentioned before.</p> <p dir="auto">Attached is a patch that makes the very simple change of swapping out the call to .fill for .plot (only the function is changed here, not yet the documentation), and it appears to work but I haven't tested exhaustively.</p> <ul dir="auto"> <li>Is this intended behaviour, that I am just not understanding the requirement for?</li> <li>This will cause the return signature to possibly include Line2D's, instead of just patches. Will this break anything?</li> </ul> <p dir="auto">Thoughts?</p> <h3 dir="auto">SourceForge History</h3> <ul dir="auto"> <li>On Fri Feb 11 22:02:28 2011, by ndevenish: File Added: 401440: histtype_plot.patch</li> </ul>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></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="# Paste your code here # #"><pre class="notranslate"><span class="pl-c"># Paste your code here</span> <span class="pl-c">#</span> <span class="pl-c">#</span></pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# If applicable, paste the console output here # #"><pre class="notranslate"><code class="notranslate"># If applicable, paste the console output here # # </code></pre></div> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system:</li> <li>Matplotlib version:</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>):</li> <li>Python version:</li> <li>Jupyter version (if applicable):</li> <li>Other libraries:</li> </ul>
0
<p dir="auto">I have a general question about project structures / modules.<br> It's a project with 3 types of code:</p> <ul dir="auto"> <li>client: classes used for the client web-app, built into a single js file (with --out).</li> <li>server: code running on node</li> <li>shared: classes used by both client and server, typically model classes with functions like validation, etc</li> </ul> <p dir="auto">My aim is this:</p> <ul dir="auto"> <li>use 1 file per 1 class at the source level</li> <li>deploy the client app into a single output file (for performance reasons: better start up time), the server can be deployed as many files (or if possible and makes sense from a perf. point of view it can be a single file too). These can be 2 separate compilations, the client with --out and the server with commonjs.</li> <li>reuse the shared model classes (without duplication) in the client and the server</li> <li>be able to use circular dependencies (although shared code will not depend on client/node code, only the other way around, circular dependencies can only occur in within the client code)</li> </ul> <p dir="auto">I can't seem to achieve these goals. The problem is this:</p> <ul dir="auto"> <li>if I structure the shared code so that I only use the ///&lt;reference.../&gt; tags (like I do in the client) that won't be usable when compiling the server with common.js</li> <li>if I use common.js style requires in the shared code then that won't work for the client's single file --out compilation</li> </ul> <p dir="auto">These are the options I think I have:</p> <ul dir="auto"> <li>switch to using require js (amd) in the client as opposed to references and the single file output, and maybe use some post compile script to concatenate the modules to a single file. However circular dependencies may occur sometimes and that's a big issue I have with require.js</li> <li>switch to using es6 style module syntax and use it on the client and in node with some polyfills/loaders until natively supported</li> <li>switch to using commonjs style modules and load them with browserify on the client</li> <li>do a pre-compilation step and transform the shared code to be eligible once for the client side single output compilation and once for the node.js side common.js compilation. However this can have many caveats and sounds like a hack.</li> </ul> <p dir="auto">What I think I'm really looking for is a way for each TypeScript class/file to be able to "say" what is the class it exports, but not specify how it will be consumed, ie. via commonjs or as a single file output. Probably that's not possible though in a simple way?</p>
<p dir="auto">I have a general question about project structures / modules.<br> It's a project with 3 types of code:</p> <ul dir="auto"> <li>client: classes used for the client web-app, built into a single js file (with --out).</li> <li>server: code running on node</li> <li>shared: classes used by both client and server, typically model classes with functions like validation, etc</li> </ul> <p dir="auto">My aim is this:</p> <ul dir="auto"> <li>use 1 file per 1 class at the source level</li> <li>deploy the client app into a single output file (for performance reasons: better start up time), the server can be deployed as many files (or if possible and makes sense from a perf. point of view it can be a single file too). These can be 2 separate compilations, the client with --out and the server with commonjs.</li> <li>reuse the shared model classes (without duplication) in the client and the server</li> <li>be able to use circular dependencies (although shared code will not depend on client/node code, only the other way around, circular dependencies can only occur in within the client code)</li> </ul> <p dir="auto">I can't seem to achieve these goals. The problem is this:</p> <ul dir="auto"> <li>if I structure the shared code so that I only use the ///&lt;reference.../&gt; tags (like I do in the client) that won't be usable when compiling the server with common.js</li> <li>if I use common.js style requires in the shared code then that won't work for the client's single file --out compilation</li> </ul> <p dir="auto">These are the options I think I have:</p> <ul dir="auto"> <li>switch to using require js (amd) in the client as opposed to references and the single file output, and maybe use some post compile script to concatenate the modules to a single file. However circular dependencies may occur sometimes and that's a big issue I have with require.js</li> <li>switch to using es6 style module syntax and use it on the client and in node with some polyfills/loaders until natively supported</li> <li>switch to using commonjs style modules and load them with browserify on the client</li> <li>do a pre-compilation step and transform the shared code to be eligible once for the client side single output compilation and once for the node.js side common.js compilation. However this can have many caveats and sounds like a hack.</li> </ul> <p dir="auto">What I'm really looking for is a way for each TypeScript class/file to be able to "say" what is the class it exports, but not specify how it will be consumed, ie. via commonjs or as a single file output. Probably that's not possible though in a simple way?</p>
1
<p dir="auto">The generated code for</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="type NameOrNameArray = string | string[]; function createName(name) { if (typeof name === &quot;string&quot;) { return name; } else if (typeof name == 'number') { return name.toString(); } else { return name.join(&quot; &quot;); } } var greetingMessage = `Greetings, ${createName(3213) }`; alert(greetingMessage);"><pre class="notranslate"><code class="notranslate">type NameOrNameArray = string | string[]; function createName(name) { if (typeof name === "string") { return name; } else if (typeof name == 'number') { return name.toString(); } else { return name.join(" "); } } var greetingMessage = `Greetings, ${createName(3213) }`; alert(greetingMessage); </code></pre></div> <p dir="auto">is</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function createName(name) { if (typeof name === &quot;string&quot;) { return name; } else if (typeof name == 'number') { return name.toString(); } else { return name.join(&quot; &quot;); } }"><pre class="notranslate"><code class="notranslate">function createName(name) { if (typeof name === "string") { return name; } else if (typeof name == 'number') { return name.toString(); } else { return name.join(" "); } } </code></pre></div> <p dir="auto">the else after } should not newline.</p>
<p dir="auto">I know many users of TypeScript are from a C# background and expect to write conditionals like in that language. However, for JavaScript developers the standard for formatting conditionals is different. When TypeScript converts conditionals to JavaScript, it outputs the <code class="notranslate">else</code> and <code class="notranslate">else if</code> statements like so:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="} else if(whatever) { } else { }"><pre class="notranslate"><code class="notranslate">} else if(whatever) { } else { } </code></pre></div> <p dir="auto">The normal JavaScript format is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="} else if (whatever) { } else { }"><pre class="notranslate"><code class="notranslate">} else if (whatever) { } else { } </code></pre></div> <p dir="auto">Most teams have coding rules and code review mechanisms in place to make sure these conventions are followed. For a reference on standard JavaScript formatting conventions, please consult Douglas Crockford's guide: <a href="http://javascript.crockford.com/code.html" rel="nofollow">http://javascript.crockford.com/code.html</a>. About half way down you'll find the convention for conditionals.</p> <p dir="auto">At very least it would be nice to have a flag that we could set to get the expected formatting instead of the C/C# style you are currently producing.</p>
1
<p dir="auto">does not validate with swagger-tools CLI tool: <a href="https://github.com/apigee-127/swagger-tools/blob/master/docs/CLI.md#validate">https://github.com/apigee-127/swagger-tools/blob/master/docs/CLI.md#validate</a></p>
<p dir="auto">After <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="120075385" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/18126" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/18126/hovercard" href="https://github.com/kubernetes/kubernetes/issues/18126">#18126</a> fixed by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="120272588" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/18170" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/18170/hovercard" href="https://github.com/kubernetes/kubernetes/pull/18170">#18170</a>, I run density test again.</p> <p dir="auto">Now the hot spot on the critical path is an inefficient cache access(<a href="https://github.com/kubernetes/kubernetes/blob/master/pkg/client/cache/store.go#L75">https://github.com/kubernetes/kubernetes/blob/master/pkg/client/cache/store.go#L75</a>) when listing nodes that uses reflection. Reflection causes a lot of allocations.</p> <p dir="auto">A simple fix would be</p> <div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="func NodeKeyFunc(obj interface{}) (string, error) { key, ok := obj.(*api.Node) if !ok { return &quot;&quot;, fmt.Errorf(&quot;not *api.Node type&quot;) } meta := key.ObjectMeta if len(meta.Namespace) &gt; 0 { return meta.Namespace + &quot;/&quot; + meta.Name, nil } return meta.Name, nil }"><pre class="notranslate"><span class="pl-k">func</span> <span class="pl-en">NodeKeyFunc</span>(<span class="pl-s1">obj</span> <span class="pl-k">interface</span>{}) (<span class="pl-smi">string</span>, <span class="pl-smi">error</span>) { <span class="pl-s1">key</span>, <span class="pl-s1">ok</span> <span class="pl-c1">:=</span> <span class="pl-s1">obj</span>.(<span class="pl-c1">*</span>api.<span class="pl-smi">Node</span>) <span class="pl-k">if</span> <span class="pl-c1">!</span><span class="pl-s1">ok</span> { <span class="pl-k">return</span> <span class="pl-s">""</span>, <span class="pl-s1">fmt</span>.<span class="pl-en">Errorf</span>(<span class="pl-s">"not *api.Node type"</span>) } <span class="pl-s1">meta</span> <span class="pl-c1">:=</span> <span class="pl-s1">key</span>.<span class="pl-c1">ObjectMeta</span> <span class="pl-k">if</span> <span class="pl-en">len</span>(<span class="pl-s1">meta</span>.<span class="pl-c1">Namespace</span>) <span class="pl-c1">&gt;</span> <span class="pl-c1">0</span> { <span class="pl-k">return</span> <span class="pl-s1">meta</span>.<span class="pl-c1">Namespace</span> <span class="pl-c1">+</span> <span class="pl-s">"/"</span> <span class="pl-c1">+</span> <span class="pl-s1">meta</span>.<span class="pl-c1">Name</span>, <span class="pl-c1">nil</span> } <span class="pl-k">return</span> <span class="pl-s1">meta</span>.<span class="pl-c1">Name</span>, <span class="pl-c1">nil</span> }</pre></div> <p dir="auto">The simple fix improves the throughput of scheduler by 15%-20% on 1000 nodes case.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lavalamp/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lavalamp">@lavalamp</a> What do you think about this issue?</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/hongchaodeng/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/hongchaodeng">@hongchaodeng</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wojtek-t/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wojtek-t">@wojtek-t</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gmarek/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gmarek">@gmarek</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/davidopp/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/davidopp">@davidopp</a></p>
0
<h4 dir="auto">Describe the workflow you want to enable</h4> <p dir="auto">Current score_func for feature selection methods does not consider multicollinearity between features.</p> <h4 dir="auto">Describe your proposed solution</h4> <p dir="auto">Introduce mRMR (Minimum Redundancy and Maximum Relevance) score as score_func for feature selection methods.</p> <p dir="auto">Variant of mRMR scores in a nutshell:</p> <ul dir="auto"> <li>MID: Mutual Information to target - Mutual Information between features</li> <li>MIQ: Mutual Information to target / Mutual Information between features</li> <li>FCD: F Statistic to target - Correlation between features</li> <li>FCQ: F Statistic to target / Correlation between features</li> </ul> <p dir="auto">From what I understand Mutual Information and F Statistic already implemented as score_func in scikit-learn, so these mRmR scores are somewhat an extension of it.</p>
<p dir="auto">Speaking with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jorisvandenbossche/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jorisvandenbossche">@jorisvandenbossche</a> IRL, we come to discuss about the mRMR feature selection among other methods.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="110554786" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/5372" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/5372/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/5372">#5372</a> intended at first to implement the mRMR with mutual information as a metric. However, it has been merged such that mutual information could be used in the <code class="notranslate">SelectKBest</code> class. It was also discuss that the mRMR mechanism could be implemented in a separate PR with the possibility to plug any metric.</p> <p dir="auto">Therefore, I was wondering if scikit-learn will be interested to have this transformer to perform feature selection.</p> <p dir="auto">I would be interested to know the different opinions<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/agramfort/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/agramfort">@agramfort</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/MechCoder/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/MechCoder">@MechCoder</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jnothman/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jnothman">@jnothman</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/GaelVaroquaux/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/GaelVaroquaux">@GaelVaroquaux</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/amueller/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/amueller">@amueller</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jorisvandenbossche/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jorisvandenbossche">@jorisvandenbossche</a></p>
1
<p dir="auto">Now that TypeScript does <a href="https://github.com/Microsoft/TypeScript/pull/8010" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/TypeScript/pull/8010/hovercard">control flow based type analysis</a>, and there is a <a href="https://github.com/Microsoft/TypeScript/pull/8652" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/TypeScript/pull/8652/hovercard"><code class="notranslate">never</code> type</a> in the works, is it possible to consider providing better type checking around <code class="notranslate">assert(...)</code> function calls that assert that a variable has a certain type at runtime?</p> <p dir="auto"><strong>TL;DR: some <code class="notranslate">assert</code> functions are really just type guards that signal via <code class="notranslate">return</code>/<code class="notranslate">throw</code> rather than <code class="notranslate">true</code>/<code class="notranslate">false</code>.</strong> Example:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="assert(typeof s === &quot;string&quot;); // throws if s is not a string s.length; // s is narrowed to string here..."><pre class="notranslate"><span class="pl-en">assert</span><span class="pl-kos">(</span><span class="pl-k">typeof</span> <span class="pl-s1">s</span> <span class="pl-c1">===</span> <span class="pl-s">"string"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// throws if s is not a string</span> <span class="pl-s1">s</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">;</span> <span class="pl-c">// s is narrowed to string here...</span></pre></div> <h3 dir="auto">Problem</h3> <p dir="auto">Asserts are common in contract-based programming, but I've also been coming across this scenario regularly whilst traversing JavaScript ASTs based on the <a href="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Parser_API" rel="nofollow">Parser API</a> (I'm using babel to produce/traverse ASTs).</p> <p dir="auto">For example, consider the <code class="notranslate">MemberExpression</code>:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1252361/15344361/db71cf24-1cd8-11e6-9ffc-b3e95a0ace35.png"><img src="https://cloud.githubusercontent.com/assets/1252361/15344361/db71cf24-1cd8-11e6-9ffc-b3e95a0ace35.png" alt="memberexpression" style="max-width: 100%;"></a></p> <p dir="auto">Note we can assume <code class="notranslate">property</code> is an <code class="notranslate">Identifier</code> if <code class="notranslate">computed===false</code>. This is what I'd like to write:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function foo(expr: MemberExprssion) { if (expr.computed) { // handle computed case } else { // since computed===false, we know property must be an Identifier assert(isIdentifier(expr.property)); let name = expr.property.name; // ERROR: name doesn't exist on Identifier|Expression } }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-s1">expr</span>: <span class="pl-smi">MemberExprssion</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">expr</span><span class="pl-kos">.</span><span class="pl-c1">computed</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// handle computed case</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-c">// since computed===false, we know property must be an Identifier</span> <span class="pl-en">assert</span><span class="pl-kos">(</span><span class="pl-en">isIdentifier</span><span class="pl-kos">(</span><span class="pl-s1">expr</span><span class="pl-kos">.</span><span class="pl-c1">property</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">name</span> <span class="pl-c1">=</span> <span class="pl-s1">expr</span><span class="pl-kos">.</span><span class="pl-c1">property</span><span class="pl-kos">.</span><span class="pl-c1">name</span><span class="pl-kos">;</span> <span class="pl-c">// ERROR: name doesn't exist on Identifier|Expression</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Unfortunately that doesn't compile, because <code class="notranslate">expr.property</code> does not get narrowed after the <code class="notranslate">assert(...)</code> call.</p> <p dir="auto">To get the full benefit of control flow analysis currently, you have to expand the assert call inline:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="... else { if (!isIdentifier(expr.property)) { throw new AssertionError(`Expected property to be an Identifier`); } let name = expr.property.name; // OK } ..."><pre class="notranslate">... <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-en">isIdentifier</span><span class="pl-kos">(</span><span class="pl-s1">expr</span><span class="pl-kos">.</span><span class="pl-c1">property</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-smi">AssertionError</span><span class="pl-kos">(</span><span class="pl-s">`Expected property to be an Identifier`</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">name</span> <span class="pl-c1">=</span> <span class="pl-s1">expr</span><span class="pl-kos">.</span><span class="pl-c1">property</span><span class="pl-kos">.</span><span class="pl-c1">name</span><span class="pl-kos">;</span> <span class="pl-c">// OK</span> <span class="pl-kos">}</span> ...</pre></div> <p dir="auto">While preparing the typings for <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/babel-core/babel-core.d.ts"><code class="notranslate">babel-core</code></a>, <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/babel-types/babel-types.d.ts"><code class="notranslate">babel-types</code></a> and friends, I noticed that using asserts this way is the norm. <code class="notranslate">babel-types</code> actually provides an <code class="notranslate">assertXXX</code> method for every <code class="notranslate">isXXX</code> method. These <code class="notranslate">assertXXX</code> functions are really just type guards that signal via <code class="notranslate">return</code>/<code class="notranslate">throw</code> rather than <code class="notranslate">true</code>/<code class="notranslate">false</code>.</p> <h3 dir="auto">Possible Solutions?</h3> <p dir="auto">Not sure if it's feasible at all! But the new work on <code class="notranslate">never</code> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="155357716" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/8652" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/TypeScript/pull/8652/hovercard" href="https://github.com/microsoft/TypeScript/pull/8652">#8652</a> suggests a few possibilities.</p> <h4 dir="auto">Specific assertions: assertIsT(...)</h4> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// normal type guard function isIdentifier(n: Node): n is Identifier { return n.type === 'Identifier'; } // PROPOSED SYNTAX: assert type guard function assertIdentifier(n: Node): n is Identifier | never { if (n.type !== 'Identifier') { throw new AssertionError(`Expected an Identifier`); } } "><pre class="notranslate"><span class="pl-c">// normal type guard</span> <span class="pl-k">function</span> <span class="pl-en">isIdentifier</span><span class="pl-kos">(</span><span class="pl-s1">n</span>: <span class="pl-smi">Node</span><span class="pl-kos">)</span>: <span class="pl-s1">n</span> is <span class="pl-smi">Identifier</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">n</span><span class="pl-kos">.</span><span class="pl-c1">type</span> <span class="pl-c1">===</span> <span class="pl-s">'Identifier'</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c">// PROPOSED SYNTAX: assert type guard</span> <span class="pl-k">function</span> <span class="pl-en">assertIdentifier</span><span class="pl-kos">(</span><span class="pl-s1">n</span>: <span class="pl-smi">Node</span><span class="pl-kos">)</span>: <span class="pl-s1">n</span> is <span class="pl-smi">Identifier</span> <span class="pl-c1">|</span> <span class="pl-smi">never</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">n</span><span class="pl-kos">.</span><span class="pl-c1">type</span> <span class="pl-c1">!==</span> <span class="pl-s">'Identifier'</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-smi">AssertionError</span><span class="pl-kos">(</span><span class="pl-s">`Expected an Identifier`</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">The compiler would reason that if this assert call returns at all, then it can safely narrow the variable type in following code.</p> <h4 dir="auto">General assertions used with type guards: assert(isT(...))</h4> <p dir="auto">The more general <code class="notranslate">assert(cond: boolean)</code> function would need a different approach and might not be feasible, but here's an idea:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" // General case declare function assert(cond: boolean): void; // PROPOSED SYNTAX: Special overload for expressions of the form assert(isT(x)) declare function assert&lt;T&gt;(guard: guard is T): void | never; "><pre class="notranslate"> <span class="pl-c">// General case</span> <span class="pl-k">declare</span> <span class="pl-k">function</span> <span class="pl-s1">assert</span><span class="pl-kos">(</span><span class="pl-s1">cond</span>: <span class="pl-smi">boolean</span><span class="pl-kos">)</span>: <span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">;</span> <span class="pl-c">// PROPOSED SYNTAX: Special overload for expressions of the form assert(isT(x))</span> <span class="pl-k">declare</span> <span class="pl-k">function</span> <span class="pl-s1">assert</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-s1">guard</span>: <span class="pl-smi">guard</span> <span class="pl-s1">is</span> <span class="pl-smi">T</span><span class="pl-kos">)</span>: <span class="pl-smi"><span class="pl-k">void</span></span> <span class="pl-c1">|</span> <span class="pl-smi">never</span><span class="pl-kos">;</span></pre></div> <p dir="auto">For that second <code class="notranslate">assert</code> overload to work, the compiler on seeing <code class="notranslate">assert(isT(x))</code> would have to somehow forward the <code class="notranslate">x is T</code> narrowing from the <code class="notranslate">isT(x)</code> expression to the <code class="notranslate">assert(...)</code> expression at compile-time.</p> <p dir="auto">Would be great if it also detected/handled things like <code class="notranslate">assert(typeof x == 'string')</code>.</p> <p dir="auto">Not sure if any of this would meet the cost/benefit bar, but it's just an idea.</p>
<p dir="auto">When writing a node software that should create a batch or symbolic link, we need to put the folowing line at the begining of the .js file:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#!/bin/node"><pre class="notranslate">#!/bin/node</pre></div> <p dir="auto">So npm knows it is a node executable script and creates a batch file with all the necessary stuff in it.<br> If we put it at a typescript file to be transpiled to javascript, it works, but gives annoying compilation error.<br> I purpose that lines started with <code class="notranslate">#!</code> shoud be treated as a special case of commentary line that should always go to the transpiled file.</p>
0
<p dir="auto">Became important when you extend, for example, <code class="notranslate">DefaultValueAccessor</code> to work with <code class="notranslate">ng-model</code><br> and see a list of errors:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR in ./rating/rating.ts (50,5): Supplied parameters do not match any signature of call target. (2346) ERROR in ./timepicker/timepicker.ts (151,5): Supplied parameters do not match any signature of call target. (2346) ..."><pre class="notranslate"><code class="notranslate">ERROR in ./rating/rating.ts (50,5): Supplied parameters do not match any signature of call target. (2346) ERROR in ./timepicker/timepicker.ts (151,5): Supplied parameters do not match any signature of call target. (2346) ... </code></pre></div> <p dir="auto">I was trying to do it my self but, but constructor type parameters are come as string, not parsed, to dgeni templates</p>
<p dir="auto">Dgeni should output public constructors in our .d.ts files</p>
1
<h3 dir="auto">Environment info</h3> <p dir="auto">Operating System: Ubuntu 14.04 LTS 64-bit</p> <p dir="auto">Installed version of CUDA and cuDNN: none (not using GPU)</p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">Note: TensorFlow was installed previously.</p> <ol dir="auto"> <li>Install Bazel as instructed here: <a href="http://www.bazel.io/docs/install.html#install-on-ubuntu" rel="nofollow">http://www.bazel.io/docs/install.html#install-on-ubuntu</a></li> <li>Install Android Studio (which includes the SDK).</li> <li>Install Android NDK through the Android Studio SDK Manager.</li> <li>Download and unzip the TensorFlow graph as instructed here: <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/android/README.md">https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/android/README.md</a></li> <li>Uncomment the Android entries in the WORKSPACE file and add in paths to the SDK and NDK (in my case, these were <code class="notranslate">/home/me/Android/Sdk</code> and <code class="notranslate">/home/me/android-studio/android-studio/plugins/android-ndk</code>)</li> <li>Run <code class="notranslate">$ bazel build //tensorflow/examples/android:tensorflow_demo</code></li> </ol> <h3 dir="auto">What have you tried?</h3> <ol dir="auto"> <li>I've looked around, and my understanding is that the RELEASE.TXT file is not included in the most recent version of the Android NDK. Since the NDK installed via Android Studio is a .jar file, I wasn't sure what to do with that, so I went to the path indicated by the terminal log and created a blank RELEASE.TXT file. This made no difference.</li> <li>According to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="140340471" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/1468" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/1468/hovercard" href="https://github.com/tensorflow/tensorflow/issues/1468">#1468</a>, it can be resolved by downgrading to an earlier version of the NDK which contains RELEASE.TXT. I downloaded the version of Bazel (for Linux) from the links given, but the downloaded file is a .bin, which is unusable to me. As such, I found this solution to be a dead end.</li> <li>Commenting out the NDK entry is said to resolve the issue, but I haven't tried this yet, since I don't know if it'll cause more complications down the road.</li> </ol> <h3 dir="auto">Logs or other output that would be helpful</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: no such package '@androidndk//': Could not read RELEASE.TXT in Android NDK: /home/me/.cache/bazel/_bazel_me/f3471be34d1e62bf21975aa777cedaa3/external/androidndk/ndk/RELEASE.TXT (No such file or directory). ERROR: no such package '@androidndk//': Could not read RELEASE.TXT in Android NDK: /home/me/.cache/bazel/_bazel_me/f3471be34d1e62bf21975aa777cedaa3/external/androidndk/ndk/RELEASE.TXT (No such file or directory)."><pre class="notranslate"><code class="notranslate">ERROR: no such package '@androidndk//': Could not read RELEASE.TXT in Android NDK: /home/me/.cache/bazel/_bazel_me/f3471be34d1e62bf21975aa777cedaa3/external/androidndk/ndk/RELEASE.TXT (No such file or directory). ERROR: no such package '@androidndk//': Could not read RELEASE.TXT in Android NDK: /home/me/.cache/bazel/_bazel_me/f3471be34d1e62bf21975aa777cedaa3/external/androidndk/ndk/RELEASE.TXT (No such file or directory). </code></pre></div> <p dir="auto">Is there another way to resolve this issue without downgrading or commenting out the NDK entry? If not, how can I install a previous version of Android NDK? Thanks in advance.</p>
<p dir="auto">GitHub issues are for bugs / installation problems / feature requests.<br> 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">Environment info</h3> <p dir="auto">Operating System:<br> OS X EI Capitan version 10.11.3</p> <p dir="auto">If installed from sources, provide the commit hash:<br> <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/13ea3ca91ba5aecab6f21acc14b9cb6a9afa8630/hovercard" href="https://github.com/tensorflow/tensorflow/commit/13ea3ca91ba5aecab6f21acc14b9cb6a9afa8630"><tt>13ea3ca</tt></a></p> <h3 dir="auto">Steps to reproduce</h3> <ol dir="auto"> <li>Build TensorFlow without uncommenting the Android SDK and NDK parts successfully.</li> <li>We can</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import tensorflow "><pre class="notranslate"><code class="notranslate">import tensorflow </code></pre></div> <p dir="auto">in python environment after step 1 and following installation steps.<br> 4. Download SDK and NDK from what <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/android/README.md">https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/android/README.md</a> suggested.<br> 3. Uncomment the Android SDK and NDK repository in WORKSPACE and change the path.<br> 4. Rebuild using</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ bazel build -c opt //tensorflow/tools/pip_package:build_pip_package"><pre class="notranslate"><code class="notranslate">$ bazel build -c opt //tensorflow/tools/pip_package:build_pip_package </code></pre></div> <p dir="auto">the console returns the error,</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ERROR: .../tensorflow/WORKSPACE:10:1: no such package '@androidndk//': Could not read RELEASE.TXT in Android NDK: /private/var/tmp/.../49fff0428.../external/androidndk/ndk/RELEASE.TXT (No such file or directory) and referenced by '//external:android/crosstool'."><pre class="notranslate">ERROR: .../tensorflow/WORKSPACE:10:1: no such package <span class="pl-s"><span class="pl-pds">'</span>@androidndk//<span class="pl-pds">'</span></span>: Could not <span class="pl-c1">read</span> RELEASE.TXT <span class="pl-k">in</span> Android NDK: /private/var/tmp/.../49fff0428.../external/androidndk/ndk/RELEASE.TXT (No such file or directory) and referenced by <span class="pl-s"><span class="pl-pds">'</span>//external:android/crosstool<span class="pl-pds">'</span></span>.</pre></div> <h3 dir="auto">What have you tried?</h3> <ol dir="auto"> <li>Commenting NDK repository and leave the SDK in TensorFlow WORKSPACE, build using</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ bazel build -c opt //tensorflow/tools/pip_package:build_pip_package"><pre class="notranslate"><code class="notranslate">$ bazel build -c opt //tensorflow/tools/pip_package:build_pip_package </code></pre></div> <p dir="auto">passed and without error.</p> <p dir="auto">2.Finding that Downloaded NDK and NDK in /private/var/tmp/.../49fff0428.../external/androidndk/ndk are the same. And there are no RELEASE.TXT in in directory.</p> <h3 dir="auto">Logs or other output that would be helpful</h3> <p dir="auto">(If logs are large, please upload as attachment).</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ERROR: .../tensorflow/WORKSPACE:10:1: no such package '@androidndk//': Could not read RELEASE.TXT in Android NDK: /private/var/tmp/.../49fff0428.../external/androidndk/ndk/RELEASE.TXT (No such file or directory) and referenced by '//external:android/crosstool'."><pre class="notranslate">ERROR: .../tensorflow/WORKSPACE:10:1: no such package <span class="pl-s"><span class="pl-pds">'</span>@androidndk//<span class="pl-pds">'</span></span>: Could not <span class="pl-c1">read</span> RELEASE.TXT <span class="pl-k">in</span> Android NDK: /private/var/tmp/.../49fff0428.../external/androidndk/ndk/RELEASE.TXT (No such file or directory) and referenced by <span class="pl-s"><span class="pl-pds">'</span>//external:android/crosstool<span class="pl-pds">'</span></span>.</pre></div> <p dir="auto">Is this error due to the codes or my building processes?</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: &gt;= 2.7.0</li> <li>Operating System version: xxx</li> <li>Java version: xxx</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <p dir="auto">issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="537432466" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/5480" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/5480/hovercard" href="https://github.com/apache/dubbo/issues/5480">#5480</a></p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <p dir="auto">用户从dubbo 2.6.x升级到apache dubbo 2.7.x时,会存在一些兼容依赖缺失,比如AbstractRegistry、LoggerXxx和其他扩展点兼容问题,导致一些扩展dubbo的一些组件无法良好工作。</p> <p dir="auto">期望&amp;建议:</p> <ul dir="auto"> <li>dubbo 2.7.x 中compatible的模块剥离成独立repository, 形成复用依赖</li> <li>对独立的compatible repository做扩展点梳理和依赖增强(支持更完善)</li> <li>用户dubbo 2.6.x升级上来时,一些扩展能力和基础组件(比如sdk),添加对应 compatible依赖都可以良好工作,提升用户使用体验</li> </ul> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.3(with maven groupId: org.apache.dubbo) (upgrade from 2.6.5 with groupId: com.alibaba)</li> <li>Operating System version: CentOS Linux release 7.3.1611 (Core)</li> <li>Java version: Oracle JDK 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>(Dubbo 2.6.5) Provider-side program with <code class="notranslate">provider.xml</code> (Spring-Context-Configuration), which without <code class="notranslate">metadata-report</code> configuration. And accesslog enabled:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;dubbo:protocol name=&quot;dubbo&quot; port=&quot;21881&quot; server=&quot;netty&quot; register=&quot;true&quot; accesslog=&quot;logs/access.log&quot;/&gt; &lt;!-- 接口的位置 --&gt; &lt;dubbo:service interface=&quot;xxx.xxx.xxxService&quot; ref=&quot;xxxService&quot; timeout=&quot;10000&quot; retries=&quot;3&quot; executes=&quot;100&quot; loadbalance=&quot;leastactive&quot; accesslog=&quot;logs/access-xxx.log&quot; register=&quot;true&quot; owner=&quot;jk&quot; group=&quot;gp&quot; version=&quot;1.0&quot; /&gt;"><pre class="notranslate"><code class="notranslate">&lt;dubbo:protocol name="dubbo" port="21881" server="netty" register="true" accesslog="logs/access.log"/&gt; &lt;!-- 接口的位置 --&gt; &lt;dubbo:service interface="xxx.xxx.xxxService" ref="xxxService" timeout="10000" retries="3" executes="100" loadbalance="leastactive" accesslog="logs/access-xxx.log" register="true" owner="jk" group="gp" version="1.0" /&gt; </code></pre></div> <ol start="2" dir="auto"> <li>Launching the program, and accesslog print exactly.</li> <li>(Upgrade to 2.7.3) Enable metadata-report (I'm not sure whether this affects. Then I tried without metadata-report configuration, and it still not works.), with configuration:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;dubbo:metadata-report address=&quot;zookeeper://zk1.registry.gp.org:2181&quot; cycle-report=&quot;false&quot; sync-report=&quot;true&quot;/&gt;"><pre class="notranslate"><code class="notranslate">&lt;dubbo:metadata-report address="zookeeper://zk1.registry.gp.org:2181" cycle-report="false" sync-report="true"/&gt; </code></pre></div> <ol start="4" dir="auto"> <li>Restart the provider-side program, console got log:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2019-11-05 14:55:28 [DUBBO] You specified the config centre, but there's not even one single config item in it., dubbo version: 2.7.3, current host: 192.168.10.*** 2019-11-05 14:55:28 [DUBBO] You specified the config centre, but there's not even one single config item in it., dubbo version: 2.7.3, current host: 192.168.10.*** 2019-11-05 14:55:28 [DUBBO] There's no valid monitor config found, if you want to open monitor statistics for Dubbo, please make sure your monitor is configured properly., dubbo version: 2.7.3, current host: 192.168.10.***"><pre class="notranslate"><code class="notranslate">2019-11-05 14:55:28 [DUBBO] You specified the config centre, but there's not even one single config item in it., dubbo version: 2.7.3, current host: 192.168.10.*** 2019-11-05 14:55:28 [DUBBO] You specified the config centre, but there's not even one single config item in it., dubbo version: 2.7.3, current host: 192.168.10.*** 2019-11-05 14:55:28 [DUBBO] There's no valid monitor config found, if you want to open monitor statistics for Dubbo, please make sure your monitor is configured properly., dubbo version: 2.7.3, current host: 192.168.10.*** </code></pre></div> <p dir="auto">and the accesslog file, which specified with path <code class="notranslate">logs/access-xxx.log</code> does NOT print any access log data.<br> 5. Remove metadata-report configuration, and restart the provider-side program, the same scene appears in step 4.<br> 6. I debugged the code, the AccessLogFilter class in dubbo-2.7.3.jar got an invoker with URL <code class="notranslate">dubbo://192.168.10.xxx:20881/xxx.xxx.xxxService?accesslog=logs/access-xxx.log&amp;anyhost=true&amp;application=platform-xxx-provider&amp;bean.name=xxx.xxx.xxxService&amp;bind.ip=192.168.10.***&amp;bind.port=20881&amp;deprecated=false&amp;dubbo=2.0.2&amp;dynamic=true&amp;executes=16&amp;generic=false&amp;group=gp&amp;interface=xxx.xxx.xxxService&amp;loadbalance=leastactive&amp;methods=advanced,simple&amp;owner=jk&amp;pid=106617&amp;qos.accept.foreign.ip=false&amp;qos.enable=false&amp;qos.port=33333&amp;register=true&amp;release=2.7.3&amp;retries=3&amp;revision=1.0.0&amp;server=netty&amp;side=provider&amp;timeout=10000&amp;timestamp=1572936930641&amp;version=1.0</code><br> Here we got a parameter named <code class="notranslate">accesslog</code> in the URL, but the code retrieved <code class="notranslate">dubbo.accesslog</code> key which assigned by static final variable <code class="notranslate">ACCESS_LOG_KEY</code> in this class, and then got <code class="notranslate">null</code> value with accessLogKey variable during the invoke function below:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Override public Result invoke(Invoker&lt;?&gt; invoker, Invocation inv) throws RpcException { try { String accessLogKey = invoker.getUrl().getParameter(ACCESS_LOG_KEY); if (ConfigUtils.isNotEmpty(accessLogKey)) { AccessLogData logData = buildAccessLogData(invoker, inv); log(accessLogKey, logData); } } catch (Throwable t) { logger.warn(&quot;Exception in AccessLogFilter of service(&quot; + invoker + &quot; -&gt; &quot; + inv + &quot;)&quot;, t); } return invoker.invoke(inv); }"><pre class="notranslate"><code class="notranslate">@Override public Result invoke(Invoker&lt;?&gt; invoker, Invocation inv) throws RpcException { try { String accessLogKey = invoker.getUrl().getParameter(ACCESS_LOG_KEY); if (ConfigUtils.isNotEmpty(accessLogKey)) { AccessLogData logData = buildAccessLogData(invoker, inv); log(accessLogKey, logData); } } catch (Throwable t) { logger.warn("Exception in AccessLogFilter of service(" + invoker + " -&gt; " + inv + ")", t); } return invoker.invoke(inv); } </code></pre></div> <p dir="auto">AND, I also tried the source code with dubbo-2.6.5 (maven groupId: com.alibaba), and got different Java implementation source bellow (Notice that, the <code class="notranslate">Constants.ACCESS_LOG_KEY</code> has value <code class="notranslate">accesslog</code> assigned, and same value in 2.7.3 with maven groupId: org.apache.dubbo):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Override public Result invoke(Invoker&lt;?&gt; invoker, Invocation inv) throws RpcException { try { String accesslog = invoker.getUrl().getParameter(Constants.ACCESS_LOG_KEY); if (ConfigUtils.isNotEmpty(accesslog)) { RpcContext context = RpcContext.getContext(); String serviceName = invoker.getInterface().getName(); String version = invoker.getUrl().getParameter(Constants.VERSION_KEY); String group = invoker.getUrl().getParameter(Constants.GROUP_KEY); ..."><pre class="notranslate"><code class="notranslate">@Override public Result invoke(Invoker&lt;?&gt; invoker, Invocation inv) throws RpcException { try { String accesslog = invoker.getUrl().getParameter(Constants.ACCESS_LOG_KEY); if (ConfigUtils.isNotEmpty(accesslog)) { RpcContext context = RpcContext.getContext(); String serviceName = invoker.getInterface().getName(); String version = invoker.getUrl().getParameter(Constants.VERSION_KEY); String group = invoker.getUrl().getParameter(Constants.GROUP_KEY); ... </code></pre></div> <h4 dir="auto"></h4> <p dir="auto">BTW: The <a href="https://github.com/apache/dubbo/issues/4374" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/4374/hovercard">bugfix 4374</a> shows that this was fixed, but not specified the fixed version.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">Those accesslog configurations should also work, or some other ways to meet the accesslog needs.<br> BTW: It seems that the AccessLogFilter.ACCESS_LOG_KEY used correctly, and value assigned correctly here. Since it works before metadata-report configured. But when metadata-report configured, it does not work. Is the URL value generated correctly?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">I have read the <a href="http://dubbo.apache.org/en-us/docs/user/demos/accesslog.html" rel="nofollow">documents of accesslog</a>, but neither the <code class="notranslate">Logging by logging framework</code> part nor the <code class="notranslate">Logging by specified file path</code> part works.</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="NO EXCEPTION. CONFIGURATION NOT WORK."><pre class="notranslate"><code class="notranslate">NO EXCEPTION. CONFIGURATION NOT WORK. </code></pre></div>
0
<p dir="auto">Atom Version: 0.174.0<br> OS: Windows 7 x64</p> <p dir="auto">My Atom Version is 0.174.0, but release note is always 0.158<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1733006/5821938/b78c6024-a10a-11e4-8c1e-90ac974f02f7.png"><img src="https://cloud.githubusercontent.com/assets/1733006/5821938/b78c6024-a10a-11e4-8c1e-90ac974f02f7.png" alt="screanshot 181" style="max-width: 100%;"></a></p>
<ol dir="auto"> <li>Install <code class="notranslate">linter-jshint</code></li> <li>Try doing some javascript</li> </ol> <p dir="auto">For some reason, these errors aren't occouring in other javascript files in the same session. Also, this is the same session that I installed linter-jshint on, through the GUI package installer in <code class="notranslate">Edit &gt; Preferences</code>.</p> <p dir="auto"><strong>Atom Version</strong>: 0.165.0<br> <strong>System</strong>: linux 3.13.0-43-generic<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module './load-config'</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At module.js:346 Error: Cannot find module './load-config' at Module._resolveFilename (module.js:344:15) at Function.Module._resolveFilename (/usr/share/atom/resources/app/src/module-cache.js:380:52) at Function.Module._load (module.js:286:25) at Module.require (module.js:373:17) at require (module.js:392:17) at /home/athan/.atom/packages/jshint/node_modules/lazy-req/index.js:6:43 at lint (/home/athan/.atom/packages/jshint/index.js:156:34) at delayed (/usr/share/atom/resources/app/node_modules/roaster/node_modules/cheerio/node_modules/lodash/dist/lodash.js:5408:27) "><pre class="notranslate"><code class="notranslate">At module.js:346 Error: Cannot find module './load-config' at Module._resolveFilename (module.js:344:15) at Function.Module._resolveFilename (/usr/share/atom/resources/app/src/module-cache.js:380:52) at Function.Module._load (module.js:286:25) at Module.require (module.js:373:17) at require (module.js:392:17) at /home/athan/.atom/packages/jshint/node_modules/lazy-req/index.js:6:43 at lint (/home/athan/.atom/packages/jshint/index.js:156:34) at delayed (/usr/share/atom/resources/app/node_modules/roaster/node_modules/cheerio/node_modules/lodash/dist/lodash.js:5408:27) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 6x -6:52.9 core:backspace (input.hidden-input) -6:50.5 core:confirm (input.hidden-input) -6:44.8 core:undo (atom-workspace.workspace.scrollbars-visible-always.theme-seti-syntax.theme-seti-ui) 13x -6:34.8 core:move-right (input.hidden-input) 6x -6:33.8 core:backspace (input.hidden-input) -6:32.0 core:confirm (input.hidden-input) -6:10.6 editor:newline (input.hidden-input) -5:52.7 core:backspace (input.hidden-input) -5:44.8 core:save (atom-workspace.workspace.scrollbars-visible-always.theme-seti-syntax.theme-seti-ui) 3x -2:42.2 core:move-down (input.hidden-input) -1:59.3 core:delete (input.hidden-input) -1:59.2 core:move-down (input.hidden-input) -1:56.9 editor:newline (input.hidden-input) -1:18.3 core:save (input.hidden-input) -0:59.3 core:confirm (input.hidden-input) -0:00.0 core:save (input.hidden-input)"><pre class="notranslate"><code class="notranslate"> 6x -6:52.9 core:backspace (input.hidden-input) -6:50.5 core:confirm (input.hidden-input) -6:44.8 core:undo (atom-workspace.workspace.scrollbars-visible-always.theme-seti-syntax.theme-seti-ui) 13x -6:34.8 core:move-right (input.hidden-input) 6x -6:33.8 core:backspace (input.hidden-input) -6:32.0 core:confirm (input.hidden-input) -6:10.6 editor:newline (input.hidden-input) -5:52.7 core:backspace (input.hidden-input) -5:44.8 core:save (atom-workspace.workspace.scrollbars-visible-always.theme-seti-syntax.theme-seti-ui) 3x -2:42.2 core:move-down (input.hidden-input) -1:59.3 core:delete (input.hidden-input) -1:59.2 core:move-down (input.hidden-input) -1:56.9 editor:newline (input.hidden-input) -1:18.3 core:save (input.hidden-input) -0:59.3 core:confirm (input.hidden-input) -0:00.0 core:save (input.hidden-input) </code></pre></div> <h3 dir="auto">Config</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;themes&quot;: [ &quot;seti-ui&quot;, &quot;seti-syntax&quot; ] }, &quot;editor&quot;: { &quot;showIndentGuide&quot;: true, &quot;showInvisibles&quot;: true, &quot;softWrap&quot;: true, &quot;fontSize&quot;: 25, &quot;invisibles&quot;: {}, &quot;softWrapAtPreferredLineLength&quot;: true } }"><pre class="notranslate"><code class="notranslate">{ "core": { "themes": [ "seti-ui", "seti-syntax" ] }, "editor": { "showIndentGuide": true, "showInvisibles": true, "softWrap": true, "fontSize": 25, "invisibles": {}, "softWrapAtPreferredLineLength": true } } </code></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.2 autocomplete-plus, v1.1.0 color-picker, v1.2.6 git-log, v0.2.0 ide-haskell, v0.3.0 javascript-snippets, v1.0.0 jsformat, v0.7.18 language-haml, v0.14.0 language-haskell, v1.0.0 language-javascript-semantic, v0.1.0 linter, v0.9.1 linter-csslint, v0.0.11 linter-erb, v0.0.3 linter-hlint, v0.3.1 linter-htmlhint, v0.0.8 linter-jshint, v0.1.0 linter-jsonlint, v0.1.2 minimap, v3.5.4 script, v2.16.0 seti-syntax, v0.2.1 seti-ui, v0.6.1 travis-ci-status, v0.11.1 # 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">2</span> autocomplete<span class="pl-k">-</span>plus, v1.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> color<span class="pl-k">-</span>picker, v1.<span class="pl-ii">2</span>.<span class="pl-ii">6</span> git<span class="pl-k">-</span>log, v0.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> ide<span class="pl-k">-</span>haskell, v0.<span class="pl-ii">3</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> jsformat, v0.<span class="pl-ii">7</span>.<span class="pl-ii">18</span> language<span class="pl-k">-</span>haml, v0.<span class="pl-ii">14</span>.<span class="pl-ii">0</span> language<span class="pl-k">-</span>haskell, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span> language<span class="pl-k">-</span>javascript<span class="pl-k">-</span>semantic, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> linter, v0.<span class="pl-ii">9</span>.<span class="pl-ii">1</span> linter<span class="pl-k">-</span>csslint, v0.<span class="pl-ii">0</span>.<span class="pl-ii">11</span> linter<span class="pl-k">-</span>erb, v0.<span class="pl-ii">0</span>.<span class="pl-ii">3</span> linter<span class="pl-k">-</span>hlint, v0.<span class="pl-ii">3</span>.<span class="pl-ii">1</span> linter<span class="pl-k">-</span>htmlhint, v0.<span class="pl-ii">0</span>.<span class="pl-ii">8</span> linter<span class="pl-k">-</span>jshint, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> linter<span class="pl-k">-</span>jsonlint, v0.<span class="pl-ii">1</span>.<span class="pl-ii">2</span> minimap, v3.<span class="pl-ii">5</span>.<span class="pl-ii">4</span> script, v2.<span class="pl-ii">16</span>.<span class="pl-ii">0</span> seti<span class="pl-k">-</span>syntax, v0.<span class="pl-ii">2</span>.<span class="pl-ii">1</span> seti<span class="pl-k">-</span>ui, v0.<span class="pl-ii">6</span>.<span class="pl-ii">1</span> travis<span class="pl-k">-</span>ci<span class="pl-k">-</span>status, v0.<span class="pl-ii">11</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>
0
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p> <p dir="auto">both.</p> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">There is a existed issue <a href="https://github.com/facebook/react/issues/3926" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/3926/hovercard">#3926</a> but it is just one of the problems in some kind of browsers.</p> <p dir="auto">I have uploaded the detail, demo files, test results and temporary solution in <a href="https://github.com/eyesofkids/react-compositionevent">react-compositionevent</a></p> <p dir="auto">The main problem is when users type these words from IME(Chinese, Japanese or maybe Korean) and do something like search the database or filter out from some data, sometimes these functions will be unworkable. For example, if users type "ni" during the composition session, maybe it will be one of "你尼泥腻" in Chinese or one of "にニ尼煮" in Japanese. But in this moment, the <code class="notranslate">change</code> event also be fired. If the search or filter functions of the application are designed to be invoked when <code class="notranslate">change</code> event occured, there maybe something wrong logically. These functions should be invoked after users finished the composition session.</p> <p dir="auto">In React, there are three synthetic events - <code class="notranslate">onCompositionEnd</code>, <code class="notranslate">onCompositionStart</code> and <code class="notranslate">onCompositionUpdate</code>. If the input components(<code class="notranslate">&lt;input...&gt;</code> and <code class="notranslate">&lt;textarea.../&gt;</code>) are "uncontrolled", we can use them to help <code class="notranslate">onChange</code> to capture the text correctly. The only different point is Google Chrome change its events sequence after v53. Check <a href="https://github.com/eyesofkids/react-compositionevent/blob/master/uncontrolled/Cinput.js">Cinput.js</a> and <a href="https://github.com/eyesofkids/react-compositionevent/blob/master/uncontrolled/Ctextarea.js">Ctextarea.js</a> files.</p> <p dir="auto">But if these input components are "controlled", it will be hard to solve the problem.</p> <p dir="auto">Because these the <code class="notranslate">value</code> of a controlled component is came from <code class="notranslate">state</code>. We can't modify <code class="notranslate">state</code> directly and the only way to update state is using <code class="notranslate">this.setState()</code> to schedule update. But <code class="notranslate">this.setState()</code> may be asynchronous.</p> <p dir="auto">After test, i found different OS/browsers could have different results. I have written some code to solve it. But i thought it isn't a good solution. It uses the browser detection and two properties of the <code class="notranslate">state</code> object. One is for input, another is for internal functions(search, filter...etc). It can't just use one property of the <code class="notranslate">state</code> object because i can't stop any <code class="notranslate">change</code> events, state need it to update the value of the input element. If i stop some change events during composition session, i would get nothing after typing these words from IME.</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via <a href="https://jsfiddle.net" rel="nofollow">https://jsfiddle.net</a> or similar (template: <a href="https://jsfiddle.net/reactjs/69z2wepo/" rel="nofollow">https://jsfiddle.net/reactjs/69z2wepo/</a>).</strong></p> <p dir="auto">You can use online test demo: <a href="https://eyesofkids.github.io/" rel="nofollow">https://eyesofkids.github.io/</a><br> or use a normal input component(controlled/uncontrolled) to test.</p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">The input(and textarea) controlled components in React should ensure these fired "change" and "composition" events is consistent in different browsers. I found there are 3 different results(events fired sequence) at least.</p> <p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong></p> <ul dir="auto"> <li>React 15.4.1</li> <li>browsers: chrome, firefox, safari, opera, ie, edge</li> <li>OS: macOS, win7, win10</li> </ul>
<h3 dir="auto">Extra details</h3> <ul dir="auto"> <li>Similar discussion with extra details and reproducing analysis: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="198768260" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/8683" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/8683/hovercard" href="https://github.com/facebook/react/issues/8683">#8683</a></li> <li>Previous attempt to fix it: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="192005241" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/8438" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/8438/hovercard" href="https://github.com/facebook/react/pull/8438">#8438</a> (includes some unit tests, but sufficient to be confident in the fix)</li> </ul> <hr> <h3 dir="auto">Original Issue</h3> <p dir="auto">When I was trying this <a href="https://jsfiddle.net/reactjs/n47gckhr/light/" rel="nofollow">example</a> from <a href="https://facebook.github.io/react/blog/2013/11/05/thinking-in-react.html" rel="nofollow">https://facebook.github.io/react/blog/2013/11/05/thinking-in-react.html</a>, any Chinese characters inputted by Chinese pinyin input method would fire too many renders like:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1091472/7742565/2c8625b0-ffc3-11e4-8ac2-d7eb22a3aef3.png"><img src="https://cloud.githubusercontent.com/assets/1091472/7742565/2c8625b0-ffc3-11e4-8ac2-d7eb22a3aef3.png" alt="screen shot 2015-05-21 at 14 04 36" style="max-width: 100%;"></a></p> <p dir="auto">Actually I would expect those not to fire before I confirm the Chinese character.</p> <p dir="auto">Then I tried another kind of input method - wubi input method, I got this:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1091472/7742657/42c27bac-ffc4-11e4-8a3a-7d4550e88a59.png"><img src="https://cloud.githubusercontent.com/assets/1091472/7742657/42c27bac-ffc4-11e4-8a3a-7d4550e88a59.png" alt="screen shot 2015-05-21 at 14 17 15" style="max-width: 100%;"></a></p> <p dir="auto">It's weird too. So I did a test <a href="http://jsbin.com/yepogahobo/1/edit?html,js,console,output" rel="nofollow">in jQuery</a>:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1091472/7742591/71da6842-ffc3-11e4-9d7a-a8438721029c.png"><img src="https://cloud.githubusercontent.com/assets/1091472/7742591/71da6842-ffc3-11e4-9d7a-a8438721029c.png" alt="screen shot 2015-05-21 at 14 05 12" style="max-width: 100%;"></a></p> <p dir="auto">Only after I press the space bar to confirm the character, the <code class="notranslate">keyup</code> event would fire.</p> <p dir="auto">I know it might be different between the implementation of jQuery <code class="notranslate">keyup</code> and react <code class="notranslate">onChange</code> , but I would expect the way how jQuery <code class="notranslate">keyup</code> handles Chinese characters instead of react's <code class="notranslate">onChange</code>.</p>
1
<h2 dir="auto">🐛 Bug</h2> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[root@ip-172-26-11-98 ~]# python3.9 -m pip install torch==1.7.0+cpu torchvision==0.8.1+cpu torchaudio==0.7.0 -f https://download.pytorch.org/whl/torch_stable.html Looking in links: https://download.pytorch.org/whl/torch_stable.html ERROR: Could not find a version that satisfies the requirement torch==1.7.0+cpu (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2) ERROR: No matching distribution found for torch==1.7.0+cpu"><pre class="notranslate"><code class="notranslate">[root@ip-172-26-11-98 ~]# python3.9 -m pip install torch==1.7.0+cpu torchvision==0.8.1+cpu torchaudio==0.7.0 -f https://download.pytorch.org/whl/torch_stable.html Looking in links: https://download.pytorch.org/whl/torch_stable.html ERROR: Could not find a version that satisfies the requirement torch==1.7.0+cpu (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2) ERROR: No matching distribution found for torch==1.7.0+cpu </code></pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Successful installation of torch</p> <h2 dir="auto">Environment</h2> <ul dir="auto"> <li>PyTorch Version (e.g., 1.0): 1.7</li> <li>OS (e.g., Linux): CentOS 7.8</li> <li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): pip</li> <li>Build command you used (if compiling from source):</li> <li>Python version: 3.9</li> <li>CUDA/cuDNN version:</li> <li>GPU models and configuration:</li> <li>Any other relevant information: I had built Python3.9 from source.</li> </ul> <h2 dir="auto">Additional context</h2> <p dir="auto">I had built Python 3.9 this way:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="yum install openssl-devel readline-devel libuuid-devel gdbm-devel sqlite-devel bzip bzip2-devel libffi-devel wget https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tgz tar -xzf Python-3.9.0.tgz rm -rf Python-3.9.0.tgz cd Python-3.9.0 mkdir build cd build ../configure --sbindir=/usr/bin/python3.9 make make install"><pre class="notranslate"><code class="notranslate">yum install openssl-devel readline-devel libuuid-devel gdbm-devel sqlite-devel bzip bzip2-devel libffi-devel wget https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tgz tar -xzf Python-3.9.0.tgz rm -rf Python-3.9.0.tgz cd Python-3.9.0 mkdir build cd build ../configure --sbindir=/usr/bin/python3.9 make make install </code></pre></div>
<h2 dir="auto">🐛 Windows LibTorch C++ Cannot Load CUDA Module</h2> <p dir="auto"><code class="notranslate">th.jit.trace()</code>'ing or <code class="notranslate">th.jit.script()</code>'ing even just a Conv2d module will produce a serialized file that cannot be loaded by the C++ runtime. See the following two example scripts for a repro:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch as th from torch import nn d = th.nn.Conv2d(3, 3, 1, 1, 0).cuda() z = th.zeros(1, 3, 256, 256).cuda() th.jit.script(d).save(&quot;smod.ptj&quot;) # Also fails if this is th.jit.trace(d, (z,))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span> <span class="pl-k">as</span> <span class="pl-s1">th</span> <span class="pl-k">from</span> <span class="pl-s1">torch</span> <span class="pl-k">import</span> <span class="pl-s1">nn</span> <span class="pl-s1">d</span> <span class="pl-c1">=</span> <span class="pl-s1">th</span>.<span class="pl-s1">nn</span>.<span class="pl-v">Conv2d</span>(<span class="pl-c1">3</span>, <span class="pl-c1">3</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">0</span>).<span class="pl-en">cuda</span>() <span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-s1">th</span>.<span class="pl-en">zeros</span>(<span class="pl-c1">1</span>, <span class="pl-c1">3</span>, <span class="pl-c1">256</span>, <span class="pl-c1">256</span>).<span class="pl-en">cuda</span>() <span class="pl-s1">th</span>.<span class="pl-s1">jit</span>.<span class="pl-en">script</span>(<span class="pl-s1">d</span>).<span class="pl-en">save</span>(<span class="pl-s">"smod.ptj"</span>) <span class="pl-c"># Also fails if this is th.jit.trace(d, (z,))</span></pre></div> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#include &lt;iostream&gt; #include &lt;torch/script.h&gt; int main() { try { auto mod = torch::jit::load(&quot;smod.ptj&quot;); } catch(c10::Error&amp; e) { std::cerr &lt;&lt; e.what() &lt;&lt; std::endl; return 1; } return 0; }"><pre class="notranslate">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>iostream<span class="pl-pds">&gt;</span></span> #<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>torch/script.h<span class="pl-pds">&gt;</span></span> <span class="pl-k">int</span> <span class="pl-en">main</span>() { <span class="pl-k">try</span> { <span class="pl-k">auto</span> mod = <span class="pl-c1">torch::jit::load</span>(<span class="pl-s"><span class="pl-pds">"</span>smod.ptj<span class="pl-pds">"</span></span>); } <span class="pl-k">catch</span>(c10::Error&amp; e) { std::cerr &lt;&lt; e.<span class="pl-c1">what</span>() &lt;&lt; std::endl; <span class="pl-k">return</span> <span class="pl-c1">1</span>; } <span class="pl-k">return</span> <span class="pl-c1">0</span>; }</pre></div> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <ol dir="auto"> <li>Run the above python script.</li> <li>Compile + run the above C++ program.</li> </ol> <p dir="auto">The exception text is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cuda_dispatch_ptr INTERNAL ASSERT FAILED at C:\w\1\s\windows\pytorch\aten\src\ATen/native/DispatchStub.h:70, please report a bug to PyTorch. DispatchStub: missing CUDA kernel (operator () at C:\w\1\s\windows\pytorch\aten\src\ATen/native/DispatchStub.h:70) (no backtrace available)"><pre class="notranslate"><code class="notranslate">cuda_dispatch_ptr INTERNAL ASSERT FAILED at C:\w\1\s\windows\pytorch\aten\src\ATen/native/DispatchStub.h:70, please report a bug to PyTorch. DispatchStub: missing CUDA kernel (operator () at C:\w\1\s\windows\pytorch\aten\src\ATen/native/DispatchStub.h:70) (no backtrace available) </code></pre></div> <p dir="auto">and is thrown at <code class="notranslate">include\ATen\core\TensorMethods.h:249</code> (the end of an inline <code class="notranslate">copy_</code> method).</p> <p dir="auto">Problem persists with latest master builds as well.</p> <p dir="auto">I used linux to dump the module since installing pytorch from anaconda currently results in a pytorch that will not import:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" from torch._C import * ImportError: DLL load failed: The specified procedure could not be found."><pre class="notranslate"><code class="notranslate"> from torch._C import * ImportError: DLL load failed: The specified procedure could not be found. </code></pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">C++ program returns 0 w/no errors displayed.</p> <h2 dir="auto">Environment</h2> <ul dir="auto"> <li>PyTorch Version (e.g., 1.0): 1.2 stable (also nightly)</li> <li>OS (e.g., Linux): Windows</li> <li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): conda (linux), pytorch.org (win binaries)</li> <li>Build command you used (if compiling from source):</li> <li>Python version: 3.7</li> <li>CUDA/cuDNN version: 10.0 / 3.6</li> <li>GPU models and configuration: Titan RTX</li> </ul> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/peterjc123/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/peterjc123">@peterjc123</a></p>
0
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Issue Details</h3> <ul dir="auto"> <li><strong>Electron Version:</strong> <ul dir="auto"> <li>6.0.0-beta3</li> </ul> </li> <li><strong>Operating System:</strong> <ul dir="auto"> <li>macOS 10.13.6 10.14.4 / Windows 7 --&gt;</li> </ul> </li> <li><strong>Last Known Working Electron version:</strong>: <ul dir="auto"> <li>5.0.1</li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Clicked button in renderer process, then show file chooser dialog and choose local files.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">Clicked button in renderer process, then crash electron app.</p> <h3 dir="auto">To Reproduce</h3> <ol dir="auto"> <li>Clone and start sample app</li> </ol> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/agata/crash-electron-with-file-picker-dialog.git $ cd ./crash-electron-with-file-picker-dialog $ npm install $ npm start"><pre class="notranslate">$ git clone https://github.com/agata/crash-electron-with-file-picker-dialog.git $ <span class="pl-c1">cd</span> ./crash-electron-with-file-picker-dialog $ npm install $ npm start</pre></div> <ol start="3" dir="auto"> <li>Click a button in the app -&gt; Crash electron app</li> </ol> <h3 dir="auto">Screenshots</h3> <h4 dir="auto">Electron 5.0.1</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/40473/57963337-ca08bb00-795d-11e9-9da0-75a2ca3e55d9.png"><img width="1261" alt="Electron-5 0 1" src="https://user-images.githubusercontent.com/40473/57963337-ca08bb00-795d-11e9-9da0-75a2ca3e55d9.png" style="max-width: 100%;"></a></p> <h4 dir="auto">Electron 6.0.0-beta.3</h4> <p dir="auto">Screencast: <a href="https://github.com/electron/electron/files/3193544/Electron-6.0.0-beta.3.mov.zip">Electron-6.0.0-beta.3.mov.zip</a></p> <h3 dir="auto">Additional Information</h3>
<ul dir="auto"> <li>Electron version: 1.8.2-beta1</li> <li>Operating system: Mac 10.12.6</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">Not crash</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">crash</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">It seems like use auto-updater.check() may be crash. Not 100% occur</p> <p dir="auto">the crash report</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="perating system: Mac OS X 10.12.5 16F73 CPU: amd64 family 6 model 70 stepping 1 8 CPUs GPU: UNKNOWN Crash reason: EXC_BAD_ACCESS / EXC_I386_GPFLT Crash address: 0x1046326e3 Process uptime: 6447 seconds Thread 14 (crashed) 0 Electron Framework!&lt;name omitted&gt; [transport_security_state.cc : 865 + 0x3] rax = 0xbadda3319a85bead rdx = 0x00007f962ff47030 rcx = 0x00007f962fe25a20 rbx = 0x00007f962fe25a20 rsi = 0x00007f962fe25b00 rdi = 0x0000600000628a20 rbp = 0x000070000e2b2150 rsp = 0x000070000e2b20d0 r8 = 0x000070000e2b2120 r9 = 0x000070000e2b2008 r10 = 0x0000000000000000 r11 = 0x0000000000000000 r12 = 0x0000000000000000 r13 = 0x00007f962fe25a68 r14 = 0x00007f962ff47030 r15 = 0x0000000000000000 rip = 0x00000001046326e3 Found by: given as instruction pointer in context 1 Electron Framework!net::SSLClientSocketImpl::VerifyCT() [ssl_client_socket_impl.cc : 1557 + 0x5] rbp = 0x000070000e2b21d0 rsp = 0x000070000e2b2160 rip = 0x000000010461e70a Found by: previous frame's frame pointer 2 Electron Framework!net::SSLClientSocketImpl::DoVerifyCertComplete(int) [ssl_client_socket_impl.cc : 1231 + 0x8] rbp = 0x000070000e2b22a0 rsp = 0x000070000e2b21e0 rip = 0x000000010461e4ab Found by: previous frame's frame pointer 3 Electron Framework!net::SSLClientSocketImpl::DoHandshakeLoop(int) [ssl_client_socket_impl.cc : 1325 + 0xb] rbp = 0x000070000e2b2300 rsp = 0x000070000e2b22b0 rip = 0x000000010461c08d Found by: previous frame's frame pointer 4 Electron Framework!net::SSLClientSocketImpl::OnHandshakeIOComplete(int) [ssl_client_socket_impl.cc : 1288 + 0x5] rbp = 0x000070000e2b2340 rsp = 0x000070000e2b2310 rip = 0x000000010461dbe5 Found by: previous frame's frame pointer 5 Electron Framework!net::CachingCertVerifier::OnRequestFinished(net::CertVerifier::RequestParams const&amp;, base::Time, base::Callback&lt;void (int), (base::internal::CopyMode)1, (base::internal::RepeatMode)1&gt; const&amp;, net::CertVerifyResult*, int) [callback.h : 80 + 0x3] rbp = 0x000070000e2b2370 rsp = 0x000070000e2b2350 rip = 0x0000000104443699 Found by: previous frame's frame pointer 6 Electron Framework!net::CertVerifierJob::OnJobCompleted(std::__1::unique_ptr&lt;net::(anonymous namespace)::ResultHelper, std::__1::default_delete&lt;net::(anonymous namespace)::ResultHelper&gt; &gt;) [callback.h : 91 + 0x7] rbp = 0x000070000e2b2400 rsp = 0x000070000e2b2380 rip = 0x0000000104530317 Found by: previous frame's frame pointer 7 Electron Framework!base::internal::Invoker&lt;base::internal::BindState&lt;void (net::CertVerifierJob::*)(std::__1::unique_ptr&lt;net::(anonymous namespace)::ResultHelper, std::__1::default_delete&lt;net::(anonymous namespace)::ResultHelper&gt; &gt;), base::WeakPtr&lt;net::CertVerifierJob&gt;, base::internal::PassedWrapper&lt;std::__1::unique_ptr&lt;net::(anonymous namespace)::ResultHelper, std::__1::default_delete&lt;net::(anonymous namespace)::ResultHelper&gt; &gt; &gt; &gt;, void ()&gt;::Run(base::internal::BindStateBase*) [bind_internal.h : 214 + 0x3] rbp = 0x000070000e2b2560 rsp = 0x000070000e2b2410 rip = 0x00000001045307ca Found by: previous frame's frame pointer 8 Electron Framework!base::(anonymous namespace)::PostTaskAndReplyRelay::RunReplyAndSelfDestruct() [callback.h : 91 + 0x3] rbp = 0x000070000e2b2590 rsp = 0x000070000e2b2570 rip = 0x0000000102d264a7 Found by: previous frame's frame pointer 9 Electron Framework!&lt;name omitted&gt; [callback.h : 91 + 0x3] rbp = 0x000070000e2b26d0 rsp = 0x000070000e2b25a0 rip = 0x0000000102d4f721 Found by: previous frame's frame pointer 10 Electron Framework!&lt;name omitted&gt; [message_loop.cc : 423 + 0xf] rbp = 0x000070000e2b27a0 rsp = 0x000070000e2b26e0 rip = 0x0000000102d17adb Found by: previous frame's frame pointer 11 Electron Framework!&lt;name omitted&gt; [message_loop.cc : 434 + 0xb] rbp = 0x000070000e2b27c0 rsp = 0x000070000e2b27b0 rip = 0x0000000102d17e2c Found by: previous frame's frame pointer 12 Electron Framework!&lt;name omitted&gt; [message_loop.cc : 527 + 0xb] rbp = 0x000070000e2b2950 rsp = 0x000070000e2b27d0 rip = 0x0000000102d181e3 Found by: previous frame's frame pointer 13 Electron Framework!&lt;name omitted&gt; [message_pump_libevent.cc : 219 + 0x9] rbp = 0x000070000e2b29c0 rsp = 0x000070000e2b2960 rip = 0x0000000102d1aa05 Found by: previous frame's frame pointer 14 Electron Framework!&lt;name omitted&gt; [message_loop.cc : 387 + 0x9] rbp = 0x000070000e2b2b10 rsp = 0x000070000e2b29d0 rip = 0x0000000102d177ae Found by: previous frame's frame pointer 15 Electron Framework!base::RunLoop::Run() [run_loop.cc : 37 + 0x5] rbp = 0x000070000e2b2ba0 rsp = 0x000070000e2b2b20 rip = 0x0000000102d308e3 Found by: previous frame's frame pointer 16 Electron Framework!&lt;name omitted&gt; [browser_thread_impl.cc : 278 + 0x5] rbp = 0x000070000e2b2cf0 rsp = 0x000070000e2b2bb0 rip = 0x0000000102fa7ce8 Found by: previous frame's frame pointer 17 Electron Framework!&lt;name omitted&gt; [browser_thread_impl.cc : 313 + 0xb] rbp = 0x000070000e2b2e50 rsp = 0x000070000e2b2d00 rip = 0x0000000102fa7e76 Found by: previous frame's frame pointer 18 Electron Framework!&lt;name omitted&gt; [thread.cc : 333 + 0xd] rbp = 0x000070000e2b2ec0 rsp = 0x000070000e2b2e60 rip = 0x0000000102d52789 Found by: previous frame's frame pointer 19 Electron Framework!base::(anonymous namespace)::ThreadFunc(void*) [platform_thread_posix.cc : 71 + 0x8] rbp = 0x000070000e2b2ef0 rsp = 0x000070000e2b2ed0 rip = 0x0000000102d257b7 Found by: previous frame's frame pointer 20 libsystem_pthread.dylib + 0x393b rbp = 0x000070000e2b2f10 rsp = 0x000070000e2b2f00 rip = 0x00007fffb828b93b Found by: previous frame's frame pointer 21 libsystem_pthread.dylib + 0x3887 rbp = 0x000070000e2b2f50 rsp = 0x000070000e2b2f20 rip = 0x00007fffb828b887 Found by: previous frame's frame pointer 22 libsystem_pthread.dylib + 0x308d rbp = 0x000070000e2b2f78 rsp = 0x000070000e2b2f60 rip = 0x00007fffb828b08d Found by: previous frame's frame pointer 23 Electron Framework + 0x25f760 rsp = 0x000070000e2b3028 rip = 0x0000000102d25760 Found by: stack scanning "><pre class="notranslate"><code class="notranslate">perating system: Mac OS X 10.12.5 16F73 CPU: amd64 family 6 model 70 stepping 1 8 CPUs GPU: UNKNOWN Crash reason: EXC_BAD_ACCESS / EXC_I386_GPFLT Crash address: 0x1046326e3 Process uptime: 6447 seconds Thread 14 (crashed) 0 Electron Framework!&lt;name omitted&gt; [transport_security_state.cc : 865 + 0x3] rax = 0xbadda3319a85bead rdx = 0x00007f962ff47030 rcx = 0x00007f962fe25a20 rbx = 0x00007f962fe25a20 rsi = 0x00007f962fe25b00 rdi = 0x0000600000628a20 rbp = 0x000070000e2b2150 rsp = 0x000070000e2b20d0 r8 = 0x000070000e2b2120 r9 = 0x000070000e2b2008 r10 = 0x0000000000000000 r11 = 0x0000000000000000 r12 = 0x0000000000000000 r13 = 0x00007f962fe25a68 r14 = 0x00007f962ff47030 r15 = 0x0000000000000000 rip = 0x00000001046326e3 Found by: given as instruction pointer in context 1 Electron Framework!net::SSLClientSocketImpl::VerifyCT() [ssl_client_socket_impl.cc : 1557 + 0x5] rbp = 0x000070000e2b21d0 rsp = 0x000070000e2b2160 rip = 0x000000010461e70a Found by: previous frame's frame pointer 2 Electron Framework!net::SSLClientSocketImpl::DoVerifyCertComplete(int) [ssl_client_socket_impl.cc : 1231 + 0x8] rbp = 0x000070000e2b22a0 rsp = 0x000070000e2b21e0 rip = 0x000000010461e4ab Found by: previous frame's frame pointer 3 Electron Framework!net::SSLClientSocketImpl::DoHandshakeLoop(int) [ssl_client_socket_impl.cc : 1325 + 0xb] rbp = 0x000070000e2b2300 rsp = 0x000070000e2b22b0 rip = 0x000000010461c08d Found by: previous frame's frame pointer 4 Electron Framework!net::SSLClientSocketImpl::OnHandshakeIOComplete(int) [ssl_client_socket_impl.cc : 1288 + 0x5] rbp = 0x000070000e2b2340 rsp = 0x000070000e2b2310 rip = 0x000000010461dbe5 Found by: previous frame's frame pointer 5 Electron Framework!net::CachingCertVerifier::OnRequestFinished(net::CertVerifier::RequestParams const&amp;, base::Time, base::Callback&lt;void (int), (base::internal::CopyMode)1, (base::internal::RepeatMode)1&gt; const&amp;, net::CertVerifyResult*, int) [callback.h : 80 + 0x3] rbp = 0x000070000e2b2370 rsp = 0x000070000e2b2350 rip = 0x0000000104443699 Found by: previous frame's frame pointer 6 Electron Framework!net::CertVerifierJob::OnJobCompleted(std::__1::unique_ptr&lt;net::(anonymous namespace)::ResultHelper, std::__1::default_delete&lt;net::(anonymous namespace)::ResultHelper&gt; &gt;) [callback.h : 91 + 0x7] rbp = 0x000070000e2b2400 rsp = 0x000070000e2b2380 rip = 0x0000000104530317 Found by: previous frame's frame pointer 7 Electron Framework!base::internal::Invoker&lt;base::internal::BindState&lt;void (net::CertVerifierJob::*)(std::__1::unique_ptr&lt;net::(anonymous namespace)::ResultHelper, std::__1::default_delete&lt;net::(anonymous namespace)::ResultHelper&gt; &gt;), base::WeakPtr&lt;net::CertVerifierJob&gt;, base::internal::PassedWrapper&lt;std::__1::unique_ptr&lt;net::(anonymous namespace)::ResultHelper, std::__1::default_delete&lt;net::(anonymous namespace)::ResultHelper&gt; &gt; &gt; &gt;, void ()&gt;::Run(base::internal::BindStateBase*) [bind_internal.h : 214 + 0x3] rbp = 0x000070000e2b2560 rsp = 0x000070000e2b2410 rip = 0x00000001045307ca Found by: previous frame's frame pointer 8 Electron Framework!base::(anonymous namespace)::PostTaskAndReplyRelay::RunReplyAndSelfDestruct() [callback.h : 91 + 0x3] rbp = 0x000070000e2b2590 rsp = 0x000070000e2b2570 rip = 0x0000000102d264a7 Found by: previous frame's frame pointer 9 Electron Framework!&lt;name omitted&gt; [callback.h : 91 + 0x3] rbp = 0x000070000e2b26d0 rsp = 0x000070000e2b25a0 rip = 0x0000000102d4f721 Found by: previous frame's frame pointer 10 Electron Framework!&lt;name omitted&gt; [message_loop.cc : 423 + 0xf] rbp = 0x000070000e2b27a0 rsp = 0x000070000e2b26e0 rip = 0x0000000102d17adb Found by: previous frame's frame pointer 11 Electron Framework!&lt;name omitted&gt; [message_loop.cc : 434 + 0xb] rbp = 0x000070000e2b27c0 rsp = 0x000070000e2b27b0 rip = 0x0000000102d17e2c Found by: previous frame's frame pointer 12 Electron Framework!&lt;name omitted&gt; [message_loop.cc : 527 + 0xb] rbp = 0x000070000e2b2950 rsp = 0x000070000e2b27d0 rip = 0x0000000102d181e3 Found by: previous frame's frame pointer 13 Electron Framework!&lt;name omitted&gt; [message_pump_libevent.cc : 219 + 0x9] rbp = 0x000070000e2b29c0 rsp = 0x000070000e2b2960 rip = 0x0000000102d1aa05 Found by: previous frame's frame pointer 14 Electron Framework!&lt;name omitted&gt; [message_loop.cc : 387 + 0x9] rbp = 0x000070000e2b2b10 rsp = 0x000070000e2b29d0 rip = 0x0000000102d177ae Found by: previous frame's frame pointer 15 Electron Framework!base::RunLoop::Run() [run_loop.cc : 37 + 0x5] rbp = 0x000070000e2b2ba0 rsp = 0x000070000e2b2b20 rip = 0x0000000102d308e3 Found by: previous frame's frame pointer 16 Electron Framework!&lt;name omitted&gt; [browser_thread_impl.cc : 278 + 0x5] rbp = 0x000070000e2b2cf0 rsp = 0x000070000e2b2bb0 rip = 0x0000000102fa7ce8 Found by: previous frame's frame pointer 17 Electron Framework!&lt;name omitted&gt; [browser_thread_impl.cc : 313 + 0xb] rbp = 0x000070000e2b2e50 rsp = 0x000070000e2b2d00 rip = 0x0000000102fa7e76 Found by: previous frame's frame pointer 18 Electron Framework!&lt;name omitted&gt; [thread.cc : 333 + 0xd] rbp = 0x000070000e2b2ec0 rsp = 0x000070000e2b2e60 rip = 0x0000000102d52789 Found by: previous frame's frame pointer 19 Electron Framework!base::(anonymous namespace)::ThreadFunc(void*) [platform_thread_posix.cc : 71 + 0x8] rbp = 0x000070000e2b2ef0 rsp = 0x000070000e2b2ed0 rip = 0x0000000102d257b7 Found by: previous frame's frame pointer 20 libsystem_pthread.dylib + 0x393b rbp = 0x000070000e2b2f10 rsp = 0x000070000e2b2f00 rip = 0x00007fffb828b93b Found by: previous frame's frame pointer 21 libsystem_pthread.dylib + 0x3887 rbp = 0x000070000e2b2f50 rsp = 0x000070000e2b2f20 rip = 0x00007fffb828b887 Found by: previous frame's frame pointer 22 libsystem_pthread.dylib + 0x308d rbp = 0x000070000e2b2f78 rsp = 0x000070000e2b2f60 rip = 0x00007fffb828b08d Found by: previous frame's frame pointer 23 Electron Framework + 0x25f760 rsp = 0x000070000e2b3028 rip = 0x0000000102d25760 Found by: stack scanning </code></pre></div>
0
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2> <p dir="auto">I am trying to have a generator load objects in the background, as in the following example. It hangs when trying to call <code class="notranslate">torch.zeros</code> in <code class="notranslate">split_loader_creator</code>, but if I remove the seemingly irrelevant line <code class="notranslate">torch.zeros(152*4, 168*4).float()</code> near the end, it seemingly can make progress. It also seems fine if I change <code class="notranslate">152*4</code> and <code class="notranslate">168*4</code> to much smaller numbers. This is on PyTorch 1.5.1, and I do not encounter the issue on 1.4.0. Am I somehow doing this multiprocessing incorrectly?</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Run the following code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import torch import multiprocessing import atexit def split_loader_creator(): for i in range(20): yield torch.zeros(10, 170, 70) def background_generator_helper(gen_creator): def _bg_gen(gen_creator, conn): gen = gen_creator() while conn.recv(): try: conn.send(next(gen)) except StopIteration: conn.send(StopIteration) return except Exception: import traceback traceback.print_exc() parent_conn, child_conn = multiprocessing.Pipe() p = multiprocessing.Process(target=_bg_gen, args=(gen_creator, child_conn)) p.start() atexit.register(p.terminate) parent_conn.send(True) while True: parent_conn.send(True) x = parent_conn.recv() if x is StopIteration: return else: yield x def background_generator(gen_creator): # get several processes in the background fetching batches in parallel to keep up with gpu generator = background_generator_helper(gen_creator) while True: batch = next(generator) if batch is StopIteration: return yield batch torch.zeros(152*4, 168*4).float() data_loader = background_generator(split_loader_creator) for i, batch in enumerate(data_loader): print(i)"><pre class="notranslate"><code class="notranslate">import torch import multiprocessing import atexit def split_loader_creator(): for i in range(20): yield torch.zeros(10, 170, 70) def background_generator_helper(gen_creator): def _bg_gen(gen_creator, conn): gen = gen_creator() while conn.recv(): try: conn.send(next(gen)) except StopIteration: conn.send(StopIteration) return except Exception: import traceback traceback.print_exc() parent_conn, child_conn = multiprocessing.Pipe() p = multiprocessing.Process(target=_bg_gen, args=(gen_creator, child_conn)) p.start() atexit.register(p.terminate) parent_conn.send(True) while True: parent_conn.send(True) x = parent_conn.recv() if x is StopIteration: return else: yield x def background_generator(gen_creator): # get several processes in the background fetching batches in parallel to keep up with gpu generator = background_generator_helper(gen_creator) while True: batch = next(generator) if batch is StopIteration: return yield batch torch.zeros(152*4, 168*4).float() data_loader = background_generator(split_loader_creator) for i, batch in enumerate(data_loader): print(i) </code></pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">I expect this script to print the first few integers, but it just hangs at <code class="notranslate">torch.zeros</code> in <code class="notranslate">split_loader_creator</code>.</p> <h2 dir="auto">Environment</h2> <ul dir="auto"> <li>PyTorch Version (e.g., 1.0): 1.5.1</li> <li>OS (e.g., Linux): Linux</li> <li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): conda</li> <li>Build command you used (if compiling from source): n/a</li> <li>Python version: 3.6.10</li> <li>CUDA/cuDNN version: 10.2 (though I think I got the issue on 10.1 as well)</li> <li>GPU models and configuration: Quadro RTX 6000 though the same bug happened for me on other GPUs as well</li> <li>Any other relevant information: I suspect it's related to PyTorch, since as mentioned before I didn't encounter the issue on PyTorch 1.4.0. The issue also occurs on 1.5.0.</li> </ul> <h2 dir="auto">Additional context</h2> <p dir="auto">Someone else also confirmed they could reproduce the issue: <a href="https://discuss.pytorch.org/t/pytorch-hangs-in-thread-after-large-torch-zeros-call-in-main-process/88484/3" rel="nofollow">https://discuss.pytorch.org/t/pytorch-hangs-in-thread-after-large-torch-zeros-call-in-main-process/88484/3</a></p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a></p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2> <p dir="auto">The following program never terminates.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import torch import torch.multiprocessing as mp def foo(): x = torch.ones((2, 50, 10)) return torch.einsum('ijl,ikl-&gt;ijk', x, x) if __name__ == '__main__': foo() p = mp.Process(target=foo) p.start() p.join()"><pre class="notranslate"><code class="notranslate">import torch import torch.multiprocessing as mp def foo(): x = torch.ones((2, 50, 10)) return torch.einsum('ijl,ikl-&gt;ijk', x, x) if __name__ == '__main__': foo() p = mp.Process(target=foo) p.start() p.join() </code></pre></div> <p dir="auto">The behavior persists if one changes the <code class="notranslate">einsum</code> inside <code class="notranslate">foo</code> with an equivalent operation (e.g., <code class="notranslate">bmm(y, y.transpose(1,2))</code>, or <code class="notranslate">(y.unsqueeze(2) * y.unsqueeze(1)).sum(3)</code>.</p> <p dir="auto">It doesn't reproduce, however, if one doesn't call <code class="notranslate">foo</code> inside the main block.</p> <h2 dir="auto">Environment</h2> <p dir="auto">PyTorch version: 1.0.1.post2<br> Is debug build: No<br> CUDA used to build PyTorch: 9.0.176</p> <p dir="auto">OS: Arch Linux<br> GCC version: (GCC) 8.2.1 20181127<br> CMake version: version 3.13.4</p> <p dir="auto">Python version: 3.7<br> Is CUDA available: No<br> CUDA runtime version: No CUDA<br> GPU models and configuration: No CUDA<br> Nvidia driver version: No CUDA<br> cuDNN version: No CUDA</p> <h2 dir="auto">Additional context</h2> <p dir="auto">Perhaps related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="246557874" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/2245" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/2245/hovercard" href="https://github.com/pytorch/pytorch/issues/2245">#2245</a>.</p>
1
<p dir="auto">As shown in the example below, when passing in two series with the same name to <code class="notranslate">concat</code> you end up with duplicates of the last series passed in.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [42]: pd.__version__ Out[42]: '0.10.1' In [43]: dates = pd.date_range('01-Jan-2013','01-Dec-2013', freq='MS') ...: L = pd.TimeSeries('L', dates, name='LeftRight') ...: R = pd.TimeSeries('R', dates, name='LeftRight') ...: In [44]: L Out[44]: 2013-01-01 L 2013-02-01 L 2013-03-01 L 2013-04-01 L 2013-05-01 L 2013-06-01 L 2013-07-01 L 2013-08-01 L 2013-09-01 L 2013-10-01 L 2013-11-01 L 2013-12-01 L Freq: MS, Name: LeftRight In [45]: R Out[45]: 2013-01-01 R 2013-02-01 R 2013-03-01 R 2013-04-01 R 2013-05-01 R 2013-06-01 R 2013-07-01 R 2013-08-01 R 2013-09-01 R 2013-10-01 R 2013-11-01 R 2013-12-01 R Freq: MS, Name: LeftRight In [46]: pd.concat([L,R], axis=1) Out[46]: LeftRight LeftRight 2013-01-01 R R 2013-02-01 R R 2013-03-01 R R 2013-04-01 R R 2013-05-01 R R 2013-06-01 R R 2013-07-01 R R 2013-08-01 R R 2013-09-01 R R 2013-10-01 R R 2013-11-01 R R 2013-12-01 R R In [47]: pd.concat([L,R], axis=1, keys=['Left','Right']) Out[47]: Left Right 2013-01-01 L R 2013-02-01 L R 2013-03-01 L R 2013-04-01 L R 2013-05-01 L R 2013-06-01 L R 2013-07-01 L R 2013-08-01 L R 2013-09-01 L R 2013-10-01 L R 2013-11-01 L R 2013-12-01 L R "><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">42</span>]: <span class="pl-s1">pd</span>.<span class="pl-s1">__version__</span> <span class="pl-v">Out</span>[<span class="pl-c1">42</span>]: <span class="pl-s">'0.10.1'</span> <span class="pl-v">In</span> [<span class="pl-c1">43</span>]: <span class="pl-s1">dates</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">date_range</span>(<span class="pl-s">'01-Jan-2013'</span>,<span class="pl-s">'01-Dec-2013'</span>, <span class="pl-s1">freq</span><span class="pl-c1">=</span><span class="pl-s">'MS'</span>) ...: <span class="pl-v">L</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">TimeSeries</span>(<span class="pl-s">'L'</span>, <span class="pl-s1">dates</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'LeftRight'</span>) ...: <span class="pl-v">R</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">TimeSeries</span>(<span class="pl-s">'R'</span>, <span class="pl-s1">dates</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'LeftRight'</span>) ...: <span class="pl-v">In</span> [<span class="pl-c1">44</span>]: <span class="pl-v">L</span> <span class="pl-v">Out</span>[<span class="pl-c1">44</span>]: <span class="pl-c1">2013</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">L</span> <span class="pl-c1">2013</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">L</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">03</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">L</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">04</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">L</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">05</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">L</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">06</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">L</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">L</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">08</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">L</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">09</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">L</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">L</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">11</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">L</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">12</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">L</span> <span class="pl-v">Freq</span>: <span class="pl-v">MS</span>, <span class="pl-v">Name</span>: <span class="pl-v">LeftRight</span> <span class="pl-v">In</span> [<span class="pl-c1">45</span>]: <span class="pl-v">R</span> <span class="pl-v">Out</span>[<span class="pl-c1">45</span>]: <span class="pl-c1">2013</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">R</span> <span class="pl-c1">2013</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">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">03</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">04</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">05</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">06</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">08</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">09</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">11</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">12</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">R</span> <span class="pl-v">Freq</span>: <span class="pl-v">MS</span>, <span class="pl-v">Name</span>: <span class="pl-v">LeftRight</span> <span class="pl-v">In</span> [<span class="pl-c1">46</span>]: <span class="pl-s1">pd</span>.<span class="pl-en">concat</span>([<span class="pl-v">L</span>,<span class="pl-v">R</span>], <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>) <span class="pl-v">Out</span>[<span class="pl-c1">46</span>]: <span class="pl-v">LeftRight</span> <span class="pl-v">LeftRight</span> <span class="pl-c1">2013</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">R</span> <span class="pl-v">R</span> <span class="pl-c1">2013</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">R</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">03</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">R</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">04</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">R</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">05</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">R</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">06</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">R</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">R</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">08</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">R</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">09</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">R</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">R</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">11</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">R</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">12</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">R</span> <span class="pl-v">R</span> <span class="pl-v">In</span> [<span class="pl-c1">47</span>]: <span class="pl-s1">pd</span>.<span class="pl-en">concat</span>([<span class="pl-v">L</span>,<span class="pl-v">R</span>], <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">keys</span><span class="pl-c1">=</span>[<span class="pl-s">'Left'</span>,<span class="pl-s">'Right'</span>]) <span class="pl-v">Out</span>[<span class="pl-c1">47</span>]: <span class="pl-v">Left</span> <span class="pl-v">Right</span> <span class="pl-c1">2013</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">L</span> <span class="pl-v">R</span> <span class="pl-c1">2013</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">L</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">03</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">L</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">04</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">L</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">05</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">L</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">06</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">L</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">L</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">08</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">L</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">09</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">L</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">L</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">11</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">L</span> <span class="pl-v">R</span> <span class="pl-c1">2013</span><span class="pl-c1">-</span><span class="pl-c1">12</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-v">L</span> <span class="pl-v">R</span></pre></div>
<p dir="auto">Motivating from <a href="http://stackoverflow.com/questions/26762100/reconstruct-a-categorical-variable-from-dummies-in-pandas" rel="nofollow">SO</a></p> <p dir="auto">This is the inverse of <code class="notranslate">pd.get_dummies</code>. So maybe <code class="notranslate">invert_dummies</code> is better?<br> I think this name makes more sense though.</p> <p dir="auto">This seems a reasonable way to do it. Am I missing anything?</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [46]: s = Series(list('aaabbbccddefgh')).astype('category') In [47]: s Out[47]: 0 a 1 a 2 a 3 b 4 b 5 b 6 c 7 c 8 d 9 d 10 e 11 f 12 g 13 h dtype: category Categories (8, object): [a &lt; b &lt; c &lt; d &lt; e &lt; f &lt; g &lt; h] In [48]: df = pd.get_dummies(s) In [49]: df Out[49]: a b c d e f g h 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 2 1 0 0 0 0 0 0 0 3 0 1 0 0 0 0 0 0 4 0 1 0 0 0 0 0 0 5 0 1 0 0 0 0 0 0 6 0 0 1 0 0 0 0 0 7 0 0 1 0 0 0 0 0 8 0 0 0 1 0 0 0 0 9 0 0 0 1 0 0 0 0 10 0 0 0 0 1 0 0 0 11 0 0 0 0 0 1 0 0 12 0 0 0 0 0 0 1 0 13 0 0 0 0 0 0 0 1 In [50]: x = df.stack() # I don't think you actually need to specify ALL of the categories here, as by definition # they are in the dummy matrix to start (and hence the column index) In [51]: Series(pd.Categorical(x[x!=0].index.get_level_values(1))) Out[51]: 0 a 1 a 2 a 3 b 4 b 5 b 6 c 7 c 8 d 9 d 10 e 11 f 12 g 13 h Name: level_1, dtype: category Categories (8, object): [a &lt; b &lt; c &lt; d &lt; e &lt; f &lt; g &lt; h]"><pre class="notranslate"><code class="notranslate">In [46]: s = Series(list('aaabbbccddefgh')).astype('category') In [47]: s Out[47]: 0 a 1 a 2 a 3 b 4 b 5 b 6 c 7 c 8 d 9 d 10 e 11 f 12 g 13 h dtype: category Categories (8, object): [a &lt; b &lt; c &lt; d &lt; e &lt; f &lt; g &lt; h] In [48]: df = pd.get_dummies(s) In [49]: df Out[49]: a b c d e f g h 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 2 1 0 0 0 0 0 0 0 3 0 1 0 0 0 0 0 0 4 0 1 0 0 0 0 0 0 5 0 1 0 0 0 0 0 0 6 0 0 1 0 0 0 0 0 7 0 0 1 0 0 0 0 0 8 0 0 0 1 0 0 0 0 9 0 0 0 1 0 0 0 0 10 0 0 0 0 1 0 0 0 11 0 0 0 0 0 1 0 0 12 0 0 0 0 0 0 1 0 13 0 0 0 0 0 0 0 1 In [50]: x = df.stack() # I don't think you actually need to specify ALL of the categories here, as by definition # they are in the dummy matrix to start (and hence the column index) In [51]: Series(pd.Categorical(x[x!=0].index.get_level_values(1))) Out[51]: 0 a 1 a 2 a 3 b 4 b 5 b 6 c 7 c 8 d 9 d 10 e 11 f 12 g 13 h Name: level_1, dtype: category Categories (8, object): [a &lt; b &lt; c &lt; d &lt; e &lt; f &lt; g &lt; h] </code></pre></div> <p dir="auto">NB. this is buggy ATM.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [51]: Series(pd.Categorical(x[x!=0].index.get_level_values(1)),categories=df.categories)"><pre class="notranslate"><code class="notranslate">In [51]: Series(pd.Categorical(x[x!=0].index.get_level_values(1)),categories=df.categories) </code></pre></div>
0
<p dir="auto">When calling <code class="notranslate">self.replace()</code> with a signature reconstructed from a serialized dictionary (e.g. after having been passed through a backend), if that signature is (or contains) a group which itself contains a chord, celery explodes after attempting to treat deeply nested dictionaries as signature objects. See below for a minimal repro I got together today.</p> <p dir="auto">My gut feel is that instantiating a signature from a dictionary may not be recursing down through the structure far enough and it leaves some of the encapsulated tasks as dicts. I've also noticed that groups containing a group also break in the same way, but I think that's because there's an internal promotion to a chord happening somewhere.</p> <h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" 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><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="226172436" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/4015" data-hovercard-type="pull_request" data-hovercard-url="/celery/celery/pull/4015/hovercard" href="https://github.com/celery/celery/pull/4015">#4015</a></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>: N/A or Unknown</li> <li><strong>Minimal Celery Version</strong>: N/A or Unknown</li> <li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="amqp==5.0.1 billiard==3.6.3.0 # Editable install with no version control (celery==5.0.0rc3) -e /home/maybe/tmp/capp/venv/lib/python3.8/site-packages click==7.1.2 click-didyoumean==0.0.3 click-repl==0.1.6 future==0.18.2 kombu==5.0.2 prompt-toolkit==3.0.7 pytz==2020.1 redis==3.5.3 six==1.15.0 vine==5.0.0 wcwidth==0.2.5"><pre class="notranslate"><code class="notranslate">amqp==5.0.1 billiard==3.6.3.0 # Editable install with no version control (celery==5.0.0rc3) -e /home/maybe/tmp/capp/venv/lib/python3.8/site-packages click==7.1.2 click-didyoumean==0.0.3 click-repl==0.1.6 future==0.18.2 kombu==5.0.2 prompt-toolkit==3.0.7 pytz==2020.1 redis==3.5.3 six==1.15.0 vine==5.0.0 wcwidth==0.2.5 </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="import celery app = celery.Celery(&quot;app&quot;, backend=&quot;redis://&quot;) @app.task def foo(*_): return 42 @app.task(bind=True) def replace_with(self, sig): assert isinstance(sig, dict) sig = celery.Signature.from_dict(sig) raise self.replace(sig) if __name__ == &quot;__main__&quot;: sig = celery.group( celery.group(foo.s()), ) res = sig.delay() print(res.get()) sig.freeze() res = replace_with.delay(sig) print(res.get())"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">celery</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-s1">celery</span>.<span class="pl-v">Celery</span>(<span class="pl-s">"app"</span>, <span class="pl-s1">backend</span><span class="pl-c1">=</span><span class="pl-s">"redis://"</span>) <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-s1">task</span></span> <span class="pl-k">def</span> <span class="pl-en">foo</span>(<span class="pl-c1">*</span><span class="pl-s1">_</span>): <span class="pl-k">return</span> <span class="pl-c1">42</span> <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">task</span>(<span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</span> <span class="pl-k">def</span> <span class="pl-en">replace_with</span>(<span class="pl-s1">self</span>, <span class="pl-s1">sig</span>): <span class="pl-k">assert</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">sig</span>, <span class="pl-s1">dict</span>) <span class="pl-s1">sig</span> <span class="pl-c1">=</span> <span class="pl-s1">celery</span>.<span class="pl-v">Signature</span>.<span class="pl-en">from_dict</span>(<span class="pl-s1">sig</span>) <span class="pl-k">raise</span> <span class="pl-s1">self</span>.<span class="pl-en">replace</span>(<span class="pl-s1">sig</span>) <span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">"__main__"</span>: <span class="pl-s1">sig</span> <span class="pl-c1">=</span> <span class="pl-s1">celery</span>.<span class="pl-en">group</span>( <span class="pl-s1">celery</span>.<span class="pl-en">group</span>(<span class="pl-s1">foo</span>.<span class="pl-en">s</span>()), ) <span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-s1">sig</span>.<span class="pl-en">delay</span>() <span class="pl-en">print</span>(<span class="pl-s1">res</span>.<span class="pl-en">get</span>()) <span class="pl-s1">sig</span>.<span class="pl-en">freeze</span>() <span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-s1">replace_with</span>.<span class="pl-en">delay</span>(<span class="pl-s1">sig</span>) <span class="pl-en">print</span>(<span class="pl-s1">res</span>.<span class="pl-en">get</span>())</pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">It shouldn't explode. Presumably tasks within the group/chord should be signatures rather than dicts.</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">Stack trace in the worker output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2020-09-08 12:44:05,453: DEBUG/MainProcess] Task accepted: app.replace_with[dcea02fd-23a3-404a-9fdd-b213eb51c0d1] pid:453431 [2020-09-08 12:44:05,457: ERROR/ForkPoolWorker-8] Task app.replace_with[dcea02fd-23a3-404a-9fdd-b213eb51c0d1] raised unexpected: AttributeError(&quot;'dict' object has no attribute '_app'&quot;) Traceback (most recent call last): File &quot;/home/maybe/tmp/capp/venv/lib64/python3.8/site-packages/kombu/utils/objects.py&quot;, line 41, in __get__ return obj.__dict__[self.__name__] KeyError: 'app' During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;/home/maybe/tmp/capp/venv/lib64/python3.8/site-packages/celery/app/trace.py&quot;, line 409, in trace_task R = retval = fun(*args, **kwargs) File &quot;/home/maybe/tmp/capp/venv/lib64/python3.8/site-packages/celery/app/trace.py&quot;, line 701, in __protected_call__ return self.run(*args, **kwargs) File &quot;/home/maybe/tmp/capp/app.py&quot;, line 13, in replace_with raise self.replace(sig) File &quot;/home/maybe/tmp/capp/venv/lib64/python3.8/site-packages/celery/app/task.py&quot;, line 894, in replace sig.freeze(self.request.id) File &quot;/home/maybe/tmp/capp/venv/lib64/python3.8/site-packages/celery/canvas.py&quot;, line 1302, in freeze self.tasks = group(self.tasks, app=self.app) File &quot;/home/maybe/tmp/capp/venv/lib64/python3.8/site-packages/kombu/utils/objects.py&quot;, line 43, in __get__ value = obj.__dict__[self.__name__] = self.__get(obj) File &quot;/home/maybe/tmp/capp/venv/lib64/python3.8/site-packages/celery/canvas.py&quot;, line 1456, in app return self._get_app(self.body) File &quot;/home/maybe/tmp/capp/venv/lib64/python3.8/site-packages/celery/canvas.py&quot;, line 1466, in _get_app app = tasks[0]._app AttributeError: 'dict' object has no attribute '_app'"><pre class="notranslate"><code class="notranslate">[2020-09-08 12:44:05,453: DEBUG/MainProcess] Task accepted: app.replace_with[dcea02fd-23a3-404a-9fdd-b213eb51c0d1] pid:453431 [2020-09-08 12:44:05,457: ERROR/ForkPoolWorker-8] Task app.replace_with[dcea02fd-23a3-404a-9fdd-b213eb51c0d1] raised unexpected: AttributeError("'dict' object has no attribute '_app'") Traceback (most recent call last): File "/home/maybe/tmp/capp/venv/lib64/python3.8/site-packages/kombu/utils/objects.py", line 41, in __get__ return obj.__dict__[self.__name__] KeyError: 'app' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/maybe/tmp/capp/venv/lib64/python3.8/site-packages/celery/app/trace.py", line 409, in trace_task R = retval = fun(*args, **kwargs) File "/home/maybe/tmp/capp/venv/lib64/python3.8/site-packages/celery/app/trace.py", line 701, in __protected_call__ return self.run(*args, **kwargs) File "/home/maybe/tmp/capp/app.py", line 13, in replace_with raise self.replace(sig) File "/home/maybe/tmp/capp/venv/lib64/python3.8/site-packages/celery/app/task.py", line 894, in replace sig.freeze(self.request.id) File "/home/maybe/tmp/capp/venv/lib64/python3.8/site-packages/celery/canvas.py", line 1302, in freeze self.tasks = group(self.tasks, app=self.app) File "/home/maybe/tmp/capp/venv/lib64/python3.8/site-packages/kombu/utils/objects.py", line 43, in __get__ value = obj.__dict__[self.__name__] = self.__get(obj) File "/home/maybe/tmp/capp/venv/lib64/python3.8/site-packages/celery/canvas.py", line 1456, in app return self._get_app(self.body) File "/home/maybe/tmp/capp/venv/lib64/python3.8/site-packages/celery/canvas.py", line 1466, in _get_app app = tasks[0]._app AttributeError: 'dict' object has no attribute '_app' </code></pre></div>
<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" checked=""> 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"> 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" checked=""> 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" checked=""> 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" checked=""> 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">5.0.5 (singularity):</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -&gt; celery:5.0.5 (singularity) kombu:5.0.2 py:3.8.5 billiard:3.6.4.0 py-amqp:5.0.6 platform -&gt; system:Linux arch:64bit, ELF kernel version:5.8.0-48-generic imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:pyamqp results:redis://localhost/ broker_url: 'amqp://guest:********@localhost:5672//' result_backend: 'redis://localhost/' deprecated_settings: None"><pre class="notranslate"><code class="notranslate">software -&gt; celery:5.0.5 (singularity) kombu:5.0.2 py:3.8.5 billiard:3.6.4.0 py-amqp:5.0.6 platform -&gt; system:Linux arch:64bit, ELF kernel version:5.8.0-48-generic imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:pyamqp results:redis://localhost/ broker_url: 'amqp://guest:********@localhost:5672//' result_backend: 'redis://localhost/' deprecated_settings: None </code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: N/A or Unknown</li> <li><strong>Minimal Celery Version</strong>: N/A or Unknown</li> <li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="aiohttp==3.7.4.post0 aiohttp-cors==0.7.0 aioredis==1.3.1 amqp==5.0.6 anykeystore==0.2 apex==0.9.10.dev0 argh==0.26.2 argon2-cffi==20.1.0 astroid==2.4.2 async-generator==1.10 async-timeout==3.0.1 attrs==20.2.0 axial-positional-embedding==0.2.1 backcall==0.2.0 billiard==3.6.4.0 bleach==3.2.1 blessings==1.7 cachetools==4.2.1 celery==5.0.5 certifi==2020.6.20 cffi==1.14.3 chardet==3.0.4 click==7.1.2 click-default-group==1.2.2 click-didyoumean==0.0.3 click-plugins==1.1.1 click-repl==0.1.6 cloudpickle==1.6.0 colorama==0.4.4 colorful==0.5.4 contrastive-learner==0.1.0 cryptacular==1.5.5 cycler==0.10.0 dask==2021.4.0 db-to-sqlite==1.3 decorator==4.4.2 defusedxml==0.6.0 dlib==19.21.0 dnspython==1.16.0 entrypoints==0.3 eventlet==0.30.2 face-recognition==1.3.0 face-recognition-models==0.3.0 filelock==3.0.12 fire==0.3.1 Flask==1.1.2 Flask-Resize==2.0.4 fsspec==0.9.0 future==0.18.2 gevent==21.1.2 google-api-core==1.26.3 google-auth==1.29.0 google-images-download==2.8.0 googleapis-common-protos==1.53.0 gpustat==0.6.0 greenlet==1.0.0 grpcio==1.37.0 hiredis==2.0.0 hupper==1.10.2 idna==2.10 imageio==2.9.0 imutils==0.5.3 ipdb==0.13.4 ipykernel==5.3.4 ipython==7.18.1 ipython-genutils==0.2.0 ipywidgets==7.5.1 isort==5.6.4 itsdangerous==1.1.0 jedi==0.17.2 Jinja2==2.11.2 json5==0.9.5 jsonschema==3.2.0 jupyter-client==6.1.7 jupyter-core==4.6.3 jupyterlab==2.2.8 jupyterlab-pygments==0.1.2 jupyterlab-server==1.2.0 kiwisolver==1.2.0 kombu==5.0.2 kornia==0.4.1 lazy-object-proxy==1.4.3 linear-attention-transformer==0.14.1 linformer==0.2.0 local-attention==1.0.2 locket==0.2.1 lxml==4.6.2 MarkupSafe==1.1.1 matplotlib==3.3.2 mccabe==0.6.1 mistune==0.8.4 modin==0.9.1 msgpack==1.0.2 multidict==5.1.0 nbclient==0.5.0 nbconvert==6.0.7 nbformat==5.0.7 nest-asyncio==1.4.1 networkx==2.5 notebook==6.1.4 numpy==1.19.2 nvidia-ml-py3==7.352.0 oauthlib==3.1.0 opencensus==0.7.12 opencensus-context==0.1.2 opencv-python==4.4.0.46 packaging==20.4 pandas==1.1.3 pandocfilters==1.4.2 parso==0.7.1 partd==1.2.0 PasteDeploy==2.1.1 pbkdf2==1.3 pexpect==4.8.0 pickleshare==0.7.5 pika==1.2.0 pilkit==2.0 Pillow==7.2.0 plaster==1.0 plaster-pastedeploy==0.7 product-key-memory==0.1.10 prometheus-client==0.8.0 prompt-toolkit==3.0.8 protobuf==3.15.8 psutil==5.8.0 psycopg2==2.8.6 ptyprocess==0.6.0 py==1.9.0 py-spy==0.3.5 pyarrow==1.0.0 pyasn1==0.4.8 pyasn1-modules==0.2.8 pycparser==2.20 Pygments==2.7.1 pylint==2.6.0 pyparsing==2.4.7 pyramid==1.10.4 pyramid-mailer==0.15.1 pyrsistent==0.17.3 python-dateutil==2.8.1 python3-openid==3.2.0 pytorch-fid==0.1.1 pytz==2020.1 PyWavelets==1.1.1 pywikibot==5.6.0 PyYAML==5.4.1 pyzmq==19.0.2 ray==1.1.0 redis==3.5.3 repoze.sendmail==4.4.1 requests==2.24.0 requests-oauthlib==1.3.0 retry==0.9.2 rsa==4.7.2 scikit-image==0.18.1 scipy==1.5.3 selenium==3.141.0 Send2Trash==1.5.0 six==1.15.0 SQLAlchemy==1.3.20 sqlite-fts4==1.0.1 sqlite-utils==3.6 swifter==1.0.7 tabulate==0.8.9 termcolor==1.1.0 terminado==0.9.1 testpath==0.4.4 tifffile==2021.3.5 toml==0.10.1 toolz==0.11.1 torch==1.6.0 torchvision==0.7.0 tornado==6.0.4 tqdm==4.50.2 traitlets==5.0.4 transaction==3.0.0 translationstring==1.4 typing-extensions==3.7.4.3 urllib3==1.25.10 vector-quantize-pytorch==0.1.0 velruse==1.1.1 venusian==3.0.0 vine==5.0.0 wcwidth==0.2.5 webencodings==0.5.1 WebOb==1.8.6 Werkzeug==1.0.1 widgetsnbextension==3.5.1 wrapt==1.12.1 WTForms==2.3.3 wtforms-recaptcha==0.3.2 yarl==1.6.3 zope.deprecation==4.4.0 zope.event==4.5.0 zope.interface==5.1.2 zope.sqlalchemy==1.3 "><pre class="notranslate"><code class="notranslate">aiohttp==3.7.4.post0 aiohttp-cors==0.7.0 aioredis==1.3.1 amqp==5.0.6 anykeystore==0.2 apex==0.9.10.dev0 argh==0.26.2 argon2-cffi==20.1.0 astroid==2.4.2 async-generator==1.10 async-timeout==3.0.1 attrs==20.2.0 axial-positional-embedding==0.2.1 backcall==0.2.0 billiard==3.6.4.0 bleach==3.2.1 blessings==1.7 cachetools==4.2.1 celery==5.0.5 certifi==2020.6.20 cffi==1.14.3 chardet==3.0.4 click==7.1.2 click-default-group==1.2.2 click-didyoumean==0.0.3 click-plugins==1.1.1 click-repl==0.1.6 cloudpickle==1.6.0 colorama==0.4.4 colorful==0.5.4 contrastive-learner==0.1.0 cryptacular==1.5.5 cycler==0.10.0 dask==2021.4.0 db-to-sqlite==1.3 decorator==4.4.2 defusedxml==0.6.0 dlib==19.21.0 dnspython==1.16.0 entrypoints==0.3 eventlet==0.30.2 face-recognition==1.3.0 face-recognition-models==0.3.0 filelock==3.0.12 fire==0.3.1 Flask==1.1.2 Flask-Resize==2.0.4 fsspec==0.9.0 future==0.18.2 gevent==21.1.2 google-api-core==1.26.3 google-auth==1.29.0 google-images-download==2.8.0 googleapis-common-protos==1.53.0 gpustat==0.6.0 greenlet==1.0.0 grpcio==1.37.0 hiredis==2.0.0 hupper==1.10.2 idna==2.10 imageio==2.9.0 imutils==0.5.3 ipdb==0.13.4 ipykernel==5.3.4 ipython==7.18.1 ipython-genutils==0.2.0 ipywidgets==7.5.1 isort==5.6.4 itsdangerous==1.1.0 jedi==0.17.2 Jinja2==2.11.2 json5==0.9.5 jsonschema==3.2.0 jupyter-client==6.1.7 jupyter-core==4.6.3 jupyterlab==2.2.8 jupyterlab-pygments==0.1.2 jupyterlab-server==1.2.0 kiwisolver==1.2.0 kombu==5.0.2 kornia==0.4.1 lazy-object-proxy==1.4.3 linear-attention-transformer==0.14.1 linformer==0.2.0 local-attention==1.0.2 locket==0.2.1 lxml==4.6.2 MarkupSafe==1.1.1 matplotlib==3.3.2 mccabe==0.6.1 mistune==0.8.4 modin==0.9.1 msgpack==1.0.2 multidict==5.1.0 nbclient==0.5.0 nbconvert==6.0.7 nbformat==5.0.7 nest-asyncio==1.4.1 networkx==2.5 notebook==6.1.4 numpy==1.19.2 nvidia-ml-py3==7.352.0 oauthlib==3.1.0 opencensus==0.7.12 opencensus-context==0.1.2 opencv-python==4.4.0.46 packaging==20.4 pandas==1.1.3 pandocfilters==1.4.2 parso==0.7.1 partd==1.2.0 PasteDeploy==2.1.1 pbkdf2==1.3 pexpect==4.8.0 pickleshare==0.7.5 pika==1.2.0 pilkit==2.0 Pillow==7.2.0 plaster==1.0 plaster-pastedeploy==0.7 product-key-memory==0.1.10 prometheus-client==0.8.0 prompt-toolkit==3.0.8 protobuf==3.15.8 psutil==5.8.0 psycopg2==2.8.6 ptyprocess==0.6.0 py==1.9.0 py-spy==0.3.5 pyarrow==1.0.0 pyasn1==0.4.8 pyasn1-modules==0.2.8 pycparser==2.20 Pygments==2.7.1 pylint==2.6.0 pyparsing==2.4.7 pyramid==1.10.4 pyramid-mailer==0.15.1 pyrsistent==0.17.3 python-dateutil==2.8.1 python3-openid==3.2.0 pytorch-fid==0.1.1 pytz==2020.1 PyWavelets==1.1.1 pywikibot==5.6.0 PyYAML==5.4.1 pyzmq==19.0.2 ray==1.1.0 redis==3.5.3 repoze.sendmail==4.4.1 requests==2.24.0 requests-oauthlib==1.3.0 retry==0.9.2 rsa==4.7.2 scikit-image==0.18.1 scipy==1.5.3 selenium==3.141.0 Send2Trash==1.5.0 six==1.15.0 SQLAlchemy==1.3.20 sqlite-fts4==1.0.1 sqlite-utils==3.6 swifter==1.0.7 tabulate==0.8.9 termcolor==1.1.0 terminado==0.9.1 testpath==0.4.4 tifffile==2021.3.5 toml==0.10.1 toolz==0.11.1 torch==1.6.0 torchvision==0.7.0 tornado==6.0.4 tqdm==4.50.2 traitlets==5.0.4 transaction==3.0.0 translationstring==1.4 typing-extensions==3.7.4.3 urllib3==1.25.10 vector-quantize-pytorch==0.1.0 velruse==1.1.1 venusian==3.0.0 vine==5.0.0 wcwidth==0.2.5 webencodings==0.5.1 WebOb==1.8.6 Werkzeug==1.0.1 widgetsnbextension==3.5.1 wrapt==1.12.1 WTForms==2.3.3 wtforms-recaptcha==0.3.2 yarl==1.6.3 zope.deprecation==4.4.0 zope.event==4.5.0 zope.interface==5.1.2 zope.sqlalchemy==1.3 </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="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from celery import Celery from celery.execute import send_task #random_name = Celery('tasks', backend='redis://localhost', broker='pyamqp://') r1 = send_task('tasks.add',(1,1)) print(r1.get())"><pre class="notranslate"><code class="notranslate">from celery import Celery from celery.execute import send_task #random_name = Celery('tasks', backend='redis://localhost', broker='pyamqp://') r1 = send_task('tasks.add',(1,1)) print(r1.get()) </code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">2 printed to the screen without uncommenting the line #random_name<br> (it makes no sense for this line to have any effect on the program)</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">"No result backend" Exception, unless the only commented out line is uncommented.</p> <p dir="auto">Accompanying file:</p> <p dir="auto">tasks.py</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from celery import Celery app = Celery('tasks', backend='redis://localhost', broker='pyamqp://') @app.task def add(x, y): return x + y ``"><pre class="notranslate"><code class="notranslate">from celery import Celery app = Celery('tasks', backend='redis://localhost', broker='pyamqp://') @app.task def add(x, y): return x + y `` </code></pre></div>
0
<p dir="auto">Just cloned the rust0.6 from today.<br> And build it on Ubuntu 12.10 x86_64<br> when I run rusti and enter 1+1 ,it happens Segmentation fault .</p> <p dir="auto">Here som gdb log:<br> GNU gdb (GDB) 7.5-ubuntu<br> Copyright (C) 2012 Free Software Foundation, Inc.<br> License GPLv3+: GNU GPL version 3 or later <a href="http://gnu.org/licenses/gpl.html" rel="nofollow">http://gnu.org/licenses/gpl.html</a><br> This is free software: you are free to change and redistribute it.<br> There is NO WARRANTY, to the extent permitted by law. Type "show copying"<br> and "show warranty" for details.<br> This GDB was configured as "x86_64-linux-gnu".<br> For bug reporting instructions, please see:<br> <a href="http://www.gnu.org/software/gdb/bugs/" rel="nofollow">http://www.gnu.org/software/gdb/bugs/</a>...<br> Reading symbols from /usr/local/bin/rusti...(no debugging symbols found)...done.<br> [New LWP 5883]<br> [New LWP 5884]<br> [New LWP 5881]<br> [New LWP 5880]<br> [New LWP 5882]</p> <p dir="auto">warning: Can't read pathname for load map: 输入/输出错误.<br> [Thread debugging using libthread_db enabled]<br> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".<br> Core was generated by `rusti'.<br> Program terminated with signal 11, Segmentation fault.<br> #0 0x00007f9d32f69018 in ?? () from /lib64/ld-linux-x86-64.so.2</p> <p dir="auto">(gdb) bt full<br> #0 0x00007f9d32f69018 in ?? () from /lib64/ld-linux-x86-64.so.2</p> <p dir="auto">No symbol table info available.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="227519" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/1" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/1/hovercard" href="https://github.com/rust-lang/rust/issues/1">#1</a> 0x00007f9d32f6b63d in ?? () from /lib64/ld-linux-x86-64.so.2</p> <p dir="auto">No symbol table info available.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228601" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/2" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/2/hovercard" href="https://github.com/rust-lang/rust/issues/2">#2</a> 0x00007f9d32f7685b in ?? () from /lib64/ld-linux-x86-64.so.2</p> <p dir="auto">No symbol table info available.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228607" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/3" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/3/hovercard" href="https://github.com/rust-lang/rust/issues/3">#3</a> 0x00007f9d32f72186 in ?? () from /lib64/ld-linux-x86-64.so.2</p> <p dir="auto">No symbol table info available.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228626" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/4" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/4/hovercard" href="https://github.com/rust-lang/rust/issues/4">#4</a> 0x00007f9d32f7632a in ?? () from /lib64/ld-linux-x86-64.so.2</p> <p dir="auto">No symbol table info available.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228628" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/5" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/5/hovercard" href="https://github.com/rust-lang/rust/issues/5">#5</a> 0x00007f9d30710f26 in ?? () from /lib/x86_64-linux-gnu/libdl.so.2</p> <p dir="auto">No symbol table info available.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228638" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/6" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/6/hovercard" href="https://github.com/rust-lang/rust/issues/6">#6</a> 0x00007f9d32f72186 in ?? () from /lib64/ld-linux-x86-64.so.2</p> <p dir="auto">No symbol table info available.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228641" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/7" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/7/hovercard" href="https://github.com/rust-lang/rust/issues/7">#7</a> 0x00007f9d3071152f in ?? () from /lib/x86_64-linux-gnu/libdl.so.2</p> <p dir="auto">No symbol table info available.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228645" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/8" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/8/hovercard" href="https://github.com/rust-lang/rust/issues/8">#8</a> 0x00007f9d30710fc1 in dlopen () from /lib/x86_64-linux-gnu/libdl.so.2</p> <p dir="auto">No symbol table info available.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228646" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/9" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/9/hovercard" href="https://github.com/rust-lang/rust/issues/9">#9</a> 0x00007f9d2fc8cd1a in llvm::sys::DynamicLibrary::getPermanentLibrary(char const_, std::string_) () from /usr/local/bin/../lib/./librustllvm.so</p> <p dir="auto">No symbol table info available.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228647" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/10" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/10/hovercard" href="https://github.com/rust-lang/rust/issues/10">#10</a> 0x00007f9d2f233d0c in RustMCJITMemoryManager::loadCrate (</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="this=0x7f9d205a3020, file=&lt;optimized out&gt;, err=err@entry=0x7f9d201008a0)"><pre class="notranslate"><code class="notranslate">this=0x7f9d205a3020, file=&lt;optimized out&gt;, err=err@entry=0x7f9d201008a0) </code></pre></div> <p dir="auto">---Type to continue, or q to quit---<br> at /usr/local/src/rust/src/rustllvm/RustWrapper.cpp:197<br> crate = {static Invalid = 0 '\000', Data = 0x7f9d2f0a7878}<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228649" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/11" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/11/hovercard" href="https://github.com/rust-lang/rust/issues/11">#11</a> 0x00007f9d2f234587 in LLVMRustLoadCrate (mem=,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="crate=&lt;optimized out&gt;) at /usr/local/src/rust/src/rustllvm/RustWrapper.cpp:328 manager = &lt;optimized out&gt; Err = {static npos = &lt;optimized out&gt;, _M_dataplus = {&lt;std::allocator&lt;char&gt;&gt; = {&lt;__gnu_cxx::new_allocator&lt;char&gt;&gt; = {&lt;No data fields&gt;}, &lt;No data fields&gt;}, _M_p = 0x7f9d2ee404d8 &quot;&quot;}} __PRETTY_FUNCTION__ = &quot;bool LLVMRustLoadCrate(void*, const char*)&quot;"><pre class="notranslate"><code class="notranslate">crate=&lt;optimized out&gt;) at /usr/local/src/rust/src/rustllvm/RustWrapper.cpp:328 manager = &lt;optimized out&gt; Err = {static npos = &lt;optimized out&gt;, _M_dataplus = {&lt;std::allocator&lt;char&gt;&gt; = {&lt;__gnu_cxx::new_allocator&lt;char&gt;&gt; = {&lt;No data fields&gt;}, &lt;No data fields&gt;}, _M_p = 0x7f9d2ee404d8 ""}} __PRETTY_FUNCTION__ = "bool LLVMRustLoadCrate(void*, const char*)" </code></pre></div> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228650" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/12" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/12/hovercard" href="https://github.com/rust-lang/rust/issues/12">#12</a> 0x00007f9d31e223ca in LLVMRustLoadCrate__c_stack_shim ()</p> <p dir="auto">from /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so<br> No symbol table info available.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228651" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/13" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/13/hovercard" href="https://github.com/rust-lang/rust/issues/13">#13</a> 0x00007f9d31218ab9 in __morestack ()</p> <p dir="auto">from /usr/local/bin/../lib/librustrt.so<br> No symbol table info available.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228652" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/14" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/14/hovercard" href="https://github.com/rust-lang/rust/issues/14">#14</a> 0x00007f9d31207174 in call_on_c_stack (</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fn_ptr=0x7f9d31e22390 &lt;LLVMRustLoadCrate__c_stack_shim&gt;, args=0x7f9d201035f0, this=0x7f9d28108a10) at /usr/local/src/rust/src/rt/rust_task.h:491 prev_rust_sp = 0 borrowed_a_c_stack = true sp = &lt;optimized out&gt;"><pre class="notranslate"><code class="notranslate">fn_ptr=0x7f9d31e22390 &lt;LLVMRustLoadCrate__c_stack_shim&gt;, args=0x7f9d201035f0, this=0x7f9d28108a10) at /usr/local/src/rust/src/rt/rust_task.h:491 prev_rust_sp = 0 borrowed_a_c_stack = true sp = &lt;optimized out&gt; </code></pre></div> <p dir="auto">---Type to continue, or q to quit---<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228654" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/15" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/15/hovercard" href="https://github.com/rust-lang/rust/issues/15">#15</a> upcall_call_shim_on_c_stack (args=0x7f9d201035f0,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fn_ptr=0x7f9d31e22390 &lt;LLVMRustLoadCrate__c_stack_shim&gt;) at /usr/local/src/rust/src/rt/rust_upcall.cpp:60 task = 0x7f9d28108a10 __PRETTY_FUNCTION__ = &quot;void upcall_call_shim_on_c_stack(void*, void*)&quot;"><pre class="notranslate"><code class="notranslate">fn_ptr=0x7f9d31e22390 &lt;LLVMRustLoadCrate__c_stack_shim&gt;) at /usr/local/src/rust/src/rt/rust_upcall.cpp:60 task = 0x7f9d28108a10 __PRETTY_FUNCTION__ = "void upcall_call_shim_on_c_stack(void*, void*)" </code></pre></div> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228656" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/16" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/16/hovercard" href="https://github.com/rust-lang/rust/issues/16">#16</a> 0x00007f9d31d8beb4 in back:<g-emoji class="g-emoji" alias="link" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f517.png">🔗</g-emoji>:jit::exec::anon::anon::expr_fn_76891 ()</p> <p dir="auto">from /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so<br> No symbol table info available.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228659" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/17" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/17/hovercard" href="https://github.com/rust-lang/rust/issues/17">#17</a> 0x00007f9d318d2158 in str::as_c_str_28724::_b760a7dcc0e4db::_06 ()</p> <p dir="auto">from /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so<br> No symbol table info available.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228661" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/18" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/18/hovercard" href="https://github.com/rust-lang/rust/issues/18">#18</a> 0x00007f9d31d8b949 in back:🔗:jit::exec::_c3905cfecb8b69e9::_06 ()</p> <p dir="auto">from /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so<br> No symbol table info available.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228664" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/19" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/19/hovercard" href="https://github.com/rust-lang/rust/issues/19">#19</a> 0x00007f9d31464d65 in run::_ee4d29fb4c6e65c::_06 ()</p> <p dir="auto">from /usr/local/bin/../lib/librusti-5047c7f210c7cac8-0.6.so<br> No symbol table info available.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228665" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/20" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/20/hovercard" href="https://github.com/rust-lang/rust/issues/20">#20</a> 0x00007f9d31496aa8 in __morestack ()</p> <p dir="auto">from /usr/local/bin/../lib/librusti-5047c7f210c7cac8-0.6.so<br> No symbol table info available.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228666" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/21" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/21/hovercard" href="https://github.com/rust-lang/rust/issues/21">#21</a> 0x00007f9d31495a60 in run_line::anon::expr_fn_13894 ()</p> <p dir="auto">from /usr/local/bin/../lib/librusti-5047c7f210c7cac8-0.6.so<br> No symbol table info available.<br> ---Type to continue, or q to quit---<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228668" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/22" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/22/hovercard" href="https://github.com/rust-lang/rust/issues/22">#22</a> 0x00007f9d31495235 in task::<strong>extensions</strong>::try_13791::anon::expr_fn_13846</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="() from /usr/local/bin/../lib/librusti-5047c7f210c7cac8-0.6.so"><pre class="notranslate"><code class="notranslate">() from /usr/local/bin/../lib/librusti-5047c7f210c7cac8-0.6.so </code></pre></div> <p dir="auto">No symbol table info available.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228799" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/23" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/23/hovercard" href="https://github.com/rust-lang/rust/issues/23">#23</a> 0x00007f9d32bf814f in task::spawn::spawn_raw::make_child_wrapper::anon::expr_fn_10036 () from /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.6.so</p> <p dir="auto">No symbol table info available.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228801" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/24" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/24/hovercard" href="https://github.com/rust-lang/rust/issues/24">#24</a> 0x00007f9d32c2f520 in __morestack ()</p> <p dir="auto">from /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.6.so<br> No symbol table info available.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228804" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/25" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/25/hovercard" href="https://github.com/rust-lang/rust/issues/25">#25</a> 0x00007f9d312057f4 in task_start_wrapper (a=0x7f9d28109810)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="at /usr/local/src/rust/src/rt/rust_task.cpp:160 __PRETTY_FUNCTION__ = &quot;void task_start_wrapper(spawn_args*)&quot; env = &lt;optimized out&gt; ca = {spargs = 0x0, threw_exception = false} task = 0x7f9d28108a10 threw_exception = false"><pre class="notranslate"><code class="notranslate">at /usr/local/src/rust/src/rt/rust_task.cpp:160 __PRETTY_FUNCTION__ = "void task_start_wrapper(spawn_args*)" env = &lt;optimized out&gt; ca = {spargs = 0x0, threw_exception = false} task = 0x7f9d28108a10 threw_exception = false </code></pre></div> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228805" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/26" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/26/hovercard" href="https://github.com/rust-lang/rust/issues/26">#26</a> 0x0000000000000000 in ?? ()</p> <p dir="auto">No symbol table info available.<br> (gdb) quit</p>
<p dir="auto">rustc v0.6:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ rusti rusti&gt; fn foo() { for 5.times { io::println(&quot;hi&quot;); } } [1] 11363 segmentation fault (core dumped) rusti"><pre class="notranslate">$ rusti rusti&gt; fn <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">for</span> <span class="pl-c1">5</span><span class="pl-kos">.</span><span class="pl-smi">times</span> <span class="pl-kos">{</span> <span class="pl-c1">io</span><span class="pl-kos">:</span><span class="pl-kos">:</span>println<span class="pl-kos">(</span><span class="pl-s">"hi"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">]</span> <span class="pl-c1">11363</span> segmentation fault <span class="pl-kos">(</span>core dumped<span class="pl-kos">)</span> rusti</pre></div> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ rusti rusti&gt; let x = 1; &lt;anon&gt;:35:4: 35:7 warning: unused variable: `x` &lt;anon&gt;:35 let x = 1; ^~~ [1] 11937 segmentation fault (core dumped) rusti"><pre class="notranslate">$ rusti rusti&gt; let x = <span class="pl-c1">1</span><span class="pl-kos">;</span> &lt;<span class="pl-smi">anon</span>&gt;<span class="pl-kos">:</span><span class="pl-c1">35</span><span class="pl-kos">:</span><span class="pl-c1">4</span><span class="pl-kos">:</span> <span class="pl-c1">35</span><span class="pl-kos">:</span><span class="pl-c1">7</span> warning<span class="pl-kos">:</span> unused variable<span class="pl-kos">:</span> `x` &lt;anon&gt;<span class="pl-kos">:</span><span class="pl-c1">35</span> let x = <span class="pl-c1">1</span><span class="pl-kos">;</span> ^~~ <span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">]</span> <span class="pl-c1">11937</span> <span class="pl-en">segmentation</span> fault <span class="pl-kos">(</span>core dumped<span class="pl-kos">)</span> rusti</pre></div> <p dir="auto">I was able to reproduce this today by using <code class="notranslate">ctrl+c</code> to exit <code class="notranslate">rusti</code>. Subsequent <code class="notranslate">rusti</code> runs segfaulted regardless of the statement.</p>
1
<ul dir="auto"> <li>[x ] I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto">No errors in development, but when I minify the bundle and hit ssr url, I receive this error:<br> <a href="https://reactjs.org/docs/error-decoder.html?invariant=149&amp;args%5B%5D=iconMenuContainer" rel="nofollow">https://reactjs.org/docs/error-decoder.html?invariant=149&amp;args[]=iconMenuContainer</a></p> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>0.19.2</td> </tr> <tr> <td>React</td> <td>16</td> </tr> <tr> <td>browser</td> <td></td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<p dir="auto">I'm using the <code class="notranslate">onClick</code> property for the DatePicker component and it works fine, the only issue is that my VSC typescript linter is indicating that it is not a part of the type definition for this component.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">No type errors would be fantastic - and this is the only one I've run into so far!</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">This is the error I'm getting:<br> <code class="notranslate">Property 'onClick' does not exist on type 'IntrinsicAttributes &amp; IntrinsicClassAttributes&lt;DatePicker&gt; &amp; Readonly&lt;{ children?: ReactNode; }&gt; ...'.</code></p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Have typescript setup in a react environment</li> <li>Use <code class="notranslate">import DatePicker from 'material-ui/DatePicker' </code> to import the DatePicker. Right now, I'm getting around this error by using <code class="notranslate">const DatePicker: any = require('material-ui/DatePicker')</code>. Lame.</li> <li>Add an <code class="notranslate">onClick</code> property to your DatePicker. Eg:<br> <code class="notranslate">... onClick={ () =&gt; console.log('opening the datepicker') } ...</code></li> <li>See annoying red stuff in your editor.</li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">Annoying typescript issue making me ask my boss annoying typescript questions. This is more an issue with typescript than you guys, but you've done a really awesome job so far, this is just a way to make it a little bit better.</p> <h2 dir="auto">Your Environment</h2> <p dir="auto">We're running a react/redux/typescript app in Visual Studio Code. I installed the <code class="notranslate">@types/material-ui</code> file and it mostly works great, thanks for putting in all that work!</p> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>0.20.0</td> </tr> <tr> <td>React</td> <td>16.2.0</td> </tr> <tr> <td>browser</td> <td></td> </tr> <tr> <td>Visual Studio Code</td> <td>1.19.1</td> </tr> <tr> <td><code class="notranslate">@types/material-ui</code></td> <td>0.20.1</td> </tr> </tbody> </table>
0
<p dir="auto">See the attachment. With ansible 1.7.2 this works as expected:</p> <p dir="auto">% ansible-playbook --version<br> ansible-playbook 1.7.2<br> % ansible-playbook -i hosts/localhost a.yml --tags b</p> <p dir="auto">PLAY [localhost]</p> <hr> <p dir="auto">GATHERING FACTS</p> <hr> <p dir="auto">ok: [localhost]</p> <p dir="auto">TASK: [debug msg="b"]</p> <hr> <p dir="auto">ok: [localhost] =&gt; {<br> "msg": "b"<br> }</p> <p dir="auto">PLAY RECAP</p> <hr> <p dir="auto">localhost : ok=2 changed=0 unreachable=0<br> failed=0</p> <p dir="auto">With 1.9.1 it's broken:</p> <p dir="auto">% ansible-playbook --version<br> ansible-playbook 1.9.1<br> % ansible-playbook -i hosts/localhost a.yml --tags b<br> ERROR: tag(s) not found in playbook: b. possible values:</p>
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">1.8.1-1.el6</p> <h5 dir="auto">Environment:</h5> <p dir="auto">CentOS release 6.6 (Final)</p> <h5 dir="auto">Summary:</h5> <p dir="auto">Tags from includes are being ignored<br> Tags from within a playbook are working just fine.</p> <p dir="auto">After a downgrade to Ansible 1.7.2-2.el6 this is working</p> <h5 dir="auto">Steps To Reproduce:</h5> <p dir="auto">include: someotherplaybook.yml tags=test_tag<br> ansible-playbook someplaybook.yml -e "target=somehost" -t test_tag</p> <h5 dir="auto">Expected Results:</h5> <p dir="auto">Tags should not be ignored</p> <h5 dir="auto">Actual Results:</h5> <p dir="auto">ERROR: tag(s) not found in playbook: test_tag. possible values:</p>
1
<h3 dir="auto">Description</h3> <p dir="auto">Due to the complexity of our DAG, we only use the Graph view to manage it. It would be great if we could get the task group options (specifically clearing a task group - (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1384817143" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/26658" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/26658/hovercard" href="https://github.com/apache/airflow/pull/26658">#26658</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1469317225" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/28003" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/28003/hovercard" href="https://github.com/apache/airflow/pull/28003">#28003</a>).</p> <h3 dir="auto">Use case/motivation</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Related issues</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Are you willing to submit a PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
<p dir="auto"><strong>Apache Airflow version</strong>: 2.0.0</p> <p dir="auto"><strong>Kubernetes version (if you are using kubernetes)</strong> (use <code class="notranslate">kubectl version</code>): 1.18.10</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: Azure AKS</li> <li><strong>OS</strong> (e.g. from /etc/os-release): Linux</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux</li> <li><strong>Install tools</strong>: All</li> </ul> <p dir="auto"><strong>What happened</strong>:</p> <p dir="auto">While injecting execution date and previous execution date success as environment variables using macros the values are not rendered in the pod</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto">Values are correctly rendered in the pod so that I can use that in my task.</p> <p dir="auto"><strong>How to reproduce it</strong>:</p> <ol dir="auto"> <li>Define Kubernetes environment variable like this<br> <code class="notranslate"> k8s_env_variable = k8s.V1EnvVar( name='execution_date_1', value='{{ ts }}' )</code></li> <li>Inject it in the operator</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="KubernetesPodOperator( namespace='airflow', name=name, task_id=name, image=&quot;Use your dag image id&quot;, env_vars=[k8s_env_variable], image_pull_policy='Always', get_logs=True, log_events_on_failure=True, resources=resources, is_delete_operator_pod=True, node_selector={'agentpool': 'airflowtasks'}, termination_grace_period=60 )"><pre class="notranslate"><code class="notranslate">KubernetesPodOperator( namespace='airflow', name=name, task_id=name, image="Use your dag image id", env_vars=[k8s_env_variable], image_pull_policy='Always', get_logs=True, log_events_on_failure=True, resources=resources, is_delete_operator_pod=True, node_selector={'agentpool': 'airflowtasks'}, termination_grace_period=60 ) </code></pre></div> <ol start="3" dir="auto"> <li>Print execution date in your dag</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import os print(os.getenv('execution_date'))"><pre class="notranslate"><code class="notranslate">import os print(os.getenv('execution_date')) </code></pre></div> <ol start="4" dir="auto"> <li>It should have printed the correct execution date instead of nothing.</li> </ol> <p dir="auto">If you are using kubernetes, please attempt to recreate the issue using minikube or kind.</p> <h2 dir="auto">Install minikube/kind</h2> <ul dir="auto"> <li>Minikube <a href="https://minikube.sigs.k8s.io/docs/start/" rel="nofollow">https://minikube.sigs.k8s.io/docs/start/</a></li> <li>Kind <a href="https://kind.sigs.k8s.io/docs/user/quick-start/" rel="nofollow">https://kind.sigs.k8s.io/docs/user/quick-start/</a></li> </ul>
0
<h3 dir="auto">Bug summary</h3> <p dir="auto">When the figure has two columns with different numbers of rows, rows on the same side will have different heights under <code class="notranslate">constrained</code> layout.</p> <h3 dir="auto">Code for reproduction</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt panels = [ ['a', 'c'], ['a', 'c'], ['b', 'c'], ['b', 'c'], ] fig, axes = plt.subplot_mosaic( panels, layout = 'constrained') fig.suptitle('Different height') fig.canvas.draw() print(&quot;Hieght of 'a':&quot;, axes['a'].bbox.bounds[3]) print(&quot;Hieght of 'b':&quot;, axes['b'].bbox.bounds[3]) plt.savefig('test.png')"><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">panels</span> <span class="pl-c1">=</span> [ [<span class="pl-s">'a'</span>, <span class="pl-s">'c'</span>], [<span class="pl-s">'a'</span>, <span class="pl-s">'c'</span>], [<span class="pl-s">'b'</span>, <span class="pl-s">'c'</span>], [<span class="pl-s">'b'</span>, <span class="pl-s">'c'</span>], ] <span class="pl-s1">fig</span>, <span class="pl-s1">axes</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplot_mosaic</span>( <span class="pl-s1">panels</span>, <span class="pl-s1">layout</span> <span class="pl-c1">=</span> <span class="pl-s">'constrained'</span>) <span class="pl-s1">fig</span>.<span class="pl-en">suptitle</span>(<span class="pl-s">'Different height'</span>) <span class="pl-s1">fig</span>.<span class="pl-s1">canvas</span>.<span class="pl-en">draw</span>() <span class="pl-en">print</span>(<span class="pl-s">"Hieght of 'a':"</span>, <span class="pl-s1">axes</span>[<span class="pl-s">'a'</span>].<span class="pl-s1">bbox</span>.<span class="pl-s1">bounds</span>[<span class="pl-c1">3</span>]) <span class="pl-en">print</span>(<span class="pl-s">"Hieght of 'b':"</span>, <span class="pl-s1">axes</span>[<span class="pl-s">'b'</span>].<span class="pl-s1">bbox</span>.<span class="pl-s1">bounds</span>[<span class="pl-c1">3</span>]) <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'test.png'</span>)</pre></div> <h3 dir="auto">Actual outcome</h3> <p dir="auto">Hieght of 'a': 180.94277777777785<br> Hieght of 'b': 189.27677777777777</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/45889298/223366903-2c6800bf-52a9-4a3c-8d43-37dbc81cea07.png"><img src="https://user-images.githubusercontent.com/45889298/223366903-2c6800bf-52a9-4a3c-8d43-37dbc81cea07.png" alt="test" style="max-width: 100%;"></a></p> <h3 dir="auto">Expected outcome</h3> <p dir="auto">Same height for 'a' and 'b'.</p> <h3 dir="auto">Additional information</h3> <p dir="auto">No bug when axes are generated using <code class="notranslate">plt.subplot</code> or when the numbers of rows are the same for both columns. Same bug for <code class="notranslate">compressed</code> layout too.</p> <h3 dir="auto">Operating system</h3> <p dir="auto">Ubuntu 22.04</p> <h3 dir="auto">Matplotlib Version</h3> <p dir="auto">3.7.1</p> <h3 dir="auto">Matplotlib Backend</h3> <p dir="auto">QtAgg</p> <h3 dir="auto">Python version</h3> <p dir="auto">Python 3.10.6</p> <h3 dir="auto">Jupyter version</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Installation</h3> <p dir="auto">pip</p>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong><br> When following <a href="https://matplotlib.org/devdocs/gallery/lines_bars_and_markers/categorical_variables.html" rel="nofollow">the documentation on plotting categorical variables</a> the plots do not render. Instead various errors are thrown about converting strings to floats.</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 data = {'apples': 10, 'oranges': 15, 'lemons': 5, 'limes': 20} names = list(data.keys()) values = list(data.values()) fig, axs = plt.subplots(1, 3, figsize=(9, 3), sharey=True) axs[0].bar(names, values) axs[1].scatter(names, values) axs[2].plot(names, values) fig.suptitle('Categorical Plotting')"><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">data</span> <span class="pl-c1">=</span> {<span class="pl-s">'apples'</span>: <span class="pl-c1">10</span>, <span class="pl-s">'oranges'</span>: <span class="pl-c1">15</span>, <span class="pl-s">'lemons'</span>: <span class="pl-c1">5</span>, <span class="pl-s">'limes'</span>: <span class="pl-c1">20</span>} <span class="pl-s1">names</span> <span class="pl-c1">=</span> <span class="pl-en">list</span>(<span class="pl-s1">data</span>.<span class="pl-en">keys</span>()) <span class="pl-s1">values</span> <span class="pl-c1">=</span> <span class="pl-en">list</span>(<span class="pl-s1">data</span>.<span class="pl-en">values</span>()) <span class="pl-s1">fig</span>, <span class="pl-s1">axs</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-c1">1</span>, <span class="pl-c1">3</span>, <span class="pl-s1">figsize</span><span class="pl-c1">=</span>(<span class="pl-c1">9</span>, <span class="pl-c1">3</span>), <span class="pl-s1">sharey</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">axs</span>[<span class="pl-c1">0</span>].<span class="pl-en">bar</span>(<span class="pl-s1">names</span>, <span class="pl-s1">values</span>) <span class="pl-s1">axs</span>[<span class="pl-c1">1</span>].<span class="pl-en">scatter</span>(<span class="pl-s1">names</span>, <span class="pl-s1">values</span>) <span class="pl-s1">axs</span>[<span class="pl-c1">2</span>].<span class="pl-en">plot</span>(<span class="pl-s1">names</span>, <span class="pl-s1">values</span>) <span class="pl-s1">fig</span>.<span class="pl-en">suptitle</span>(<span class="pl-s">'Categorical Plotting'</span>)</pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--------------------------------------------------------------------------- TypeError Traceback (most recent call last) &lt;ipython-input-32-c50911b594df&gt; in &lt;module&gt;() 4 5 fig, axs = plt.subplots(1, 3, figsize=(9, 3), sharey=True) ----&gt; 6 axs[0].bar(names, values) 7 axs[1].scatter(names, values) 8 axs[2].plot(names, values) /Users/kevin.thompson/venv3/lib/python3.6/site-packages/matplotlib/__init__.py in inner(ax, *args, **kwargs) 1896 warnings.warn(msg % (label_namer, func.__name__), 1897 RuntimeWarning, stacklevel=2) -&gt; 1898 return func(ax, *args, **kwargs) 1899 pre_doc = inner.__doc__ 1900 if pre_doc is None: /Users/kevin.thompson/venv3/lib/python3.6/site-packages/matplotlib/axes/_axes.py in bar(self, left, height, width, bottom, **kwargs) 2103 if align == 'center': 2104 if orientation == 'vertical': -&gt; 2105 left = [left[i] - width[i] / 2. for i in xrange(len(left))] 2106 elif orientation == 'horizontal': 2107 bottom = [bottom[i] - height[i] / 2. /Users/kevin.thompson/venv3/lib/python3.6/site-packages/matplotlib/axes/_axes.py in &lt;listcomp&gt;(.0) 2103 if align == 'center': 2104 if orientation == 'vertical': -&gt; 2105 left = [left[i] - width[i] / 2. for i in xrange(len(left))] 2106 elif orientation == 'horizontal': 2107 bottom = [bottom[i] - height[i] / 2. TypeError: unsupported operand type(s) for -: 'str' and 'float'"><pre class="notranslate"><code class="notranslate">--------------------------------------------------------------------------- TypeError Traceback (most recent call last) &lt;ipython-input-32-c50911b594df&gt; in &lt;module&gt;() 4 5 fig, axs = plt.subplots(1, 3, figsize=(9, 3), sharey=True) ----&gt; 6 axs[0].bar(names, values) 7 axs[1].scatter(names, values) 8 axs[2].plot(names, values) /Users/kevin.thompson/venv3/lib/python3.6/site-packages/matplotlib/__init__.py in inner(ax, *args, **kwargs) 1896 warnings.warn(msg % (label_namer, func.__name__), 1897 RuntimeWarning, stacklevel=2) -&gt; 1898 return func(ax, *args, **kwargs) 1899 pre_doc = inner.__doc__ 1900 if pre_doc is None: /Users/kevin.thompson/venv3/lib/python3.6/site-packages/matplotlib/axes/_axes.py in bar(self, left, height, width, bottom, **kwargs) 2103 if align == 'center': 2104 if orientation == 'vertical': -&gt; 2105 left = [left[i] - width[i] / 2. for i in xrange(len(left))] 2106 elif orientation == 'horizontal': 2107 bottom = [bottom[i] - height[i] / 2. /Users/kevin.thompson/venv3/lib/python3.6/site-packages/matplotlib/axes/_axes.py in &lt;listcomp&gt;(.0) 2103 if align == 'center': 2104 if orientation == 'vertical': -&gt; 2105 left = [left[i] - width[i] / 2. for i in xrange(len(left))] 2106 elif orientation == 'horizontal': 2107 bottom = [bottom[i] - height[i] / 2. TypeError: unsupported operand type(s) for -: 'str' and 'float' </code></pre></div> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">I expected it to render the pretty pictures found in <a href="https://matplotlib.org/devdocs/gallery/lines_bars_and_markers/categorical_variables.html" rel="nofollow">the documentation I was trying to duplicate</a></p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating System: OSX 10.11.6 (El Capitan)</li> <li>Matplotlib Version: 2.0.2</li> <li>Python Version: 3.6.0</li> <li>Jupyter Version (if applicable): 4.3.0</li> </ul> <p dir="auto">Installed via pip in a virtualenv</p>
0
<p dir="auto">I'm not sure if this is a bug or corruption experienced during the upgrade but as of 1.2.0, we're now experiencing duplicate results in all queries:</p> <p dir="auto">{<br> took: 0<br> timed_out: false<br> _shards: {<br> total: 5<br> successful: 5<br> failed: 0<br> }<br> hits: {<br> total: 2<br> max_score: 13.58639<br> hits: [<br> {<br> _index: media6<br> _type: Media<br> _id: 534918829017389526_260014085,<br> _score: 13.58639,<br> _source: {}<br> },<br> {<br> _index: media6<br> _type: Media<br> _id: 534918829017389526_260014085,<br> _score: 12.815866,<br> _source: {}<br> }]<br> }}</p> <p dir="auto">There have been no changes to indexes, types, or other mappings. My understanding was that a unique ID really depends on index/type/id/routing. The routing, by<br> default, is derived from the ID. No parent-child relationships are in use here.</p> <p dir="auto">Cross-posted but unrelated to sort as initially suspected:<br> <a href="http://elasticsearch-users.115913.n3.nabble.com/Duplicate-Results-Following-Upgrade-to-1-2-0-amp-SortScript-td4056672.html" rel="nofollow">http://elasticsearch-users.115913.n3.nabble.com/Duplicate-Results-Following-Upgrade-to-1-2-0-amp-SortScript-td4056672.html</a></p>
<p dir="auto">Many people have some challenges when using Git/GitHub to contribute to the project.</p> <p dir="auto">It would be nice to have a GitHub.CHEATSHEET similar to GRADLE.CHEATSHEET.</p>
0
<p dir="auto">As for now, there is no way to disable code splitting feature with some option.</p> <p dir="auto">Build &amp; rebuild time is more with code splitting, so, it is useful from developer experience point of view to disable it in development mode. <a href="https://www.npmjs.com/package/babel-plugin-remove-webpack" rel="nofollow">https://www.npmjs.com/package/babel-plugin-remove-webpack</a> could handle some of cases, excluding modern <code class="notranslate">import()</code> signature.</p>
<h2 dir="auto">Current Problems &amp; Scenarios</h2> <p dir="auto">Users get fast webpack builds on large code bases by running continuous processes that watch the file system with webpack-dev-server or webpack's watch option. Starting those continuous processes can take a lot of time to build all the modules for the code base anew to fill the memory cache webpack has to make rebuilds fast. Some webpack uses remove the benefit from running a continuous process like running tests on a Continuous Integration instance that will be stopped after it runs, or making a production build for staging or release which is needed less frequently than development builds. The production build will just use more resources while the development build completes faster from not using optimization plugins.</p> <p dir="auto">Community solutions and workarounds help remedy this with cache-loader, DllReferencePlugin, auto-dll-plugin, thread-loader, happypack, and hard-source-webpack-plugin. Many workarounds also include option tweaks that trade small loses in file size or feature power for larger improvement to build time. All of these involve a lot of knowledge about webpack and the community or finding really good articles on what others have already figured out. webpack itself does not have some simpler option to turn on or have on by default.</p> <p dir="auto">With the module memory cache there is a second important cache in webpack for build performance, the resolver's <strong>unsafe cache</strong>. The unsafe cache is memory only too, and an example of a performance workaround that is on by default in webpack's core. It trades resolving accuracy for fast repeated resolutions. That trade means continuous webpack processes need to be restarted to pick up changes to file resolutions. Or that the option can be disabled but for the number of resolutions that will change like that restarting will save more time overall than having the option regularly be off.</p> <h3 dir="auto">Proposed Solution</h3> <p dir="auto"><strong>Freeze all modules in a build at needed stages during compilation and write them to disk.</strong> Later iterative builds, the first build of a continuous process using an existing on disk module cache, read the cache, validate the modules, and thaw them during the build. The graph relations between modules are not explicitly cached. The module relations need to also be validated. Validating the relations is equivalent to rebuilding the relations through webpack's normal dependency tracing behaviour.</p> <p dir="auto">The resolver's cache can also be frozen and validated with saved missing paths. The validated resolver's "safe" cache allows retracing dependencies to execute quickly. Any resolutions that were invalidated will be run through the resolver normally allowing file path changes to be discovered in iterative and rebuilds.</p> <p dir="auto">Plain json data is easiest to write to and read from disk as well as provide a state the module's data can be in during validation. Fully thawing that data into their original shape will require a Compilation to be running so the Module, Dependency's and other webpack types can be created according to how that Compilation is configured to create a copy of the past Module indistinguishable from the last build.</p> <p dir="auto">Creating this data will like involve two sets of APIs. One creates the duplicates and constructing thawed Instances from the disk read duplicate. The second uses the first to handle the variation in subclassed types in webpack. As an example the webpack 3 has 49 Dependency subclasses that can be used by the core of webpack and core plugins. The first API duplicating a NormalModule doesn't handle the Dependency instances in the module's dependencies list, it calls to the second API to create duplicates of those values. The second API uses the first to create those duplicates. To keep this from running in a circular cycle, uses of the first API are responsible for not duplicating cyclical references and for creating them while thawing using passed state information like webpack's Parser uses.</p> <p dir="auto">The first data API will likely be a library used to implement a schema of a Module or Dependency. The second data API may use webpack's dependencyFactories strategy or Tapable hooks. A Tapable or similar approach may present opportunities to let plugin authors cache plugin information that is not tracked by default.</p> <p dir="auto">A file system API is needed to write and read the duplicates. This API organizes them and uses systems and libraries to operate efficiently or to provide an important point for debugging to loader authors, plugin authors, and core maintainers. This API may also act as a layer that may separate some information in a common shape to change its strategy. Asset objects may be treated this way if they are found to best be stored and loaded with a different mechanism then the rest of the module data.</p> <p dir="auto">This must be a safe cache. Any cached information must be able to be validated.</p> <p dir="auto">Modules validate their build and rendered source through timestamps and hashes. Timestamps cannot always be validated. Either a file changed in a way that didn't change its timestamp or the timestamp decreased in cases like a file being deleted in a context dependency or a file be renamed to the path of the old file. Hashes of the content, like the rendered source and chunk source use can be validated. All timestamp checks in modules and elsewhere must be replaced with hash or other content representative comparisons instead of filesystem metadata comparisons. File dependency timestamps can be replaced with hashes of their original content. Context dependency timestamps can be replaced with hashes of all the sorted relative paths deeply nested under them.</p> <p dir="auto">The cached resolver information needs to validate the filesystem shape and can do that by <code class="notranslate">stat()</code>ing the resolved path and all tested missing paths. A missing resolved path invalidates the resolution. An existing missing path invalidates the resolution.</p> <p dir="auto">Two larger "validations" also need to be performed.</p> <p dir="auto">The webpack's build configuration needs to be the same as the previous build. Instead of invalidating in case of a different build configuration though, a separate cache stored adjacent to the other cached modules under other configurations. Webpack configurations can frequently switch like in cases of using <code class="notranslate">webpack</code> or <code class="notranslate">webpack-dev-server</code> which turns on hot module replacement. Hot module replacement means the configuration is different and needs a separate cache as the module's will have a different output due to the additional plugin. One way to compare this is a hash of the configuration. The configuration can be stringified including any passed function's source and then hashed. An iterative build will check the new hash to choose its cache. Smarter configuration hashes could be developed to account for options that will not modify the already built modules.</p> <p dir="auto">The second larger validation is ensuring that dependencies stored in folders like node_modules have not changed. yarn and npm 5 can help here by trusting them to do this check and hashing their content. A back up can hash the combined content of all package.json files under the first depth of directories under node_modules. webpack will track the content of built modules, but it does not track the source of loaders, plugins, and dependencies used by those and webpack. A change to those may have an effect on how a built module looks. Any changes to these not-tracked-by-webpack files currently will mean the entire cache is no longer valid. A sibling cache could be created but if that can be determined to be regularly useful to keep the old cache.</p> <h3 dir="auto">User Stories (That speak in solving spirit of these problem areas)</h3> <p dir="auto">Priority Story</p> <p dir="auto">1 As a plugin or loader author, I can use a strategy or provided tools to test with the cache. In addition I have a strategy or means to have the cache invalidate entirely or specific modules as I am editing a loader or plugin.</p> <p dir="auto">1 As a user, I can rely on the cache to speed up iterative builds and notify me when an uncached build is starting. I can also turn off the notifications if I desire. I should never need to personally delete the cache for some performance trade off. The cache should reset itself as necessary without my input. I understood I may need to do this for bugs. Best such bugs be squashed quickly.</p> <p dir="auto">1 As a user, I should be able to use loaders and plugins that don't work with the cache. Modules with uncacheable loaders will not be cached. Modules with nested objects that cannot be duplicated or thawed from containing values that are not registered in the second data API will produce a warning about their cacheability status and allowed to be built in the normal uncached fashion.</p> <p dir="auto">1 As a core maintainer, I can test and debug other webpack core features and core plugins in use with the cache to make sure it can validate and verify itself for use.</p> <h3 dir="auto">Non-Goals</h3> <p dir="auto">This RFC will not look into using a cache built with different node_modules dependencies than those last installed. This would be a large effort on its own likely involving trade offs and may best be its own RFC.</p> <p dir="auto">This cache will be portable. Reusable on different CI instances or in different repo clones on the same or different computers. This RFC will not figure out the specifics of sharing a cache between multiple systems and leaves this to users to best figure out.</p> <p dir="auto">This spec can be bridged into other proposed new features with its module caching behaviour. This document and issue does not intend to make those leaps.</p> <h3 dir="auto">Requirements</h3> <p dir="auto">A api or library to create duplicates of specific webpack types and later those back into the specific types with some given helper state like the compilation and related module, etc. Uses of this api must handle not duplicating cyclical references, like a dependency to its owning module, and thawing the reference given the helper state.</p> <p dir="auto">A data relation API that either has duplication/thaw handles registered by some predicate, or like dependencyFactories, or through tapable hooks.</p> <p dir="auto">A (disk) cache organization API that either creates objects to handle writing to and reading from disk kind of like the FileSystem types. This API is for reading and writing the duplicate objects. Its API shape needs to support writing only changed objects. This might be done in a batch database like operation, letting the cache system send a list of changed items to write so the cache organization API doesn't need to redo work to discover what did and did not change. It will likely need to read all of the cached objects from disk during an iterative build. Core implementations of this API will likely need to be one, a debug implementation, and two, a space and time efficient implementation.</p> <p dir="auto">JSON is at least the starting resting format written to disk. The organization API might be used to wrap the actual disk implementation. The wrapping implemetation will turn the JSON objects into strings or buffers and back for the wrapped implmentation. That can be JSON.stringify and parse or some other means to do this work quickly as this step is a lot of work. Beating JSON.parse performance is pretty tricky.</p> <p dir="auto">Either in watchpack or another module, timestamps either need to be replaced with hashes for file and context dependencies or they can be added to the callback arguments. With a disk cache, timestamps will not be a useful comparison for considering if needs to be redone. The timestamps are not guaranteed to represent changes to file or directory content.</p> <p dir="auto">Use file and context dependency hashes in needRebuild instead of timestamps.</p> <p dir="auto">Hash a representative value of the environment, dependencies in node_modules and like. A different value from the last time a cache was used means no items in the cache can be used and they must be destroyed and replaced by freshly built items.</p> <p dir="auto">Hash webpack's compiler configuration and use it as a cache id so multiple adjacent caches are stored. The right cache needs to selected early on at some point of plugins being applied to the compiler after defaults are set and configuration changes are made by tools like webpack-dev-server.</p> <p dir="auto">These adjacent caches should be automatically cleaned up by default to keep the cache from running away in size by each one adding to a larger sum. This might happen automatically say if there are more than 5 caches including the one in use, cumulatively they use more than 500 MB. The oldest ones are deleted first until the cumulative size comes under the 500 MB threshold. Alternative to the cumulative size a if there are more than 5 caches and some are older than 2 weeks, caches older than 2 weeks are deleted.</p> <p dir="auto">Replace the resolver's <strong>unsafe cache</strong> with a safe cache that validates a resolution by stating every resolved file and every originally attempted check. Doing this in bulk skips the logic flow the resolver normally executes. Very little time is spent doing this as it doesn't rely on js logic to build the paths. The paths are already built. The resolver's cached items may be stored with their respective module, consolidating all of the data for a cached module into one object for debugging and cleanup. If a module is no longer used in builds, removing it also removes the resolutions that would lead to it, and less information will need to be read from disk.</p> <h3 dir="auto">Questions</h3> <ul dir="auto"> <li> <p dir="auto">How are loaders that load an external configuration (babel-loader, postcss-loader) treated in regards to the cache configuration hash/id? Any method to do this needs to be done before a Compilation starts.</p> </li> <li> <p dir="auto">What enhanced-resolve cases exist that may not be recorded in the missing set?</p> </li> <li> <p dir="auto">How do loader and plugin authors work on their code and test it with the cache?</p> </li> <li> <p dir="auto">JSON is a good resting format. Should we look at others? Beating JSON.parse performance is pretty tricky. protobufjs implementations improve on it in many cases because they store the keys as integers in the output. The protobuf schema defines the key to integer relationship explicitly so its easy to go back and forth.</p> </li> <li> <p dir="auto">Are the version of node or operating system values that should be included in the environment (node_modules and other third party dependencies) comparison? Should they be part of the configuration hash?</p> </li> </ul> <h3 dir="auto">Fundementals</h3> <h4 dir="auto">0CJS</h4> <ul dir="auto"> <li>The disk cache should be on by default.</li> <li>Each build with a different webpack configuration should store a unique copy of its cache versus another webpack configuration. E.g. A development build and a production build must have distinct caches due to them having different options set.</li> <li>After N caches using M MBs total exist any caches older than W weeks past N caches and M MBs total should be deleted.</li> <li>Some disk cache information should be in webpack stats. E.g. Root compilation cache id, disk space used by cache, disk space used by all caches, ...</li> <li>Any change to node_modules dependencies or other third-party dependency directories must invalidate a saved cache.</li> <li>The cache must be portable, reusable by CI, or between members of a project team as long as no node_modules or other third-party dependency directories change.</li> <li>Use a efficient and flexible resting format and disk organization implementation.</li> </ul> <h4 dir="auto">Speed</h4> <p dir="auto">Iterative builds, builds with a saved cache, should complete significantly faster than an uncached build. An uncached build saving a cache will be a small margin slower than one not writing a cache, as writing the cache is an additional task webpack does not yet perform. A rebuild, a build in the same process that ran an uncached or iterative build, should be a hard to measure amount slower, saving only the changed cache state and not the whole cache.</p> <h4 dir="auto">Build Size</h4> <p dir="auto">No change.</p> <h4 dir="auto">Security</h4> <p dir="auto">Similar security as to how third party dependencies are fetched for a project.</p> <h3 dir="auto">Success Metric</h3> <ul dir="auto"> <li>webpack iterative builds, builds with a cache, should be significantly faster that uncached builds.</li> <li>Rebuilds performance should be minimally impacted.</li> <li>Iterative build output should match an uncached build given no changes to the sources.</li> <li>Cache sharing: a cache should be usable in the next CI run in a different CI instance, or a common updated cache could be pulled from some arbitrary store by team members and used instead of needing to run an uncached build first. (Given that the configuration is not different than the stored caches and that node_modules contains the same dependencies and versions.)</li> </ul>
0
<h1 dir="auto">Bug report</h1> <h2 dir="auto">Describe the bug</h2> <p dir="auto">A clear and concise description of what the bug is.</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior, please provide code snippets or a repository:</p> <ol dir="auto"> <li> <p dir="auto">Clone <a href="https://github.com/tenjojeremy/test-nextjs-simple.git">https://github.com/tenjojeremy/test-nextjs-simple.git</a></p> </li> <li> <p dir="auto">run <code class="notranslate">yarn</code></p> </li> <li> <p dir="auto">run <code class="notranslate">yarn start</code></p> </li> <li> <p dir="auto">open localhost</p> </li> <li> <p dir="auto">you should see 3 posters<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25231946/63126077-12477180-bf7d-11e9-8392-44d335cf7964.png"><img src="https://user-images.githubusercontent.com/25231946/63126077-12477180-bf7d-11e9-8392-44d335cf7964.png" alt="posters" style="max-width: 100%;"></a></p> </li> <li> <p dir="auto">run <code class="notranslate">now</code></p> </li> <li> <p dir="auto">open production site</p> </li> <li> <p dir="auto">you will see a 500 error<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25231946/63126152-3c009880-bf7d-11e9-9dc4-b828fd5c2d93.png"><img src="https://user-images.githubusercontent.com/25231946/63126152-3c009880-bf7d-11e9-9dc4-b828fd5c2d93.png" alt="500" style="max-width: 100%;"></a></p> </li> <li> <p dir="auto">open runtime logs in your dashboard</p> </li> <li> <p dir="auto">see<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25231946/63125928-cac0e580-bf7c-11e9-8e1b-c9a7d9275d02.png"><img src="https://user-images.githubusercontent.com/25231946/63125928-cac0e580-bf7c-11e9-8e1b-c9a7d9275d02.png" alt="error" style="max-width: 100%;"></a></p> </li> </ol> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Should display 3 movie posters in production not a 500 error</p>
<h1 dir="auto">Feature request</h1> <h2 dir="auto">Is your feature request related to a problem? Please describe.</h2> <p dir="auto">It's currently not possible to read files from API routes or pages.</p> <h2 dir="auto">Describe the solution you'd like</h2> <p dir="auto">I want to be able to call <code class="notranslate">fs.readFile</code> with a <code class="notranslate">__dirname</code> path and have it "just work".</p> <p dir="auto">This should work in Development and Production mode.</p> <h2 dir="auto">Describe alternatives you've considered</h2> <p dir="auto">This may need to integrate with <code class="notranslate">@zeit/webpack-asset-relocator-loader</code> in some capacity. This plugin handles these types of requires.</p> <p dir="auto">However, it's not a necessity. I'd be OK with something that <em>only</em> works with <code class="notranslate">__dirname</code> and <code class="notranslate">__filename</code> (no relative or cwd-based paths).</p> <h2 dir="auto">Additional context</h2> <p dir="auto">Example:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// pages/api/test.js import fs from 'fs' import path from 'path' export default (req, res) =&gt; { const fileContent = fs.readFileSync( path.join(__dirname, '..', '..', 'package.json'), 'utf8' ) // ... }"><pre class="notranslate"><span class="pl-c">// pages/api/test.js</span> <span class="pl-k">import</span> <span class="pl-s1">fs</span> <span class="pl-k">from</span> <span class="pl-s">'fs'</span> <span class="pl-k">import</span> <span class="pl-s1">path</span> <span class="pl-k">from</span> <span class="pl-s">'path'</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-kos">(</span><span class="pl-s1">req</span><span class="pl-kos">,</span> <span class="pl-s1">res</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">fileContent</span> <span class="pl-c1">=</span> <span class="pl-s1">fs</span><span class="pl-kos">.</span><span class="pl-en">readFileSync</span><span class="pl-kos">(</span> <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-s">'..'</span><span class="pl-kos">,</span> <span class="pl-s">'..'</span><span class="pl-kos">,</span> <span class="pl-s">'package.json'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s">'utf8'</span> <span class="pl-kos">)</span> <span class="pl-c">// ...</span> <span class="pl-kos">}</span></pre></div> <blockquote> <p dir="auto">Note: I know you can cheat the above example <g-emoji class="g-emoji" alias="point_up" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/261d.png">☝️</g-emoji> with <code class="notranslate">require</code>, but that's not the point. <g-emoji class="g-emoji" alias="smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f604.png">😄</g-emoji></p> </blockquote>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=daigo" rel="nofollow">Daigo Kobayashi</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2657?redirect=false" rel="nofollow">SPR-2657</a></strong> and commented</p> <p dir="auto">There is no way to display success message(s) like struts' ActionMessage. Spring should provide Messages inteface in a similar way of Errors and related tag libraries.</p> <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="398100054" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11130" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11130/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11130">#11130</a> Flash Scope for Spring MVC (Without Spring Web Flow) (<em><strong>"duplicates"</strong></em>)</li> </ul> <p dir="auto">12 votes, 12 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=awilkinson" rel="nofollow">Andy Wilkinson</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9255?redirect=false" rel="nofollow">SPR-9255</a></strong> and commented</p> <p dir="auto">I've been bitten in the past by an intermittent <code class="notranslate">BeanCurrentlyInCreationException</code> when I've <code class="notranslate">@Autowired</code> a <code class="notranslate">FactoryBean</code> implementation. I believe that this is considered to be a no-no, but occassionally I forget and lose hours to diagnosing the problem until the penny drops. An example can be seen in <a href="https://issuetracker.springsource.com/browse/VMS-604" rel="nofollow">https://issuetracker.springsource.com/browse/VMS-604</a>. Today, I've been bitten by a variation of this same problem.</p> <p dir="auto">This time, rather than having an <code class="notranslate">@Autowired</code> <code class="notranslate">FactoryBean</code> I've got an <code class="notranslate">@Autowired</code> class that's a dependency of the <code class="notranslate">FactoryBean</code>. I believe this means that to avoid a possible <code class="notranslate">BeanCurrentlyInCreationException</code> I need to avoid using <code class="notranslate">@Autowired</code> on a <code class="notranslate">FactoryBean</code> and also on anything in the <code class="notranslate">FactoryBean</code>'s dependency graph.</p> <p dir="auto">The main problem here is the intermittent nature of the failure. There appears to be something non-deterministic in the code that finds all of the candidates for a dependency. This, I'm guessing, is what makes the failure intermittent which, in turn, makes it harder to diagnose. I'm also wondering how Spring guarantees that there's only one possible candidate for the dependency if it, apparently, doesn't always need to initialise the <code class="notranslate">FactoryBean</code> to satisfy the dependency. Is there a risk that it might miss the fact that there are multiple candidates, or is there something about one ordering which means that it can successfully initialise the <code class="notranslate">FactoryBean</code> to check the type that it will produce without also triggering a <code class="notranslate">BeanCurrentlyInCreationException</code>?</p> <p dir="auto">Ideally, dependency resolution would be deterministic so that this problem happen none of the time or all of the time. Right now it's dangerous as the problem can be lurking for days or weeks until it occurs. If deterministic dependency resolution isn't possible, I'd love to see some improved diagnostics for this problem. Something that pointed out the dangerous use of <code class="notranslate">@Autowired</code> on a <code class="notranslate">FactoryBean</code> or one of its dependencies would be a big help.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1 GA</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398114610" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13346" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13346/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13346">#13346</a> Doc: <code class="notranslate">@Autowired</code> properties not reliably set in FactoryBean before getObject (<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-attic/spring-framework-issues/commit/6fa97fa4564a189069382bd126e69c8d666ab50e/hovercard" href="https://github.com/spring-attic/spring-framework-issues/commit/6fa97fa4564a189069382bd126e69c8d666ab50e">spring-attic/spring-framework-issues@<tt>6fa97fa</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-attic/spring-framework-issues/commit/189ba5b80dfcb65bf6821d11da80f6616ca8115c/hovercard" href="https://github.com/spring-attic/spring-framework-issues/commit/189ba5b80dfcb65bf6821d11da80f6616ca8115c">spring-attic/spring-framework-issues@<tt>189ba5b</tt></a></p> <p dir="auto">2 votes, 4 watchers</p>
0
<p dir="auto">Hello,<br> My issue is about lowpass generated in sos form</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; print(signal.butter(2, 1, 'low', analog=True, output = &quot;sos&quot;)) &gt;&gt;&gt; print(signal.butter(2, 1, 'high', analog=True, output = &quot;sos&quot;)) [[1. 0. 0. 1. 1.41421356 1. ]] [[1. 0. 0. 1. 1.41421356 1. ]]"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; print(signal.butter(2, 1, 'low', analog=True, output = "sos")) &gt;&gt;&gt; print(signal.butter(2, 1, 'high', analog=True, output = "sos")) [[1. 0. 0. 1. 1.41421356 1. ]] [[1. 0. 0. 1. 1.41421356 1. ]] </code></pre></div> <p dir="auto">As you can see generating a lowpass and a highpass gives the same coefficients.<br> Same issue with the cheby1 filter type.<br> Like the sos configuration doesn't like to see b2 = 0<br> Cheers,</p>
<p dir="auto">Hello,<br> I have realized about an issue with sparse matrixes and loadmat function.<br> I have a set of sparse matrixes for storing very sparse values. Sometimes they are so sparse that some of the matrixes are never used, so they keep on zeros.</p> <p dir="auto">When I try to save them in a matlab file and load them again I always find the same problem, invalid shape. I know that the sparse matrixes should have at leas 1 element, and 2 dimensions, but the content of the matrixes is data-driven.</p> <p dir="auto">My point is that is not real the sparse has no shape, it is just there is no active elements in that moment. Is this a known feature? it is a new bug?</p> <p dir="auto">Thabks for your help and sorry if it is duplicated, but I didn't find any other issue with a similar description.</p>
0
<p dir="auto">Hello everybody.</p> <p dir="auto">It looks like i found a bundle of bugs in last version of julia. I run an application which uses many Tasks in it. It also uses generated julia code, which is run inside these tasks all the time. I obtain these crashes after ~3-20 minutes of running in some random order. I used both debug and release julia versions for tests...</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; versioninfo() Julia Version 0.4.3 Commit a2f713d (2016-01-12 21:37 UTC) Platform Info: System: Windows (x86_64-w64-mingw32) CPU: Intel(R) Core(TM) i7-4700HQ CPU @ 2.40GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell) LAPACK: libopenblas64_ LIBM: libopenlibm LLVM: libLLVM-3.3"><pre class="notranslate"><code class="notranslate">julia&gt; versioninfo() Julia Version 0.4.3 Commit a2f713d (2016-01-12 21:37 UTC) Platform Info: System: Windows (x86_64-w64-mingw32) CPU: Intel(R) Core(TM) i7-4700HQ CPU @ 2.40GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell) LAPACK: libopenblas64_ LIBM: libopenlibm LLVM: libLLVM-3.3 </code></pre></div> <p dir="auto">This is first error message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="A s s e r t i o n f a i l e d ! P r o g r a m : c : \ U s e r s \ U s e r \ A p p D a t a \ L o c a l \ J u l i a - 0 . 4 . 3 \ b i n \ j u l i a - d e b u g . e x e F i l e : t o p l e v e l . c , L i n e 8 3 9 E x p r e s s i o n : j l _ i s _ f u n c t i o n ( f ) This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information."><pre class="notranslate"><code class="notranslate">A s s e r t i o n f a i l e d ! P r o g r a m : c : \ U s e r s \ U s e r \ A p p D a t a \ L o c a l \ J u l i a - 0 . 4 . 3 \ b i n \ j u l i a - d e b u g . e x e F i l e : t o p l e v e l . c , L i n e 8 3 9 E x p r e s s i o n : j l _ i s _ f u n c t i o n ( f ) This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. </code></pre></div> <p dir="auto">Second error message looks like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks. Exception: EXCEPTION_ACCESS_VIOLATION at 0x70116290 -- utf8proc_NFKC at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia-debug.dll (unknown line) utf8proc_NFKC at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia-debug.dll (unknown line) jl_static_eval at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia-debug.dll (unknown line) jl_static_eval at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia-debug.dll (unknown line) jl_static_eval at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia-debug.dll (unknown line) jl_static_eval at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia-debug.dll (unknown line) julia_type_to_llvm at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia-debug.dll (unknown line) jl_compile at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia-debug.dll (unknown line) jl_trampoline_compile_function at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia-debug.dll (unknown line) jl_trampoline at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia-debug.dll (unknown line) anonymous at G:\my\projects\jevo\src\Creature.jl:247 jl_get_system_hooks at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia-debug.dll (unknown line) jl_get_system_hooks at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia-debug.dll (unknown line)"><pre class="notranslate"><code class="notranslate">Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks. Exception: EXCEPTION_ACCESS_VIOLATION at 0x70116290 -- utf8proc_NFKC at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia-debug.dll (unknown line) utf8proc_NFKC at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia-debug.dll (unknown line) jl_static_eval at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia-debug.dll (unknown line) jl_static_eval at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia-debug.dll (unknown line) jl_static_eval at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia-debug.dll (unknown line) jl_static_eval at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia-debug.dll (unknown line) julia_type_to_llvm at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia-debug.dll (unknown line) jl_compile at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia-debug.dll (unknown line) jl_trampoline_compile_function at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia-debug.dll (unknown line) jl_trampoline at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia-debug.dll (unknown line) anonymous at G:\my\projects\jevo\src\Creature.jl:247 jl_get_system_hooks at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia-debug.dll (unknown line) jl_get_system_hooks at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia-debug.dll (unknown line) </code></pre></div> <p dir="auto">Another one:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks. Exception: EXCEPTION_ACCESS_VIOLATION at 0x64f417e8 -- jl_write_malloc_log at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia.dll (unknown line) jl_write_malloc_log at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia.dll (unknown line) jl_extern_c at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia.dll (unknown line) jl_extern_c at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia.dll (unknown line) jl_load_and_lookup at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia.dll (unknown line) jl_compile at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia.dll (unknown line) jl_trampoline at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia.dll (unknown line) anonymous at g:\my\projects\jevo\src\Creature.jl:247 jl_unprotect_stack at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia.dll (unknown line)"><pre class="notranslate"><code class="notranslate">Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks. Exception: EXCEPTION_ACCESS_VIOLATION at 0x64f417e8 -- jl_write_malloc_log at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia.dll (unknown line) jl_write_malloc_log at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia.dll (unknown line) jl_extern_c at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia.dll (unknown line) jl_extern_c at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia.dll (unknown line) jl_load_and_lookup at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia.dll (unknown line) jl_compile at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia.dll (unknown line) jl_trampoline at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia.dll (unknown line) anonymous at g:\my\projects\jevo\src\Creature.jl:247 jl_unprotect_stack at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia.dll (unknown line) </code></pre></div> <p dir="auto">The last one:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks. Exception: EXCEPTION_ACCESS_VIOLATION at 0x64f1732d -- jl_add_method at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia.dll (unknown line) jl_add_method at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia.dll (unknown line) jl_method_def at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia.dll (unknown line) anonymous at no file:0 anonymous at g:\my\projects\jevo\src\Creature.jl:247 jl_unprotect_stack at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia.dll (unknown line)"><pre class="notranslate"><code class="notranslate">Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks. Exception: EXCEPTION_ACCESS_VIOLATION at 0x64f1732d -- jl_add_method at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia.dll (unknown line) jl_add_method at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia.dll (unknown line) jl_method_def at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia.dll (unknown line) anonymous at no file:0 anonymous at g:\my\projects\jevo\src\Creature.jl:247 jl_unprotect_stack at c:\Users\User\AppData\Local\Julia-0.4.3\bin\libjulia.dll (unknown line) </code></pre></div> <p dir="auto">It's hard to provide buggy code sample, because application is big and so many processes are involved. But, i may provide a high level code:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module Test type Organism code::Expr codeFn::Function end type OrganismTask task::Task organism::Organism end tasks = OrganismTask[] function born(o::Organism) return function () while true produce() try o.codeFn(o) end end end end function run() for i=1:500 # in real app organism's function is more complicated org = Organism(:(function (o) return 1 end), function (o) return 1 end) task = Task(born(org)) push!(tasks, OrganismTask(task, org)) end while true for i=1:500 consume(tasks[i].task) # here is a code, which modify tasks[i].organism.code tasks[i].organism.codeFn = eval(tasks[i].organism.code) end # here is a code, which remove and add tasks from/to tasks variable end end end"><pre class="notranslate"><span class="pl-k">module</span> Test type Organism code<span class="pl-k">::</span><span class="pl-c1">Expr</span> codeFn<span class="pl-k">::</span><span class="pl-c1">Function</span> <span class="pl-k">end</span> type OrganismTask task<span class="pl-k">::</span><span class="pl-c1">Task</span> organism<span class="pl-k">::</span><span class="pl-c1">Organism</span> <span class="pl-k">end</span> tasks <span class="pl-k">=</span> OrganismTask[] <span class="pl-k">function</span> <span class="pl-en">born</span>(o<span class="pl-k">::</span><span class="pl-c1">Organism</span>) <span class="pl-k">return</span> <span class="pl-k">function</span> () <span class="pl-k">while</span> <span class="pl-c1">true</span> <span class="pl-c1">produce</span>() <span class="pl-k">try</span> o<span class="pl-k">.</span><span class="pl-c1">codeFn</span>(o) <span class="pl-k">end</span> <span class="pl-k">end</span> <span class="pl-k">end</span> <span class="pl-k">end</span> <span class="pl-k">function</span> <span class="pl-en">run</span>() <span class="pl-k">for</span> i<span class="pl-k">=</span><span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">500</span> <span class="pl-c"><span class="pl-c">#</span> in real app organism's function is more complicated</span> org <span class="pl-k">=</span> <span class="pl-c1">Organism</span>(:(<span class="pl-k">function</span> (o) <span class="pl-k">return</span> <span class="pl-c1">1</span> <span class="pl-k">end</span>), <span class="pl-k">function</span> (o) <span class="pl-k">return</span> <span class="pl-c1">1</span> <span class="pl-k">end</span>) task <span class="pl-k">=</span> <span class="pl-c1">Task</span>(<span class="pl-c1">born</span>(org)) <span class="pl-c1">push!</span>(tasks, <span class="pl-c1">OrganismTask</span>(task, org)) <span class="pl-k">end</span> <span class="pl-k">while</span> <span class="pl-c1">true</span> <span class="pl-k">for</span> i<span class="pl-k">=</span><span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">500</span> <span class="pl-c1">consume</span>(tasks[i]<span class="pl-k">.</span>task) <span class="pl-c"><span class="pl-c">#</span> here is a code, which modify tasks[i].organism.code</span> tasks[i]<span class="pl-k">.</span>organism<span class="pl-k">.</span>codeFn <span class="pl-k">=</span> <span class="pl-c1">eval</span>(tasks[i]<span class="pl-k">.</span>organism<span class="pl-k">.</span>code) <span class="pl-k">end</span> <span class="pl-c"><span class="pl-c">#</span> here is a code, which remove and add tasks from/to tasks variable</span> <span class="pl-k">end</span> <span class="pl-k">end</span> <span class="pl-k">end</span></pre></div> <p dir="auto">If it's hard to find these errors using my sample, you may run my project on your machine to obtain the same errors. It doesn't require some special environment fo run. I may provide you exact steps to reproduce it.</p> <p dir="auto">Thanks a lot. Julia is a great language ;)</p>
<p dir="auto">Hello,<br> I am seeing memory corruption when repeatedly using <code class="notranslate">@eval</code>. Here is some example code to reproduce it. I have it failing on both Julia 0.3 and 0.4 at around 33000 iterations, where the eval'ed function hits corruption.<br> Thanks!</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function to_function(code::Expr) @eval f() = $code return f end function get_code() r1 = rand() r2 = rand() Expr(:comparison, r1, :&lt;, r2) end using Debug @debug function script1() srand(0) for i = 1:100000 code = &quot;nothing&quot; try code = get_code() f = to_function(code) f() catch e println(e) @bp end println(&quot;$i: code=$(string(code))&quot;) end end"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">to_function</span>(code<span class="pl-k">::</span><span class="pl-c1">Expr</span>) <span class="pl-c1">@eval</span> <span class="pl-en">f</span>() <span class="pl-k">=</span> <span class="pl-k">$</span>code <span class="pl-k">return</span> f <span class="pl-k">end</span> <span class="pl-k">function</span> <span class="pl-en">get_code</span>() r1 <span class="pl-k">=</span> <span class="pl-c1">rand</span>() r2 <span class="pl-k">=</span> <span class="pl-c1">rand</span>() <span class="pl-c1">Expr</span>(<span class="pl-c1">:comparison</span>, r1, :<span class="pl-k">&lt;</span>, r2) <span class="pl-k">end</span> <span class="pl-k">using</span> Debug <span class="pl-c1">@debug</span> <span class="pl-k">function</span> <span class="pl-en">script1</span>() <span class="pl-c1">srand</span>(<span class="pl-c1">0</span>) <span class="pl-k">for</span> i <span class="pl-k">=</span> <span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">100000</span> code <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">"</span>nothing<span class="pl-pds">"</span></span> <span class="pl-k">try</span> code <span class="pl-k">=</span> <span class="pl-c1">get_code</span>() f <span class="pl-k">=</span> <span class="pl-c1">to_function</span>(code) <span class="pl-c1">f</span>() <span class="pl-k">catch</span> e <span class="pl-c1">println</span>(e) <span class="pl-c1">@bp</span> <span class="pl-k">end</span> <span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span><span class="pl-v">$i</span>: code=<span class="pl-v">$(<span class="pl-c1">string</span>(code))</span><span class="pl-pds">"</span></span>) <span class="pl-k">end</span> <span class="pl-k">end</span></pre></div>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/express-sessions</code> package and had problems.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the next stable version of tsc "typescript": "3.8.3"<br> I am tryng to use express-sessions in my app, but have next error after <strong>yarn add @types/express-sessions</strong><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/45014413/82153909-10e00800-9873-11ea-80ae-d27137e655a0.png"><img src="https://user-images.githubusercontent.com/45014413/82153909-10e00800-9873-11ea-80ae-d27137e655a0.png" alt="image" style="max-width: 100%;"></a><br> Can anybodt help me? ts version: 3.8.3, express version: 4.17.1 <ul dir="auto"> <li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/TheHandsomeCoder/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/TheHandsomeCoder">@TheHandsomeCoder</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/donnut/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/donnut">@donnut</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mdekrey/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mdekrey">@mdekrey</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mrdziuban/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mrdziuban">@mrdziuban</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sbking/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sbking">@sbking</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/afharo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/afharo">@afharo</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/teves-castro/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/teves-castro">@teves-castro</a>, @1M0reBug, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/hojberg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/hojberg">@hojberg</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/samsonkeung/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/samsonkeung">@samsonkeung</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/angeloocana/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/angeloocana">@angeloocana</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/raynerd/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/raynerd">@raynerd</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/moshensky/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/moshensky">@moshensky</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ethanresnick/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ethanresnick">@ethanresnick</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/deftomat/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/deftomat">@deftomat</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/blimusiek/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/blimusiek">@blimusiek</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/biern/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/biern">@biern</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rayhaneh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rayhaneh">@rayhaneh</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rgm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rgm">@rgm</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/drewwyatt/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/drewwyatt">@drewwyatt</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jottenlips/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jottenlips">@jottenlips</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/minitesh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/minitesh">@minitesh</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Krantisinh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Krantisinh">@Krantisinh</a>, @pirix-gh, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/brekk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/brekk">@brekk</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Nemo108/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Nemo108">@Nemo108</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jituanlin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jituanlin">@jituanlin</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Philippe-mills/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Philippe-mills">@Philippe-mills</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Saul-Mirone/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Saul-Mirone">@Saul-Mirone</a></li> </ul> </li> </ul> <p dir="auto">If you do not mention the authors the issue will be ignored.</p>
<p dir="auto">Hi! Have next dep in my package.json file: "express": "4.17.1", "@types/express": "4.17.3", "express-session": "1.17.1".<br> Now I'm trying to add "@types/express-session": "1.17.0" but have the next errors in console.<br> Can anybody help me?<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/45014413/82150818-e46fc000-9861-11ea-9c72-b9d7f71f63a5.png"><img src="https://user-images.githubusercontent.com/45014413/82150818-e46fc000-9861-11ea-9c72-b9d7f71f63a5.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/45014413/82150715-9e1a6100-9861-11ea-9061-05b0bd6f9f12.png"><img src="https://user-images.githubusercontent.com/45014413/82150715-9e1a6100-9861-11ea-9061-05b0bd6f9f12.png" alt="image" style="max-width: 100%;"></a></p> <ul dir="auto"> <li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/TheHandsomeCoder/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/TheHandsomeCoder">@TheHandsomeCoder</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/donnut/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/donnut">@donnut</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mdekrey/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mdekrey">@mdekrey</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mrdziuban/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mrdziuban">@mrdziuban</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sbking/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sbking">@sbking</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/afharo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/afharo">@afharo</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/teves-castro/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/teves-castro">@teves-castro</a>, @1M0reBug, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/hojberg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/hojberg">@hojberg</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/samsonkeung/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/samsonkeung">@samsonkeung</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/angeloocana/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/angeloocana">@angeloocana</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/raynerd/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/raynerd">@raynerd</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/moshensky/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/moshensky">@moshensky</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ethanresnick/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ethanresnick">@ethanresnick</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/deftomat/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/deftomat">@deftomat</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/blimusiek/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/blimusiek">@blimusiek</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/biern/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/biern">@biern</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rayhaneh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rayhaneh">@rayhaneh</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rgm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rgm">@rgm</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/drewwyatt/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/drewwyatt">@drewwyatt</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jottenlips/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jottenlips">@jottenlips</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/minitesh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/minitesh">@minitesh</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Krantisinh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Krantisinh">@Krantisinh</a>, @pirix-gh, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/brekk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/brekk">@brekk</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Nemo108/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Nemo108">@Nemo108</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jituanlin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jituanlin">@jituanlin</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Philippe-mills/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Philippe-mills">@Philippe-mills</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Saul-Mirone/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Saul-Mirone">@Saul-Mirone</a></li> </ul>
1
<p dir="auto">It is required to obtain Lagrangian multipliers while optimizing a linear programming problem. Kindly help.</p> <p dir="auto">Best regards,<br> Bharat</p>
<p dir="auto">I have a huge linprog problem of almost 1k variables and restrictions. I can calculate the solution with scipy.optimize.linprog(method='simplex') but I need shadow prices (or opportunity costs / duals) of ~100 inequalities.</p> <p dir="auto">I'm able to calculate them by adding 1 to the right side of the inequality and then solving that problem. Then I get the shadow price substracting the objective functions values for both solutions: shadow_price_i = f_max_original - f_max_i. Then repeat 100 times. This method works but it's painfully slow (1h). Note: I could also pose the dual problem and solve it</p> <p dir="auto">It's a shame that scipy does not return duals, so I'm opening a feature request. I'm new contributing to open projects, but I'm a CS graduate and have experience with both python and the simplex method, so I may be able to do so with some guidance.</p>
1
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong><br> Can't use qt4agg, error reported below.</p> <p dir="auto">Downgrade to matplotlib 3.1.3 solves the problem.</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 as mpl mpl.use('qt4agg')"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">as</span> <span class="pl-s1">mpl</span> <span class="pl-s1">mpl</span>.<span class="pl-en">use</span>(<span class="pl-s">'qt4agg'</span>)</pre></div> <p dir="auto">Or, set it to Qt4Agg in <code class="notranslate">matplotlibrc</code> file.</p> <p dir="auto"><strong>Actual outcome</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ImportError: cannot import name '_isdeleted' Failed to enable GUI event loop integration for 'qt5'"><pre class="notranslate"><code class="notranslate">ImportError: cannot import name '_isdeleted' Failed to enable GUI event loop integration for 'qt5' </code></pre></div> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: win 10 LTSC 2019</li> <li>Matplotlib version: 3.2.1</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): can only use TkAgg</li> <li>Python version: 3.6</li> </ul>
<h3 dir="auto">Bug report</h3> <p dir="auto">After updating to latest version (3.2.1) I started getting this error:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Paste your code here from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas &gt;&gt;&gt;from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas Traceback (most recent call last): File &quot;&lt;pyshell#0&gt;&quot;, line 1, in &lt;module&gt; from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas File &quot;C:\Python37-32\lib\site-packages\matplotlib\backends\backend_qt4agg.py&quot;, line 5, in &lt;module&gt; from .backend_qt5agg import ( File &quot;C:\Python37-32\lib\site-packages\matplotlib\backends\backend_qt5agg.py&quot;, line 11, in &lt;module&gt; from .backend_qt5 import ( File &quot;C:\Python37-32\lib\site-packages\matplotlib\backends\backend_qt5.py&quot;, line 19, in &lt;module&gt; from .qt_compat import ( ImportError: cannot import name '_isdeleted' from 'matplotlib.backends.qt_compat' (C:\Python37-32\lib\site-packages\matplotlib\backends\qt_compat.py) "><pre class="notranslate"><span class="pl-c"># Paste your code here</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">backends</span>.<span class="pl-s1">backend_qt4agg</span> <span class="pl-k">import</span> <span class="pl-v">FigureCanvasQTAgg</span> <span class="pl-k">as</span> <span class="pl-v">FigureCanvas</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span><span class="pl-k">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">backends</span>.<span class="pl-s1">backend_qt4agg</span> <span class="pl-k">import</span> <span class="pl-v">FigureCanvasQTAgg</span> <span class="pl-k">as</span> <span class="pl-v">FigureCanvas</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;pyshell#0&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-s1">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">backends</span>.<span class="pl-s1">backend_qt4agg</span> <span class="pl-s1">import</span> <span class="pl-v">FigureCanvasQTAgg</span> <span class="pl-k">as</span> <span class="pl-v">FigureCanvas</span> <span class="pl-v">File</span> <span class="pl-s">"C:\Python37-32\lib\site-packages\matplotlib<span class="pl-cce">\b</span>ackends<span class="pl-cce">\b</span>ackend_qt4agg.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">5</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-s1">from</span> .<span class="pl-s1">backend_qt5agg</span> <span class="pl-s1">import</span> ( <span class="pl-v">File</span> <span class="pl-s">"C:\Python37-32\lib\site-packages\matplotlib<span class="pl-cce">\b</span>ackends<span class="pl-cce">\b</span>ackend_qt5agg.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">11</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-s1">from</span> .<span class="pl-s1">backend_qt5</span> <span class="pl-s1">import</span> ( <span class="pl-v">File</span> <span class="pl-s">"C:\Python37-32\lib\site-packages\matplotlib<span class="pl-cce">\b</span>ackends<span class="pl-cce">\b</span>ackend_qt5.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">19</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-s1">from</span> .<span class="pl-s1">qt_compat</span> <span class="pl-s1">import</span> ( <span class="pl-v">ImportError</span>: <span class="pl-s1">cannot</span> <span class="pl-k">import</span> <span class="pl-s1">name</span> <span class="pl-s">'_isdeleted'</span> <span class="pl-s1">from</span> <span class="pl-s">'matplotlib.backends.qt_compat'</span> (<span class="pl-v">C</span>:\P<span class="pl-s1">ython37</span><span class="pl-c1">-</span><span class="pl-c1">32</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>\m<span class="pl-s1">atplotlib</span>\b<span class="pl-s1">ackends</span>\q<span class="pl-s1">t_compat</span>.<span class="pl-s1">py</span>)</pre></div> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: Windows 10</li> <li>Matplotlib version: 3.2.1</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>):TkAgg</li> <li>Python version:3.7.6 (32Bit)</li> <li>Jupyter version (if applicable):</li> <li>Other libraries:<br> altgraph 0.17<br> astroid 2.3.3<br> colorama 0.4.3<br> cx-Freeze 6.1<br> cycler 0.10.0<br> future 0.18.2<br> isort 4.3.21<br> joblib 0.14.1<br> kiwisolver 1.1.0<br> lazy-object-proxy 1.4.3<br> matplotlib 3.2.1<br> mccabe 0.6.1<br> mpmath 1.1.0<br> numpy 1.18.2+mkl<br> pandas 1.0.3<br> pefile 2019.4.18<br> pip 20.0.2<br> psutil 5.7.0<br> PyInstaller 4.0.dev0+d08a42c612<br> pylint 2.4.4<br> pyparsing 2.4.6<br> PyQt4 4.11.4<br> PyQt5-sip 12.7.1<br> python-dateutil 2.8.1<br> pytz 2019.3<br> pywin32-ctypes 0.2.0<br> scikit-learn 0.22.2.post1<br> scipy 1.4.1<br> setuptools 46.0.0<br> six 1.14.0<br> tailer 0.4.1<br> typed-ast 1.4.1<br> wrapt 1.12.1<br> xlrd 1.2.0<br> XlsxWriter 1.2.8</li> </ul>
1
<p dir="auto">Hi,<br> First of all, thank you very much for an awesome library.<br> I switched from Picasso to Glide, and I like Glide more than Picasso. However,<br> I've noticed that Glide would load the old image (deleted) instead of the new image.</p> <p dir="auto">For example,<br> I have the following images on my listview:<br> Image1<br> Image2<br> Image3<br> etc.</p> <p dir="auto">I deleted Image1, and renamed Image2 to Image1.<br> Glide would display the old picture of Image1 which was deleted instead of Image2 picture.</p> <p dir="auto">I went online and searched for the solution, they said that I can clear the caches with the following:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public void Clear_GlideCaches() { new Handler().postDelayed(new Runnable() { @Override public void run() { Glide.get(MainActivity.this).clearMemory(); }}, 0); AsyncTask.execute(new Runnable() { @Override public void run() { Glide.get(MainActivity.this).clearDiskCache(); } }); }"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-s1">Clear_GlideCaches</span>() { <span class="pl-k">new</span> <span class="pl-smi">Handler</span>().<span class="pl-en">postDelayed</span>(<span class="pl-k">new</span> <span class="pl-smi">Runnable</span>() { <span class="pl-c1">@</span><span class="pl-c1">Override</span> <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">run</span>() { <span class="pl-smi">Glide</span>.<span class="pl-en">get</span>(<span class="pl-smi">MainActivity</span>.<span class="pl-smi">this</span>).<span class="pl-en">clearMemory</span>(); }}, <span class="pl-c1">0</span>); <span class="pl-smi">AsyncTask</span>.<span class="pl-en">execute</span>(<span class="pl-k">new</span> <span class="pl-smi">Runnable</span>() { <span class="pl-c1">@</span><span class="pl-c1">Override</span> <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">run</span>() { <span class="pl-smi">Glide</span>.<span class="pl-en">get</span>(<span class="pl-smi">MainActivity</span>.<span class="pl-smi">this</span>).<span class="pl-en">clearDiskCache</span>(); } }); }</pre></div> <p dir="auto">This solution didn't seem to work for my situation as Glide still loads the old deleted images.</p> <p dir="auto">Here is my listview adapter:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Override public View getView(int position, View recycledView, ViewGroup container) { ViewHolder viewHolder = new ViewHolder(); LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); if (recycledView == null) { recycledView = inflater.inflate(R.layout.listview_layout, container, false); viewHolder.layout = (RelativeLayout)recycledView.findViewById(R.id.ListViewLayout); viewHolder.imageView = (ImageView)recycledView.findViewById(R.id.ListViewImage); recycledView.setTag(viewHolder); } else { viewHolder = (ViewHolder)recycledView.getTag(); } Glide .with(mContext) .load(getItem(position).getImageUri()) .centerCrop() .placeholder(R.color.black) .crossFade() .into(viewHolder.imageView); return recycledView; } class ViewHolder { RelativeLayout layout; ImageView imageView; }"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">Override</span> <span class="pl-k">public</span> <span class="pl-smi">View</span> <span class="pl-s1">getView</span>(<span class="pl-smi">int</span> <span class="pl-s1">position</span>, <span class="pl-smi">View</span> <span class="pl-s1">recycledView</span>, <span class="pl-smi">ViewGroup</span> <span class="pl-s1">container</span>) { <span class="pl-smi">ViewHolder</span> <span class="pl-s1">viewHolder</span> = <span class="pl-k">new</span> <span class="pl-smi">ViewHolder</span>(); <span class="pl-smi">LayoutInflater</span> <span class="pl-s1">inflater</span> = (<span class="pl-smi">LayoutInflater</span>) <span class="pl-s1">mContext</span>.<span class="pl-en">getSystemService</span>(<span class="pl-smi">Context</span>.<span class="pl-c1">LAYOUT_INFLATER_SERVICE</span>); <span class="pl-k">if</span> (<span class="pl-s1">recycledView</span> == <span class="pl-c1">null</span>) { <span class="pl-s1">recycledView</span> = <span class="pl-s1">inflater</span>.<span class="pl-en">inflate</span>(<span class="pl-smi">R</span>.<span class="pl-s1">layout</span>.<span class="pl-s1">listview_layout</span>, <span class="pl-s1">container</span>, <span class="pl-c1">false</span>); <span class="pl-s1">viewHolder</span>.<span class="pl-s1">layout</span> = (<span class="pl-smi">RelativeLayout</span>)<span class="pl-s1">recycledView</span>.<span class="pl-en">findViewById</span>(<span class="pl-smi">R</span>.<span class="pl-s1">id</span>.<span class="pl-s1">ListViewLayout</span>); <span class="pl-s1">viewHolder</span>.<span class="pl-s1">imageView</span> = (<span class="pl-smi">ImageView</span>)<span class="pl-s1">recycledView</span>.<span class="pl-en">findViewById</span>(<span class="pl-smi">R</span>.<span class="pl-s1">id</span>.<span class="pl-s1">ListViewImage</span>); <span class="pl-s1">recycledView</span>.<span class="pl-en">setTag</span>(<span class="pl-s1">viewHolder</span>); } <span class="pl-k">else</span> { <span class="pl-s1">viewHolder</span> = (<span class="pl-smi">ViewHolder</span>)<span class="pl-s1">recycledView</span>.<span class="pl-en">getTag</span>(); } <span class="pl-smi">Glide</span> .<span class="pl-en">with</span>(<span class="pl-s1">mContext</span>) .<span class="pl-en">load</span>(<span class="pl-en">getItem</span>(<span class="pl-s1">position</span>).<span class="pl-en">getImageUri</span>()) .<span class="pl-en">centerCrop</span>() .<span class="pl-en">placeholder</span>(<span class="pl-smi">R</span>.<span class="pl-s1">color</span>.<span class="pl-s1">black</span>) .<span class="pl-en">crossFade</span>() .<span class="pl-en">into</span>(<span class="pl-s1">viewHolder</span>.<span class="pl-s1">imageView</span>); <span class="pl-k">return</span> <span class="pl-s1">recycledView</span>; } <span class="pl-k">class</span> <span class="pl-smi">ViewHolder</span> { <span class="pl-smi">RelativeLayout</span> <span class="pl-s1">layout</span>; <span class="pl-smi">ImageView</span> <span class="pl-s1">imageView</span>; }</pre></div> <p dir="auto">On Picasso,<br> I was able to clear the image cache for specific image without any issues.</p> <p dir="auto">Here is the code:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public class ClearPicassoCaches { public static void clearCache (Picasso p) { p.cache.clear(); } }"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">ClearPicassoCaches</span> { <span class="pl-k">public</span> <span class="pl-k">static</span> <span class="pl-smi">void</span> <span class="pl-en">clearCache</span> (<span class="pl-smi">Picasso</span> <span class="pl-s1">p</span>) { <span class="pl-s1">p</span>.<span class="pl-s1">cache</span>.<span class="pl-en">clear</span>(); } }</pre></div> <p dir="auto">In ListView Adapter:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public void RefreshPicassoCache(String path) { Picasso.with(mContext).invalidate(&quot;file:///&quot; + path); }"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-s1">RefreshPicassoCache</span>(<span class="pl-smi">String</span> <span class="pl-s1">path</span>) { <span class="pl-smi">Picasso</span>.<span class="pl-en">with</span>(<span class="pl-s1">mContext</span>).<span class="pl-en">invalidate</span>(<span class="pl-s">"file:///"</span> + <span class="pl-s1">path</span>); }</pre></div> <p dir="auto">In MainActivity:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="listViewAdapter.RefreshPicassoCache(NewPath); //to refresh the specific image cache."><pre class="notranslate"><span class="pl-s1">listViewAdapter</span>.<span class="pl-en">RefreshPicassoCache</span>(<span class="pl-s1">NewPath</span>); <span class="pl-c">//to refresh the specific image cache.</span></pre></div> <p dir="auto">My questions are:</p> <p dir="auto">1)is there a way to refresh (reset) the cache for specific image?<br> 2) is there anyway I can clear the Glide caches, so that it won't display the old deleted images when the deleted and the new images have the same name.?</p> <p dir="auto">I am testing my app on Android 5.1.1 (Lollittlepoop), GN4<br> <strong>Glide Version</strong>: 3.7.0</p> <p dir="auto">I hope someone can help me,</p> <p dir="auto">Thank you very much</p>
<p dir="auto">Hi,<br> How can I clear Glide's cache in case.</p> <ul dir="auto"> <li>Clear all cache</li> <li>Clear cache of an URL.</li> </ul>
1
<p dir="auto">These aren't documented anywhere and it's unclear how they're different from <code class="notranslate">torch::save</code></p>
<p dir="auto">These APIs aren't going anywhere as far as I know, but <a href="https://pytorch.org/cppdocs/api/function_namespacetorch_1a55eb95ea00888978ee53f366ec875c62.html?highlight=pickle_save" rel="nofollow">they have no descriptions or usage instructions</a></p> <p dir="auto">They have some documentation here but that's nowhere on the website:<br> <a href="https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/serialization/pickle.h">https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/serialization/pickle.h</a></p> <p dir="auto">And some usages are in the tests but aren't very user-discoverable:</p> <ul dir="auto"> <li><a href="https://github.com/pytorch/pytorch/blob/master/test/cpp/api/jit.cpp#L120">https://github.com/pytorch/pytorch/blob/master/test/cpp/api/jit.cpp#L120</a></li> <li><a href="https://github.com/pytorch/pytorch/blob/master/test/cpp/jit/test_save_load.cpp#L121">https://github.com/pytorch/pytorch/blob/master/test/cpp/jit/test_save_load.cpp#L121</a></li> <li><a href="https://github.com/pytorch/pytorch/blob/master/test/cpp/jit/torch_python_test.cpp#L44-L54">https://github.com/pytorch/pytorch/blob/master/test/cpp/jit/torch_python_test.cpp#L44-L54</a></li> </ul> <p dir="auto">Tagging the JIT team to see if there are any plans for these APIs</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gmagogsfm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gmagogsfm">@gmagogsfm</a></p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=giovanni.dalloglio" rel="nofollow">Giovanni Dall'Oglio Risso</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8716?redirect=false" rel="nofollow">SPR-8716</a></strong> and commented</p> <p dir="auto">The number comparison can be more accurate with BigDecimals (possibly also BigIntegers) and other number types:</p> <p dir="auto">This test fail, becouse the BigDecimal is converted to Integer, truncating the value to zero:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" @Test public void testGT() throws Exception { ExpressionParser ep = new SpelExpressionParser(); Expression expression = ep.parseExpression(&quot;new java.math.BigDecimal('0.1') &gt; 0&quot;); Boolean value = expression.getValue(Boolean.class); Assert.assertTrue(value); }"><pre class="notranslate"><code class="notranslate"> @Test public void testGT() throws Exception { ExpressionParser ep = new SpelExpressionParser(); Expression expression = ep.parseExpression("new java.math.BigDecimal('0.1') &gt; 0"); Boolean value = expression.getValue(Boolean.class); Assert.assertTrue(value); } </code></pre></div> <p dir="auto">The responsible is the class org.springframework.expression.spel.ast.<strong>OpGT</strong> (but all the similar classes has the same imprinting)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Override public BooleanTypedValue getValueInternal(ExpressionState state) throws EvaluationException { Object left = getLeftOperand().getValueInternal(state).getValue(); Object right = getRightOperand().getValueInternal(state).getValue(); if (left instanceof Number &amp;&amp; right instanceof Number) { Number leftNumber = (Number) left; Number rightNumber = (Number) right; if (leftNumber instanceof Double || rightNumber instanceof Double) { return BooleanTypedValue.forValue(leftNumber.doubleValue() &gt; rightNumber.doubleValue()); } else if (leftNumber instanceof Long || rightNumber instanceof Long) { return BooleanTypedValue.forValue(leftNumber.longValue() &gt; rightNumber.longValue()); } else { return BooleanTypedValue.forValue(leftNumber.intValue() &gt; rightNumber.intValue()); } } return BooleanTypedValue.forValue(state.getTypeComparator().compare(left, right) &gt; 0); }"><pre class="notranslate"><code class="notranslate">@Override public BooleanTypedValue getValueInternal(ExpressionState state) throws EvaluationException { Object left = getLeftOperand().getValueInternal(state).getValue(); Object right = getRightOperand().getValueInternal(state).getValue(); if (left instanceof Number &amp;&amp; right instanceof Number) { Number leftNumber = (Number) left; Number rightNumber = (Number) right; if (leftNumber instanceof Double || rightNumber instanceof Double) { return BooleanTypedValue.forValue(leftNumber.doubleValue() &gt; rightNumber.doubleValue()); } else if (leftNumber instanceof Long || rightNumber instanceof Long) { return BooleanTypedValue.forValue(leftNumber.longValue() &gt; rightNumber.longValue()); } else { return BooleanTypedValue.forValue(leftNumber.intValue() &gt; rightNumber.intValue()); } } return BooleanTypedValue.forValue(state.getTypeComparator().compare(left, right) &gt; 0); } </code></pre></div> <p dir="auto">In order you:</p> <ul dir="auto"> <li>check if is a Double</li> <li>check if is a Long</li> <li>treat it as an Integer</li> </ul> <p dir="auto">I attach my modest suggestion</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.5</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/18819/OpGT.java" rel="nofollow">OpGT.java</a> (<em>3.08 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="398117559" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13802" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13802/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13802">#13802</a> Support BigDecimals with SpEL (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=obecker" rel="nofollow">Oliver Becker</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9164?redirect=false" rel="nofollow">SPR-9164</a></strong> and commented</p> <p dir="auto">When doing number arithmetic in SpEL the result type is apparently one of double, long or int.<br> This has the unwanted effect that for example float or BigDecimal values will be changed to int.</p> <p dir="auto">new java.math.BigDecimal("12.34")<br> evaluates to 12.34</p> <p dir="auto">-(new java.math.BigDecimal("12.34"))<br> evaluates to -12</p> <p dir="auto">see org.springframework.expression.spel.ast<br> OpPlus, OpMinus, OpMultiply, OpDivide</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1.1</p> <p dir="auto"><strong>Reference URL:</strong> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="4587405" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/80" data-hovercard-type="pull_request" data-hovercard-url="/spring-projects/spring-framework/pull/80/hovercard" href="https://github.com/spring-projects/spring-framework/pull/80">#80</a></p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/19821/SpELFloatLiteralTest.java" rel="nofollow">SpELFloatLiteralTest.java</a> (<em>1.24 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="398114688" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13358" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13358/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13358">#13358</a> Expression language not compare BigDecimals with integers (<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="398117750" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13832" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13832/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13832">#13832</a> SpEL: OpEQ should use equals()</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398164627" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/15943" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/15943/hovercard" href="https://github.com/spring-projects/spring-framework/issues/15943">#15943</a> Downgrade accidental use of Java 1.7 APIs</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398151045" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14121" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14121/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14121">#14121</a> Add SpEL support for float literals</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398154260" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14546" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14546/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14546">#14546</a> SpEL's arithmetic operations should explicitly detect BigInteger/Short/Byte and fall back to double handling for unknown Number subtypes</li> </ul> <p dir="auto">1 votes, 7 watchers</p>
1
<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>: macOS High Sierra 10.13.2</li> <li><strong>TensorFlow installed from (source or binary)</strong>: source</li> <li><strong>TensorFlow version (use command below)</strong>: tf 1.4</li> <li><strong>Python version</strong>: 3.6.3</li> <li><strong>Bazel version (if compiling from source)</strong>: 0.9.0</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>: Apple LLVM version 9.0.0 (clang-900.0.39.2)</li> <li><strong>Exact command to reproduce</strong>: bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=- msse4.1 --copt=-msse4.2 --config=opt -k //tensorflow/tools/pip_package:build_pip_package</li> </ul> <h3 dir="auto">Describe the problem</h3> <p dir="auto">I'm unable to compile tensorflow from source. I get too many errors as shown below in the logs:</p> <h3 dir="auto">Source code / logs</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Rakshiths-MacBook-Pro:tensorflow rakshithgb$ ./configure WARNING: Running Bazel server needs to be killed, because the startup options are different. You have bazel 0.9.0-homebrew installed. Please specify the location of python. [Default is /Users/rakshithgb/miniconda3/bin/python]: Found possible Python library paths: /Users/rakshithgb/miniconda3/lib/python3.6/site-packages Please input the desired Python library path to use. Default is [/Users/rakshithgb/miniconda3/lib/python3.6/site-packages] Do you wish to build TensorFlow with Google Cloud Platform support? [Y/n]: n No Google Cloud Platform support will be enabled for TensorFlow. Do you wish to build TensorFlow with Hadoop File System support? [Y/n]: n No Hadoop File System support will be enabled for TensorFlow. Do you wish to build TensorFlow with Amazon S3 File System support? [Y/n]: n No Amazon S3 File System support will be enabled for TensorFlow. Do you wish to build TensorFlow with XLA JIT support? [y/N]: n No XLA JIT support will be enabled for TensorFlow. Do you wish to build TensorFlow with GDR support? [y/N]: n No GDR support will be enabled for TensorFlow. Do you wish to build TensorFlow with VERBS support? [y/N]: n No VERBS support will be enabled for TensorFlow. Do you wish to build TensorFlow with OpenCL support? [y/N]: n No OpenCL support will be enabled for TensorFlow. Do you wish to build TensorFlow with CUDA support? [y/N]: n No CUDA support will be enabled for TensorFlow. Do you wish to build TensorFlow with MPI support? [y/N]: n No MPI support will be enabled for TensorFlow. Please specify optimization flags to use during compilation when bazel option &quot;--config=opt&quot; is specified [Default is -march=native]: Add &quot;--config=mkl&quot; to your bazel command to build with MKL support. Please note that MKL on MacOS or windows is still not supported. If you would like to use a local MKL instead of downloading, please set the environment variable &quot;TF_MKL_ROOT&quot; every time before build. Configuration finished Rakshiths-MacBook-Pro:tensorflow rakshithgb$ bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=- msse4.1 --copt=-msse4.2 --config=opt -k //tensorflow/tools/pip_package:build_pip_package .............. ERROR: Skipping 'msse4.1': no such target '//:msse4.1': target 'msse4.1' not declared in package '' defined by /Users/rakshithgb/Documents/Tensorflow/tensorflow/BUILD WARNING: Target pattern parsing failed. ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/local_config_sycl/sycl/BUILD:4:1: First argument of 'load' must be a label and start with either '//', ':', or '@'. Use --incompatible_load_argument_is_label=false to temporarily disable this check. ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/local_config_sycl/sycl/BUILD:6:1: First argument of 'load' must be a label and start with either '//', ':', or '@'. Use --incompatible_load_argument_is_label=false to temporarily disable this check. ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/local_config_sycl/sycl/BUILD:30:9: Traceback (most recent call last): File &quot;/private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/local_config_sycl/sycl/BUILD&quot;, line 27 cc_library(name = &quot;syclrt&quot;, srcs = [sycl_libr...&quot;)], &lt;3 more arguments&gt;) File &quot;/private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/local_config_sycl/sycl/BUILD&quot;, line 30, in cc_library sycl_library_path name 'sycl_library_path' is not defined ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/local_config_sycl/sycl/BUILD:39:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '@local_config_sycl//sycl:sycl' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:96:1: First argument of 'load' must be a label and start with either '//', ':', or '@'. Use --incompatible_load_argument_is_label=false to temporarily disable this check. ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:98:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:100:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:102:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:104:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:106:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:108:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:110:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:112:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:114:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:116:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:118:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:120:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:122:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:124:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:126:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:131:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:136:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:141:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:146:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:151:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/bitmap256.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/bitstate.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/compile.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/dfa.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/filtered_re2.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/mimics_pcre.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/nfa.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/onepass.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/parse.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/perl_groups.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/prefilter.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/prefilter.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/prefilter_tree.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/prefilter_tree.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/prog.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/prog.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/re2.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/regexp.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/regexp.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/set.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/simplify.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/stringpiece.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/tostring.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/unicode_casefold.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/unicode_casefold.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/unicode_groups.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/unicode_groups.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/walker-inl.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/flags.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/logging.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/mix.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/mutex.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/rune.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/sparse_array.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/sparse_set.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/strutil.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/strutil.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/utf.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/util.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/filtered_re2.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/re2.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/set.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/stringpiece.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/platform/default/build_config/BUILD:115:1: Target '@com_googlesource_code_re2//:re2' contains an error and its package is in error and referenced by '//tensorflow/core/platform/default/build_config:platformlib' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/third_party/eigen3/BUILD:20:1: Target '@local_config_sycl//sycl:sycl' contains an error and its package is in error and referenced by '//third_party/eigen3:eigen3' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:3169:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:pooling_ops' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:3798:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:variable_ops' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:717:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:compare_and_bitpack_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:3776:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:scatter_nd_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:3764:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:dense_update_ops' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:643:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:gather_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:607:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:bitcast_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:619:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:constant_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:625:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:diag_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:631:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:edit_distance_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:687:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:mirror_pad_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:711:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:quantize_and_dequantize_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:787:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:split_v_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:774:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:slice_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:3770:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:scatter_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:3758:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:count_up_to_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/BUILD:2215:1: Target '@local_config_sycl//sycl:sycl' contains an error and its package is in error and referenced by '//tensorflow/core:sycl_runtime' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:780:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:split_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:681:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:matrix_set_diag_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:601:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:bcast_ops' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:756:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:reverse_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:699:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:pack_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:813:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:transpose_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:705:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:pad_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:693:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:one_hot_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:649:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:identity_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:661:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:listdiff_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:533:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:immutable_constant_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:655:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:identity_n_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:613:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:concat_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:675:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:matrix_diag_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:839:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:where_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:762:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:reverse_sequence_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:794:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:inplace_ops' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:827:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:unique_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:768:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:shape_ops' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:667:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:matrix_band_part_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:637:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:gather_nd_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:750:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:reshape_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:800:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:tile_ops' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:833:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:unpack_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:550:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:debug_ops' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/tools/pip_package/BUILD:101:1: Target '@com_googlesource_code_re2//:LICENSE' contains an error and its package is in error and referenced by '//tensorflow/tools/pip_package:licenses' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/tools/pip_package/BUILD:101:1: Target '@local_config_sycl//sycl:LICENSE.text' contains an error and its package is in error and referenced by '//tensorflow/tools/pip_package:licenses' WARNING: errors encountered while analyzing target '//tensorflow/tools/pip_package:build_pip_package': it will not be built INFO: Analysed target //tensorflow/tools/pip_package:build_pip_package (204 packages loaded). INFO: Found 0 targets... ERROR: command succeeded, but there were errors parsing the target pattern INFO: Elapsed time: 51.902s, Critical Path: 0.02s FAILED: Build did NOT complete successfully"><pre class="notranslate"><code class="notranslate">Rakshiths-MacBook-Pro:tensorflow rakshithgb$ ./configure WARNING: Running Bazel server needs to be killed, because the startup options are different. You have bazel 0.9.0-homebrew installed. Please specify the location of python. [Default is /Users/rakshithgb/miniconda3/bin/python]: Found possible Python library paths: /Users/rakshithgb/miniconda3/lib/python3.6/site-packages Please input the desired Python library path to use. Default is [/Users/rakshithgb/miniconda3/lib/python3.6/site-packages] Do you wish to build TensorFlow with Google Cloud Platform support? [Y/n]: n No Google Cloud Platform support will be enabled for TensorFlow. Do you wish to build TensorFlow with Hadoop File System support? [Y/n]: n No Hadoop File System support will be enabled for TensorFlow. Do you wish to build TensorFlow with Amazon S3 File System support? [Y/n]: n No Amazon S3 File System support will be enabled for TensorFlow. Do you wish to build TensorFlow with XLA JIT support? [y/N]: n No XLA JIT support will be enabled for TensorFlow. Do you wish to build TensorFlow with GDR support? [y/N]: n No GDR support will be enabled for TensorFlow. Do you wish to build TensorFlow with VERBS support? [y/N]: n No VERBS support will be enabled for TensorFlow. Do you wish to build TensorFlow with OpenCL support? [y/N]: n No OpenCL support will be enabled for TensorFlow. Do you wish to build TensorFlow with CUDA support? [y/N]: n No CUDA support will be enabled for TensorFlow. Do you wish to build TensorFlow with MPI support? [y/N]: n No MPI support will be enabled for TensorFlow. Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -march=native]: Add "--config=mkl" to your bazel command to build with MKL support. Please note that MKL on MacOS or windows is still not supported. If you would like to use a local MKL instead of downloading, please set the environment variable "TF_MKL_ROOT" every time before build. Configuration finished Rakshiths-MacBook-Pro:tensorflow rakshithgb$ bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=- msse4.1 --copt=-msse4.2 --config=opt -k //tensorflow/tools/pip_package:build_pip_package .............. ERROR: Skipping 'msse4.1': no such target '//:msse4.1': target 'msse4.1' not declared in package '' defined by /Users/rakshithgb/Documents/Tensorflow/tensorflow/BUILD WARNING: Target pattern parsing failed. ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/local_config_sycl/sycl/BUILD:4:1: First argument of 'load' must be a label and start with either '//', ':', or '@'. Use --incompatible_load_argument_is_label=false to temporarily disable this check. ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/local_config_sycl/sycl/BUILD:6:1: First argument of 'load' must be a label and start with either '//', ':', or '@'. Use --incompatible_load_argument_is_label=false to temporarily disable this check. ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/local_config_sycl/sycl/BUILD:30:9: Traceback (most recent call last): File "/private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/local_config_sycl/sycl/BUILD", line 27 cc_library(name = "syclrt", srcs = [sycl_libr...")], &lt;3 more arguments&gt;) File "/private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/local_config_sycl/sycl/BUILD", line 30, in cc_library sycl_library_path name 'sycl_library_path' is not defined ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/local_config_sycl/sycl/BUILD:39:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '@local_config_sycl//sycl:sycl' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:96:1: First argument of 'load' must be a label and start with either '//', ':', or '@'. Use --incompatible_load_argument_is_label=false to temporarily disable this check. ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:98:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:100:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:102:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:104:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:106:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:108:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:110:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:112:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:114:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:116:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:118:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:120:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:122:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:124:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:126:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:131:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:136:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:141:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:146:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:151:1: name 're2_test' is not defined (did you mean 'ios_test'?) ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/bitmap256.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/bitstate.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/compile.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/dfa.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/filtered_re2.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/mimics_pcre.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/nfa.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/onepass.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/parse.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/perl_groups.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/prefilter.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/prefilter.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/prefilter_tree.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/prefilter_tree.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/prog.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/prog.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/re2.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/regexp.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/regexp.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/set.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/simplify.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/stringpiece.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/tostring.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/unicode_casefold.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/unicode_casefold.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/unicode_groups.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/unicode_groups.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/walker-inl.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/flags.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/logging.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/mix.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/mutex.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/rune.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/sparse_array.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/sparse_set.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/strutil.cc' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/strutil.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/utf.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:util/util.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/filtered_re2.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/re2.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/set.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /private/var/tmp/_bazel_rakshithgb/fde7bc60972656b0c2db4fd0b79e24fb/external/com_googlesource_code_re2/BUILD:11:1: Target '@com_googlesource_code_re2//:re2/stringpiece.h' contains an error and its package is in error and referenced by '@com_googlesource_code_re2//:re2' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/platform/default/build_config/BUILD:115:1: Target '@com_googlesource_code_re2//:re2' contains an error and its package is in error and referenced by '//tensorflow/core/platform/default/build_config:platformlib' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/third_party/eigen3/BUILD:20:1: Target '@local_config_sycl//sycl:sycl' contains an error and its package is in error and referenced by '//third_party/eigen3:eigen3' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:3169:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:pooling_ops' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:3798:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:variable_ops' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:717:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:compare_and_bitpack_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:3776:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:scatter_nd_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:3764:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:dense_update_ops' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:643:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:gather_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:607:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:bitcast_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:619:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:constant_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:625:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:diag_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:631:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:edit_distance_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:687:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:mirror_pad_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:711:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:quantize_and_dequantize_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:787:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:split_v_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:774:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:slice_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:3770:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:scatter_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:3758:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:count_up_to_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/BUILD:2215:1: Target '@local_config_sycl//sycl:sycl' contains an error and its package is in error and referenced by '//tensorflow/core:sycl_runtime' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:780:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:split_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:681:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:matrix_set_diag_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:601:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:bcast_ops' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:756:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:reverse_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:699:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:pack_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:813:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:transpose_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:705:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:pad_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:693:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:one_hot_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:649:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:identity_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:661:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:listdiff_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:533:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:immutable_constant_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:655:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:identity_n_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:613:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:concat_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:675:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:matrix_diag_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:839:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:where_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:762:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:reverse_sequence_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:794:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:inplace_ops' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:827:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:unique_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:768:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:shape_ops' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:667:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:matrix_band_part_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:637:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:gather_nd_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:750:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:reshape_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:800:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:tile_ops' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:833:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:unpack_op' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/core/kernels/BUILD:550:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '//tensorflow/core/kernels:debug_ops' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/tools/pip_package/BUILD:101:1: Target '@com_googlesource_code_re2//:LICENSE' contains an error and its package is in error and referenced by '//tensorflow/tools/pip_package:licenses' ERROR: /Users/rakshithgb/Documents/Tensorflow/tensorflow/tensorflow/tools/pip_package/BUILD:101:1: Target '@local_config_sycl//sycl:LICENSE.text' contains an error and its package is in error and referenced by '//tensorflow/tools/pip_package:licenses' WARNING: errors encountered while analyzing target '//tensorflow/tools/pip_package:build_pip_package': it will not be built INFO: Analysed target //tensorflow/tools/pip_package:build_pip_package (204 packages loaded). INFO: Found 0 targets... ERROR: command succeeded, but there were errors parsing the target pattern INFO: Elapsed time: 51.902s, Critical Path: 0.02s FAILED: Build did NOT complete successfully </code></pre></div>
<h3 dir="auto">System information</h3> <p dir="auto">Linux ubuntu 16.04<br> Bazel 0.9.0<br> CUDA 9.1<br> cuDNN 7<br> TF Branch r1.4</p> <p dir="auto">I am getting the following errors / warnings using the set-up above, whilst trying to build the python packages.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="francesco@franny:~/Repositories/tensorflow$ git checkout r1.4 Branch 'r1.4' set up to track remote branch 'r1.4' from 'origin'. Switched to a new branch 'r1.4' francesco@franny:~/Repositories/tensorflow$ ./configure Extracting Bazel installation... WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.protobuf.UnsafeUtil (file:/home/francesco/.cache/bazel/_bazel_francesco/install/754ae0b065b3dfe883541ff567ae8b5e/_embedded_binaries/A-server.jar) to field java.nio.Buffer.address WARNING: Please consider reporting this to the maintainers of com.google.protobuf.UnsafeUtil WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release You have bazel 0.9.0 installed. Please specify the location of python. [Default is /usr/bin/python]: Found possible Python library paths: /usr/local/lib/python2.7/dist-packages /usr/lib/python2.7/dist-packages Please input the desired Python library path to use. Default is [/usr/local/lib/python2.7/dist-packages] Do you wish to build TensorFlow with jemalloc as malloc support? [Y/n]: n No jemalloc as malloc support will be enabled for TensorFlow. Do you wish to build TensorFlow with Google Cloud Platform support? [Y/n]: n No Google Cloud Platform support will be enabled for TensorFlow. Do you wish to build TensorFlow with Hadoop File System support? [Y/n]: n No Hadoop File System support will be enabled for TensorFlow. Do you wish to build TensorFlow with Amazon S3 File System support? [Y/n]: n No Amazon S3 File System support will be enabled for TensorFlow. Do you wish to build TensorFlow with XLA JIT support? [y/N]: n No XLA JIT support will be enabled for TensorFlow. Do you wish to build TensorFlow with GDR support? [y/N]: n No GDR support will be enabled for TensorFlow. Do you wish to build TensorFlow with VERBS support? [y/N]: n No VERBS support will be enabled for TensorFlow. Do you wish to build TensorFlow with OpenCL support? [y/N]: n No OpenCL support will be enabled for TensorFlow. Do you wish to build TensorFlow with CUDA support? [y/N]: y CUDA support will be enabled for TensorFlow. Please specify the CUDA SDK version you want to use, e.g. 7.0. [Leave empty to default to CUDA 8.0]: 9.1 Please specify the location where CUDA 9.1 toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: Please specify the cuDNN version you want to use. [Leave empty to default to cuDNN 6.0]: 7 Please specify the location where cuDNN 7 library is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: Please specify a list of comma-separated Cuda compute capabilities you want to build with. You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus. Please note that each additional compute capability significantly increases your build time and binary size. [Default is: 3.5,5.2]5.2 Do you want to use clang as CUDA compiler? [y/N]: n nvcc will be used as CUDA compiler. Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/bin/gcc]: Do you wish to build TensorFlow with MPI support? [y/N]: n No MPI support will be enabled for TensorFlow. Please specify optimization flags to use during compilation when bazel option &quot;--config=opt&quot; is specified [Default is -march=native]: Add &quot;--config=mkl&quot; to your bazel command to build with MKL support. Please note that MKL on MacOS or windows is still not supported. If you would like to use a local MKL instead of downloading, please set the environment variable &quot;TF_MKL_ROOT&quot; every time before build. Configuration finished francesco@franny:~/Repositories/tensorflow$ francesco@franny:~/Repositories/tensorflow$ bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package ......... ERROR: /home/francesco/.cache/bazel/_bazel_francesco/4ce2bc3731d0d87739dc505f1772132b/external/local_config_sycl/sycl/BUILD:4:1: First argument of 'load' must be a label and start with either '//', ':', or '@'. Use --incompatible_load_argument_is_label=false to temporarily disable this check. ERROR: /home/francesco/.cache/bazel/_bazel_francesco/4ce2bc3731d0d87739dc505f1772132b/external/local_config_sycl/sycl/BUILD:6:1: First argument of 'load' must be a label and start with either '//', ':', or '@'. Use --incompatible_load_argument_is_label=false to temporarily disable this check. ERROR: /home/francesco/.cache/bazel/_bazel_francesco/4ce2bc3731d0d87739dc505f1772132b/external/local_config_sycl/sycl/BUILD:30:9: Traceback (most recent call last): File &quot;/home/francesco/.cache/bazel/_bazel_francesco/4ce2bc3731d0d87739dc505f1772132b/external/local_config_sycl/sycl/BUILD&quot;, line 27 cc_library(name = &quot;syclrt&quot;, srcs = [sycl_libr...&quot;)], &lt;3 more arguments&gt;) File &quot;/home/francesco/.cache/bazel/_bazel_francesco/4ce2bc3731d0d87739dc505f1772132b/external/local_config_sycl/sycl/BUILD&quot;, line 30, in cc_library sycl_library_path name 'sycl_library_path' is not defined ERROR: /home/francesco/.cache/bazel/_bazel_francesco/4ce2bc3731d0d87739dc505f1772132b/external/local_config_sycl/sycl/BUILD:39:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '@local_config_sycl//sycl:sycl' ERROR: /home/francesco/Repositories/tensorflow/third_party/eigen3/BUILD:20:1: Target '@local_config_sycl//sycl:sycl' contains an error and its package is in error and referenced by '//third_party/eigen3:eigen3' ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: Loading failed INFO: Elapsed time: 13.322s FAILED: Build did NOT complete successfully (93 packages loaded) currently loading: tensorflow/core/kernels ... (2 packages) "><pre class="notranslate"><code class="notranslate">francesco@franny:~/Repositories/tensorflow$ git checkout r1.4 Branch 'r1.4' set up to track remote branch 'r1.4' from 'origin'. Switched to a new branch 'r1.4' francesco@franny:~/Repositories/tensorflow$ ./configure Extracting Bazel installation... WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.protobuf.UnsafeUtil (file:/home/francesco/.cache/bazel/_bazel_francesco/install/754ae0b065b3dfe883541ff567ae8b5e/_embedded_binaries/A-server.jar) to field java.nio.Buffer.address WARNING: Please consider reporting this to the maintainers of com.google.protobuf.UnsafeUtil WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release You have bazel 0.9.0 installed. Please specify the location of python. [Default is /usr/bin/python]: Found possible Python library paths: /usr/local/lib/python2.7/dist-packages /usr/lib/python2.7/dist-packages Please input the desired Python library path to use. Default is [/usr/local/lib/python2.7/dist-packages] Do you wish to build TensorFlow with jemalloc as malloc support? [Y/n]: n No jemalloc as malloc support will be enabled for TensorFlow. Do you wish to build TensorFlow with Google Cloud Platform support? [Y/n]: n No Google Cloud Platform support will be enabled for TensorFlow. Do you wish to build TensorFlow with Hadoop File System support? [Y/n]: n No Hadoop File System support will be enabled for TensorFlow. Do you wish to build TensorFlow with Amazon S3 File System support? [Y/n]: n No Amazon S3 File System support will be enabled for TensorFlow. Do you wish to build TensorFlow with XLA JIT support? [y/N]: n No XLA JIT support will be enabled for TensorFlow. Do you wish to build TensorFlow with GDR support? [y/N]: n No GDR support will be enabled for TensorFlow. Do you wish to build TensorFlow with VERBS support? [y/N]: n No VERBS support will be enabled for TensorFlow. Do you wish to build TensorFlow with OpenCL support? [y/N]: n No OpenCL support will be enabled for TensorFlow. Do you wish to build TensorFlow with CUDA support? [y/N]: y CUDA support will be enabled for TensorFlow. Please specify the CUDA SDK version you want to use, e.g. 7.0. [Leave empty to default to CUDA 8.0]: 9.1 Please specify the location where CUDA 9.1 toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: Please specify the cuDNN version you want to use. [Leave empty to default to cuDNN 6.0]: 7 Please specify the location where cuDNN 7 library is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: Please specify a list of comma-separated Cuda compute capabilities you want to build with. You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus. Please note that each additional compute capability significantly increases your build time and binary size. [Default is: 3.5,5.2]5.2 Do you want to use clang as CUDA compiler? [y/N]: n nvcc will be used as CUDA compiler. Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/bin/gcc]: Do you wish to build TensorFlow with MPI support? [y/N]: n No MPI support will be enabled for TensorFlow. Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -march=native]: Add "--config=mkl" to your bazel command to build with MKL support. Please note that MKL on MacOS or windows is still not supported. If you would like to use a local MKL instead of downloading, please set the environment variable "TF_MKL_ROOT" every time before build. Configuration finished francesco@franny:~/Repositories/tensorflow$ francesco@franny:~/Repositories/tensorflow$ bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package ......... ERROR: /home/francesco/.cache/bazel/_bazel_francesco/4ce2bc3731d0d87739dc505f1772132b/external/local_config_sycl/sycl/BUILD:4:1: First argument of 'load' must be a label and start with either '//', ':', or '@'. Use --incompatible_load_argument_is_label=false to temporarily disable this check. ERROR: /home/francesco/.cache/bazel/_bazel_francesco/4ce2bc3731d0d87739dc505f1772132b/external/local_config_sycl/sycl/BUILD:6:1: First argument of 'load' must be a label and start with either '//', ':', or '@'. Use --incompatible_load_argument_is_label=false to temporarily disable this check. ERROR: /home/francesco/.cache/bazel/_bazel_francesco/4ce2bc3731d0d87739dc505f1772132b/external/local_config_sycl/sycl/BUILD:30:9: Traceback (most recent call last): File "/home/francesco/.cache/bazel/_bazel_francesco/4ce2bc3731d0d87739dc505f1772132b/external/local_config_sycl/sycl/BUILD", line 27 cc_library(name = "syclrt", srcs = [sycl_libr...")], &lt;3 more arguments&gt;) File "/home/francesco/.cache/bazel/_bazel_francesco/4ce2bc3731d0d87739dc505f1772132b/external/local_config_sycl/sycl/BUILD", line 30, in cc_library sycl_library_path name 'sycl_library_path' is not defined ERROR: /home/francesco/.cache/bazel/_bazel_francesco/4ce2bc3731d0d87739dc505f1772132b/external/local_config_sycl/sycl/BUILD:39:1: Target '@local_config_sycl//sycl:using_sycl' contains an error and its package is in error and referenced by '@local_config_sycl//sycl:sycl' ERROR: /home/francesco/Repositories/tensorflow/third_party/eigen3/BUILD:20:1: Target '@local_config_sycl//sycl:sycl' contains an error and its package is in error and referenced by '//third_party/eigen3:eigen3' ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: Loading failed INFO: Elapsed time: 13.322s FAILED: Build did NOT complete successfully (93 packages loaded) currently loading: tensorflow/core/kernels ... (2 packages) </code></pre></div> <p dir="auto">Any help?</p>
1
<p dir="auto">I'm using reactstrap (bootstrap) together with <a href="https://github.com/contra/react-responsive">react-responsive</a> for my site's responsive layout.<br> There is no problem when I'm using reactstrap alone.</p> <p dir="auto">However, when I mix react-responsive into the pages to show certain components only at certain screen breakpoints, I'm getting the following error in the browser console:</p> <blockquote> <p dir="auto"><code class="notranslate">main.js:4530 Warning: Expected server HTML to contain a matching &lt;div&gt; in &lt;div&gt;.</code></p> </blockquote> <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">The error should not be showing up in the browser console.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">An error <code class="notranslate">main.js:4530 Warning: Expected server HTML to contain a matching &lt;div&gt; in &lt;div&gt;.</code> will appear in the console when ever a page is refreshed.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Use <a href="https://github.com/contra/react-responsive">react-responsive</a> to render a component when a smaller screen size is matched.</li> <li>Refresh page</li> <li>Error should will show up in console.</li> <li>The page however appears to still work normally.</li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">I'm using reactstrap (bootstrap) together with <a href="https://github.com/contra/react-responsive">react-responsive</a> for my site's responsive layout.</p> <p dir="auto">There is no problem when I'm using reactstrap alone.</p> <p dir="auto">However, when I mix react-responsive into the pages to show certain components only at certain screen breakpoints, I'm getting the following error in the browser's console:</p> <blockquote> <p dir="auto"><code class="notranslate">main.js:4530 Warning: Expected server HTML to contain a matching &lt;div&gt; in &lt;div&gt;.</code></p> </blockquote> <p dir="auto">Removing the responsive component will get rid of this error message too.</p> <p dir="auto">Although I'm not certainly sure what's the cause, I'm suspecting this has to do with the server side rendering. The mobile component was probably rendered dynamically on client but not on server side.</p> <p dir="auto">Is there anything I can do to fix this error? Any impact if the error is left unresolved?</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>5.0.0</td> </tr> <tr> <td>node</td> <td>6.9.1</td> </tr> <tr> <td>OS</td> <td>Win 10</td> </tr> <tr> <td>browser</td> <td>Chrome</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<p dir="auto"><strong>Describe the bug</strong><br> I am having a problem when using packages that have module caching and keep track of internal state in server rendering. An example of such packages is <a href="https://github.com/pauldijou/redux-act">redux-act</a> where module caching is used to keep track of an id used to serialize action types. The bug happens when importing my <code class="notranslate">store.js</code> file with all the actions, reducers and the store in <code class="notranslate">_app</code>, and importing it in other pages as well. This causes my <code class="notranslate">store.js</code> file to be bundled with both <code class="notranslate">_app</code> and any other page I am rendering like <code class="notranslate">index</code>. This causes the <code class="notranslate">createAction</code> to be called twice to the same action which causes the internal <code class="notranslate">redux-act</code> ids to be out of sync and thus the reducer never handles the add action</p> <p dir="auto"><strong>To Reproduce</strong><br> this reproduce code is passed on the <code class="notranslate">with-redux-wrapper</code> example.</p> <ol dir="auto"> <li>clone <a href="https://github.com/Ilaiwi/next-_app-bug-example">https://github.com/Ilaiwi/next-_app-bug-example</a></li> <li>run <code class="notranslate">npm run dev</code></li> <li>go to localhost:3000</li> </ol> <p dir="auto"><strong>Expected behavior</strong><br> the <code class="notranslate">AddCount</code> should be 1 because an <code class="notranslate">add</code> action was dispatched in <code class="notranslate">getInitialProps</code></p> <p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>OS: [Windows 10 and osx]</li> <li>Version of Next.js: [e.g. 6.0.3]</li> </ul> <p dir="auto"><strong>Additional context</strong><br> what I did in the example is I just added <code class="notranslate">redux-act</code> and replaced the actions with <code class="notranslate">redux-act</code> actions and deleted the thunk <code class="notranslate">AddCount action</code>.</p>
0
<p dir="auto">Using Kubernetes 1.1.2 with Vagrant provider, running two pods:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./cluster/kubectl.sh get po NAME READY STATUS RESTARTS AGE mysql-pod 1/1 Running 0 21s wildfly-rc-l2cto 1/1 Running 0 21s"><pre class="notranslate"><code class="notranslate">./cluster/kubectl.sh get po NAME READY STATUS RESTARTS AGE mysql-pod 1/1 Running 0 21s wildfly-rc-l2cto 1/1 Running 0 21s </code></pre></div> <p dir="auto">One of the pods was deleted:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./cluster/kubectl.sh delete po wildfly-rc-l2cto pod &quot;wildfly-rc-l2cto&quot; deleted"><pre class="notranslate"><code class="notranslate">./cluster/kubectl.sh delete po wildfly-rc-l2cto pod "wildfly-rc-l2cto" deleted </code></pre></div> <p dir="auto">Watching the status of pods are shown as:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./cluster/kubectl.sh get -w po NAME READY STATUS RESTARTS AGE mysql-pod 1/1 Running 0 1m wildfly-rc-2o8vd 1/1 Running 0 13s wildfly-rc-l2cto 1/1 Terminating 0 1m NAME READY STATUS RESTARTS AGE wildfly-rc-l2cto 0/1 Terminating 0 1m wildfly-rc-l2cto 0/1 Terminating 0 1m wildfly-rc-l2cto 0/1 Terminating 0 1m"><pre class="notranslate"><code class="notranslate">./cluster/kubectl.sh get -w po NAME READY STATUS RESTARTS AGE mysql-pod 1/1 Running 0 1m wildfly-rc-2o8vd 1/1 Running 0 13s wildfly-rc-l2cto 1/1 Terminating 0 1m NAME READY STATUS RESTARTS AGE wildfly-rc-l2cto 0/1 Terminating 0 1m wildfly-rc-l2cto 0/1 Terminating 0 1m wildfly-rc-l2cto 0/1 Terminating 0 1m </code></pre></div> <p dir="auto">Two issues:</p> <ul dir="auto"> <li>Refreshed status shows the only for the changed pod and shows it three times</li> <li>Even after waiting for 5 minutes, the status does not refresh to Terminated</li> </ul> <p dir="auto">Just checking the status as <code class="notranslate">kubectl.sh get po</code> shows that the pod has been terminated. But its confusing that with <code class="notranslate">-w</code> the status never updates to Terminated or something intuitive.</p>
<p dir="auto">A Replication Controller is started using <a href="https://github.com/arun-gupta/kubernetes-java-sample/blob/master/wildfly-rc.yaml">https://github.com/arun-gupta/kubernetes-java-sample/blob/master/wildfly-rc.yaml</a> and shows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./cluster/kubectl.sh create -f ~/workspaces/kubernetes-java-sample/wildfly-rc.yaml replicationcontrollers/wildfly-rc"><pre class="notranslate"><code class="notranslate">./cluster/kubectl.sh create -f ~/workspaces/kubernetes-java-sample/wildfly-rc.yaml replicationcontrollers/wildfly-rc </code></pre></div> <p dir="auto">Pods are shown correctly as:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./cluster/kubectl.sh get -w po NAME READY STATUS RESTARTS AGE wildfly-rc-k6pk2 1/1 Running 0 47s wildfly-rc-wez29 1/1 Running 0 47s"><pre class="notranslate"><code class="notranslate">./cluster/kubectl.sh get -w po NAME READY STATUS RESTARTS AGE wildfly-rc-k6pk2 1/1 Running 0 47s wildfly-rc-wez29 1/1 Running 0 47s </code></pre></div> <p dir="auto">Scaled up by 1 (config file has 2) as:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./cluster/kubectl.sh scale --replicas=3 rc wildfly-rc"><pre class="notranslate"><code class="notranslate">./cluster/kubectl.sh scale --replicas=3 rc wildfly-rc </code></pre></div> <p dir="auto">and the output is updated correctly:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="NAME READY STATUS RESTARTS AGE wildfly-rc-aqaqn 0/1 Pending 0 0s wildfly-rc-aqaqn 0/1 Pending 0 0s wildfly-rc-aqaqn 0/1 Pending 0 0s wildfly-rc-aqaqn 0/1 Running 0 2s wildfly-rc-aqaqn 1/1 Running 0 11s"><pre class="notranslate"><code class="notranslate">NAME READY STATUS RESTARTS AGE wildfly-rc-aqaqn 0/1 Pending 0 0s wildfly-rc-aqaqn 0/1 Pending 0 0s wildfly-rc-aqaqn 0/1 Pending 0 0s wildfly-rc-aqaqn 0/1 Running 0 2s wildfly-rc-aqaqn 1/1 Running 0 11s </code></pre></div> <p dir="auto">Replicas are then reduced to 1:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./cluster/kubectl.sh scale --replicas=1 rc wildfly-rc"><pre class="notranslate"><code class="notranslate">./cluster/kubectl.sh scale --replicas=1 rc wildfly-rc </code></pre></div> <p dir="auto">and the output shows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="wildfly-rc-wez29 1/1 Running 0 1m wildfly-rc-aqaqn 1/1 Running 0 36s"><pre class="notranslate"><code class="notranslate">wildfly-rc-wez29 1/1 Running 0 1m wildfly-rc-aqaqn 1/1 Running 0 36s </code></pre></div> <p dir="auto">Ctrl+C and view the list of pods running shows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./cluster/kubectl.sh get -w po NAME READY STATUS RESTARTS AGE wildfly-rc-k6pk2 1/1 Running 0 2m"><pre class="notranslate"><code class="notranslate">./cluster/kubectl.sh get -w po NAME READY STATUS RESTARTS AGE wildfly-rc-k6pk2 1/1 Running 0 2m </code></pre></div> <p dir="auto">Seems like the previous two pods were killed but their status was still updated to Running. This is inconsistent with the current state of Pods running.</p>
1
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/use-a-css-class-to-style-an-element#?solution=%3Cstyle%3E%0A%20%C2%A0.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%3Cp%3EKitty%20ipsum%20dolor%20sit%20amet%2C%20shed%20everywhere%20shed%20everywhere%20stretching%20attack%20your%20ankles%20chase%20the%20red%20dot%2C%20hairball%20run%20catnip%20eat%20the%20grass%20sniff.%3C%2Fp%3E%0A" rel="nofollow">Use a CSS Class to Style an Element</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My code:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;style&gt;  .red-text { color: red; } &lt;/style&gt; &lt;h2 class=&quot;red-text&quot;&gt;CatPhotoApp&lt;/h2&gt; &lt;p&gt;Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.&lt;/p&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span>  .<span class="pl-c1">red-text</span> { <span class="pl-c1">color</span><span class="pl-kos">:</span> red; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">&gt;</span>CatPhotoApp<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span></pre></div>
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/use-a-css-class-to-style-an-element#?solution=%3Cstyle%3E%0A%20%C2%A0.red-text%20%7B%0A%20%C2%A0%20%20color%3A%20red%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%3Cp%3EKitty%20ipsum%20dolor%20sit%20amet%2C%20shed%20everywhere%20shed%20everywhere%20stretching%20attack%20your%20ankles%20chase%20the%20red%20dot%2C%20hairball%20run%20catnip%20eat%20the%20grass%20sniff.%3C%2Fp%3E%0A" rel="nofollow">Use a CSS Class to Style an Element</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Linux; Android 4.4.2; SM-T231 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.105 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My code:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;style&gt;  .red-text {   color: red; } &lt;/style&gt; &lt;h2 class=&quot;red-text&quot;&gt;CatPhotoApp&lt;/h2&gt; &lt;p&gt;Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.&lt;/p&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span>  .<span class="pl-c1">red-text</span> {   col<span class="pl-c1">or</span><span class="pl-kos">:</span> <span class="pl-c1">red</span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">&gt;</span>CatPhotoApp<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span></pre></div>
1
<p dir="auto">Describe what you were doing when the bug occurred:</p> <ol dir="auto"> <li>Using Profiler tab</li> <li>Clicked on a commit</li> <li>It threw this error</li> </ol> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.6.0-6cceaeb67</p> <p dir="auto">Call stack: at j (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:162825)<br> at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:161772)<br> at e.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:164582)<br> at ec (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:339280)<br> at ci (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59620)<br> at nl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:69923)<br> at Ll (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:110996)<br> at qc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:102381)<br> at Hc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:102306)<br> at Vc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:102171)</p> <p dir="auto">Component stack: in ec<br> in div<br> in div<br> in div<br> in So<br> in Unknown<br> in n<br> in Unknown<br> in div<br> in div<br> in rl<br> in Ze<br> in fn<br> in Ga<br> in _s</p>
<p dir="auto">Describe what you were doing when the bug occurred:</p> <ol dir="auto"> <li>Profiling a slow component<br> In a component that rendered 5000 pre tags with single lines of text in them, that has an unrelated controlled text box is the same component that was typed into while profiling. App hung a while and, when it rendered again the error was in the profiler.</li> </ol> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.6.0-6cceaeb67</p> <p dir="auto">Call stack: at j (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:162825)<br> at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:161628)<br> at e.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:164582)<br> at ec (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:339280)<br> at ci (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59620)<br> at Ll (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:109960)<br> at qc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:102381)<br> at Hc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:102306)<br> at Vc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:102171)<br> at Tc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:98781)</p> <p dir="auto">Component stack: in ec<br> in div<br> in div<br> in div<br> in So<br> in Unknown<br> in n<br> in Unknown<br> in div<br> in div<br> in rl<br> in Ze<br> in fn<br> in Ga<br> in _s</p>
1
<h3 dir="auto">Version 2.6.7 on my computer, not sure about the version used in jsfiddle</h3> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://jsfiddle.net/cicsolutions/qkzjp520/6/" rel="nofollow">https://jsfiddle.net/cicsolutions/qkzjp520/6/</a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">Create three named slots: (1) with no dash in the slot name, like 'header' or 'footer', as in the docs. (2) with a dash in the name, like 'card-header' and (3) with a camelCased slot name.</p> <p dir="auto">Console log the slot contents at the created and mounted hooks (other lifecycle hooks not tested) of the component.</p> <h3 dir="auto">What is expected?</h3> <p dir="auto">I would expect the slot contents for all slot name syntaxes to be available at in the lifecycle hooks and rendered in component. (unsure if hyphenated or camelCasing is preferred for compound names)</p> <p dir="auto">I would 100% expect that if the contents of the slot can be logged to the console during created/mounted hooks, that it could be rendered via the render function (which appears to not be true for camelCased slot names)</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">The slot content for a slot where the name contains a dash is undefined at the created hook, whereas the slot content where the name does not have a dash is defined as expected with the slot node object.</p> <p dir="auto">Most strange ... content for the slot with a camelCased name is logged to the console properly, but not rendered in the component.</p> <hr> <p dir="auto">Please let me know if this type of report is unhelpful. I really don't have the time to first search the forums and such, and I'm still learning Vue, so I'm unsure if for some reason this would be intended behavior.</p> <p dir="auto">I do not see anything in the docs that gives notes about the syntax for the slot names that may be compound phrases/names. However I thought I read somewhere in the docs that camelCase is not valid HTML, so i first figured the hyphenated version of the slot name would be correct.</p> <p dir="auto">It does make sense to me that the value that follows the colon in the directive declaration becomes the $slots object key, and the value is not rendered as a DOM element attribute, so I thought perhaps using camelCase is the proper way to have compound slot names. But when using camelCase slot names, the slot content does appear in the console, but is not rendered via the render function. So ... that's even stranger!?</p> <p dir="auto">It would be great if the docs could touch on the proper naming convention for slot names, as compound slot names seem like they would be a pretty common approach to slot naming.</p> <p dir="auto">Note: I did not test other lifecycle hooks.</p> <p dir="auto">Perhaps I'm not understanding slots properly, but it seems strange to me that a slot named with a dash will render properly but show as undefined for in the created/mounted hooks. And the opposite: having a camelCase slot name does show a correct node value in the hooks, however does not actually render the slotted content.</p> <p dir="auto">Hope this helps! Thanks so much for all you do! Vue is simply the best framework I've ever used!</p>
<h3 dir="auto">Version</h3> <p dir="auto">2.5.13</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://codesandbox.io/s/6yk5o1x573" rel="nofollow">https://codesandbox.io/s/6yk5o1x573</a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">In parent component, apply a scoped class to a div. In the child, name the class the same and make sure it's scoped, but use different CSS properties so there's no overwriting.</p> <h3 dir="auto">What is expected?</h3> <p dir="auto">I would expect scoped classes to actually be scoped.</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">Scoped styles are leaking into the children. The divs are sharing 'data-v' attributes which is very bad.</p>
0
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18999.0 Windows Terminal version: 0.5.2762.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18999.0 Windows Terminal version: 0.5.2762.0 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Open a new PowerShell tab. PowerShell version does not matter.</li> <li>Paste and run the following code in the PowerShell tab:</li> </ol> <div class="highlight highlight-source-powershell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Register-EngineEvent -SourceIdentifier Powershell.Exiting -Action { Set-Content -Value &quot;Hello there.&quot; -Path &quot;$env:TEMP\General Kenobi.txt&quot; }"><pre class="notranslate"><span class="pl-c1">Register-EngineEvent</span> <span class="pl-k">-</span>SourceIdentifier Powershell.Exiting <span class="pl-k">-</span>Action { <span class="pl-c1">Set-Content</span> <span class="pl-k">-</span>Value <span class="pl-s"><span class="pl-pds">"</span>Hello there.<span class="pl-pds">"</span></span> <span class="pl-k">-</span>Path <span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">$<span class="pl-c1">env:</span>TEMP</span>\General Kenobi.txt<span class="pl-pds">"</span></span> }</pre></div> <ol start="4" dir="auto"> <li>Close the PowerShell tab by clicking the x button or by the <code class="notranslate">exit</code> command. Or close the Terminal window.</li> </ol> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2971735/66866265-3a614a00-ef99-11e9-9dd1-d33e4fd371cb.png"><img src="https://user-images.githubusercontent.com/2971735/66866265-3a614a00-ef99-11e9-9dd1-d33e4fd371cb.png" alt="grafik" style="max-width: 100%;"></a></p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The PowerShell tab should trigger the Powershell.Exiting event and a file <code class="notranslate">%temp%\General Kenobi.txt</code> should be created.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The event does not trigger and no file is created.</p> <p dir="auto">Note: If you reproduce this in the native PowerShell 5 or 7-preview.3 console (not the Terminal app) you'll find that the event triggers correctly only when using the <code class="notranslate">exit</code> command. Clicking the close button also does not trigger the event. Although I also reported that at <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="369256968" data-permission-text="Title is private" data-url="https://github.com/PowerShell/PowerShell/issues/8000" data-hovercard-type="issue" data-hovercard-url="/PowerShell/PowerShell/issues/8000/hovercard" href="https://github.com/PowerShell/PowerShell/issues/8000">PowerShell/PowerShell#8000</a>, I believe that with Terminal it's an independent issue.</p>
<h1 dir="auto">Description of the new feature/enhancement</h1> <p dir="auto">Sometimes i need to open many panes in a tab with splitHorizontal/splitVertical hotkeys. And then broadcast input to all the panes in current tab, or all tabs.</p> <p dir="auto">Is it possible to support broadcast input, like iterm2?</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2578976/64075757-fa971980-ccee-11e9-9e44-47aaf3bca76c.png"><img src="https://user-images.githubusercontent.com/2578976/64075757-fa971980-ccee-11e9-9e44-47aaf3bca76c.png" alt="image" style="max-width: 100%;"></a></p>
0
<p dir="auto">I think Angular 2 is missing a way to retrieve innerHTML of the original element</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;foo&gt;SOME TEXT HERE&lt;/foo&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">foo</span><span class="pl-kos">&gt;</span>SOME TEXT HERE<span class="pl-kos">&lt;/</span><span class="pl-ent">foo</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">I know I can render the original content with <code class="notranslate">&lt;ng-content&gt;</code></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Component({ selector: 'foo', template: '&lt;ng-content&gt;&lt;/ng-content&gt;' })"><pre class="notranslate">@<span class="pl-v">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">selector</span>: <span class="pl-s">'foo'</span><span class="pl-kos">,</span> <span class="pl-c1">template</span>: <span class="pl-s">'&lt;ng-content&gt;&lt;/ng-content&gt;'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <p dir="auto">However there is no way I can retrieve the original content in constructor, or anywhere in the code.<br> The <code class="notranslate">@Input</code> is only able to access attribute, but not inner HTML.<br> And the <code class="notranslate">ElementRef</code> in constructor is a already modified element.<br> May I know what is the proper way to get inner HTML of the element?</p>
<p dir="auto">Use case:<br> Angular Material has a directive called <code class="notranslate">md-icon</code> that lets the user embed SVG content via URL:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;md-icon svg-src=&quot;../img/puppy.svg&quot;&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">md-icon</span> <span class="pl-c1">svg-src</span>="<span class="pl-s">../img/puppy.svg</span>"<span class="pl-kos">&gt;</span></pre></div> <p dir="auto">We need to be able to build a directive in angular 2 that directly embeds content in this way. Using a binding on innerHTML is possible, but susceptible to XSS and would require ugly string manipulation of DOM-like content.</p>
0
<p dir="auto">_dbscan_inner.cpp<br> c:\users\prasanth chettri\appdata\local\programs\python\python37\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(12) : Warning Msg: Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION<br> sklearn\cluster_dbscan_inner.cpp(5960): error C2039: 'exc_type': is not a member of '_ts'<br> c:\users\prasanth chettri\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'<br> sklearn\cluster_dbscan_inner.cpp(5961): error C2039: 'exc_value': is not a member of '_ts'<br> c:\users\prasanth chettri\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'<br> sklearn\cluster_dbscan_inner.cpp(5962): error C2039: 'exc_traceback': is not a member of '_ts'<br> c:\users\prasanth chettri\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'<br> sklearn\cluster_dbscan_inner.cpp(5969): error C2039: 'exc_type': is not a member of '_ts'<br> c:\users\prasanth chettri\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'<br> sklearn\cluster_dbscan_inner.cpp(5970): error C2039: 'exc_value': is not a member of '_ts'<br> c:\users\prasanth chettri\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'<br> sklearn\cluster_dbscan_inner.cpp(5971): error C2039: 'exc_traceback': is not a member of '_ts'<br> c:\users\prasanth chettri\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'<br> sklearn\cluster_dbscan_inner.cpp(5972): error C2039: 'exc_type': is not a member of '_ts'<br> c:\users\prasanth chettri\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'<br> sklearn\cluster_dbscan_inner.cpp(5973): error C2039: 'exc_value': is not a member of '_ts'<br> c:\users\prasanth chettri\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'<br> sklearn\cluster_dbscan_inner.cpp(5974): error C2039: 'exc_traceback': is not a member of '_ts'<br> c:\users\prasanth chettri\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'<br> sklearn\cluster_dbscan_inner.cpp(6029): error C2039: 'exc_type': is not a member of '_ts'<br> c:\users\prasanth chettri\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'<br> sklearn\cluster_dbscan_inner.cpp(6030): error C2039: 'exc_value': is not a member of '_ts'<br> c:\users\prasanth chettri\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'<br> sklearn\cluster_dbscan_inner.cpp(6031): error C2039: 'exc_traceback': is not a member of '_ts'<br> c:\users\prasanth chettri\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'<br> sklearn\cluster_dbscan_inner.cpp(6032): error C2039: 'exc_type': is not a member of '_ts'<br> c:\users\prasanth chettri\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'<br> sklearn\cluster_dbscan_inner.cpp(6033): error C2039: 'exc_value': is not a member of '_ts'<br> c:\users\prasanth chettri\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'<br> sklearn\cluster_dbscan_inner.cpp(6034): error C2039: 'exc_traceback': is not a member of '_ts'<br> c:\users\prasanth chettri\appdata\local\programs\python\python37\include\pystate.h(209): note: see declaration of '_ts'</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">Command ""c:\users\prasanth chettri\appdata\local\programs\python\python37\python.exe" -u -c "import setuptools, tokenize;<strong>file</strong>='C:\Users\PRASAN<del>1\AppData\Local\Temp\pip-install-sxdgy2gx\scikit-learn\setup.py';f=getattr(tokenize, 'open', open)(<strong>file</strong>);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, <strong>file</strong>, 'exec'))" install --record C:\Users\PRASAN</del>1\AppData\Local\Temp\pip-record-dheiq8_j\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\PRASAN~1\AppData\Local\Temp\pip-install-sxdgy2gx\scikit-learn\</p>
<h4 dir="auto">Description</h4> <p dir="auto">Unable to <code class="notranslate">pip install</code>(compile error: <code class="notranslate">PyThreadState</code> has no member ...) with Python 3.7rc1.</p> <p dir="auto">My apologies if this has been reported, but I couldn't find it in the issues (closed/open) nor any pull request for it.</p> <p dir="auto">There have been similar issues with pyyaml (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="293224582" data-permission-text="Title is private" data-url="https://github.com/yaml/pyyaml/issues/126" data-hovercard-type="issue" data-hovercard-url="/yaml/pyyaml/issues/126/hovercard" href="https://github.com/yaml/pyyaml/issues/126">yaml/pyyaml#126</a>), numpy (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="293204212" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/10500" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/10500/hovercard" href="https://github.com/numpy/numpy/issues/10500">numpy/numpy#10500</a>), cython (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="270862465" data-permission-text="Title is private" data-url="https://github.com/cython/cython/issues/1978" data-hovercard-type="issue" data-hovercard-url="/cython/cython/issues/1978/hovercard" href="https://github.com/cython/cython/issues/1978">cython/cython#1978</a>), and pygame (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="293498275" data-permission-text="Title is private" data-url="https://github.com/pygame/pygame/issues/382" data-hovercard-type="issue" data-hovercard-url="/pygame/pygame/issues/382/hovercard" href="https://github.com/pygame/pygame/issues/382">pygame/pygame#382</a>).</p> <h4 dir="auto">Steps/Code to Reproduce</h4> <p dir="auto">Install Python 3.7rc1.<br> <code class="notranslate">pip install scikit-learn</code></p> <h4 dir="auto">Expected Results</h4> <p dir="auto"><code class="notranslate">pip</code> succeeds.</p> <h4 dir="auto">Actual Results</h4> <p dir="auto">Compilation errors:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="... sklearn/cluster/_dbscan_inner.cpp: In function ‘int __Pyx__GetException(PyThreadState*, PyObject**, PyObject**, PyObject**)’: sklearn/cluster/_dbscan_inner.cpp:6029:24: error: ‘PyThreadState’ has no member named ‘exc_type’ tmp_type = tstate-&gt;exc_type; ^ sklearn/cluster/_dbscan_inner.cpp:6030:25: error: ‘PyThreadState’ has no member named ‘exc_value’ tmp_value = tstate-&gt;exc_value; ^ sklearn/cluster/_dbscan_inner.cpp:6031:22: error: ‘PyThreadState’ has no member named ‘exc_traceback’ tmp_tb = tstate-&gt;exc_traceback; ^ sklearn/cluster/_dbscan_inner.cpp:6032:13: error: ‘PyThreadState’ has no member named ‘exc_type’ tstate-&gt;exc_type = local_type; ^ sklearn/cluster/_dbscan_inner.cpp:6033:13: error: ‘PyThreadState’ has no member named ‘exc_value’ tstate-&gt;exc_value = local_value; ^ sklearn/cluster/_dbscan_inner.cpp:6034:13: error: ‘PyThreadState’ has no member named ‘exc_traceback’ tstate-&gt;exc_traceback = local_tb; ^ error: Command &quot;g++ -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/data/install/lib/python3.7/site-packages/numpy/core/include -I/data/install/lib/python3.7/site-packages/numpy/core/include -I/data/install/include/python3.7m -c sklearn/cluster/_dbscan_inner.cpp -o build/temp.linux-x86_64-3.7/sklearn/cluster/_dbscan_inner.o -MMD -MF build/temp.linux-x86_64-3.7/sklearn/cluster/_dbscan_inner.o.d&quot; failed with exit status 1 "><pre class="notranslate"><code class="notranslate">... sklearn/cluster/_dbscan_inner.cpp: In function ‘int __Pyx__GetException(PyThreadState*, PyObject**, PyObject**, PyObject**)’: sklearn/cluster/_dbscan_inner.cpp:6029:24: error: ‘PyThreadState’ has no member named ‘exc_type’ tmp_type = tstate-&gt;exc_type; ^ sklearn/cluster/_dbscan_inner.cpp:6030:25: error: ‘PyThreadState’ has no member named ‘exc_value’ tmp_value = tstate-&gt;exc_value; ^ sklearn/cluster/_dbscan_inner.cpp:6031:22: error: ‘PyThreadState’ has no member named ‘exc_traceback’ tmp_tb = tstate-&gt;exc_traceback; ^ sklearn/cluster/_dbscan_inner.cpp:6032:13: error: ‘PyThreadState’ has no member named ‘exc_type’ tstate-&gt;exc_type = local_type; ^ sklearn/cluster/_dbscan_inner.cpp:6033:13: error: ‘PyThreadState’ has no member named ‘exc_value’ tstate-&gt;exc_value = local_value; ^ sklearn/cluster/_dbscan_inner.cpp:6034:13: error: ‘PyThreadState’ has no member named ‘exc_traceback’ tstate-&gt;exc_traceback = local_tb; ^ error: Command "g++ -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/data/install/lib/python3.7/site-packages/numpy/core/include -I/data/install/lib/python3.7/site-packages/numpy/core/include -I/data/install/include/python3.7m -c sklearn/cluster/_dbscan_inner.cpp -o build/temp.linux-x86_64-3.7/sklearn/cluster/_dbscan_inner.o -MMD -MF build/temp.linux-x86_64-3.7/sklearn/cluster/_dbscan_inner.o.d" failed with exit status 1 </code></pre></div> <h4 dir="auto">Versions</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Linux-3.10.0-862.el7.x86_64-x86_64-with-redhat-7.5-Maipo Python 3.7.0rc1 (default, Jun 19 2018, 10:54:58) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] NumPy 1.14.5 SciPy 1.1.0"><pre class="notranslate"><code class="notranslate">Linux-3.10.0-862.el7.x86_64-x86_64-with-redhat-7.5-Maipo Python 3.7.0rc1 (default, Jun 19 2018, 10:54:58) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] NumPy 1.14.5 SciPy 1.1.0 </code></pre></div>
1
<p dir="auto">I think yesterday they were running in under 40 minutes.</p> <p dir="auto">I did <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="155861384" data-permission-text="Title is private" data-url="https://github.com/kubernetes-retired/contrib/issues/1022" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes-retired/contrib/pull/1022/hovercard" href="https://github.com/kubernetes-retired/contrib/pull/1022">kubernetes-retired/contrib#1022</a> because the submit queue is timing out before merging after running tests. I will try to push it live tonight. But we need to figure out what caused this.</p>
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.): No</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): vsphere, lsilogic-sas</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): Bug Report</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>): Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.5+coreos.0", GitCommit:"f70c2e5b2944cb5d622621a706bdec3d8a5a9c5e", GitTreeState:"clean", BuildDate:"2016-10-31T19:16:47Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: vSphere (vCenter: 6.5.0, ESXi: 6.0.0)</li> <li><strong>OS</strong> (e.g. from /etc/os-release): CoreOS 1185.3.0 (MoreOS)</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux 4.7.3-coreos-r2 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35192559" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1">#1</a> SMP Tue Nov 1 01:38:43 UTC 2016 x86_64</li> <li><strong>Install tools</strong>:</li> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>:<br> During pod provisioning, kube-controller-manager logged the following messages whilst attempting to attach a vSphere volume to the pod;</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2016-11-27T14:15:01.636686228Z I1127 14:15:01.636561 1 reconciler.go:168] Started AttachVolume for volume &quot;kubernetes.io/vsphere-volume/[DATASTORE] volumes/VOLUME&quot; to node &quot;NODE&quot; 2016-11-27T14:15:02.085465901Z E1127 14:15:02.085346 1 vsphere.go:667] error creating new SCSI controller: unknown SCSI controller type 'lsiLogic-sas' 2016-11-27T14:15:02.102770470Z E1127 14:15:02.102592 1 attacher.go:79] Error attaching volume &quot;[DATASTORE] volumes/VOLUME&quot;: unknown SCSI controller type 'lsiLogic-sas' 2016-11-27T14:15:02.102790243Z E1127 14:15:02.102691 1 nestedpendingoperations.go:253] Operation for &quot;\&quot;kubernetes.io/vsphere-volume/[DATASTORE] volumes/VOLUME\&quot;&quot; failed. No retries permitted until 2016-11-27 14:15:06.102667758 +0000 UTC (durationBeforeRetry 4s). Error: Failed to attach volume &quot;VOLUME&quot; on node &quot;NODE&quot; with: unknown SCSI controller type 'lsiLogic-sas' 2016-11-27T14:15:02.102908054Z I1127 14:15:02.102838 1 event.go:217] Event(api.ObjectReference{Kind:&quot;Pod&quot;, Namespace:&quot;default&quot;, Name:&quot;mayan-deployment-2304867309-f4tgb&quot;, UID:&quot;df9106ba-b4ab-11e6-b3bc-005056892975&quot;, APIVersion:&quot;v1&quot;, ResourceVersion:&quot;4951433&quot;, FieldPath:&quot;&quot;}): type: 'Warning' reason: 'FailedMount' Failed to attach volume &quot;VOLUME&quot; on node &quot;NODE&quot; with: unknown SCSI controller type 'lsiLogic-sas'"><pre class="notranslate"><code class="notranslate">2016-11-27T14:15:01.636686228Z I1127 14:15:01.636561 1 reconciler.go:168] Started AttachVolume for volume "kubernetes.io/vsphere-volume/[DATASTORE] volumes/VOLUME" to node "NODE" 2016-11-27T14:15:02.085465901Z E1127 14:15:02.085346 1 vsphere.go:667] error creating new SCSI controller: unknown SCSI controller type 'lsiLogic-sas' 2016-11-27T14:15:02.102770470Z E1127 14:15:02.102592 1 attacher.go:79] Error attaching volume "[DATASTORE] volumes/VOLUME": unknown SCSI controller type 'lsiLogic-sas' 2016-11-27T14:15:02.102790243Z E1127 14:15:02.102691 1 nestedpendingoperations.go:253] Operation for "\"kubernetes.io/vsphere-volume/[DATASTORE] volumes/VOLUME\"" failed. No retries permitted until 2016-11-27 14:15:06.102667758 +0000 UTC (durationBeforeRetry 4s). Error: Failed to attach volume "VOLUME" on node "NODE" with: unknown SCSI controller type 'lsiLogic-sas' 2016-11-27T14:15:02.102908054Z I1127 14:15:02.102838 1 event.go:217] Event(api.ObjectReference{Kind:"Pod", Namespace:"default", Name:"mayan-deployment-2304867309-f4tgb", UID:"df9106ba-b4ab-11e6-b3bc-005056892975", APIVersion:"v1", ResourceVersion:"4951433", FieldPath:""}): type: 'Warning' reason: 'FailedMount' Failed to attach volume "VOLUME" on node "NODE" with: unknown SCSI controller type 'lsiLogic-sas' </code></pre></div> <p dir="auto">The operation is attempted again and continues to fail. The pod becomes stuck in the ContainerCreating state.</p> <p dir="auto"><strong>What you expected to happen</strong>:<br> The volume should be mounted to the host and attached to the pod.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <ol dir="auto"> <li>Create a VMDK using the following command;</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="vmkfstools -c 2G /vmfs/volumes/DATASTORE/volumes/VOLUME.vmdk"><pre class="notranslate"><code class="notranslate">vmkfstools -c 2G /vmfs/volumes/DATASTORE/volumes/VOLUME.vmdk </code></pre></div> <ol start="2" dir="auto"> <li>Attach a vSphere volume to a pod using the following spec;</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" volumes: - name: VOLUME vsphereVolume: volumePath: &quot;[DATASTORE] volumes/VOLUME&quot; fsType: ext4"><pre class="notranslate"><code class="notranslate"> volumes: - name: VOLUME vsphereVolume: volumePath: "[DATASTORE] volumes/VOLUME" fsType: ext4 </code></pre></div> <p dir="auto"><strong>Anything else do we need to know</strong>:<br> This happens both with attaching an existing vSphere volume (as documented <a href="http://kubernetes.io/docs/user-guide/volumes/#vspherevolume" rel="nofollow">here</a>) and with the vSphere StorageClass provisioner (as documented <a href="http://kubernetes.io/docs/user-guide/persistent-volumes/#vsphere" rel="nofollow">here</a>). For the purposes of documenting this issue, I followed the former rather than the latter, but the error is the same.<br> Volume/datastore/host names have been substituted from their actual values.<br> The Kubernetes worker node's VM hardware is as follows;<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6966796/20649056/3dbc5894-b4ae-11e6-8830-51bb61b45eac.png"><img src="https://cloud.githubusercontent.com/assets/6966796/20649056/3dbc5894-b4ae-11e6-8830-51bb61b45eac.png" alt="image" style="max-width: 100%;"></a></p>
0