text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<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>7.0.0-beta.4</li> <li>6.0.7</li> <li>5.0.10</li> <li>4.2.10</li> <li>3.1.13</li> <li>2.0.18</li> </ul> </li> <li><strong>Operating System:</strong> <ul dir="auto"> <li> macOS 10.14.6 </li> </ul> </li> <li><strong>Last Known Working Electron version:</strong> <ul dir="auto"> <li> unknown (doesn't work on the latest major releases listed above) </li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Cursor style is applied when mousing over a frameless <code class="notranslate">BrowserWindow</code>.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">Cursor style is ignored for the top ~24px of a frameless <code class="notranslate">BrowserWindow</code></p> <h3 dir="auto">To Reproduce</h3> <ol dir="auto"> <li>Create a <code class="notranslate">BrowserWindow</code> with <code class="notranslate">frame: false</code></li> <li>Add the following to the page's HTML:</li> </ol> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;div style=&quot;height: 50px; width: 100%; background-color: red; cursor: pointer;&quot;&gt;&lt;/div&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">style</span>="<span class="pl-s">height: 50px; width: 100%; background-color: red; cursor: pointer;</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> <ol start="3" dir="auto"> <li>Run the app</li> <li>Hover your cursor over the top of the window</li> </ol> <p dir="auto">Electron Fiddle example:<br> <a href="https://gist.github.com/7bc823b3ce1797d45841cf799f52008f">https://gist.github.com/7bc823b3ce1797d45841cf799f52008f</a></p> <h3 dir="auto">Screenshots</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1420364/64214409-4b308300-ce65-11e9-99ab-c7dd16a012f1.gif"><img src="https://user-images.githubusercontent.com/1420364/64214409-4b308300-ce65-11e9-99ab-c7dd16a012f1.gif" alt="2019-09-03 16 09 47" data-animated-image="" style="max-width: 100%;"></a></p> <h3 dir="auto">Additional Information</h3> <p dir="auto">The affected area <em>appears to be</em> the height of a native macOS title bar.</p>
<p dir="auto">If you place an element with a css cursor style at the top of the page where the title bar would be with titleBarStyle="hidden", the cursor always displays as default. A simple example would be a link.</p>
1
<p dir="auto">The following code produces a segmentation fault in my configuration:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="np.bincount(np.ones(np.power(2,32),dtype=(np.uint16)))"><pre class="notranslate"><span class="pl-s1">np</span>.<span class="pl-en">bincount</span>(<span class="pl-s1">np</span>.<span class="pl-en">ones</span>(<span class="pl-s1">np</span>.<span class="pl-en">power</span>(<span class="pl-c1">2</span>,<span class="pl-c1">32</span>),<span class="pl-s1">dtype</span><span class="pl-c1">=</span>(<span class="pl-s1">np</span>.<span class="pl-s1">uint16</span>)))</pre></div> <p dir="auto">platform : linux-64<br> numpy version: 1.93</p>
<p dir="auto">I'm getting this weird concatenating issue when trying to transform a numpy array. When I filter by the 2nd column of the array, I get correct results, but when I filter by the third, the dtype is changed to U1, and the text is truncated.</p> <h3 dir="auto">Reproducing code example:</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np dat = np.array([[2.017298e+06, 7.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00], [2.017299e+06, 7.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00], [2.017199e+06, 0.000000e+00, 2.000000e+02, 0.000000e+00, 0.000000e+00], [2.017135e+06, 0.000000e+00, 7.000000e+01, 1.000000e+01, 4.000000e+00]]) resA = np.apply_along_axis( (lambda a : &quot;foo&quot; if (a[1] != 0) else &quot;&quot; ), 1, dat) resB = np.apply_along_axis( (lambda a : &quot;foo&quot; if (a[2] != 0) else &quot;&quot; ), 1, dat) print(&quot;Res A&quot;) print(resA) print(&quot;Res B&quot;) print(resB)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">dat</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([[<span class="pl-c1">2.017298e+06</span>, <span class="pl-c1">7.000000e+00</span>, <span class="pl-c1">0.000000e+00</span>, <span class="pl-c1">0.000000e+00</span>, <span class="pl-c1">0.000000e+00</span>], [<span class="pl-c1">2.017299e+06</span>, <span class="pl-c1">7.000000e+00</span>, <span class="pl-c1">0.000000e+00</span>, <span class="pl-c1">0.000000e+00</span>, <span class="pl-c1">0.000000e+00</span>], [<span class="pl-c1">2.017199e+06</span>, <span class="pl-c1">0.000000e+00</span>, <span class="pl-c1">2.000000e+02</span>, <span class="pl-c1">0.000000e+00</span>, <span class="pl-c1">0.000000e+00</span>], [<span class="pl-c1">2.017135e+06</span>, <span class="pl-c1">0.000000e+00</span>, <span class="pl-c1">7.000000e+01</span>, <span class="pl-c1">1.000000e+01</span>, <span class="pl-c1">4.000000e+00</span>]]) <span class="pl-s1">resA</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">apply_along_axis</span>( (<span class="pl-k">lambda</span> <span class="pl-s1">a</span> : <span class="pl-s">"foo"</span> <span class="pl-k">if</span> (<span class="pl-s1">a</span>[<span class="pl-c1">1</span>] <span class="pl-c1">!=</span> <span class="pl-c1">0</span>) <span class="pl-k">else</span> <span class="pl-s">""</span> ), <span class="pl-c1">1</span>, <span class="pl-s1">dat</span>) <span class="pl-s1">resB</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">apply_along_axis</span>( (<span class="pl-k">lambda</span> <span class="pl-s1">a</span> : <span class="pl-s">"foo"</span> <span class="pl-k">if</span> (<span class="pl-s1">a</span>[<span class="pl-c1">2</span>] <span class="pl-c1">!=</span> <span class="pl-c1">0</span>) <span class="pl-k">else</span> <span class="pl-s">""</span> ), <span class="pl-c1">1</span>, <span class="pl-s1">dat</span>) <span class="pl-en">print</span>(<span class="pl-s">"Res A"</span>) <span class="pl-en">print</span>(<span class="pl-s1">resA</span>) <span class="pl-en">print</span>(<span class="pl-s">"Res B"</span>) <span class="pl-en">print</span>(<span class="pl-s1">resB</span>)</pre></div> <h3 dir="auto">Output message:</h3> <p dir="auto">I expected:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Results Res A ['foo' 'foo' '' ''] Res B ['' '' 'foo' 'foo']"><pre class="notranslate"><code class="notranslate">Results Res A ['foo' 'foo' '' ''] Res B ['' '' 'foo' 'foo'] </code></pre></div> <p dir="auto">But got:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Results Res A ['foo' 'foo' '' ''] Res B ['' '' 'f' 'f']"><pre class="notranslate"><code class="notranslate">Results Res A ['foo' 'foo' '' ''] Res B ['' '' 'f' 'f'] </code></pre></div> <h3 dir="auto">Numpy/Python version information:</h3> <p dir="auto">1.18.1 3.7.6 (default, Jan 8 2020, 19:59:22)<br> [GCC 7.3.0]</p>
0
<p dir="auto">Not sure if this is intentional or not but when a form is posted, the order in which they are posted is not taken into account.</p> <p dir="auto">Basically, I want to have a collection of input fields which will be drag/drop. The user will enter text in the input field and then may decide they want to drag it above a previous input field.</p> <p dir="auto">If one of the input fields fails validation the form is displayed along with the errors. However, the input fields are no longer in the order they were posted.</p>
<p dir="auto">Looks like there is a bug, when generating URI of duplicated request. Here is an example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$request = Request::create('/test', 'GET', array('page' =&gt; 100)); $duplicated = $request-&gt;duplicate(array('page' =&gt; 1)); echo $duplicated-&gt;getUri(); // expected output: http://localhost/test?page=1 // actual output: http://localhost/test?page=100"><pre class="notranslate"><code class="notranslate">$request = Request::create('/test', 'GET', array('page' =&gt; 100)); $duplicated = $request-&gt;duplicate(array('page' =&gt; 1)); echo $duplicated-&gt;getUri(); // expected output: http://localhost/test?page=1 // actual output: http://localhost/test?page=100 </code></pre></div>
0
<p dir="auto">Hi,<br> in many applications will be useful to have available not only the gradients averaged on minibatches, but also its second momentum for each parameter.<br> I think developers can do it with a small computation overhead by modifying accumulate_grad.cpp (I was not able to understand the underlying class structure), accumulating also the square of the individual contribution to the gradient (which is much more simple that getting the individual contribution to the gradients as requested in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="325590018" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/7786" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/7786/hovercard" href="https://github.com/pytorch/pytorch/issues/7786">#7786</a>).<br> I'm aware that it will duplicate the memory requirements, but hopefully it can be done as optional.<br> Thank you very much.</p> <p dir="auto">If you have a question or would like help and support, please ask at our<br> <a href="https://discuss.pytorch.org/" rel="nofollow">forums</a>.</p> <p dir="auto">If you are submitting a feature request, please preface the title with [feature request].<br> If you are submitting a bug report, please fill in the following details.</p> <h2 dir="auto">Issue description</h2> <p dir="auto">Provide a short description.</p> <h2 dir="auto">Code example</h2> <p dir="auto">Please try to provide a minimal example to repro the bug.<br> Error messages and stack traces are also helpful.</p> <h2 dir="auto">System Info</h2> <p dir="auto">Please copy and paste the output from our<br> <a href="https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py" rel="nofollow">environment collection script</a><br> (or fill out the checklist below manually).</p> <p dir="auto">You can get the script and run it with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py # For security purposes, please check the contents of collect_env.py before running it. python collect_env.py"><pre class="notranslate"><code class="notranslate">wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py # For security purposes, please check the contents of collect_env.py before running it. python collect_env.py </code></pre></div> <ul dir="auto"> <li>PyTorch or Caffe2:</li> <li>How you installed PyTorch (conda, pip, source):</li> <li>Build command you used (if compiling from source):</li> <li>OS:</li> <li>PyTorch version:</li> <li>Python version:</li> <li>CUDA/cuDNN version:</li> <li>GPU models and configuration:</li> <li>GCC version (if compiling from source):</li> <li>CMake version:</li> <li>Versions of any other relevant libraries:</li> </ul>
<p dir="auto">Currently, loading checkpoints using <code class="notranslate">strict=False</code> can be fairly error-prone. An extra level (for example with a <code class="notranslate">nn.DataParallel</code>) could lead to completely missing loading all the weights, and there is no sign that this has happened.</p> <h3 dir="auto">Proposal:</h3> <p dir="auto">A way to enable user-code to verify for possible mistakes would be to add an option to <code class="notranslate">load_state_dict</code> to return matched / unmatched / unexpected keys.<br> This would allow the user to easily inspect if the loading is actually doing what is expected.</p> <p dir="auto">Returning those values is only needed if <code class="notranslate">strict=False</code>, because in <code class="notranslate">strict=True</code> mode an error is raised if the state dict doesn't match exactly.</p> <p dir="auto">A possible API:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def load_state_dict(self, state_dict, strict=True, return_unmatched=False): ... if return_unmatched: return matched, unmatched, unexpected"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">load_state_dict</span>(<span class="pl-s1">self</span>, <span class="pl-s1">state_dict</span>, <span class="pl-s1">strict</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">return_unmatched</span><span class="pl-c1">=</span><span class="pl-c1">False</span>): ... <span class="pl-k">if</span> <span class="pl-s1">return_unmatched</span>: <span class="pl-k">return</span> <span class="pl-s1">matched</span>, <span class="pl-s1">unmatched</span>, <span class="pl-s1">unexpected</span></pre></div> <p dir="auto">Thoughts?</p>
0
<h3 dir="auto">Buggy case</h3> <p dir="auto">The following example produces an empty figure:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt fig = plt.figure() ax1 = fig.add_subplot(1,1,1) ax2 = ax1.twinx() ax2.cla() ax1.plot([1,2,3]) fig.savefig('test.png')"><pre class="notranslate"><code class="notranslate">import matplotlib.pyplot as plt fig = plt.figure() ax1 = fig.add_subplot(1,1,1) ax2 = ax1.twinx() ax2.cla() ax1.plot([1,2,3]) fig.savefig('test.png') </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/314716/6369582/1084aecc-bce8-11e4-970a-a7e7750b8c74.png"><img src="https://cloud.githubusercontent.com/assets/314716/6369582/1084aecc-bce8-11e4-970a-a7e7750b8c74.png" alt="test" style="max-width: 100%;"></a></p> <h3 dir="auto">Control case</h3> <p dir="auto">If I remove <code class="notranslate">twinx</code> it works:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt fig = plt.figure() ax1 = fig.add_subplot(1,1,1) ax2 = ax1.twinx() ax1.plot([1,2,3]) fig.savefig('test.png')"><pre class="notranslate"><code class="notranslate">import matplotlib.pyplot as plt fig = plt.figure() ax1 = fig.add_subplot(1,1,1) ax2 = ax1.twinx() ax1.plot([1,2,3]) fig.savefig('test.png') </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/314716/6369593/2d15caee-bce8-11e4-9a73-ef209384d12e.png"><img src="https://cloud.githubusercontent.com/assets/314716/6369593/2d15caee-bce8-11e4-9a73-ef209384d12e.png" alt="test" style="max-width: 100%;"></a></p> <h3 dir="auto">Versions</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python --version Python 3.4.2 :: Continuum Analytics, Inc. $ python -c 'import matplotlib; print(matplotlib.__version__)' 1.4.2"><pre class="notranslate"><code class="notranslate">$ python --version Python 3.4.2 :: Continuum Analytics, Inc. $ python -c 'import matplotlib; print(matplotlib.__version__)' 1.4.2 </code></pre></div>
<p dir="auto">With matplotlib 1.4.0 the cla() method for the twinx axes also clears the primary axes. With matplotlib 1.3.1 the method only clears the twinx axes as expected. I have a much longer program where the twinx axes must be cleared while retaining the primary axis plot. I would prefer not to replot the entire graph each time the twinx axes change. You can see this by adding the cla method to the matplotlib web site example, two_scales.py, shown below.</p> <p dir="auto">I have matplotlib installed via the anaconda package. Matplotlib 1.4.0 is from anaconda 2.1.0. Matplotlib 1.3.1 is from 1.9 versions of the anaconda package.</p> <p dir="auto">Linux version:<br> Linux gamow 3.2.0-4-amd64 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="611170" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/1" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/1/hovercard" href="https://github.com/matplotlib/matplotlib/pull/1">#1</a> SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux<br> Same cla() result on osX 10.9.4.</p> <p dir="auto">Same result for backends Qt4Agg and TkAgg; the cla() method cleared both axes.<br> I also tried various other options such as setting ax2.hold(False) prior to replotting ax2. However, once again ax1 was cleared. The ax2 clear commands seem to apply to the ax1 axis as well??? These options worked as expected for the earlier matplotlib version, clearing only the ax2 axis.</p> <p dir="auto">Here’s the code: if you execute the code, you should see a blank figure with the cla() included and the usual two graphs without the cla() method.</p> <hr> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import matplotlib.pyplot as plt fig, ax1 = plt.subplots() t = np.arange(0.01, 10.0, 0.01) s1 = np.exp(t) ax1.plot(t, s1, 'b-') ax1.set_xlabel('time (s)') # Make the y-axis label and tick labels match the line color. ax1.set_ylabel('exp', color='b') for tl in ax1.get_yticklabels(): tl.set_color('b') ax2 = ax1.twinx() s2 = np.sin(2*np.pi*t) ax2.plot(t, s2, 'r.') ax2.set_ylabel('sin', color='r') for tl in ax2.get_yticklabels(): tl.set_color('r') # single line addition to the two_scales.py example # clears both ax2 and ax1 under matplotlib 1.4.0, clears only ax2 under matplotlib 1.3.1 # obviously, same result with ax2.clear() method ax2.cla() plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-s1">fig</span>, <span class="pl-s1">ax1</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>() <span class="pl-s1">t</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0.01</span>, <span class="pl-c1">10.0</span>, <span class="pl-c1">0.01</span>) <span class="pl-s1">s1</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">exp</span>(<span class="pl-s1">t</span>) <span class="pl-s1">ax1</span>.<span class="pl-en">plot</span>(<span class="pl-s1">t</span>, <span class="pl-s1">s1</span>, <span class="pl-s">'b-'</span>) <span class="pl-s1">ax1</span>.<span class="pl-en">set_xlabel</span>(<span class="pl-s">'time (s)'</span>) <span class="pl-c"># Make the y-axis label and tick labels match the line color.</span> <span class="pl-s1">ax1</span>.<span class="pl-en">set_ylabel</span>(<span class="pl-s">'exp'</span>, <span class="pl-s1">color</span><span class="pl-c1">=</span><span class="pl-s">'b'</span>) <span class="pl-k">for</span> <span class="pl-s1">tl</span> <span class="pl-c1">in</span> <span class="pl-s1">ax1</span>.<span class="pl-en">get_yticklabels</span>(): <span class="pl-s1">tl</span>.<span class="pl-en">set_color</span>(<span class="pl-s">'b'</span>) <span class="pl-s1">ax2</span> <span class="pl-c1">=</span> <span class="pl-s1">ax1</span>.<span class="pl-en">twinx</span>() <span class="pl-s1">s2</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">sin</span>(<span class="pl-c1">2</span><span class="pl-c1">*</span><span class="pl-s1">np</span>.<span class="pl-s1">pi</span><span class="pl-c1">*</span><span class="pl-s1">t</span>) <span class="pl-s1">ax2</span>.<span class="pl-en">plot</span>(<span class="pl-s1">t</span>, <span class="pl-s1">s2</span>, <span class="pl-s">'r.'</span>) <span class="pl-s1">ax2</span>.<span class="pl-en">set_ylabel</span>(<span class="pl-s">'sin'</span>, <span class="pl-s1">color</span><span class="pl-c1">=</span><span class="pl-s">'r'</span>) <span class="pl-k">for</span> <span class="pl-s1">tl</span> <span class="pl-c1">in</span> <span class="pl-s1">ax2</span>.<span class="pl-en">get_yticklabels</span>(): <span class="pl-s1">tl</span>.<span class="pl-en">set_color</span>(<span class="pl-s">'r'</span>) <span class="pl-c"># single line addition to the two_scales.py example</span> <span class="pl-c"># clears both ax2 and ax1 under matplotlib 1.4.0, clears only ax2 under matplotlib 1.3.1</span> <span class="pl-c"># obviously, same result with ax2.clear() method</span> <span class="pl-s1">ax2</span>.<span class="pl-en">cla</span>() <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <p dir="auto">I would appreciate any help; this looks like a bug in the latest version of matplotlib.<br> I could not find any reference to this problem in earlier posts.</p> <p dir="auto">Thanks,<br> Charlie</p> <p dir="auto">[TAC edited for markup]</p>
1
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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"> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>:</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: 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=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &quot;Celery task conf&quot; def a_method(param1, param2, **kwargs): ''' First time get executed, second time dosn't :return: ''' print(param1) print(param2) self.retry(kwargs=kwargs, countdown=15) my_dict_params = {&quot;param1&quot;: &quot;1&quot;, &quot;param2&quot;: &quot;2&quot;} app.a_method(my_dict_params).delay()"><pre class="notranslate"> <span class="pl-s">"Celery task conf"</span> <span class="pl-k">def</span> <span class="pl-en">a_method</span>(<span class="pl-s1">param1</span>, <span class="pl-s1">param2</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>): <span class="pl-s">'''</span> <span class="pl-s"> First time get executed, second time dosn't</span> <span class="pl-s"> :return: </span> <span class="pl-s"> '''</span> <span class="pl-en">print</span>(<span class="pl-s1">param1</span>) <span class="pl-en">print</span>(<span class="pl-s1">param2</span>) <span class="pl-s1">self</span>.<span class="pl-en">retry</span>(<span class="pl-s1">kwargs</span><span class="pl-c1">=</span><span class="pl-s1">kwargs</span>, <span class="pl-s1">countdown</span><span class="pl-c1">=</span><span class="pl-c1">15</span>) <span class="pl-s1">my_dict_params</span> <span class="pl-c1">=</span> {<span class="pl-s">"param1"</span>: <span class="pl-s">"1"</span>, <span class="pl-s">"param2"</span>: <span class="pl-s">"2"</span>} <span class="pl-s1">app</span>.<span class="pl-en">a_method</span>(<span class="pl-s1">my_dict_params</span>).<span class="pl-en">delay</span>()</pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">I expect retry do parameters expansion as the first normal call.</p> <h1 dir="auto">Actual Behavior</h1> Celery correcly saves "kwargs" state but on retry execution dosn't expand the kwargs arguments, asking for "positional arguments".
<p dir="auto">I am using SQS as a broker, and trying to use an existing queue. but everytime I am trying to send a message to the queue, celery creates a new queue with a random id as name.<br> This is how my my tasks.py looks like</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from celery import Celery from kombu.utils.url import safequote # real credentials, faking them here. aws_access_key = safequote(&quot;ABCDEFGHJIKL&quot;) aws_secret_key = safequote(&quot;abcdefhjkiglkiominoql&quot;) broker_transport_options = {'region': 'us-west-2'} broker_url=f&quot;sqs://{aws_access_key}:{aws_secret_key}@&quot; task_create_missing_queues = False event_queue_prefix = None app = Celery('tasks', broker=broker_url, backend='rpc://') app.conf.broker_transport_options = broker_transport_options app.conf.task_default_queue = 'myqueue' app.conf.task_create_missing_queues = False app.conf.event_queue_prefix = None @app.task def mytask(text): return f&quot;the text intput was {text}&quot;"><pre class="notranslate"><code class="notranslate">from celery import Celery from kombu.utils.url import safequote # real credentials, faking them here. aws_access_key = safequote("ABCDEFGHJIKL") aws_secret_key = safequote("abcdefhjkiglkiominoql") broker_transport_options = {'region': 'us-west-2'} broker_url=f"sqs://{aws_access_key}:{aws_secret_key}@" task_create_missing_queues = False event_queue_prefix = None app = Celery('tasks', broker=broker_url, backend='rpc://') app.conf.broker_transport_options = broker_transport_options app.conf.task_default_queue = 'myqueue' app.conf.task_create_missing_queues = False app.conf.event_queue_prefix = None @app.task def mytask(text): return f"the text intput was {text}" </code></pre></div> <p dir="auto">Another one of my surprises is that the following still works. I never open on any tab a celery (server? process?) as all tutorials explain:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# I am not running this celery -A tasks worker --loglevel=INFO"><pre class="notranslate"><code class="notranslate"># I am not running this celery -A tasks worker --loglevel=INFO </code></pre></div> <p dir="auto">The only thing I am doing is opening a pytho interpreter, and for some reason, running a <code class="notranslate">mytask.delay('myexample')</code> still works. I was expecting for it not to work</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python Python 3.9.9 (main, Nov 17 2021, 16:40:29) [GCC 8.3.0] on linux Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information. &gt;&gt;&gt; import tasks # Why does the following works, regardless if I have a &quot;celery process&quot; running or not? &gt;&gt;&gt; tasks.mytask.delay('asdasd') &lt;AsyncResult: 311e6538-dd79-451a-b282-5be1b271d736&gt;"><pre class="notranslate"><code class="notranslate">python Python 3.9.9 (main, Nov 17 2021, 16:40:29) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; import tasks # Why does the following works, regardless if I have a "celery process" running or not? &gt;&gt;&gt; tasks.mytask.delay('asdasd') &lt;AsyncResult: 311e6538-dd79-451a-b282-5be1b271d736&gt; </code></pre></div> <p dir="auto">so to summarize:</p> <ol dir="auto"> <li>Why is this creating a new queue in SQS instead of just reusing <code class="notranslate">myqueue</code> declared in <code class="notranslate">app.conf.task_default_queue = 'myqueue'</code>?</li> <li>why is this working, even if I don't have a celery process running?</li> </ol>
0
<p dir="auto">There is already exists es7 proposal <a href="https://github.com/leebyron/ecmascript-more-export-from">https://github.com/leebyron/ecmascript-more-export-from</a><br> and it accepted to stage-1.</p> <p dir="auto">It sould be nice to have same in typescript. Without it, it is annoying to write something like:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// module1.ts module Module1 { // I should explicit wrap to module for export // ... module declaration } export default Module1 // module2.ts module Module2 { // ... module declaration } export default Module2 // index.ts export {default as Module1} from &quot;./module1&quot; export {default as Module2} from &quot;./module2&quot; // usage.ts import * as Modules from &quot;./index&quot; // can be used Modules.Module1."><pre class="notranslate"><span class="pl-c">// module1.ts</span> module <span class="pl-smi">Module1</span> <span class="pl-kos">{</span> <span class="pl-c">// I should explicit wrap to module for export</span> <span class="pl-c">// ... module declaration</span> <span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-smi">Module1</span> <span class="pl-c">// module2.ts</span> module <span class="pl-smi">Module2</span> <span class="pl-kos">{</span> <span class="pl-c">// ... module declaration</span> <span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-smi">Module2</span> <span class="pl-c">// index.ts</span> <span class="pl-k">export</span> <span class="pl-kos">{</span><span class="pl-s1">default</span> <span class="pl-k">as</span> <span class="pl-smi">Module1</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./module1"</span> <span class="pl-k">export</span> <span class="pl-kos">{</span><span class="pl-s1">default</span> <span class="pl-k">as</span> <span class="pl-smi">Module2</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./module2"</span> <span class="pl-c">// usage.ts</span> <span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-smi">Modules</span> <span class="pl-k">from</span> <span class="pl-s">"./index"</span> <span class="pl-c">// can be used Modules.Module1.</span></pre></div> <p dir="auto">This can be done better with proposal:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// module1.ts // just a module declaration, without wrapping to explicit module // module2.ts // just a module declaration, without wrapping to explicit module // index.ts export * as Module1 from &quot;./module1&quot; export * as Module2 from &quot;./module2&quot; // usage.ts import * as Modules from &quot;./index&quot; // can be used Modules.Module1."><pre class="notranslate"><span class="pl-c">// module1.ts</span> <span class="pl-c">// just a module declaration, without wrapping to explicit module</span> <span class="pl-c">// module2.ts</span> <span class="pl-c">// just a module declaration, without wrapping to explicit module</span> <span class="pl-c">// index.ts</span> <span class="pl-k">export</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-smi">Module1</span> <span class="pl-k">from</span> <span class="pl-s">"./module1"</span> <span class="pl-k">export</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-smi">Module2</span> <span class="pl-k">from</span> <span class="pl-s">"./module2"</span> <span class="pl-c">// usage.ts</span> <span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-smi">Modules</span> <span class="pl-k">from</span> <span class="pl-s">"./index"</span> <span class="pl-c">// can be used Modules.Module1.</span></pre></div>
<p dir="auto">The ES7 proposal is available at: <a href="https://github.com/leebyron/ecmascript-more-export-from">https://github.com/leebyron/ecmascript-more-export-from</a></p> <p dir="auto">The additions include:</p> <p dir="auto">reexporting default:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// proposed: export v from &quot;mod&quot;; // symmetric to: import v from &quot;mod&quot;; export {v};"><pre class="notranslate"><span class="pl-c">// proposed:</span> <span class="pl-k">export</span> <span class="pl-s1">v</span> <span class="pl-k">from</span> <span class="pl-s">"mod"</span><span class="pl-kos">;</span> <span class="pl-c">// symmetric to:</span> <span class="pl-k">import</span> <span class="pl-s1">v</span> <span class="pl-k">from</span> <span class="pl-s">"mod"</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-kos">{</span><span class="pl-s1">v</span><span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">reexporting as sub-module:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// proposed: export * as ns from &quot;mod&quot;; // symmetric to: import * as ns from &quot;mod&quot;; export {ns};"><pre class="notranslate"><span class="pl-c">// proposed:</span> <span class="pl-k">export</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">ns</span> <span class="pl-k">from</span> <span class="pl-s">"mod"</span><span class="pl-kos">;</span> <span class="pl-c">// symmetric to:</span> <span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">ns</span> <span class="pl-k">from</span> <span class="pl-s">"mod"</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-kos">{</span><span class="pl-s1">ns</span><span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">also allowing combining</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// proposed export v, {x, y as w} from &quot;mod&quot; // symmetric to import v, {x, y as w} from &quot;mod&quot; As well as // proposed export v, * as ns from &quot;mod&quot; // symmetric to import v, * as ns from &quot;mod&quot;"><pre class="notranslate"><span class="pl-c">// proposed</span> <span class="pl-s1">export</span> <span class="pl-s1">v</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>x<span class="pl-kos">,</span> y <span class="pl-s1">as</span> <span class="pl-s1">w</span><span class="pl-kos">}</span> <span class="pl-s1">from</span> <span class="pl-s">"mod"</span> <span class="pl-c">// symmetric to</span> <span class="pl-k">import</span> <span class="pl-s1">v</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-s1">x</span><span class="pl-kos">,</span> <span class="pl-s1">y</span> <span class="pl-k">as</span> <span class="pl-s1">w</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"mod"</span> <span class="pl-smi">As</span> <span class="pl-s1">well</span> <span class="pl-k">as</span> <span class="pl-c">// proposed</span> <span class="pl-smi">export</span> <span class="pl-s1">v</span><span class="pl-kos">,</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">ns</span> <span class="pl-s1">from</span> <span class="pl-s">"mod"</span> <span class="pl-c">// symmetric to</span> <span class="pl-k">import</span> <span class="pl-s1">v</span><span class="pl-kos">,</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">ns</span> <span class="pl-k">from</span> <span class="pl-s">"mod"</span></pre></div>
1
<p dir="auto">An official apt repository would be really, very nice.</p> <p dir="auto">At present we're hesitant to install any software that we can't automate updates through the package manager.</p> <p dir="auto">Currently going to the elasticsearch website and downloading the latest deb from a web page just isn't suitable.</p>
<p dir="auto">Currently I´m checking once in a while if there are new packages available for Debian systems, but this is cumbersome. Ideally I could add your repository and import public keys into my apt keyring and get updates whenever they're ready. It doesn't really scale on an admin level to verify all packages manually ;-)</p>
1
<p dir="auto">Python's for-else construct as described for example in section 4.4, <a href="https://docs.python.org/2/tutorial/controlflow.html" rel="nofollow">here</a>, is sometimes very useful. (The idea is that the else clause will be executed after the loop completes normally, but not if we break out of the loop.) Could something similar be added to Julia?</p> <p dir="auto">As an example, code like:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="converged=true for i=1:n if !isapprox(y[i],ynew[i]) converged=false break end end if converged return y end"><pre class="notranslate">converged<span class="pl-k">=</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>n <span class="pl-k">if</span> <span class="pl-k">!</span><span class="pl-c1">isapprox</span>(y[i],ynew[i]) converged<span class="pl-k">=</span><span class="pl-c1">false</span> <span class="pl-k">break</span> <span class="pl-k">end</span> <span class="pl-k">end</span> <span class="pl-k">if</span> converged <span class="pl-k">return</span> y <span class="pl-k">end</span></pre></div> <p dir="auto">could become:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="for i=1:n if !isapprox(y[i],ynew[i]) break end else return y end"><pre class="notranslate"><span class="pl-k">for</span> i<span class="pl-k">=</span><span class="pl-c1">1</span><span class="pl-k">:</span>n <span class="pl-k">if</span> <span class="pl-k">!</span><span class="pl-c1">isapprox</span>(y[i],ynew[i]) <span class="pl-k">break</span> <span class="pl-k">end</span> <span class="pl-k">else</span> <span class="pl-k">return</span> y <span class="pl-k">end</span></pre></div>
<p dir="auto">Allow and else clause on for and while loops that executes if the loop never executes.</p>
1
<p dir="auto">add a button to open an admistrator shell in the same windows (make it possible to having adminstator shells and non administator shells in the same window)</p>
<p dir="auto">Hi! Is there a way to configure a profile so that the <code class="notranslate">commandLine</code> it launches always starts with elevated (admin) permissions?</p> <p dir="auto">Currently, you can launch the entire application as Administrator, but then every single <code class="notranslate">commandLine</code> runs as Administrator, which is not ideal.</p>
1
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2> <p dir="auto">Master branch build failure</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">git pull --rebase<br> git submodule sync --recursive<br> git submodule update --init --recursive</p> <p dir="auto">python setup.py develop</p> <p dir="auto">[3978/4367] Linking CXX executable bin/kernel_function_legacy_test<br> FAILED: bin/kernel_function_legacy_test<br> : &amp;&amp; /usr/bin/c++ -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DUSE_VULKAN_WRAPPER -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow -DHAVE_AVX_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION -O3 -DNDEBUG -DNDEBUG -rdynamic caffe2/CMakeFiles/kernel_function_legacy_test.dir/__/aten/src/ATen/core/boxing/impl/kernel_function_legacy_test.cpp.o -o bin/kernel_function_legacy_test -Wl,-rpath,/opt/ai/forks/pytorch/build/lib: lib/libgtest_main.a -Wl,--no-as-needed,/opt/ai/forks/pytorch/build/lib/libtorch.so -Wl,--as-needed -Wl,--no-as-needed,/opt/ai/forks/pytorch/build/lib/libtorch_cpu.so -Wl,--as-needed lib/libprotobuf.a lib/libc10.so lib/libdnnl.a -ldl lib/libgtest.a -pthread &amp;&amp; :<br> /opt/ai/forks/pytorch/build/lib/libtorch_cpu.so: undefined reference to `void fbgemm::CodeGenBase&lt;unsigned char, signed char, int, int&gt;::storeCRegs&lt;asmjit::x86::Zmm, 64&gt;(asmjit::x86::Emitter*, int, int, asmjit::x86::Gp, asmjit::x86::Gp, bool)'<br> collect2: error: ld returned 1 exit status<br> [3981/4367] Building CXX object test_jit/CMakeFiles/test_jit.dir/test_class_import.cpp.o<br> ninja: build stopped: subcommand failed.<br> Traceback (most recent call last):<br> File "setup.py", line 737, in <br> build_deps()<br> File "setup.py", line 321, in build_deps<br> cmake=cmake)<br> File "/opt/ai/forks/pytorch/tools/build_pytorch_libs.py", line 62, in build_caffe2<br> cmake.build(my_env)<br> File "/opt/ai/forks/pytorch/tools/setup_helpers/cmake.py", line 345, in build<br> self.run(build_args, my_env)<br> File "/opt/ai/forks/pytorch/tools/setup_helpers/cmake.py", line 141, in run<br> check_call(command, cwd=self.build_dir, env=env)<br> File "/home/v70786/anaconda3/lib/python3.7/subprocess.py", line 363, in check_call<br> raise CalledProcessError(retcode, cmd)<br> subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '4']' returned non-zero exit status 1.</p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Build Should succeed</p> <h2 dir="auto">Environment</h2> <p dir="auto">Collecting environment information...<br> PyTorch version: N/A<br> Is debug build: N/A<br> CUDA used to build PyTorch: N/A</p> <p dir="auto">OS: Ubuntu 18.04.4 LTS<br> GCC version: (Ubuntu 8.4.0-1ubuntu1~18.04) 8.4.0<br> CMake version: version 3.10.2</p> <p dir="auto">Python version: 3.7<br> Is CUDA available: N/A<br> CUDA runtime version: Could not collect<br> GPU models and configuration: Could not collect<br> Nvidia driver version: Could not collect<br> cuDNN version: Could not collect</p> <p dir="auto">Versions of relevant libraries:<br> [pip] numpy==1.18.1<br> [pip] numpydoc==0.9.2<br> [pip] torchvision==0.6.1<br> [conda] blas 1.0 mkl<br> [conda] mkl 2020.0 166<br> [conda] mkl-service 2.3.0 py37he904b0f_0<br> [conda] mkl_fft 1.0.15 py37ha843d7b_0<br> [conda] mkl_random 1.1.0 py37hd6b4f25_0<br> [conda] numpy 1.18.1 py37h4f9e942_0<br> [conda] numpy-base 1.18.1 py37hde5b4d6_1<br> [conda] numpydoc 0.9.2 py_0<br> [conda] torchvision 0.6.1 pypi_0 pypi</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/suo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/suo">@suo</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gmagogsfm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gmagogsfm">@gmagogsfm</a></p>
<h2 dir="auto">🐛 Bug</h2> <p dir="auto">This is a build regression within last few days.<br> We got undefined reference <code class="notranslate">void fbgemm::CodeGenBase&lt;unsigned char, signed char, int, int&gt;::storeCRegs&lt;asmjit::x86::Zmm, 64&gt;(asmjit::x86::Emitter*, int, int, asmjit::x86::Gp, asmjit::x86::Gp, bool)</code></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5203025/89109182-7a82b200-d471-11ea-90e8-66d0adb25120.png"><img width="1064" alt="image" src="https://user-images.githubusercontent.com/5203025/89109182-7a82b200-d471-11ea-90e8-66d0adb25120.png" style="max-width: 100%;"></a></p> <p dir="auto">Since there's an fbgemm update 2 days ago, that could be the reason.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="668682851" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/42302" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/42302/hovercard" href="https://github.com/pytorch/pytorch/pull/42302">#42302</a></p> <h2 dir="auto">Environment</h2> <ul dir="auto"> <li>PyTorch Version (e.g., 1.0): master</li> <li>OS (e.g., Linux): Ubuntu 18.04</li> <li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): source</li> <li>Build command you used (if compiling from source): cmake+ninja+gcc-8</li> <li>CUDA/cuDNN version: 11/8</li> </ul> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/malfet/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/malfet">@malfet</a></p>
1
<p dir="auto">Hello,</p> <p dir="auto">PowerToys don't start automatically and when I start manulaly, he crash.</p> <p dir="auto">I give you the log file.</p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5016444/2020-08-03.txt">2020-08-03.txt</a></p> <p dir="auto">and the Expection message :</p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.18363.0<br> IntPtr Length: 8<br> x64: True<br> Date: 08/03/2020 16:07:26<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
<p dir="auto">Popup tells me to give y'all this.</p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 07/31/2020 17:29:59<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
1
<p dir="auto">I hit CTRL+Z one too many times and it displayed the code from the previous challenge. I did a hard refresh and still have the code you see below. A screenshot is attached as well.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/25393587/22738951/a6abe24a-edd7-11e6-898c-2cdc25815a78.png"><img src="https://cloud.githubusercontent.com/assets/25393587/22738951/a6abe24a-edd7-11e6-898c-2cdc25815a78.png" alt="screen shot 2017-02-08 at 8 19 34 am" style="max-width: 100%;"></a></p> <p dir="auto"><a href="http://beta.freecodecamp.com/en/challenges/applied-visual-design/adjust-the-hue-of-a-color" rel="nofollow">adjust-the-hue-of-a-color</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;style&gt; body { background-color: white; } header { background-color: #09A7A1; color: white; padding: 0.25em; } h2 { color: #09A7A1; } button { background-color: #FF790E; } footer { background-color: #09A7A1; color: white; padding: 0.5em; } &lt;/style&gt; &lt;header&gt; &lt;h1&gt;Cooking with FCC!&lt;/h1&gt; &lt;/header&gt; &lt;main&gt; &lt;article&gt; &lt;h2&gt;Machine Learning in the Kitchen&lt;/h2&gt; &lt;p&gt;Join this two day workshop that walks through how to implement cutting-edge snack-getting algorithms with a command line interface. Coding usually involves writing exact instructions, but sometimes you need your computer to execute flexible commands, like &lt;code&gt;fetch Pringles&lt;/code&gt;.&lt;/p&gt; &lt;button&gt;Sign Up&lt;/button&gt; &lt;/article&gt; &lt;article&gt; &lt;h2&gt;Bisection Vegetable Chopping&lt;/h2&gt; &lt;p&gt;This week-long retreat will level-up your coding ninja skills to actual ninja skills. No longer is the humble bisection search limited to sorted arrays or coding interview questions, applying its concepts in the kitchen will have you chopping carrots in O(log n) time before you know it.&lt;/p&gt; &lt;button&gt;Sign Up&lt;/button&gt; &lt;/article&gt; &lt;/main&gt; &lt;br&gt; &lt;footer&gt;&amp;copy;2016 FCC Kitchen&lt;/footer&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-ent">body</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> white; } <span class="pl-ent">header</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>09A7A1</span>; <span class="pl-c1">color</span><span class="pl-kos">:</span> white; <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">0.25<span class="pl-smi">em</span></span>; } <span class="pl-ent">h2</span> { <span class="pl-c1">color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>09A7A1</span>; } <span class="pl-ent">button</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>FF790E</span>; } <span class="pl-ent">footer</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>09A7A1</span>; <span class="pl-c1">color</span><span class="pl-kos">:</span> white; <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">0.5<span class="pl-smi">em</span></span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">header</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h1</span><span class="pl-kos">&gt;</span>Cooking with FCC!<span class="pl-kos">&lt;/</span><span class="pl-ent">h1</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">header</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">main</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">article</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span>Machine Learning in the Kitchen<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>Join this two day workshop that walks through how to implement cutting-edge snack-getting algorithms with a command line interface. Coding usually involves writing exact instructions, but sometimes you need your computer to execute flexible commands, like <span class="pl-kos">&lt;</span><span class="pl-ent">code</span><span class="pl-kos">&gt;</span>fetch Pringles<span class="pl-kos">&lt;/</span><span class="pl-ent">code</span><span class="pl-kos">&gt;</span>.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span>Sign Up<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">article</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">article</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span>Bisection Vegetable Chopping<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>This week-long retreat will level-up your coding ninja skills to actual ninja skills. No longer is the humble bisection search limited to sorted arrays or coding interview questions, applying its concepts in the kitchen will have you chopping carrots in O(log n) time before you know it.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span>Sign Up<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">article</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">main</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">br</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">footer</span><span class="pl-kos">&gt;</span>&amp;copy;2016 FCC Kitchen<span class="pl-kos">&lt;/</span><span class="pl-ent">footer</span><span class="pl-kos">&gt;</span></pre></div>
<p dir="auto">Steps to reproduce:</p> <ol dir="auto"> <li>go to one of a challenge</li> <li>click "Map"</li> <li>click another challenge</li> <li>repeat step 2 and 4 as many as you want</li> <li>CTRL-Z (undo) in the editor will restore the editor to previous challenge</li> </ol> <p dir="auto">Expectation:</p> <ul dir="auto"> <li>when a challenge is opened, the CTRL-Z (undo) history expected to be cleared</li> </ul> <p dir="auto">Related with <a href="https://github.com/FreeCodeCamp/FreeCodeCamp/issues/806#issuecomment-249366799" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/806/hovercard">this</a></p> <p dir="auto">Codemirror has ability to clear undo history but in beta site we are using React (<code class="notranslate">react-codemirror</code>)</p> <p dir="auto">So the way to handle it might be different</p>
1
<p dir="auto">The capability has been discussed <a href="http://stackoverflow.com/questions/29758765/json-to-typescript-class-instance" rel="nofollow">here</a> and <a href="http://stackoverflow.com/questions/22885995/how-do-i-initialize-a-typescript-object-with-a-json-object" rel="nofollow">here</a> and <a href="http://stackoverflow.com/questions/22875636/how-do-i-cast-a-json-object-to-a-typescript-class" rel="nofollow">here</a>. I would like to see a built-in way of doing this in the Typescript language itself. Sort of like a deserializer.</p> <p dir="auto">JSON is the language of data. Typescript will have greater adoption if there is an easy way to 'cast' a JSON string (or the javascript object created from it) into an instance of a Typescript class. If it is just the javascript object, it doesn't have methods of the class and items initialized with the constructor.</p> <p dir="auto">In the links above, one challenge is complex classes, ie: instance of Car class that has instance of Engine class in the same JSON. There is not an elegant way of doing this. The closest is to adopt a convention for metadata in the JSON which shows the subclass name. For example, a property like <strong>name</strong> = "Engine", so the 'deserializer' knows what type of class to instantiate for the subclass items. One suggestion to make the convention less arbitrary would be to use metadata that Typescript adds to the javascript when using Typescript's reflection. If that was the approach, it would probably make sense to also create a 'serializer' that when stringifying the Typescript instance, also included the necessary metadata.</p> <p dir="auto">Could there be a way to accomplish this with Typescript <a href="http://www.typescriptlang.org/Handbook#declaration-merging" rel="nofollow">declaration merging</a> or <a href="https://typescript.codeplex.com/wikipage?title=Mixins%20in%20TypeScript&amp;referringTitle=Declaration%20Merging" rel="nofollow">mixins</a>?</p>
<p dir="auto"><strong>Motivation</strong></p> <p dir="auto">The shape of JSON stored in files can be validated using <a href="http://json-schema.org/" rel="nofollow">JSON schema</a>. However, JSON schema cannot be used to ensure the stored JSON corresponds to a specific TypeScript interface.</p> <p dir="auto">Understandably, most JSON tends to be stored in databases. However, there are many cases where small documents are stored on the file system in order to permit quick editing. Two common examples are config and resource files. The JSON in these files is loaded at runtime and accessed by JavaScript code, thereby necessitating they correspond to specific TypeScript interfaces.</p> <p dir="auto">We have a small but significant use case for this scenario.</p> <p dir="auto"><strong>Proposal</strong></p> <p dir="auto">Interface declarations file <code class="notranslate">user.d.ts</code></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="declare module user { interface Address { house: number; street: string; } interface User { name: string; address:Address; age: number; } }"><pre class="notranslate"><span class="pl-k">declare</span> module <span class="pl-s1">user</span> <span class="pl-kos">{</span> <span class="pl-k">interface</span> <span class="pl-smi">Address</span> <span class="pl-kos">{</span> <span class="pl-c1">house</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span> <span class="pl-c1">street</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">interface</span> <span class="pl-smi">User</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-c1">address</span>:<span class="pl-smi">Address</span><span class="pl-kos">;</span> <span class="pl-c1">age</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">TypeScript JSON file <code class="notranslate">user.json.ts</code></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/// &lt;reference path=&quot;user.d.ts&quot; /&gt; user.User: { &lt;----------- Annotation &quot;name&quot;: &quot;Joe Bloggs&quot;, /*Comment*/ // Permit comments &quot;address&quot;: { &quot;house&quot;: &quot;1&quot;, // Error: Number expected street: &quot;London&quot; // Error: Names must be quoted }, &quot;age&quot;: 55 // Error: Missing comma &quot;id&quot;: 101 // Error: Invalid property }"><pre class="notranslate"><span class="pl-c">/// &lt;reference path="user.d.ts" /&gt;</span> <span class="pl-s1">user</span><span class="pl-kos">.</span><span class="pl-c1">User</span>: <span class="pl-kos">{</span> <span class="pl-c1">&lt;</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-smi">Annotation</span> <span class="pl-s">"name"</span>: <span class="pl-s">"Joe Bloggs"</span><span class="pl-kos">,</span> <span class="pl-c">/*Comment*/</span> <span class="pl-c">// Permit comments</span> <span class="pl-s">"address"</span>: <span class="pl-kos">{</span> <span class="pl-s">"house"</span>: <span class="pl-s">"1"</span><span class="pl-kos">,</span> <span class="pl-c">// Error: Number expected</span> <span class="pl-c1">street</span>: <span class="pl-s">"London"</span> <span class="pl-c">// Error: Names must be quoted</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"age"</span>: <span class="pl-c1">55</span> <span class="pl-c">// Error: Missing comma</span> <span class="pl-s">"id"</span>: <span class="pl-c1">101</span> <span class="pl-c">// Error: Invalid property</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Compiled output (after errors are corrected): File <code class="notranslate">user.json</code></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;name&quot;: &quot;Joe Bloggs&quot;, &quot;address&quot;: { &quot;house&quot;: 1 &quot;street&quot;: &quot;London&quot; }, &quot;age&quot;: 55 }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"name"</span>: <span class="pl-s">"Joe Bloggs"</span><span class="pl-kos">,</span> <span class="pl-s">"address"</span>: <span class="pl-kos">{</span> <span class="pl-s">"house"</span>: <span class="pl-c1">1</span> <span class="pl-s">"street"</span>: <span class="pl-s">"London"</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"age"</span>: <span class="pl-c1">55</span> <span class="pl-kos">}</span></pre></div>
1
<p dir="auto">After installing tensorflow, I found only one tensorflow folder in the path tensorflow/inlcude. In fact, it shoud consist of many other folders such as third_party, google, Eigen and so on. I don't known the reason why I could not find these folders. The way which I used to install tensorflow is "sudo pip install --upgrade <a href="https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.7.1-cp27-none-linux_x86_64.whl" rel="nofollow">https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.7.1-cp27-none-linux_x86_64.whl</a>"</p> <p dir="auto">Thanks</p>
<p dir="auto">Will you make it possible to install and update it by distributions package systems (deb &amp; rpm)? You can make an official repository.<br> Will you make it possible to install a Tensorflow-devel package, which gives acces to C++ headers to make programs, which link to Tensorflow?</p>
1
<p dir="auto"><strong>Current behaviour</strong></p> <p dir="auto">Every time I build the react app the same bundle with the same hash name is built, Because of this the files get cached and the website loads the old assets. Even if I have done changes in any existing (eg: css) file still the built is creating the bundle with the same name.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17877361/58363755-f0cb7200-7ec6-11e9-8886-8e2fe2efe73f.PNG"><img src="https://user-images.githubusercontent.com/17877361/58363755-f0cb7200-7ec6-11e9-8886-8e2fe2efe73f.PNG" alt="Capture" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Expected behaviour</strong></p> <p dir="auto">Every time I build the app the hash name should change, Where can I configure that in my react app.</p> <p dir="auto">My react version is 16.7.0, I have created my project using the create-react-app command</p>
<p dir="auto">Describe what you were doing when the bug occurred:</p> <ol dir="auto"> <li>I was profiling a grid performance when rendering with 100 rows</li> <li>Then I was moving between the profiled data</li> <li>When clicked on the Ranked tab, the console showed error and a button to report it.</li> </ol> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.2.1-3816ae7c3</p> <p dir="auto">Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157108<br> at Map.forEach ()<br> at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157054)<br> at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157577)<br> at vl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:314907)<br> at gi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59907)<br> at jl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:107381)<br> at Lc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92715)<br> at Pc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92640)<br> at wc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:89544)</p> <p dir="auto">Component stack: in vl<br> in div<br> in div<br> in div<br> in wo<br> in Unknown<br> in n<br> in Unknown<br> in div<br> in div<br> in Li<br> in $e<br> in dn<br> in Ca<br> in Pc</p>
0
<h3 dir="auto">What problem does this feature solve?</h3> <p dir="auto">In large applications, there are often families of components, within which components share most of the look/behavior, but vary slightly. This makes it desirable to reuse code between them. Some reuse can be achieved with slots, other is better with component inheritance. But while most of the parent component definition can be smart-merged with child definition, the template has to be either kept as is, or replaced entirely.</p> <p dir="auto">I have seen multiple approaches to reusing component templates:</p> <ol dir="auto"> <li> <p dir="auto">Write very granular appearance-only components with many slots. While this sounds good in theory, in practice the granularity needed often makes this approach into an obstruction rather than abstraction.</p> </li> <li> <p dir="auto">Implement all required variation in a single component and make it configurable with slots and props. The downside is that you are stuck with a god-component, which is hard to maintain and extend further.</p> </li> <li> <p dir="auto">Extend the component, and use <code class="notranslate">&lt;parent&gt;...&lt;/parent&gt;</code> in the child template, using slots as "parts". The downside is that you have to "proxy" all props and slots down and events up. This is very cumbersome and fragile.</p> </li> <li> <p dir="auto">Split the component in question further into "part" components, so that you can override only certain part. This gets tedious very quickly, especially when you need <code class="notranslate">v-bind</code> or <code class="notranslate">v-on</code> inside of the overridden part.</p> </li> <li> <p dir="auto">Define "part" render functions among the methods, so that they can be overridden. The downside is that you can not really write such parts in template DSL, and the parts get disconnected from the main template, which makes it harder to understand.</p> </li> </ol> <h3 dir="auto">What does the proposed API look like?</h3> <p dir="auto">The Pug template engine (former Jade) implements a feature called <a href="https://pugjs.org/language/inheritance.html" rel="nofollow"><em>blocks</em></a>, which allows templates to extend other templates while overwriting (or extending) certain named blocks. I think this feature ported to Vue would fill the gap described above, and allow the templates to be more reusable.</p> <p dir="auto">A possible syntax:</p> <div class="highlight highlight-text-html-vue notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;!-- parent.vue --&gt; &lt;template&gt; &lt;div&gt; &lt;block name=&quot;header&quot;&gt; &lt;h3&gt;Default header&lt;/h3&gt; &lt;/block&gt; &lt;block name=&quot;body&quot;&gt; &lt;p&gt;Default body&lt;/p&gt; &lt;/block&gt; &lt;block name=&quot;footer&quot;&gt; &lt;!-- no footer by default --&gt; &lt;/block&gt; &lt;/div&gt; &lt;/template&gt;"><pre class="notranslate"><span class="pl-c"><span class="pl-c">&lt;!--</span> parent.vue <span class="pl-c">--&gt;</span></span> &lt;<span class="pl-ent">template</span>&gt; &lt;<span class="pl-ent">div</span>&gt; &lt;<span class="pl-ent">block</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>header<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">h3</span>&gt;Default header&lt;/<span class="pl-ent">h3</span>&gt; &lt;/<span class="pl-ent">block</span>&gt; &lt;<span class="pl-ent">block</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>body<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">p</span>&gt;Default body&lt;/<span class="pl-ent">p</span>&gt; &lt;/<span class="pl-ent">block</span>&gt; &lt;<span class="pl-ent">block</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>footer<span class="pl-pds">"</span></span>&gt; <span class="pl-c"><span class="pl-c">&lt;!--</span> no footer by default <span class="pl-c">--&gt;</span></span> &lt;/<span class="pl-ent">block</span>&gt; &lt;/<span class="pl-ent">div</span>&gt; &lt;/<span class="pl-ent">template</span>&gt;</pre></div> <div class="highlight highlight-text-html-vue notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;!-- child.vue --&gt; &lt;!-- there is no root element (only blocks), so the parent template is reused --&gt; &lt;template&gt; &lt;block name=&quot;header&quot;&gt; &lt;h2&gt;More pronounced header&lt;/h2&gt; &lt;/block&gt; &lt;block name=&quot;footer&quot;&gt; &lt;p&gt;Footer added by the child&lt;/p&gt; &lt;/block&gt; &lt;/template&gt;"><pre class="notranslate"><span class="pl-c"><span class="pl-c">&lt;!--</span> child.vue <span class="pl-c">--&gt;</span></span> <span class="pl-c"><span class="pl-c">&lt;!--</span> there is no root element (only blocks), so the parent template is reused <span class="pl-c">--&gt;</span></span> &lt;<span class="pl-ent">template</span>&gt; &lt;<span class="pl-ent">block</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>header<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">h2</span>&gt;More pronounced header&lt;/<span class="pl-ent">h2</span>&gt; &lt;/<span class="pl-ent">block</span>&gt; &lt;<span class="pl-ent">block</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>footer<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">p</span>&gt;Footer added by the child&lt;/<span class="pl-ent">p</span>&gt; &lt;/<span class="pl-ent">block</span>&gt; &lt;/<span class="pl-ent">template</span>&gt;</pre></div>
<h3 dir="auto">What problem does this feature solve?</h3> <p dir="auto">Subject pretty much sums it all up. More often than not a property name matches a variable name. Typing :value="value" :options="options" looks a bit excessive.</p> <p dir="auto">Feature is strictly cosmetics but it would help us to write less and more expressive code.</p> <h3 dir="auto">What does the proposed API look like?</h3> <p dir="auto"><code class="notranslate">&lt;component :prop1 :prop2 /&gt;</code> would automatically pass prop1 and prop2 to the component. If prop1/prop2 is not defined undefined would be passed instead. Additionally a warning would be printed to the console.</p>
0
<p dir="auto">Even without any customization, the following error is produced in css file:</p> <p dir="auto">A less error occured trying to build your bundle. You've likely entered an invalid input into the less variable field. Check your syntax and try again!</p> <p dir="auto">thanks!</p> <p dir="auto">{"type":"Parse","message":"missing opening <code class="notranslate">{</code>","filename":"bootstrap.css","index":373685,"line":6379,"column":0,"extract":["","",null]}</p>
<p dir="auto">Hi - I am trying to use the v2.3.1 customize and download feature. Regardless of whether I change any of the variables I get 2 error.txt files in the CSS folder and no .css files.</p> <p dir="auto">The error text message reads:</p> <p dir="auto">"A less error occured trying to build your bundle. You've likely entered an invalid input into the less variable field. Check your syntax and try again!</p> <p dir="auto">thanks!</p> <p dir="auto">{"type":"Parse","message":"missing opening <code class="notranslate">{</code>","filename":"bootstrap.css","index":372259,"line":6292,"column":0,"extract":["}","",null]}"</p>
1
<p dir="auto"><strong>Migrated issue, originally created by Asher Leon Manning (<a href="https://github.com/A-Manning">@A-Manning</a>)</strong></p> <p dir="auto">At line 2523 in sqlalchemy\sql\compiler ,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="text += &quot;(%d)&quot; % type_.length"><pre class="notranslate"><code class="notranslate">text += "(%d)" % type_.length </code></pre></div> <p dir="auto">causes a TypeError, as the '%d' expects a number, not 'max'</p>
<p dir="auto"><strong>Migrated issue, originally created by adridg (<a href="https://github.com/adridg">@adridg</a>)</strong></p> <p dir="auto">With SQL Server, you can create columns of type VARCHAR(MAX). This is the modern rendition of NTEXT or TEXT, and SQL Alchemy translates String() into VARCHAR(MAX). With SQL Server 2012 or later, this happens automatically, and it's described in <a href="http://docs.sqlalchemy.org/en/latest/changelog/changelog_10.html#change-f520106ec3455eaa056110c048aa4862" rel="nofollow">http://docs.sqlalchemy.org/en/latest/changelog/changelog_10.html#change-f520106ec3455eaa056110c048aa4862</a> .</p> <p dir="auto">However, on reflection (through the inspector) you can end up with a VARCHAR (sql type-)object that has a length of "max" (i.e. a string). Printing that object causes an exception. As a very simple and contrived example:</p> <p dir="auto">from sqlalchemy import VARCHAR<br> print VARCHAR()<br> print VARCHAR(80)<br> print VARCHAR("max") # Fails in _render_type_string</p> <p dir="auto">Attached find a simple test program that creates a table with a String() column, then reflects it to discover the VARCHAR(MAX) column.</p> <hr> <p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/3504/t.py">t.py</a></p>
1
<p dir="auto">Hi,</p> <p dir="auto">Use-case:</p> <ol dir="auto"> <li>I have a directive which performs my custom componetns search via ContentChildren</li> <li>I have multiple re-usable container components</li> <li>I want to use "search" directive in the template of these components</li> </ol> <p dir="auto">Here is <a href="http://plnkr.co/edit/VEcMTTkr7TayU9vcSB7y?p=preview" rel="nofollow">plunker</a> with STR:</p> <ol dir="auto"> <li>Open plunker</li> <li>Open browser's console</li> <li>"dump inputs from container" dumps the result of "search" directive. Directive was used in container's component template. Array will be empty (reproduction of the issue)</li> <li>At the same time "dump inputs from app" dumps 3 existing input components. Directive was used for container in app's template</li> </ol>
<p dir="auto"><strong>I'm submitting a ...</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[] bug report [ x ] feature request [ ] support request"><pre class="notranslate"><code class="notranslate">[] bug report [ x ] feature request [ ] support request </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> Querying ngContent with a superclass doesn't work.</p> <p dir="auto"><strong>Expected behavior</strong><br> Querying ngContent with a superclass should work.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> Currently, if you have a component that uses ng-content inside of its template, it can render out whatever you pass to it. (ie. any other component or html). However referencing this component is only possible if you know exactly what component it will be.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@ContentChildren(Component1) myComponent;"><pre class="notranslate"><code class="notranslate">@ContentChildren(Component1) myComponent; </code></pre></div> <p dir="auto">In the case where you don't know, you can't select it. My request would be that you can select the components off a super class. Say, <code class="notranslate">Component1 extends MySuperClass</code> and <code class="notranslate">Component2 extends MySuperClass</code> you can select their instances like so:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@ContentChildren(MySuperClass) myComponents;"><pre class="notranslate"><code class="notranslate">@ContentChildren(MySuperClass) myComponents; </code></pre></div> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> The motivation behind this is allowing dynamic components to be injected yet allow their instance to be referenced by their parent component. In my particular use-case I am allowing the developer to build pages of a wizard containing whatever component they need -- I then assume that they have a class or interface on them that they share so that I can call functions on them like, say, <code class="notranslate">validate</code> so I can move forward in the wizard.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;wizard&gt; &lt;page&gt; &lt;component1&gt;&lt;/component1&gt; &lt;/page&gt; &lt;page&gt; &lt;component2&gt;&lt;/component2&gt; &lt;/page&gt; &lt;/wizard&gt;"><pre class="notranslate"><code class="notranslate">&lt;wizard&gt; &lt;page&gt; &lt;component1&gt;&lt;/component1&gt; &lt;/page&gt; &lt;page&gt; &lt;component2&gt;&lt;/component2&gt; &lt;/page&gt; &lt;/wizard&gt; </code></pre></div> <p dir="auto"><strong>Please tell us about your environment:</strong><br> Windows 10, Angular 2.0.1, WebStorm, Webpack/Gulp</p> <p dir="auto"><strong>Additional Notes</strong><br> A workaround currently is instead to pass the components in as a config (say an array of components) and then refer to them that way. However it would be nice to be able to reference the instances of the components injected dynamically via ng-content</p> <p dir="auto">I would also think that this may be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="154128120" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/8580" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/8580/hovercard" href="https://github.com/angular/angular/issues/8580">#8580</a> in the sense that I would expect these two scenarios to work the same. The linked issues mentions that super class selectors should work (at least when the components aren't dynamically defined).</p>
1
<p dir="auto">It appears that when a type alias to array type which uses an undefined constant for it's size is defined, the compiler crashes. I have only been able to reproduce this with the constants defined in uint modules.</p> <p dir="auto">This code</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// This line prevents the crash // use std::usize; type Array = [usize; usize::MAX]; pub fn main() { }"><pre class="notranslate"><span class="pl-c">// This line prevents the crash</span> <span class="pl-c">// use std::usize;</span> <span class="pl-k">type</span> <span class="pl-smi">Array</span> = <span class="pl-kos">[</span><span class="pl-smi">usize</span><span class="pl-kos">;</span> usize<span class="pl-kos">::</span><span class="pl-v">MAX</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Causes this ICE</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc --version rustc 1.4.0-nightly (14b7591ee 2015-08-25) $ RUST_BACKTRACE=1 rustc test.rs error: internal compiler error: unexpected panic note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports thread 'rustc' panicked at 'path not fully resolved: PathResolution { base_def: DefPrimTy(TyUint(usize)), last_private: LastMod(AllPublic), depth: 1 }', ../src/librustc/middle/def.rs:80 stack backtrace: 1: 0x112c8e9b0 - sys::backtrace::tracing::imp::write::h3e935b9f3aaf3eeePbs 2: 0x112c969db - panicking::on_panic::h957ddaa69f7f85c8gOw 3: 0x112c5aaa2 - rt::unwind::begin_unwind_inner::hb89bb27d32753510tjw 4: 0x112c5b82d - rt::unwind::begin_unwind_fmt::he8dabdca760d872dziw 5: 0x10fb7f27e - middle::const_eval::eval_const_expr_partial::hf609e26a8506489cQVk 6: 0x10f382980 - astconv::ast_ty_to_ty::h68164822b6891101Fhx 7: 0x10f3f9b21 - collect::type_scheme_of_item::h682b0ea5c5e15cc9d8z 8: 0x10f3f1915 - collect::convert_typed_item::hd9be457a3a816bfbYcA 9: 0x10f3de6a5 - collect::convert_item::h608bb1b0eec4bc39d7y 10: 0x10f3d96a6 - collect::collect_item_types::h044e5c22dac41959Jiy 11: 0x10f425cad - check_crate::h6947ac03da7c9939BAE 12: 0x10f0237b1 - driver::phase_3_run_analysis_passes::closure.20559 13: 0x10f00379a - middle::ty::ctxt&lt;'tcx&gt;::create_and_enter::h16983514113163001088 14: 0x10effee13 - driver::phase_3_run_analysis_passes::h14634090375742016845 15: 0x10efe3424 - driver::compile_input::h6df79a1a00f2ec91Tba 16: 0x10f147e01 - run_compiler::hf8bd4801a975e1fd0bc 17: 0x10f1456e9 - boxed::F.FnBox&lt;A&gt;::call_box::h17883815892091822200 18: 0x10f1450e2 - rt::unwind::try::try_fn::h1123102451065047215 19: 0x112c96598 - __rust_try 20: 0x112c82f60 - rt::unwind::try::inner_try::he6f08bfba5a665ddmfw 21: 0x10f145292 - boxed::F.FnBox&lt;A&gt;::call_box::h10813678079818206125 22: 0x112c9590d - sys::thread::Thread::new::thread_start::h868305d2c1b7d5304Dv 23: 0x7fff95650267 - _pthread_body 24: 0x7fff956501e4 - _pthread_start"><pre class="notranslate"><code class="notranslate">$ rustc --version rustc 1.4.0-nightly (14b7591ee 2015-08-25) $ RUST_BACKTRACE=1 rustc test.rs error: internal compiler error: unexpected panic note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports thread 'rustc' panicked at 'path not fully resolved: PathResolution { base_def: DefPrimTy(TyUint(usize)), last_private: LastMod(AllPublic), depth: 1 }', ../src/librustc/middle/def.rs:80 stack backtrace: 1: 0x112c8e9b0 - sys::backtrace::tracing::imp::write::h3e935b9f3aaf3eeePbs 2: 0x112c969db - panicking::on_panic::h957ddaa69f7f85c8gOw 3: 0x112c5aaa2 - rt::unwind::begin_unwind_inner::hb89bb27d32753510tjw 4: 0x112c5b82d - rt::unwind::begin_unwind_fmt::he8dabdca760d872dziw 5: 0x10fb7f27e - middle::const_eval::eval_const_expr_partial::hf609e26a8506489cQVk 6: 0x10f382980 - astconv::ast_ty_to_ty::h68164822b6891101Fhx 7: 0x10f3f9b21 - collect::type_scheme_of_item::h682b0ea5c5e15cc9d8z 8: 0x10f3f1915 - collect::convert_typed_item::hd9be457a3a816bfbYcA 9: 0x10f3de6a5 - collect::convert_item::h608bb1b0eec4bc39d7y 10: 0x10f3d96a6 - collect::collect_item_types::h044e5c22dac41959Jiy 11: 0x10f425cad - check_crate::h6947ac03da7c9939BAE 12: 0x10f0237b1 - driver::phase_3_run_analysis_passes::closure.20559 13: 0x10f00379a - middle::ty::ctxt&lt;'tcx&gt;::create_and_enter::h16983514113163001088 14: 0x10effee13 - driver::phase_3_run_analysis_passes::h14634090375742016845 15: 0x10efe3424 - driver::compile_input::h6df79a1a00f2ec91Tba 16: 0x10f147e01 - run_compiler::hf8bd4801a975e1fd0bc 17: 0x10f1456e9 - boxed::F.FnBox&lt;A&gt;::call_box::h17883815892091822200 18: 0x10f1450e2 - rt::unwind::try::try_fn::h1123102451065047215 19: 0x112c96598 - __rust_try 20: 0x112c82f60 - rt::unwind::try::inner_try::he6f08bfba5a665ddmfw 21: 0x10f145292 - boxed::F.FnBox&lt;A&gt;::call_box::h10813678079818206125 22: 0x112c9590d - sys::thread::Thread::new::thread_start::h868305d2c1b7d5304Dv 23: 0x7fff95650267 - _pthread_body 24: 0x7fff956501e4 - _pthread_start </code></pre></div>
<p dir="auto">Implementing my own fd_set because, per <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="93116784" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/26794" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/26794/hovercard" href="https://github.com/rust-lang/rust/issues/26794">#26794</a>, I can't find one exported elsewhere. But trying to be clever about the size of the required array causes a panic:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="extern crate libc; pub struct fd_set { pub __fds_bits: [libc::c_long ; (1024 / usize::BITS)], } fn main () { }"><pre class="notranslate"><code class="notranslate">extern crate libc; pub struct fd_set { pub __fds_bits: [libc::c_long ; (1024 / usize::BITS)], } fn main () { } </code></pre></div> <p dir="auto">Causes the following output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: internal compiler error: unexpected panic note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports thread 'rustc' panicked at 'path not fully resolved: PathResolution { base_def: DefPrimTy(TyUint(usize)), last_private: LastMod(AllPublic), depth: 1 }', ../src/librustc/middle/def.rs:81 stack backtrace: 1: 0x7fc464f645ee - sys::backtrace::write::h04a6ced565b26815Lqs 2: 0x7fc464f6c214 - panicking::on_panic::h521f84b604e22dfel8w 3: 0x7fc464f2f04e - rt::unwind::begin_unwind_inner::hd3dee614a0e1c16cZNw 4: 0x7fc464f2fd7c - rt::unwind::begin_unwind_fmt::ha4ce6704c81423045Mw 5: 0x7fc462f5c059 - middle::const_eval::eval_const_expr_with_substs::h5244545712744191145 6: 0x7fc462f5a532 - middle::const_eval::eval_const_expr_with_substs::h5244545712744191145 7: 0x7fc462f5a8e3 - middle::const_eval::eval_const_expr_with_substs::h5244545712744191145 8: 0x7fc462f0d04b - middle::const_eval::eval_const_expr_partial::h2b23a01d787e9d5efLk 9: 0x7fc464740802 - astconv::ast_ty_to_ty::hb2c49d2cf31c029bYUv 10: 0x7fc4647bcaa3 - iter::Map&lt;I, F&gt;.Iterator::next::h1378750426170396750 11: 0x7fc4647b1ad8 - collect::convert_struct::h6351cd87dbfb23b7u5x 12: 0x7fc4647a3080 - collect::convert_item::h502c0d9543ddcc68AKx 13: 0x7fc46479e467 - collect::collect_item_types::hbd4ad720377bedf8RRw 14: 0x7fc4647ec15b - check_crate::h594ee0148d251222uZC 15: 0x7fc4654c4c69 - driver::phase_3_run_analysis_passes::closure.15783 16: 0x7fc4654c3633 - middle::ty::ctxt&lt;'tcx&gt;::create_and_enter::h349256048753845929 17: 0x7fc4654bea17 - driver::phase_3_run_analysis_passes::h15521018079403107052 18: 0x7fc4654a1266 - driver::compile_input::hbf698b02349f7ce3Tba 19: 0x7fc46557aed3 - run_compiler::hd724b5fef3441688y7b 20: 0x7fc4655788ae - boxed::F.FnBox&lt;A&gt;::call_box::h6609070342514802751 21: 0x7fc4655780f9 - rt::unwind::try::try_fn::h10774555836369096370 22: 0x7fc464fe5d48 - rust_try_inner 23: 0x7fc464fe5d35 - rust_try 24: 0x7fc464f578a7 - rt::unwind::try::inner_try::hb0d7a3eb324339ceSJw 25: 0x7fc46557830b - boxed::F.FnBox&lt;A&gt;::call_box::h18179817771297192954 26: 0x7fc464f6ae71 - sys::thread::Thread::new::thread_start::hf8c7448e27294ed0PTv 27: 0x7fc45eb9c529 - start_thread 28: 0x7fc464bc322c - __clone 29: 0x0 - &lt;unknown&gt;"><pre class="notranslate"><code class="notranslate">error: internal compiler error: unexpected panic note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports thread 'rustc' panicked at 'path not fully resolved: PathResolution { base_def: DefPrimTy(TyUint(usize)), last_private: LastMod(AllPublic), depth: 1 }', ../src/librustc/middle/def.rs:81 stack backtrace: 1: 0x7fc464f645ee - sys::backtrace::write::h04a6ced565b26815Lqs 2: 0x7fc464f6c214 - panicking::on_panic::h521f84b604e22dfel8w 3: 0x7fc464f2f04e - rt::unwind::begin_unwind_inner::hd3dee614a0e1c16cZNw 4: 0x7fc464f2fd7c - rt::unwind::begin_unwind_fmt::ha4ce6704c81423045Mw 5: 0x7fc462f5c059 - middle::const_eval::eval_const_expr_with_substs::h5244545712744191145 6: 0x7fc462f5a532 - middle::const_eval::eval_const_expr_with_substs::h5244545712744191145 7: 0x7fc462f5a8e3 - middle::const_eval::eval_const_expr_with_substs::h5244545712744191145 8: 0x7fc462f0d04b - middle::const_eval::eval_const_expr_partial::h2b23a01d787e9d5efLk 9: 0x7fc464740802 - astconv::ast_ty_to_ty::hb2c49d2cf31c029bYUv 10: 0x7fc4647bcaa3 - iter::Map&lt;I, F&gt;.Iterator::next::h1378750426170396750 11: 0x7fc4647b1ad8 - collect::convert_struct::h6351cd87dbfb23b7u5x 12: 0x7fc4647a3080 - collect::convert_item::h502c0d9543ddcc68AKx 13: 0x7fc46479e467 - collect::collect_item_types::hbd4ad720377bedf8RRw 14: 0x7fc4647ec15b - check_crate::h594ee0148d251222uZC 15: 0x7fc4654c4c69 - driver::phase_3_run_analysis_passes::closure.15783 16: 0x7fc4654c3633 - middle::ty::ctxt&lt;'tcx&gt;::create_and_enter::h349256048753845929 17: 0x7fc4654bea17 - driver::phase_3_run_analysis_passes::h15521018079403107052 18: 0x7fc4654a1266 - driver::compile_input::hbf698b02349f7ce3Tba 19: 0x7fc46557aed3 - run_compiler::hd724b5fef3441688y7b 20: 0x7fc4655788ae - boxed::F.FnBox&lt;A&gt;::call_box::h6609070342514802751 21: 0x7fc4655780f9 - rt::unwind::try::try_fn::h10774555836369096370 22: 0x7fc464fe5d48 - rust_try_inner 23: 0x7fc464fe5d35 - rust_try 24: 0x7fc464f578a7 - rt::unwind::try::inner_try::hb0d7a3eb324339ceSJw 25: 0x7fc46557830b - boxed::F.FnBox&lt;A&gt;::call_box::h18179817771297192954 26: 0x7fc464f6ae71 - sys::thread::Thread::new::thread_start::hf8c7448e27294ed0PTv 27: 0x7fc45eb9c529 - start_thread 28: 0x7fc464bc322c - __clone 29: 0x0 - &lt;unknown&gt; </code></pre></div>
1
<p dir="auto">xref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="95119549" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/10577" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/10577/hovercard" href="https://github.com/pandas-dev/pandas/pull/10577">#10577</a> (has test for duplicates with empty data)</p> <p dir="auto">I don't expect this is the correct behavior, although it's always possible I'm doing something wrong. Importing data using the <code class="notranslate">names</code> keyword will clobber the values of columns where the name is duplicated. For example:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from StringIO import StringIO import pandas as pd data = &quot;&quot;&quot;a,1 b,2 c,3&quot;&quot;&quot; names = ['field', 'field'] print pd.read_csv(StringIO(data), names=names, mangle_dupe_cols=True) print pd.read_csv(StringIO(data), names=names, mangle_dupe_cols=False)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-v">StringIO</span> <span class="pl-k">import</span> <span class="pl-v">StringIO</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s">"""a,1</span> <span class="pl-s">b,2</span> <span class="pl-s">c,3"""</span> <span class="pl-s1">names</span> <span class="pl-c1">=</span> [<span class="pl-s">'field'</span>, <span class="pl-s">'field'</span>] <span class="pl-k">print</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-v">StringIO</span>(<span class="pl-s1">data</span>), <span class="pl-s1">names</span><span class="pl-c1">=</span><span class="pl-s1">names</span>, <span class="pl-s1">mangle_dupe_cols</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-k">print</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-v">StringIO</span>(<span class="pl-s1">data</span>), <span class="pl-s1">names</span><span class="pl-c1">=</span><span class="pl-s1">names</span>, <span class="pl-s1">mangle_dupe_cols</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)</pre></div> <p dir="auto">returns</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" field field 0 1 1 1 2 2 2 3 3 field field 0 1 1 1 2 2 2 3 3"><pre class="notranslate"><code class="notranslate"> field field 0 1 1 1 2 2 2 3 3 field field 0 1 1 1 2 2 2 3 3 </code></pre></div> <p dir="auto">However, this produces the correct result:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="df = pd.read_csv(StringIO(data), header=None) df.columns = names print df"><pre class="notranslate"><span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-v">StringIO</span>(<span class="pl-s1">data</span>), <span class="pl-s1">header</span><span class="pl-c1">=</span><span class="pl-c1">None</span>) <span class="pl-s1">df</span>.<span class="pl-s1">columns</span> <span class="pl-c1">=</span> <span class="pl-s1">names</span> <span class="pl-k">print</span> <span class="pl-s1">df</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" field field 0 a 1 1 b 2 2 c 3"><pre class="notranslate"><code class="notranslate"> field field 0 a 1 1 b 2 2 c 3 </code></pre></div> <p dir="auto">Interestingly, it works if the field names are in the header:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="data_with_header = &quot;field,field\n&quot; + data print pd.read_csv(StringIO(data_with_header))"><pre class="notranslate"><span class="pl-s1">data_with_header</span> <span class="pl-c1">=</span> <span class="pl-s">"field,field<span class="pl-cce">\n</span>"</span> <span class="pl-c1">+</span> <span class="pl-s1">data</span> <span class="pl-k">print</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-v">StringIO</span>(<span class="pl-s1">data_with_header</span>))</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" field field.1 0 a 1 1 b 2 2 c 3"><pre class="notranslate"><code class="notranslate"> field field.1 0 a 1 1 b 2 2 c 3 </code></pre></div> <p dir="auto">Is this a bug or am I doing something wrong?</p>
<p dir="auto">I find R's <code class="notranslate">expand.grid()</code> function quite useful for quick creation of example datasets. For example:</p> <div class="highlight highlight-source-r notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="expand.grid(height = seq(60, 70, 5), weight = seq(100, 180, 40), sex = c(&quot;Male&quot;,&quot;Female&quot;))"><pre class="notranslate">expand.grid(<span class="pl-v">height</span> <span class="pl-k">=</span> seq(<span class="pl-c1">60</span>, <span class="pl-c1">70</span>, <span class="pl-c1">5</span>), <span class="pl-v">weight</span> <span class="pl-k">=</span> seq(<span class="pl-c1">100</span>, <span class="pl-c1">180</span>, <span class="pl-c1">40</span>), <span class="pl-v">sex</span> <span class="pl-k">=</span> c(<span class="pl-s"><span class="pl-pds">"</span>Male<span class="pl-pds">"</span></span>,<span class="pl-s"><span class="pl-pds">"</span>Female<span class="pl-pds">"</span></span>))</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" height weight sex 1 60 100 Male 2 65 100 Male 3 70 100 Male 4 60 140 Male 5 65 140 Male 6 70 140 Male 7 60 180 Male 8 65 180 Male 9 70 180 Male 10 60 100 Female 11 65 100 Female 12 70 100 Female 13 60 140 Female 14 65 140 Female 15 70 140 Female 16 60 180 Female 17 65 180 Female 18 70 180 Female"><pre class="notranslate"><code class="notranslate"> height weight sex 1 60 100 Male 2 65 100 Male 3 70 100 Male 4 60 140 Male 5 65 140 Male 6 70 140 Male 7 60 180 Male 8 65 180 Male 9 70 180 Male 10 60 100 Female 11 65 100 Female 12 70 100 Female 13 60 140 Female 14 65 140 Female 15 70 140 Female 16 60 180 Female 17 65 180 Female 18 70 180 Female </code></pre></div> <p dir="auto">A simple implementation of this for <code class="notranslate">pandas</code> is easy to put together:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def expand_grid(dct): rows = itertools.product(*dct.values()) return pd.DataFrame.from_records(rows, columns=dct.keys()) df = expand_grid( {'height': range(60, 71, 5), 'weight': range(100, 181, 40), 'sex': ['Male', 'Female']} ) print(df)"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">expand_grid</span>(<span class="pl-s1">dct</span>): <span class="pl-s1">rows</span> <span class="pl-c1">=</span> <span class="pl-s1">itertools</span>.<span class="pl-en">product</span>(<span class="pl-c1">*</span><span class="pl-s1">dct</span>.<span class="pl-en">values</span>()) <span class="pl-k">return</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>.<span class="pl-en">from_records</span>(<span class="pl-s1">rows</span>, <span class="pl-s1">columns</span><span class="pl-c1">=</span><span class="pl-s1">dct</span>.<span class="pl-en">keys</span>()) <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-en">expand_grid</span>( {<span class="pl-s">'height'</span>: <span class="pl-en">range</span>(<span class="pl-c1">60</span>, <span class="pl-c1">71</span>, <span class="pl-c1">5</span>), <span class="pl-s">'weight'</span>: <span class="pl-en">range</span>(<span class="pl-c1">100</span>, <span class="pl-c1">181</span>, <span class="pl-c1">40</span>), <span class="pl-s">'sex'</span>: [<span class="pl-s">'Male'</span>, <span class="pl-s">'Female'</span>]} ) <span class="pl-en">print</span>(<span class="pl-s1">df</span>)</pre></div> <p dir="auto">Do people think this would be a useful addition?</p> <p dir="auto">If so, what kind of features should it have beyond the basics? A <code class="notranslate">dtypes</code> argument, specifying which column should be the index, etc.?</p> <p dir="auto">I'm also not sure if <code class="notranslate">expand_grid</code> is the most intuitive name, but given that it's duplicating<br> R functionality, maybe it's best just to leave it as is.</p>
0
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">Adding the possibility to customize what shortcuts you want to see in Shortcut Guide and even add custom ones.</p> <p dir="auto">Then we can all add the Win+. shortcut so we don't always have to google it on Bing <g-emoji class="g-emoji" alias="pray" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f64f.png">🙏</g-emoji></p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">When activating PowerToys Run, the search bar always appears in the center of the screen, sometimes hiding relevant content to enter into the search bar. I would like the ability to move the search bar to whatever location on the screen by dragging it. PowerToys Run should also remember where it was last placed so it will always launch from that location.</p> <p dir="auto">For example, I'm a longtime user of Launchy (even on Windows 10), and always would place it on the bottom left of my screen. I would like to do the same with PowerToys Run</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1>
0
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.11</li> <li>Operating System / Platform =&gt; Raspberry Pi 4</li> <li>Compiler =&gt; g++(Raspbian 8.3.0-6+rpi1)</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">Always download face_landmark_model.dat, even though it was not the first time run cmake.<br> It wastes so many time.</p> <p dir="auto">note like that:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-- data: Download: face_landmark_model.dat"><pre class="notranslate"><code class="notranslate">-- data: Download: face_landmark_model.dat </code></pre></div> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">My cmake options like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D INSTALL_C_EXAMPLES=ON \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D ENABLE_NEON=ON \ -D ENABLE_VFPV3=ON \ -D OPENCV_ENABLE_NONFREE=ON \ -D BUILD_TESTS=OFF \ -D WITH_V4L=ON \ -D WITH_QT=ON \ -D WITH_OPENGL=ON \ -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \ -D PYTHON_DEFAULT_EXECUTABLE=/usr/bin/python3 \ -D BUILD_EXAMPLES=ON .."><pre class="notranslate"><code class="notranslate">cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D INSTALL_C_EXAMPLES=ON \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D ENABLE_NEON=ON \ -D ENABLE_VFPV3=ON \ -D OPENCV_ENABLE_NONFREE=ON \ -D BUILD_TESTS=OFF \ -D WITH_V4L=ON \ -D WITH_QT=ON \ -D WITH_OPENGL=ON \ -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \ -D PYTHON_DEFAULT_EXECUTABLE=/usr/bin/python3 \ -D BUILD_EXAMPLES=ON .. </code></pre></div>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.2</li> <li>Operating System / Platform =&gt; Windows 64 Bit</li> <li>Compiler =&gt; Visual Studio 2015</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">PNG format starts to <a href="http://ftp-osl.osuosl.org/pub/libpng/documents/pngext-1.5.0.html#C.eXIf" rel="nofollow">support EXIF information</a> since 2017, but somehow using IMREAD_COLOR to read a PNG file does not respect the orientation</p> <p dir="auto">Attached Capture.png and Capture.jpg are two images both with same EXIF orientation information, try both and you can see the difference.</p> <h5 dir="auto">Steps to reproduce</h5> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" // C++ code example cv::Mat cvImgColor = cv::imread(&quot;Capture.png&quot;, cv::IMREAD_COLOR); // Expected: cols = 333, rows = 280 // Actual: cols = 280, rows = 333"><pre class="notranslate"> <span class="pl-c"><span class="pl-c">//</span> C++ code example</span> cv::Mat cvImgColor = cv::imread(<span class="pl-s"><span class="pl-pds">"</span>Capture.png<span class="pl-pds">"</span></span>, cv::IMREAD_COLOR); <span class="pl-c"><span class="pl-c">//</span> Expected: cols = 333, rows = 280</span> <span class="pl-c"><span class="pl-c">//</span> Actual: cols = 280, rows = 333</span></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25216338/74476683-b6dc3a80-4e5e-11ea-88fd-d7bd190662df.png"><img src="https://user-images.githubusercontent.com/25216338/74476683-b6dc3a80-4e5e-11ea-88fd-d7bd190662df.png" alt="tempsnip" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25216338/74476650-a2983d80-4e5e-11ea-9973-9643ef88bea8.png"><img src="https://user-images.githubusercontent.com/25216338/74476650-a2983d80-4e5e-11ea-9973-9643ef88bea8.png" alt="Capture" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25216338/74477113-89dc5780-4e5f-11ea-8b14-710e018ea7b2.jpg"><img src="https://user-images.githubusercontent.com/25216338/74477113-89dc5780-4e5f-11ea-8b14-710e018ea7b2.jpg" alt="Capture" style="max-width: 100%;"></a></p>
0
<p dir="auto">Using go 1.5.1, I got this crash in a process that allocates many GB of RAM in several maps. Probably a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116694192" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/13227" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/13227/hovercard" href="https://github.com/golang/go/issues/13227">#13227</a> but I'll let you guys decide that! It's repeatable, but involves an enormous and confidential data set.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ go env GOARCH=&quot;amd64&quot; GOBIN=&quot;&quot; GOEXE=&quot;&quot; GOHOSTARCH=&quot;amd64&quot; GOHOSTOS=&quot;linux&quot; GOOS=&quot;linux&quot; GOPATH=&quot;/home/sergey/go&quot; GORACE=&quot;&quot; GOROOT=&quot;/usr/local/go&quot; GOTOOLDIR=&quot;/usr/local/go/pkg/tool/linux_amd64&quot; GO15VENDOREXPERIMENT=&quot;1&quot; CC=&quot;gcc&quot; GOGCCFLAGS=&quot;-fPIC -m64 -pthread -fmessage-length=0&quot; CXX=&quot;g++&quot; CGO_ENABLED=&quot;1&quot;"><pre class="notranslate"><code class="notranslate">$ go env GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/sergey/go" GORACE="" GOROOT="/usr/local/go" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" GO15VENDOREXPERIMENT="1" CC="gcc" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0" CXX="g++" CGO_ENABLED="1" </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fatal error: unexpected signal during runtime execution [signal 0xb code=0x1 addr=0xf1 pc=0x45f51b] runtime stack: runtime.throw(0xb744a0, 0x2a) /usr/local/go/src/runtime/panic.go:527 +0x90 fp=0x7f9a052d0d70 sp=0x7f9a052d0d58 runtime.sigpanic() /usr/local/go/src/runtime/sigpanic_unix.go:12 +0x5a fp=0x7f9a052d0dc0 sp=0x7f9a052d0d70 runtime.munmap(0x7f99eb1b1000, 0xb7ed28, 0x41c85f, 0x7f99eb1b1000, 0xb7ed28, 0xe00f60, 0x7f99eb1b1000, 0x16fda5, 0x1853d3, 0x41c07c, ...) /usr/local/go/src/runtime/sys_linux_amd64.s:266 +0x1b fp=0x7f9a052d0dc8 sp=0x7f9a052d0dc0 runtime.sysFree(0x7f99eb1b1000, 0xb7ed28, 0xe00f60) /usr/local/go/src/runtime/mem_linux.go:103 +0x34 fp=0x7f9a052d0de0 sp=0x7f9a052d0dc8 runtime.gcCopySpans() /usr/local/go/src/runtime/mgc.go:1600 +0xdf fp=0x7f9a052d0e18 sp=0x7f9a052d0de0 runtime.gcMark(0xbe16c05dffa) /usr/local/go/src/runtime/mgc.go:1415 +0x5c fp=0x7f9a052d0e80 sp=0x7f9a052d0e18 runtime.gc.func3() /usr/local/go/src/runtime/mgc.go:1089 +0x23 fp=0x7f9a052d0e90 sp=0x7f9a052d0e80 runtime.systemstack(0xc820024000) /usr/local/go/src/runtime/asm_amd64.s:262 +0x79 fp=0x7f9a052d0e98 sp=0x7f9a052d0e90 runtime.mstart() /usr/local/go/src/runtime/proc1.go:674 fp=0x7f9a052d0ea0 sp=0x7f9a052d0e98 goroutine 66 [garbage collection]: runtime.systemstack_switch() /usr/local/go/src/runtime/asm_amd64.s:216 fp=0xc8201af498 sp=0xc8201af490 runtime.gc(0x0) /usr/local/go/src/runtime/mgc.go:1097 +0x3d0 fp=0xc8201af790 sp=0xc8201af498 runtime.backgroundgc() /usr/local/go/src/runtime/mgc.go:897 +0x3d fp=0xc8201af7c0 sp=0xc8201af790 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1696 +0x1 fp=0xc8201af7c8 sp=0xc8201af7c0 created by runtime.startGC /usr/local/go/src/runtime/mgc.go:870 +0x186 "><pre class="notranslate"><code class="notranslate">fatal error: unexpected signal during runtime execution [signal 0xb code=0x1 addr=0xf1 pc=0x45f51b] runtime stack: runtime.throw(0xb744a0, 0x2a) /usr/local/go/src/runtime/panic.go:527 +0x90 fp=0x7f9a052d0d70 sp=0x7f9a052d0d58 runtime.sigpanic() /usr/local/go/src/runtime/sigpanic_unix.go:12 +0x5a fp=0x7f9a052d0dc0 sp=0x7f9a052d0d70 runtime.munmap(0x7f99eb1b1000, 0xb7ed28, 0x41c85f, 0x7f99eb1b1000, 0xb7ed28, 0xe00f60, 0x7f99eb1b1000, 0x16fda5, 0x1853d3, 0x41c07c, ...) /usr/local/go/src/runtime/sys_linux_amd64.s:266 +0x1b fp=0x7f9a052d0dc8 sp=0x7f9a052d0dc0 runtime.sysFree(0x7f99eb1b1000, 0xb7ed28, 0xe00f60) /usr/local/go/src/runtime/mem_linux.go:103 +0x34 fp=0x7f9a052d0de0 sp=0x7f9a052d0dc8 runtime.gcCopySpans() /usr/local/go/src/runtime/mgc.go:1600 +0xdf fp=0x7f9a052d0e18 sp=0x7f9a052d0de0 runtime.gcMark(0xbe16c05dffa) /usr/local/go/src/runtime/mgc.go:1415 +0x5c fp=0x7f9a052d0e80 sp=0x7f9a052d0e18 runtime.gc.func3() /usr/local/go/src/runtime/mgc.go:1089 +0x23 fp=0x7f9a052d0e90 sp=0x7f9a052d0e80 runtime.systemstack(0xc820024000) /usr/local/go/src/runtime/asm_amd64.s:262 +0x79 fp=0x7f9a052d0e98 sp=0x7f9a052d0e90 runtime.mstart() /usr/local/go/src/runtime/proc1.go:674 fp=0x7f9a052d0ea0 sp=0x7f9a052d0e98 goroutine 66 [garbage collection]: runtime.systemstack_switch() /usr/local/go/src/runtime/asm_amd64.s:216 fp=0xc8201af498 sp=0xc8201af490 runtime.gc(0x0) /usr/local/go/src/runtime/mgc.go:1097 +0x3d0 fp=0xc8201af790 sp=0xc8201af498 runtime.backgroundgc() /usr/local/go/src/runtime/mgc.go:897 +0x3d fp=0xc8201af7c0 sp=0xc8201af790 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:1696 +0x1 fp=0xc8201af7c8 sp=0xc8201af7c0 created by runtime.startGC /usr/local/go/src/runtime/mgc.go:870 +0x186 </code></pre></div>
<p dir="auto">I propose to change both Go package archives and Go object files to use the more standard zip archive format.<br> In contrast to ar archives, zip archives admit efficient random access to individual files within the archive<br> and also allow decisions about compression on a per-file basis.<br> The result for Go will be cleaner access to the parts of a package archive<br> and the ability later to add compression of individual parts<br> as appropriate.</p> <p dir="auto">See <a href="https://golang.org/design/14386-zip-package-archives" rel="nofollow">golang.org/design/14386-zip-package-archives</a> for details.</p>
0
<h1 dir="auto">Description of the new feature/enhancement</h1> <p dir="auto">Ability to specify a list of command(s) to be ran upon opening a new terminal. This would be extremely useful if users wanted to configure their terminal upon opening a new tab, for example, I would like that once I open a new CMD instance it would go to a specific directory (cd ...).</p> <p dir="auto">It's obvious there may need to be different lists for different terminals.</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18363.0 Windows Terminal version: 0.6.2951.0 Any other software? Nope"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18363.0 Windows Terminal version: 0.6.2951.0 Any other software? Nope </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Start Terminal</li> <li>Focus another window</li> <li>Re-focus Terminal by clicking on the active tab</li> <li>Enter text using your keyboard</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Raising the Terminal window should focus the text area no matter how you do it.</p> <p dir="auto">Works as expected if you click any other tab than the currently active.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Text input is ignored even though the Terminal window has focus. Text input is restored when clicking the text area or focusing another tab.</p>
0
<p dir="auto">Opening a modal shifts the page layout left by adding the class <code class="notranslate">.modal-open</code> to <code class="notranslate">body</code>.</p> <p dir="auto"><code class="notranslate">body.modal-open</code> has: <code class="notranslate">padding-right: 13px;</code></p> <p dir="auto">Environment:</p> <ul dir="auto"> <li>Bootstrap 3.2.0</li> <li>Firefox 32.0 (Linux)</li> </ul>
<p dir="auto">re: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18248472" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9855" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/9855/hovercard" href="https://github.com/twbs/bootstrap/issues/9855">#9855</a><br> in 3.2.0, when body has a scrollbar, it's content now stays in place when modal is opened (padding is added to the body).<br> But fixed top navbar, having position: fixed, left: 0 and right: 0, now jumps to the right when modal is opened, as it ignores padding-right on the body.</p>
1
<p dir="auto">Apologies if this comes across as noise. Just getting into react</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">No errors?</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">An error is printed to the console</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>create a new project with create-react-app</li> <li>Install material-ui@next, material-ui-icons</li> <li>Render an svg icon in the App.js template</li> <li>Check the console</li> </ol> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2380692/30196230-a7072788-9424-11e7-9b4b-f244f646543c.png"><img src="https://user-images.githubusercontent.com/2380692/30196230-a7072788-9424-11e7-9b4b-f244f646543c.png" alt="screenshot_20170907_233020" style="max-width: 100%;"></a></p> <h2 dir="auto">Context</h2> <p dir="auto">I've been learning react for a few weeks now, and I decided to try upgrading the app to the new fiber RC.</p> <p dir="auto">After, updating, I discovered this error in the console.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>beta-8</td> </tr> <tr> <td>React</td> <td>15.6.1</td> </tr> <tr> <td>browser</td> <td>Chrome 60</td> </tr> <tr> <td>material-ui-icons</td> <td>beta-5</td> </tr> </tbody> </table>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/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">Typography offers noWrap feature that allows one to ellipsize text if it is larger than its container. This behavior should also be available when typography is used within Grid Item.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">When typography is used within a Grid Item, it does not implement ellipses and results in expanding width of grid item. </p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li><a href="https://codesandbox.io/s/ppy3zrj270" rel="nofollow">https://codesandbox.io/s/ppy3zrj270</a><br> In this demo example, In Output, First line shows Text in Typography works as expected.<br> and in Second line Text in Typography is not truncated with ellipses and comes out of grid.</li> <li><a href="https://codesandbox.io/s/38nj34826" rel="nofollow">https://codesandbox.io/s/38nj34826</a><br> In this demo example, There are two grid items and they should always be in a row.<br> As screen size becomes smaller, second grid item comes down, instead of truncating the text.</li> </ol> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>v1.0.0-beta.23</td> </tr> <tr> <td>React</td> <td>16.2.0</td> </tr> </tbody> </table>
0
<p dir="auto">When adjusting zone sizes, could the zone size (height &amp; width) in pixels be overlaid or somehow displayed on each zone? Very hard now to adjust zones by eye, would be nice to have some numbers to look at so that I can make sure two zones are the same width or height or whatever. Thanks, otherwise FancyZones is great and really helping me get organized with my new 49" ultra wide display.</p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="information_source" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2139.png">ℹ</g-emoji> Computer information</h2> <ul dir="auto"> <li>Windows build number: 19041</li> <li>PowerToys version: 0.20</li> <li>PowerToy module: Run</li> </ul> <h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide detailed reproduction steps (if any)</h2> <p dir="auto">Have an application installed with a high contrast version of its icon, like Windows Terminal Preview</p> <h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3> <p dir="auto">The icon is displayed like it is everywhere else in Windows.</p> <h3 dir="auto"><g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> Actual result, Screenshots</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/189190/89057380-61afba80-d312-11ea-9aa8-99785a4e03e3.png"><img src="https://user-images.githubusercontent.com/189190/89057380-61afba80-d312-11ea-9aa8-99785a4e03e3.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Notice that Windows Terminal, which DOES NOT have a HC icon, is normal. WT Preview and Dev, which DO have HC assets, are displayed in HC.</p>
0
<p dir="auto">When following the tutorial, I could not run <code class="notranslate">$ flask initdb</code>.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/Users/dvf/environments/flaskTutorial/bin/flask&quot;, line 11, in &lt;module&gt; sys.exit(main()) File &quot;/Users/dvf/environments/flaskTutorial/lib/python2.7/site-packages/flask_cli/cli.py&quot;, line 502, in main cli.main(args=args, prog_name=name) File &quot;/Users/dvf/environments/flaskTutorial/lib/python2.7/site-packages/flask_cli/cli.py&quot;, line 369, in main return AppGroup.main(self, *args, **kwargs) File &quot;/Users/dvf/environments/flaskTutorial/lib/python2.7/site-packages/click/core.py&quot;, line 696, in main rv = self.invoke(ctx) File &quot;/Users/dvf/environments/flaskTutorial/lib/python2.7/site-packages/click/core.py&quot;, line 1055, in invoke cmd_name, cmd, args = self.resolve_command(ctx, args) File &quot;/Users/dvf/environments/flaskTutorial/lib/python2.7/site-packages/click/core.py&quot;, line 1094, in resolve_command cmd = self.get_command(ctx, cmd_name) File &quot;/Users/dvf/environments/flaskTutorial/lib/python2.7/site-packages/flask_cli/cli.py&quot;, line 340, in get_command rv = info.load_app().cli.get_command(ctx, name) File &quot;/Users/dvf/environments/flaskTutorial/lib/python2.7/site-packages/flask_cli/cli.py&quot;, line 226, in load_app rv = locate_app(self.app_import_path) File &quot;/Users/dvf/environments/flaskTutorial/lib/python2.7/site-packages/flask_cli/cli.py&quot;, line 90, in locate_app __import__(module) ImportError: No module named flaskr"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/Users/dvf/environments/flaskTutorial/bin/flask", line 11, in &lt;module&gt; sys.exit(main()) File "/Users/dvf/environments/flaskTutorial/lib/python2.7/site-packages/flask_cli/cli.py", line 502, in main cli.main(args=args, prog_name=name) File "/Users/dvf/environments/flaskTutorial/lib/python2.7/site-packages/flask_cli/cli.py", line 369, in main return AppGroup.main(self, *args, **kwargs) File "/Users/dvf/environments/flaskTutorial/lib/python2.7/site-packages/click/core.py", line 696, in main rv = self.invoke(ctx) File "/Users/dvf/environments/flaskTutorial/lib/python2.7/site-packages/click/core.py", line 1055, in invoke cmd_name, cmd, args = self.resolve_command(ctx, args) File "/Users/dvf/environments/flaskTutorial/lib/python2.7/site-packages/click/core.py", line 1094, in resolve_command cmd = self.get_command(ctx, cmd_name) File "/Users/dvf/environments/flaskTutorial/lib/python2.7/site-packages/flask_cli/cli.py", line 340, in get_command rv = info.load_app().cli.get_command(ctx, name) File "/Users/dvf/environments/flaskTutorial/lib/python2.7/site-packages/flask_cli/cli.py", line 226, in load_app rv = locate_app(self.app_import_path) File "/Users/dvf/environments/flaskTutorial/lib/python2.7/site-packages/flask_cli/cli.py", line 90, in locate_app __import__(module) ImportError: No module named flaskr </code></pre></div> <p dir="auto">This was fixed by changing the environment variable to:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export FLASK_APP=flaskr.py"><pre class="notranslate"><code class="notranslate">export FLASK_APP=flaskr.py </code></pre></div> <p dir="auto">On OS X 10.11.3 and Python 2.7.12</p>
<p dir="auto">on <a href="http://flask.pocoo.org/docs/templating/" rel="nofollow">http://flask.pocoo.org/docs/templating/</a><br> the "Jinja2 Template Documentation" link at the top of the page gives a 404 error.<br> update link to <a href="http://jinja.pocoo.org/docs/templates/#" rel="nofollow">http://jinja.pocoo.org/docs/templates/#</a></p>
0
<p dir="auto">The idea is allow a simple, dynamically modifiable priority for indices. Something akin to:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ curl -XPUT host:9200/my-index/_settings -d '{ &quot;index.priority&quot; : 1 }'"><pre class="notranslate"><code class="notranslate">$ curl -XPUT host:9200/my-index/_settings -d '{ "index.priority" : 1 }' </code></pre></div> <p dir="auto">By default, all priorities would default with <code class="notranslate">index.priority : 0</code>, thus being of equal priority unless modified. From there, the comparison could go to index creation date/time as the next priority level, then finally by name for the final order.</p> <blockquote> <p dir="auto"><code class="notranslate">index.priority</code> &gt; <code class="notranslate">index.creation_date</code> &gt; reverse sorted index name</p> </blockquote> <p dir="auto">This allows pretty much every use case to specify recovery order for best-case recovery order for their use case. Time-based solutions would pretty much work out of the box because the creation date would prioritize recovery of <em>today's</em> index first, thus giving the best chance to return to fully replicated indexing as soon as possible. Similarly, falling back to the reverse sorted index name gives arbitrary--yet predictable--sorting for simultaneously-created indices (however unlikely) that have no time basis (<code class="notranslate">index-z</code>, <code class="notranslate">index-y</code>, ...), but YMD-formatted date/time strings will properly sort (<code class="notranslate">logstash-2015.05.03</code> will always come before <code class="notranslate">logstash-2015.05.02</code> or earlier dates). Finally, the arbitrary priority allows users to take control of the process for cases where there is no time basis, such as when a "main" index is created, but then minor indices are created from time-to-time. Even better, this would be as simple as setting it once with a high value, then not setting or selectively setting the minor indices.</p>
<p dir="auto">Feature request:</p> <p dir="auto">When multiple shard replicas need recovery (eg, when you restart the whole cluster), it can be beneficial to get some indices green before others.<br> In the Logstash case, getting the most recent indices by date.<br> In other cases, there may be application demands on which index you really need back first.</p> <p dir="auto">Being able to set a specific priority on indices, or have it automatically determined for date-based indices, would be quite helpful.</p>
1
<h3 dir="auto">Describe the bug</h3> <p dir="auto">While installing scikit-learn, installation fails with setuptools error. If setuptools version is downgraded to setuptools==58.2.0 from setuptools==65.5.0(current stable), installation works fine.</p> <h3 dir="auto">Steps/Code to Reproduce</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pip install -U scikit-learn "><pre class="notranslate"><code class="notranslate">pip install -U scikit-learn </code></pre></div> <h3 dir="auto">Expected Results</h3> <p dir="auto">No error Thrown.</p> <h3 dir="auto">Actual Results</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Collecting scikit-learn==1.1.0 Downloading scikit-learn-1.1.0.tar.gz (6.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.8/6.8 MB 8.1 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─&gt; [299 lines of output] Partial import of sklearn during the build process. setup.py:128: DeprecationWarning: `numpy.distutils` is deprecated since NumPy 1.23.0, as a result of the deprecation of `distutils` itself. It will be removed for Python &gt;= 3.12. For older Python versions it will remain present. It is recommended to use `setuptools &lt; 60.0` for those Python versions. For more details, see: https://numpy.org/devdocs/reference/distutils_status_migration.html from numpy.distutils.command.build_ext import build_ext # noqa INFO: C compiler: clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g INFO: compile options: '-c' INFO: clang: test_program.c INFO: clang objects/test_program.o -o test_program INFO: C compiler: clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g INFO: compile options: '-c' extra options: '-fopenmp' INFO: clang: test_program.c clang: error: unsupported option '-fopenmp' clang: error: unsupported option '-fopenmp' /private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-install-4gjdjzyy/scikit-learn_354a33ffb3ec44558dda445bd53d8ded/sklearn/_build_utils/openmp_helpers.py:127: UserWarning: *********** * WARNING * *********** It seems that scikit-learn cannot be built with OpenMP. - Make sure you have followed the installation instructions: https://scikit-learn.org/dev/developers/advanced_installation.html - If your compiler supports OpenMP but you still see this message, please submit a bug report at: https://github.com/scikit-learn/scikit-learn/issues - The build will continue with OpenMP-based parallelism disabled. Note however that some estimators will run in sequential mode instead of leveraging thread-based parallelism. *** warnings.warn(message) Compiling sklearn/__check_build/_check_build.pyx because it changed. Compiling sklearn/preprocessing/_csr_polynomial_expansion.pyx because it changed. Compiling sklearn/_loss/_loss.pyx because it changed. Compiling sklearn/cluster/_dbscan_inner.pyx because it changed. Compiling sklearn/cluster/_hierarchical_fast.pyx because it changed. Compiling sklearn/cluster/_k_means_common.pyx because it changed. Compiling sklearn/cluster/_k_means_lloyd.pyx because it changed. Compiling sklearn/cluster/_k_means_elkan.pyx because it changed. Compiling sklearn/cluster/_k_means_minibatch.pyx because it changed. Compiling sklearn/datasets/_svmlight_format_fast.pyx because it changed. Compiling sklearn/decomposition/_online_lda_fast.pyx because it changed. Compiling sklearn/decomposition/_cdnmf_fast.pyx because it changed. Compiling sklearn/ensemble/_gradient_boosting.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/_gradient_boosting.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/histogram.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/splitting.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/_binning.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/_predictor.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/_bitset.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/common.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/utils.pyx because it changed. Compiling sklearn/feature_extraction/_hashing_fast.pyx because it changed. Compiling sklearn/manifold/_utils.pyx because it changed. Compiling sklearn/manifold/_barnes_hut_tsne.pyx because it changed. Compiling sklearn/metrics/cluster/_expected_mutual_info_fast.pyx because it changed. Compiling sklearn/metrics/_pairwise_fast.pyx because it changed. Compiling sklearn/metrics/_dist_metrics.pyx because it changed. Compiling sklearn/metrics/_pairwise_distances_reduction.pyx because it changed. Compiling sklearn/neighbors/_ball_tree.pyx because it changed. Compiling sklearn/neighbors/_kd_tree.pyx because it changed. Compiling sklearn/neighbors/_partition_nodes.pyx because it changed. Compiling sklearn/neighbors/_quad_tree.pyx because it changed. Compiling sklearn/tree/_tree.pyx because it changed. Compiling sklearn/tree/_splitter.pyx because it changed. Compiling sklearn/tree/_criterion.pyx because it changed. Compiling sklearn/tree/_utils.pyx because it changed. Compiling sklearn/utils/sparsefuncs_fast.pyx because it changed. Compiling sklearn/utils/_cython_blas.pyx because it changed. Compiling sklearn/utils/arrayfuncs.pyx because it changed. Compiling sklearn/utils/murmurhash.pyx because it changed. Compiling sklearn/utils/_fast_dict.pyx because it changed. Compiling sklearn/utils/_openmp_helpers.pyx because it changed. Compiling sklearn/utils/_seq_dataset.pyx because it changed. Compiling sklearn/utils/_weight_vector.pyx because it changed. Compiling sklearn/utils/_random.pyx because it changed. Compiling sklearn/utils/_logistic_sigmoid.pyx because it changed. Compiling sklearn/utils/_readonly_array_wrapper.pyx because it changed. Compiling sklearn/utils/_typedefs.pyx because it changed. Compiling sklearn/utils/_heap.pyx because it changed. Compiling sklearn/utils/_sorting.pyx because it changed. Compiling sklearn/utils/_vector_sentinel.pyx because it changed. Compiling sklearn/svm/_newrand.pyx because it changed. Compiling sklearn/svm/_libsvm.pyx because it changed. Compiling sklearn/svm/_liblinear.pyx because it changed. Compiling sklearn/svm/_libsvm_sparse.pyx because it changed. Compiling sklearn/linear_model/_cd_fast.pyx because it changed. Compiling sklearn/linear_model/_sgd_fast.pyx because it changed. Compiling sklearn/linear_model/_sag_fast.pyx because it changed. Compiling sklearn/_isotonic.pyx because it changed. [ 1/59] Cythonizing sklearn/__check_build/_check_build.pyx [ 2/59] Cythonizing sklearn/_isotonic.pyx [ 3/59] Cythonizing sklearn/_loss/_loss.pyx [ 4/59] Cythonizing sklearn/cluster/_dbscan_inner.pyx [ 5/59] Cythonizing sklearn/cluster/_hierarchical_fast.pyx [ 6/59] Cythonizing sklearn/cluster/_k_means_common.pyx [ 7/59] Cythonizing sklearn/cluster/_k_means_elkan.pyx [ 8/59] Cythonizing sklearn/cluster/_k_means_lloyd.pyx [ 9/59] Cythonizing sklearn/cluster/_k_means_minibatch.pyx [10/59] Cythonizing sklearn/datasets/_svmlight_format_fast.pyx [11/59] Cythonizing sklearn/decomposition/_cdnmf_fast.pyx [12/59] Cythonizing sklearn/decomposition/_online_lda_fast.pyx [13/59] Cythonizing sklearn/ensemble/_gradient_boosting.pyx [14/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_binning.pyx [15/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_bitset.pyx [16/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_gradient_boosting.pyx [17/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_predictor.pyx [18/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/common.pyx [19/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/histogram.pyx [20/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/splitting.pyx [21/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/utils.pyx [22/59] Cythonizing sklearn/feature_extraction/_hashing_fast.pyx [23/59] Cythonizing sklearn/linear_model/_cd_fast.pyx [24/59] Cythonizing sklearn/linear_model/_sag_fast.pyx [25/59] Cythonizing sklearn/linear_model/_sgd_fast.pyx [26/59] Cythonizing sklearn/manifold/_barnes_hut_tsne.pyx [27/59] Cythonizing sklearn/manifold/_utils.pyx [28/59] Cythonizing sklearn/metrics/_dist_metrics.pyx [29/59] Cythonizing sklearn/metrics/_pairwise_distances_reduction.pyx [30/59] Cythonizing sklearn/metrics/_pairwise_fast.pyx [31/59] Cythonizing sklearn/metrics/cluster/_expected_mutual_info_fast.pyx [32/59] Cythonizing sklearn/neighbors/_ball_tree.pyx [33/59] Cythonizing sklearn/neighbors/_kd_tree.pyx [34/59] Cythonizing sklearn/neighbors/_partition_nodes.pyx [35/59] Cythonizing sklearn/neighbors/_quad_tree.pyx [36/59] Cythonizing sklearn/preprocessing/_csr_polynomial_expansion.pyx [37/59] Cythonizing sklearn/svm/_liblinear.pyx [38/59] Cythonizing sklearn/svm/_libsvm.pyx [39/59] Cythonizing sklearn/svm/_libsvm_sparse.pyx [40/59] Cythonizing sklearn/svm/_newrand.pyx [41/59] Cythonizing sklearn/tree/_criterion.pyx [42/59] Cythonizing sklearn/tree/_splitter.pyx [43/59] Cythonizing sklearn/tree/_tree.pyx [44/59] Cythonizing sklearn/tree/_utils.pyx [45/59] Cythonizing sklearn/utils/_cython_blas.pyx [46/59] Cythonizing sklearn/utils/_fast_dict.pyx [47/59] Cythonizing sklearn/utils/_heap.pyx [48/59] Cythonizing sklearn/utils/_logistic_sigmoid.pyx [49/59] Cythonizing sklearn/utils/_openmp_helpers.pyx [50/59] Cythonizing sklearn/utils/_random.pyx [51/59] Cythonizing sklearn/utils/_readonly_array_wrapper.pyx [52/59] Cythonizing sklearn/utils/_seq_dataset.pyx [53/59] Cythonizing sklearn/utils/_sorting.pyx [54/59] Cythonizing sklearn/utils/_typedefs.pyx [55/59] Cythonizing sklearn/utils/_vector_sentinel.pyx [56/59] Cythonizing sklearn/utils/_weight_vector.pyx [57/59] Cythonizing sklearn/utils/arrayfuncs.pyx [58/59] Cythonizing sklearn/utils/murmurhash.pyx [59/59] Cythonizing sklearn/utils/sparsefuncs_fast.pyx running dist_info running build_src INFO: build_src INFO: building library &quot;libsvm-skl&quot; sources INFO: building library &quot;liblinear-skl&quot; sources INFO: building extension &quot;sklearn.__check_build._check_build&quot; sources INFO: building extension &quot;sklearn.preprocessing._csr_polynomial_expansion&quot; sources INFO: building extension &quot;sklearn._loss._loss&quot; sources INFO: building extension &quot;sklearn.cluster._dbscan_inner&quot; sources INFO: building extension &quot;sklearn.cluster._hierarchical_fast&quot; sources INFO: building extension &quot;sklearn.cluster._k_means_common&quot; sources INFO: building extension &quot;sklearn.cluster._k_means_lloyd&quot; sources INFO: building extension &quot;sklearn.cluster._k_means_elkan&quot; sources INFO: building extension &quot;sklearn.cluster._k_means_minibatch&quot; sources INFO: building extension &quot;sklearn.datasets._svmlight_format_fast&quot; sources INFO: building extension &quot;sklearn.decomposition._online_lda_fast&quot; sources INFO: building extension &quot;sklearn.decomposition._cdnmf_fast&quot; sources INFO: building extension &quot;sklearn.ensemble._gradient_boosting&quot; sources INFO: building extension &quot;sklearn.ensemble._hist_gradient_boosting._gradient_boosting&quot; sources INFO: building extension &quot;sklearn.ensemble._hist_gradient_boosting.histogram&quot; sources INFO: building extension &quot;sklearn.ensemble._hist_gradient_boosting.splitting&quot; sources INFO: building extension &quot;sklearn.ensemble._hist_gradient_boosting._binning&quot; sources INFO: building extension &quot;sklearn.ensemble._hist_gradient_boosting._predictor&quot; sources INFO: building extension &quot;sklearn.ensemble._hist_gradient_boosting._bitset&quot; sources INFO: building extension &quot;sklearn.ensemble._hist_gradient_boosting.common&quot; sources INFO: building extension &quot;sklearn.ensemble._hist_gradient_boosting.utils&quot; sources INFO: building extension &quot;sklearn.feature_extraction._hashing_fast&quot; sources INFO: building extension &quot;sklearn.manifold._utils&quot; sources INFO: building extension &quot;sklearn.manifold._barnes_hut_tsne&quot; sources INFO: building extension &quot;sklearn.metrics.cluster._expected_mutual_info_fast&quot; sources INFO: building extension &quot;sklearn.metrics._pairwise_fast&quot; sources INFO: building extension &quot;sklearn.metrics._dist_metrics&quot; sources INFO: building extension &quot;sklearn.metrics._pairwise_distances_reduction&quot; sources INFO: building extension &quot;sklearn.neighbors._ball_tree&quot; sources INFO: building extension &quot;sklearn.neighbors._kd_tree&quot; sources INFO: building extension &quot;sklearn.neighbors._partition_nodes&quot; sources INFO: building extension &quot;sklearn.neighbors._quad_tree&quot; sources INFO: building extension &quot;sklearn.tree._tree&quot; sources INFO: building extension &quot;sklearn.tree._splitter&quot; sources INFO: building extension &quot;sklearn.tree._criterion&quot; sources INFO: building extension &quot;sklearn.tree._utils&quot; sources INFO: building extension &quot;sklearn.utils.sparsefuncs_fast&quot; sources INFO: building extension &quot;sklearn.utils._cython_blas&quot; sources INFO: building extension &quot;sklearn.utils.arrayfuncs&quot; sources INFO: building extension &quot;sklearn.utils.murmurhash&quot; sources INFO: building extension &quot;sklearn.utils._fast_dict&quot; sources INFO: building extension &quot;sklearn.utils._openmp_helpers&quot; sources INFO: building extension &quot;sklearn.utils._seq_dataset&quot; sources INFO: building extension &quot;sklearn.utils._weight_vector&quot; sources INFO: building extension &quot;sklearn.utils._random&quot; sources INFO: building extension &quot;sklearn.utils._logistic_sigmoid&quot; sources INFO: building extension &quot;sklearn.utils._readonly_array_wrapper&quot; sources INFO: building extension &quot;sklearn.utils._typedefs&quot; sources INFO: building extension &quot;sklearn.utils._heap&quot; sources INFO: building extension &quot;sklearn.utils._sorting&quot; sources INFO: building extension &quot;sklearn.utils._vector_sentinel&quot; sources INFO: building extension &quot;sklearn.svm._newrand&quot; sources INFO: building extension &quot;sklearn.svm._libsvm&quot; sources INFO: building extension &quot;sklearn.svm._liblinear&quot; sources INFO: building extension &quot;sklearn.svm._libsvm_sparse&quot; sources INFO: building extension &quot;sklearn.linear_model._cd_fast&quot; sources INFO: building extension &quot;sklearn.linear_model._sgd_fast&quot; sources INFO: building extension &quot;sklearn.linear_model._sag_fast&quot; sources INFO: building extension &quot;sklearn._isotonic&quot; sources INFO: building data_files sources INFO: build_src: building npy-pkg config files /private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( Traceback (most recent call last): File &quot;/Users/aditya/Documents/Projects/ml/ml_env/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py&quot;, line 351, in &lt;module&gt; main() File &quot;/Users/aditya/Documents/Projects/ml/ml_env/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py&quot;, line 333, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File &quot;/Users/aditya/Documents/Projects/ml/ml_env/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py&quot;, line 152, in prepare_metadata_for_build_wheel return hook(metadata_directory, config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File &quot;/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/build_meta.py&quot;, line 174, in prepare_metadata_for_build_wheel self.run_setup() File &quot;/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/build_meta.py&quot;, line 268, in run_setup self).run_setup(setup_script=setup_script) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File &quot;/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/build_meta.py&quot;, line 158, in run_setup exec(compile(code, __file__, 'exec'), locals()) File &quot;setup.py&quot;, line 328, in &lt;module&gt; setup_package() File &quot;setup.py&quot;, line 324, in setup_package setup(**metadata) File &quot;/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/numpy/distutils/core.py&quot;, line 169, in setup return old_setup(**new_attr) ^^^^^^^^^^^^^^^^^^^^^ File &quot;/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/__init__.py&quot;, line 153, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File &quot;/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py&quot;, line 148, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File &quot;/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py&quot;, line 163, in run_commands dist.run_commands() File &quot;/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py&quot;, line 967, in run_commands self.run_command(cmd) File &quot;/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py&quot;, line 986, in run_command cmd_obj.run() File &quot;/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/command/dist_info.py&quot;, line 31, in run egg_info.run() File &quot;/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/numpy/distutils/command/egg_info.py&quot;, line 24, in run self.run_command(&quot;build_src&quot;) File &quot;/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py&quot;, line 313, in run_command self.distribution.run_command(command) File &quot;/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py&quot;, line 986, in run_command cmd_obj.run() File &quot;/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/numpy/distutils/command/build_src.py&quot;, line 144, in run self.build_sources() File &quot;/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/numpy/distutils/command/build_src.py&quot;, line 164, in build_sources self.build_npy_pkg_config() File &quot;/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/numpy/distutils/command/build_src.py&quot;, line 235, in build_npy_pkg_config install_cmd.finalize_options() File &quot;/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/numpy/distutils/command/install.py&quot;, line 21, in finalize_options old_install.finalize_options(self) File &quot;/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/command/install.py&quot;, line 45, in finalize_options orig.install.finalize_options(self) File &quot;/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/install.py&quot;, line 325, in finalize_options self.finalize_unix() File &quot;/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/install.py&quot;, line 498, in finalize_unix self.select_scheme(&quot;posix_prefix&quot;) File &quot;/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/install.py&quot;, line 528, in select_scheme return self._select_scheme(resolved) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File &quot;/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/install.py&quot;, line 537, in _select_scheme setattr(self, attrname, scheme[key]) ~~~~~~^^^^^ KeyError: 'headers' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─&gt; See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details."><pre class="notranslate"><code class="notranslate">Collecting scikit-learn==1.1.0 Downloading scikit-learn-1.1.0.tar.gz (6.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.8/6.8 MB 8.1 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─&gt; [299 lines of output] Partial import of sklearn during the build process. setup.py:128: DeprecationWarning: `numpy.distutils` is deprecated since NumPy 1.23.0, as a result of the deprecation of `distutils` itself. It will be removed for Python &gt;= 3.12. For older Python versions it will remain present. It is recommended to use `setuptools &lt; 60.0` for those Python versions. For more details, see: https://numpy.org/devdocs/reference/distutils_status_migration.html from numpy.distutils.command.build_ext import build_ext # noqa INFO: C compiler: clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g INFO: compile options: '-c' INFO: clang: test_program.c INFO: clang objects/test_program.o -o test_program INFO: C compiler: clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g INFO: compile options: '-c' extra options: '-fopenmp' INFO: clang: test_program.c clang: error: unsupported option '-fopenmp' clang: error: unsupported option '-fopenmp' /private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-install-4gjdjzyy/scikit-learn_354a33ffb3ec44558dda445bd53d8ded/sklearn/_build_utils/openmp_helpers.py:127: UserWarning: *********** * WARNING * *********** It seems that scikit-learn cannot be built with OpenMP. - Make sure you have followed the installation instructions: https://scikit-learn.org/dev/developers/advanced_installation.html - If your compiler supports OpenMP but you still see this message, please submit a bug report at: https://github.com/scikit-learn/scikit-learn/issues - The build will continue with OpenMP-based parallelism disabled. Note however that some estimators will run in sequential mode instead of leveraging thread-based parallelism. *** warnings.warn(message) Compiling sklearn/__check_build/_check_build.pyx because it changed. Compiling sklearn/preprocessing/_csr_polynomial_expansion.pyx because it changed. Compiling sklearn/_loss/_loss.pyx because it changed. Compiling sklearn/cluster/_dbscan_inner.pyx because it changed. Compiling sklearn/cluster/_hierarchical_fast.pyx because it changed. Compiling sklearn/cluster/_k_means_common.pyx because it changed. Compiling sklearn/cluster/_k_means_lloyd.pyx because it changed. Compiling sklearn/cluster/_k_means_elkan.pyx because it changed. Compiling sklearn/cluster/_k_means_minibatch.pyx because it changed. Compiling sklearn/datasets/_svmlight_format_fast.pyx because it changed. Compiling sklearn/decomposition/_online_lda_fast.pyx because it changed. Compiling sklearn/decomposition/_cdnmf_fast.pyx because it changed. Compiling sklearn/ensemble/_gradient_boosting.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/_gradient_boosting.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/histogram.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/splitting.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/_binning.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/_predictor.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/_bitset.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/common.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/utils.pyx because it changed. Compiling sklearn/feature_extraction/_hashing_fast.pyx because it changed. Compiling sklearn/manifold/_utils.pyx because it changed. Compiling sklearn/manifold/_barnes_hut_tsne.pyx because it changed. Compiling sklearn/metrics/cluster/_expected_mutual_info_fast.pyx because it changed. Compiling sklearn/metrics/_pairwise_fast.pyx because it changed. Compiling sklearn/metrics/_dist_metrics.pyx because it changed. Compiling sklearn/metrics/_pairwise_distances_reduction.pyx because it changed. Compiling sklearn/neighbors/_ball_tree.pyx because it changed. Compiling sklearn/neighbors/_kd_tree.pyx because it changed. Compiling sklearn/neighbors/_partition_nodes.pyx because it changed. Compiling sklearn/neighbors/_quad_tree.pyx because it changed. Compiling sklearn/tree/_tree.pyx because it changed. Compiling sklearn/tree/_splitter.pyx because it changed. Compiling sklearn/tree/_criterion.pyx because it changed. Compiling sklearn/tree/_utils.pyx because it changed. Compiling sklearn/utils/sparsefuncs_fast.pyx because it changed. Compiling sklearn/utils/_cython_blas.pyx because it changed. Compiling sklearn/utils/arrayfuncs.pyx because it changed. Compiling sklearn/utils/murmurhash.pyx because it changed. Compiling sklearn/utils/_fast_dict.pyx because it changed. Compiling sklearn/utils/_openmp_helpers.pyx because it changed. Compiling sklearn/utils/_seq_dataset.pyx because it changed. Compiling sklearn/utils/_weight_vector.pyx because it changed. Compiling sklearn/utils/_random.pyx because it changed. Compiling sklearn/utils/_logistic_sigmoid.pyx because it changed. Compiling sklearn/utils/_readonly_array_wrapper.pyx because it changed. Compiling sklearn/utils/_typedefs.pyx because it changed. Compiling sklearn/utils/_heap.pyx because it changed. Compiling sklearn/utils/_sorting.pyx because it changed. Compiling sklearn/utils/_vector_sentinel.pyx because it changed. Compiling sklearn/svm/_newrand.pyx because it changed. Compiling sklearn/svm/_libsvm.pyx because it changed. Compiling sklearn/svm/_liblinear.pyx because it changed. Compiling sklearn/svm/_libsvm_sparse.pyx because it changed. Compiling sklearn/linear_model/_cd_fast.pyx because it changed. Compiling sklearn/linear_model/_sgd_fast.pyx because it changed. Compiling sklearn/linear_model/_sag_fast.pyx because it changed. Compiling sklearn/_isotonic.pyx because it changed. [ 1/59] Cythonizing sklearn/__check_build/_check_build.pyx [ 2/59] Cythonizing sklearn/_isotonic.pyx [ 3/59] Cythonizing sklearn/_loss/_loss.pyx [ 4/59] Cythonizing sklearn/cluster/_dbscan_inner.pyx [ 5/59] Cythonizing sklearn/cluster/_hierarchical_fast.pyx [ 6/59] Cythonizing sklearn/cluster/_k_means_common.pyx [ 7/59] Cythonizing sklearn/cluster/_k_means_elkan.pyx [ 8/59] Cythonizing sklearn/cluster/_k_means_lloyd.pyx [ 9/59] Cythonizing sklearn/cluster/_k_means_minibatch.pyx [10/59] Cythonizing sklearn/datasets/_svmlight_format_fast.pyx [11/59] Cythonizing sklearn/decomposition/_cdnmf_fast.pyx [12/59] Cythonizing sklearn/decomposition/_online_lda_fast.pyx [13/59] Cythonizing sklearn/ensemble/_gradient_boosting.pyx [14/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_binning.pyx [15/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_bitset.pyx [16/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_gradient_boosting.pyx [17/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_predictor.pyx [18/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/common.pyx [19/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/histogram.pyx [20/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/splitting.pyx [21/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/utils.pyx [22/59] Cythonizing sklearn/feature_extraction/_hashing_fast.pyx [23/59] Cythonizing sklearn/linear_model/_cd_fast.pyx [24/59] Cythonizing sklearn/linear_model/_sag_fast.pyx [25/59] Cythonizing sklearn/linear_model/_sgd_fast.pyx [26/59] Cythonizing sklearn/manifold/_barnes_hut_tsne.pyx [27/59] Cythonizing sklearn/manifold/_utils.pyx [28/59] Cythonizing sklearn/metrics/_dist_metrics.pyx [29/59] Cythonizing sklearn/metrics/_pairwise_distances_reduction.pyx [30/59] Cythonizing sklearn/metrics/_pairwise_fast.pyx [31/59] Cythonizing sklearn/metrics/cluster/_expected_mutual_info_fast.pyx [32/59] Cythonizing sklearn/neighbors/_ball_tree.pyx [33/59] Cythonizing sklearn/neighbors/_kd_tree.pyx [34/59] Cythonizing sklearn/neighbors/_partition_nodes.pyx [35/59] Cythonizing sklearn/neighbors/_quad_tree.pyx [36/59] Cythonizing sklearn/preprocessing/_csr_polynomial_expansion.pyx [37/59] Cythonizing sklearn/svm/_liblinear.pyx [38/59] Cythonizing sklearn/svm/_libsvm.pyx [39/59] Cythonizing sklearn/svm/_libsvm_sparse.pyx [40/59] Cythonizing sklearn/svm/_newrand.pyx [41/59] Cythonizing sklearn/tree/_criterion.pyx [42/59] Cythonizing sklearn/tree/_splitter.pyx [43/59] Cythonizing sklearn/tree/_tree.pyx [44/59] Cythonizing sklearn/tree/_utils.pyx [45/59] Cythonizing sklearn/utils/_cython_blas.pyx [46/59] Cythonizing sklearn/utils/_fast_dict.pyx [47/59] Cythonizing sklearn/utils/_heap.pyx [48/59] Cythonizing sklearn/utils/_logistic_sigmoid.pyx [49/59] Cythonizing sklearn/utils/_openmp_helpers.pyx [50/59] Cythonizing sklearn/utils/_random.pyx [51/59] Cythonizing sklearn/utils/_readonly_array_wrapper.pyx [52/59] Cythonizing sklearn/utils/_seq_dataset.pyx [53/59] Cythonizing sklearn/utils/_sorting.pyx [54/59] Cythonizing sklearn/utils/_typedefs.pyx [55/59] Cythonizing sklearn/utils/_vector_sentinel.pyx [56/59] Cythonizing sklearn/utils/_weight_vector.pyx [57/59] Cythonizing sklearn/utils/arrayfuncs.pyx [58/59] Cythonizing sklearn/utils/murmurhash.pyx [59/59] Cythonizing sklearn/utils/sparsefuncs_fast.pyx running dist_info running build_src INFO: build_src INFO: building library "libsvm-skl" sources INFO: building library "liblinear-skl" sources INFO: building extension "sklearn.__check_build._check_build" sources INFO: building extension "sklearn.preprocessing._csr_polynomial_expansion" sources INFO: building extension "sklearn._loss._loss" sources INFO: building extension "sklearn.cluster._dbscan_inner" sources INFO: building extension "sklearn.cluster._hierarchical_fast" sources INFO: building extension "sklearn.cluster._k_means_common" sources INFO: building extension "sklearn.cluster._k_means_lloyd" sources INFO: building extension "sklearn.cluster._k_means_elkan" sources INFO: building extension "sklearn.cluster._k_means_minibatch" sources INFO: building extension "sklearn.datasets._svmlight_format_fast" sources INFO: building extension "sklearn.decomposition._online_lda_fast" sources INFO: building extension "sklearn.decomposition._cdnmf_fast" sources INFO: building extension "sklearn.ensemble._gradient_boosting" sources INFO: building extension "sklearn.ensemble._hist_gradient_boosting._gradient_boosting" sources INFO: building extension "sklearn.ensemble._hist_gradient_boosting.histogram" sources INFO: building extension "sklearn.ensemble._hist_gradient_boosting.splitting" sources INFO: building extension "sklearn.ensemble._hist_gradient_boosting._binning" sources INFO: building extension "sklearn.ensemble._hist_gradient_boosting._predictor" sources INFO: building extension "sklearn.ensemble._hist_gradient_boosting._bitset" sources INFO: building extension "sklearn.ensemble._hist_gradient_boosting.common" sources INFO: building extension "sklearn.ensemble._hist_gradient_boosting.utils" sources INFO: building extension "sklearn.feature_extraction._hashing_fast" sources INFO: building extension "sklearn.manifold._utils" sources INFO: building extension "sklearn.manifold._barnes_hut_tsne" sources INFO: building extension "sklearn.metrics.cluster._expected_mutual_info_fast" sources INFO: building extension "sklearn.metrics._pairwise_fast" sources INFO: building extension "sklearn.metrics._dist_metrics" sources INFO: building extension "sklearn.metrics._pairwise_distances_reduction" sources INFO: building extension "sklearn.neighbors._ball_tree" sources INFO: building extension "sklearn.neighbors._kd_tree" sources INFO: building extension "sklearn.neighbors._partition_nodes" sources INFO: building extension "sklearn.neighbors._quad_tree" sources INFO: building extension "sklearn.tree._tree" sources INFO: building extension "sklearn.tree._splitter" sources INFO: building extension "sklearn.tree._criterion" sources INFO: building extension "sklearn.tree._utils" sources INFO: building extension "sklearn.utils.sparsefuncs_fast" sources INFO: building extension "sklearn.utils._cython_blas" sources INFO: building extension "sklearn.utils.arrayfuncs" sources INFO: building extension "sklearn.utils.murmurhash" sources INFO: building extension "sklearn.utils._fast_dict" sources INFO: building extension "sklearn.utils._openmp_helpers" sources INFO: building extension "sklearn.utils._seq_dataset" sources INFO: building extension "sklearn.utils._weight_vector" sources INFO: building extension "sklearn.utils._random" sources INFO: building extension "sklearn.utils._logistic_sigmoid" sources INFO: building extension "sklearn.utils._readonly_array_wrapper" sources INFO: building extension "sklearn.utils._typedefs" sources INFO: building extension "sklearn.utils._heap" sources INFO: building extension "sklearn.utils._sorting" sources INFO: building extension "sklearn.utils._vector_sentinel" sources INFO: building extension "sklearn.svm._newrand" sources INFO: building extension "sklearn.svm._libsvm" sources INFO: building extension "sklearn.svm._liblinear" sources INFO: building extension "sklearn.svm._libsvm_sparse" sources INFO: building extension "sklearn.linear_model._cd_fast" sources INFO: building extension "sklearn.linear_model._sgd_fast" sources INFO: building extension "sklearn.linear_model._sag_fast" sources INFO: building extension "sklearn._isotonic" sources INFO: building data_files sources INFO: build_src: building npy-pkg config files /private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( Traceback (most recent call last): File "/Users/aditya/Documents/Projects/ml/ml_env/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in &lt;module&gt; main() File "/Users/aditya/Documents/Projects/ml/ml_env/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/aditya/Documents/Projects/ml/ml_env/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel return hook(metadata_directory, config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 174, in prepare_metadata_for_build_wheel self.run_setup() File "/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 268, in run_setup self).run_setup(setup_script=setup_script) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 158, in run_setup exec(compile(code, __file__, 'exec'), locals()) File "setup.py", line 328, in &lt;module&gt; setup_package() File "setup.py", line 324, in setup_package setup(**metadata) File "/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/numpy/distutils/core.py", line 169, in setup return old_setup(**new_attr) ^^^^^^^^^^^^^^^^^^^^^ File "/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 153, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 148, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File "/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 163, in run_commands dist.run_commands() File "/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands self.run_command(cmd) File "/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 986, in run_command cmd_obj.run() File "/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/command/dist_info.py", line 31, in run egg_info.run() File "/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/numpy/distutils/command/egg_info.py", line 24, in run self.run_command("build_src") File "/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 986, in run_command cmd_obj.run() File "/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/numpy/distutils/command/build_src.py", line 144, in run self.build_sources() File "/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/numpy/distutils/command/build_src.py", line 164, in build_sources self.build_npy_pkg_config() File "/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/numpy/distutils/command/build_src.py", line 235, in build_npy_pkg_config install_cmd.finalize_options() File "/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/numpy/distutils/command/install.py", line 21, in finalize_options old_install.finalize_options(self) File "/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/command/install.py", line 45, in finalize_options orig.install.finalize_options(self) File "/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/install.py", line 325, in finalize_options self.finalize_unix() File "/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/install.py", line 498, in finalize_unix self.select_scheme("posix_prefix") File "/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/install.py", line 528, in select_scheme return self._select_scheme(resolved) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/private/var/folders/7q/k83244yx64g70ysfqvwytw_40000gn/T/pip-build-env-2_b53hlu/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/install.py", line 537, in _select_scheme setattr(self, attrname, scheme[key]) ~~~~~~^^^^^ KeyError: 'headers' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─&gt; See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. </code></pre></div> <h3 dir="auto">Versions</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="scikit-learn==1.1.0 python 3.11"><pre class="notranslate">scikit-learn==1.1.0 python 3.11</pre></div>
<h3 dir="auto">Describe the bug</h3> <p dir="auto">Unable to pip install sklearn on macOS Monterey 12.6 python 3.11</p> <p dir="auto">It is failing when trying to prepare metadata</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Collecting scikit-learn Using cached scikit-learn-1.1.2.tar.gz (7.0 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─&gt; [299 lines of output]"><pre class="notranslate"><code class="notranslate">Collecting scikit-learn Using cached scikit-learn-1.1.2.tar.gz (7.0 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─&gt; [299 lines of output] </code></pre></div> <h3 dir="auto">Steps/Code to Reproduce</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pip install sklearn"><pre class="notranslate"><code class="notranslate">pip install sklearn </code></pre></div> <h3 dir="auto">Expected Results</h3> <p dir="auto">No error</p> <h3 dir="auto">Actual Results</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─&gt; [299 lines of output] Partial import of sklearn during the build process. setup.py:128: DeprecationWarning: `numpy.distutils` is deprecated since NumPy 1.23.0, as a result of the deprecation of `distutils` itself. It will be removed for Python &gt;= 3.12. For older Python versions it will remain present. It is recommended to use `setuptools &lt; 60.0` for those Python versions. For more details, see: https://numpy.org/devdocs/reference/distutils_status_migration.html from numpy.distutils.command.build_ext import build_ext # noqa INFO: C compiler: clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g INFO: compile options: '-c' INFO: clang: test_program.c INFO: clang objects/test_program.o -o test_program INFO: C compiler: clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g INFO: compile options: '-c' extra options: '-fopenmp' INFO: clang: test_program.c clang: error: unsupported option '-fopenmp' clang: error: unsupported option '-fopenmp' /private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-install-9kpz095r/scikit-learn_b1c60712d44842a5b1ac7ff0db3bd990/sklearn/_build_utils/openmp_helpers.py:127: UserWarning: *********** * WARNING * *********** It seems that scikit-learn cannot be built with OpenMP. - Make sure you have followed the installation instructions: https://scikit-learn.org/dev/developers/advanced_installation.html - If your compiler supports OpenMP but you still see this message, please submit a bug report at: https://github.com/scikit-learn/scikit-learn/issues - The build will continue with OpenMP-based parallelism disabled. Note however that some estimators will run in sequential mode instead of leveraging thread-based parallelism. *** warnings.warn(message) Compiling sklearn/__check_build/_check_build.pyx because it changed. Compiling sklearn/preprocessing/_csr_polynomial_expansion.pyx because it changed. Compiling sklearn/_loss/_loss.pyx because it changed. Compiling sklearn/cluster/_dbscan_inner.pyx because it changed. Compiling sklearn/cluster/_hierarchical_fast.pyx because it changed. Compiling sklearn/cluster/_k_means_common.pyx because it changed. Compiling sklearn/cluster/_k_means_lloyd.pyx because it changed. Compiling sklearn/cluster/_k_means_elkan.pyx because it changed. Compiling sklearn/cluster/_k_means_minibatch.pyx because it changed. Compiling sklearn/datasets/_svmlight_format_fast.pyx because it changed. Compiling sklearn/decomposition/_online_lda_fast.pyx because it changed. Compiling sklearn/decomposition/_cdnmf_fast.pyx because it changed. Compiling sklearn/ensemble/_gradient_boosting.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/_gradient_boosting.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/histogram.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/splitting.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/_binning.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/_predictor.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/_bitset.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/common.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/utils.pyx because it changed. Compiling sklearn/feature_extraction/_hashing_fast.pyx because it changed. Compiling sklearn/manifold/_utils.pyx because it changed. Compiling sklearn/manifold/_barnes_hut_tsne.pyx because it changed. Compiling sklearn/metrics/cluster/_expected_mutual_info_fast.pyx because it changed. Compiling sklearn/metrics/_pairwise_fast.pyx because it changed. Compiling sklearn/metrics/_dist_metrics.pyx because it changed. Compiling sklearn/metrics/_pairwise_distances_reduction.pyx because it changed. Compiling sklearn/neighbors/_ball_tree.pyx because it changed. Compiling sklearn/neighbors/_kd_tree.pyx because it changed. Compiling sklearn/neighbors/_partition_nodes.pyx because it changed. Compiling sklearn/neighbors/_quad_tree.pyx because it changed. Compiling sklearn/tree/_tree.pyx because it changed. Compiling sklearn/tree/_splitter.pyx because it changed. Compiling sklearn/tree/_criterion.pyx because it changed. Compiling sklearn/tree/_utils.pyx because it changed. Compiling sklearn/utils/sparsefuncs_fast.pyx because it changed. Compiling sklearn/utils/_cython_blas.pyx because it changed. Compiling sklearn/utils/arrayfuncs.pyx because it changed. Compiling sklearn/utils/murmurhash.pyx because it changed. Compiling sklearn/utils/_fast_dict.pyx because it changed. Compiling sklearn/utils/_openmp_helpers.pyx because it changed. Compiling sklearn/utils/_seq_dataset.pyx because it changed. Compiling sklearn/utils/_weight_vector.pyx because it changed. Compiling sklearn/utils/_random.pyx because it changed. Compiling sklearn/utils/_logistic_sigmoid.pyx because it changed. Compiling sklearn/utils/_readonly_array_wrapper.pyx because it changed. Compiling sklearn/utils/_typedefs.pyx because it changed. Compiling sklearn/utils/_heap.pyx because it changed. Compiling sklearn/utils/_sorting.pyx because it changed. Compiling sklearn/utils/_vector_sentinel.pyx because it changed. Compiling sklearn/svm/_newrand.pyx because it changed. Compiling sklearn/svm/_libsvm.pyx because it changed. Compiling sklearn/svm/_liblinear.pyx because it changed. Compiling sklearn/svm/_libsvm_sparse.pyx because it changed. Compiling sklearn/linear_model/_cd_fast.pyx because it changed. Compiling sklearn/linear_model/_sgd_fast.pyx because it changed. Compiling sklearn/linear_model/_sag_fast.pyx because it changed. Compiling sklearn/_isotonic.pyx because it changed. [ 1/59] Cythonizing sklearn/__check_build/_check_build.pyx [ 2/59] Cythonizing sklearn/_isotonic.pyx [ 3/59] Cythonizing sklearn/_loss/_loss.pyx [ 4/59] Cythonizing sklearn/cluster/_dbscan_inner.pyx [ 5/59] Cythonizing sklearn/cluster/_hierarchical_fast.pyx [ 6/59] Cythonizing sklearn/cluster/_k_means_common.pyx [ 7/59] Cythonizing sklearn/cluster/_k_means_elkan.pyx [ 8/59] Cythonizing sklearn/cluster/_k_means_lloyd.pyx [ 9/59] Cythonizing sklearn/cluster/_k_means_minibatch.pyx [10/59] Cythonizing sklearn/datasets/_svmlight_format_fast.pyx [11/59] Cythonizing sklearn/decomposition/_cdnmf_fast.pyx [12/59] Cythonizing sklearn/decomposition/_online_lda_fast.pyx [13/59] Cythonizing sklearn/ensemble/_gradient_boosting.pyx [14/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_binning.pyx [15/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_bitset.pyx [16/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_gradient_boosting.pyx [17/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_predictor.pyx [18/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/common.pyx [19/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/histogram.pyx [20/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/splitting.pyx [21/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/utils.pyx [22/59] Cythonizing sklearn/feature_extraction/_hashing_fast.pyx [23/59] Cythonizing sklearn/linear_model/_cd_fast.pyx [24/59] Cythonizing sklearn/linear_model/_sag_fast.pyx [25/59] Cythonizing sklearn/linear_model/_sgd_fast.pyx [26/59] Cythonizing sklearn/manifold/_barnes_hut_tsne.pyx [27/59] Cythonizing sklearn/manifold/_utils.pyx [28/59] Cythonizing sklearn/metrics/_dist_metrics.pyx [29/59] Cythonizing sklearn/metrics/_pairwise_distances_reduction.pyx [30/59] Cythonizing sklearn/metrics/_pairwise_fast.pyx [31/59] Cythonizing sklearn/metrics/cluster/_expected_mutual_info_fast.pyx [32/59] Cythonizing sklearn/neighbors/_ball_tree.pyx [33/59] Cythonizing sklearn/neighbors/_kd_tree.pyx [34/59] Cythonizing sklearn/neighbors/_partition_nodes.pyx [35/59] Cythonizing sklearn/neighbors/_quad_tree.pyx [36/59] Cythonizing sklearn/preprocessing/_csr_polynomial_expansion.pyx [37/59] Cythonizing sklearn/svm/_liblinear.pyx [38/59] Cythonizing sklearn/svm/_libsvm.pyx [39/59] Cythonizing sklearn/svm/_libsvm_sparse.pyx [40/59] Cythonizing sklearn/svm/_newrand.pyx [41/59] Cythonizing sklearn/tree/_criterion.pyx [42/59] Cythonizing sklearn/tree/_splitter.pyx [43/59] Cythonizing sklearn/tree/_tree.pyx [44/59] Cythonizing sklearn/tree/_utils.pyx [45/59] Cythonizing sklearn/utils/_cython_blas.pyx [46/59] Cythonizing sklearn/utils/_fast_dict.pyx [47/59] Cythonizing sklearn/utils/_heap.pyx [48/59] Cythonizing sklearn/utils/_logistic_sigmoid.pyx [49/59] Cythonizing sklearn/utils/_openmp_helpers.pyx [50/59] Cythonizing sklearn/utils/_random.pyx [51/59] Cythonizing sklearn/utils/_readonly_array_wrapper.pyx [52/59] Cythonizing sklearn/utils/_seq_dataset.pyx [53/59] Cythonizing sklearn/utils/_sorting.pyx [54/59] Cythonizing sklearn/utils/_typedefs.pyx [55/59] Cythonizing sklearn/utils/_vector_sentinel.pyx [56/59] Cythonizing sklearn/utils/_weight_vector.pyx [57/59] Cythonizing sklearn/utils/arrayfuncs.pyx [58/59] Cythonizing sklearn/utils/murmurhash.pyx [59/59] Cythonizing sklearn/utils/sparsefuncs_fast.pyx running dist_info running build_src INFO: build_src INFO: building library &quot;libsvm-skl&quot; sources INFO: building library &quot;liblinear-skl&quot; sources INFO: building extension &quot;sklearn.__check_build._check_build&quot; sources INFO: building extension &quot;sklearn.preprocessing._csr_polynomial_expansion&quot; sources INFO: building extension &quot;sklearn._loss._loss&quot; sources INFO: building extension &quot;sklearn.cluster._dbscan_inner&quot; sources INFO: building extension &quot;sklearn.cluster._hierarchical_fast&quot; sources INFO: building extension &quot;sklearn.cluster._k_means_common&quot; sources INFO: building extension &quot;sklearn.cluster._k_means_lloyd&quot; sources INFO: building extension &quot;sklearn.cluster._k_means_elkan&quot; sources INFO: building extension &quot;sklearn.cluster._k_means_minibatch&quot; sources INFO: building extension &quot;sklearn.datasets._svmlight_format_fast&quot; sources INFO: building extension &quot;sklearn.decomposition._online_lda_fast&quot; sources INFO: building extension &quot;sklearn.decomposition._cdnmf_fast&quot; sources INFO: building extension &quot;sklearn.ensemble._gradient_boosting&quot; sources INFO: building extension &quot;sklearn.ensemble._hist_gradient_boosting._gradient_boosting&quot; sources INFO: building extension &quot;sklearn.ensemble._hist_gradient_boosting.histogram&quot; sources INFO: building extension &quot;sklearn.ensemble._hist_gradient_boosting.splitting&quot; sources INFO: building extension &quot;sklearn.ensemble._hist_gradient_boosting._binning&quot; sources INFO: building extension &quot;sklearn.ensemble._hist_gradient_boosting._predictor&quot; sources INFO: building extension &quot;sklearn.ensemble._hist_gradient_boosting._bitset&quot; sources INFO: building extension &quot;sklearn.ensemble._hist_gradient_boosting.common&quot; sources INFO: building extension &quot;sklearn.ensemble._hist_gradient_boosting.utils&quot; sources INFO: building extension &quot;sklearn.feature_extraction._hashing_fast&quot; sources INFO: building extension &quot;sklearn.manifold._utils&quot; sources INFO: building extension &quot;sklearn.manifold._barnes_hut_tsne&quot; sources INFO: building extension &quot;sklearn.metrics.cluster._expected_mutual_info_fast&quot; sources INFO: building extension &quot;sklearn.metrics._pairwise_fast&quot; sources INFO: building extension &quot;sklearn.metrics._dist_metrics&quot; sources INFO: building extension &quot;sklearn.metrics._pairwise_distances_reduction&quot; sources INFO: building extension &quot;sklearn.neighbors._ball_tree&quot; sources INFO: building extension &quot;sklearn.neighbors._kd_tree&quot; sources INFO: building extension &quot;sklearn.neighbors._partition_nodes&quot; sources INFO: building extension &quot;sklearn.neighbors._quad_tree&quot; sources INFO: building extension &quot;sklearn.tree._tree&quot; sources INFO: building extension &quot;sklearn.tree._splitter&quot; sources INFO: building extension &quot;sklearn.tree._criterion&quot; sources INFO: building extension &quot;sklearn.tree._utils&quot; sources INFO: building extension &quot;sklearn.utils.sparsefuncs_fast&quot; sources INFO: building extension &quot;sklearn.utils._cython_blas&quot; sources INFO: building extension &quot;sklearn.utils.arrayfuncs&quot; sources INFO: building extension &quot;sklearn.utils.murmurhash&quot; sources INFO: building extension &quot;sklearn.utils._fast_dict&quot; sources INFO: building extension &quot;sklearn.utils._openmp_helpers&quot; sources INFO: building extension &quot;sklearn.utils._seq_dataset&quot; sources INFO: building extension &quot;sklearn.utils._weight_vector&quot; sources INFO: building extension &quot;sklearn.utils._random&quot; sources INFO: building extension &quot;sklearn.utils._logistic_sigmoid&quot; sources INFO: building extension &quot;sklearn.utils._readonly_array_wrapper&quot; sources INFO: building extension &quot;sklearn.utils._typedefs&quot; sources INFO: building extension &quot;sklearn.utils._heap&quot; sources INFO: building extension &quot;sklearn.utils._sorting&quot; sources INFO: building extension &quot;sklearn.utils._vector_sentinel&quot; sources INFO: building extension &quot;sklearn.svm._newrand&quot; sources INFO: building extension &quot;sklearn.svm._libsvm&quot; sources INFO: building extension &quot;sklearn.svm._liblinear&quot; sources INFO: building extension &quot;sklearn.svm._libsvm_sparse&quot; sources INFO: building extension &quot;sklearn.linear_model._cd_fast&quot; sources INFO: building extension &quot;sklearn.linear_model._sgd_fast&quot; sources INFO: building extension &quot;sklearn.linear_model._sag_fast&quot; sources INFO: building extension &quot;sklearn._isotonic&quot; sources INFO: building data_files sources INFO: build_src: building npy-pkg config files /private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( Traceback (most recent call last): File &quot;/Users/pranavsastry/Documents/py/neograd/tests/venv/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py&quot;, line 351, in &lt;module&gt; main() File &quot;/Users/pranavsastry/Documents/py/neograd/tests/venv/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py&quot;, line 333, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File &quot;/Users/pranavsastry/Documents/py/neograd/tests/venv/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py&quot;, line 152, in prepare_metadata_for_build_wheel return hook(metadata_directory, config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File &quot;/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/build_meta.py&quot;, line 174, in prepare_metadata_for_build_wheel self.run_setup() File &quot;/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/build_meta.py&quot;, line 268, in run_setup self).run_setup(setup_script=setup_script) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File &quot;/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/build_meta.py&quot;, line 158, in run_setup exec(compile(code, __file__, 'exec'), locals()) File &quot;setup.py&quot;, line 329, in &lt;module&gt; setup_package() File &quot;setup.py&quot;, line 325, in setup_package setup(**metadata) File &quot;/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/numpy/distutils/core.py&quot;, line 169, in setup return old_setup(**new_attr) ^^^^^^^^^^^^^^^^^^^^^ File &quot;/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/__init__.py&quot;, line 153, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File &quot;/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py&quot;, line 148, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File &quot;/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py&quot;, line 163, in run_commands dist.run_commands() File &quot;/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py&quot;, line 967, in run_commands self.run_command(cmd) File &quot;/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py&quot;, line 986, in run_command cmd_obj.run() File &quot;/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/command/dist_info.py&quot;, line 31, in run egg_info.run() File &quot;/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/numpy/distutils/command/egg_info.py&quot;, line 24, in run self.run_command(&quot;build_src&quot;) File &quot;/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py&quot;, line 313, in run_command self.distribution.run_command(command) File &quot;/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py&quot;, line 986, in run_command cmd_obj.run() File &quot;/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/numpy/distutils/command/build_src.py&quot;, line 144, in run self.build_sources() File &quot;/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/numpy/distutils/command/build_src.py&quot;, line 164, in build_sources self.build_npy_pkg_config() File &quot;/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/numpy/distutils/command/build_src.py&quot;, line 235, in build_npy_pkg_config install_cmd.finalize_options() File &quot;/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/numpy/distutils/command/install.py&quot;, line 21, in finalize_options old_install.finalize_options(self) File &quot;/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/command/install.py&quot;, line 45, in finalize_options orig.install.finalize_options(self) File &quot;/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/install.py&quot;, line 325, in finalize_options self.finalize_unix() File &quot;/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/install.py&quot;, line 498, in finalize_unix self.select_scheme(&quot;posix_prefix&quot;) File &quot;/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/install.py&quot;, line 528, in select_scheme return self._select_scheme(resolved) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File &quot;/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/install.py&quot;, line 537, in _select_scheme setattr(self, attrname, scheme[key]) ~~~~~~^^^^^ KeyError: 'headers' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─&gt; See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details."><pre class="notranslate"><code class="notranslate">× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─&gt; [299 lines of output] Partial import of sklearn during the build process. setup.py:128: DeprecationWarning: `numpy.distutils` is deprecated since NumPy 1.23.0, as a result of the deprecation of `distutils` itself. It will be removed for Python &gt;= 3.12. For older Python versions it will remain present. It is recommended to use `setuptools &lt; 60.0` for those Python versions. For more details, see: https://numpy.org/devdocs/reference/distutils_status_migration.html from numpy.distutils.command.build_ext import build_ext # noqa INFO: C compiler: clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g INFO: compile options: '-c' INFO: clang: test_program.c INFO: clang objects/test_program.o -o test_program INFO: C compiler: clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g INFO: compile options: '-c' extra options: '-fopenmp' INFO: clang: test_program.c clang: error: unsupported option '-fopenmp' clang: error: unsupported option '-fopenmp' /private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-install-9kpz095r/scikit-learn_b1c60712d44842a5b1ac7ff0db3bd990/sklearn/_build_utils/openmp_helpers.py:127: UserWarning: *********** * WARNING * *********** It seems that scikit-learn cannot be built with OpenMP. - Make sure you have followed the installation instructions: https://scikit-learn.org/dev/developers/advanced_installation.html - If your compiler supports OpenMP but you still see this message, please submit a bug report at: https://github.com/scikit-learn/scikit-learn/issues - The build will continue with OpenMP-based parallelism disabled. Note however that some estimators will run in sequential mode instead of leveraging thread-based parallelism. *** warnings.warn(message) Compiling sklearn/__check_build/_check_build.pyx because it changed. Compiling sklearn/preprocessing/_csr_polynomial_expansion.pyx because it changed. Compiling sklearn/_loss/_loss.pyx because it changed. Compiling sklearn/cluster/_dbscan_inner.pyx because it changed. Compiling sklearn/cluster/_hierarchical_fast.pyx because it changed. Compiling sklearn/cluster/_k_means_common.pyx because it changed. Compiling sklearn/cluster/_k_means_lloyd.pyx because it changed. Compiling sklearn/cluster/_k_means_elkan.pyx because it changed. Compiling sklearn/cluster/_k_means_minibatch.pyx because it changed. Compiling sklearn/datasets/_svmlight_format_fast.pyx because it changed. Compiling sklearn/decomposition/_online_lda_fast.pyx because it changed. Compiling sklearn/decomposition/_cdnmf_fast.pyx because it changed. Compiling sklearn/ensemble/_gradient_boosting.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/_gradient_boosting.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/histogram.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/splitting.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/_binning.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/_predictor.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/_bitset.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/common.pyx because it changed. Compiling sklearn/ensemble/_hist_gradient_boosting/utils.pyx because it changed. Compiling sklearn/feature_extraction/_hashing_fast.pyx because it changed. Compiling sklearn/manifold/_utils.pyx because it changed. Compiling sklearn/manifold/_barnes_hut_tsne.pyx because it changed. Compiling sklearn/metrics/cluster/_expected_mutual_info_fast.pyx because it changed. Compiling sklearn/metrics/_pairwise_fast.pyx because it changed. Compiling sklearn/metrics/_dist_metrics.pyx because it changed. Compiling sklearn/metrics/_pairwise_distances_reduction.pyx because it changed. Compiling sklearn/neighbors/_ball_tree.pyx because it changed. Compiling sklearn/neighbors/_kd_tree.pyx because it changed. Compiling sklearn/neighbors/_partition_nodes.pyx because it changed. Compiling sklearn/neighbors/_quad_tree.pyx because it changed. Compiling sklearn/tree/_tree.pyx because it changed. Compiling sklearn/tree/_splitter.pyx because it changed. Compiling sklearn/tree/_criterion.pyx because it changed. Compiling sklearn/tree/_utils.pyx because it changed. Compiling sklearn/utils/sparsefuncs_fast.pyx because it changed. Compiling sklearn/utils/_cython_blas.pyx because it changed. Compiling sklearn/utils/arrayfuncs.pyx because it changed. Compiling sklearn/utils/murmurhash.pyx because it changed. Compiling sklearn/utils/_fast_dict.pyx because it changed. Compiling sklearn/utils/_openmp_helpers.pyx because it changed. Compiling sklearn/utils/_seq_dataset.pyx because it changed. Compiling sklearn/utils/_weight_vector.pyx because it changed. Compiling sklearn/utils/_random.pyx because it changed. Compiling sklearn/utils/_logistic_sigmoid.pyx because it changed. Compiling sklearn/utils/_readonly_array_wrapper.pyx because it changed. Compiling sklearn/utils/_typedefs.pyx because it changed. Compiling sklearn/utils/_heap.pyx because it changed. Compiling sklearn/utils/_sorting.pyx because it changed. Compiling sklearn/utils/_vector_sentinel.pyx because it changed. Compiling sklearn/svm/_newrand.pyx because it changed. Compiling sklearn/svm/_libsvm.pyx because it changed. Compiling sklearn/svm/_liblinear.pyx because it changed. Compiling sklearn/svm/_libsvm_sparse.pyx because it changed. Compiling sklearn/linear_model/_cd_fast.pyx because it changed. Compiling sklearn/linear_model/_sgd_fast.pyx because it changed. Compiling sklearn/linear_model/_sag_fast.pyx because it changed. Compiling sklearn/_isotonic.pyx because it changed. [ 1/59] Cythonizing sklearn/__check_build/_check_build.pyx [ 2/59] Cythonizing sklearn/_isotonic.pyx [ 3/59] Cythonizing sklearn/_loss/_loss.pyx [ 4/59] Cythonizing sklearn/cluster/_dbscan_inner.pyx [ 5/59] Cythonizing sklearn/cluster/_hierarchical_fast.pyx [ 6/59] Cythonizing sklearn/cluster/_k_means_common.pyx [ 7/59] Cythonizing sklearn/cluster/_k_means_elkan.pyx [ 8/59] Cythonizing sklearn/cluster/_k_means_lloyd.pyx [ 9/59] Cythonizing sklearn/cluster/_k_means_minibatch.pyx [10/59] Cythonizing sklearn/datasets/_svmlight_format_fast.pyx [11/59] Cythonizing sklearn/decomposition/_cdnmf_fast.pyx [12/59] Cythonizing sklearn/decomposition/_online_lda_fast.pyx [13/59] Cythonizing sklearn/ensemble/_gradient_boosting.pyx [14/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_binning.pyx [15/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_bitset.pyx [16/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_gradient_boosting.pyx [17/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_predictor.pyx [18/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/common.pyx [19/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/histogram.pyx [20/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/splitting.pyx [21/59] Cythonizing sklearn/ensemble/_hist_gradient_boosting/utils.pyx [22/59] Cythonizing sklearn/feature_extraction/_hashing_fast.pyx [23/59] Cythonizing sklearn/linear_model/_cd_fast.pyx [24/59] Cythonizing sklearn/linear_model/_sag_fast.pyx [25/59] Cythonizing sklearn/linear_model/_sgd_fast.pyx [26/59] Cythonizing sklearn/manifold/_barnes_hut_tsne.pyx [27/59] Cythonizing sklearn/manifold/_utils.pyx [28/59] Cythonizing sklearn/metrics/_dist_metrics.pyx [29/59] Cythonizing sklearn/metrics/_pairwise_distances_reduction.pyx [30/59] Cythonizing sklearn/metrics/_pairwise_fast.pyx [31/59] Cythonizing sklearn/metrics/cluster/_expected_mutual_info_fast.pyx [32/59] Cythonizing sklearn/neighbors/_ball_tree.pyx [33/59] Cythonizing sklearn/neighbors/_kd_tree.pyx [34/59] Cythonizing sklearn/neighbors/_partition_nodes.pyx [35/59] Cythonizing sklearn/neighbors/_quad_tree.pyx [36/59] Cythonizing sklearn/preprocessing/_csr_polynomial_expansion.pyx [37/59] Cythonizing sklearn/svm/_liblinear.pyx [38/59] Cythonizing sklearn/svm/_libsvm.pyx [39/59] Cythonizing sklearn/svm/_libsvm_sparse.pyx [40/59] Cythonizing sklearn/svm/_newrand.pyx [41/59] Cythonizing sklearn/tree/_criterion.pyx [42/59] Cythonizing sklearn/tree/_splitter.pyx [43/59] Cythonizing sklearn/tree/_tree.pyx [44/59] Cythonizing sklearn/tree/_utils.pyx [45/59] Cythonizing sklearn/utils/_cython_blas.pyx [46/59] Cythonizing sklearn/utils/_fast_dict.pyx [47/59] Cythonizing sklearn/utils/_heap.pyx [48/59] Cythonizing sklearn/utils/_logistic_sigmoid.pyx [49/59] Cythonizing sklearn/utils/_openmp_helpers.pyx [50/59] Cythonizing sklearn/utils/_random.pyx [51/59] Cythonizing sklearn/utils/_readonly_array_wrapper.pyx [52/59] Cythonizing sklearn/utils/_seq_dataset.pyx [53/59] Cythonizing sklearn/utils/_sorting.pyx [54/59] Cythonizing sklearn/utils/_typedefs.pyx [55/59] Cythonizing sklearn/utils/_vector_sentinel.pyx [56/59] Cythonizing sklearn/utils/_weight_vector.pyx [57/59] Cythonizing sklearn/utils/arrayfuncs.pyx [58/59] Cythonizing sklearn/utils/murmurhash.pyx [59/59] Cythonizing sklearn/utils/sparsefuncs_fast.pyx running dist_info running build_src INFO: build_src INFO: building library "libsvm-skl" sources INFO: building library "liblinear-skl" sources INFO: building extension "sklearn.__check_build._check_build" sources INFO: building extension "sklearn.preprocessing._csr_polynomial_expansion" sources INFO: building extension "sklearn._loss._loss" sources INFO: building extension "sklearn.cluster._dbscan_inner" sources INFO: building extension "sklearn.cluster._hierarchical_fast" sources INFO: building extension "sklearn.cluster._k_means_common" sources INFO: building extension "sklearn.cluster._k_means_lloyd" sources INFO: building extension "sklearn.cluster._k_means_elkan" sources INFO: building extension "sklearn.cluster._k_means_minibatch" sources INFO: building extension "sklearn.datasets._svmlight_format_fast" sources INFO: building extension "sklearn.decomposition._online_lda_fast" sources INFO: building extension "sklearn.decomposition._cdnmf_fast" sources INFO: building extension "sklearn.ensemble._gradient_boosting" sources INFO: building extension "sklearn.ensemble._hist_gradient_boosting._gradient_boosting" sources INFO: building extension "sklearn.ensemble._hist_gradient_boosting.histogram" sources INFO: building extension "sklearn.ensemble._hist_gradient_boosting.splitting" sources INFO: building extension "sklearn.ensemble._hist_gradient_boosting._binning" sources INFO: building extension "sklearn.ensemble._hist_gradient_boosting._predictor" sources INFO: building extension "sklearn.ensemble._hist_gradient_boosting._bitset" sources INFO: building extension "sklearn.ensemble._hist_gradient_boosting.common" sources INFO: building extension "sklearn.ensemble._hist_gradient_boosting.utils" sources INFO: building extension "sklearn.feature_extraction._hashing_fast" sources INFO: building extension "sklearn.manifold._utils" sources INFO: building extension "sklearn.manifold._barnes_hut_tsne" sources INFO: building extension "sklearn.metrics.cluster._expected_mutual_info_fast" sources INFO: building extension "sklearn.metrics._pairwise_fast" sources INFO: building extension "sklearn.metrics._dist_metrics" sources INFO: building extension "sklearn.metrics._pairwise_distances_reduction" sources INFO: building extension "sklearn.neighbors._ball_tree" sources INFO: building extension "sklearn.neighbors._kd_tree" sources INFO: building extension "sklearn.neighbors._partition_nodes" sources INFO: building extension "sklearn.neighbors._quad_tree" sources INFO: building extension "sklearn.tree._tree" sources INFO: building extension "sklearn.tree._splitter" sources INFO: building extension "sklearn.tree._criterion" sources INFO: building extension "sklearn.tree._utils" sources INFO: building extension "sklearn.utils.sparsefuncs_fast" sources INFO: building extension "sklearn.utils._cython_blas" sources INFO: building extension "sklearn.utils.arrayfuncs" sources INFO: building extension "sklearn.utils.murmurhash" sources INFO: building extension "sklearn.utils._fast_dict" sources INFO: building extension "sklearn.utils._openmp_helpers" sources INFO: building extension "sklearn.utils._seq_dataset" sources INFO: building extension "sklearn.utils._weight_vector" sources INFO: building extension "sklearn.utils._random" sources INFO: building extension "sklearn.utils._logistic_sigmoid" sources INFO: building extension "sklearn.utils._readonly_array_wrapper" sources INFO: building extension "sklearn.utils._typedefs" sources INFO: building extension "sklearn.utils._heap" sources INFO: building extension "sklearn.utils._sorting" sources INFO: building extension "sklearn.utils._vector_sentinel" sources INFO: building extension "sklearn.svm._newrand" sources INFO: building extension "sklearn.svm._libsvm" sources INFO: building extension "sklearn.svm._liblinear" sources INFO: building extension "sklearn.svm._libsvm_sparse" sources INFO: building extension "sklearn.linear_model._cd_fast" sources INFO: building extension "sklearn.linear_model._sgd_fast" sources INFO: building extension "sklearn.linear_model._sag_fast" sources INFO: building extension "sklearn._isotonic" sources INFO: building data_files sources INFO: build_src: building npy-pkg config files /private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( Traceback (most recent call last): File "/Users/pranavsastry/Documents/py/neograd/tests/venv/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in &lt;module&gt; main() File "/Users/pranavsastry/Documents/py/neograd/tests/venv/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/pranavsastry/Documents/py/neograd/tests/venv/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel return hook(metadata_directory, config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 174, in prepare_metadata_for_build_wheel self.run_setup() File "/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 268, in run_setup self).run_setup(setup_script=setup_script) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 158, in run_setup exec(compile(code, __file__, 'exec'), locals()) File "setup.py", line 329, in &lt;module&gt; setup_package() File "setup.py", line 325, in setup_package setup(**metadata) File "/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/numpy/distutils/core.py", line 169, in setup return old_setup(**new_attr) ^^^^^^^^^^^^^^^^^^^^^ File "/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 153, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 148, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File "/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 163, in run_commands dist.run_commands() File "/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands self.run_command(cmd) File "/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 986, in run_command cmd_obj.run() File "/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/command/dist_info.py", line 31, in run egg_info.run() File "/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/numpy/distutils/command/egg_info.py", line 24, in run self.run_command("build_src") File "/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 986, in run_command cmd_obj.run() File "/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/numpy/distutils/command/build_src.py", line 144, in run self.build_sources() File "/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/numpy/distutils/command/build_src.py", line 164, in build_sources self.build_npy_pkg_config() File "/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/numpy/distutils/command/build_src.py", line 235, in build_npy_pkg_config install_cmd.finalize_options() File "/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/numpy/distutils/command/install.py", line 21, in finalize_options old_install.finalize_options(self) File "/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/command/install.py", line 45, in finalize_options orig.install.finalize_options(self) File "/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/install.py", line 325, in finalize_options self.finalize_unix() File "/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/install.py", line 498, in finalize_unix self.select_scheme("posix_prefix") File "/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/install.py", line 528, in select_scheme return self._select_scheme(resolved) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/private/var/folders/lf/r17346zd2gl5jn_70c1pjcr40000gn/T/pip-build-env-i2sy2_0r/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/install.py", line 537, in _select_scheme setattr(self, attrname, scheme[key]) ~~~~~~^^^^^ KeyError: 'headers' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─&gt; See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. </code></pre></div> <h3 dir="auto">Versions</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="v1.1.2"><pre class="notranslate">v1.1.2</pre></div>
1
<p dir="auto">by <strong><a href="mailto:[email protected]">[email protected]</a></strong>:</p> <pre class="notranslate">The tags are not read if they are just before of package sentence. $ cat email_test.go // +build email package valid import "testing" func TestEmail(t *testing.T) {} $ cat a_test.go // +build !email package valid import "testing" func TestA(t *testing.T) {} $ cat b_test.go // +build !email package valid import "testing" func TestB(t *testing.T) {} $ go test -v === RUN TestA --- PASS: TestA (0.00 seconds) === RUN TestB --- PASS: TestB (0.00 seconds) === RUN TestEmail --- PASS: TestEmail (0.00 seconds) PASS $ go test -v -tags email === RUN TestA --- PASS: TestA (0.00 seconds) === RUN TestB --- PASS: TestB (0.00 seconds) === RUN TestEmail --- PASS: TestEmail (0.00 seconds) PASS * * * This works: $ cat email_test.go // +build email package valid import "testing" func TestEmail(t *testing.T) {} $ cat a_test.go // +build !email package valid import "testing" func TestA(t *testing.T) {} $ cat b_test.go // +build !email package valid import "testing" func TestB(t *testing.T) {} $ go test -v === RUN TestA --- PASS: TestA (0.00 seconds) === RUN TestB --- PASS: TestB (0.00 seconds) PASS $ go test -v -tags email === RUN TestEmail --- PASS: TestEmail (0.00 seconds) PASS</pre>
<p dir="auto">This issue proposes that Go should support some form of generic programming.<br> It has the Go2 label, since for Go1.x the language is more or less done.</p> <p dir="auto">Accompanying this issue is <a href="https://github.com/golang/proposal/blob/master/design/15292-generics.md">a general generics proposal</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ianlancetaylor/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ianlancetaylor">@ianlancetaylor</a> that includes four specific flawed proposals of generic programming mechanisms for Go.</p> <p dir="auto">The intent is not to add generics to Go at this time, but rather to show people what a complete proposal would look like. We hope this will be of help to anyone proposing similar language changes in the future.</p>
0
<p dir="auto">Hey guys, thank you for adding the setMinimizable option <a href="https://github.com/atom/electron/pull/4156" data-hovercard-type="pull_request" data-hovercard-url="/electron/electron/pull/4156/hovercard">here</a></p> <p dir="auto">One weird thing though. When we use that and minimize the window by using WindowKey+D RequestAnimationFrame is still working. <strong>Which is a good thing for me!</strong> Since I want it to always be running for my game, but is that intended? Because I don't want to install / use a new version of electron and then it will come back and bite me in my ass :)</p>
<p dir="auto">The <code class="notranslate">--disable-renderer-backgrounding</code> command line switch only disables throttling for timers, there is currently no way to disable throttling of <code class="notranslate">requestAnimationFrame</code>.</p> <p dir="auto">Refs <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="130538761" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/4317" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/4317/hovercard?comment_id=190990964&amp;comment_type=issue_comment" href="https://github.com/electron/electron/issues/4317#issuecomment-190990964">#4317 (comment)</a>.</p>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ flutter doctor -v [✓] Flutter (Channel master, v0.5.8-pre.128, on Linux, locale en_US.UTF-8) • Flutter version 0.5.8-pre.128 at /home/user/opt/flutter • Framework revision d71d10094d (26 hours ago), 2018-07-25 13:43:36 +0100 • Engine revision 95e91e31fa • Dart version 2.0.0-dev.69.0.flutter-937ee2e8ca [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /home/user/Android/Sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • ANDROID_HOME = /home/user/Android/Sdk • Java binary at: /opt/android-studio/jre/bin/java • Java version openjdk version &quot;1.8.0_152-release&quot; • All Android licenses accepted. [✓] Android Studio (version 3.1) • Android Studio at /opt/android-studio ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • Java version openjdk version &quot;1.8.0_152-release&quot; [✓] Connected devices (1 available) • Redmi Note 3 • 192.168.44.152:5555 • android-arm64 • Android 7.1.1 (API 25)"><pre class="notranslate"><code class="notranslate">$ flutter doctor -v [✓] Flutter (Channel master, v0.5.8-pre.128, on Linux, locale en_US.UTF-8) • Flutter version 0.5.8-pre.128 at /home/user/opt/flutter • Framework revision d71d10094d (26 hours ago), 2018-07-25 13:43:36 +0100 • Engine revision 95e91e31fa • Dart version 2.0.0-dev.69.0.flutter-937ee2e8ca [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /home/user/Android/Sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • ANDROID_HOME = /home/user/Android/Sdk • Java binary at: /opt/android-studio/jre/bin/java • Java version openjdk version "1.8.0_152-release" • All Android licenses accepted. [✓] Android Studio (version 3.1) • Android Studio at /opt/android-studio ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • Java version openjdk version "1.8.0_152-release" [✓] Connected devices (1 available) • Redmi Note 3 • 192.168.44.152:5555 • android-arm64 • Android 7.1.1 (API 25) </code></pre></div> <p dir="auto">Arch Linux</p> <h1 dir="auto">The Build Code</h1> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Widget build(BuildContext context) { return Scaffold( appBar: AppBar( elevation: 0.0, title: Text('BottomNavigationBar', style: TextStyle(fontSize: 16.0)), ), body: _children[_currentIndex], bottomNavigationBar: BottomNavigationBar( onTap: _onTabTapped, currentIndex: _currentIndex, items: [ BottomNavigationBarItem( icon: Icon(Icons.home), title: Text('Home'), ), BottomNavigationBarItem( icon: Icon(Icons.mail), title: Text('Messages'), ), BottomNavigationBarItem( icon: Icon(Icons.tv), title: Text('TV'), ), BottomNavigationBarItem( icon: Icon(Icons.person), title: Text('Profile') ) ], ), ); }"><pre class="notranslate"><span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-k">return</span> <span class="pl-c1">Scaffold</span>( appBar<span class="pl-k">:</span> <span class="pl-c1">AppBar</span>( elevation<span class="pl-k">:</span> <span class="pl-c1">0.0</span>, title<span class="pl-k">:</span> <span class="pl-c1">Text</span>(<span class="pl-s">'BottomNavigationBar'</span>, style<span class="pl-k">:</span> <span class="pl-c1">TextStyle</span>(fontSize<span class="pl-k">:</span> <span class="pl-c1">16.0</span>)), ), body<span class="pl-k">:</span> _children[_currentIndex], bottomNavigationBar<span class="pl-k">:</span> <span class="pl-c1">BottomNavigationBar</span>( onTap<span class="pl-k">:</span> _onTabTapped, currentIndex<span class="pl-k">:</span> _currentIndex, items<span class="pl-k">:</span> [ <span class="pl-c1">BottomNavigationBarItem</span>( icon<span class="pl-k">:</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.home), title<span class="pl-k">:</span> <span class="pl-c1">Text</span>(<span class="pl-s">'Home'</span>), ), <span class="pl-c1">BottomNavigationBarItem</span>( icon<span class="pl-k">:</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.mail), title<span class="pl-k">:</span> <span class="pl-c1">Text</span>(<span class="pl-s">'Messages'</span>), ), <span class="pl-c1">BottomNavigationBarItem</span>( icon<span class="pl-k">:</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.tv), title<span class="pl-k">:</span> <span class="pl-c1">Text</span>(<span class="pl-s">'TV'</span>), ), <span class="pl-c1">BottomNavigationBarItem</span>( icon<span class="pl-k">:</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.person), title<span class="pl-k">:</span> <span class="pl-c1">Text</span>(<span class="pl-s">'Profile'</span>) ) ], ), ); }</pre></div> <h1 dir="auto">Screenshots</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1555508/43269339-3a0b68e8-9125-11e8-93d9-5f34ae963662.png"><img src="https://user-images.githubusercontent.com/1555508/43269339-3a0b68e8-9125-11e8-93d9-5f34ae963662.png" alt="screenshot_20180726-223324" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1555508/43269350-4213a5f0-9125-11e8-877b-b4a5612c48aa.png"><img src="https://user-images.githubusercontent.com/1555508/43269350-4213a5f0-9125-11e8-877b-b4a5612c48aa.png" alt="screenshot_20180726-223340" style="max-width: 100%;"></a></p>
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">When adding more than 3 items in a <code class="notranslate">BottomNavigationBar</code>, all items turn white, and are unreadable on the light-gray background. Also, the active item is also white, and not the provided <code class="notranslate">fixedColor</code>. A minimal code sample can be found <a href="https://gist.github.com/DirkWillem/454f0fa60ede93a6cb40f0208a291e20">here</a></p> <p dir="auto">Also see the following images:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3536557/34083181-492a2b8c-e36c-11e7-8531-5c56061aecda.png"><img width="545" alt="schermafbeelding 2017-12-17 om 20 52 39" src="https://user-images.githubusercontent.com/3536557/34083181-492a2b8c-e36c-11e7-8531-5c56061aecda.png" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3536557/34083183-4ace4edc-e36c-11e7-8048-88ebec838cda.png"><img width="545" alt="schermafbeelding 2017-12-17 om 20 52 50" src="https://user-images.githubusercontent.com/3536557/34083183-4ace4edc-e36c-11e7-8048-88ebec838cda.png" style="max-width: 100%;"></a></p> <h2 dir="auto">Logs</h2> <p dir="auto">N/A</p> <h2 dir="auto">Flutter Doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (on Mac OS X 10.13.1 17B1003, locale nl-NL, channel alpha) • Flutter at /Users/dirk/Developer/flutter/sdk • Framework revision 8f65fec5f5 (5 days ago), 2017-12-12 09:50:14 -0800 • Engine revision edaecdc8b8 • Tools Dart version 1.25.0-dev.11.0 • Engine Dart version 2.0.0-edge.d8ae797298c3a6cf8dc9f4558707bd2672224d3e [✓] Android toolchain - develop for Android devices (Android SDK 26.0.0) • Android SDK at /Users/dirk/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-26, build-tools 26.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [-] iOS toolchain - develop for iOS devices (Xcode 9.2) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.2, Build version 9C40b ✗ libimobiledevice and ideviceinstaller are not installed. To install, run: brew install --HEAD libimobiledevice brew install ideviceinstaller ✗ ios-deploy not installed. To install: brew install ios-deploy • CocoaPods version 1.2.0 [✓] Android Studio (version 2.3) • Android Studio at /Applications/Android Studio.app/Contents • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] IntelliJ IDEA Ultimate Edition (version 2017.3) • Flutter plugin version 20.0.3 • Dart plugin version 173.3727.108 [✓] Connected devices • iPhone X • 9500EA8E-1292-4223-BFFF-1B2134D5C47C • ios • iOS 11.2 (simulator)"><pre class="notranslate"><code class="notranslate">[✓] Flutter (on Mac OS X 10.13.1 17B1003, locale nl-NL, channel alpha) • Flutter at /Users/dirk/Developer/flutter/sdk • Framework revision 8f65fec5f5 (5 days ago), 2017-12-12 09:50:14 -0800 • Engine revision edaecdc8b8 • Tools Dart version 1.25.0-dev.11.0 • Engine Dart version 2.0.0-edge.d8ae797298c3a6cf8dc9f4558707bd2672224d3e [✓] Android toolchain - develop for Android devices (Android SDK 26.0.0) • Android SDK at /Users/dirk/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-26, build-tools 26.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [-] iOS toolchain - develop for iOS devices (Xcode 9.2) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.2, Build version 9C40b ✗ libimobiledevice and ideviceinstaller are not installed. To install, run: brew install --HEAD libimobiledevice brew install ideviceinstaller ✗ ios-deploy not installed. To install: brew install ios-deploy • CocoaPods version 1.2.0 [✓] Android Studio (version 2.3) • Android Studio at /Applications/Android Studio.app/Contents • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] IntelliJ IDEA Ultimate Edition (version 2017.3) • Flutter plugin version 20.0.3 • Dart plugin version 173.3727.108 [✓] Connected devices • iPhone X • 9500EA8E-1292-4223-BFFF-1B2134D5C47C • ios • iOS 11.2 (simulator) </code></pre></div>
1
<h3 dir="auto">Problem description</h3> <p dir="auto">Cannot use more than one MuiThemeProvider, using <code class="notranslate">1.0.0-alpha.22</code>. We use multiple themes at once, but in this alpha version it seems to loose this capability. When we change the theme inner into the tree, the MuiThemeProvider in the upper tree breaks, the classnames are generated normally for the components when using multiple themes, but when the inner MuiThemeProvider changes, it shifts the stylesheets in the upper MuiThemeProvider in the head. It might be related with React Router, having different MuiThemeProvider inside the routes.</p> <h3 dir="auto">Link to minimal working code that reproduces the issue</h3> <p dir="auto">I will prepare an example reproducing the problem.</p> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: 1.0.0-alpha.22</li> <li>React: 15.5.4</li> <li>Browser: Indifrent</li> </ul>
<p dir="auto">Given a case: I have 2 types of a Button, first one with rounded corners, second one without. Now in case I want all buttons inside of some subtree use the second type, I would want to use the MuiThemeProvider.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const theme1 = createMuiTheme({ overrides: { Button: { root: { borderRadius: 10 } } } }) const theme2 = createMuiTheme({ overrides: { Button: { root: { borderRadius: 0 } } } }) class Subtree extends Component { render() { return ( &lt;ThemeProvider theme={theme2}&gt; &lt;Button&gt;Click me hard&lt;/Button&gt; &lt;/ThemeProvider&gt; ) } } class App extends Component { render() { return ( &lt;ThemeProvider theme={theme1}&gt; &lt;Subtree /&gt; &lt;/ThemeProvider&gt; ) } } "><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">theme1</span> <span class="pl-c1">=</span> <span class="pl-en">createMuiTheme</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">overrides</span>: <span class="pl-kos">{</span> <span class="pl-c1">Button</span>: <span class="pl-kos">{</span> <span class="pl-c1">root</span>: <span class="pl-kos">{</span> <span class="pl-c1">borderRadius</span>: <span class="pl-c1">10</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">theme2</span> <span class="pl-c1">=</span> <span class="pl-en">createMuiTheme</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">overrides</span>: <span class="pl-kos">{</span> <span class="pl-c1">Button</span>: <span class="pl-kos">{</span> <span class="pl-c1">root</span>: <span class="pl-kos">{</span> <span class="pl-c1">borderRadius</span>: <span class="pl-c1">0</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-v">Subtree</span> <span class="pl-k">extends</span> <span class="pl-v">Component</span> <span class="pl-kos">{</span> <span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">ThemeProvider</span> <span class="pl-c1">theme</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">theme2</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Button</span><span class="pl-c1">&gt;</span>Click me hard<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Button</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">ThemeProvider</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-v">App</span> <span class="pl-k">extends</span> <span class="pl-v">Component</span> <span class="pl-kos">{</span> <span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">ThemeProvider</span> <span class="pl-c1">theme</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">theme1</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Subtree</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">ThemeProvider</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">In this case, theme2 will overwrite theme1 style sheet.</p>
1
<p dir="auto">I have searched for a while if anyone has experienced this but I haven't found anything on this exact regard.</p> <p dir="auto">I have a vue/cordova application where I perform an axios.all post call where <em>sometimes</em> I get duplicated responses. The times this happend I watch the server logs and I can see that the server is sending distinct values but on google's network tab I see that I don't get the same responses the server is returning. In my tests if the server returns 3 different responses <em>sometimes</em> I get two (or even three) duplicate responses. I have tested in chrome and in firefox.</p> <p dir="auto">This is a stripped down version of my client code (I only removed unnecessary things):</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let solicitudesRequests = [] axios.post(this.endpoint_canal, JSON.stringify(my_object)) .then((response) =&gt; { let autorizaciones = response.data if (autorizaciones !== undefined) { if (!(autorizaciones instanceof Array)) { autorizaciones = [autorizaciones] } autorizaciones.forEach((autorizacion) =&gt; { let another_object = { val1: autorizacion.val1 val2: autorizacion.val2 } solicitudesRequests.push(another_object) }) return axios.all(solicitudesRequests) } }) .then((responses) =&gt; { responses.forEach((response) =&gt; { console.log('response obtained: ', JSON.stringify(response.data)) // here I get duplicated data let registro = response.data if (registro !== undefined) { if (!(registro instanceof Array)) { registro = [registro] } this.solicitudes.push(...registro) } }) }) .catch((exception) =&gt; { console.error(exception) })"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">solicitudesRequests</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-kos">]</span> <span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-en">post</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">endpoint_canal</span><span class="pl-kos">,</span> <span class="pl-c1">JSON</span><span class="pl-kos">.</span><span class="pl-en">stringify</span><span class="pl-kos">(</span><span class="pl-s1">my_object</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-s1">response</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">autorizaciones</span> <span class="pl-c1">=</span> <span class="pl-s1">response</span><span class="pl-kos">.</span><span class="pl-c1">data</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">autorizaciones</span> <span class="pl-c1">!==</span> <span class="pl-c1">undefined</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-kos">(</span><span class="pl-s1">autorizaciones</span> <span class="pl-k">instanceof</span> <span class="pl-v">Array</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">autorizaciones</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-s1">autorizaciones</span><span class="pl-kos">]</span> <span class="pl-kos">}</span> <span class="pl-s1">autorizaciones</span><span class="pl-kos">.</span><span class="pl-en">forEach</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">autorizacion</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">another_object</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">val1</span>: <span class="pl-s1">autorizacion</span><span class="pl-kos">.</span><span class="pl-c1">val1</span> <span class="pl-s1">val2</span>: <span class="pl-s1">autorizacion</span><span class="pl-kos">.</span><span class="pl-c1">val2</span> <span class="pl-kos">}</span> <span class="pl-s1">solicitudesRequests</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s1">another_object</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">return</span> <span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-en">all</span><span class="pl-kos">(</span><span class="pl-s1">solicitudesRequests</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">responses</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">responses</span><span class="pl-kos">.</span><span class="pl-en">forEach</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">response</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'response obtained: '</span><span class="pl-kos">,</span> <span class="pl-c1">JSON</span><span class="pl-kos">.</span><span class="pl-en">stringify</span><span class="pl-kos">(</span><span class="pl-s1">response</span><span class="pl-kos">.</span><span class="pl-c1">data</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-c">// here I get duplicated data</span> <span class="pl-k">let</span> <span class="pl-s1">registro</span> <span class="pl-c1">=</span> <span class="pl-s1">response</span><span class="pl-kos">.</span><span class="pl-c1">data</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">registro</span> <span class="pl-c1">!==</span> <span class="pl-c1">undefined</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-kos">(</span><span class="pl-s1">registro</span> <span class="pl-k">instanceof</span> <span class="pl-v">Array</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">registro</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-s1">registro</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">solicitudes</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span>...<span class="pl-s1">registro</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-en">catch</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">exception</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">error</span><span class="pl-kos">(</span><span class="pl-s1">exception</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <p dir="auto">As I said the server is returning different responses but I get duplicated data, what could be the problem here?</p> <p dir="auto">Thank you!</p>
<p dir="auto"><strong>Describe the bug</strong><br> axios.post sends duplicate POST request and ignores the first response, only receives the second response.</p> <p dir="auto"><strong>To Reproduce</strong><br> I don't know how to reproduce it since it's occurred.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export const axiosAfterLoginRequest = (properties = {}, defaultConfig = {}) =&gt; ( config = {} ) =&gt; { const { accessTokenKey = &quot;&quot;, accessTokenValue, cookieName = STORAGE.USER_TOKEN } = properties const configMerge = merge(cloneDeep(defaultConfig), config) const headers = get(configMerge, &quot;headers&quot;, {}) const token = getLocalItem(cookieName) const accessToken = !isNil(accessTokenValue) ? accessTokenValue : get(token, accessTokenKey) if (!isNil(accessToken) &amp;&amp; !isEmpty(accessToken)) { headers.Authorization = `Bearer ${accessToken}` } return { ...configMerge, headers, ...timestampConfig() } } const apiInstance = axios.create({ baseURL: API_URL }) const request = axiosAfterLoginRequest( { accessTokenKey: &quot;access_token&quot; }, { headers: { post: { &quot;Content-Type&quot;: &quot;application/json&quot; } } } ) apiInstance.interceptors.request.use(request) export const submitApi = (payload) =&gt; apiInstance.post(&quot;url&quot;), payload) export function* submitSaga(action) { try { const response = yield call(submitApi, action.payload) yield put({type: &quot;success&quot;}) } catch (e) { yield put({type: &quot;error&quot;}) } }"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-en">axiosAfterLoginRequest</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">properties</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s1">defaultConfig</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span> <span class="pl-s1">config</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> accessTokenKey <span class="pl-c1">=</span> <span class="pl-s">""</span><span class="pl-kos">,</span> accessTokenValue<span class="pl-kos">,</span> cookieName <span class="pl-c1">=</span> <span class="pl-c1">STORAGE</span><span class="pl-kos">.</span><span class="pl-c1">USER_TOKEN</span> <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">properties</span> <span class="pl-k">const</span> <span class="pl-s1">configMerge</span> <span class="pl-c1">=</span> <span class="pl-en">merge</span><span class="pl-kos">(</span><span class="pl-en">cloneDeep</span><span class="pl-kos">(</span><span class="pl-s1">defaultConfig</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">config</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">headers</span> <span class="pl-c1">=</span> <span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">configMerge</span><span class="pl-kos">,</span> <span class="pl-s">"headers"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">token</span> <span class="pl-c1">=</span> <span class="pl-en">getLocalItem</span><span class="pl-kos">(</span><span class="pl-s1">cookieName</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">accessToken</span> <span class="pl-c1">=</span> <span class="pl-c1">!</span><span class="pl-en">isNil</span><span class="pl-kos">(</span><span class="pl-s1">accessTokenValue</span><span class="pl-kos">)</span> ? <span class="pl-s1">accessTokenValue</span> : <span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">token</span><span class="pl-kos">,</span> <span class="pl-s1">accessTokenKey</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">isNil</span><span class="pl-kos">(</span><span class="pl-s1">accessToken</span><span class="pl-kos">)</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-c1">!</span><span class="pl-en">isEmpty</span><span class="pl-kos">(</span><span class="pl-s1">accessToken</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">headers</span><span class="pl-kos">.</span><span class="pl-c1">Authorization</span> <span class="pl-c1">=</span> <span class="pl-s">`Bearer <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">accessToken</span><span class="pl-kos">}</span></span>`</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-kos">{</span> ...<span class="pl-s1">configMerge</span><span class="pl-kos">,</span> headers<span class="pl-kos">,</span> ...<span class="pl-en">timestampConfig</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">const</span> <span class="pl-s1">apiInstance</span> <span class="pl-c1">=</span> <span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">baseURL</span>: <span class="pl-c1">API_URL</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">request</span> <span class="pl-c1">=</span> <span class="pl-en">axiosAfterLoginRequest</span><span class="pl-kos">(</span> <span class="pl-kos">{</span> <span class="pl-c1">accessTokenKey</span>: <span class="pl-s">"access_token"</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">headers</span>: <span class="pl-kos">{</span> <span class="pl-c1">post</span>: <span class="pl-kos">{</span> <span class="pl-s">"Content-Type"</span>: <span class="pl-s">"application/json"</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">)</span> <span class="pl-s1">apiInstance</span><span class="pl-kos">.</span><span class="pl-c1">interceptors</span><span class="pl-kos">.</span><span class="pl-c1">request</span><span class="pl-kos">.</span><span class="pl-en">use</span><span class="pl-kos">(</span><span class="pl-s1">request</span><span class="pl-kos">)</span> <span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-en">submitApi</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">payload</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">apiInstance</span><span class="pl-kos">.</span><span class="pl-en">post</span><span class="pl-kos">(</span><span class="pl-s">"url"</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">payload</span><span class="pl-kos">)</span> <span class="pl-k">export</span> <span class="pl-k">function</span><span class="pl-c1">*</span> <span class="pl-s1">submitSaga</span><span class="pl-kos">(</span><span class="pl-s1">action</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">try</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">response</span> <span class="pl-c1">=</span> <span class="pl-k">yield</span> <span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-en">submitApi</span><span class="pl-kos">,</span> <span class="pl-s1">action</span><span class="pl-kos">.</span><span class="pl-c1">payload</span><span class="pl-kos">)</span> <span class="pl-k">yield</span> <span class="pl-en">put</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">type</span>: <span class="pl-s">"success"</span><span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-k">catch</span> <span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">yield</span> <span class="pl-en">put</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">type</span>: <span class="pl-s">"error"</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 submit function above is only called once, while the axios.post() is called twice. I have log for my system, in subject <em><strong>Additional context/Screenshots</strong></em></p> <p dir="auto"><strong>Expected behavior</strong><br> The request is only sent once.</p> <p dir="auto"><strong>Environment:</strong></p> <ul dir="auto"> <li>Axios Version [e.g. 0.19.0]</li> <li>OS: [e.g. Android 10; SM-G970U]</li> <li>Browser [e.g. Chrome]</li> <li>Browser Version [e.g. 80]</li> <li>Additional Library Versions [e.g. React 16.8, redux 4.0.1 react-redux 7.1.0 redux-saga 1.0.3 ]</li> </ul> <p dir="auto"><strong>Additional context/Screenshots</strong><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2849568/76825630-10b09580-684d-11ea-8b4e-2d28b5e5afd3.png"><img width="1021" alt="Screen Shot 2563-03-17 at 12 26 08" src="https://user-images.githubusercontent.com/2849568/76825630-10b09580-684d-11ea-8b4e-2d28b5e5afd3.png" style="max-width: 100%;"></a></p> <p dir="auto">You will see <code class="notranslate">request.query.t</code> for first and second time. it same requested.</p>
0
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>no</td> </tr> <tr> <td>Feature request?</td> <td>yes</td> </tr> <tr> <td>BC Break report?</td> <td>?</td> </tr> <tr> <td>RFC?</td> <td>yes</td> </tr> <tr> <td>Symfony version</td> <td>3.2</td> </tr> </tbody> </table> <p dir="auto">The system detects automatically the name of an adder or remover of a collection by an ENGLISH logic I guess. It relates a dependency to a human langage and not PHP... Moreover, I suppose it forces an execution time by parsing words or something else.</p> <p dir="auto">For greater flexibility, it would be a good idea to let the developper what the developper has to do (understand and write its own HUMAN langage)... In my case, I have to use some specific French words for a collection, and my logic is broken by an english one. I think we would be able to set the adder and remover name in the annotation. By default, an english logic could be applyed, why not ?</p>
<p dir="auto">The <code class="notranslate">PropertyPath</code> class currently makes a list of assumptions:</p> <h5 dir="auto">1. Objects are treated by reference</h5> <p dir="auto">When the path <code class="notranslate">author.name</code> is modified, the following methods are called:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="getAuthor() setName() // on the author"><pre class="notranslate"><code class="notranslate">getAuthor() setName() // on the author </code></pre></div> <p dir="auto">Note that <code class="notranslate">setAuthor()</code> is not called.</p> <h5 dir="auto">2. Adders and removers are used if they exist</h5> <p dir="auto">If a collection is written into the path <code class="notranslate">tags</code> and the methods <code class="notranslate">addTag()</code> and <code class="notranslate">removeTag()</code> exist, these are used to merge into the old collection instead of accessing the old collection directly via its <code class="notranslate">ArrayAccess</code> interface. The following methods are called:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="getTags() addTag(...) // instead of $tags[] = ... removeTag(...) // instead of unset($tags[...])"><pre class="notranslate"><code class="notranslate">getTags() addTag(...) // instead of $tags[] = ... removeTag(...) // instead of unset($tags[...]) </code></pre></div> <h5 dir="auto">3. Adders and removers follow English singularization rules</h5> <p dir="auto">If a property path is called <code class="notranslate">children</code>, the guessed adders and removers are <code class="notranslate">addChild()</code> and <code class="notranslate">removeChild()</code>.</p> <h5 dir="auto">Limitations</h5> <p dir="auto">The above assumptions do not hold in all applications:</p> <ol dir="auto"> <li>Sometimes setters should be called (no by-reference handling, see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="10616028" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/6965" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/6965/hovercard" href="https://github.com/symfony/symfony/issues/6965">#6965</a>)</li> <li>Sometimes elements should be written directly into collections even though adders/removers exist (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="4349742" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/4158" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/4158/hovercard" href="https://github.com/symfony/symfony/issues/4158">#4158</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6216629" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/5257" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/5257/hovercard" href="https://github.com/symfony/symfony/pull/5257">#5257</a>)</li> <li>For other languages than English, singularization does not work</li> </ol> <p dir="auto">So, these assumptions should be made configurable. The challenge is how to build this API in an intuitive way.</p> <h5 dir="auto">Alternative 1: Option arrays</h5> <p dir="auto">The first alternative is to pass the options in an array separately from the property path. For example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Path: artikel.stichwörter (= article.tags) Options: array( 'artikel' =&gt; array( 'by_reference' =&gt; false, ), 'artikel.stichwörter' =&gt; array( 'use_adders' =&gt; false, // or 'singular' =&gt; 'stichwort', ), )"><pre class="notranslate"><code class="notranslate">Path: artikel.stichwörter (= article.tags) Options: array( 'artikel' =&gt; array( 'by_reference' =&gt; false, ), 'artikel.stichwörter' =&gt; array( 'use_adders' =&gt; false, // or 'singular' =&gt; 'stichwort', ), ) </code></pre></div> <h5 dir="auto">Alternative 2: Path flags</h5> <p dir="auto">The second alternative is to build the configuration options into the path:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="artikel{!byref}.stichwörter{!adders} // or artikel{!byref}.stichwörter{singular=stichwort}"><pre class="notranslate"><code class="notranslate">artikel{!byref}.stichwörter{!adders} // or artikel{!byref}.stichwörter{singular=stichwort} </code></pre></div> <h5 dir="auto">Alternative 3: Your suggestions</h5> <p dir="auto">Do you have any other ideas? What approach do you prefer?</p>
1
<p dir="auto">I'm beginning to use TypeScript to replace JS in my VS2015 projects, but I can't seem to figure out what is happening in a React project. I converted the JSX to TSX without any problems, but when I try to edit the 'render' method it seems as if Intellisense is not able to parse the HTML:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6384219/10410764/dd2d7df0-6f21-11e5-8475-887b6b689741.png"><img src="https://cloud.githubusercontent.com/assets/6384219/10410764/dd2d7df0-6f21-11e5-8475-887b6b689741.png" alt="tsx1" style="max-width: 100%;"></a><br> (VS correctly identifies the beginning <code class="notranslate">'&lt;div&gt;'</code>)</p> <p dir="auto">But when I try to type the closing <code class="notranslate">'&lt;div&gt;'</code>, Intellisense does not show the correct option:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6384219/10410791/a4c78a7c-6f22-11e5-93ad-8676ce32a8b4.png"><img src="https://cloud.githubusercontent.com/assets/6384219/10410791/a4c78a7c-6f22-11e5-93ad-8676ce32a8b4.png" alt="tsx2" style="max-width: 100%;"></a></p> <p dir="auto">Am I missing something? If I "force" the editor to produce the correct HTML it compiles without errors, but during the editing I keep getting autocomplete errors.</p> <p dir="auto">Thanks in advance.</p>
<p dir="auto">We are able to give useful completion in opening tag of jsx element. We should be doing the same thing for closing tag. It will also be helpful to insert appropriate name when users type <code class="notranslate">&lt;/</code></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/489742/10259004/6a196a90-6918-11e5-9704-af809d1f8ce7.gif"><img src="https://cloud.githubusercontent.com/assets/489742/10259004/6a196a90-6918-11e5-9704-af809d1f8ce7.gif" alt="autocompletioninjsxelement" data-animated-image="" style="max-width: 100%;"></a></p> <p dir="auto">In this case, the completion in the close tag should show ` and complete with that.</p>
1
<p dir="auto">iOS:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5479/16933186/64c21098-4d00-11e6-9bc2-0897bd71b988.png"><img src="https://cloud.githubusercontent.com/assets/5479/16933186/64c21098-4d00-11e6-9bc2-0897bd71b988.png" alt="screen shot 2016-07-18 at 3 57 11 pm" style="max-width: 100%;"></a></p> <p dir="auto">Android:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5479/16933233/b2de07c8-4d00-11e6-82c1-f4c15b9e60a0.png"><img src="https://cloud.githubusercontent.com/assets/5479/16933233/b2de07c8-4d00-11e6-82c1-f4c15b9e60a0.png" alt="screen shot 2016-07-18 at 3 59 42 pm" style="max-width: 100%;"></a></p> <p dir="auto">Notice how there is a "Share..." option after text has been selected. That brings up the share panel.</p>
<p dir="auto"><a href="https://www.google.com/design/spec/patterns/selection.html#selection-text-selection" rel="nofollow">The spec</a> calls for a menu in the "cut/copy/paste" toolbar with additional options for search/share/translate. It's unclear to me whether these 3 extra options are fixed, or whether the application can decide which options to provide.</p> <p dir="auto">In any case, we have no support for the <code class="notranslate">more</code> menu. We'll need to add it, along with the transition animation.</p>
1
<p dir="auto">When a ngModel is attached to a HTML5 color input the resulting variable seems to lag one check behind. meaning if you listen for the input to be changed and then log the value the first ngDoCheck or ngAfterContentChecked returns the previous value of the color not the current value.<br> A example of this is this code</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(function(app){ app.testing=ng.core.Component({ selector:&quot;testing&quot;, template:&quot;&lt;input type='color' [(ngModel)]='value' (change)='changeupd()'/&gt;&quot; }).Class({ constructor:[function(){ this.value=&quot;#ffffff&quot;; this.changed=false; this.changeupd=function(){ this.changed=true; }; }], ngAfterContentChecked:function(){ if(this.changed){ console.log(this.value); this.changed=false; } }, }); })(window.app||(window.app={}));"><pre class="notranslate"><code class="notranslate">(function(app){ app.testing=ng.core.Component({ selector:"testing", template:"&lt;input type='color' [(ngModel)]='value' (change)='changeupd()'/&gt;" }).Class({ constructor:[function(){ this.value="#ffffff"; this.changed=false; this.changeupd=function(){ this.changed=true; }; }], ngAfterContentChecked:function(){ if(this.changed){ console.log(this.value); this.changed=false; } }, }); })(window.app||(window.app={})); </code></pre></div> <p dir="auto">the result of this code is <code class="notranslate">#ffffff<span class="ml-1 d-inline-block border circle color-border-subtle" style="background-color: #ffffff; height: 8px; width: 8px;"></span></code> for the first console.log and then whatever the previous color was for all subsequent changes</p> <p dir="auto">this creates a problem for any programs that run specific functions only after specific inputs are changed. i have not seen that problem with any other type of input except the html5 color</p> <p dir="auto">Environment</p> <ul dir="auto"> <li>Angular version: 2.0.0-beta.7 and 2.0.0-beta.8</li> <li>Browser: Chrome 49.0.2623.75 m</li> <li>Language: ES5</li> </ul>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> Two way data binding is not working after element uses jQuery plugin</p> <p dir="auto"><strong>Expected behavior</strong><br> It should work</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> I have posted my scenario on StackOverflow<br> <a href="http://stackoverflow.com/questions/42973549/two-way-binding-not-working-in-angular-2" rel="nofollow">http://stackoverflow.com/questions/42973549/two-way-binding-not-working-in-angular-2</a></p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> Windows 10, Visual Studio 2017 Community Edition, NPM, IIS</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 2.0.X<br> Getting 2.4.9 on browser ng-version attribute.<br> In package json:<br> "@angular/core": "~2.4.0"</p> </li> <li> <p dir="auto"><strong>Browser:</strong> [all | Chrome XX | Firefox XX ]</p> </li> </ul> <ul dir="auto"> <li> <p dir="auto"><strong>Language:</strong> [all | TypeScript 2.2.1 | ES6/7 | ES5]</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = 7.0.0</p> </li> </ul>
0
<h2 dir="auto">Feature request</h2> <p dir="auto">I am not 100% sure if this still fits the scope of the webpack project.</p> <p dir="auto">I am working on the topic "Expanding Single Page Apps into multiple Browser Windows", which can look like this:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1177434/84753491-58b39580-afbf-11ea-83f4-fcd3b17bd768.png"><img src="https://user-images.githubusercontent.com/1177434/84753491-58b39580-afbf-11ea-83f4-fcd3b17bd768.png" alt="Screenshot 2020-06-15 at 09 03 42" style="max-width: 100%;"></a></p> <p dir="auto">Quick background info:<br> Apps we create using neo.mjs just import the main thread. The main thread creates the app, data &amp; vdom workers. The only important part here is the app worker: you define which app (entrypoint) you want to use and the app worker dynamically imports it.</p> <p dir="auto">For the dist versions which rely on webpack, webpack has no chance to know what could get imported, so I created build specific entrypoints.<br> Example:<br> <a href="https://github.com/neomjs/neo/blob/master/buildScripts/webpack/entrypoints/myApps/Covid.mjs">https://github.com/neomjs/neo/blob/master/buildScripts/webpack/entrypoints/myApps/Covid.mjs</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import '../../../../src/worker/App.mjs'; import '../../../../apps/covid/app.mjs';"><pre class="notranslate"><code class="notranslate">import '../../../../src/worker/App.mjs'; import '../../../../apps/covid/app.mjs'; </code></pre></div> <p dir="auto">This cheating a little bit, since inside the dist versions, the import is no longer dynamic.<br> Works fine though.</p> <p dir="auto">Now for the multi Browser Window apps, i needed to switch the App (,Data &amp; VDom) workers into SharedWorkers.<br> It does work fine using webpack based builds as long as you use only 1 app:</p> <p dir="auto">Online Demo: <a href="https://neomjs.github.io/pages/node_modules/neo.mjs/dist/development/apps/sharedcovid/index.html#mainview=table" rel="nofollow">https://neomjs.github.io/pages/node_modules/neo.mjs/dist/development/apps/sharedcovid/index.html#mainview=table</a></p> <p dir="auto">More background infos:<br> <a href="https://medium.com/swlh/neo-mjs-v1-2-5-support-for-sharedworkers-including-firefox-b31f144cea3f?source=friends_link&amp;sk=6bd4d0beb0e095c388153ce8f06aa76f" rel="nofollow">https://medium.com/swlh/neo-mjs-v1-2-5-support-for-sharedworkers-including-firefox-b31f144cea3f?source=friends_link&amp;sk=6bd4d0beb0e095c388153ce8f06aa76f</a></p> <p dir="auto">I got a version using multiple Apps running directly inside Chrome (using JS modules inside the browser) and it would be nice if it would be possible to achieve the same result with a webpack based build.</p> <p dir="auto">Now this is the tricky part:</p> <p dir="auto">SharedWorkers <strong>have</strong> to use the same file as an entry point (otherwise the browser will spawn new SW instances, which makes using them pointless).</p> <p dir="auto">To make this happen, we need to use separate webpack based builds (Shared AppWorker VS apps), which can work in combination.</p> <p dir="auto"><strong>What is the expected behavior?</strong><br> <a href="https://www.youtube.com/watch?v=RslY-e-f_qc" rel="nofollow">https://www.youtube.com/watch?v=RslY-e-f_qc</a></p> <p dir="auto">It would be nice if this app could run the same way it does in dev mode (without any builds).</p> <p dir="auto"><strong>What is motivation or use case for adding/changing the behavior?</strong><br> SharedWorkers are a big deal, even the webkit team is finally thinking about supporting them:<br> <a href="https://bugs.webkit.org/show_bug.cgi?id=149850" rel="nofollow">https://bugs.webkit.org/show_bug.cgi?id=149850</a></p> <p dir="auto">This has a big potential to improve the way, UI development works in general.</p> <p dir="auto"><strong>How should this be implemented in your opinion?</strong><br> I have been thinking about this quite a bit.</p> <p dir="auto">For the neo.mjs context, we should create a separate webpack based build just for sharedthe app worker (not including apps).</p> <p dir="auto">Then, to build apps, we need separate builds (entry points for builds).</p> <p dir="auto">I was thinking about something like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import '../../../../src/worker/App.mjs'; import(/* webpackChunkName: 'apps/sharedcovid/app' */ '../../../../apps/sharedcovid/app.mjs'); import(/* webpackChunkName: 'apps/sharedcovid_chart/app' */ '../../../../apps/sharedcovid_chart/app.mjs'); import(/* webpackChunkName: 'apps/sharedcovid_helix/app' */ '../../../../apps/sharedcovid_helix/app.mjs'); import(/* webpackChunkName: 'apps/sharedcovid_map/app' */ '../../../../apps/sharedcovid_map/app.mjs');"><pre class="notranslate"><code class="notranslate">import '../../../../src/worker/App.mjs'; import(/* webpackChunkName: 'apps/sharedcovid/app' */ '../../../../apps/sharedcovid/app.mjs'); import(/* webpackChunkName: 'apps/sharedcovid_chart/app' */ '../../../../apps/sharedcovid_chart/app.mjs'); import(/* webpackChunkName: 'apps/sharedcovid_helix/app' */ '../../../../apps/sharedcovid_helix/app.mjs'); import(/* webpackChunkName: 'apps/sharedcovid_map/app' */ '../../../../apps/sharedcovid_map/app.mjs'); </code></pre></div> <p dir="auto">This way, the app worker will get parsed as well for each app build to ensure that we don't duplicate modules inside the app worker and apps (especially duplicating the IdGenerator would break a lot).</p> <p dir="auto">We can adjust output: {filename: chunkData =&gt; {}}</p> <p dir="auto">to save the app worker output itself for an app build into a not used dummy chunk (e.g. 0.js or tmp.js).</p> <p dir="auto">we can use split chunks for app related code this way (multiple dynamic imports which are supposed to not duplicate code).</p> <p dir="auto">I tried this approach, but am getting errors. E.g. since we are not using the "real" entry point, the build app worker output is not able to pick up the app chunks (<strong>webpack_require</strong>.e is undefined, since the separate app worker output is no longer exposing dynamic imports to webpack).</p> <p dir="auto"><strong>Are you willing to work on this yourself?</strong><br> I don't have much time at the moment (still polishing the content of the first shared workers demo to expand SPAs into multiple browser windows), but am willing to help a bit and can definitely provide more input if needed.</p>
<h2 dir="auto">Feature request</h2> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">For TypeScript's new <code class="notranslate">nodenext</code> module resolution (which is still in nightly build), we are required to write a full file name including extension like:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {foo} from './foo.js';"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-s1">foo</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./foo.js'</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Even though we have a source code <code class="notranslate">foo.ts</code> or <code class="notranslate">foo.tsx</code>, the file extension on import statement is <code class="notranslate">.js</code>, this results webpack to fail with errors like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error in ./src/index.tsx Module not found: Error: Can't resolve './Boundary.js' in '/Users/otakustay/Develop/react-suspense-boundary/src'"><pre class="notranslate"><code class="notranslate">error in ./src/index.tsx Module not found: Error: Can't resolve './Boundary.js' in '/Users/otakustay/Develop/react-suspense-boundary/src' </code></pre></div> <p dir="auto"><strong>What is motivation or use case for adding/changing the behavior?</strong></p> <p dir="auto">We need to satisfy TypeScript's coming <code class="notranslate">nodenext</code> module resolution and be compatible with pure ESM resolve rules</p> <p dir="auto"><strong>How should this be implemented in your opinion?</strong></p> <p dir="auto">Make <code class="notranslate">.js</code> a special case that on resolve webpack could remove the <code class="notranslate">.js</code> part and then do a normal resolve</p> <p dir="auto">Another solution is to make <code class="notranslate">resolve.fallback</code> a function so that we can remove <code class="notranslate">.js</code> part before webpack do it's resolve</p> <p dir="auto"><strong>Are you willing to work on this yourself?</strong></p> <p dir="auto">not familiar with this</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: Microsoft Windows [Version 10.0.18980.1000] Windows Terminal version (if applicable): 0.4.2382.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18980.1000] Windows Terminal version (if applicable): 0.4.2382.0 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Make sure you have multiple monitors (mine just happen to be in portrait mode)</li> <li>Drag windows terminal to top of monitor.</li> <li>Window is now maximized</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">No overflow on surrounding monitors</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Overflow on surrounding monitors. See image below.</p> <p dir="auto">Note: this image is of the left side of the Terminal. The black bar is the boundary between monitors.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11050425/64570680-28dfaf00-d316-11e9-866e-139bf74b3c40.png"><img src="https://user-images.githubusercontent.com/11050425/64570680-28dfaf00-d316-11e9-866e-139bf74b3c40.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Able to group profiles</p> <p dir="auto">All profiles are shown in the one list. It would be much more convenient to able to group some profiles with common label and show them in sub-lists.</p>
0
<p dir="auto">This would help encourage us to have complete API docs.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pcwalton/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pcwalton">@pcwalton</a> says it might be good to wait until we have per-item exports, because export currently exports a lot of things due to having four namespaces. See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3362654" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/1893" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/1893/hovercard" href="https://github.com/rust-lang/rust/issues/1893">#1893</a>.</p>
<p dir="auto">I would like to see a lint mode that could warn on missing documentations, hopefully by type. Something like <code class="notranslate">-Wdoc-trait</code> or <code class="notranslate">-Wdoc-struct</code> to warn on missing docs on traits or structs, etc.</p>
1
<p dir="auto">From what I can see from issues like <a href="https://github.com/flutter/flutter/issues/467" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/467/hovercard">this</a> <strong>two finger gestures</strong> like pan or swipe are not supported. This is a blocker for developers wanting to develop custom UI interactions that use multi finger gestures.</p>
<p dir="auto">Does the Semantics class in Flutter provide any way to map Widgets to an accessibilityIdentifier on iOS side? We rely on Appium for testing and the Flutter driver is not sufficient for meeting our testing needs. Is there any plan on the road-map for Flutter to support this soon?</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 <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Electron Version</h3> <p dir="auto">v15.0.0-nightly.20210623</p> <h3 dir="auto">What operating system are you using?</h3> <p dir="auto">macOS</p> <h3 dir="auto">Operating System Version</h3> <p dir="auto">Big Sur</p> <h3 dir="auto">What arch are you using?</h3> <p dir="auto">x64</p> <h3 dir="auto">Last Known Working Electron version</h3> <p dir="auto">v15.0.0-nightly.20210622</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">When <code class="notranslate">transparent: true</code> is set in BrowserWindow constructor options, the resulting window is transparent.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">It is opaque white, though the titlebar correctly does not show.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2036040/125655542-e65369bf-28a5-4005-a333-5ae55effedfe.png"><img width="821" alt="Screen Shot 2021-07-14 at 9 06 06 AM" src="https://user-images.githubusercontent.com/2036040/125655542-e65369bf-28a5-4005-a333-5ae55effedfe.png" style="max-width: 100%;"></a></p> <h3 dir="auto">Testcase Gist URL</h3> <p dir="auto"><a href="https://gist.github.com/b52f026c763057f97f745fade82758fd">https://gist.github.com/b52f026c763057f97f745fade82758fd</a></p> <h3 dir="auto">Additional Information</h3> <p dir="auto">Bisected to <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/electron/electron/commit/b8261f15916eb94428d5672716f85c56720b1501/hovercard" href="https://github.com/electron/electron/commit/b8261f15916eb94428d5672716f85c56720b1501"><tt>b8261f1</tt></a>, and from within the Chromium roll to <a href="https://chromium-review.googlesource.com/c/chromium/src/+/2695928" rel="nofollow">this CL</a></p>
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Electron Version</h3> <p dir="auto">14.0.0-beta.12</p> <h3 dir="auto">What operating system are you using?</h3> <p dir="auto">Windows</p> <h3 dir="auto">Operating System Version</h3> <p dir="auto">10.0.19042 Build 19042</p> <h3 dir="auto">What arch are you using?</h3> <p dir="auto">x64</p> <h3 dir="auto">Last Known Working Electron version</h3> <p dir="auto">13</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Window should be transparent</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">Open a window with transparency enabled and delete the dom, the window will be white instead of transparent.<br> <strong>Also seems like settings the backgroundColor property has no longer an effect.</strong> I always see a white window</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const {app, BrowserWindow} = require('electron') const path = require(&quot;path&quot;); function createWindow () { const mainWindow = new BrowserWindow({ transparent: true, frame: false, }) mainWindow.loadURL('https://example.com') mainWindow.webContents.openDevTools() } app.whenReady().then(createWindow)"><pre class="notranslate"><code class="notranslate">const {app, BrowserWindow} = require('electron') const path = require("path"); function createWindow () { const mainWindow = new BrowserWindow({ transparent: true, frame: false, }) mainWindow.loadURL('https://example.com') mainWindow.webContents.openDevTools() } app.whenReady().then(createWindow) </code></pre></div> <h3 dir="auto">Testcase Gist URL</h3> <p dir="auto"><a href="https://gist.github.com/e124340107f6c4a3ade8b36d98a16b9a">https://gist.github.com/e124340107f6c4a3ade8b36d98a16b9a</a></p> <h3 dir="auto">Additional Information</h3> <p dir="auto"><em>No response</em></p>
1
<p dir="auto">Code folding seems to break if comments are placed at the very beginning of an indented line, such as:</p> <div class="highlight highlight-source-ruby notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def customized_tools require 'uglifier' @page_module = &quot;application&quot; @page_submodule = &quot;tools&quot; @qp_id = current_user.token @qp_id = 'ERROR' if !@qp_id # qp = ActionController::Base.helpers.asset_path &quot;qp.js&quot; qp = &quot;assets/qp.js&quot; # Rails.logger.debug &quot;Asset: #{qp}&quot; bm = File.read(&quot;#{Rails.root}/support/bm.js&quot;)"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">customized_tools</span> <span class="pl-en">require</span> <span class="pl-s">'uglifier'</span> <span class="pl-c1">@page_module</span> <span class="pl-c1">=</span> <span class="pl-s">"application"</span> <span class="pl-c1">@page_submodule</span> <span class="pl-c1">=</span> <span class="pl-s">"tools"</span> <span class="pl-c1">@qp_id</span> <span class="pl-c1">=</span> <span class="pl-en">current_user</span><span class="pl-kos">.</span><span class="pl-en">token</span> <span class="pl-c1">@qp_id</span> <span class="pl-c1">=</span> <span class="pl-s">'ERROR'</span> <span class="pl-k">if</span> !<span class="pl-c1">@qp_id</span> <span class="pl-c"># qp = ActionController::Base.helpers.asset_path "qp.js"</span> <span class="pl-s1">qp</span> <span class="pl-c1">=</span> <span class="pl-s">"assets/qp.js"</span> <span class="pl-c"># Rails.logger.debug "Asset: #{qp}"</span> <span class="pl-s1">bm</span> <span class="pl-c1">=</span> <span class="pl-v">File</span><span class="pl-kos">.</span><span class="pl-en">read</span><span class="pl-kos">(</span><span class="pl-s">"<span class="pl-s1"><span class="pl-kos">#{</span><span class="pl-v">Rails</span><span class="pl-kos">.</span><span class="pl-en">root</span><span class="pl-kos">}</span></span>/support/bm.js"</span><span class="pl-kos">)</span></pre></div> <p dir="auto">Whereas changing the comment start location seems to fix it:</p> <div class="highlight highlight-source-ruby notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def customized_tools require 'uglifier' @page_module = &quot;application&quot; @page_submodule = &quot;tools&quot; @qp_id = current_user.token @qp_id = 'ERROR' if !@qp_id # qp = ActionController::Base.helpers.asset_path &quot;qp.js&quot; qp = &quot;assets/qp.js&quot; # Rails.logger.debug &quot;Asset: #{qp}&quot; bm = File.read(&quot;#{Rails.root}/support/bm.js&quot;)"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">customized_tools</span> <span class="pl-en">require</span> <span class="pl-s">'uglifier'</span> <span class="pl-c1">@page_module</span> <span class="pl-c1">=</span> <span class="pl-s">"application"</span> <span class="pl-c1">@page_submodule</span> <span class="pl-c1">=</span> <span class="pl-s">"tools"</span> <span class="pl-c1">@qp_id</span> <span class="pl-c1">=</span> <span class="pl-en">current_user</span><span class="pl-kos">.</span><span class="pl-en">token</span> <span class="pl-c1">@qp_id</span> <span class="pl-c1">=</span> <span class="pl-s">'ERROR'</span> <span class="pl-k">if</span> !<span class="pl-c1">@qp_id</span> <span class="pl-c"># qp = ActionController::Base.helpers.asset_path "qp.js"</span> <span class="pl-s1">qp</span> <span class="pl-c1">=</span> <span class="pl-s">"assets/qp.js"</span> <span class="pl-c"># Rails.logger.debug "Asset: #{qp}"</span> <span class="pl-s1">bm</span> <span class="pl-c1">=</span> <span class="pl-v">File</span><span class="pl-kos">.</span><span class="pl-en">read</span><span class="pl-kos">(</span><span class="pl-s">"<span class="pl-s1"><span class="pl-kos">#{</span><span class="pl-v">Rails</span><span class="pl-kos">.</span><span class="pl-en">root</span><span class="pl-kos">}</span></span>/support/bm.js"</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">Using the following PHP file:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;?php class Test { public function test() { // breaks folding } }"><pre class="notranslate"><span class="pl-ent">&lt;?php</span> <span class="pl-k">class</span> <span class="pl-v">Test</span> { <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">test</span>() { <span class="pl-c">// breaks folding</span> } }</pre></div> <p dir="auto">Attempting to fold the class results in a fold up to the comment.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1759837/4135590/8018824a-3377-11e4-85a9-59d2a9b5e22d.png"><img src="https://cloud.githubusercontent.com/assets/1759837/4135590/8018824a-3377-11e4-85a9-59d2a9b5e22d.png" alt="screen shot 2014-09-03 at 15 34 54" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1759837/4135634/f2612a96-3377-11e4-935e-6ee3f8b486c5.png"><img src="https://cloud.githubusercontent.com/assets/1759837/4135634/f2612a96-3377-11e4-935e-6ee3f8b486c5.png" alt="screen shot 2014-09-03 at 15 37 58" style="max-width: 100%;"></a></p> <p dir="auto">It seems like using any character other than whitespace at the start of the line will cause the fold to break.</p> <p dir="auto">Atom 0.124.0 in safe mode, btw.</p>
1
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.2.3</p> <h3 dir="auto">What happened</h3> <p dir="auto">Following <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1058203671" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/19699" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/19699/hovercard" href="https://github.com/apache/airflow/issues/19699">#19699</a>, we decided in February 2022 to implement a watchdog to clear stuck-in-queued tasks by failing the DAGRun and creating a new DAGRun to start fresh. This had the unintended side-effect to keep those tasks in queued because we did not modify their state alongside failing the DAGRun with stuck-in-queued tasks.</p> <p dir="auto">Failing a DAGRun via the API:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="res = requests.patch( f&quot;{AIRFLOW_HOST}/api/v1/dags/{dag_id}/dagRuns/{dag_run_id}&quot;, headers=headers, auth=auth, data=json.dumps({&quot;state&quot;: &quot;failed&quot;}), )"><pre class="notranslate"><code class="notranslate">res = requests.patch( f"{AIRFLOW_HOST}/api/v1/dags/{dag_id}/dagRuns/{dag_run_id}", headers=headers, auth=auth, data=json.dumps({"state": "failed"}), ) </code></pre></div> <p dir="auto">does not update the state of queued tasks that are part of said DagRun, which over time can result in the scheduler tasks slots (max_active_tasks) to fill up and clog the Dag.</p> <p dir="auto">Full explanation can be found here:</p> <p dir="auto"><a href="https://www.loom.com/share/f44d43562ae64626994b3e1d22d0fdd4" rel="nofollow">https://www.loom.com/share/f44d43562ae64626994b3e1d22d0fdd4</a></p> <h3 dir="auto">What you think should happen instead</h3> <p dir="auto">Failing a DAGRun via the API (via UI or otherwise) should result in queued tasks being marked as failed (or skipped, or another state of your choice) to avoid the buildup of queued tasks in older dags.</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">This is how I would attempt reproducing:</p> <ol dir="auto"> <li>Create a DAG with a max_active_tasks = 2 and with two DummyOperator tasks</li> <li>Create a DagRun for said DAG</li> <li>Queue both tasks (manually via UPDATE statements)</li> <li>Fail the DagRun</li> <li>Trigger a second DagRun</li> <li>Notice that tasks are scheduled, but not queued.</li> </ol> <h3 dir="auto">Operating System</h3> <p dir="auto">apache/airflow:2.2.3-python3.8</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto">apache-airflow-providers-celery==2.1.0; python_version &gt;= "3.6" and python_version &lt; "4.0" <br> --hash=sha256:b9de35a66bf3a37b57eae55f2cb175bed3c321e5221a53d86976dcca9f9b8944 <br> --hash=sha256:f59fd9848be981faad31f89896020d1d416e025703acf97ecf848cbdd9b8a76d<br> apache-airflow-providers-ftp==2.0.1; python_version &gt;= "3.6" and python_version &lt; "4.0" <br> --hash=sha256:c4f5b2fa61bae3f4281bcc0b8c2c29eda81a2107a00aafd50781f395feadd156 <br> --hash=sha256:37232dbd2e26c1774e42e598ae9594e4daaebd1c2d2d68ce6c1d533a5ce0cad3<br> apache-airflow-providers-google==6.3.0; python_version &gt;= "3.6" and python_version &lt; "4.0" <br> --hash=sha256:b59c707a26a2afa95065a3c425004ac89bbefa74927bff1629effdfffcb2e669 <br> --hash=sha256:fc4281ea00b5bc83ae3a1f2c2dbe55fc479918fcae703b2bb8167409b16187fd<br> apache-airflow-providers-http==2.0.2; python_version &gt;= "3.6" and python_version &lt; "4.0" <br> --hash=sha256:4927de9045fa2cf5d2f00790707cf43c9a8d032c8d6dfcf7126909fcb1e33db4 <br> --hash=sha256:1f1f7c4e6e1425b20ddb553b77311c19841444ce12392c9796be0d25212dd036<br> apache-airflow-providers-imap==2.1.0; python_version &gt;= "3.6" and python_version &lt; "4.0" <br> --hash=sha256:7bb815192e5cbd9c20d1a12eb6c71f8362e49bb366f660a638935f414b2ba94f <br> --hash=sha256:a7ecc72a6e82003159dba4fba0ae72b73e4743b64c58fc984919cdd4eef7d44c<br> apache-airflow-providers-papermill==2.2.0; python_version &gt;= "3.6" and python_version &lt; "4.0" <br> --hash=sha256:d6713f010c35d38fb27a4193ae88c97f170eeb775182a5df593fbbe0373d0206 <br> --hash=sha256:24256be81798b300007bea4159ec49a25bb4d9822fcbb4bd514b6fc2b9393d70<br> apache-airflow-providers-postgres==2.4.0; python_version &gt;= "3.6" and python_version &lt; "4.0" <br> --hash=sha256:5b12826bc94eb955547b3c892ba913c8f18a43a79778348e2112fa7e6874fb82 <br> --hash=sha256:b6fab6252a524ae81b14732e9e28a03db15751ad1b09edcf8cf7a0f002bc8626<br> apache-airflow-providers-sqlite==2.0.1; python_version &gt;= "3.6" and python_version &lt; "4.0" <br> --hash=sha256:9a991e10f8b7bc4028ff3b389f280607e06423f97d4327b136383e6a52d9fcf9 <br> --hash=sha256:4e1ed0f2d25e3c3aecd5575dd46a78799bd205ba3c5d53b0248057fc30dd2aa9</p> <h3 dir="auto">Deployment</h3> <p dir="auto">Other Docker-based deployment</p> <h3 dir="auto">Deployment details</h3> <p dir="auto">K8S, but I don't think it's relevant here</p> <h3 dir="auto">Anything else</h3> <p dir="auto">Once every 1-2 month (but YMMV depending on your max_active_tasks and how often you fail a DAGRun with Queued tasks).<br> On our side we will be updating our watchdog to also change the state of the queued tasks to failed alongside the failing of the DAGRun. We'll most likely upgrade to 2.3.1 in the next month or so.</p> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.2.4 (latest released)</p> <h3 dir="auto">What happened</h3> <p dir="auto">I was running a large DAG with a limited concurrency and wanted to cancel the current run. I marked the run as <code class="notranslate">Failed</code> via the UI which terminated all running tasks and marked them as <code class="notranslate">Failed</code>.</p> <p dir="auto">However, a few seconds later the run was set back to Running and other tasks started to execute.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16950874/156228662-e06dd71a-e8ef-4cdd-b958-5ddefa1d5328.png"><img width="1235" alt="image" src="https://user-images.githubusercontent.com/16950874/156228662-e06dd71a-e8ef-4cdd-b958-5ddefa1d5328.png" style="max-width: 100%;"></a></p> <p dir="auto">I think that this is because of two things happening:</p> <ol dir="auto"> <li> <p dir="auto">Marking a run as failed will only stop the currently running tasks and mark them as failed, does nothing to tasks in <code class="notranslate">scheduled</code> state:<br> </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/apache/airflow/blob/0cd3b11f3a5c406fbbd4433d8e44d326086db634/airflow/api/common/mark_tasks.py#L455-L462">airflow/airflow/api/common/mark_tasks.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 455 to 462 in <a data-pjax="true" class="commit-tease-sha" href="/apache/airflow/commit/0cd3b11f3a5c406fbbd4433d8e44d326086db634">0cd3b11</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="L455" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="455"></td> <td id="LC455" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"># Mark only RUNNING task instances.</span> </td> </tr> <tr class="border-0"> <td id="L456" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="456"></td> <td id="LC456" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">task_ids</span> <span class="pl-c1">=</span> [<span class="pl-s1">task</span>.<span class="pl-s1">task_id</span> <span class="pl-k">for</span> <span class="pl-s1">task</span> <span class="pl-c1">in</span> <span class="pl-s1">dag</span>.<span class="pl-s1">tasks</span>] </td> </tr> <tr class="border-0"> <td id="L457" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="457"></td> <td id="LC457" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">tis</span> <span class="pl-c1">=</span> <span class="pl-s1">session</span>.<span class="pl-en">query</span>(<span class="pl-v">TaskInstance</span>).<span class="pl-en">filter</span>( </td> </tr> <tr class="border-0"> <td id="L458" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="458"></td> <td id="LC458" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-v">TaskInstance</span>.<span class="pl-s1">dag_id</span> <span class="pl-c1">==</span> <span class="pl-s1">dag</span>.<span class="pl-s1">dag_id</span>, </td> </tr> <tr class="border-0"> <td id="L459" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="459"></td> <td id="LC459" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-v">TaskInstance</span>.<span class="pl-s1">run_id</span> <span class="pl-c1">==</span> <span class="pl-s1">run_id</span>, </td> </tr> <tr class="border-0"> <td id="L460" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="460"></td> <td id="LC460" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-v">TaskInstance</span>.<span class="pl-s1">task_id</span>.<span class="pl-en">in_</span>(<span class="pl-s1">task_ids</span>), </td> </tr> <tr class="border-0"> <td id="L461" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="461"></td> <td id="LC461" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-v">TaskInstance</span>.<span class="pl-s1">state</span>.<span class="pl-en">in_</span>(<span class="pl-v">State</span>.<span class="pl-s1">running</span>), </td> </tr> <tr class="border-0"> <td id="L462" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="462"></td> <td id="LC462" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> ) </td> </tr> </tbody></table> </div> </div> <p></p> </li> <li> <p dir="auto">During scheduling, a DAG with tasks in non-finished states will be marked as <code class="notranslate">Running</code>:</p> </li> </ol> <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/airflow/blob/feea143af9b1db3b1f8cd8d29677f0b2b2ab757a/airflow/models/dagrun.py#L583-L585">airflow/airflow/models/dagrun.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 583 to 585 in <a data-pjax="true" class="commit-tease-sha" href="/apache/airflow/commit/feea143af9b1db3b1f8cd8d29677f0b2b2ab757a">feea143</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="L583" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="583"></td> <td id="LC583" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"># finally, if the roots aren't done, the dag is still running</span> </td> </tr> <tr class="border-0"> <td id="L584" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="584"></td> <td id="LC584" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">else</span>: </td> </tr> <tr class="border-0"> <td id="L585" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="585"></td> <td id="LC585" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">self</span>.<span class="pl-en">set_state</span>(<span class="pl-v">DagRunState</span>.<span class="pl-v">RUNNING</span>) </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">I'm assuming that this is unintended behaviour, is that correct?</p> <h3 dir="auto">What you expected to happen</h3> <p dir="auto">I think that marking a DAG as failed should cause the run to stop (and not be resumed) regardless of the state of its tasks.</p> <p dir="auto">When a DAGRun is marked failed, we should:</p> <ul dir="auto"> <li>mark all running tasks failed</li> <li><strong>mark all non-finished tasks as skipped</strong></li> <li>mark the DagRun as <code class="notranslate">failed</code></li> </ul> <p dir="auto">This is consistent with the behaviour from a DagRun time out.</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">Run this DAG:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from datetime import timedelta from airflow.models import DAG from airflow.operators.bash_operator import BashOperator from airflow import utils dag = DAG( 'cant-be-stopped', start_date=utils.dates.days_ago(1), max_active_runs=1, dagrun_timeout=timedelta(minutes=60), schedule_interval=None, concurrency=1 ) for i in range(5): task = BashOperator( task_id=f'task_{i}', bash_command='sleep 300', retries=0, dag=dag, )"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">datetime</span> <span class="pl-k">import</span> <span class="pl-s1">timedelta</span> <span class="pl-k">from</span> <span class="pl-s1">airflow</span>.<span class="pl-s1">models</span> <span class="pl-k">import</span> <span class="pl-v">DAG</span> <span class="pl-k">from</span> <span class="pl-s1">airflow</span>.<span class="pl-s1">operators</span>.<span class="pl-s1">bash_operator</span> <span class="pl-k">import</span> <span class="pl-v">BashOperator</span> <span class="pl-k">from</span> <span class="pl-s1">airflow</span> <span class="pl-k">import</span> <span class="pl-s1">utils</span> <span class="pl-s1">dag</span> <span class="pl-c1">=</span> <span class="pl-v">DAG</span>( <span class="pl-s">'cant-be-stopped'</span>, <span class="pl-s1">start_date</span><span class="pl-c1">=</span><span class="pl-s1">utils</span>.<span class="pl-s1">dates</span>.<span class="pl-en">days_ago</span>(<span class="pl-c1">1</span>), <span class="pl-s1">max_active_runs</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">dagrun_timeout</span><span class="pl-c1">=</span><span class="pl-en">timedelta</span>(<span class="pl-s1">minutes</span><span class="pl-c1">=</span><span class="pl-c1">60</span>), <span class="pl-s1">schedule_interval</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">concurrency</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">5</span>): <span class="pl-s1">task</span> <span class="pl-c1">=</span> <span class="pl-v">BashOperator</span>( <span class="pl-s1">task_id</span><span class="pl-c1">=</span><span class="pl-s">f'task_<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">i</span><span class="pl-kos">}</span></span>'</span>, <span class="pl-s1">bash_command</span><span class="pl-c1">=</span><span class="pl-s">'sleep 300'</span>, <span class="pl-s1">retries</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">dag</span><span class="pl-c1">=</span><span class="pl-s1">dag</span>, )</pre></div> <p dir="auto">And once the first task is running, mark the run as failed. After the next scheduler loop the run will be set back to running and a different task will be started.</p> <h3 dir="auto">Operating System</h3> <p dir="auto">Debian GNU/Linux 10 (buster)</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Deployment</h3> <p dir="auto">Other 3rd-party Helm chart</p> <h3 dir="auto">Deployment details</h3> <p dir="auto">Noticed this in Airflow 2.2.2 but replicated in a Breeze environment on the latest main.</p> <h3 dir="auto">Anything else</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
1
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: v1.30.0</li> <li>Operating System: Windows</li> <li>Browser: Chrome</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto">I am using playwright to control the browser. The tests are written using mocha.</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" let resolve: () =&gt; void; let reject: (err: unknown) =&gt; void; const promise = new Promise&lt;void&gt;((res, rej) =&gt; { resolve = res; reject = rej; }); const browserProcess = spawn( `Start-Process chrome -ArgumentList &quot;--process-per-site --remote-debugging-port=9222&quot;`, { shell: 'powershell.exe' } ); browserProcess.on('error', err =&gt; reject(err)); browserProcess.on('spawn', () =&gt; resolve()); await promise; await new Promise((res) =&gt; setTimeout(res, 10_000)); browser = await chromium.connectOverCDP('http://127.0.0.1:9222', { timeout: 100_000 /* 100s */ }); context = browser.contexts()[0];"><pre class="notranslate"> <span class="pl-k">let</span> <span class="pl-s1">resolve</span>: <span class="pl-kos">(</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-k">let</span> <span class="pl-s1">reject</span>: <span class="pl-kos">(</span><span class="pl-s1">err</span>: <span class="pl-smi">unknown</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-k">const</span> <span class="pl-s1">promise</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Promise</span><span class="pl-kos">&lt;</span><span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">res</span><span class="pl-kos">,</span> <span class="pl-s1">rej</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">resolve</span> <span class="pl-c1">=</span> <span class="pl-s1">res</span><span class="pl-kos">;</span> <span class="pl-s1">reject</span> <span class="pl-c1">=</span> <span class="pl-s1">rej</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">browserProcess</span> <span class="pl-c1">=</span> <span class="pl-en">spawn</span><span class="pl-kos">(</span> <span class="pl-s">`Start-Process chrome -ArgumentList "--process-per-site --remote-debugging-port=9222"`</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">shell</span>: <span class="pl-s">'powershell.exe'</span> <span class="pl-kos">}</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">browserProcess</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'error'</span><span class="pl-kos">,</span> <span class="pl-s1">err</span> <span class="pl-c1">=&gt;</span> <span class="pl-en">reject</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-kos">;</span> <span class="pl-s1">browserProcess</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'spawn'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-en">resolve</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">promise</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-k">new</span> <span class="pl-smi">Promise</span><span class="pl-kos">(</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-en">setTimeout</span><span class="pl-kos">(</span><span class="pl-s1">res</span><span class="pl-kos">,</span> <span class="pl-c1">10_000</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">browser</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">chromium</span><span class="pl-kos">.</span><span class="pl-en">connectOverCDP</span><span class="pl-kos">(</span><span class="pl-s">'http://127.0.0.1:9222'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">timeout</span>: <span class="pl-c1">100_000</span> <span class="pl-c">/* 100s */</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">context</span> <span class="pl-c1">=</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">contexts</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">;</span></pre></div> <p dir="auto">The code above</p> <ul dir="auto"> <li>starts an instance of Chrome using Powershell,</li> <li>then playwright connects that browser over CDP.</li> </ul> <p dir="auto">Justification: A process outside the test code starts a browser, and intend to control that browser instance using playwright. When I <code class="notranslate">launch</code> a browser instance using playwright, then this instance won't be used by that process when it starts navigating to a link.</p> <p dir="auto">This works when there are no existing instances of Chrome.</p> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>Start a chrome instance normally.</li> <li>Run the given above.</li> <li>The connection over CDP is refused.</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">The connection over CDP is established to the second browser instance opened via the test code.</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">The connection is refused, when there is an existing instance of Chrome running.</p> <p dir="auto"><strong>Additional note</strong></p> <p dir="auto">The <code class="notranslate">timeout</code> property in <code class="notranslate">connectOverCDP</code> options does not seem to work. I needed to devise an additional waiting strategy with <code class="notranslate">await new Promise((res) =&gt; setTimeout(res, 10_000));</code>.</p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: v 1.30</li> <li>Operating System: Windows</li> <li>Browser: Chromium</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto">Hi all, when we try to add a trace file to check the details of cases,<br> we found sometimes the trace file can not record the tests, it happens in opening 2 chromiums in the one case<br> the trace file is in the attachment, we tried remotely opening it or locally, but both didn't work<br> and when opening it, it looks like the below, but when debugging cases, all things worked. Could you please help check if is there something potential reasons?<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12553152/222642075-11f6b160-fe56-4d97-90b9-65d4e1db081c.png"><img src="https://user-images.githubusercontent.com/12553152/222642075-11f6b160-fe56-4d97-90b9-65d4e1db081c.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><a href="https://github.com/microsoft/playwright/files/10878563/trace-1.zip">trace-1.zip</a></p>
0
<p dir="auto">With a multi-level mapping of parent/child relationships on an index, searching with a <code class="notranslate">terms</code> aggregation by <code class="notranslate">_parent</code> on the "middle" child document type (mapped as a child of one type and a parent of another) yields "duplicate" buckets with bogus values for the <code class="notranslate">_parent</code> keys.</p> <p dir="auto">Here is an example, with document types <code class="notranslate">my_parent</code>, <code class="notranslate">my_child</code>, and <code class="notranslate">my_grandchild</code>. The query attempts to find, for a given list of parent IDs, the counts of children of those parents, aggregated by <code class="notranslate">color</code>. When <code class="notranslate">my_grandchild</code> is not part of the mapping, the correct expected result buckets are returned. When <code class="notranslate">my_grandchild</code> <em>is</em> included in the mapping, the "duplicate" buckets with bogus <code class="notranslate">_parent</code> keys are also included. The bogus bucket <code class="notranslate">_parent</code> keys are the <code class="notranslate">id</code>s of the <code class="notranslate">my_child</code> documents, though there are no <code class="notranslate">my_grandchild</code> documents, and the <code class="notranslate">my_grandchild</code> document type was not targetted by the query, and would not have matched the <code class="notranslate">_parent</code> values given in the query.</p> <p dir="auto">To reproduce, run the following script using the <code class="notranslate">WITH_GRANDCHILD</code> environment variable to dictate whether the <code class="notranslate">my_grandchild</code> mapping should be included or not. For example, run <code class="notranslate">env WITH_GRANDCHILD=true bash script.sh</code> to include the <code class="notranslate">my_grandchild</code> mapping:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#!/usr/bin/env bash ES_HOST=&quot;${ES_HOST:-http://localhost:9200}&quot; WITH_GRANDCHILD=&quot;${WITH_GRANDCHILD:-false}&quot; echo &quot;env: ES_HOST=${ES_HOST}&quot; echo &quot; WITH_GRANDCHILD=${WITH_GRANDCHILD}&quot; function es() { echo echo &quot;es ${1} ${2} ${3}&quot; curl -X&quot;${1}&quot; &quot;${ES_HOST}/${2}&quot; -d &quot;${3}&quot; echo } es DELETE my_index if [[ X&quot;${WITH_GRANDCHILD}&quot; == X&quot;false&quot; ]]; then es PUT my_index '{ &quot;mappings&quot;: { &quot;my_parent&quot;: {}, &quot;my_child&quot;: { &quot;_parent&quot;: { &quot;type&quot;: &quot;my_parent&quot; } } } }' else es PUT my_index '{ &quot;mappings&quot;: { &quot;my_parent&quot;: {}, &quot;my_child&quot;: { &quot;_parent&quot;: { &quot;type&quot;: &quot;my_parent&quot; } }, &quot;my_grandchild&quot;: { &quot;_parent&quot;: { &quot;type&quot;: &quot;my_child&quot; } } } }' fi echo echo &quot;---&quot; es PUT 'my_index/my_parent/P1' '{ &quot;text&quot;: &quot;first parent&quot; }' es PUT 'my_index/my_parent/P2' '{ &quot;text&quot;: &quot;second parent&quot; }' es PUT 'my_index/my_child/P1_C1?parent=P1' '{ &quot;color&quot;: &quot;red&quot; }' es PUT 'my_index/my_child/P1_C2?parent=P1' '{ &quot;color&quot;: &quot;yellow&quot; }' es PUT 'my_index/my_child/P1_C3?parent=P1' '{ &quot;color&quot;: &quot;yellow&quot; }' es PUT 'my_index/my_child/P2_C1?parent=P2' '{ &quot;color&quot;: &quot;green&quot; }' es PUT 'my_index/my_child/P2_C2?parent=P2' '{ &quot;color&quot;: &quot;green&quot; }' es PUT 'my_index/my_child/P3_C1?parent=P3' '{ &quot;color&quot;: &quot;blue&quot; }' es POST 'my_index/_refresh' echo echo &quot;---&quot; es GET 'my_index/my_child/_search?search_type=count&amp;format=yaml' '{ &quot;query&quot;: { &quot;terms&quot;: { &quot;_parent&quot;: [ &quot;P1&quot;, &quot;P2&quot; ] } }, &quot;aggs&quot;: { &quot;parents&quot;: { &quot;terms&quot;: { &quot;field&quot;: &quot;_parent&quot; }, &quot;aggs&quot;: { &quot;colors&quot;: { &quot;terms&quot;: { &quot;field&quot;: &quot;color&quot; } } } } } }'"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#!</span>/usr/bin/env bash</span> ES_HOST=<span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">${ES_HOST<span class="pl-k">:-</span>http<span class="pl-k">://</span>localhost<span class="pl-k">:</span>9200}</span><span class="pl-pds">"</span></span> WITH_GRANDCHILD=<span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">${WITH_GRANDCHILD<span class="pl-k">:-</span>false}</span><span class="pl-pds">"</span></span> <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span>env: ES_HOST=<span class="pl-smi">${ES_HOST}</span><span class="pl-pds">"</span></span> <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span> WITH_GRANDCHILD=<span class="pl-smi">${WITH_GRANDCHILD}</span><span class="pl-pds">"</span></span> <span class="pl-k">function</span> <span class="pl-en">es()</span> { <span class="pl-c1">echo</span> <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span>es <span class="pl-smi">${1}</span> <span class="pl-smi">${2}</span> <span class="pl-smi">${3}</span><span class="pl-pds">"</span></span> curl -X<span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">${1}</span><span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">${ES_HOST}</span>/<span class="pl-smi">${2}</span><span class="pl-pds">"</span></span> -d <span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">${3}</span><span class="pl-pds">"</span></span> <span class="pl-c1">echo</span> } es DELETE my_index <span class="pl-k">if</span> [[ X<span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">${WITH_GRANDCHILD}</span><span class="pl-pds">"</span></span> <span class="pl-k">==</span> X<span class="pl-s"><span class="pl-pds">"</span>false<span class="pl-pds">"</span></span> ]]<span class="pl-k">;</span> <span class="pl-k">then</span> es PUT my_index <span class="pl-s"><span class="pl-pds">'</span>{</span> <span class="pl-s"> "mappings": {</span> <span class="pl-s"> "my_parent": {},</span> <span class="pl-s"> "my_child": { "_parent": { "type": "my_parent" } }</span> <span class="pl-s"> }</span> <span class="pl-s"> }<span class="pl-pds">'</span></span> <span class="pl-k">else</span> es PUT my_index <span class="pl-s"><span class="pl-pds">'</span>{</span> <span class="pl-s"> "mappings": {</span> <span class="pl-s"> "my_parent": {},</span> <span class="pl-s"> "my_child": { "_parent": { "type": "my_parent" } },</span> <span class="pl-s"> "my_grandchild": { "_parent": { "type": "my_child" } }</span> <span class="pl-s"> }</span> <span class="pl-s"> }<span class="pl-pds">'</span></span> <span class="pl-k">fi</span> <span class="pl-c1">echo</span> <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span>---<span class="pl-pds">"</span></span> es PUT <span class="pl-s"><span class="pl-pds">'</span>my_index/my_parent/P1<span class="pl-pds">'</span></span> <span class="pl-s"><span class="pl-pds">'</span>{ "text": "first parent" }<span class="pl-pds">'</span></span> es PUT <span class="pl-s"><span class="pl-pds">'</span>my_index/my_parent/P2<span class="pl-pds">'</span></span> <span class="pl-s"><span class="pl-pds">'</span>{ "text": "second parent" }<span class="pl-pds">'</span></span> es PUT <span class="pl-s"><span class="pl-pds">'</span>my_index/my_child/P1_C1?parent=P1<span class="pl-pds">'</span></span> <span class="pl-s"><span class="pl-pds">'</span>{ "color": "red" }<span class="pl-pds">'</span></span> es PUT <span class="pl-s"><span class="pl-pds">'</span>my_index/my_child/P1_C2?parent=P1<span class="pl-pds">'</span></span> <span class="pl-s"><span class="pl-pds">'</span>{ "color": "yellow" }<span class="pl-pds">'</span></span> es PUT <span class="pl-s"><span class="pl-pds">'</span>my_index/my_child/P1_C3?parent=P1<span class="pl-pds">'</span></span> <span class="pl-s"><span class="pl-pds">'</span>{ "color": "yellow" }<span class="pl-pds">'</span></span> es PUT <span class="pl-s"><span class="pl-pds">'</span>my_index/my_child/P2_C1?parent=P2<span class="pl-pds">'</span></span> <span class="pl-s"><span class="pl-pds">'</span>{ "color": "green" }<span class="pl-pds">'</span></span> es PUT <span class="pl-s"><span class="pl-pds">'</span>my_index/my_child/P2_C2?parent=P2<span class="pl-pds">'</span></span> <span class="pl-s"><span class="pl-pds">'</span>{ "color": "green" }<span class="pl-pds">'</span></span> es PUT <span class="pl-s"><span class="pl-pds">'</span>my_index/my_child/P3_C1?parent=P3<span class="pl-pds">'</span></span> <span class="pl-s"><span class="pl-pds">'</span>{ "color": "blue" }<span class="pl-pds">'</span></span> es POST <span class="pl-s"><span class="pl-pds">'</span>my_index/_refresh<span class="pl-pds">'</span></span> <span class="pl-c1">echo</span> <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span>---<span class="pl-pds">"</span></span> es GET <span class="pl-s"><span class="pl-pds">'</span>my_index/my_child/_search?search_type=count&amp;format=yaml<span class="pl-pds">'</span></span> <span class="pl-s"><span class="pl-pds">'</span>{</span> <span class="pl-s"> "query": {</span> <span class="pl-s"> "terms": {</span> <span class="pl-s"> "_parent": [ "P1", "P2" ]</span> <span class="pl-s"> }</span> <span class="pl-s"> },</span> <span class="pl-s"> "aggs": {</span> <span class="pl-s"> "parents": {</span> <span class="pl-s"> "terms": { "field": "_parent" },</span> <span class="pl-s"> "aggs": {</span> <span class="pl-s"> "colors": {</span> <span class="pl-s"> "terms": { "field": "color" }</span> <span class="pl-s"> }</span> <span class="pl-s"> }</span> <span class="pl-s"> }</span> <span class="pl-s"> }</span> <span class="pl-s">}<span class="pl-pds">'</span></span></pre></div> <hr> <p dir="auto">For completeness, here is the expected output of the final query (in YAML format):</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" --- took: 2 timed_out: false _shards: total: 5 successful: 5 failed: 0 hits: total: 5 max_score: 0.0 hits: [] aggregations: parents: doc_count_error_upper_bound: 0 sum_other_doc_count: 0 buckets: - key: &quot;P1&quot; doc_count: 3 colors: doc_count_error_upper_bound: 0 sum_other_doc_count: 0 buckets: - key: &quot;yellow&quot; doc_count: 2 - key: &quot;red&quot; doc_count: 1 - key: &quot;P2&quot; doc_count: 2 colors: doc_count_error_upper_bound: 0 sum_other_doc_count: 0 buckets: - key: &quot;green&quot; doc_count: 2"><pre class="notranslate">--- <span class="pl-ent">took</span>: <span class="pl-c1">2</span> <span class="pl-ent">timed_out</span>: <span class="pl-c1">false</span> <span class="pl-ent">_shards</span>: <span class="pl-ent">total</span>: <span class="pl-c1">5</span> <span class="pl-ent">successful</span>: <span class="pl-c1">5</span> <span class="pl-ent">failed</span>: <span class="pl-c1">0</span> <span class="pl-ent">hits</span>: <span class="pl-ent">total</span>: <span class="pl-c1">5</span> <span class="pl-ent">max_score</span>: <span class="pl-c1">0.0</span> <span class="pl-ent">hits</span>: <span class="pl-s">[]</span> <span class="pl-ent">aggregations</span>: <span class="pl-ent">parents</span>: <span class="pl-ent">doc_count_error_upper_bound</span>: <span class="pl-c1">0</span> <span class="pl-ent">sum_other_doc_count</span>: <span class="pl-c1">0</span> <span class="pl-ent">buckets</span>: - <span class="pl-ent">key</span>: <span class="pl-s"><span class="pl-pds">"</span>P1<span class="pl-pds">"</span></span> <span class="pl-ent">doc_count</span>: <span class="pl-c1">3</span> <span class="pl-ent">colors</span>: <span class="pl-ent">doc_count_error_upper_bound</span>: <span class="pl-c1">0</span> <span class="pl-ent">sum_other_doc_count</span>: <span class="pl-c1">0</span> <span class="pl-ent">buckets</span>: - <span class="pl-ent">key</span>: <span class="pl-s"><span class="pl-pds">"</span>yellow<span class="pl-pds">"</span></span> <span class="pl-ent">doc_count</span>: <span class="pl-c1">2</span> - <span class="pl-ent">key</span>: <span class="pl-s"><span class="pl-pds">"</span>red<span class="pl-pds">"</span></span> <span class="pl-ent">doc_count</span>: <span class="pl-c1">1</span> - <span class="pl-ent">key</span>: <span class="pl-s"><span class="pl-pds">"</span>P2<span class="pl-pds">"</span></span> <span class="pl-ent">doc_count</span>: <span class="pl-c1">2</span> <span class="pl-ent">colors</span>: <span class="pl-ent">doc_count_error_upper_bound</span>: <span class="pl-c1">0</span> <span class="pl-ent">sum_other_doc_count</span>: <span class="pl-c1">0</span> <span class="pl-ent">buckets</span>: - <span class="pl-ent">key</span>: <span class="pl-s"><span class="pl-pds">"</span>green<span class="pl-pds">"</span></span> <span class="pl-ent">doc_count</span>: <span class="pl-c1">2</span></pre></div> <hr> <p dir="auto">And here is the bogus output of the final query (with <code class="notranslate">WITH_GRANDCHILD=true</code> set):</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" --- took: 2 timed_out: false _shards: total: 5 successful: 5 failed: 0 hits: total: 5 max_score: 0.0 hits: [] aggregations: parents: doc_count_error_upper_bound: 0 sum_other_doc_count: 0 buckets: - key: &quot;P1&quot; doc_count: 3 colors: doc_count_error_upper_bound: 0 sum_other_doc_count: 0 buckets: - key: &quot;yellow&quot; doc_count: 2 - key: &quot;red&quot; doc_count: 1 - key: &quot;P2&quot; doc_count: 2 colors: doc_count_error_upper_bound: 0 sum_other_doc_count: 0 buckets: - key: &quot;green&quot; doc_count: 2 - key: &quot;P1_C1&quot; doc_count: 1 colors: doc_count_error_upper_bound: 0 sum_other_doc_count: 0 buckets: - key: &quot;red&quot; doc_count: 1 - key: &quot;P1_C2&quot; doc_count: 1 colors: doc_count_error_upper_bound: 0 sum_other_doc_count: 0 buckets: - key: &quot;yellow&quot; doc_count: 1 - key: &quot;P1_C3&quot; doc_count: 1 colors: doc_count_error_upper_bound: 0 sum_other_doc_count: 0 buckets: - key: &quot;yellow&quot; doc_count: 1 - key: &quot;P2_C1&quot; doc_count: 1 colors: doc_count_error_upper_bound: 0 sum_other_doc_count: 0 buckets: - key: &quot;green&quot; doc_count: 1 - key: &quot;P2_C2&quot; doc_count: 1 colors: doc_count_error_upper_bound: 0 sum_other_doc_count: 0 buckets: - key: &quot;green&quot; doc_count: 1"><pre class="notranslate">--- <span class="pl-ent">took</span>: <span class="pl-c1">2</span> <span class="pl-ent">timed_out</span>: <span class="pl-c1">false</span> <span class="pl-ent">_shards</span>: <span class="pl-ent">total</span>: <span class="pl-c1">5</span> <span class="pl-ent">successful</span>: <span class="pl-c1">5</span> <span class="pl-ent">failed</span>: <span class="pl-c1">0</span> <span class="pl-ent">hits</span>: <span class="pl-ent">total</span>: <span class="pl-c1">5</span> <span class="pl-ent">max_score</span>: <span class="pl-c1">0.0</span> <span class="pl-ent">hits</span>: <span class="pl-s">[]</span> <span class="pl-ent">aggregations</span>: <span class="pl-ent">parents</span>: <span class="pl-ent">doc_count_error_upper_bound</span>: <span class="pl-c1">0</span> <span class="pl-ent">sum_other_doc_count</span>: <span class="pl-c1">0</span> <span class="pl-ent">buckets</span>: - <span class="pl-ent">key</span>: <span class="pl-s"><span class="pl-pds">"</span>P1<span class="pl-pds">"</span></span> <span class="pl-ent">doc_count</span>: <span class="pl-c1">3</span> <span class="pl-ent">colors</span>: <span class="pl-ent">doc_count_error_upper_bound</span>: <span class="pl-c1">0</span> <span class="pl-ent">sum_other_doc_count</span>: <span class="pl-c1">0</span> <span class="pl-ent">buckets</span>: - <span class="pl-ent">key</span>: <span class="pl-s"><span class="pl-pds">"</span>yellow<span class="pl-pds">"</span></span> <span class="pl-ent">doc_count</span>: <span class="pl-c1">2</span> - <span class="pl-ent">key</span>: <span class="pl-s"><span class="pl-pds">"</span>red<span class="pl-pds">"</span></span> <span class="pl-ent">doc_count</span>: <span class="pl-c1">1</span> - <span class="pl-ent">key</span>: <span class="pl-s"><span class="pl-pds">"</span>P2<span class="pl-pds">"</span></span> <span class="pl-ent">doc_count</span>: <span class="pl-c1">2</span> <span class="pl-ent">colors</span>: <span class="pl-ent">doc_count_error_upper_bound</span>: <span class="pl-c1">0</span> <span class="pl-ent">sum_other_doc_count</span>: <span class="pl-c1">0</span> <span class="pl-ent">buckets</span>: - <span class="pl-ent">key</span>: <span class="pl-s"><span class="pl-pds">"</span>green<span class="pl-pds">"</span></span> <span class="pl-ent">doc_count</span>: <span class="pl-c1">2</span> - <span class="pl-ent">key</span>: <span class="pl-s"><span class="pl-pds">"</span>P1_C1<span class="pl-pds">"</span></span> <span class="pl-ent">doc_count</span>: <span class="pl-c1">1</span> <span class="pl-ent">colors</span>: <span class="pl-ent">doc_count_error_upper_bound</span>: <span class="pl-c1">0</span> <span class="pl-ent">sum_other_doc_count</span>: <span class="pl-c1">0</span> <span class="pl-ent">buckets</span>: - <span class="pl-ent">key</span>: <span class="pl-s"><span class="pl-pds">"</span>red<span class="pl-pds">"</span></span> <span class="pl-ent">doc_count</span>: <span class="pl-c1">1</span> - <span class="pl-ent">key</span>: <span class="pl-s"><span class="pl-pds">"</span>P1_C2<span class="pl-pds">"</span></span> <span class="pl-ent">doc_count</span>: <span class="pl-c1">1</span> <span class="pl-ent">colors</span>: <span class="pl-ent">doc_count_error_upper_bound</span>: <span class="pl-c1">0</span> <span class="pl-ent">sum_other_doc_count</span>: <span class="pl-c1">0</span> <span class="pl-ent">buckets</span>: - <span class="pl-ent">key</span>: <span class="pl-s"><span class="pl-pds">"</span>yellow<span class="pl-pds">"</span></span> <span class="pl-ent">doc_count</span>: <span class="pl-c1">1</span> - <span class="pl-ent">key</span>: <span class="pl-s"><span class="pl-pds">"</span>P1_C3<span class="pl-pds">"</span></span> <span class="pl-ent">doc_count</span>: <span class="pl-c1">1</span> <span class="pl-ent">colors</span>: <span class="pl-ent">doc_count_error_upper_bound</span>: <span class="pl-c1">0</span> <span class="pl-ent">sum_other_doc_count</span>: <span class="pl-c1">0</span> <span class="pl-ent">buckets</span>: - <span class="pl-ent">key</span>: <span class="pl-s"><span class="pl-pds">"</span>yellow<span class="pl-pds">"</span></span> <span class="pl-ent">doc_count</span>: <span class="pl-c1">1</span> - <span class="pl-ent">key</span>: <span class="pl-s"><span class="pl-pds">"</span>P2_C1<span class="pl-pds">"</span></span> <span class="pl-ent">doc_count</span>: <span class="pl-c1">1</span> <span class="pl-ent">colors</span>: <span class="pl-ent">doc_count_error_upper_bound</span>: <span class="pl-c1">0</span> <span class="pl-ent">sum_other_doc_count</span>: <span class="pl-c1">0</span> <span class="pl-ent">buckets</span>: - <span class="pl-ent">key</span>: <span class="pl-s"><span class="pl-pds">"</span>green<span class="pl-pds">"</span></span> <span class="pl-ent">doc_count</span>: <span class="pl-c1">1</span> - <span class="pl-ent">key</span>: <span class="pl-s"><span class="pl-pds">"</span>P2_C2<span class="pl-pds">"</span></span> <span class="pl-ent">doc_count</span>: <span class="pl-c1">1</span> <span class="pl-ent">colors</span>: <span class="pl-ent">doc_count_error_upper_bound</span>: <span class="pl-c1">0</span> <span class="pl-ent">sum_other_doc_count</span>: <span class="pl-c1">0</span> <span class="pl-ent">buckets</span>: - <span class="pl-ent">key</span>: <span class="pl-s"><span class="pl-pds">"</span>green<span class="pl-pds">"</span></span> <span class="pl-ent">doc_count</span>: <span class="pl-c1">1</span></pre></div>
<p dir="auto">I would like to be able to check over the node API if a node has a certain plugin installed or retrieve the list of installed plugins.</p> <p dir="auto">For more details see google groups post:</p> <p dir="auto"><a href="https://groups.google.com/forum/#!topic/elasticsearch/QVRR9Q6VuG0" rel="nofollow">https://groups.google.com/forum/#!topic/elasticsearch/QVRR9Q6VuG0</a></p>
0
<h4 dir="auto">Description</h4> <p dir="auto">In accordance with new pandas support in sklearn 0.20.0, I believe that we should offer some runtime safety for users who chose to fit on dataframes, that their column names and orderings should be checked on predict.</p> <p dir="auto">This is especially useful when pickling models and then using them in other applications, potentially by other teams in your company or a long time after generating them (and you've forgotten how they work.)</p> <h4 dir="auto">Steps/Code to Reproduce</h4> <p dir="auto">Example:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd from sklearn.svm import SVR df = pd.DataFrame({'a':[1,2,3], 'b':[3,2,1]}) r = SVR() r.fit(df, [1,2,3]) df = df.rename(columns={'a': 'c', 'b': 'd'}) r.predict(df)"><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">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">svm</span> <span class="pl-k">import</span> <span class="pl-v">SVR</span> <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'a'</span>:[<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>], <span class="pl-s">'b'</span>:[<span class="pl-c1">3</span>,<span class="pl-c1">2</span>,<span class="pl-c1">1</span>]}) <span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-v">SVR</span>() <span class="pl-s1">r</span>.<span class="pl-en">fit</span>(<span class="pl-s1">df</span>, [<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>]) <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">df</span>.<span class="pl-en">rename</span>(<span class="pl-s1">columns</span><span class="pl-c1">=</span>{<span class="pl-s">'a'</span>: <span class="pl-s">'c'</span>, <span class="pl-s">'b'</span>: <span class="pl-s">'d'</span>}) <span class="pl-s1">r</span>.<span class="pl-en">predict</span>(<span class="pl-s1">df</span>)</pre></div> <p dir="auto">This works, but should raise an error.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd from sklearn.svm import SVR df = pd.DataFrame({'a':[1,2,3], 'b':[3,2,1]}) r = SVR() r.fit(df, [1,2,3]) df = df[['b','a']] r.predict(df)"><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">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">svm</span> <span class="pl-k">import</span> <span class="pl-v">SVR</span> <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'a'</span>:[<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>], <span class="pl-s">'b'</span>:[<span class="pl-c1">3</span>,<span class="pl-c1">2</span>,<span class="pl-c1">1</span>]}) <span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-v">SVR</span>() <span class="pl-s1">r</span>.<span class="pl-en">fit</span>(<span class="pl-s1">df</span>, [<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>]) <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">df</span>[[<span class="pl-s">'b'</span>,<span class="pl-s">'a'</span>]] <span class="pl-s1">r</span>.<span class="pl-en">predict</span>(<span class="pl-s1">df</span>)</pre></div> <p dir="auto">This works and returns <strong>wrong values</strong>. This should <del>raise an error</del> work by selecting the features in the proper order.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd from sklearn.svm import SVR df = pd.DataFrame({'a':[1,2,3], 'b':[3,2,1]}) r = SVR() r.fit(df, [1,2,3]) df['c'] = [2,1,3] r.predict(df)"><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">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">svm</span> <span class="pl-k">import</span> <span class="pl-v">SVR</span> <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'a'</span>:[<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>], <span class="pl-s">'b'</span>:[<span class="pl-c1">3</span>,<span class="pl-c1">2</span>,<span class="pl-c1">1</span>]}) <span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-v">SVR</span>() <span class="pl-s1">r</span>.<span class="pl-en">fit</span>(<span class="pl-s1">df</span>, [<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>]) <span class="pl-s1">df</span>[<span class="pl-s">'c'</span>] <span class="pl-c1">=</span> [<span class="pl-c1">2</span>,<span class="pl-c1">1</span>,<span class="pl-c1">3</span>] <span class="pl-s1">r</span>.<span class="pl-en">predict</span>(<span class="pl-s1">df</span>)</pre></div> <p dir="auto">This fails, but should actually work! Just select ['a','b'] from the dataframe given.</p> <h4 dir="auto">Versions</h4> <p dir="auto">scikit-learn == 0.20</p>
<h4 dir="auto">Description</h4> <p dir="auto">Sometimes it is convenient to first build a model on a recent dataset, save it as a .pkl file and then apply the model to the new dataset. However, in the last project, my friends and I found that the results turned quite wired after applying the .pkl file on the new dataset. Actually, we implemented a binary classifier. We found the probability distribution turned from unimodal distribution to bimodal distribution. Finally, we found out the problem was that the column order of the new dataset was different from the old one. Thus the predictions were totally wrong.<br> I have checked the source code and discovered that the fit function of sklean didn't save the column values during the process of model training. Thus there was no mean to check whether the column values were consistent during the processing of prediction. We thought it would be better if the column values could be saved during training and then be used to check the column values during predicting.</p> <h4 dir="auto">Steps/Code to Reproduce</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#for simplification, consider a very simple case from sklearn.datasets import load_iris import pandas as pd #make a dataframe iris = load_iris() X, y = iris.data[:-1,:], iris.target[:-1] iris_pd = pd.DataFrame(X) iris_pd.columns = iris.feature_names iris_pd['target'] = y from sklearn.cross_validation import train_test_split train, test = train_test_split(iris_pd, test_size= 0.3) feature_columns_train = ['sepal length (cm)','sepal width (cm)','petal length (cm)','petal width (cm)'] feature_columns_test = ['sepal length (cm)','sepal width (cm)','petal width (cm)','petal length (cm)'] from sklearn.linear_model import LogisticRegression lg = LogisticRegression(n_jobs=4, random_state=123, verbose=0, penalty='l1', C=1.0) lg.fit(train[feature_columns_train], train['target']) prob1 = lg.predict_proba(test[feature_columns_train]) prob2 = lg.predict_proba(test[feature_columns_test])"><pre class="notranslate"><span class="pl-c">#for simplification, consider a very simple case</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">datasets</span> <span class="pl-k">import</span> <span class="pl-s1">load_iris</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-c">#make a dataframe</span> <span class="pl-s1">iris</span> <span class="pl-c1">=</span> <span class="pl-en">load_iris</span>() <span class="pl-v">X</span>, <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">iris</span>.<span class="pl-s1">data</span>[:<span class="pl-c1">-</span><span class="pl-c1">1</span>,:], <span class="pl-s1">iris</span>.<span class="pl-s1">target</span>[:<span class="pl-c1">-</span><span class="pl-c1">1</span>] <span class="pl-s1">iris_pd</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-v">X</span>) <span class="pl-s1">iris_pd</span>.<span class="pl-s1">columns</span> <span class="pl-c1">=</span> <span class="pl-s1">iris</span>.<span class="pl-s1">feature_names</span> <span class="pl-s1">iris_pd</span>[<span class="pl-s">'target'</span>] <span class="pl-c1">=</span> <span class="pl-s1">y</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">cross_validation</span> <span class="pl-k">import</span> <span class="pl-s1">train_test_split</span> <span class="pl-s1">train</span>, <span class="pl-s1">test</span> <span class="pl-c1">=</span> <span class="pl-en">train_test_split</span>(<span class="pl-s1">iris_pd</span>, <span class="pl-s1">test_size</span><span class="pl-c1">=</span> <span class="pl-c1">0.3</span>) <span class="pl-s1">feature_columns_train</span> <span class="pl-c1">=</span> [<span class="pl-s">'sepal length (cm)'</span>,<span class="pl-s">'sepal width (cm)'</span>,<span class="pl-s">'petal length (cm)'</span>,<span class="pl-s">'petal width (cm)'</span>] <span class="pl-s1">feature_columns_test</span> <span class="pl-c1">=</span> [<span class="pl-s">'sepal length (cm)'</span>,<span class="pl-s">'sepal width (cm)'</span>,<span class="pl-s">'petal width (cm)'</span>,<span class="pl-s">'petal length (cm)'</span>] <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">linear_model</span> <span class="pl-k">import</span> <span class="pl-v">LogisticRegression</span> <span class="pl-s1">lg</span> <span class="pl-c1">=</span> <span class="pl-v">LogisticRegression</span>(<span class="pl-s1">n_jobs</span><span class="pl-c1">=</span><span class="pl-c1">4</span>, <span class="pl-s1">random_state</span><span class="pl-c1">=</span><span class="pl-c1">123</span>, <span class="pl-s1">verbose</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">penalty</span><span class="pl-c1">=</span><span class="pl-s">'l1'</span>, <span class="pl-v">C</span><span class="pl-c1">=</span><span class="pl-c1">1.0</span>) <span class="pl-s1">lg</span>.<span class="pl-en">fit</span>(<span class="pl-s1">train</span>[<span class="pl-s1">feature_columns_train</span>], <span class="pl-s1">train</span>[<span class="pl-s">'target'</span>]) <span class="pl-s1">prob1</span> <span class="pl-c1">=</span> <span class="pl-s1">lg</span>.<span class="pl-en">predict_proba</span>(<span class="pl-s1">test</span>[<span class="pl-s1">feature_columns_train</span>]) <span class="pl-s1">prob2</span> <span class="pl-c1">=</span> <span class="pl-s1">lg</span>.<span class="pl-en">predict_proba</span>(<span class="pl-s1">test</span>[<span class="pl-s1">feature_columns_test</span>])</pre></div> <h4 dir="auto">Expected Results</h4> <p dir="auto">Because feature_columns_test is different from feature_columns_train, it is not surprised that prob1 is totally different from prob2 and prob1 should be the right result.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="prob1[:5] = array([[ 3.89507414e-04, 3.20099743e-01, 6.79510750e-01], [ 4.63256526e-04, 4.65385156e-01, 5.34151587e-01], [ 8.79704318e-01, 1.20295572e-01, 1.10268420e-07], [ 7.80611983e-01, 2.19385827e-01, 2.19046022e-06], [ 2.78898454e-02, 7.77243988e-01, 1.94866167e-01]])"><pre class="notranslate"><span class="pl-s1">prob1</span>[:<span class="pl-c1">5</span>] <span class="pl-c1">=</span> <span class="pl-en">array</span>([[ <span class="pl-c1">3.89507414e-04</span>, <span class="pl-c1">3.20099743e-01</span>, <span class="pl-c1">6.79510750e-01</span>], [ <span class="pl-c1">4.63256526e-04</span>, <span class="pl-c1">4.65385156e-01</span>, <span class="pl-c1">5.34151587e-01</span>], [ <span class="pl-c1">8.79704318e-01</span>, <span class="pl-c1">1.20295572e-01</span>, <span class="pl-c1">1.10268420e-07</span>], [ <span class="pl-c1">7.80611983e-01</span>, <span class="pl-c1">2.19385827e-01</span>, <span class="pl-c1">2.19046022e-06</span>], [ <span class="pl-c1">2.78898454e-02</span>, <span class="pl-c1">7.77243988e-01</span>, <span class="pl-c1">1.94866167e-01</span>]])</pre></div> <h4 dir="auto">Actual Results</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="prob2[:5] = array([[ 4.36321678e-01, 2.25057553e-04, 5.63453265e-01], [ 4.92513658e-01, 1.76391882e-05, 5.07468703e-01], [ 9.92946715e-01, 7.05167151e-03, 1.61346947e-06], [ 9.83726756e-01, 1.62387090e-02, 3.45348884e-05], [ 5.01392274e-01, 5.37144591e-04, 4.98070581e-01]])"><pre class="notranslate"><span class="pl-s1">prob2</span>[:<span class="pl-c1">5</span>] <span class="pl-c1">=</span> <span class="pl-en">array</span>([[ <span class="pl-c1">4.36321678e-01</span>, <span class="pl-c1">2.25057553e-04</span>, <span class="pl-c1">5.63453265e-01</span>], [ <span class="pl-c1">4.92513658e-01</span>, <span class="pl-c1">1.76391882e-05</span>, <span class="pl-c1">5.07468703e-01</span>], [ <span class="pl-c1">9.92946715e-01</span>, <span class="pl-c1">7.05167151e-03</span>, <span class="pl-c1">1.61346947e-06</span>], [ <span class="pl-c1">9.83726756e-01</span>, <span class="pl-c1">1.62387090e-02</span>, <span class="pl-c1">3.45348884e-05</span>], [ <span class="pl-c1">5.01392274e-01</span>, <span class="pl-c1">5.37144591e-04</span>, <span class="pl-c1">4.98070581e-01</span>]])</pre></div> <h4 dir="auto">Versions</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Linux-2.6.32-642.1.1.el6.x86_64-x86_64-with-redhat-6.7-Santiago ('Python', '2.7.11 |Anaconda 2.4.1 (64-bit)| (default, Dec 6 2015, 18:08:32) \n[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]') ('NumPy', '1.10.1') ('SciPy', '0.16.0') ('Scikit-Learn', '0.17')"><pre class="notranslate"><span class="pl-v">Linux</span><span class="pl-c1">-</span><span class="pl-c1">2.6</span>.<span class="pl-c1">32</span><span class="pl-c1">-</span><span class="pl-c1">642.1</span>.<span class="pl-c1">1.</span><span class="pl-s1">el6</span>.<span class="pl-s1">x86_64</span><span class="pl-c1">-</span><span class="pl-s1">x86_64</span><span class="pl-c1">-</span><span class="pl-s1">with</span><span class="pl-c1">-</span><span class="pl-s1">redhat</span><span class="pl-c1">-</span><span class="pl-c1">6.7</span><span class="pl-c1">-</span><span class="pl-v">Santiago</span> (<span class="pl-s">'Python'</span>, <span class="pl-s">'2.7.11 |Anaconda 2.4.1 (64-bit)| (default, Dec 6 2015, 18:08:32) <span class="pl-cce">\n</span>[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]'</span>) (<span class="pl-s">'NumPy'</span>, <span class="pl-s">'1.10.1'</span>) (<span class="pl-s">'SciPy'</span>, <span class="pl-s">'0.16.0'</span>) (<span class="pl-s">'Scikit-Learn'</span>, <span class="pl-s">'0.17'</span>)</pre></div> <h2 dir="auto">The probable solution</h2> <p dir="auto">I also implement a very simple solution. Hope this would help. :)</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class SafeLogisticRegression(LogisticRegression): def fit(self, X, y, sample_weight=None): self.columns = X.columns LogisticRegression.fit(self, X, y, sample_weight=None) def predict_proba(self, X): new_columns = list(X.columns) old_columns = list(self.columns) if new_columns != old_columns: if len(new_columns) == len(old_columns): try: X = X[old_columns] print &quot;The order of columns has changed. Fixed.&quot; except: raise ValueError('The columns has changed. Please check.') else: raise ValueError('The number of columns has changed.') return LogisticRegression.predict_proba(self, X)"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">SafeLogisticRegression</span>(<span class="pl-v">LogisticRegression</span>): <span class="pl-k">def</span> <span class="pl-en">fit</span>(<span class="pl-s1">self</span>, <span class="pl-v">X</span>, <span class="pl-s1">y</span>, <span class="pl-s1">sample_weight</span><span class="pl-c1">=</span><span class="pl-c1">None</span>): <span class="pl-s1">self</span>.<span class="pl-s1">columns</span> <span class="pl-c1">=</span> <span class="pl-v">X</span>.<span class="pl-s1">columns</span> <span class="pl-v">LogisticRegression</span>.<span class="pl-en">fit</span>(<span class="pl-s1">self</span>, <span class="pl-v">X</span>, <span class="pl-s1">y</span>, <span class="pl-s1">sample_weight</span><span class="pl-c1">=</span><span class="pl-c1">None</span>) <span class="pl-k">def</span> <span class="pl-en">predict_proba</span>(<span class="pl-s1">self</span>, <span class="pl-v">X</span>): <span class="pl-s1">new_columns</span> <span class="pl-c1">=</span> <span class="pl-en">list</span>(<span class="pl-v">X</span>.<span class="pl-s1">columns</span>) <span class="pl-s1">old_columns</span> <span class="pl-c1">=</span> <span class="pl-en">list</span>(<span class="pl-s1">self</span>.<span class="pl-s1">columns</span>) <span class="pl-k">if</span> <span class="pl-s1">new_columns</span> <span class="pl-c1">!=</span> <span class="pl-s1">old_columns</span>: <span class="pl-k">if</span> <span class="pl-en">len</span>(<span class="pl-s1">new_columns</span>) <span class="pl-c1">==</span> <span class="pl-en">len</span>(<span class="pl-s1">old_columns</span>): <span class="pl-k">try</span>: <span class="pl-v">X</span> <span class="pl-c1">=</span> <span class="pl-v">X</span>[<span class="pl-s1">old_columns</span>] <span class="pl-k">print</span> <span class="pl-s">"The order of columns has changed. Fixed."</span> <span class="pl-k">except</span>: <span class="pl-k">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">'The columns has changed. Please check.'</span>) <span class="pl-k">else</span>: <span class="pl-k">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">'The number of columns has changed.'</span>) <span class="pl-k">return</span> <span class="pl-v">LogisticRegression</span>.<span class="pl-en">predict_proba</span>(<span class="pl-s1">self</span>, <span class="pl-v">X</span>)</pre></div> <p dir="auto">Then apply this new class:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="slg = SafeLogisticRegression(n_jobs=4, random_state=123, verbose=0, penalty='l1', C=1.0) slg.fit(train[feature_columns_train], train['target']) "><pre class="notranslate"><span class="pl-s1">slg</span> <span class="pl-c1">=</span> <span class="pl-v">SafeLogisticRegression</span>(<span class="pl-s1">n_jobs</span><span class="pl-c1">=</span><span class="pl-c1">4</span>, <span class="pl-s1">random_state</span><span class="pl-c1">=</span><span class="pl-c1">123</span>, <span class="pl-s1">verbose</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">penalty</span><span class="pl-c1">=</span><span class="pl-s">'l1'</span>, <span class="pl-v">C</span><span class="pl-c1">=</span><span class="pl-c1">1.0</span>) <span class="pl-s1">slg</span>.<span class="pl-en">fit</span>(<span class="pl-s1">train</span>[<span class="pl-s1">feature_columns_train</span>], <span class="pl-s1">train</span>[<span class="pl-s">'target'</span>]) </pre></div> <h4 dir="auto">Test one: if the column order is changed</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="prob1 = slg.predict_proba(test[feature_columns_train]) prob2 = slg.predict_proba(test[feature_columns_test]) #The order of columns has changed. Fixed."><pre class="notranslate"><span class="pl-s1">prob1</span> <span class="pl-c1">=</span> <span class="pl-s1">slg</span>.<span class="pl-en">predict_proba</span>(<span class="pl-s1">test</span>[<span class="pl-s1">feature_columns_train</span>]) <span class="pl-s1">prob2</span> <span class="pl-c1">=</span> <span class="pl-s1">slg</span>.<span class="pl-en">predict_proba</span>(<span class="pl-s1">test</span>[<span class="pl-s1">feature_columns_test</span>]) <span class="pl-c">#The order of columns has changed. Fixed.</span></pre></div> <p dir="auto">Result for test one:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="prob1[:5] = array([[ 3.89507414e-04, 3.20099743e-01, 6.79510750e-01], [ 4.63256526e-04, 4.65385156e-01, 5.34151587e-01], [ 8.79704318e-01, 1.20295572e-01, 1.10268420e-07], [ 7.80611983e-01, 2.19385827e-01, 2.19046022e-06], [ 2.78898454e-02, 7.77243988e-01, 1.94866167e-01]]) prob2[:5] = array([[ 3.89507414e-04, 3.20099743e-01, 6.79510750e-01], [ 4.63256526e-04, 4.65385156e-01, 5.34151587e-01], [ 8.79704318e-01, 1.20295572e-01, 1.10268420e-07], [ 7.80611983e-01, 2.19385827e-01, 2.19046022e-06], [ 2.78898454e-02, 7.77243988e-01, 1.94866167e-01]])"><pre class="notranslate"><span class="pl-s1">prob1</span>[:<span class="pl-c1">5</span>] <span class="pl-c1">=</span> <span class="pl-en">array</span>([[ <span class="pl-c1">3.89507414e-04</span>, <span class="pl-c1">3.20099743e-01</span>, <span class="pl-c1">6.79510750e-01</span>], [ <span class="pl-c1">4.63256526e-04</span>, <span class="pl-c1">4.65385156e-01</span>, <span class="pl-c1">5.34151587e-01</span>], [ <span class="pl-c1">8.79704318e-01</span>, <span class="pl-c1">1.20295572e-01</span>, <span class="pl-c1">1.10268420e-07</span>], [ <span class="pl-c1">7.80611983e-01</span>, <span class="pl-c1">2.19385827e-01</span>, <span class="pl-c1">2.19046022e-06</span>], [ <span class="pl-c1">2.78898454e-02</span>, <span class="pl-c1">7.77243988e-01</span>, <span class="pl-c1">1.94866167e-01</span>]]) <span class="pl-s1">prob2</span>[:<span class="pl-c1">5</span>] <span class="pl-c1">=</span> <span class="pl-en">array</span>([[ <span class="pl-c1">3.89507414e-04</span>, <span class="pl-c1">3.20099743e-01</span>, <span class="pl-c1">6.79510750e-01</span>], [ <span class="pl-c1">4.63256526e-04</span>, <span class="pl-c1">4.65385156e-01</span>, <span class="pl-c1">5.34151587e-01</span>], [ <span class="pl-c1">8.79704318e-01</span>, <span class="pl-c1">1.20295572e-01</span>, <span class="pl-c1">1.10268420e-07</span>], [ <span class="pl-c1">7.80611983e-01</span>, <span class="pl-c1">2.19385827e-01</span>, <span class="pl-c1">2.19046022e-06</span>], [ <span class="pl-c1">2.78898454e-02</span>, <span class="pl-c1">7.77243988e-01</span>, <span class="pl-c1">1.94866167e-01</span>]])</pre></div> <h4 dir="auto">Test two: if the columns are different (different columns)</h4> <p dir="auto">Simulate by changing one of the column names</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="prob3 = slg.predict_proba(test[feature_columns_train].rename(columns={'sepal width (cm)': 'sepal wid (cm)'}))"><pre class="notranslate"><span class="pl-s1">prob3</span> <span class="pl-c1">=</span> <span class="pl-s1">slg</span>.<span class="pl-en">predict_proba</span>(<span class="pl-s1">test</span>[<span class="pl-s1">feature_columns_train</span>].<span class="pl-en">rename</span>(<span class="pl-s1">columns</span><span class="pl-c1">=</span>{<span class="pl-s">'sepal width (cm)'</span>: <span class="pl-s">'sepal wid (cm)'</span>}))</pre></div> <p dir="auto">error message:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--------------------------------------------------------------------------- ValueError Traceback (most recent call last) &lt;ipython-input-47-84cea68536fe&gt; in &lt;module&gt;() ----&gt; 1 prob3 = slg.predict_proba(test[feature_columns_train].rename(columns={'sepal width (cm)': 'sepal wid (cm)'})) &lt;ipython-input-21-c3000b030a21&gt; in predict_proba(self, X) 12 print &quot;The order of columns has changed. Fixed.&quot; 13 except: ---&gt; 14 raise ValueError('The columns has changed. Please check.') 15 else: 16 raise ValueError('The number of columns has changed.') ValueError: The columns has changed. Please check."><pre class="notranslate"><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-v">ValueError</span> <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>) <span class="pl-c1">&lt;</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">47</span><span class="pl-c1">-</span><span class="pl-c1">84</span><span class="pl-s1">cea68536fe</span><span class="pl-c1">&gt;</span> <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span>() <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">1</span> <span class="pl-s1">prob3</span> <span class="pl-c1">=</span> <span class="pl-s1">slg</span>.<span class="pl-en">predict_proba</span>(<span class="pl-s1">test</span>[<span class="pl-s1">feature_columns_train</span>].<span class="pl-en">rename</span>(<span class="pl-s1">columns</span><span class="pl-c1">=</span>{<span class="pl-s">'sepal width (cm)'</span>: <span class="pl-s">'sepal wid (cm)'</span>})) <span class="pl-c1">&lt;</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">21</span><span class="pl-c1">-</span><span class="pl-s1">c3000b030a21</span><span class="pl-c1">&gt;</span> <span class="pl-s1">in</span> <span class="pl-en">predict_proba</span>(<span class="pl-s1">self</span>, <span class="pl-v">X</span>) <span class="pl-c1">12</span> <span class="pl-k">print</span> <span class="pl-s">"The order of columns has changed. Fixed."</span> <span class="pl-c1">13</span> <span class="pl-s1">except</span>: <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">14</span> <span class="pl-s1">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">'The columns has changed. Please check.'</span>) <span class="pl-c1">15</span> <span class="pl-s1">else</span>: <span class="pl-c1">16</span> <span class="pl-k">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">'The number of columns has changed.'</span>) <span class="pl-v">ValueError</span>: <span class="pl-v">The</span> <span class="pl-s1">columns</span> <span class="pl-s1">has</span> <span class="pl-s1">changed</span>. <span class="pl-v">Please</span> <span class="pl-s1">check</span>.</pre></div> <h4 dir="auto">Test three: if the number of columns changes</h4> <p dir="auto">Simulate by dropping one column</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="prob4 = slg.predict_proba(test[feature_columns_train].drop(['sepal width (cm)'], axis=1))"><pre class="notranslate"><span class="pl-s1">prob4</span> <span class="pl-c1">=</span> <span class="pl-s1">slg</span>.<span class="pl-en">predict_proba</span>(<span class="pl-s1">test</span>[<span class="pl-s1">feature_columns_train</span>].<span class="pl-en">drop</span>([<span class="pl-s">'sepal width (cm)'</span>], <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>))</pre></div> <p dir="auto">error message:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--------------------------------------------------------------------------- ValueError Traceback (most recent call last) &lt;ipython-input-48-47c63ae1ac22&gt; in &lt;module&gt;() ----&gt; 1 prob4 = slg.predict_proba(test[feature_columns_train].drop(['sepal width (cm)'], axis=1)) &lt;ipython-input-21-c3000b030a21&gt; in predict_proba(self, X) 14 raise ValueError('The columns has changed. Please check.') 15 else: ---&gt; 16 raise ValueError('The number of columns has changed.') 17 return LogisticRegression.predict_proba(self, X) ValueError: The number of columns has changed."><pre class="notranslate"><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-v">ValueError</span> <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>) <span class="pl-c1">&lt;</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">48</span><span class="pl-c1">-</span><span class="pl-c1">47</span><span class="pl-s1">c63ae1ac22</span><span class="pl-c1">&gt;</span> <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span>() <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">1</span> <span class="pl-s1">prob4</span> <span class="pl-c1">=</span> <span class="pl-s1">slg</span>.<span class="pl-en">predict_proba</span>(<span class="pl-s1">test</span>[<span class="pl-s1">feature_columns_train</span>].<span class="pl-en">drop</span>([<span class="pl-s">'sepal width (cm)'</span>], <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)) <span class="pl-c1">&lt;</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">21</span><span class="pl-c1">-</span><span class="pl-s1">c3000b030a21</span><span class="pl-c1">&gt;</span> <span class="pl-s1">in</span> <span class="pl-en">predict_proba</span>(<span class="pl-s1">self</span>, <span class="pl-v">X</span>) <span class="pl-c1">14</span> <span class="pl-k">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">'The columns has changed. Please check.'</span>) <span class="pl-c1">15</span> <span class="pl-s1">else</span>: <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">16</span> <span class="pl-s1">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">'The number of columns has changed.'</span>) <span class="pl-c1">17</span> <span class="pl-k">return</span> <span class="pl-v">LogisticRegression</span>.<span class="pl-en">predict_proba</span>(<span class="pl-s1">self</span>, <span class="pl-v">X</span>) <span class="pl-v">ValueError</span>: <span class="pl-v">The</span> <span class="pl-s1">number</span> <span class="pl-s1">of</span> <span class="pl-s1">columns</span> <span class="pl-s1">has</span> <span class="pl-s1">changed</span>.</pre></div>
1
<p dir="auto">Hello, this is not a bug just a question.</p> <p dir="auto">Can I ask why from 2.2 to 2.8 versions, and beyond, language support for Norsk changes from NO to NB and back to NO (the two variations)? And is it possible to actually have support for the both?</p> <p dir="auto">Thank you in advance for your time :)</p>
<p dir="auto">I'm having some trouble with <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3121829" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/3290" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/3290/hovercard" href="https://github.com/symfony/symfony/pull/3290">#3290</a>. In </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/symfony/symfony/blob/be2e67c1abbc98e813fe62a6a156a290bce3b517/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php#L67">symfony/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php</a> </p> <p class="mb-0 color-fg-muted"> Line 67 in <a data-pjax="true" class="commit-tease-sha" href="/symfony/symfony/commit/be2e67c1abbc98e813fe62a6a156a290bce3b517">be2e67c</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="L67" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="67"></td> <td id="LC67" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1"><span class="pl-c1">$</span>options</span>[<span class="pl-s">'class'</span>], </td> </tr> </tbody></table> </div> </div> <code class="notranslate">$options['class']</code> and <code class="notranslate">$options['property']</code> are <code class="notranslate">null</code> although I've set them in the <code class="notranslate">getDefaultOptions</code> method of my form type (which has <code class="notranslate">entity</code> as parent). I guess there's something wrong with passing options now.<p></p> <p dir="auto">@bschussek: Could you please look into this?</p>
0
<p dir="auto">When I run <code class="notranslate">https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/dist_test/python/mnist_replica.py</code>, the distributed example<br> I can run it with CPU(1 ps and 2 workers all on CPU in same machine )<br> but when I run it with GPU, I set the GPU<br> number to 2(1 ps on CPU and 2 workers on GPU in same machine), the first worker runs normally, but when I start the second one, it shows the following errors</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py&quot;, line 972, in _do_call return fn(*args) File &quot;/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py&quot;, line 954, in _run_fn status, run_metadata) File &quot;/home/mlabs/anaconda3/lib/python3.5/contextlib.py&quot;, line 66, in __exit__ next(self.gen) File &quot;/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/errors.py&quot;, line 463, in raise_exception_on_not_ok_status pywrap_tensorflow.TF_GetCode(status)) tensorflow.python.framework.errors.InvalidArgumentError: WhereOp: Race condition between counting the number of true elements and writing them. When counting, saw 1363 elements; but when writing their indices, saw 12 elements. [[Node: report_uninitialized_variables/boolean_mask/Where = Where[_device=&quot;/job:worker/replica:0/task:1/cpu:0&quot;](report_uninitialized_variables/boolean_mask/Reshape_1)]] [[Node: report_uninitialized_variables/boolean_mask/Where_G11 = _Recv[client_terminated=false, recv_device=&quot;/job:worker/replica:0/task:1/gpu:1&quot;, send_device=&quot;/job:worker/replica:0/task:1/cpu:0&quot;, send_device_incarnation=-7465067838139069765, tensor_name=&quot;edge_29_report_uninitialized_variables/boolean_mask/Where&quot;, tensor_type=DT_INT64, _device=&quot;/job:worker/replica:0/task:1/gpu:1&quot;]()]] During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;mnist_replica.py&quot;, line 266, in &lt;module&gt; tf.app.run() File &quot;/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/platform/app.py&quot;, line 30, in run sys.exit(main(sys.argv[:1] + flags_passthrough)) File &quot;mnist_replica.py&quot;, line 223, in main config=sess_config) File &quot;/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/training/supervisor.py&quot;, line 722, in prepare_or_wait_for_session max_wait_secs=max_wait_secs) File &quot;/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/training/session_manager.py&quot;, line 349, in wait_for_session is_ready, not_ready_msg = self._model_ready(sess) File &quot;/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/training/session_manager.py&quot;, line 435, in _model_ready return self._ready(self._ready_op, sess, &quot;Model not ready&quot;) File &quot;/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/training/session_manager.py&quot;, line 404, in _ready ready_value = sess.run(op) File &quot;/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py&quot;, line 717, in run run_metadata_ptr) File &quot;/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py&quot;, line 915, in _run feed_dict_string, options, run_metadata) File &quot;/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py&quot;, line 965, in _do_run target_list, options, run_metadata) File &quot;/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py&quot;, line 985, in _do_call raise type(e)(node_def, op, message) tensorflow.python.framework.errors.InvalidArgumentError: WhereOp: Race condition between counting the number of true elements and writing them. When counting, saw 1363 elements; but when writing their indices, saw 12 elements. [[Node: report_uninitialized_variables/boolean_mask/Where = Where[_device=&quot;/job:worker/replica:0/task:1/cpu:0&quot;](report_uninitialized_variables/boolean_mask/Reshape_1)]] [[Node: report_uninitialized_variables/boolean_mask/Where_G11 = _Recv[client_terminated=false, recv_device=&quot;/job:worker/replica:0/task:1/gpu:1&quot;, send_device=&quot;/job:worker/replica:0/task:1/cpu:0&quot;, send_device_incarnation=-7465067838139069765, tensor_name=&quot;edge_29_report_uninitialized_variables/boolean_mask/Where&quot;, tensor_type=DT_INT64, _device=&quot;/job:worker/replica:0/task:1/gpu:1&quot;]()]] Caused by op 'report_uninitialized_variables/boolean_mask/Where', defined at: File &quot;mnist_replica.py&quot;, line 266, in &lt;module&gt; tf.app.run() File &quot;/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/platform/app.py&quot;, line 30, in run sys.exit(main(sys.argv[:1] + flags_passthrough)) File &quot;mnist_replica.py&quot;, line 201, in main global_step=global_step) File &quot;/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/training/supervisor.py&quot;, line 310, in __init__ ready_op=ready_op, ready_for_local_init_op=ready_for_local_init_op) File &quot;/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/training/supervisor.py&quot;, line 399, in _init_ready_op ready_op = variables.report_uninitialized_variables() File &quot;/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/ops/variables.py&quot;, line 1167, in report_uninitialized_variables return array_ops.boolean_mask(variable_names_tensor, variables_mask) File &quot;/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/ops/array_ops.py&quot;, line 950, in boolean_mask return _apply_mask_1d(tensor, mask) File &quot;/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/ops/array_ops.py&quot;, line 925, in _apply_mask_1d indices = squeeze(where(mask), squeeze_dims=[1]) File &quot;/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/ops/gen_array_ops.py&quot;, line 3072, in where result = _op_def_lib.apply_op(&quot;Where&quot;, input=input, name=name) File &quot;/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/op_def_library.py&quot;, line 749, in apply_op op_def=op_def) File &quot;/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/ops.py&quot;, line 2380, in create_op original_op=self._default_original_op, op_def=op_def) File &quot;/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/ops.py&quot;, line 1298, in __init__ self._traceback = _extract_stack() InvalidArgumentError (see above for traceback): WhereOp: Race condition between counting the number of true elements and writing them. When counting, saw 1363 elements; but when writing their indices, saw 12 elements. [[Node: report_uninitialized_variables/boolean_mask/Where = Where[_device=&quot;/job:worker/replica:0/task:1/cpu:0&quot;](report_uninitialized_variables/boolean_mask/Reshape_1)]] [[Node: report_uninitialized_variables/boolean_mask/Where_G11 = _Recv[client_terminated=false, recv_device=&quot;/job:worker/replica:0/task:1/gpu:1&quot;, send_device=&quot;/job:worker/replica:0/task:1/cpu:0&quot;, send_device_incarnation=-7465067838139069765, tensor_name=&quot;edge_29_report_uninitialized_variables/boolean_mask/Where&quot;, tensor_type=DT_INT64, _device=&quot;/job:worker/replica:0/task:1/gpu:1&quot;]()]] "><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 972, in _do_call return fn(*args) File "/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 954, in _run_fn status, run_metadata) File "/home/mlabs/anaconda3/lib/python3.5/contextlib.py", line 66, in __exit__ next(self.gen) File "/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/errors.py", line 463, in raise_exception_on_not_ok_status pywrap_tensorflow.TF_GetCode(status)) tensorflow.python.framework.errors.InvalidArgumentError: WhereOp: Race condition between counting the number of true elements and writing them. When counting, saw 1363 elements; but when writing their indices, saw 12 elements. [[Node: report_uninitialized_variables/boolean_mask/Where = Where[_device="/job:worker/replica:0/task:1/cpu:0"](report_uninitialized_variables/boolean_mask/Reshape_1)]] [[Node: report_uninitialized_variables/boolean_mask/Where_G11 = _Recv[client_terminated=false, recv_device="/job:worker/replica:0/task:1/gpu:1", send_device="/job:worker/replica:0/task:1/cpu:0", send_device_incarnation=-7465067838139069765, tensor_name="edge_29_report_uninitialized_variables/boolean_mask/Where", tensor_type=DT_INT64, _device="/job:worker/replica:0/task:1/gpu:1"]()]] During handling of the above exception, another exception occurred: Traceback (most recent call last): File "mnist_replica.py", line 266, in &lt;module&gt; tf.app.run() File "/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/platform/app.py", line 30, in run sys.exit(main(sys.argv[:1] + flags_passthrough)) File "mnist_replica.py", line 223, in main config=sess_config) File "/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/training/supervisor.py", line 722, in prepare_or_wait_for_session max_wait_secs=max_wait_secs) File "/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/training/session_manager.py", line 349, in wait_for_session is_ready, not_ready_msg = self._model_ready(sess) File "/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/training/session_manager.py", line 435, in _model_ready return self._ready(self._ready_op, sess, "Model not ready") File "/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/training/session_manager.py", line 404, in _ready ready_value = sess.run(op) File "/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 717, in run run_metadata_ptr) File "/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 915, in _run feed_dict_string, options, run_metadata) File "/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 965, in _do_run target_list, options, run_metadata) File "/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 985, in _do_call raise type(e)(node_def, op, message) tensorflow.python.framework.errors.InvalidArgumentError: WhereOp: Race condition between counting the number of true elements and writing them. When counting, saw 1363 elements; but when writing their indices, saw 12 elements. [[Node: report_uninitialized_variables/boolean_mask/Where = Where[_device="/job:worker/replica:0/task:1/cpu:0"](report_uninitialized_variables/boolean_mask/Reshape_1)]] [[Node: report_uninitialized_variables/boolean_mask/Where_G11 = _Recv[client_terminated=false, recv_device="/job:worker/replica:0/task:1/gpu:1", send_device="/job:worker/replica:0/task:1/cpu:0", send_device_incarnation=-7465067838139069765, tensor_name="edge_29_report_uninitialized_variables/boolean_mask/Where", tensor_type=DT_INT64, _device="/job:worker/replica:0/task:1/gpu:1"]()]] Caused by op 'report_uninitialized_variables/boolean_mask/Where', defined at: File "mnist_replica.py", line 266, in &lt;module&gt; tf.app.run() File "/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/platform/app.py", line 30, in run sys.exit(main(sys.argv[:1] + flags_passthrough)) File "mnist_replica.py", line 201, in main global_step=global_step) File "/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/training/supervisor.py", line 310, in __init__ ready_op=ready_op, ready_for_local_init_op=ready_for_local_init_op) File "/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/training/supervisor.py", line 399, in _init_ready_op ready_op = variables.report_uninitialized_variables() File "/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/ops/variables.py", line 1167, in report_uninitialized_variables return array_ops.boolean_mask(variable_names_tensor, variables_mask) File "/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/ops/array_ops.py", line 950, in boolean_mask return _apply_mask_1d(tensor, mask) File "/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/ops/array_ops.py", line 925, in _apply_mask_1d indices = squeeze(where(mask), squeeze_dims=[1]) File "/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/ops/gen_array_ops.py", line 3072, in where result = _op_def_lib.apply_op("Where", input=input, name=name) File "/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/op_def_library.py", line 749, in apply_op op_def=op_def) File "/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 2380, in create_op original_op=self._default_original_op, op_def=op_def) File "/home/mlabs/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 1298, in __init__ self._traceback = _extract_stack() InvalidArgumentError (see above for traceback): WhereOp: Race condition between counting the number of true elements and writing them. When counting, saw 1363 elements; but when writing their indices, saw 12 elements. [[Node: report_uninitialized_variables/boolean_mask/Where = Where[_device="/job:worker/replica:0/task:1/cpu:0"](report_uninitialized_variables/boolean_mask/Reshape_1)]] [[Node: report_uninitialized_variables/boolean_mask/Where_G11 = _Recv[client_terminated=false, recv_device="/job:worker/replica:0/task:1/gpu:1", send_device="/job:worker/replica:0/task:1/cpu:0", send_device_incarnation=-7465067838139069765, tensor_name="edge_29_report_uninitialized_variables/boolean_mask/Where", tensor_type=DT_INT64, _device="/job:worker/replica:0/task:1/gpu:1"]()]] </code></pre></div>
<p dir="auto">I have the same problem as issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="173117674" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/4033" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/4033/hovercard" href="https://github.com/tensorflow/tensorflow/issues/4033">#4033</a> and <a href="https://github.com/tensorflow/models/issues/486" data-hovercard-type="issue" data-hovercard-url="/tensorflow/models/issues/486/hovercard">tensorflow/models#486</a> happening to me in my own project with the nightly wheel. It is running fine on CPU, the problem only happens on GPU (titan x pascal).</p> <p dir="auto">The code that's causing the problem is this:<br> <code class="notranslate">pair_idxs = tf.where(tf.greater_equal(iou, params.thresh))</code><br> (iou is a tensor, params.thresh is a python float)</p> <p dir="auto">WIth the error message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="InvalidArgumentError (see above for traceback): WhereOp: Race condition between counting the number of true elements and writing them. When counting, saw 31641 elements; but when writing their indices, saw 187 elements. [[Node: Where = Where[_device=&quot;/job:localhost/replica:0/task:0/cpu:0&quot;](GreaterEqual/_25)]]"><pre class="notranslate"><code class="notranslate">InvalidArgumentError (see above for traceback): WhereOp: Race condition between counting the number of true elements and writing them. When counting, saw 31641 elements; but when writing their indices, saw 187 elements. [[Node: Where = Where[_device="/job:localhost/replica:0/task:0/cpu:0"](GreaterEqual/_25)]] </code></pre></div> <p dir="auto">Cuda:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-rw-r--r-- 1 foo bar 52M Dec 8 20:06 libcublas_device.a lrwxrwxrwx 1 foo bar 16 Dec 8 20:06 libcublas.so -&gt; libcublas.so.8.0 lrwxrwxrwx 1 foo bar 19 Dec 8 20:07 libcublas.so.8.0 -&gt; libcublas.so.8.0.45 -rwxr-xr-x 1 foo bar 40M Dec 8 20:06 libcublas.so.8.0.45 -rw-r--r-- 1 foo bar 46M Dec 8 20:07 libcublas_static.a -rw-r--r-- 1 foo bar 546K Dec 8 20:07 libcudadevrt.a lrwxrwxrwx 1 foo bar 16 Dec 8 20:06 libcudart.so -&gt; libcudart.so.8.0 lrwxrwxrwx 1 foo bar 19 Dec 8 20:07 libcudart.so.8.0 -&gt; libcudart.so.8.0.44 -rwxr-xr-x 1 foo bar 406K Dec 8 20:06 libcudart.so.8.0.44 -rw-r--r-- 1 foo bar 757K Dec 8 20:07 libcudart_static.a lrwxrwxrwx 1 foo bar 15 Dec 8 20:06 libcufft.so -&gt; libcufft.so.8.0 lrwxrwxrwx 1 foo bar 18 Dec 8 20:07 libcufft.so.8.0 -&gt; libcufft.so.8.0.44 -rwxr-xr-x 1 foo bar 140M Dec 8 20:06 libcufft.so.8.0.44 -rw-r--r-- 1 foo bar 124M Dec 8 20:07 libcufft_static.a lrwxrwxrwx 1 foo bar 16 Dec 8 20:06 libcufftw.so -&gt; libcufftw.so.8.0 lrwxrwxrwx 1 foo bar 19 Dec 8 20:07 libcufftw.so.8.0 -&gt; libcufftw.so.8.0.44 -rwxr-xr-x 1 foo bar 466K Dec 8 20:06 libcufftw.so.8.0.44 -rw-r--r-- 1 foo bar 42K Dec 8 20:07 libcufftw_static.a lrwxrwxrwx 1 foo bar 17 Dec 8 20:06 libcuinj64.so -&gt; libcuinj64.so.8.0 lrwxrwxrwx 1 foo bar 20 Dec 8 20:06 libcuinj64.so.8.0 -&gt; libcuinj64.so.8.0.44 -rwxr-xr-x 1 foo bar 6.2M Dec 8 20:06 libcuinj64.so.8.0.44 -rw-r--r-- 1 foo bar 1.6M Dec 8 20:07 libculibos.a lrwxrwxrwx 1 foo bar 16 Dec 8 20:06 libcurand.so -&gt; libcurand.so.8.0 lrwxrwxrwx 1 foo bar 19 Dec 8 20:07 libcurand.so.8.0 -&gt; libcurand.so.8.0.44 -rwxr-xr-x 1 foo bar 57M Dec 8 20:07 libcurand.so.8.0.44 -rw-r--r-- 1 foo bar 57M Dec 8 20:06 libcurand_static.a lrwxrwxrwx 1 foo bar 18 Dec 8 20:06 libcusolver.so -&gt; libcusolver.so.8.0 lrwxrwxrwx 1 foo bar 21 Dec 8 20:07 libcusolver.so.8.0 -&gt; libcusolver.so.8.0.44 -rwxr-xr-x 1 foo bar 52M Dec 8 20:06 libcusolver.so.8.0.44 -rw-r--r-- 1 foo bar 22M Dec 8 20:07 libcusolver_static.a lrwxrwxrwx 1 foo bar 18 Dec 8 20:07 libcusparse.so -&gt; libcusparse.so.8.0 lrwxrwxrwx 1 foo bar 21 Dec 8 20:06 libcusparse.so.8.0 -&gt; libcusparse.so.8.0.44 -rwxr-xr-x 1 foo bar 41M Dec 8 20:07 libcusparse.so.8.0.44 -rw-r--r-- 1 foo bar 50M Dec 8 20:06 libcusparse_static.a"><pre class="notranslate"><code class="notranslate">-rw-r--r-- 1 foo bar 52M Dec 8 20:06 libcublas_device.a lrwxrwxrwx 1 foo bar 16 Dec 8 20:06 libcublas.so -&gt; libcublas.so.8.0 lrwxrwxrwx 1 foo bar 19 Dec 8 20:07 libcublas.so.8.0 -&gt; libcublas.so.8.0.45 -rwxr-xr-x 1 foo bar 40M Dec 8 20:06 libcublas.so.8.0.45 -rw-r--r-- 1 foo bar 46M Dec 8 20:07 libcublas_static.a -rw-r--r-- 1 foo bar 546K Dec 8 20:07 libcudadevrt.a lrwxrwxrwx 1 foo bar 16 Dec 8 20:06 libcudart.so -&gt; libcudart.so.8.0 lrwxrwxrwx 1 foo bar 19 Dec 8 20:07 libcudart.so.8.0 -&gt; libcudart.so.8.0.44 -rwxr-xr-x 1 foo bar 406K Dec 8 20:06 libcudart.so.8.0.44 -rw-r--r-- 1 foo bar 757K Dec 8 20:07 libcudart_static.a lrwxrwxrwx 1 foo bar 15 Dec 8 20:06 libcufft.so -&gt; libcufft.so.8.0 lrwxrwxrwx 1 foo bar 18 Dec 8 20:07 libcufft.so.8.0 -&gt; libcufft.so.8.0.44 -rwxr-xr-x 1 foo bar 140M Dec 8 20:06 libcufft.so.8.0.44 -rw-r--r-- 1 foo bar 124M Dec 8 20:07 libcufft_static.a lrwxrwxrwx 1 foo bar 16 Dec 8 20:06 libcufftw.so -&gt; libcufftw.so.8.0 lrwxrwxrwx 1 foo bar 19 Dec 8 20:07 libcufftw.so.8.0 -&gt; libcufftw.so.8.0.44 -rwxr-xr-x 1 foo bar 466K Dec 8 20:06 libcufftw.so.8.0.44 -rw-r--r-- 1 foo bar 42K Dec 8 20:07 libcufftw_static.a lrwxrwxrwx 1 foo bar 17 Dec 8 20:06 libcuinj64.so -&gt; libcuinj64.so.8.0 lrwxrwxrwx 1 foo bar 20 Dec 8 20:06 libcuinj64.so.8.0 -&gt; libcuinj64.so.8.0.44 -rwxr-xr-x 1 foo bar 6.2M Dec 8 20:06 libcuinj64.so.8.0.44 -rw-r--r-- 1 foo bar 1.6M Dec 8 20:07 libculibos.a lrwxrwxrwx 1 foo bar 16 Dec 8 20:06 libcurand.so -&gt; libcurand.so.8.0 lrwxrwxrwx 1 foo bar 19 Dec 8 20:07 libcurand.so.8.0 -&gt; libcurand.so.8.0.44 -rwxr-xr-x 1 foo bar 57M Dec 8 20:07 libcurand.so.8.0.44 -rw-r--r-- 1 foo bar 57M Dec 8 20:06 libcurand_static.a lrwxrwxrwx 1 foo bar 18 Dec 8 20:06 libcusolver.so -&gt; libcusolver.so.8.0 lrwxrwxrwx 1 foo bar 21 Dec 8 20:07 libcusolver.so.8.0 -&gt; libcusolver.so.8.0.44 -rwxr-xr-x 1 foo bar 52M Dec 8 20:06 libcusolver.so.8.0.44 -rw-r--r-- 1 foo bar 22M Dec 8 20:07 libcusolver_static.a lrwxrwxrwx 1 foo bar 18 Dec 8 20:07 libcusparse.so -&gt; libcusparse.so.8.0 lrwxrwxrwx 1 foo bar 21 Dec 8 20:06 libcusparse.so.8.0 -&gt; libcusparse.so.8.0.44 -rwxr-xr-x 1 foo bar 41M Dec 8 20:07 libcusparse.so.8.0.44 -rw-r--r-- 1 foo bar 50M Dec 8 20:06 libcusparse_static.a </code></pre></div> <p dir="auto">cuDNN:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="lrwxrwxrwx 1 foo bar 13 Jul 27 07:55 libcudnn.so -&gt; libcudnn.so.5 lrwxrwxrwx 1 foo bar 17 Jul 27 07:55 libcudnn.so.5 -&gt; libcudnn.so.5.1.5 -rwxr-xr-x 1 foo bar 76M Jul 27 07:53 libcudnn.so.5.1.5 -rw-r--r-- 1 foo bar 67M Jul 27 07:53 libcudnn_static.a"><pre class="notranslate"><code class="notranslate">lrwxrwxrwx 1 foo bar 13 Jul 27 07:55 libcudnn.so -&gt; libcudnn.so.5 lrwxrwxrwx 1 foo bar 17 Jul 27 07:55 libcudnn.so.5 -&gt; libcudnn.so.5.1.5 -rwxr-xr-x 1 foo bar 76M Jul 27 07:53 libcudnn.so.5.1.5 -rw-r--r-- 1 foo bar 67M Jul 27 07:53 libcudnn_static.a </code></pre></div> <p dir="auto"><code class="notranslate">tenserflow.__version__: 0.12.head</code></p>
1
<h3 dir="auto">Describe your issue.</h3> <p dir="auto">Scipy requires numpy.</p> <p dir="auto">But both include (at least in their Windows wheels) a form of libopenblas.</p> <p dir="auto">So when you want to redistribute an app that is using scipy you are forced to redistribute 2 copies of libopenblas (each 35 MB) that both get loaded into memory.</p> <p dir="auto">A simple solution would be to publish libopenblas as an own library on Pypi (and make scipy and numpy depending on it).<br> An alternative solution would be for scipy to use the numpy installed libopenblas.</p> <h3 dir="auto">Reproducing Code Example</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pip install scipy"><pre class="notranslate"><span class="pl-s1">pip</span> <span class="pl-s1">install</span> <span class="pl-s1">scipy</span></pre></div> <h3 dir="auto">Error message</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="No error message"><pre class="notranslate">No error message</pre></div> <h3 dir="auto">SciPy/NumPy/Python version information</h3> <p dir="auto">1.91/1.23.4/3.10.8</p>
<p dir="auto">This is a follow up to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1055729026" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/15050" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/15050/hovercard" href="https://github.com/scipy/scipy/issues/15050">gh-15050</a>, which describes a performance issue on arm64 macOS due to having two OpenBLAS libraries present. In the <code class="notranslate">arm64</code> wheels for SciPy <code class="notranslate">1.7.3</code>, that was fixed by setting a single environment variable (<code class="notranslate">OPENBLAS_THREAD_TIMEOUT</code>) in <code class="notranslate">_distributor_init.py</code>.</p> <p dir="auto">That may not be the optimal long-term fix, and scikit-learn has seen a similar issue on Linux when two OpenMP runtimes are present. So this issue is for tracking another potential solution. Starting from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1055729026" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/15050" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/15050/hovercard?comment_id=975318631&amp;comment_type=issue_comment" href="https://github.com/scipy/scipy/issues/15050#issuecomment-975318631">#15050 (comment)</a>, comment by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ogrisel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ogrisel">@ogrisel</a>, copied here:</p> <blockquote> <p dir="auto"><em>Opened <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1059328220" data-permission-text="Title is private" data-url="https://github.com/MacPython/scipy-wheels/issues/143" data-hovercard-type="pull_request" data-hovercard-url="/MacPython/scipy-wheels/pull/143/hovercard" href="https://github.com/MacPython/scipy-wheels/pull/143">MacPython/scipy-wheels#143</a> for the environment variable solution. I'd like to go with that for 1.7.3. To be discussed I'd say if we keep that or if we want to rebuild OpenBLAS for 1.8.0.</em></p> </blockquote> <p dir="auto"><em>Indeed for a minor release, a minimal fix only for the macos m1 problem is best.</em></p> <p dir="auto"><em>For the more medium term plan, maybe we could do this series of change more progressively. Here are some suggestions:</em></p> <ul dir="auto"> <li><em>Build OpenBLAS with <code class="notranslate">THREAD_TIMEOUT=1</code> for the wheels will probably help for the short to medium term on making it possible to workaround problems such as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="957239769" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/20642" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/20642/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/20642">scikit-learn/scikit-learn#20642</a> when there are several threading runtimes linked to the same Python process.</em></li> </ul> <p dir="auto"><em>For the even longer term we could try plan changes to completely avoid redundancy of OpenBLAS and OpenMP wheels in the scipy stack. First for OpenBLAS itself:</em></p> <ul dir="auto"> <li><em>Expose the Cython BLAS API in <code class="notranslate">numpy.linalg</code> the same way <a href="https://docs.scipy.org/doc/scipy/reference/linalg.cython_blas.html" rel="nofollow">scipy.linalg does it</a>;</em></li> <li><em>Make scipy use the BLAS implementation of numpy and stop shipping it (while continuing exposing it via the Cython BLAS API replicated in scipy for backward compat reasons). This means that pypi will stop shipping two copies of OpenBLAS for the scipy stack which should help with maintenance in the long run (and reduce a bit the scipy wheel sizes which is always nice).</em></li> <li><em>This way numpy would be the official BLAS implementation provider for the full scipy stack.</em></li> </ul> <p dir="auto"><em>About the switch from native OpenBLAS threads to OpenMP, this would be nice for scikit-learn but <a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60035" rel="nofollow">libgomp is still not fork safe</a>. conda-forge typically replaces libgomp by llvm-openmp by default for this reason. Note that on linux, gcc is still the recommended compiler for conda-forge, which means that the library is built against libgomp but then the openmp runtime is replaced afterwards.</em></p> <p dir="auto"><em>Also note, for some reason conda-forge decided to use OpenBLAS native threads by default on Linux while it's also possible to make it use OpenMP. See the <code class="notranslate">2020-07-17</code> entry of the <a href="https://conda-forge.org/docs/user/announcements.html" rel="nofollow">conda-forge announcements</a>. Maybe <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/isuruf/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/isuruf">@isuruf</a> can explain why not use LLVM OpenMP (edit: added missing LLVM) by default on Linux?</em></p> <p dir="auto"><em>More details on OpenMP in conda-forge in <a href="https://conda-forge.org/docs/maintainer/knowledge_base.html#openmp" rel="nofollow">https://conda-forge.org/docs/maintainer/knowledge_base.html#openmp</a></em></p> <p dir="auto"><em>Maybe the topic of using OpenMP in the scipy stack deserves a <a href="https://discuss.scientific-python.org/c/specs" rel="nofollow">Scientific Python SPEC</a>.</em></p> <p dir="auto">My main reply:</p> <blockquote> <p dir="auto"><em>This way numpy would be the official BLAS implementation provider for the full scipy stack.</em></p> </blockquote> <p dir="auto"><em>This sounds less than ideal to me - we'd have to duplicate the Cython APIs, plus NumPy has far fewer BLAS/LAPACK needs than SciPy and is still on an older minimum required version than SciPy (that's why for example Accelerate is re-enabled in NumPy but cannot be in SciPy).</em></p> <p dir="auto"><em>My first reaction is that shipping a standalone wheel would be preferable to this solution.</em></p> <blockquote> <p dir="auto"><em>Maybe the topic of using OpenMP in the scipy stack deserves a Scientific Python SPEC.</em></p> </blockquote> <p dir="auto"><em>Yes, I think it does. And it's broader than just packaging, there's an important UX question there as well that deserves thinking about - are we continuing to default to single-threaded everywhere, except for BLAS/LAPACK calls?</em></p> <p dir="auto">And <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ogrisel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ogrisel">@ogrisel</a>'s reply:</p> <blockquote> <p dir="auto"><em>My first reaction is that shipping a standalone wheel would be preferable to this solution.</em></p> </blockquote> <p dir="auto"><em>Fine with me as well.</em></p> <blockquote> <p dir="auto"><em>are we continuing to default to single-threaded everywhere, except for BLAS/LAPACK calls?</em></p> </blockquote> <p dir="auto"><em>I cannot say for scipy but for scikit-learn we have already started to use OpenMP multithreaded Cython code by default for some components and are progressively generalizing this approach in the code base.</em></p> <p dir="auto">xref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="450799658" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/10239" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/10239/hovercard" href="https://github.com/scipy/scipy/issues/10239">gh-10239</a> for the issues around OpenMP, and why we don't use it in SciPy.</p> <p dir="auto">For the main topic of this issue: shipping separate OpenBLAS and OpenMP wheels isn't great either, and not something I'd like us to be responsible for. But it's probably either that, or stay with the status quo - which perhaps isn't very healthy if scikit-learn continues to use more OpenMP in more of its API.</p> <p dir="auto">The issue is specific to PyPI/wheels, because any other binary install mechanism tends to have a proper package manager which can guarantee only a single OpenBLAS/OpenMP library is used. Shipping native dependencies like these as separate wheels is in general an unhealthy idea for multiple reasons, but if it's just limited to OpenBLAS and OpenMP and we can scope it to just the NumPy/SciPy stack for those libraries, then it may be okay to do.</p>
1
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" 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" checked=""> 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" checked=""> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>: 5.0.2</p> <h1 dir="auto">Steps to Reproduce</h1> <p dir="auto"><code class="notranslate">celery -A proj worker --pool=gevent</code></p> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: 3.6.9</li> <li><strong>Minimal Celery Version</strong>: 5.0.2</li> <li><strong>Minimal Kombu Version</strong>: 5.0.2</li> <li><strong>Minimal Broker Version</strong>: rabbitmq_server-3.6.10</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: Ubuntu 18.04</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tornado~=6.0.2 mongoengine~=0.17.0 passlib==1.7.3 PyJWT==1.7.1 celery==5.0.2 twilio==6.0.0 pytest~=5.3.2 python-gitlab~=2.4.0 bcrypt==3.1.7 pandas~=1.1.2 boto3==1.15.1 botocore==1.18.1 validate_email==1.3 py3DNS==3.2.1 pillow~=7.2.0 requests pyfcm==1.3.1 gevent==20.9.0 setuptools~=39.1.0"><pre class="notranslate"><code class="notranslate">tornado~=6.0.2 mongoengine~=0.17.0 passlib==1.7.3 PyJWT==1.7.1 celery==5.0.2 twilio==6.0.0 pytest~=5.3.2 python-gitlab~=2.4.0 bcrypt==3.1.7 pandas~=1.1.2 boto3==1.15.1 botocore==1.18.1 validate_email==1.3 py3DNS==3.2.1 pillow~=7.2.0 requests pyfcm==1.3.1 gevent==20.9.0 setuptools~=39.1.0 </code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">Run Celery with gevent pool</p> <h1 dir="auto">Actual Behavior</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/usr/local/bin/celery&quot;, line 8, in &lt;module&gt; sys.exit(main()) File &quot;/usr/local/lib/python3.6/dist-packages/celery/__main__.py&quot;, line 14, in main from celery.bin.celery import main as _main File &quot;/usr/local/lib/python3.6/dist-packages/celery/bin/celery.py&quot;, line 15, in &lt;module&gt; from celery.bin.amqp import amqp File &quot;/usr/local/lib/python3.6/dist-packages/celery/bin/amqp.py&quot;, line 7, in &lt;module&gt; from click_repl import register_repl File &quot;/usr/local/lib/python3.6/dist-packages/click_repl/__init__.py&quot;, line 2, in &lt;module&gt; from prompt_toolkit.completion import Completer, Completion File &quot;/usr/local/lib/python3.6/dist-packages/prompt_toolkit/__init__.py&quot;, line 16, in &lt;module&gt; from .application import Application File &quot;/usr/local/lib/python3.6/dist-packages/prompt_toolkit/application/__init__.py&quot;, line 1, in &lt;module&gt; from .application import Application File &quot;/usr/local/lib/python3.6/dist-packages/prompt_toolkit/application/application.py&quot;, line 41, in &lt;module&gt; from prompt_toolkit.buffer import Buffer File &quot;/usr/local/lib/python3.6/dist-packages/prompt_toolkit/buffer.py&quot;, line 28, in &lt;module&gt; from .application.current import get_app File &quot;/usr/local/lib/python3.6/dist-packages/prompt_toolkit/application/current.py&quot;, line 75, in &lt;module&gt; &quot;_current_app_session&quot;, default=AppSession() TypeError: 'type' object is not subscriptable"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/usr/local/bin/celery", line 8, in &lt;module&gt; sys.exit(main()) File "/usr/local/lib/python3.6/dist-packages/celery/__main__.py", line 14, in main from celery.bin.celery import main as _main File "/usr/local/lib/python3.6/dist-packages/celery/bin/celery.py", line 15, in &lt;module&gt; from celery.bin.amqp import amqp File "/usr/local/lib/python3.6/dist-packages/celery/bin/amqp.py", line 7, in &lt;module&gt; from click_repl import register_repl File "/usr/local/lib/python3.6/dist-packages/click_repl/__init__.py", line 2, in &lt;module&gt; from prompt_toolkit.completion import Completer, Completion File "/usr/local/lib/python3.6/dist-packages/prompt_toolkit/__init__.py", line 16, in &lt;module&gt; from .application import Application File "/usr/local/lib/python3.6/dist-packages/prompt_toolkit/application/__init__.py", line 1, in &lt;module&gt; from .application import Application File "/usr/local/lib/python3.6/dist-packages/prompt_toolkit/application/application.py", line 41, in &lt;module&gt; from prompt_toolkit.buffer import Buffer File "/usr/local/lib/python3.6/dist-packages/prompt_toolkit/buffer.py", line 28, in &lt;module&gt; from .application.current import get_app File "/usr/local/lib/python3.6/dist-packages/prompt_toolkit/application/current.py", line 75, in &lt;module&gt; "_current_app_session", default=AppSession() TypeError: 'type' object is not subscriptable </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 checked the <a href="https://github.com/celery/celery/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+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%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 in this issue<br> (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h1 dir="auto">Description</h1> <p dir="auto">The documentation for celery.app.Task describes an attribute <code class="notranslate">autoregister</code> and implies that if set to true the task will be registered automatically ("If disabled this task won’t be registered automatically."). However this feature has sadly been removed with the celery 4.0 release.<br> <a href="https://docs.celeryproject.org/en/latest/reference/celery.app.task.html#autoregister" rel="nofollow">https://docs.celeryproject.org/en/latest/reference/celery.app.task.html#autoregister</a></p> <p dir="auto">The attribute doesn't appear to be used anywhere, a quick search of the code base found only one other occurrence in the changelog for v1.0.</p> <h1 dir="auto">Suggestions</h1> <p dir="auto">Either re-add the automatic registration for class based tasks, remove the field or clarify the documentation.</p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.5</li> <li>Operating System version: macos 10.15.2</li> <li>Java version: openJDK8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>create a service named Greeting service</li> <li>startup two nacos instances representing as two registry center in two different zones.</li> <li>startup two greeting service instances registering to both nacos registry with different registry id</li> <li>startup one consumer instance registering to both nacos registry with different zone id.</li> <li>use consumer to call greeting service with cluster=zone-aware and registry_zone parameter.</li> </ol> <p dir="auto">The code is simple so I will ignore them and just paste properties as below:</p> <p dir="auto">#Provider#</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dubbo.protocol.name=dubbo dubbo.protocol.port=12345 dubbo.config.multiple=true dubbo.registries.a.id=nuc dubbo.registries.a.address=nacos://127.0.0.1:8848 dubbo.registries.a.zone=nuc dubbo.registries.a.use-as-config-center=false dubbo.registries.b.id=mbp dubbo.registries.b.address=nacos://192.168.1.31:8848 dubbo.registries.b.zone=mbp dubbo.registries.b.use-as-config-center=false"><pre class="notranslate"><code class="notranslate">dubbo.protocol.name=dubbo dubbo.protocol.port=12345 dubbo.config.multiple=true dubbo.registries.a.id=nuc dubbo.registries.a.address=nacos://127.0.0.1:8848 dubbo.registries.a.zone=nuc dubbo.registries.a.use-as-config-center=false dubbo.registries.b.id=mbp dubbo.registries.b.address=nacos://192.168.1.31:8848 dubbo.registries.b.zone=mbp dubbo.registries.b.use-as-config-center=false </code></pre></div> <p dir="auto">#Consumer#</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="server.port=0 ## Dubbo Registry dubbo.registry.address=nacos://127.0.0.1:8848?zone=nuc|nacos://192.168.1.31:8848?zone=mbp dubbo.registry.zone dubbo.registry.use-as-config-center=false"><pre class="notranslate"><code class="notranslate">server.port=0 ## Dubbo Registry dubbo.registry.address=nacos://127.0.0.1:8848?zone=nuc|nacos://192.168.1.31:8848?zone=mbp dubbo.registry.zone dubbo.registry.use-as-config-center=false </code></pre></div> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" public String hello(String name) { logger.info(name); RpcContext.getContext().setAttachment(&quot;cluster&quot;, &quot;zone-aware&quot;); RpcContext.getContext().setAttachment(&quot;registry_zone&quot;, &quot;nuc&quot;); return greetingService.sayHelloTo(name); }"><pre class="notranslate"> <span class="pl-k">public</span> <span class="pl-smi">String</span> <span class="pl-s1">hello</span>(<span class="pl-smi">String</span> <span class="pl-s1">name</span>) { <span class="pl-s1">logger</span>.<span class="pl-en">info</span>(<span class="pl-s1">name</span>); <span class="pl-smi">RpcContext</span>.<span class="pl-en">getContext</span>().<span class="pl-en">setAttachment</span>(<span class="pl-s">"cluster"</span>, <span class="pl-s">"zone-aware"</span>); <span class="pl-smi">RpcContext</span>.<span class="pl-en">getContext</span>().<span class="pl-en">setAttachment</span>(<span class="pl-s">"registry_zone"</span>, <span class="pl-s">"nuc"</span>); <span class="pl-k">return</span> <span class="pl-s1">greetingService</span>.<span class="pl-en">sayHelloTo</span>(<span class="pl-s1">name</span>); }</pre></div> <h3 dir="auto">Expected Result</h3> <p dir="auto">I'm confused here, I don't know what to expect. According to the explanation by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/chickenlj/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/chickenlj">@chickenlj</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="529961090" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/5399" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/5399/hovercard" href="https://github.com/apache/dubbo/issues/5399">#5399</a> , One provider instance such as B1 should be able to register to multiple registries in the same time.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18097545/70682056-8ea65300-1cd8-11ea-8e9b-cf6284e04e48.png"><img src="https://user-images.githubusercontent.com/18097545/70682056-8ea65300-1cd8-11ea-8e9b-cf6284e04e48.png" alt="" style="max-width: 100%;"></a></p> <p dir="auto">But ZoneAware policy is being executed in ClusterInvoker level. The ZoneAwareClusterInvoker use zone value to decide which FailoverClusterInvoker (contains RegsitryDirectory). I know there is a bug in 2.7.5 that will drop zone parameter <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="550012880" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/5654" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/5654/hovercard" href="https://github.com/apache/dubbo/issues/5654">#5654</a> , but this doesn't matter. Even if that is fixed in 2.7.6, the problem is still there, that is:</p> <p dir="auto">you choose the right registry, but the registry still list all available DubboInvoker (B1, B2), meanwhile, there is no LoadBalance based on zone value as there is no such value on provider. The consumer A1 can still go to B2 even when B1 is alive.</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">When using zone-aware policy, should one service instance can only register to one registry? but this will lose the ability to use services in other zone as a backup. Am I missing something?...</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/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: 0.2.0</li> <li>Operating System version: mac</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/20470232/46243870-01e0e380-c40b-11e8-88f4-8e07ab4a4079.png"><img src="https://user-images.githubusercontent.com/20470232/46243870-01e0e380-c40b-11e8-88f4-8e07ab4a4079.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/20470232/46243934-aa8f4300-c40b-11e8-9cc0-9349eada7a3f.png"><img src="https://user-images.githubusercontent.com/20470232/46243934-aa8f4300-c40b-11e8-9cc0-9349eada7a3f.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Expected Result</h3> <p dir="auto">本应该注入两个协议,但实际上一个协议都没注入</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">启动spring boot 找不到指定协议名的bean</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/20470232/46243908-48364280-c40b-11e8-928a-46e138a7648c.png"><img src="https://user-images.githubusercontent.com/20470232/46243908-48364280-c40b-11e8-928a-46e138a7648c.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">!!而且注入失败也没有提示,不调试根本无感知</p> <p dir="auto">测试单个注入不管是jsonrpc还是dubbo都可以成功,但是多个注册就根本注册失败</p>
0
<p dir="auto"><strong>Context:</strong></p> <ul dir="auto"> <li>Playwright Version: 1.27.0</li> <li>Operating System: Mac</li> <li>Node.js version: 16 LTS</li> <li>Browser: All</li> </ul> <p dir="auto"><strong>Code Snippet</strong></p> <p dir="auto">I couldn't get it working in CodeSandbox but please see the reproduction <a href="https://github.com/harry-gocity/playwright-import">here</a> (or try a <a href="https://codesandbox.io/s/github/harry-gocity/playwright-import" rel="nofollow">sandbox</a>)</p> <ol dir="auto"> <li>run <code class="notranslate">npx playwright test</code>- the test should pass</li> <li>uncomment <code class="notranslate">import {testData} from '../mockData'</code> in the <code class="notranslate">repro.test.ts</code> file</li> <li>run the test again</li> </ol> <p dir="auto"><strong>Describe the bug</strong></p> <p dir="auto">The test will fail on the second run with an error, event though the import that is causing the error in <code class="notranslate">mockData.ts</code> is not used by the playwright test itself. This also appears when our <code class="notranslate">mockData.ts</code> file imports types from other files, and in going to those files playwright evaluates module level js that would not normally be run (e.g. outside of NextJs runtime). We don't see this behaviour with jest when running unit tests.</p> <p dir="auto">We have a general mock data file that is used across our unit/integration/e2e tests, which contains info such as dummy card details, mock redux state, pretend user details etc. Importing anything from this file in our playwright tests seems to result in playwright evaluating every single import in that file rather than just using what it needs.</p> <p dir="auto">There is a similar issue here (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1413379382" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/18150" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/18150/hovercard" href="https://github.com/microsoft/playwright/issues/18150">#18150</a>) which relates to using experimental components and not being able to import anything other than components. We aren't using component testing, and either way I would consider the <code class="notranslate">mockData</code> file to essentially be our helper in that scenario.</p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: v1.31.2</li> <li>Operating System: macos 13.2.1</li> <li>Browser: Chrome</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <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="const { chromium } = require(&quot;playwright-core&quot;); (async () =&gt; { const browser = await chromium.connectOverCDP(`http://localhost:12345`); const contexts = browser.contexts(); // BUG: I expect more than 1 if I have more than 1 chrome profiles open console.log(`contexts`, contexts.length); })();"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> chromium <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"playwright-core"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">browser</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">chromium</span><span class="pl-kos">.</span><span class="pl-en">connectOverCDP</span><span class="pl-kos">(</span><span class="pl-s">`http://localhost:12345`</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">contexts</span> <span class="pl-c1">=</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">contexts</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// BUG: I expect more than 1 if I have more than 1 chrome profiles open</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">`contexts`</span><span class="pl-kos">,</span> <span class="pl-s1">contexts</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>Ensure that your chrome is launched with CDP port enabled at 12345</li> <li>There are more than 1 chrome profiles open</li> <li>Run the code above</li> </ul> <p dir="auto"><strong>Expected</strong></p> <ul dir="auto"> <li>Log should print the number of open chrome profiles</li> </ul> <p dir="auto"><strong>Actual</strong></p> <ul dir="auto"> <li>Log always prints 1</li> </ul>
0
<p dir="auto">I got this while trying to overwrite the <code class="notranslate">getindex</code> function in <a href="https://github.com/QuantumBFS/BitBasis.jl">BitBasis.jl</a>, it can be re-produced by the following code</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="using BitBasis struct SubBit{T, L} parent::BitStr{T, L} index::Int end Base.getindex(x::BitStr, index::Int) = SubBit(x, index)"><pre class="notranslate"><span class="pl-k">using</span> BitBasis <span class="pl-k">struct</span> SubBit{T, L} parent<span class="pl-k">::</span><span class="pl-c1">BitStr{T, L}</span> index<span class="pl-k">::</span><span class="pl-c1">Int</span> <span class="pl-k">end</span> Base<span class="pl-k">.</span><span class="pl-en">getindex</span>(x<span class="pl-k">::</span><span class="pl-c1">BitStr</span>, index<span class="pl-k">::</span><span class="pl-c1">Int</span>) <span class="pl-k">=</span> <span class="pl-c1">SubBit</span>(x, index)</pre></div> <p dir="auto">Then type</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="bit&quot;101&quot;[1]"><pre class="notranslate"><span class="pl-s"><span class="pl-pds"><span class="pl-c1">bit</span>"</span>101<span class="pl-pds">"</span></span>[<span class="pl-c1">1</span>]</pre></div> <p dir="auto">in REPL will get this segmentation fault. Not sure why, if I remove the overloading of <code class="notranslate">getindex</code> inside <code class="notranslate">BitBasis</code> then it is fine.</p> <p dir="auto"><strong>versioninfo</strong></p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; versioninfo() Julia Version 1.1.0 Commit 80516ca202 (2019-01-21 21:24 UTC) Platform Info: OS: macOS (x86_64-apple-darwin18.5.0) CPU: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.1 (ORCJIT, skylake) Environment: JULIA_EDITOR = code"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">versioninfo</span>() Julia Version <span class="pl-c1">1.1</span>.<span class="pl-c1">0</span> Commit <span class="pl-c1">80516</span>ca202 (<span class="pl-c1">2019</span><span class="pl-k">-</span><span class="pl-c1">01</span><span class="pl-k">-</span><span class="pl-c1">21</span> <span class="pl-c1">21</span><span class="pl-k">:</span><span class="pl-c1">24</span> UTC) Platform Info<span class="pl-k">:</span> OS<span class="pl-k">:</span> macOS (x86_64<span class="pl-k">-</span>apple<span class="pl-k">-</span>darwin18.<span class="pl-c1">5.0</span>) CPU<span class="pl-k">:</span> <span class="pl-c1">Intel</span>(R) <span class="pl-c1">Core</span>(TM) i7<span class="pl-k">-</span><span class="pl-c1">7700</span>HQ CPU @ <span class="pl-c1">2.80</span>GHz WORD_SIZE<span class="pl-k">:</span> <span class="pl-c1">64</span> LIBM<span class="pl-k">:</span> libopenlibm LLVM<span class="pl-k">:</span> libLLVM<span class="pl-k">-</span><span class="pl-c1">6.0</span>.<span class="pl-c1">1</span> (ORCJIT, skylake) Environment<span class="pl-k">:</span> JULIA_EDITOR <span class="pl-k">=</span> code</pre></div>
<p dir="auto">The following recursively nested exception handling causes a segfault on linux x86_64, with <em>both</em> julia 0.6 and julia 1.0. This seems to happen at the boundary of a stack overflow, as it's fine for all <code class="notranslate">n &lt; 27542</code> on my system, and seems to segfault above that.</p> <p dir="auto">This could be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="162287690" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/17109" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/17109/hovercard" href="https://github.com/JuliaLang/julia/issues/17109">#17109</a>, though running the first example code from that issue works fine for me.</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@noinline boom() = error(&quot;Boom&quot;) function evil(n) if n == 0 return 1 end try evil(n-1) catch boom() end end evil(1000000)"><pre class="notranslate"><span class="pl-c1">@noinline</span> <span class="pl-en">boom</span>() <span class="pl-k">=</span> <span class="pl-c1">error</span>(<span class="pl-s"><span class="pl-pds">"</span>Boom<span class="pl-pds">"</span></span>) <span class="pl-k">function</span> <span class="pl-en">evil</span>(n) <span class="pl-k">if</span> n <span class="pl-k">==</span> <span class="pl-c1">0</span> <span class="pl-k">return</span> <span class="pl-c1">1</span> <span class="pl-k">end</span> <span class="pl-k">try</span> <span class="pl-c1">evil</span>(n<span class="pl-k">-</span><span class="pl-c1">1</span>) <span class="pl-k">catch</span> <span class="pl-c1">boom</span>() <span class="pl-k">end</span> <span class="pl-k">end</span> <span class="pl-c1">evil</span>(<span class="pl-c1">1000000</span>)</pre></div> <p dir="auto">To be clear, I didn't find this in real code - it's an intentional stress test for a WIP fix for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="200094192" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/19979" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/19979/hovercard" href="https://github.com/JuliaLang/julia/issues/19979">#19979</a>.</p>
1
<p dir="auto">Looking through Heroku logs we are getting <strong>a lot</strong> of R14 Memory errors.</p>
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/change-the-font-size-of-an-element#?solution=%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%20%20p%20%7Bfont-size%3A%2019px%3B%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%3Cp%20class%3D%22red-text%22%3EKitty%20ipsum%20dolor%20sit%20amet%2C%20shed%20everywhere%20shed%20everywhere%20stretching%20attack%20your%20ankles%20chase%20the%20red%20dot%2C%20hairball%20run%20catnip%20eat%20the%20grass%20sniff.%3C%2Fp%3E%0A%3Cp%3E%0A%20%20Purr%20jump%20eat%20the%20grass%20rip%20the%20couch%20scratched%20sunbathe%2C%20shed%20everywhere%20rip%20the%20couch%20sleep%20in%20the%20sink%20fluffy%20fur%20catnip%20scratched.%0A%3C%2Fp%3E" rel="nofollow">Change the Font Size of an Element</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.<br> I found that any config of pixel which is bigger than 16px can pass the examination.<br> Is it a bug?<br> My code:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;style&gt; .red-text { color: red; } p {font-size: 19px;} &lt;/style&gt; &lt;h2 class=&quot;red-text&quot;&gt;CatPhotoApp&lt;/h2&gt; &lt;p class=&quot;red-text&quot;&gt;Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.&lt;/p&gt; &lt;p&gt; Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched. &lt;/p&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> .<span class="pl-c1">red-text</span> { <span class="pl-c1">color</span><span class="pl-kos">:</span> red; } <span class="pl-ent">p</span> {<span class="pl-c1">font-size</span><span class="pl-kos">:</span> <span class="pl-c1">19<span class="pl-smi">px</span></span>;} <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">&gt;</span>CatPhotoApp<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">&gt;</span>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched. <span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span></pre></div>
0
<ul dir="auto"> <li>OpenCV =&gt; 3.4</li> <li>Operating System / Platform =&gt; Windows 7 64 Bit</li> <li>Compiler =&gt; Visual Studio 2017</li> <li>CUDA =&gt; 9.1</li> </ul> <p dir="auto">Can opencv build with cuda 9? There are many errors! however, when I build opencv without cuda, it runs perfectly.</p>
<h5 dir="auto">System information</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.3 main branch snapshot</li> <li>Operating System / Platform =&gt; Windows 64 Bit</li> <li>Compiler =&gt; Visual Studio 2017</li> </ul> <p dir="auto">CMake config output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="found Intel IPP (ICV version): 2017.0.3 [2017.0.3] at: C:/Users/C/Documents/OpenCV/opencv-master/build/3rdparty/ippicv/ippicv_win found Intel IPP IW sources: 2017.0.3 at: C:/Users/C/Documents/OpenCV/opencv-master/build/3rdparty/ippicv/ippiw_win CUDA detected: 9.0 CUDA NVCC target flags: -gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_52,code=sm_52;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-D_FORCE_INLINES Could not find OpenBLAS include. Turning OpenBLAS_FOUND off Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off A library with BLAS API not found. Please specify library location. LAPACK requires BLAS A library with LAPACK API not found. Please specify library location. Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) Could NOT find Pylint (missing: PYLINT_EXECUTABLE) VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file Caffe: NO Protobuf: NO Glog: NO Looking for tiny_dnn.h Looking for tiny_dnn.h - found Found tiny-dnn in: C:/Users/C/Documents/OpenCV/opencv-master/build/3rdparty/tinydnn/tiny-dnn-1.0.0a3 The protocol buffer compiler is not found (PROTOBUF_PROTOC_EXECUTABLE='') freetype2: NO harfbuzz: NO CMake Warning at C:/Users/C/Documents/OpenCV/opencv_contrib-master/modules/matlab/CMakeLists.txt:54 (message): A required dependency of the matlab module (Python Jinja2 package) was not found (installation command: &quot;pip install jinja2&quot;). Disabling Matlab bindings... No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available. Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake. Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components. Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags Excluding from source files list: C:/Users/C/Documents/OpenCV/opencv-master/build/modules/imgproc/accum.neon.cpp Torch importer has been enabled. To run the tests you have to install Torch ('th' executable should be available) and generate testdata using opencv_extra/testdata/dnn/generate_torch_models.py script. Tesseract: NO General configuration for OpenCV 3.3.0-dev ===================================== Version control: unknown Extra modules: Location (extra): C:/Users/C/Documents/OpenCV/opencv_contrib-master/modules Version control (extra): unknown Platform: Timestamp: 2017-10-23T01:04:20Z Host: Windows 10.0.15063 AMD64 CMake: 3.9.0 CMake generator: Visual Studio 15 2017 Win64 CMake build tool: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community/MSBuild/15.0/Bin/MSBuild.exe MSVC: 1911 CPU/HW features: Baseline: SSE SSE2 SSE3 requested: SSE3 Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 requested: SSE4_1 SSE4_2 AVX FP16 AVX2 SSE4_1 (3 files): + SSSE3 SSE4_1 SSE4_2 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX AVX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX AVX2 (8 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 C/C++: Built as dynamic libs?: YES C++11: YES C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/Hostx86/x64/cl.exe (ver 19.11.25547.0) C++ flags (Release): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MP8 /MD /O2 /Ob2 /DNDEBUG /Zi C++ flags (Debug): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MP8 /MDd /Zi /Ob0 /Od /RTC1 C Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/Hostx86/x64/cl.exe C flags (Release): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /MP8 /MD /O2 /Ob2 /DNDEBUG /Zi C flags (Debug): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /MP8 /MDd /Zi /Ob0 /Od /RTC1 Linker flags (Release): /machine:x64 /INCREMENTAL:NO /debug Linker flags (Debug): /machine:x64 /debug /INCREMENTAL ccache: NO Precompiled headers: YES Extra dependencies: cudart.lib nppc.lib nppial.lib nppicc.lib nppicom.lib nppidei.lib nppif.lib nppig.lib nppim.lib nppist.lib nppisu.lib nppitc.lib npps.lib cublas.lib cufft.lib -LIBPATH:C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.0/lib/x64 3rdparty dependencies: OpenCV modules: To be built: cudev core cudaarithm flann imgproc ml objdetect phase_unwrapping plot reg surface_matching video xphoto bgsegm cudabgsegm cudafilters cudaimgproc cudawarping dnn face fuzzy img_hash imgcodecs photo shape videoio xobjdetect cudacodec highgui ts bioinspired dpm features2d line_descriptor saliency text calib3d ccalib cudafeatures2d cudalegacy cudaobjdetect cudaoptflow cudastereo datasets rgbd stereo structured_light superres tracking videostab xfeatures2d ximgproc aruco optflow stitching python3 Disabled: js world contrib_world Disabled by dependency: - Unavailable: java python2 viz cnn_3dobj cvv dnn_modern freetype hdf matlab sfm Windows RT support: NO GUI: QT: NO Win32 UI: YES OpenGL support: NO VTK support: NO Media I/O: ZLib: build (ver 1.2.8) JPEG: build (ver 90) WEBP: build (ver encoder: 0x020e) PNG: build (ver 1.6.24) TIFF: build (ver 42 - 4.0.2) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 1.7.1) GDAL: NO GDCM: NO Video I/O: Video for Windows: YES DC1394 1.x: NO DC1394 2.x: NO FFMPEG: YES (prebuilt binaries) avcodec: YES (ver 57.89.100) avformat: YES (ver 57.71.100) avutil: YES (ver 55.58.100) swscale: YES (ver 4.6.100) avresample: YES (ver 3.5.0) GStreamer: NO OpenNI: NO OpenNI PrimeSensor Modules: NO OpenNI2: NO PvAPI: NO GigEVisionSDK: NO DirectShow: YES Media Foundation: NO XIMEA: NO Intel PerC: NO Intel Media SDK: NO Parallel framework: Concurrency Trace: YES (with Intel ITT) Other third-party libraries: Use Intel IPP: 2017.0.3 [2017.0.3] at: C:/Users/C/Documents/OpenCV/opencv-master/build/3rdparty/ippicv/ippicv_win Use Intel IPP IW: sources (2017.0.3) at: C:/Users/C/Documents/OpenCV/opencv-master/build/3rdparty/ippicv/ippiw_win Use Lapack: NO Use Eigen: NO Use Cuda: YES (ver 9.0) Use OpenCL: YES Use OpenVX: NO Use custom HAL: NO NVIDIA CUDA Use CUFFT: YES Use CUBLAS: YES USE NVCUVID: YES NVIDIA GPU arch: 50 52 60 61 70 NVIDIA PTX archs: Use fast math: NO OpenCL: &lt;Dynamic loading of OpenCL library&gt; Include path: C:/Users/C/Documents/OpenCV/opencv-master/3rdparty/include/opencl/1.2 Use AMDFFT: NO Use AMDBLAS: NO Python 2: Interpreter: C:/Python27/python.exe (ver 2.7.10) Python 3: Interpreter: C:/Users/C/AppData/Local/Programs/Python/Python35/python.exe (ver 3.5) Libraries: C:/Users/C/AppData/Local/Programs/Python/Python35/libs/python35.lib (ver 3.5.0) numpy: C:/Users/C/AppData/Local/Programs/Python/Python35/lib/site-packages/numpy/core/include (ver 1.12.0) packages path: C:/Users/C/AppData/Local/Programs/Python/Python35/Lib/site-packages Python (for build): C:/Python27/python.exe Java: ant: NO JNI: C:/Program Files/Java/jdk1.8.0_111/include C:/Program Files/Java/jdk1.8.0_111/include/win32 C:/Program Files/Java/jdk1.8.0_111/include Java wrappers: NO Java tests: NO Matlab: mex: C:/Program Files/MATLAB/MATLAB Production Server/R2015a/bin/mex.bat Compiler/generator: Not working (bindings will not be generated) Documentation: Doxygen: NO Tests and samples: Tests: YES Performance tests: YES C/C++ Examples: NO Install path: C:/Users/C/Documents/OpenCV/opencv-master/build/install cvconfig.h is in: C:/Users/C/Documents/OpenCV/opencv-master/build ----------------------------------------------------------------- Configuring done"><pre class="notranslate"><code class="notranslate">found Intel IPP (ICV version): 2017.0.3 [2017.0.3] at: C:/Users/C/Documents/OpenCV/opencv-master/build/3rdparty/ippicv/ippicv_win found Intel IPP IW sources: 2017.0.3 at: C:/Users/C/Documents/OpenCV/opencv-master/build/3rdparty/ippicv/ippiw_win CUDA detected: 9.0 CUDA NVCC target flags: -gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_52,code=sm_52;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-D_FORCE_INLINES Could not find OpenBLAS include. Turning OpenBLAS_FOUND off Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off A library with BLAS API not found. Please specify library location. LAPACK requires BLAS A library with LAPACK API not found. Please specify library location. Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) Could NOT find Pylint (missing: PYLINT_EXECUTABLE) VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file Caffe: NO Protobuf: NO Glog: NO Looking for tiny_dnn.h Looking for tiny_dnn.h - found Found tiny-dnn in: C:/Users/C/Documents/OpenCV/opencv-master/build/3rdparty/tinydnn/tiny-dnn-1.0.0a3 The protocol buffer compiler is not found (PROTOBUF_PROTOC_EXECUTABLE='') freetype2: NO harfbuzz: NO CMake Warning at C:/Users/C/Documents/OpenCV/opencv_contrib-master/modules/matlab/CMakeLists.txt:54 (message): A required dependency of the matlab module (Python Jinja2 package) was not found (installation command: "pip install jinja2"). Disabling Matlab bindings... No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available. Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake. Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components. Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags Excluding from source files list: C:/Users/C/Documents/OpenCV/opencv-master/build/modules/imgproc/accum.neon.cpp Torch importer has been enabled. To run the tests you have to install Torch ('th' executable should be available) and generate testdata using opencv_extra/testdata/dnn/generate_torch_models.py script. Tesseract: NO General configuration for OpenCV 3.3.0-dev ===================================== Version control: unknown Extra modules: Location (extra): C:/Users/C/Documents/OpenCV/opencv_contrib-master/modules Version control (extra): unknown Platform: Timestamp: 2017-10-23T01:04:20Z Host: Windows 10.0.15063 AMD64 CMake: 3.9.0 CMake generator: Visual Studio 15 2017 Win64 CMake build tool: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community/MSBuild/15.0/Bin/MSBuild.exe MSVC: 1911 CPU/HW features: Baseline: SSE SSE2 SSE3 requested: SSE3 Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 requested: SSE4_1 SSE4_2 AVX FP16 AVX2 SSE4_1 (3 files): + SSSE3 SSE4_1 SSE4_2 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX AVX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX AVX2 (8 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 C/C++: Built as dynamic libs?: YES C++11: YES C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/Hostx86/x64/cl.exe (ver 19.11.25547.0) C++ flags (Release): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MP8 /MD /O2 /Ob2 /DNDEBUG /Zi C++ flags (Debug): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MP8 /MDd /Zi /Ob0 /Od /RTC1 C Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/Hostx86/x64/cl.exe C flags (Release): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /MP8 /MD /O2 /Ob2 /DNDEBUG /Zi C flags (Debug): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /MP8 /MDd /Zi /Ob0 /Od /RTC1 Linker flags (Release): /machine:x64 /INCREMENTAL:NO /debug Linker flags (Debug): /machine:x64 /debug /INCREMENTAL ccache: NO Precompiled headers: YES Extra dependencies: cudart.lib nppc.lib nppial.lib nppicc.lib nppicom.lib nppidei.lib nppif.lib nppig.lib nppim.lib nppist.lib nppisu.lib nppitc.lib npps.lib cublas.lib cufft.lib -LIBPATH:C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.0/lib/x64 3rdparty dependencies: OpenCV modules: To be built: cudev core cudaarithm flann imgproc ml objdetect phase_unwrapping plot reg surface_matching video xphoto bgsegm cudabgsegm cudafilters cudaimgproc cudawarping dnn face fuzzy img_hash imgcodecs photo shape videoio xobjdetect cudacodec highgui ts bioinspired dpm features2d line_descriptor saliency text calib3d ccalib cudafeatures2d cudalegacy cudaobjdetect cudaoptflow cudastereo datasets rgbd stereo structured_light superres tracking videostab xfeatures2d ximgproc aruco optflow stitching python3 Disabled: js world contrib_world Disabled by dependency: - Unavailable: java python2 viz cnn_3dobj cvv dnn_modern freetype hdf matlab sfm Windows RT support: NO GUI: QT: NO Win32 UI: YES OpenGL support: NO VTK support: NO Media I/O: ZLib: build (ver 1.2.8) JPEG: build (ver 90) WEBP: build (ver encoder: 0x020e) PNG: build (ver 1.6.24) TIFF: build (ver 42 - 4.0.2) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 1.7.1) GDAL: NO GDCM: NO Video I/O: Video for Windows: YES DC1394 1.x: NO DC1394 2.x: NO FFMPEG: YES (prebuilt binaries) avcodec: YES (ver 57.89.100) avformat: YES (ver 57.71.100) avutil: YES (ver 55.58.100) swscale: YES (ver 4.6.100) avresample: YES (ver 3.5.0) GStreamer: NO OpenNI: NO OpenNI PrimeSensor Modules: NO OpenNI2: NO PvAPI: NO GigEVisionSDK: NO DirectShow: YES Media Foundation: NO XIMEA: NO Intel PerC: NO Intel Media SDK: NO Parallel framework: Concurrency Trace: YES (with Intel ITT) Other third-party libraries: Use Intel IPP: 2017.0.3 [2017.0.3] at: C:/Users/C/Documents/OpenCV/opencv-master/build/3rdparty/ippicv/ippicv_win Use Intel IPP IW: sources (2017.0.3) at: C:/Users/C/Documents/OpenCV/opencv-master/build/3rdparty/ippicv/ippiw_win Use Lapack: NO Use Eigen: NO Use Cuda: YES (ver 9.0) Use OpenCL: YES Use OpenVX: NO Use custom HAL: NO NVIDIA CUDA Use CUFFT: YES Use CUBLAS: YES USE NVCUVID: YES NVIDIA GPU arch: 50 52 60 61 70 NVIDIA PTX archs: Use fast math: NO OpenCL: &lt;Dynamic loading of OpenCL library&gt; Include path: C:/Users/C/Documents/OpenCV/opencv-master/3rdparty/include/opencl/1.2 Use AMDFFT: NO Use AMDBLAS: NO Python 2: Interpreter: C:/Python27/python.exe (ver 2.7.10) Python 3: Interpreter: C:/Users/C/AppData/Local/Programs/Python/Python35/python.exe (ver 3.5) Libraries: C:/Users/C/AppData/Local/Programs/Python/Python35/libs/python35.lib (ver 3.5.0) numpy: C:/Users/C/AppData/Local/Programs/Python/Python35/lib/site-packages/numpy/core/include (ver 1.12.0) packages path: C:/Users/C/AppData/Local/Programs/Python/Python35/Lib/site-packages Python (for build): C:/Python27/python.exe Java: ant: NO JNI: C:/Program Files/Java/jdk1.8.0_111/include C:/Program Files/Java/jdk1.8.0_111/include/win32 C:/Program Files/Java/jdk1.8.0_111/include Java wrappers: NO Java tests: NO Matlab: mex: C:/Program Files/MATLAB/MATLAB Production Server/R2015a/bin/mex.bat Compiler/generator: Not working (bindings will not be generated) Documentation: Doxygen: NO Tests and samples: Tests: YES Performance tests: YES C/C++ Examples: NO Install path: C:/Users/C/Documents/OpenCV/opencv-master/build/install cvconfig.h is in: C:/Users/C/Documents/OpenCV/opencv-master/build ----------------------------------------------------------------- Configuring done </code></pre></div> <p dir="auto">VS2017 build output log:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Severity Code Description Project File Line Suppression State Error MSB6006 &quot;cmd.exe&quot; exited with code 1. opencv_core C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error MSB6006 &quot;cmd.exe&quot; exited with code 1. opencv_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_core330d.lib' opencv_ml C:\Users\C\Documents\OpenCV\opencv-master\build\modules\ml\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_core330d.lib' opencv_flann C:\Users\C\Documents\OpenCV\opencv-master\build\modules\flann\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_core330d.lib' opencv_imgproc C:\Users\C\Documents\OpenCV\opencv-master\build\modules\imgproc\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_flann330d.lib' opencv_surface_matching C:\Users\C\Documents\OpenCV\opencv-master\build\modules\surface_matching\LINK 1 Error MSB6006 &quot;cmd.exe&quot; exited with code 1. opencv_cudawarping C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib' opencv_plot C:\Users\C\Documents\OpenCV\opencv-master\build\modules\plot\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib' opencv_phase_unwrapping C:\Users\C\Documents\OpenCV\opencv-master\build\modules\phase_unwrapping\LINK 1 Error MSB6006 &quot;cmd.exe&quot; exited with code 1. opencv_cudafilters C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error MSB6006 &quot;cmd.exe&quot; exited with code 1. opencv_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error MSB6006 &quot;cmd.exe&quot; exited with code 1. opencv_photo C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib' opencv_img_hash C:\Users\C\Documents\OpenCV\opencv-master\build\modules\img_hash\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib' opencv_fuzzy C:\Users\C\Documents\OpenCV\opencv-master\build\modules\fuzzy\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib' opencv_objdetect C:\Users\C\Documents\OpenCV\opencv-master\build\modules\objdetect\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib' opencv_video C:\Users\C\Documents\OpenCV\opencv-master\build\modules\video\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib' opencv_xphoto C:\Users\C\Documents\OpenCV\opencv-master\build\modules\xphoto\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib' opencv_imgcodecs C:\Users\C\Documents\OpenCV\opencv-master\build\modules\imgcodecs\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib' opencv_reg C:\Users\C\Documents\OpenCV\opencv-master\build\modules\reg\LINK 1 Error MSB6006 &quot;cmd.exe&quot; exited with code 1. opencv_cudabgsegm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_objdetect330d.lib' opencv_face C:\Users\C\Documents\OpenCV\opencv-master\build\modules\face\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_video330d.lib' opencv_bgsegm C:\Users\C\Documents\OpenCV\opencv-master\build\modules\bgsegm\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_video330d.lib' opencv_shape C:\Users\C\Documents\OpenCV\opencv-master\build\modules\shape\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_imgcodecs330d.lib' opencv_videoio C:\Users\C\Documents\OpenCV\opencv-master\build\modules\videoio\LINK 1 Error MSB6006 &quot;cmd.exe&quot; exited with code 1. opencv_cudacodec C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_videoio330d.lib' opencv_highgui C:\Users\C\Documents\OpenCV\opencv-master\build\modules\highgui\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_version C:\Users\C\Documents\OpenCV\opencv-master\build\apps\version\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_visualisation C:\Users\C\Documents\OpenCV\opencv-master\build\apps\visualisation\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_annotation C:\Users\C\Documents\OpenCV\opencv-master\build\apps\annotation\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_objdetect330d.lib' opencv_xobjdetect C:\Users\C\Documents\OpenCV\opencv-master\build\modules\xobjdetect\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib' opencv_dnn C:\Users\C\Documents\OpenCV\opencv-master\build\modules\dnn\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_bioinspired C:\Users\C\Documents\OpenCV\opencv-master\build\modules\bioinspired\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_objdetect330d.lib' opencv_dpm C:\Users\C\Documents\OpenCV\opencv-master\build\modules\dpm\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_flann330d.lib' opencv_features2d C:\Users\C\Documents\OpenCV\opencv-master\build\modules\features2d\LINK 1 Error LNK1104 cannot open file '..\..\..\..\lib\Debug\opencv_highgui330d.lib' opencv_waldboost_detector C:\Users\C\Documents\OpenCV\opencv-master\build\modules\xobjdetect\tools\waldboost_detector\LINK 1 Error MSB6006 &quot;cmd.exe&quot; exited with code 1. opencv_cudafeatures2d C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_ml330d.lib' opencv_text C:\Users\C\Documents\OpenCV\opencv-master\build\modules\text\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_features2d330d.lib' opencv_saliency C:\Users\C\Documents\OpenCV\opencv-master\build\modules\saliency\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_features2d330d.lib' opencv_line_descriptor C:\Users\C\Documents\OpenCV\opencv-master\build\modules\line_descriptor\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_perf_videoio C:\Users\C\Documents\OpenCV\opencv-master\build\modules\videoio\LINK 1 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt;::tuple(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt; &amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaimgproc\perf\perf_histogram.cpp) opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 535 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt;::tuple(std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt; &amp;&amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaimgproc\perf\perf_histogram.cpp) opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 536 Error C2535 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt; &amp;std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt;::operator =(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt; &amp;)': member function already defined or declared (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaimgproc\perf\perf_histogram.cpp) opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error C1903 unable to recover from previous error(s); stopping compilation (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaimgproc\perf\perf_histogram.cpp) opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt;::tuple(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaimgproc\perf\perf_blend.cpp) opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 535 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt;::tuple(std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;&amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaimgproc\perf\perf_blend.cpp) opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 536 Error C2535 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt;::operator =(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;)': member function already defined or declared (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaimgproc\perf\perf_blend.cpp) opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error C1903 unable to recover from previous error(s); stopping compilation (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaimgproc\perf\perf_blend.cpp) opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_xphoto330d.lib' opencv_perf_xphoto C:\Users\C\Documents\OpenCV\opencv-master\build\modules\xphoto\LINK 1 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt;::tuple(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudawarping\perf\perf_warping.cpp) opencv_perf_cudawarping C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 535 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt;::tuple(std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;&amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudawarping\perf\perf_warping.cpp) opencv_perf_cudawarping C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 536 Error C2535 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt;::operator =(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;)': member function already defined or declared (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudawarping\perf\perf_warping.cpp) opencv_perf_cudawarping C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error C1903 unable to recover from previous error(s); stopping compilation (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudawarping\perf\perf_warping.cpp) opencv_perf_cudawarping C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error D8040 error creating or communicating with child process opencv_perf_cudaimgproc C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudaimgproc\cl 1 Error D8040 error creating or communicating with child process opencv_perf_cudawarping C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudawarping\cl 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_bioinspired330d.lib' opencv_perf_bioinspired C:\Users\C\Documents\OpenCV\opencv-master\build\modules\bioinspired\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_features2d330d.lib' opencv_calib3d C:\Users\C\Documents\OpenCV\opencv-master\build\modules\calib3d\LINK 1 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt;::tuple(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_core.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 535 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt;::tuple(std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;&amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_core.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 536 Error C2535 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt;::operator =(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;)': member function already defined or declared (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_core.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error C1903 unable to recover from previous error(s); stopping compilation (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_core.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt;::tuple(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt; &amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_element_operations.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 535 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt;::tuple(std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt; &amp;&amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_element_operations.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 536 Error C2535 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt; &amp;std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt;::operator =(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt; &amp;)': member function already defined or declared (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_element_operations.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error C1903 unable to recover from previous error(s); stopping compilation (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_element_operations.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt;::tuple(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_reductions.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 535 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt;::tuple(std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;&amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_reductions.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 536 Error C2535 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt;::operator =(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;)': member function already defined or declared (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_reductions.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error C1903 unable to recover from previous error(s); stopping compilation (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_reductions.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error MSB6006 &quot;cmd.exe&quot; exited with code 1. opencv_xfeatures2d C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error MSB6006 &quot;cmd.exe&quot; exited with code 1. opencv_cudalegacy C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error D8040 error creating or communicating with child process opencv_perf_cudaarithm C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudaarithm\cl 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudabgsegm330d.lib' opencv_perf_cudabgsegm C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudabgsegm\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_text330d.lib' opencv_datasets C:\Users\C\Documents\OpenCV\opencv-master\build\modules\datasets\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudacodec330d.lib' opencv_perf_cudacodec C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudacodec\LINK 1 Error MSB6006 &quot;cmd.exe&quot; exited with code 1. opencv_cudaoptflow C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudafeatures2d330d.lib' opencv_perf_cudafeatures2d C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudafeatures2d\LINK 1 Error MSB6006 &quot;cmd.exe&quot; exited with code 1. opencv_superres C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_calib3d330d.lib' opencv_stereo C:\Users\C\Documents\OpenCV\opencv-master\build\modules\stereo\LINK 1 Error MSB6006 &quot;cmd.exe&quot; exited with code 1. opencv_videostab C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_phase_unwrapping330d.lib' opencv_structured_light C:\Users\C\Documents\OpenCV\opencv-master\build\modules\structured_light\LINK 1 Error MSB6006 &quot;cmd.exe&quot; exited with code 1. opencv_stitching C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_calib3d330d.lib' opencv_aruco C:\Users\C\Documents\OpenCV\opencv-master\build\modules\aruco\LINK 1 Error MSB6006 &quot;cmd.exe&quot; exited with code 1. opencv_cudaobjdetect C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_calib3d330d.lib' opencv_ximgproc C:\Users\C\Documents\OpenCV\opencv-master\build\modules\ximgproc\LINK 1 Error MSB6006 &quot;cmd.exe&quot; exited with code 1. opencv_cudastereo C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_perf_core C:\Users\C\Documents\OpenCV\opencv-master\build\modules\core\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_plot330d.lib' opencv_tracking C:\Users\C\Documents\OpenCV\opencv-master\build\modules\tracking\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_calib3d330d.lib' opencv_ccalib C:\Users\C\Documents\OpenCV\opencv-master\build\modules\ccalib\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_objdetect330d.lib' opencv_createsamples C:\Users\C\Documents\OpenCV\opencv-master\build\apps\createsamples\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_video330d.lib' opencv_optflow C:\Users\C\Documents\OpenCV\opencv-master\build\modules\optflow\LINK 1 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt;::tuple(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt; &amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudastereo\perf\perf_stereo.cpp) opencv_perf_cudastereo C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 535 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt;::tuple(std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt; &amp;&amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudastereo\perf\perf_stereo.cpp) opencv_perf_cudastereo C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 536 Error C2535 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt; &amp;std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt;::operator =(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt; &amp;)': member function already defined or declared (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudastereo\perf\perf_stereo.cpp) opencv_perf_cudastereo C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error C1903 unable to recover from previous error(s); stopping compilation (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudastereo\perf\perf_stereo.cpp) opencv_perf_cudastereo C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_objdetect330d.lib' opencv_traincascade C:\Users\C\Documents\OpenCV\opencv-master\build\apps\traincascade\LINK 1 Error D8040 error creating or communicating with child process opencv_perf_cudastereo C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudastereo\cl 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_aruco330d.lib' opencv_interactive-calibration C:\Users\C\Documents\OpenCV\opencv-master\build\apps\interactive-calibration\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudaoptflow330d.lib' opencv_perf_cudaoptflow C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudaoptflow\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_calib3d330d.lib' opencv_rgbd C:\Users\C\Documents\OpenCV\opencv-master\build\modules\rgbd\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_xfeatures2d330d.lib' opencv_perf_xfeatures2d C:\Users\C\Documents\OpenCV\opencv-master\build\modules\xfeatures2d\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudaobjdetect330d.lib' opencv_perf_cudaobjdetect C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudaobjdetect\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_calib3d330d.lib' opencv_perf_calib3d C:\Users\C\Documents\OpenCV\opencv-master\build\modules\calib3d\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudafilters330d.lib' opencv_perf_cudafilters C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudafilters\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_objdetect330d.lib' opencv_perf_objdetect C:\Users\C\Documents\OpenCV\opencv-master\build\modules\objdetect\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_ximgproc330d.lib' opencv_perf_ximgproc C:\Users\C\Documents\OpenCV\opencv-master\build\modules\ximgproc\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_line_descriptor330d.lib' opencv_perf_line_descriptor C:\Users\C\Documents\OpenCV\opencv-master\build\modules\line_descriptor\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_photo330d.lib' opencv_perf_photo C:\Users\C\Documents\OpenCV\opencv-master\build\modules\photo\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_reg330d.lib' opencv_perf_reg C:\Users\C\Documents\OpenCV\opencv-master\build\modules\reg\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudalegacy330d.lib' opencv_perf_cudalegacy C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudalegacy\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_perf_imgcodecs C:\Users\C\Documents\OpenCV\opencv-master\build\modules\imgcodecs\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_stereo330d.lib' opencv_perf_stereo C:\Users\C\Documents\OpenCV\opencv-master\build\modules\stereo\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_optflow330d.lib' opencv_perf_optflow C:\Users\C\Documents\OpenCV\opencv-master\build\modules\optflow\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_tracking330d.lib' opencv_perf_tracking C:\Users\C\Documents\OpenCV\opencv-master\build\modules\tracking\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_aruco330d.lib' opencv_test_aruco C:\Users\C\Documents\OpenCV\opencv-master\build\modules\aruco\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_video330d.lib' opencv_test_video C:\Users\C\Documents\OpenCV\opencv-master\build\modules\video\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_superres330d.lib' opencv_perf_superres C:\Users\C\Documents\OpenCV\opencv-master\build\modules\superres\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_stitching330d.lib' opencv_perf_stitching C:\Users\C\Documents\OpenCV\opencv-master\build\modules\stitching\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_bgsegm330d.lib' opencv_test_bgsegm C:\Users\C\Documents\OpenCV\opencv-master\build\modules\bgsegm\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_reg330d.lib' opencv_python3 C:\Users\C\Documents\OpenCV\opencv-master\build\modules\python3\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_bioinspired330d.lib' opencv_test_bioinspired C:\Users\C\Documents\OpenCV\opencv-master\build\modules\bioinspired\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_calib3d330d.lib' opencv_test_calib3d C:\Users\C\Documents\OpenCV\opencv-master\build\modules\calib3d\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_video330d.lib' opencv_perf_video C:\Users\C\Documents\OpenCV\opencv-master\build\modules\video\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_perf_imgproc C:\Users\C\Documents\OpenCV\opencv-master\build\modules\imgproc\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudabgsegm330d.lib' opencv_test_cudabgsegm C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudabgsegm\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudacodec330d.lib' opencv_test_cudacodec C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudacodec\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudafeatures2d330d.lib' opencv_test_cudafeatures2d C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudafeatures2d\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudaarithm330d.lib' opencv_test_cudaarithm C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudaarithm\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudafilters330d.lib' opencv_test_cudafilters C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudafilters\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudaimgproc330d.lib' opencv_test_cudaimgproc C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudaimgproc\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudaobjdetect330d.lib' opencv_test_cudaobjdetect C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudaobjdetect\LINK 1 Error MSB6006 &quot;cmd.exe&quot; exited with code 1. opencv_test_cudev C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudalegacy330d.lib' opencv_test_cudalegacy C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudalegacy\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudastereo330d.lib' opencv_test_cudastereo C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudastereo\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_test_core C:\Users\C\Documents\OpenCV\opencv-master\build\modules\core\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudawarping330d.lib' opencv_test_cudawarping C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudawarping\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_dnn330d.lib' opencv_test_dnn C:\Users\C\Documents\OpenCV\opencv-master\build\modules\dnn\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_face330d.lib' opencv_test_face C:\Users\C\Documents\OpenCV\opencv-master\build\modules\face\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudaoptflow330d.lib' opencv_test_cudaoptflow C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudaoptflow\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_flann330d.lib' opencv_test_flann C:\Users\C\Documents\OpenCV\opencv-master\build\modules\flann\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_features2d330d.lib' opencv_perf_features2d C:\Users\C\Documents\OpenCV\opencv-master\build\modules\features2d\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_test_highgui C:\Users\C\Documents\OpenCV\opencv-master\build\modules\highgui\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_img_hash330d.lib' opencv_test_img_hash C:\Users\C\Documents\OpenCV\opencv-master\build\modules\img_hash\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_test_imgcodecs C:\Users\C\Documents\OpenCV\opencv-master\build\modules\imgcodecs\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_line_descriptor330d.lib' opencv_test_line_descriptor C:\Users\C\Documents\OpenCV\opencv-master\build\modules\line_descriptor\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_phase_unwrapping330d.lib' opencv_test_phase_unwrapping C:\Users\C\Documents\OpenCV\opencv-master\build\modules\phase_unwrapping\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_fuzzy330d.lib' opencv_test_fuzzy C:\Users\C\Documents\OpenCV\opencv-master\build\modules\fuzzy\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_optflow330d.lib' opencv_test_optflow C:\Users\C\Documents\OpenCV\opencv-master\build\modules\optflow\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_objdetect330d.lib' opencv_test_objdetect C:\Users\C\Documents\OpenCV\opencv-master\build\modules\objdetect\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_ml330d.lib' opencv_test_ml C:\Users\C\Documents\OpenCV\opencv-master\build\modules\ml\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_photo330d.lib' opencv_test_photo C:\Users\C\Documents\OpenCV\opencv-master\build\modules\photo\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_reg330d.lib' opencv_test_reg C:\Users\C\Documents\OpenCV\opencv-master\build\modules\reg\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_structured_light330d.lib' opencv_test_structured_light C:\Users\C\Documents\OpenCV\opencv-master\build\modules\structured_light\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_stereo330d.lib' opencv_test_stereo C:\Users\C\Documents\OpenCV\opencv-master\build\modules\stereo\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_shape330d.lib' opencv_test_shape C:\Users\C\Documents\OpenCV\opencv-master\build\modules\shape\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_stitching330d.lib' opencv_test_stitching C:\Users\C\Documents\OpenCV\opencv-master\build\modules\stitching\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_superres330d.lib' opencv_test_superres C:\Users\C\Documents\OpenCV\opencv-master\build\modules\superres\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_text330d.lib' opencv_test_text C:\Users\C\Documents\OpenCV\opencv-master\build\modules\text\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_rgbd330d.lib' opencv_test_rgbd C:\Users\C\Documents\OpenCV\opencv-master\build\modules\rgbd\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_features2d330d.lib' opencv_test_features2d C:\Users\C\Documents\OpenCV\opencv-master\build\modules\features2d\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_videostab330d.lib' opencv_test_videostab C:\Users\C\Documents\OpenCV\opencv-master\build\modules\videostab\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_test_videoio C:\Users\C\Documents\OpenCV\opencv-master\build\modules\videoio\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_tracking330d.lib' opencv_test_tracking C:\Users\C\Documents\OpenCV\opencv-master\build\modules\tracking\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_xphoto330d.lib' opencv_test_xphoto C:\Users\C\Documents\OpenCV\opencv-master\build\modules\xphoto\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_xfeatures2d330d.lib' opencv_test_xfeatures2d C:\Users\C\Documents\OpenCV\opencv-master\build\modules\xfeatures2d\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_ximgproc330d.lib' opencv_test_ximgproc C:\Users\C\Documents\OpenCV\opencv-master\build\modules\ximgproc\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_test_imgproc C:\Users\C\Documents\OpenCV\opencv-master\build\modules\imgproc\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_dnn330d.lib' opencv_perf_dnn C:\Users\C\Documents\OpenCV\opencv-master\build\modules\dnn\LINK 1 "><pre class="notranslate"><code class="notranslate">Severity Code Description Project File Line Suppression State Error MSB6006 "cmd.exe" exited with code 1. opencv_core C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error MSB6006 "cmd.exe" exited with code 1. opencv_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_core330d.lib' opencv_ml C:\Users\C\Documents\OpenCV\opencv-master\build\modules\ml\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_core330d.lib' opencv_flann C:\Users\C\Documents\OpenCV\opencv-master\build\modules\flann\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_core330d.lib' opencv_imgproc C:\Users\C\Documents\OpenCV\opencv-master\build\modules\imgproc\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_flann330d.lib' opencv_surface_matching C:\Users\C\Documents\OpenCV\opencv-master\build\modules\surface_matching\LINK 1 Error MSB6006 "cmd.exe" exited with code 1. opencv_cudawarping C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib' opencv_plot C:\Users\C\Documents\OpenCV\opencv-master\build\modules\plot\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib' opencv_phase_unwrapping C:\Users\C\Documents\OpenCV\opencv-master\build\modules\phase_unwrapping\LINK 1 Error MSB6006 "cmd.exe" exited with code 1. opencv_cudafilters C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error MSB6006 "cmd.exe" exited with code 1. opencv_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error MSB6006 "cmd.exe" exited with code 1. opencv_photo C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib' opencv_img_hash C:\Users\C\Documents\OpenCV\opencv-master\build\modules\img_hash\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib' opencv_fuzzy C:\Users\C\Documents\OpenCV\opencv-master\build\modules\fuzzy\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib' opencv_objdetect C:\Users\C\Documents\OpenCV\opencv-master\build\modules\objdetect\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib' opencv_video C:\Users\C\Documents\OpenCV\opencv-master\build\modules\video\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib' opencv_xphoto C:\Users\C\Documents\OpenCV\opencv-master\build\modules\xphoto\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib' opencv_imgcodecs C:\Users\C\Documents\OpenCV\opencv-master\build\modules\imgcodecs\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib' opencv_reg C:\Users\C\Documents\OpenCV\opencv-master\build\modules\reg\LINK 1 Error MSB6006 "cmd.exe" exited with code 1. opencv_cudabgsegm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_objdetect330d.lib' opencv_face C:\Users\C\Documents\OpenCV\opencv-master\build\modules\face\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_video330d.lib' opencv_bgsegm C:\Users\C\Documents\OpenCV\opencv-master\build\modules\bgsegm\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_video330d.lib' opencv_shape C:\Users\C\Documents\OpenCV\opencv-master\build\modules\shape\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_imgcodecs330d.lib' opencv_videoio C:\Users\C\Documents\OpenCV\opencv-master\build\modules\videoio\LINK 1 Error MSB6006 "cmd.exe" exited with code 1. opencv_cudacodec C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_videoio330d.lib' opencv_highgui C:\Users\C\Documents\OpenCV\opencv-master\build\modules\highgui\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_version C:\Users\C\Documents\OpenCV\opencv-master\build\apps\version\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_visualisation C:\Users\C\Documents\OpenCV\opencv-master\build\apps\visualisation\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_annotation C:\Users\C\Documents\OpenCV\opencv-master\build\apps\annotation\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_objdetect330d.lib' opencv_xobjdetect C:\Users\C\Documents\OpenCV\opencv-master\build\modules\xobjdetect\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc330d.lib' opencv_dnn C:\Users\C\Documents\OpenCV\opencv-master\build\modules\dnn\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_bioinspired C:\Users\C\Documents\OpenCV\opencv-master\build\modules\bioinspired\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_objdetect330d.lib' opencv_dpm C:\Users\C\Documents\OpenCV\opencv-master\build\modules\dpm\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_flann330d.lib' opencv_features2d C:\Users\C\Documents\OpenCV\opencv-master\build\modules\features2d\LINK 1 Error LNK1104 cannot open file '..\..\..\..\lib\Debug\opencv_highgui330d.lib' opencv_waldboost_detector C:\Users\C\Documents\OpenCV\opencv-master\build\modules\xobjdetect\tools\waldboost_detector\LINK 1 Error MSB6006 "cmd.exe" exited with code 1. opencv_cudafeatures2d C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_ml330d.lib' opencv_text C:\Users\C\Documents\OpenCV\opencv-master\build\modules\text\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_features2d330d.lib' opencv_saliency C:\Users\C\Documents\OpenCV\opencv-master\build\modules\saliency\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_features2d330d.lib' opencv_line_descriptor C:\Users\C\Documents\OpenCV\opencv-master\build\modules\line_descriptor\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_perf_videoio C:\Users\C\Documents\OpenCV\opencv-master\build\modules\videoio\LINK 1 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt;::tuple(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt; &amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaimgproc\perf\perf_histogram.cpp) opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 535 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt;::tuple(std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt; &amp;&amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaimgproc\perf\perf_histogram.cpp) opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 536 Error C2535 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt; &amp;std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt;::operator =(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt; &amp;)': member function already defined or declared (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaimgproc\perf\perf_histogram.cpp) opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error C1903 unable to recover from previous error(s); stopping compilation (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaimgproc\perf\perf_histogram.cpp) opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt;::tuple(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaimgproc\perf\perf_blend.cpp) opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 535 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt;::tuple(std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;&amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaimgproc\perf\perf_blend.cpp) opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 536 Error C2535 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt;::operator =(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;)': member function already defined or declared (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaimgproc\perf\perf_blend.cpp) opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error C1903 unable to recover from previous error(s); stopping compilation (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaimgproc\perf\perf_blend.cpp) opencv_perf_cudaimgproc C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_xphoto330d.lib' opencv_perf_xphoto C:\Users\C\Documents\OpenCV\opencv-master\build\modules\xphoto\LINK 1 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt;::tuple(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudawarping\perf\perf_warping.cpp) opencv_perf_cudawarping C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 535 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt;::tuple(std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;&amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudawarping\perf\perf_warping.cpp) opencv_perf_cudawarping C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 536 Error C2535 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt;::operator =(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;)': member function already defined or declared (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudawarping\perf\perf_warping.cpp) opencv_perf_cudawarping C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error C1903 unable to recover from previous error(s); stopping compilation (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudawarping\perf\perf_warping.cpp) opencv_perf_cudawarping C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error D8040 error creating or communicating with child process opencv_perf_cudaimgproc C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudaimgproc\cl 1 Error D8040 error creating or communicating with child process opencv_perf_cudawarping C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudawarping\cl 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_bioinspired330d.lib' opencv_perf_bioinspired C:\Users\C\Documents\OpenCV\opencv-master\build\modules\bioinspired\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_features2d330d.lib' opencv_calib3d C:\Users\C\Documents\OpenCV\opencv-master\build\modules\calib3d\LINK 1 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt;::tuple(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_core.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 535 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt;::tuple(std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;&amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_core.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 536 Error C2535 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt;::operator =(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;)': member function already defined or declared (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_core.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error C1903 unable to recover from previous error(s); stopping compilation (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_core.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt;::tuple(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt; &amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_element_operations.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 535 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt;::tuple(std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt; &amp;&amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_element_operations.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 536 Error C2535 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt; &amp;std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt;::operator =(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt; &amp;)': member function already defined or declared (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_element_operations.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error C1903 unable to recover from previous error(s); stopping compilation (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_element_operations.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt;::tuple(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_reductions.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 535 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt;::tuple(std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;&amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_reductions.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 536 Error C2535 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt;::operator =(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth,perf::`anonymous-namespace'::MatCn&gt; &amp;)': member function already defined or declared (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_reductions.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error C1903 unable to recover from previous error(s); stopping compilation (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudaarithm\perf\perf_reductions.cpp) opencv_perf_cudaarithm C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error MSB6006 "cmd.exe" exited with code 1. opencv_xfeatures2d C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error MSB6006 "cmd.exe" exited with code 1. opencv_cudalegacy C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error D8040 error creating or communicating with child process opencv_perf_cudaarithm C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudaarithm\cl 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudabgsegm330d.lib' opencv_perf_cudabgsegm C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudabgsegm\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_text330d.lib' opencv_datasets C:\Users\C\Documents\OpenCV\opencv-master\build\modules\datasets\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudacodec330d.lib' opencv_perf_cudacodec C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudacodec\LINK 1 Error MSB6006 "cmd.exe" exited with code 1. opencv_cudaoptflow C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudafeatures2d330d.lib' opencv_perf_cudafeatures2d C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudafeatures2d\LINK 1 Error MSB6006 "cmd.exe" exited with code 1. opencv_superres C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_calib3d330d.lib' opencv_stereo C:\Users\C\Documents\OpenCV\opencv-master\build\modules\stereo\LINK 1 Error MSB6006 "cmd.exe" exited with code 1. opencv_videostab C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_phase_unwrapping330d.lib' opencv_structured_light C:\Users\C\Documents\OpenCV\opencv-master\build\modules\structured_light\LINK 1 Error MSB6006 "cmd.exe" exited with code 1. opencv_stitching C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_calib3d330d.lib' opencv_aruco C:\Users\C\Documents\OpenCV\opencv-master\build\modules\aruco\LINK 1 Error MSB6006 "cmd.exe" exited with code 1. opencv_cudaobjdetect C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_calib3d330d.lib' opencv_ximgproc C:\Users\C\Documents\OpenCV\opencv-master\build\modules\ximgproc\LINK 1 Error MSB6006 "cmd.exe" exited with code 1. opencv_cudastereo C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_perf_core C:\Users\C\Documents\OpenCV\opencv-master\build\modules\core\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_plot330d.lib' opencv_tracking C:\Users\C\Documents\OpenCV\opencv-master\build\modules\tracking\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_calib3d330d.lib' opencv_ccalib C:\Users\C\Documents\OpenCV\opencv-master\build\modules\ccalib\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_objdetect330d.lib' opencv_createsamples C:\Users\C\Documents\OpenCV\opencv-master\build\apps\createsamples\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_video330d.lib' opencv_optflow C:\Users\C\Documents\OpenCV\opencv-master\build\modules\optflow\LINK 1 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt;::tuple(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt; &amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudastereo\perf\perf_stereo.cpp) opencv_perf_cudastereo C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 535 Error C2610 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt;::tuple(std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt; &amp;&amp;)': is not a special member function which can be defaulted (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudastereo\perf\perf_stereo.cpp) opencv_perf_cudastereo C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 536 Error C2535 'std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt; &amp;std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt;::operator =(const std::tuple&lt;cv::Size,perf::`anonymous-namespace'::MatDepth&gt; &amp;)': member function already defined or declared (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudastereo\perf\perf_stereo.cpp) opencv_perf_cudastereo C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error C1903 unable to recover from previous error(s); stopping compilation (compiling source file C:\Users\C\Documents\OpenCV\opencv-master\modules\cudastereo\perf\perf_stereo.cpp) opencv_perf_cudastereo C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\tuple 674 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_objdetect330d.lib' opencv_traincascade C:\Users\C\Documents\OpenCV\opencv-master\build\apps\traincascade\LINK 1 Error D8040 error creating or communicating with child process opencv_perf_cudastereo C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudastereo\cl 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_aruco330d.lib' opencv_interactive-calibration C:\Users\C\Documents\OpenCV\opencv-master\build\apps\interactive-calibration\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudaoptflow330d.lib' opencv_perf_cudaoptflow C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudaoptflow\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_calib3d330d.lib' opencv_rgbd C:\Users\C\Documents\OpenCV\opencv-master\build\modules\rgbd\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_xfeatures2d330d.lib' opencv_perf_xfeatures2d C:\Users\C\Documents\OpenCV\opencv-master\build\modules\xfeatures2d\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudaobjdetect330d.lib' opencv_perf_cudaobjdetect C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudaobjdetect\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_calib3d330d.lib' opencv_perf_calib3d C:\Users\C\Documents\OpenCV\opencv-master\build\modules\calib3d\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudafilters330d.lib' opencv_perf_cudafilters C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudafilters\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_objdetect330d.lib' opencv_perf_objdetect C:\Users\C\Documents\OpenCV\opencv-master\build\modules\objdetect\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_ximgproc330d.lib' opencv_perf_ximgproc C:\Users\C\Documents\OpenCV\opencv-master\build\modules\ximgproc\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_line_descriptor330d.lib' opencv_perf_line_descriptor C:\Users\C\Documents\OpenCV\opencv-master\build\modules\line_descriptor\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_photo330d.lib' opencv_perf_photo C:\Users\C\Documents\OpenCV\opencv-master\build\modules\photo\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_reg330d.lib' opencv_perf_reg C:\Users\C\Documents\OpenCV\opencv-master\build\modules\reg\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudalegacy330d.lib' opencv_perf_cudalegacy C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudalegacy\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_perf_imgcodecs C:\Users\C\Documents\OpenCV\opencv-master\build\modules\imgcodecs\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_stereo330d.lib' opencv_perf_stereo C:\Users\C\Documents\OpenCV\opencv-master\build\modules\stereo\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_optflow330d.lib' opencv_perf_optflow C:\Users\C\Documents\OpenCV\opencv-master\build\modules\optflow\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_tracking330d.lib' opencv_perf_tracking C:\Users\C\Documents\OpenCV\opencv-master\build\modules\tracking\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_aruco330d.lib' opencv_test_aruco C:\Users\C\Documents\OpenCV\opencv-master\build\modules\aruco\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_video330d.lib' opencv_test_video C:\Users\C\Documents\OpenCV\opencv-master\build\modules\video\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_superres330d.lib' opencv_perf_superres C:\Users\C\Documents\OpenCV\opencv-master\build\modules\superres\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_stitching330d.lib' opencv_perf_stitching C:\Users\C\Documents\OpenCV\opencv-master\build\modules\stitching\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_bgsegm330d.lib' opencv_test_bgsegm C:\Users\C\Documents\OpenCV\opencv-master\build\modules\bgsegm\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_reg330d.lib' opencv_python3 C:\Users\C\Documents\OpenCV\opencv-master\build\modules\python3\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_bioinspired330d.lib' opencv_test_bioinspired C:\Users\C\Documents\OpenCV\opencv-master\build\modules\bioinspired\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_calib3d330d.lib' opencv_test_calib3d C:\Users\C\Documents\OpenCV\opencv-master\build\modules\calib3d\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_video330d.lib' opencv_perf_video C:\Users\C\Documents\OpenCV\opencv-master\build\modules\video\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_perf_imgproc C:\Users\C\Documents\OpenCV\opencv-master\build\modules\imgproc\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudabgsegm330d.lib' opencv_test_cudabgsegm C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudabgsegm\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudacodec330d.lib' opencv_test_cudacodec C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudacodec\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudafeatures2d330d.lib' opencv_test_cudafeatures2d C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudafeatures2d\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudaarithm330d.lib' opencv_test_cudaarithm C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudaarithm\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudafilters330d.lib' opencv_test_cudafilters C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudafilters\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudaimgproc330d.lib' opencv_test_cudaimgproc C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudaimgproc\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudaobjdetect330d.lib' opencv_test_cudaobjdetect C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudaobjdetect\LINK 1 Error MSB6006 "cmd.exe" exited with code 1. opencv_test_cudev C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudalegacy330d.lib' opencv_test_cudalegacy C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudalegacy\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudastereo330d.lib' opencv_test_cudastereo C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudastereo\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_test_core C:\Users\C\Documents\OpenCV\opencv-master\build\modules\core\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudawarping330d.lib' opencv_test_cudawarping C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudawarping\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_dnn330d.lib' opencv_test_dnn C:\Users\C\Documents\OpenCV\opencv-master\build\modules\dnn\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_face330d.lib' opencv_test_face C:\Users\C\Documents\OpenCV\opencv-master\build\modules\face\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_cudaoptflow330d.lib' opencv_test_cudaoptflow C:\Users\C\Documents\OpenCV\opencv-master\build\modules\cudaoptflow\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_flann330d.lib' opencv_test_flann C:\Users\C\Documents\OpenCV\opencv-master\build\modules\flann\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_features2d330d.lib' opencv_perf_features2d C:\Users\C\Documents\OpenCV\opencv-master\build\modules\features2d\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_test_highgui C:\Users\C\Documents\OpenCV\opencv-master\build\modules\highgui\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_img_hash330d.lib' opencv_test_img_hash C:\Users\C\Documents\OpenCV\opencv-master\build\modules\img_hash\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_test_imgcodecs C:\Users\C\Documents\OpenCV\opencv-master\build\modules\imgcodecs\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_line_descriptor330d.lib' opencv_test_line_descriptor C:\Users\C\Documents\OpenCV\opencv-master\build\modules\line_descriptor\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_phase_unwrapping330d.lib' opencv_test_phase_unwrapping C:\Users\C\Documents\OpenCV\opencv-master\build\modules\phase_unwrapping\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_fuzzy330d.lib' opencv_test_fuzzy C:\Users\C\Documents\OpenCV\opencv-master\build\modules\fuzzy\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_optflow330d.lib' opencv_test_optflow C:\Users\C\Documents\OpenCV\opencv-master\build\modules\optflow\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_objdetect330d.lib' opencv_test_objdetect C:\Users\C\Documents\OpenCV\opencv-master\build\modules\objdetect\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_ml330d.lib' opencv_test_ml C:\Users\C\Documents\OpenCV\opencv-master\build\modules\ml\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_photo330d.lib' opencv_test_photo C:\Users\C\Documents\OpenCV\opencv-master\build\modules\photo\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_reg330d.lib' opencv_test_reg C:\Users\C\Documents\OpenCV\opencv-master\build\modules\reg\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_structured_light330d.lib' opencv_test_structured_light C:\Users\C\Documents\OpenCV\opencv-master\build\modules\structured_light\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_stereo330d.lib' opencv_test_stereo C:\Users\C\Documents\OpenCV\opencv-master\build\modules\stereo\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_shape330d.lib' opencv_test_shape C:\Users\C\Documents\OpenCV\opencv-master\build\modules\shape\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_stitching330d.lib' opencv_test_stitching C:\Users\C\Documents\OpenCV\opencv-master\build\modules\stitching\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_superres330d.lib' opencv_test_superres C:\Users\C\Documents\OpenCV\opencv-master\build\modules\superres\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_text330d.lib' opencv_test_text C:\Users\C\Documents\OpenCV\opencv-master\build\modules\text\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_rgbd330d.lib' opencv_test_rgbd C:\Users\C\Documents\OpenCV\opencv-master\build\modules\rgbd\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_features2d330d.lib' opencv_test_features2d C:\Users\C\Documents\OpenCV\opencv-master\build\modules\features2d\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_videostab330d.lib' opencv_test_videostab C:\Users\C\Documents\OpenCV\opencv-master\build\modules\videostab\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_test_videoio C:\Users\C\Documents\OpenCV\opencv-master\build\modules\videoio\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_tracking330d.lib' opencv_test_tracking C:\Users\C\Documents\OpenCV\opencv-master\build\modules\tracking\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_xphoto330d.lib' opencv_test_xphoto C:\Users\C\Documents\OpenCV\opencv-master\build\modules\xphoto\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_xfeatures2d330d.lib' opencv_test_xfeatures2d C:\Users\C\Documents\OpenCV\opencv-master\build\modules\xfeatures2d\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_ximgproc330d.lib' opencv_test_ximgproc C:\Users\C\Documents\OpenCV\opencv-master\build\modules\ximgproc\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_highgui330d.lib' opencv_test_imgproc C:\Users\C\Documents\OpenCV\opencv-master\build\modules\imgproc\LINK 1 Error LNK1104 cannot open file '..\..\lib\Debug\opencv_dnn330d.lib' opencv_perf_dnn C:\Users\C\Documents\OpenCV\opencv-master\build\modules\dnn\LINK 1 </code></pre></div>
1
<ul dir="auto"> <li>Electron version: 0.37.2</li> <li>Operating system: windows 7 64 bit</li> </ul> <p dir="auto">I am trying to print from my app. When I run window.print() it opens the print menu. Once I click OK it adds it to the queue and it is immediately removed from the queue and prints nothing. When I check the queue Pages is N/A and Size has no information. I found the post about using webContent.print() which requires the pdf.dll but I can't seem to find that in my files or in the electron repository.</p>
<ul dir="auto"> <li>Electron version: 0.37.2</li> <li>Operating system: Windows 7 64-bit</li> </ul> <p dir="auto">I have tried to call <code class="notranslate">mainWindow.webContents.print</code>, which showed the printer dialog but when I choose the printer, it just does nothing. Not even an error.</p> <p dir="auto">I have tried with multiple printers such as physical and virtual one (like print to XPS/PDF).</p> <p dir="auto">I suspect its my code, so I tried this <a href="https://github.com/hokein/electron-sample-apps/tree/master/printing">this example</a> as well but I got same result.</p> <p dir="auto">After that I tested it on another computer (Microsoft surface 4) and still nothing.</p> <p dir="auto">Then I run the same code on Mac OS, and it was working ok.</p> <p dir="auto">So I'm confusing right now and wondering if anybody else have same issue or not...</p> <p dir="auto">PS: <code class="notranslate">webContents.printToPDF</code> was also okay on windows since I guess has nothing to do with OS printing functionality.</p>
1
<p dir="auto">In <code class="notranslate">dev</code> environment we're using a custom email constraint validator that's being created by decorating the shipped email constraint validator:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" app.dev.validator.email: class: AppBundle\Validator\DevelopmentEmailValidator public: false decorates: validator.email arguments: [&quot;@app.dev.validator.email.inner&quot;]"><pre class="notranslate"><code class="notranslate"> app.dev.validator.email: class: AppBundle\Validator\DevelopmentEmailValidator public: false decorates: validator.email arguments: ["@app.dev.validator.email.inner"] </code></pre></div> <p dir="auto">After updating to 3.1.5 we're running into problems with the missing class <code class="notranslate">InvalidArgumentException</code> because it enters the <code class="notranslate">$definition-&gt;isPublic()</code> if in line 33 of <code class="notranslate">AddConstraintValidatorsPass.php</code>. That has been fixed with commit <a href="https://github.com/symfony/symfony/commit/32451b1a092181b793ee6bd186eeb7a3ca039491">#32451b1a092181b793ee6bd186eeb7a3ca039491</a>. But the underlying problem still persists. Due to the service decoration the <code class="notranslate">$definition-&gt;isPublic()</code>-check fails on the <code class="notranslate">app.dev.validator.email.inner</code> service.</p> <p dir="auto">Don't know whether this is the expected behavior. If so, what would be the <em>new</em> way to replace shipped constraint validators?</p>
<p dir="auto">Hi.<br> I have a decorator for doctrine.orm.validator.unique which is tagged with validator.constraint_validator. With symfony 3.1.5 new checks were introduced in <a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddConstraintValidatorsPass.php">here</a></p> <p dir="auto">My decorator:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" app.decorating.doctrine_unique: class: CapiBundle\Model\Validator\Constraints\UniqueEntityDecorator decorates: doctrine.orm.validator.unique arguments: ['@app.decorating.doctrine_unique.inner', '@doctrine'] public: false"><pre class="notranslate"><code class="notranslate"> app.decorating.doctrine_unique: class: CapiBundle\Model\Validator\Constraints\UniqueEntityDecorator decorates: doctrine.orm.validator.unique arguments: ['@app.decorating.doctrine_unique.inner', '@doctrine'] public: false </code></pre></div> <p dir="auto">results with exception <code class="notranslate">The service "app.decorating.doctrine_unique.inner" must be public as it can be lazy-loaded.</code><br> Additionaly, <code class="notranslate">InvalidArgumentException</code> is not imported.</p>
1
<h4 dir="auto">Describe the bug</h4> <p dir="auto">The <code class="notranslate">params</code> values which i defined while creating a new instance are not part of the request.</p> <h4 dir="auto">To Reproduce</h4> <p dir="auto">I created a minimal example: <a href="https://jsfiddle.net/oqfract9" rel="nofollow">https://jsfiddle.net/oqfract9</a></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const instance = axios.create({ baseURL: 'https://jsonplaceholder.typicode.com/', timeout: 1000, params: { &quot;userId&quot;: &quot;1&quot; } }); instance .get(&quot;/posts&quot;) .then(function (response) { console.log(response.data); console.log(response.status); console.log(response.statusText); console.log(response.headers); console.log(response.config); });"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">instance</span> <span class="pl-c1">=</span> <span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">baseURL</span>: <span class="pl-s">'https://jsonplaceholder.typicode.com/'</span><span class="pl-kos">,</span> <span class="pl-c1">timeout</span>: <span class="pl-c1">1000</span><span class="pl-kos">,</span> <span class="pl-c1">params</span>: <span class="pl-kos">{</span> <span class="pl-s">"userId"</span>: <span class="pl-s">"1"</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">instance</span> <span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">"/posts"</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-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">response</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">response</span><span class="pl-kos">.</span><span class="pl-c1">data</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">response</span><span class="pl-kos">.</span><span class="pl-c1">status</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">response</span><span class="pl-kos">.</span><span class="pl-c1">statusText</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">response</span><span class="pl-kos">.</span><span class="pl-c1">headers</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">response</span><span class="pl-kos">.</span><span class="pl-c1">config</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> <h4 dir="auto">Expected behavior</h4> <p dir="auto">I would expect that the <code class="notranslate">?userId=1</code> is part of the request.</p> <h4 dir="auto">Environment</h4> <ul dir="auto"> <li>Axios v0.19.2</li> <li>Chrome v83.0.4103.106</li> <li>Node.js v12.14.0</li> <li>React v16.13.1</li> </ul> <h4 dir="auto">Additional context/Screenshots</h4> <p dir="auto">I'm currently using the npm package, but it also doesn't work with CDN version.</p>
<p dir="auto"><strong>Describe the bug</strong></p> <p dir="auto">Specific request params do not get merged with the instance default params.</p> <p dir="auto"><strong>To Reproduce</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const instance = axios.create({ baseURL: &quot;http://www.example.com&quot;, params: { q: &quot;question&quot;, } });"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">instance</span> <span class="pl-c1">=</span> <span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">baseURL</span>: <span class="pl-s">"http://www.example.com"</span><span class="pl-kos">,</span> <span class="pl-c1">params</span>: <span class="pl-kos">{</span> <span class="pl-c1">q</span>: <span class="pl-s">"question"</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> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="instance.get(&quot;/page&quot;, { params: { page: 2 } } )"><pre class="notranslate"><span class="pl-s1">instance</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">"/page"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">params</span>: <span class="pl-kos">{</span> <span class="pl-c1">page</span>: <span class="pl-c1">2</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">)</span></pre></div> <p dir="auto">What happens is that the request param object overrides the instance default param object. The instance no longer has a query param of <code class="notranslate">q</code>.</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">According to the docs, all configuration options are <em>merged</em>. <a href="https://github.com/axios/axios#instance-methods">https://github.com/axios/axios#instance-methods</a></p> <p dir="auto">I expected request to contain both <code class="notranslate">q</code> and <code class="notranslate">page</code> params. This is also how it was working in version 0.18.0, which is how I noticed.</p> <p dir="auto"><strong>Environment:</strong></p> <ul dir="auto"> <li>Axios Version: 0.19.0</li> <li>OS: 10.14.5 (18F132)</li> <li>Browser: Node Express, and Chrome</li> <li>Browser: Node 10.15.0, Chrome Version 74.0.3729.169 (Official Build) (64-bit)</li> </ul>
1
<h1 dir="auto">Description of the new feature/enhancement</h1> <ol dir="auto"> <li>Include a Setting to auto-size the Terminal Window based on a percent of the current deskport/viewport size. For example, Width=80% display screen width; Height=40% Display Screen Height.</li> <li>Include a Setting to designate the top left screen coordinates for the Terminal window. For example, WindowPos=0,10 for the top left of the Terminal window to be positioned at row 0, column 10.</li> </ol> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">A clear and concise description of what you want to happen.<br> When such a Setting is enabled, the Terminal window will always open at these dimensions and coordinates.</p>
In the original command prompt, users were able to go into file explorer, copy any file, and would be able to paste it into the command prompt. <h1 dir="auto">Description of the new feature/enhancement</h1> <h1 dir="auto">Proposed technical implementation details (optional)</h1> Please make it so that we can copy a file in file explorer, and if it has a space in the files path then automatically put quotes arround it and let us paste it without having to directly copy the file's path.
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Element <code class="notranslate">div</code> not allowed as child of <code class="notranslate">label</code>. See <a href="https://i.imgur.com/XyDTf9A.png" rel="nofollow">https://i.imgur.com/XyDTf9A.png</a>.</p> <h2 dir="auto">Current Behavior</h2> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;label class=&quot;c190&quot;&gt; &lt;div class=&quot;c226&quot;&gt; &lt;span class=&quot;c54 c45 c232 c234 c229 c235 c230&quot;&gt; &lt;span class=&quot;c51&quot;&gt; &lt;div class=&quot;c228&quot;&gt;&lt;/div&gt; &lt;input type=&quot;checkbox&quot; class=&quot;c233&quot; value=&quot;on&quot; checked=&quot;&quot;&gt; &lt;/span&gt; &lt;span class=&quot;c57&quot;&gt;&lt;/span&gt; &lt;/span&gt; &lt;div class=&quot;c227&quot;&gt;&lt;/div&gt; &lt;/div&gt; &lt;p class=&quot;c64 c73 c192&quot;&gt;A&lt;/p&gt; &lt;/label&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">label</span> <span class="pl-c1">class</span>="<span class="pl-s">c190</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">c226</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">span</span> <span class="pl-c1">class</span>="<span class="pl-s">c54 c45 c232 c234 c229 c235 c230</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">span</span> <span class="pl-c1">class</span>="<span class="pl-s">c51</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">c228</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">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">class</span>="<span class="pl-s">c233</span>" <span class="pl-c1">value</span>="<span class="pl-s">on</span>" <span class="pl-c1">checked</span>=""<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">span</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">span</span> <span class="pl-c1">class</span>="<span class="pl-s">c57</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">span</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">span</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">c227</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span> <span class="pl-c1">class</span>="<span class="pl-s">c64 c73 c192</span>"<span class="pl-kos">&gt;</span>A<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span></pre></div> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Navigate to <a href="https://material-ui-1dab0.firebaseapp.com/demos/selection-controls/" rel="nofollow">https://material-ui-1dab0.firebaseapp.com/demos/selection-controls/</a></li> <li>Inspect the mark-up for labelled Switch</li> <li>Have that parsed by <a href="https://validator.w3.org" rel="nofollow">https://validator.w3.org</a></li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">This mark-up does not follow the HTML spec: Content model for element label and can cause issues for accessibility.<br> <a href="http://w3c.github.io/html/single-page.html#the-label-element" rel="nofollow">http://w3c.github.io/html/single-page.html#the-label-element</a><br> Phrasing content, but with no descendant labelable elements unless it is the element’s labeled control, and no descendant label elements.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>v1.0.0-beta.21</td> </tr> <tr> <td>React</td> <td>v15.6.1</td> </tr> <tr> <td>browser</td> <td>all</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<p dir="auto">I've got my own material-ui fork in a folder, and I've run <code class="notranslate">npm link</code> so I can link it to a project I'm working on. This works fine, but I'm wondering how I can make changes to material-ui and then quickly test those in my project, without having to relink? I tried <code class="notranslate">npm run build</code> in the material-ui folder, but now I get this error in my project:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught TypeError: Cannot read property 'cyan500' of undefined"><pre class="notranslate"><code class="notranslate">Uncaught TypeError: Cannot read property 'cyan500' of undefined </code></pre></div> <p dir="auto">What should my process be?</p>
0
<p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow):Yes</li> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04):Win 10</li> <li>TensorFlow installed from (source or binary):binary</li> <li>TensorFlow version (use command below):2.0.0-alpha0</li> <li>Python version:3.6</li> </ul> <p dir="auto"><strong>Describe the current behavior</strong><br> The value estimate became an array instead of scalar float after 8000+ steps</p> <p dir="auto"><strong>Describe the expected behavior</strong><br> The value estimate should be a scalar float</p> <p dir="auto"><strong>Code to reproduce the issue</strong><br> <a href="https://github.com/SetoKaiba/ml-agents/tree/tf2">https://github.com/SetoKaiba/ml-agents/tree/tf2</a></p> <p dir="auto"><strong>Other info / logs</strong><br> After some deep dig, I found the problem is here. It uses the tf session to estimate the value. The value became an array instead of scalar float after 8000+ steps<br> <a href="https://github.com/SetoKaiba/ml-agents/blob/tf2/ml-agents/mlagents/trainers/ppo/policy.py#L198">https://github.com/SetoKaiba/ml-agents/blob/tf2/ml-agents/mlagents/trainers/ppo/policy.py#L198</a></p>
<p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow):Yes</li> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04):Win 10</li> <li>TensorFlow installed from (source or binary):binary</li> <li>TensorFlow version (use command below):2.0.0-alpha0</li> <li>Python version:3.6</li> </ul> <p dir="auto"><strong>Describe the current behavior</strong><br> The session return an ndarray [[value_estimate]] instead of value_estimate.</p> <p dir="auto"><strong>Describe the expected behavior</strong><br> The session should return a scalar float. Just value_estimate. It should not be in an ndarray.<br> Workaround: get the actual scalar float in the ndarray if it is not a float<br> <a href="https://github.com/SetoKaiba/ml-agents/blob/tf2/ml-agents/mlagents/trainers/ppo/policy.py#L199-L200">https://github.com/SetoKaiba/ml-agents/blob/tf2/ml-agents/mlagents/trainers/ppo/policy.py#L199-L200</a></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if not isinstance(value_estimate, float): value_estimate = value_estimate[0][0]"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">value_estimate</span>, <span class="pl-s1">float</span>): <span class="pl-s1">value_estimate</span> <span class="pl-c1">=</span> <span class="pl-s1">value_estimate</span>[<span class="pl-c1">0</span>][<span class="pl-c1">0</span>]</pre></div> <p dir="auto"><strong>Code to reproduce the issue</strong><br> <a href="https://github.com/SetoKaiba/ml-agents/blob/tf2/ml-agents/mlagents/trainers/ppo/policy.py#L199-L200">https://github.com/SetoKaiba/ml-agents/blob/tf2/ml-agents/mlagents/trainers/ppo/policy.py#L199-L200</a><br> The problem can be reproduced without the two lines workaround.</p> <p dir="auto"><strong>Other info / logs</strong><br> The value_estimate is calculated by the session and model.value. Code is lines below.<br> <a href="https://github.com/SetoKaiba/ml-agents/blob/tf2/ml-agents/mlagents/trainers/ppo/policy.py#L198">https://github.com/SetoKaiba/ml-agents/blob/tf2/ml-agents/mlagents/trainers/ppo/policy.py#L198</a></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="value_estimate = self.sess.run(self.model.value, feed_dict)"><pre class="notranslate"><span class="pl-s1">value_estimate</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">self</span>.<span class="pl-s1">model</span>.<span class="pl-s1">value</span>, <span class="pl-s1">feed_dict</span>)</pre></div> <p dir="auto">self.model.value is defined like this. The previous layer is dense layer with one units.<br> And the tf.identity should just return a scalar float.<br> The code is running correctly in TF 1.x.<br> But it's working incorrectly in TF 2.0.<br> <a href="https://github.com/SetoKaiba/ml-agents/blob/tf2/ml-agents/mlagents/trainers/models.py#L298-L299">https://github.com/SetoKaiba/ml-agents/blob/tf2/ml-agents/mlagents/trainers/models.py#L298-L299</a></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" value = tf.layers.dense(hidden_value, 1, activation=None) self.value = tf.identity(value, name=&quot;value_estimate&quot;)"><pre class="notranslate"> <span class="pl-s1">value</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">layers</span>.<span class="pl-en">dense</span>(<span class="pl-s1">hidden_value</span>, <span class="pl-c1">1</span>, <span class="pl-s1">activation</span><span class="pl-c1">=</span><span class="pl-c1">None</span>) <span class="pl-s1">self</span>.<span class="pl-s1">value</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">identity</span>(<span class="pl-s1">value</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"value_estimate"</span>)</pre></div>
1
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.2.0b2 (beta snapshot)</p> <h3 dir="auto">Operating System</h3> <p dir="auto">ubuntu 20.04</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto">n/a</p> <h3 dir="auto">Deployment</h3> <p dir="auto">Virtualenv installation</p> <h3 dir="auto">Deployment details</h3> <p dir="auto">pip install /path/to/airflow/src</p> <h3 dir="auto">What happened</h3> <p dir="auto">Given any DAG initialized with: <code class="notranslate">schedule_interval=None</code></p> <p dir="auto">Run <code class="notranslate">airflow dags test mydagname $(date +%Y-%m-%d)</code> and get an error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INFO - No run dates were found for the given dates and dag interval."><pre class="notranslate"><code class="notranslate">INFO - No run dates were found for the given dates and dag interval. </code></pre></div> <p dir="auto">This behavior changed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="859407036" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/15397" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/15397/hovercard" href="https://github.com/apache/airflow/pull/15397">#15397</a>, it used to trigger a backfill dagrun at the given date.</p> <h3 dir="auto">What you expected to happen</h3> <p dir="auto">I expected a backfill dagrun with the given date, regardless of whether it fit into the <code class="notranslate">schedule_interval</code>.</p> <p dir="auto">If AIP-39 made that an unrealistic expectation, then I'd hope for some way to define unscheduled dags which can still be tested from the command line (which, so far as I know, is the fastest way to iterate on a DAG.).</p> <p dir="auto">As it is, I keep changing <code class="notranslate">schedule_interval</code> back and forth depending on whether I want to iterate via <code class="notranslate">astro dev start</code> (which tolerates <code class="notranslate">None</code> but does superfluous work if the dag is scheduled) or via <code class="notranslate">airflow dags test ...</code> (which doesn't tolerate <code class="notranslate">None</code>).</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">Initialize a DAG with: <code class="notranslate">schedule_interval=None</code> and run it via <code class="notranslate">airflow dags test mydagname $(date +%Y-%m-%d)</code></p> <h3 dir="auto">Anything else</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
<p dir="auto">Running the scheduler used to spit out logs of information. It now spits out nothing other than the airflow header. Also, I am able to verify that when I put logging in <code class="notranslate">airflow_local_settings</code> that I get log messages output on the console.</p> <p dir="auto">Using commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/apache/airflow/commit/edd0fd3411dba5f881cb11fe8a93d77cfafbcedf/hovercard" href="https://github.com/apache/airflow/commit/edd0fd3411dba5f881cb11fe8a93d77cfafbcedf"><tt>edd0fd3</tt></a></p>
0
<p dir="auto">A clear and concise description of what the bug is.</p> <h3 dir="auto">Expected results</h3> <p dir="auto">what you expected to happen.</p> <h3 dir="auto">Actual results</h3> <p dir="auto">what actually happens.</p> <h4 dir="auto">Screenshots</h4> <p dir="auto">If applicable, add screenshots to help explain your problem.</p> <h4 dir="auto">How to reproduce the bug</h4> <ol dir="auto"> <li>Go to '...'</li> <li>Click on '....'</li> <li>Scroll down to '....'</li> <li>See error</li> </ol> <h3 dir="auto">Environment</h3> <p dir="auto">(please complete the following information):</p> <ul dir="auto"> <li>superset version: <code class="notranslate">superset version</code></li> <li>python version: <code class="notranslate">python --version</code></li> <li>node.js version: <code class="notranslate">node -v</code></li> <li>npm version: <code class="notranslate">npm -v</code></li> </ul> <h3 dir="auto">Checklist</h3> <p dir="auto">Make sure these boxes are checked before submitting your issue - thank you!</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the superset logs for python stacktraces and included it here as text if there are any.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have reproduced the issue with at least the latest released version of superset.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the issue tracker for the same issue and I haven't found one similar.</li> </ul> <h3 dir="auto">Additional context</h3> <p dir="auto">Add any other context about the problem here.</p>
<p dir="auto">Make sure these boxes are checked before submitting your issue - thank you!</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the superset logs for python stacktraces and included it here as text if there are any.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar.</li> </ul> <h3 dir="auto">Superset version</h3> <p dir="auto">0.29rc7 (the last one published via Pypi)</p> <h3 dir="auto">Expected results</h3> <p dir="auto">World Map has been working fine up to 0.26 (current version that we are using), but it seems not working with 0.29rc7 anymore.</p> <h3 dir="auto">Actual results</h3> <p dir="auto">The graph yields errors like "Too many indexers" and the following stacktrace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Mar 11 11:08:03 analytics-tool1004 superset[27831]: 2019-03-11 11:08:03,985:ERROR:root:Too many indexers Mar 11 11:08:03 analytics-tool1004 superset[27831]: Traceback (most recent call last): Mar 11 11:08:03 analytics-tool1004 superset[27831]: File &quot;/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/superset/views/base.py&quot;, line 96, in wraps Mar 11 11:08:03 analytics-tool1004 superset[27831]: return f(self, *args, **kwargs) Mar 11 11:08:03 analytics-tool1004 superset[27831]: File &quot;/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/superset/views/core.py&quot;, line 1211, in explore_json Mar 11 11:08:03 analytics-tool1004 superset[27831]: samples=samples, Mar 11 11:08:03 analytics-tool1004 superset[27831]: File &quot;/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/superset/views/core.py&quot;, line 1142, in generate_json Mar 11 11:08:03 analytics-tool1004 superset[27831]: payload = viz_obj.get_payload() Mar 11 11:08:03 analytics-tool1004 superset[27831]: File &quot;/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/superset/viz.py&quot;, line 374, in get_payload Mar 11 11:08:03 analytics-tool1004 superset[27831]: payload['data'] = self.get_data(df) Mar 11 11:08:03 analytics-tool1004 superset[27831]: File &quot;/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/superset/viz.py&quot;, line 1745, in get_data Mar 11 11:08:03 analytics-tool1004 superset[27831]: ndf['m1'] = df[metric].iloc[:,0] Mar 11 11:08:03 analytics-tool1004 superset[27831]: File &quot;/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/pandas/core/indexing.py&quot;, line 1471, in __getitem__ Mar 11 11:08:03 analytics-tool1004 superset[27831]: return self._getitem_tuple(key) Mar 11 11:08:03 analytics-tool1004 superset[27831]: File &quot;/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/pandas/core/indexing.py&quot;, line 2012, in _getitem_tuple Mar 11 11:08:03 analytics-tool1004 superset[27831]: self._has_valid_tuple(tup) Mar 11 11:08:03 analytics-tool1004 superset[27831]: File &quot;/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/pandas/core/indexing.py&quot;, line 219, in _has_valid_tuple Mar 11 11:08:03 analytics-tool1004 superset[27831]: raise IndexingError('Too many indexers') Mar 11 11:08:03 analytics-tool1004 superset[27831]: pandas.core.indexing.IndexingError: Too many indexers"><pre class="notranslate"><code class="notranslate">Mar 11 11:08:03 analytics-tool1004 superset[27831]: 2019-03-11 11:08:03,985:ERROR:root:Too many indexers Mar 11 11:08:03 analytics-tool1004 superset[27831]: Traceback (most recent call last): Mar 11 11:08:03 analytics-tool1004 superset[27831]: File "/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/superset/views/base.py", line 96, in wraps Mar 11 11:08:03 analytics-tool1004 superset[27831]: return f(self, *args, **kwargs) Mar 11 11:08:03 analytics-tool1004 superset[27831]: File "/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/superset/views/core.py", line 1211, in explore_json Mar 11 11:08:03 analytics-tool1004 superset[27831]: samples=samples, Mar 11 11:08:03 analytics-tool1004 superset[27831]: File "/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/superset/views/core.py", line 1142, in generate_json Mar 11 11:08:03 analytics-tool1004 superset[27831]: payload = viz_obj.get_payload() Mar 11 11:08:03 analytics-tool1004 superset[27831]: File "/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/superset/viz.py", line 374, in get_payload Mar 11 11:08:03 analytics-tool1004 superset[27831]: payload['data'] = self.get_data(df) Mar 11 11:08:03 analytics-tool1004 superset[27831]: File "/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/superset/viz.py", line 1745, in get_data Mar 11 11:08:03 analytics-tool1004 superset[27831]: ndf['m1'] = df[metric].iloc[:,0] Mar 11 11:08:03 analytics-tool1004 superset[27831]: File "/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/pandas/core/indexing.py", line 1471, in __getitem__ Mar 11 11:08:03 analytics-tool1004 superset[27831]: return self._getitem_tuple(key) Mar 11 11:08:03 analytics-tool1004 superset[27831]: File "/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/pandas/core/indexing.py", line 2012, in _getitem_tuple Mar 11 11:08:03 analytics-tool1004 superset[27831]: self._has_valid_tuple(tup) Mar 11 11:08:03 analytics-tool1004 superset[27831]: File "/srv/deployment/analytics/superset/venv/lib/python3.7/site-packages/pandas/core/indexing.py", line 219, in _has_valid_tuple Mar 11 11:08:03 analytics-tool1004 superset[27831]: raise IndexingError('Too many indexers') Mar 11 11:08:03 analytics-tool1004 superset[27831]: pandas.core.indexing.IndexingError: Too many indexers </code></pre></div> <p dir="auto">The same dataset works fine with 0.26.</p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">Create a world map graph and add the Bubbles functionality. In my case, the graph works fine without it but adding it yields to the above error.</p> <p dir="auto">Note: during the migration numpy and pandas were upgraded, and I checked that the the same versions are the ones added for 0.29rc8 (I couldn't use this version since not in Pypi).</p>
0
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):<br> 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.):<br> <a href="https://github.com/kubernetes/kubernetes/issues?page=1&amp;q=is%3Aissue+is%3Aopen+rolling+update++ready&amp;utf8=%E2%9C%93">https://github.com/kubernetes/kubernetes/issues?page=1&amp;q=is%3Aissue+is%3Aopen+rolling+update++ready&amp;utf8=%E2%9C%93</a></p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):<br> Bug report</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):<br> 1.4.4 client, 1.4.6 cluster</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: GKE</li> </ul> <p dir="auto"><strong>What happened</strong>:<br> Ran <code class="notranslate">kubectl apply -f ...</code>, updating the version for an image.<br> Observed the existing RS scale to zero before the new RS was ready (the container has a readinessProbe), resulting in downtime.</p> <p dir="auto"><strong>What you expected to happen</strong>:<br> Traffic remains routed to the existing RS until the new RS is ready.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):<br> <a href="https://gist.github.com/c82ae5cf2919684926b8bcc23d6ccddc">https://gist.github.com/c82ae5cf2919684926b8bcc23d6ccddc</a></p> <p dir="auto"><code class="notranslate">kubectl apply -f deployment.yaml</code></p> <p dir="auto">Wait for it to start serving.<br> Modify something like the "env" in deployment.yaml<br> Run <code class="notranslate">kubectl apply</code>.</p> <p dir="auto">Observe that the old RC is immediately scaled to zero.</p> <p dir="auto"><strong>Anything else do we need to know</strong>:<br> N/A</p>
<p dir="auto">APIGroups are a really useful features, but there are several areas of the code that need improvement to make their usage easier to understand. These are few things I found while trying to reliably activate and configure the <code class="notranslate">extensions</code> group downstream</p> <ol dir="auto"> <li>We need a <code class="notranslate">GroupVersion</code> object to make it very obvious in the code when a bit of code relies on that. Right now, sometimes its two strings, sometimes its one string to split, sometimes objects hold both.</li> <li>Validation is needed when starting a master to make sure that combination of <code class="notranslate">StorageDestinations</code>, <code class="notranslate">apiGroupVersionOverrides</code>, <code class="notranslate">storageVersions</code>, and the available <code class="notranslate">Groups</code> makes sense. I suspect that there's a cleaner factorization.</li> <li>DONE Functions like <code class="notranslate">InterfacesFor</code> need to decide if they take <code class="notranslate">GroupVersion</code> or just an API version. I'm ok with either one, but right now you get things like an error message saying <code class="notranslate">unsupported storage version: v1beta1 (valid: v1beta1)</code> because part of the code thinks its a version and part of it thinks its a <code class="notranslate">GroupVersion</code>.</li> <li>REST APIVersions are unrelated to storage APIVersions. Right now, the REST preferred version is tied to the storage version.</li> <li>Reporting throughout the stack should understand that <code class="notranslate">Kind</code> strings are no longer unambiguous. Types like <code class="notranslate">StatusDetails</code> should accept an <code class="notranslate">APIGroup</code> as well.</li> <li>Registrations of <code class="notranslate">GroupMeta</code> shouldn't be mutable. I don't see why we'd ever want it mutable and its kind of crazy to change it part way through.</li> <li>DONE (well, differently in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="112685544" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/16062" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/16062/hovercard" href="https://github.com/kubernetes/kubernetes/pull/16062">#16062</a>) Type registration and lookups seems to be split across three packages (<code class="notranslate">install</code>, <code class="notranslate">registered</code>, <code class="notranslate">latest</code>), all of which try to take APIGroups into account. This needs reorganization. Perhaps we could try a layered approach where <code class="notranslate">latest</code> is scoped to versions of a single APIGroup, <code class="notranslate">install</code> is responsible for handling registration with a <code class="notranslate">registered</code> package which is the source of truth for all metadata. No other package should expose cross group metadata.</li> <li>Having combined clients makes it harder to trace the effects of disabling an APIGroup and risks potential name collisions going forward. Splitting Clients on APIGroups seems reasonable.</li> </ol> <p dir="auto">One of the things that may help with factorization is trying to describe the existing <code class="notranslate">v1</code> API as an GroupVersion("", "v1") throughout all of the code. If its hard to read like that, then there's probably a factorization problem.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/caesarxuchao/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/caesarxuchao">@caesarxuchao</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/smarterclayton/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/smarterclayton">@smarterclayton</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/liggitt/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/liggitt">@liggitt</a> @kubernetes/kube-api</p>
0
<p dir="auto">This happens on several pages under the jQuery section.<br> Example:<br> <a href="http://www.freecodecamp.com/challenges/waypoint-target-elements-by-id-using-jquery" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-target-elements-by-id-using-jquery</a></p> <p dir="auto">fccss &lt;---- was expected<br> $(document).ready(function() {<br> $("button").addClass("animated bounce");<br> $(".well").addClass("animated shake");</p> <p dir="auto">});<br> fcces &lt;---- was expected</p>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-create-a-javascript-slot-machine" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-create-a-javascript-slot-machine</a> has an issue.</p> <p dir="auto">The four Javascript slot machine exercises all display the JS section of the code incorrectly. Presumably <code class="notranslate">fccss</code> is supposed to be <code class="notranslate">&lt;script&gt;</code>, and likewise <code class="notranslate">fcces</code> is supposed to be <code class="notranslate">&lt;/script&gt;</code>.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5023165/9371847/695d7f04-46a6-11e5-9ed0-8600b29b6c44.png"><img width="1969" alt="screen shot 2015-08-19 at 7 11 54 pm" src="https://cloud.githubusercontent.com/assets/5023165/9371847/695d7f04-46a6-11e5-9ed0-8600b29b6c44.png" style="max-width: 100%;"></a></p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/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">This issue is similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="270731073" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/8963" data-hovercard-type="issue" data-hovercard-url="/mui/material-ui/issues/8963/hovercard" href="https://github.com/mui/material-ui/issues/8963">#8963</a>, to which I added a comment. If children are added to a drawer where <code class="notranslate">persistent=true</code>, the component will spill onto the page.</p> <p dir="auto">The component position should update automatically in order to stay hidden or provide the caller with the information needed to resize the component.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/oliviertassinari/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/oliviertassinari">@oliviertassinari</a> said: "The resolution should be about adding an action property to the Slider so people can programmatically update the position."</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Currently the drawer content spills onto the page when children are added while the drawer is closed.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">See a demo here:</p> <p dir="auto"><a href="https://codesandbox.io/s/vqvzk2zv2y" rel="nofollow">https://codesandbox.io/s/vqvzk2zv2y</a></p> <h2 dir="auto">Context</h2> <p dir="auto">I'm using a bottom anchored persistent drawer for a list of file uploads. The drawer content has a <code class="notranslate">max-height</code>, but the exact height isn't specified. I want the drawer to be the right height to only be as large as needed to cover the list of uploaded files. Currently, as completed uploads are added to the list, if the drawer is closed, the content will spill onto the page until the drawer is opened and then closed again.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>[email protected]</td> </tr> <tr> <td>React</td> <td>[email protected]</td> </tr> <tr> <td>browser</td> <td>Version 64.0.3282.140 (Official Build) (64-bit)</td> </tr> </tbody> </table>
<p dir="auto">I am building a electron-react app and am using material-ui (latest v1.0) with success. The controls all seem to display fine - as far as I can see. I use TypeScript and vscode on Windows 10.</p> <p dir="auto">I use this code in the assumption it will select the dark theme for the material-ui:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const appTheme = createMuiTheme({ palette: { type: &quot;dark&quot;, // does not work?? } });"><pre class="notranslate"><code class="notranslate">const appTheme = createMuiTheme({ palette: { type: "dark", // does not work?? } }); </code></pre></div> <p dir="auto">and have my app react components wrapped with the MuiThemeProvider:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;MuiThemeProvider theme={appTheme}&gt; &lt;App /&gt; &lt;/MuiThemeProvider&gt;"><pre class="notranslate"><code class="notranslate">&lt;MuiThemeProvider theme={appTheme}&gt; &lt;App /&gt; &lt;/MuiThemeProvider&gt; </code></pre></div> <p dir="auto">How I understood it, this should be enough to have theme-support.</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">I expect to select the dark theme with this code.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">No reported errors (as far as I can see) and the light theme (default) is used.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">I don't think codesandbox runs electron...?</p> <ol dir="auto"> <li>Use in electron is a valid use-case (is it not?).</li> <li>Brings to light a bug or omission.</li> <li>Would help me tremendously with my project ;-)</li> <li></li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">Making an electron desktop app where I would like to (re)use the material-ui react components.</p> <h2 dir="auto">Your Environment</h2> <p dir="auto">Running vscode on Windows 10</p> <p dir="auto">dependencies:<br> "express": "^4.16.2",<br> "material-ui": "^1.0.0-beta.25",<br> "material-ui-icons": "^1.0.0-beta.17",<br> "morgan": "^1.9.0",<br> "node-hid": "^0.5.7",<br> "prop-types": "^15.6.0",<br> "react": "^16.2.0",<br> "react-dom": "^16.2.0",<br> "react-redux": "^5.0.6",<br> "react-swipeable-views": "^0.12.12",<br> "redux": "^3.7.2",<br> "typed-rest-client": "^0.15.1",<br> "typeface-roboto": "0.0.45"</p> <p dir="auto">dev-dependencies:<br> "@types/prop-types": "^15.5.2",<br> "@types/express": "^4.0.39",<br> "@types/jest": "^21.1.8",<br> "@types/morgan": "^1.7.35",<br> "@types/node": "^8.0.55",<br> "@types/node-hid": "^0.5.2",<br> "@types/react": "^16.0.31",<br> "@types/react-dom": "^16.0.3",<br> "@types/react-redux": "^5.0.14",<br> "@types/react-swipeable-views": "^0.12.0",<br> "electron": "^1.7.9",<br> "electron-rebuild": "^1.6.0",<br> "jest": "^22.0.3",<br> "ts-jest": "^22.0.0",<br> "tslint": "^5.8.0",<br> "tslint-react": "^3.2.0",<br> "typescript": "^2.6.2"</p>
0
<p dir="auto">**Glide Version : 3.6.1 <em>_:<br> <em>_Samsung Galaxy S4/Android 5.0.1</em></em>:<br> <strong>Monitor call with Charles</strong>:</p> <p dir="auto">Hello,<br> For specific reasons, I have to change the cache folder, I did it with a glideModule extension :</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public class GlideConfiguration implements GlideModule { @Override public void applyOptions(final Context context, GlideBuilder builder) { builder.setDiskCache(new DiskCache.Factory() { @Override public DiskCache build() { String dataDirPath = context.getApplicationInfo().dataDir; File cacheLocation = new File(dataDirPath + &quot;/media&quot;); if(!cacheLocation.exists()) { boolean success = cacheLocation.mkdirs(); if(success) System.out.println(&quot;build succeed&quot;); } return DiskLruCacheWrapper.get(cacheLocation, 20000000); } }); } @Override public void registerComponents(Context context, Glide glide) { } }"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">GlideConfiguration</span> <span class="pl-k">implements</span> <span class="pl-smi">GlideModule</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">applyOptions</span>(<span class="pl-k">final</span> <span class="pl-smi">Context</span> <span class="pl-s1">context</span>, <span class="pl-smi">GlideBuilder</span> <span class="pl-s1">builder</span>) { <span class="pl-s1">builder</span>.<span class="pl-en">setDiskCache</span>(<span class="pl-k">new</span> <span class="pl-smi">DiskCache</span>.<span class="pl-smi">Factory</span>() { <span class="pl-c1">@</span><span class="pl-c1">Override</span> <span class="pl-k">public</span> <span class="pl-smi">DiskCache</span> <span class="pl-en">build</span>() { <span class="pl-smi">String</span> <span class="pl-s1">dataDirPath</span> = <span class="pl-s1">context</span>.<span class="pl-en">getApplicationInfo</span>().<span class="pl-s1">dataDir</span>; <span class="pl-smi">File</span> <span class="pl-s1">cacheLocation</span> = <span class="pl-k">new</span> <span class="pl-smi">File</span>(<span class="pl-s1">dataDirPath</span> + <span class="pl-s">"/media"</span>); <span class="pl-k">if</span>(!<span class="pl-s1">cacheLocation</span>.<span class="pl-en">exists</span>()) { <span class="pl-smi">boolean</span> <span class="pl-s1">success</span> = <span class="pl-s1">cacheLocation</span>.<span class="pl-en">mkdirs</span>(); <span class="pl-k">if</span>(<span class="pl-s1">success</span>) <span class="pl-smi">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-s">"build succeed"</span>); } <span class="pl-k">return</span> <span class="pl-smi">DiskLruCacheWrapper</span>.<span class="pl-en">get</span>(<span class="pl-s1">cacheLocation</span>, <span class="pl-c1">20000000</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">registerComponents</span>(<span class="pl-smi">Context</span> <span class="pl-s1">context</span>, <span class="pl-smi">Glide</span> <span class="pl-s1">glide</span>) { } }</pre></div> <p dir="auto">And I also need to rename my cached files, I did it with dowloadOnly(..) :</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide.with(this) .load(&quot;http://www.wired.com/wp-content/uploads/2015/09/google-logo.jpg&quot;) .downloadOnly(new SimpleTarget&lt;File&gt;() { @Override public void onResourceReady(File resource, GlideAnimation&lt;? super File&gt; glideAnimation) { File folder = resource.getParentFile(); if (folder.exists() &amp;&amp; folder.isDirectory()) { File newPath = new File(folder, &quot;google-logo&quot;); /* NOTICE : renameTo change the filesystem path BUT NOT the File object so resource.getPath() will return the OLD path but resource.exists() return false while newPath.exists() return TRUE so the file is changed as we want to. */ resource.renameTo(newPath); } } });"><pre class="notranslate"><span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-smi">this</span>) .<span class="pl-en">load</span>(<span class="pl-s">"http://www.wired.com/wp-content/uploads/2015/09/google-logo.jpg"</span>) .<span class="pl-en">downloadOnly</span>(<span class="pl-k">new</span> <span class="pl-smi">SimpleTarget</span>&lt;<span class="pl-smi">File</span>&gt;() { <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">onResourceReady</span>(<span class="pl-smi">File</span> <span class="pl-s1">resource</span>, <span class="pl-smi">GlideAnimation</span>&lt;? <span class="pl-en">super</span> <span class="pl-smi">File</span>&gt; <span class="pl-s1">glideAnimation</span>) { <span class="pl-smi">File</span> <span class="pl-s1">folder</span> = <span class="pl-s1">resource</span>.<span class="pl-en">getParentFile</span>(); <span class="pl-k">if</span> (<span class="pl-s1">folder</span>.<span class="pl-en">exists</span>() &amp;&amp; <span class="pl-s1">folder</span>.<span class="pl-en">isDirectory</span>()) { <span class="pl-smi">File</span> <span class="pl-s1">newPath</span> = <span class="pl-k">new</span> <span class="pl-smi">File</span>(<span class="pl-s1">folder</span>, <span class="pl-s">"google-logo"</span>); <span class="pl-c">/*</span> <span class="pl-c"> NOTICE : renameTo change the filesystem path BUT NOT the File object</span> <span class="pl-c"> so resource.getPath() will return the OLD path</span> <span class="pl-c"> but resource.exists() return false while newPath.exists() return TRUE</span> <span class="pl-c"> so the file is changed as we want to.</span> <span class="pl-c"> */</span> <span class="pl-s1">resource</span>.<span class="pl-en">renameTo</span>(<span class="pl-s1">newPath</span>); } } });</pre></div> <p dir="auto">while I'm in-app it works fine and will not call the web to find the image for each simple call with load(..).into(imageView);<br> But if I close or kill the app and relaunch it, the first call with code above is performed again.<br> Is there a way to make my changes persistent? Is there a cleaner way to do what I want? I need to be able to change both the location and the name of cached files.<br> Thanks !</p>
<p dir="auto">With Glide 4.0, the RequestOptions seems affected by ordering in API level 17.<br> It makes rounded corners cannot exist with fitCenter at the same time.<br> The following code will have a perfect scaled image but no rounded corner.<br> (Work perfectly on other version.)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="RequestOptions options = new RequestOptions(); options.transform(roundedCorners); options.fitCenter();"><pre class="notranslate"><code class="notranslate">RequestOptions options = new RequestOptions(); options.transform(roundedCorners); options.fitCenter(); </code></pre></div>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=dserodio" rel="nofollow">Daniel Serodio</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8673?redirect=false" rel="nofollow">SPR-8673</a></strong> and commented</p> <p dir="auto">The reference manual in PDF form is missing all figures (diagrams)</p> <p dir="auto"><a href="http://static.springsource.org/spring/docs/3.0.6.RELEASE/spring-framework-reference/pdf/spring-framework-reference.pdf" rel="nofollow">http://static.springsource.org/spring/docs/3.0.6.RELEASE/spring-framework-reference/pdf/spring-framework-reference.pdf</a></p> <p dir="auto">eg. section "1.2 Modules" in page 27 of the PDF</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.6</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="398113405" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13158" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13158/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13158">#13158</a> pdf documentation doesn't contain images (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=mark.pollack" rel="nofollow">Mark Pollack</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7792?redirect=false" rel="nofollow">SPR-7792</a></strong> and commented</p> <p dir="auto">It is very difficult to override any behavior on AnnotationMethodHandlerAdapter with a subclass. This class should be more open to extension and automatic configuration in the namespace.</p> <p dir="auto">Avoiding the use of the namespace the registration of a custom AnnotationMethodHandlerAdapter is also complicated by the fact that other parts of the framework need to be configured when the HandlerAdapter changes. These are typically done by the namespace handler for mvc, but as one can't register a custom HandlerAdapter in the namespace, one has to duplicate that non obvious configuration.</p> <p dir="auto">See<br> <a href="https://github.com/SpringSource/spring-data-document/tree/master/spring-data-document-core/src/main/java/org/springframework/data/document/web">https://github.com/SpringSource/spring-data-document/tree/master/spring-data-document-core/src/main/java/org/springframework/data/document/web</a></p> <p dir="auto">for cut-n-paste extension of AnnotationMethodHandlerAdapter that I had created and its registration is done in</p> <p dir="auto"><a href="https://github.com/SpringSource/spring-data-document-examples/tree/master/myrestaurants-analytics/src/main/java/com/springone/myrestaurants/config">https://github.com/SpringSource/spring-data-document-examples/tree/master/myrestaurants-analytics/src/main/java/com/springone/myrestaurants/config</a></p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0 GA</p>
0
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">My use for PowerToys run would be primarily as an app switcher, secondarily as an app launcher. Since the options to launch new instances also have the two context buttons, I have to press tab 3 times to get to the option to switch to the running instance.</p> <p dir="auto">There should be a setting that allows you to always prioritize the results which switch to already-running applications.</p>
<h1 dir="auto">Add a feature to Keyboard Manager, which would let people remap a single key to a shortcut.</h1> <h1 dir="auto">Proposed technical implementation details (optional)</h1>
0
<p dir="auto">Functional component which looks like this</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function DateTime({ dateTime }) { return &lt;span&gt;{(dateTime || new Date()).toLocaleDateString(currentLocale)}&lt;/span&gt;; }"><pre class="notranslate"><code class="notranslate">function DateTime({ dateTime }) { return &lt;span&gt;{(dateTime || new Date()).toLocaleDateString(currentLocale)}&lt;/span&gt;; } </code></pre></div> <p dir="auto">being included to any conventional component causes this component's test failing with</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: inst.render is not a function at ReactCompositeComponentMixin._renderValidatedComponentWithoutOwnerOrContext (node_modules/react/lib/ReactCompositeComponent.js:587:34) at ReactCompositeComponentMixin._renderValidatedComponent (node_modules/react/lib/ReactCompositeComponent.js:607:32) at ..."><pre class="notranslate"><code class="notranslate">TypeError: inst.render is not a function at ReactCompositeComponentMixin._renderValidatedComponentWithoutOwnerOrContext (node_modules/react/lib/ReactCompositeComponent.js:587:34) at ReactCompositeComponentMixin._renderValidatedComponent (node_modules/react/lib/ReactCompositeComponent.js:607:32) at ... </code></pre></div> <p dir="auto">React 0.14.3, JEST 0.8.0, npm 3.5.2, node 5.2</p> <p dir="auto">Any suggestions on how to get rid of this?</p>
<p dir="auto">I originally left a comment in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="107717775" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/4936" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/4936/hovercard" href="https://github.com/facebook/react/issues/4936">#4936</a>, but I felt this might be better as a separate issue.</p> <blockquote> <p dir="auto">I completely agree with the rationale behind no backing instances and no refs for stateless components. I want to use pure stateless components as much as possible.</p> <p dir="auto">However, I'm running into instances where testing stateless components gets tricky. For the most part, using the shallow renderer to render a stateless component has been fine. I can then make assertions on expected props and children. To reduce the duplication, I abstract out the shallow renderer process to a helper function.</p> <p dir="auto">When, I want to test events, though, I have to take a different route. If my component takes an <code class="notranslate">onClick</code> prop, then I wrap it in a class component, so I can access the DOM node to simulate my click event. Again, this isn't a huge deal because I can abstract out the wrap/render process into a helper function.</p> <p dir="auto">I bring all this up because I feel that it would be nice to have better facilities in <code class="notranslate">TestUtils</code> for stateless components. I don't think the answer is allowing <code class="notranslate">ReactDOM.findDOMNode</code> to work on stateless components because that opens up it to abuse in normal application code. Are you open to allowing extra functions in <code class="notranslate">TestUtils</code> to simplify the process of testing stateless components? Or am I creating a code smell in my testing?</p> <p dir="auto">I'd be happy to create a PR for <code class="notranslate">TestUtils</code> if you think some more helper functions for stateless components would be beneficial.</p> </blockquote>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; Master</li> <li>Operating System / Platform =&gt; Any</li> <li>Compiler =&gt; Any</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">I am using the FFV1 codec proivded by FFMPEG to record videos with <code class="notranslate">VideoWriter</code>. This defaults to using FFV1 version 3, however, I would like to change the codec used to FFV1 version 1. In plain FFMPEG this can be done by passing the <code class="notranslate">-level 1</code> flag to the call.</p> <p dir="auto">Is it possible to do something like this through OpenCV? So far, I have not found anything useful regarding this.</p> <p dir="auto">I have asked the same <a href="https://answers.opencv.org/question/222493/setting-codec-parameters-with-ffmpeg-backend/" rel="nofollow">question</a> on the forum but have recieved no response. Hence I am asking here as well.</p>
<p dir="auto">I'm looking for guidance in regards to submitting a PR that will allow you to specify raw options (i.e preset) using av_dict_set. This applies to <code class="notranslate">VideoCapture</code> and <code class="notranslate">VideoWriter</code> The use case here being that you could support encoding videos targeting a specific device (i.e Apple iPad). Or tune encoding performance for a given codec i.e. <a href="http://www.ffmpeg.org/doxygen/3.0/libvpxenc_8c_source.html#1061" rel="nofollow">VP9</a></p> <p dir="auto"><strong>Specify backend options by instantiating a new VideoWriter (!?)</strong></p> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="VideoWriter::VideoWriter(const String&amp; filename, int fourcc, double fps, Size frameSize, bool isColor=true, std::map&lt;std::string, std::string&gt; backendOptions)"><pre class="notranslate"><span class="pl-en">VideoWriter::VideoWriter</span>(<span class="pl-k">const</span> String&amp; filename, <span class="pl-k">int</span> fourcc, <span class="pl-k">double</span> fps, <span class="pl-c1">Size</span> frameSize, <span class="pl-k">bool</span> isColor=<span class="pl-c1">true</span>, std::map&lt;std::string, std::string&gt; backendOptions)</pre></div>
1
<ul dir="auto"> <li>[√] I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li>[√] I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.4.1</li> <li>Operating System version: Windows 10 专业版 1809 64位</li> <li>Java version: 1.8.0.191</li> <li>Nacos version: 1.1.3</li> <li>Redis version: 5.0.6</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">1.使用nacos作为注册中心<br> dubbo.registry.protocol = nacos<br> dubbo.registry.address = 172.16.1.10:8848</p> <ol start="2" dir="auto"> <li> <p dir="auto">启用meta data report<br> dubbo.metadata-report.address = redis://172.16.1.11:6379</p> </li> <li> <p dir="auto">设置registry simplified<br> dubbo.registry.simplified = true</p> </li> </ol> <h3 dir="auto">Expected Result</h3> <p dir="auto">nacos的服务列表中service名称正常显示<br> 如:consumers:com.xxx.services.DubboServiceProviderA:1.0.0:</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">service名称丢失<br> consumers:::1.0.0:</p> <p dir="auto">Service详情中的元数据</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="path=com.xxx.services.DubboServiceProviderA protocol=consumer application=dubbo-consumer-a release=2.7.4.1 dubbo=2.0.2 check=false category=consumers version=1.0.0"><pre class="notranslate"><code class="notranslate">path=com.xxx.services.DubboServiceProviderA protocol=consumer application=dubbo-consumer-a release=2.7.4.1 dubbo=2.0.2 check=false category=consumers version=1.0.0 </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/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto">Recently I have found that some PRs do not trigger codecov-io. But it seemed all PRs could trigger codecov-io previously. Does someone know why ?</p>
0
<h2 dir="auto">Question</h2> <p dir="auto"><strong>For English only</strong>, other languages will not accept.</p> <p dir="auto">Before asking a question, make sure you have:</p> <ul dir="auto"> <li>Googled your question.</li> <li>Searched open and closed <a href="https://github.com/apache/shardingsphere/issues">GitHub issues</a>.</li> <li>Read documentation: <a href="https://shardingsphere.apache.org/document/current/en/overview" rel="nofollow">ShardingSphere Doc</a>.</li> </ul> <p dir="auto">Please pay attention on issues you submitted, because we maybe need more details.<br> If no response anymore and we cannot reproduce it on current information, we will <strong>close it</strong>.</p>
<p dir="auto">Which version of ShardingSphere did you use?<br> ghcr.io/apache/shardingsphere-proxy:c9cc117c8f4b42c220f89c92851bf945c40c71b0 (helm cluster)</p> <p dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?<br> ShardingSphere-Proxy</p> <p dir="auto">Expected behavior<br> JDBC connection is normal.</p> <p dir="auto">Actual behavior<br> java.sql.SQLException: Unknown system variable 'query_cache_size'<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/51192624/184082438-f5cfd40b-d56b-4861-bd8e-892bfabe8133.png"><img src="https://user-images.githubusercontent.com/51192624/184082438-f5cfd40b-d56b-4861-bd8e-892bfabe8133.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Environment Configurations</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="props: check-duplicate-table-enabled: false check-table-metadata-enabled: true kernel-executor-size: 16 max-connections-size-per-query: 1 proxy-backend-driver-type: JDBC proxy-backend-executor-suitable: OLAP proxy-backend-query-fetch-size: -1 proxy-frontend-executor-size: 0 proxy-frontend-flush-threshold: 128 proxy-frontend-max-connections: 0 proxy-hint-enabled: true proxy-opentracing-enabled: false show-process-list-enabled: false sql-federation-enabled: false sql-show: true proxy-mysql-default-version: 8.0.21"><pre class="notranslate"><code class="notranslate">props: check-duplicate-table-enabled: false check-table-metadata-enabled: true kernel-executor-size: 16 max-connections-size-per-query: 1 proxy-backend-driver-type: JDBC proxy-backend-executor-suitable: OLAP proxy-backend-query-fetch-size: -1 proxy-frontend-executor-size: 0 proxy-frontend-flush-threshold: 128 proxy-frontend-max-connections: 0 proxy-hint-enabled: true proxy-opentracing-enabled: false show-process-list-enabled: false sql-federation-enabled: false sql-show: true proxy-mysql-default-version: 8.0.21 </code></pre></div> <p dir="auto">My mysql cloud server version is <code class="notranslate">8.0.21-5</code></p> <p dir="auto">I need a little help.</p>
0
<p dir="auto"><strong>Update 5 November 2015</strong></p> <p dir="auto">The functionality requested below is currently implemented in typescript since at least 1.8 with one main difference:</p> <p dir="auto">Instead of having <code class="notranslate">typescript.main</code> and <code class="notranslate">typescript.definition</code> properties, there is only one <code class="notranslate">typings</code> property which you can point to either a <code class="notranslate">d.ts</code> file or a normal <code class="notranslate">.ts</code> file.</p> <p dir="auto">If you're developing a module to just use locally, you can have the <code class="notranslate">typings</code> point to a <code class="notranslate">.ts</code> file, but if you plan to publish the module, it is recommended to have it point to a <code class="notranslate">d.ts</code> file. This is because you don't want your module consumers to recompile your module files, just consume its typings.</p> <p dir="auto">I have setup an example of using this here:<br> <a href="https://github.com/chanon/typescript_module_example">https://github.com/chanon/typescript_module_example</a></p> <p dir="auto">There is a documentation page here that has more information:<br> <a href="http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html" rel="nofollow">http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html</a></p> <p dir="auto">Thank you TypeScript devs and all contributors.</p> <p dir="auto"><strong>Original issue / feature request follows</strong></p> <hr> <h2 dir="auto">Motivation</h2> <p dir="auto">In TypeScript it is a lot harder to re-use typescript modules compared to re-using npm modules in JavaScript.</p> <p dir="auto">It would be beneficial if the typescript compiler is smart enough to look in node_modules folders and package.json files.</p> <p dir="auto">The reason is so that npm module developers that use TypeScript might be able to start writing and distributing modules through npm itself. TypeScript would be able to piggyback on npm's infrastructure and wide support.</p> <h2 dir="auto">Example for node_modules</h2> <p dir="auto">If we had:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./node_modules/concator/index.ts ./myApp.ts"><pre class="notranslate"><code class="notranslate">./node_modules/concator/index.ts ./myApp.ts </code></pre></div> <p dir="auto">And in index.ts we had:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export function concat(param1: string, param2:string): string { return param1 + ' ' + param2; }"><pre class="notranslate"><code class="notranslate">export function concat(param1: string, param2:string): string { return param1 + ' ' + param2; } </code></pre></div> <p dir="auto">in myApp.ts:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import concator = require('concator'); // loads the module from node_modules var result = concator.concat('I like', 'this.'); var wontWork = concator.concat('this will fail'); // compile error, concat needs 2 params"><pre class="notranslate"><code class="notranslate">import concator = require('concator'); // loads the module from node_modules var result = concator.concat('I like', 'this.'); var wontWork = concator.concat('this will fail'); // compile error, concat needs 2 params </code></pre></div> <p dir="auto">So basically, the compiler is smart enough to find the module in node_modules and it automatically uses the typescript version (index.ts).</p> <p dir="auto">Then when the code is compiled to JavaScript, it naturally uses the JavaScript version.</p> <h2 dir="auto">Importing Folders as Modules</h2> <p dir="auto">A more basic case is supporting Node.js's popular rule of <a href="http://nodejs.org/api/modules.html#modules_folders_as_modules" rel="nofollow">http://nodejs.org/api/modules.html#modules_folders_as_modules</a> as suggested by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vvakame/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vvakame">@vvakame</a> below and in the closed (semi-duplicate) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="38476667" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/207" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/207/hovercard" href="https://github.com/microsoft/TypeScript/issues/207">#207</a> issue.</p> <h2 dir="auto">typescript.main in package.json</h2> <p dir="auto">There could be an addition to package.json files to specify where the main .ts file of a TypeScript npm module is. This would be similar to the <code class="notranslate">main</code> key that specifies where the main JavaScript / .js file is but for TypeScript instead.</p> <p dir="auto">Eg package.json for an npm module named "myModule" located at <code class="notranslate">node_modules/myModule/package.json</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;main&quot;: &quot;./dist/index.js&quot;, &quot;typescript&quot;: { &quot;main&quot;: &quot;./src/index.ts&quot; } }"><pre class="notranslate"><code class="notranslate">{ "main": "./dist/index.js", "typescript": { "main": "./src/index.ts" } } </code></pre></div> <p dir="auto">In this example <code class="notranslate">node_modules/myModule/src/index.ts</code> would be the main TypeScript file and doing an <code class="notranslate">import myModule = require("myModule");</code> would import the <code class="notranslate">node_modules/myModule/src/index.ts</code> file.</p> <p dir="auto">For a JavaScript coder writing <code class="notranslate">var myModule = require("myModule");</code> in a JavaScript file, the require would load the <code class="notranslate">node_modules/myModule/dist/index.js</code> file as usual.</p> <p dir="auto">As can be seen in this example, the TypeScript src is in the <code class="notranslate">node_modules/module-name/src</code> folder and the compiled JS files would be in <code class="notranslate">node_modules/module-name/dist</code>.</p> <p dir="auto">Something like this could be a (semi) standard for TypeScript npm modules so that the TypeScript source is cleanly separated from the compiled JavaScript output.</p> <p dir="auto">A more basic case as suggested by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vvakame/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vvakame">@vvakame</a> below is supporting the popular Node.js rule of <a href="http://nodejs.org/api/modules.html#modules_folders_as_module" rel="nofollow">http://nodejs.org/api/modules.html#modules_folders_as_module</a></p> <h2 dir="auto">typescript.definition in package.json</h2> <p dir="auto">Another possible key for package.json for non-TypeScript (plain JavaScript) npm modules could be <code class="notranslate">typescript.definition</code>. This would point to a .d.ts file that defines the module for TypeScript users of the npm module.</p> <p dir="auto">So that an<br> <code class="notranslate">import $ = require('jquery');</code><br> would automatically read a <code class="notranslate">jquery.d.ts</code> file defined in the <code class="notranslate">typescript.definition</code> key in jQuery's package.json and make <code class="notranslate">$</code> the correct type.</p> <p dir="auto">Example format:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;main&quot;: &quot;./dist/index.js&quot;, &quot;typescript&quot;: { &quot;definition&quot;: &quot;./index.d.ts&quot; } }"><pre class="notranslate"><code class="notranslate">{ "main": "./dist/index.js", "typescript": { "definition": "./index.d.ts" } } </code></pre></div> <p dir="auto">(This format is already used by tsd as <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Bartvds/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Bartvds">@Bartvds</a> explains below.)</p> <p dir="auto">Then us TypeScript coders would just have to try to get as many non-TypeScript npm module maintainers to merge our pull requests that have our .d.ts files and package.json <code class="notranslate">typescript.definition</code> keys.</p> <p dir="auto">If we succeed with that, then TypeScript coders' life would be bliss ... no more separate managing of DefinitelyTyped .d.ts files. Just npm install and you get your TypeScript definitions too! Automatically and up-to-date with the module version installed.</p> <h2 dir="auto">List of Benefits</h2> <p dir="auto">What we get from all of this is</p> <ul dir="auto"> <li>npm modules can be written in TypeScript.</li> <li>Both TypeScript and JavaScript coders can use these modules</li> <li>The module users who use TypeScript get the benefits of static typing without the module coder (or user) having to use the usual method of writing (or generating) separate .d.ts files (so when the sourcecode of the module is already in TypeScript we don't have to have another .d.ts file to maintain)</li> <li>There would be a way to easily re-use and distribute TypeScript modules using npm which everyone is already familiar with</li> <li>It could help promote TypeScript usage itself, as JavaScript coders who use the npm modules written in TypeScript might see how nice / better the TypeScript source is and try switching to it. Or they might want to contribute to the module and since the source is in TypeScript they would have to learn it which may lead to them liking it and deciding to use it in their own projects.</li> <li>Basically it would help grow the TypeScript community through all the code sharing that could result. Right now everyone's TypeScript code is mostly their own / in their own silo. This is actually probably an extremely important thing as not having a proper/easy way to share/distribute/re-use modules is probably limiting the growth of the language. [1]</li> <li>Re-use of modules in internal projects would be a lot less of a hassle and would reduce the need for all those relative paths to .d.ts files and relative paths in module requires, and general .d.ts stuff. (Right now when writing TypeScript code, I find I have to learn to be good with counting ../../ s)</li> <li>This approach also supports Browserify/Webpack as Browserify/Webpack also look under node_modules, so this allows for easy reusable / npm distributed TypeScript modules for both the server and browser</li> <li>Non-TypeScript npm modules can easily be used in TypeScript with type information through the <code class="notranslate">typescript.definition</code> key addition. This allows .d.ts definition files to be packaged together with the npm module so that updating an npm module will automatically update its .d.ts definition file. This removes the need to update .d.ts files manually.</li> <li>Using definition files through the <code class="notranslate">typescript.definition</code> is simpler because it is simply an <code class="notranslate">import moduleName = require("moduleName")</code> statement with no need for a separate <code class="notranslate">///&lt;reference ...</code></li> <li>Using definition files through the <code class="notranslate">typescript.definition</code> should also allow the use of different versions of the module in the same code base without type names clashing.</li> </ul> <h2 dir="auto">Detailed Proposal</h2> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Nemo157/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Nemo157">@Nemo157</a> has written a very detailed proposal for how all of this should work at:</p> <p dir="auto"><strong>Proposed TypeScript Require Resolution Semantics</strong><br> <a href="https://gist.github.com/Nemo157/f20064a282ee620f3877">https://gist.github.com/Nemo157/f20064a282ee620f3877</a></p> <p dir="auto">An addition in the proposal is the usage of <code class="notranslate">/typings</code> folders which can hold definition files that can be automatically managed by tools such as <code class="notranslate">tsd</code> for JavaScript npm modules that won't include definition files in their repositories.</p> <h2 dir="auto">Final Supporting Facts</h2> <p dir="auto">Since TypeScript compiles to JavaScript which runs mainly in two places: node.js and in browsers, supporting node_modules is beneficial to both places (practically all of where TypeScript is used) because of npm and Browserify/Webpack.</p> <p dir="auto">ie. there is no reason to come up with a different scheme when node_modules is what all TypeScript users use already for maybe 75%-100% of all their JavaScript code. (Taking out 25% for maybe RequireJS users.)</p> <h3 dir="auto">Footnotes</h3> <p dir="auto">[1] - BTW I see there is a NuGet package manager (?) from Microsoft that can distribute typescript modules (?), but coming from a node.js focused (non .NET focused) background, I don't see NuGet becoming widely used outside of Microsoft focused shops, especially as npm is <em>the</em> standard for node.js and is a leading standard for client side JavaScript too. If I didn't use TypeScript I would have never heard of NuGet. The average node.js / client side JavaScript coder would probably prefer using npm, the same tool they use already rather than having to use something Microsoft specific such as NuGet. (I don't actually know a thing about NuGet so what I'm saying here might not actually matter.)</p>
<p dir="auto">Sometimes we need to capture a union of types that may be a mixture of primitives, functions, objects, etc. but we want to leave it parameterised (just as we already can with interfaces).</p> <h2 dir="auto">Example</h2> <p dir="auto">A simple non-recursive example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="type Source&lt;T&gt; = T | (() =&gt; T);"><pre class="notranslate"><code class="notranslate">type Source&lt;T&gt; = T | (() =&gt; T); </code></pre></div> <p dir="auto">Here, a source can either be a plain value or a nullary function that obtains a value.</p> <p dir="auto">We can provide uniform access to such sources:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function unwrap&lt;T&gt;(p: Source&lt;T&gt;) { return (typeof p === &quot;function&quot;) ? p() : p; }"><pre class="notranslate"><code class="notranslate">function unwrap&lt;T&gt;(p: Source&lt;T&gt;) { return (typeof p === "function") ? p() : p; } </code></pre></div> <p dir="auto">And then we can specify model interfaces where we we leave open the nature of the source but we tie down the value types:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="interface Person { name: Source&lt;string&gt;; age: Source&lt;number&gt;; }"><pre class="notranslate"><code class="notranslate">interface Person { name: Source&lt;string&gt;; age: Source&lt;number&gt;; } </code></pre></div> <p dir="auto">e.g. <code class="notranslate">name</code> is a constant, but <code class="notranslate">age</code> depends on when you ask:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var p: Person = { name: &quot;John Lennon&quot;, age: () =&gt; ageFromDOB(1940, 10, 9), }"><pre class="notranslate"><code class="notranslate">var p: Person = { name: "John Lennon", age: () =&gt; ageFromDOB(1940, 10, 9), } </code></pre></div> <p dir="auto">But we can treat them identically in consuming code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var n = unwrap(p.name), a = unwrap(p.age);"><pre class="notranslate"><code class="notranslate">var n = unwrap(p.name), a = unwrap(p.age); </code></pre></div> <p dir="auto">NB. The above is already possible with union types alone, but the interface <code class="notranslate">Person</code> has to repeat the pattern:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="interface Person { name: string | (() =&gt; string); age: number | (() =&gt; number); }"><pre class="notranslate"><code class="notranslate">interface Person { name: string | (() =&gt; string); age: number | (() =&gt; number); } </code></pre></div> <p dir="auto">Not so bad for a simple example, but the pattern for a value source might evolve to get more complex and then you have a lot of fiddly updating to do because you "Did Repeat Yourself".</p> <h2 dir="auto">Recursion</h2> <p dir="auto">The more flexible recursive version:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="type Source&lt;T&gt; = T | (() =&gt; Source&lt;T&gt;);"><pre class="notranslate"><code class="notranslate">type Source&lt;T&gt; = T | (() =&gt; Source&lt;T&gt;); </code></pre></div> <p dir="auto">A source can either be a plain value or a nullary function that obtains a source (which may be a plain value terminating recursion, or a nullary function that... and so on).</p> <p dir="auto">We can again provide uniform access to such sources, either with runtime recursion (risky until tail-call optimisation is widespread):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function unwrap&lt;T&gt;(p: Source&lt;T&gt;) { return (typeof p === &quot;function&quot;) ? unwrap(p()) : p; }"><pre class="notranslate"><code class="notranslate">function unwrap&lt;T&gt;(p: Source&lt;T&gt;) { return (typeof p === "function") ? unwrap(p()) : p; } </code></pre></div> <p dir="auto">Or with a loop:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function unwrap&lt;T&gt;(p: Source&lt;T&gt;) { for (;;) { if (typeof p !== &quot;function&quot;) { return p; } p = p(); } }"><pre class="notranslate"><code class="notranslate">function unwrap&lt;T&gt;(p: Source&lt;T&gt;) { for (;;) { if (typeof p !== "function") { return p; } p = p(); } } </code></pre></div>
0
<p dir="auto">How I can just check URL in new tab opened after link clicking, and at once abort all traffic to avoid not needed network traffic generation.<br> I tried with below test but it is not working.</p> <h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.34]</li> <li>Operating System: [Windows 11]</li> <li>Browser: [Chromium]</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <ul dir="auto"> <li>[ x] I provided exact source code that allows reproducing the issue locally.<br> Using default config</li> </ul> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { expect, test } from '@playwright/test'; test('verify link in new tab', async ({ page }) =&gt; { await page.goto('https://playwright.dev/'); const popupPromise = page.waitForEvent('popup'); await page.getByRole('link', { name: 'GitHub repository' }).click(); const popup = await popupPromise; //synchronous below - will not fully work await popup.route('**/*', (route) =&gt; route.abort()); await popup.waitForLoadState(); await expect(popup).toHaveURL('https://github.com/microsoft/playwright'); });"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">expect</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">'verify link in new tab'</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">goto</span><span class="pl-kos">(</span><span class="pl-s">'https://playwright.dev/'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">popupPromise</span> <span class="pl-c1">=</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">waitForEvent</span><span class="pl-kos">(</span><span class="pl-s">'popup'</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">'link'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'GitHub repository'</span> <span class="pl-kos">}</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-k">const</span> <span class="pl-s1">popup</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">popupPromise</span><span class="pl-kos">;</span> <span class="pl-c">//synchronous below - will not fully work</span> <span class="pl-k">await</span> <span class="pl-s1">popup</span><span class="pl-kos">.</span><span class="pl-en">route</span><span class="pl-kos">(</span><span class="pl-s">'**/*'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">route</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">route</span><span class="pl-kos">.</span><span class="pl-en">abort</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">popup</span><span class="pl-kos">.</span><span class="pl-en">waitForLoadState</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">popup</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveURL</span><span class="pl-kos">(</span><span class="pl-s">'https://github.com/microsoft/playwright'</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>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: v1.32.2</li> <li>Operating System: Windows 10</li> <li>Browser: chromium, firefox, webkit</li> <li>Other info: Node v16.14.0</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>package.json</strong></p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;name&quot;: &quot;testcase&quot;, &quot;version&quot;: &quot;1.0.0&quot;, &quot;type&quot;: &quot;module&quot;, &quot;dependencies&quot;: { &quot;playwright&quot;: &quot;1.32.2&quot; } }"><pre class="notranslate">{ <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>testcase<span class="pl-pds">"</span></span>, <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>1.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"type"</span>: <span class="pl-s"><span class="pl-pds">"</span>module<span class="pl-pds">"</span></span>, <span class="pl-ent">"dependencies"</span>: { <span class="pl-ent">"playwright"</span>: <span class="pl-s"><span class="pl-pds">"</span>1.32.2<span class="pl-pds">"</span></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="// index.js import playwright from &quot;playwright&quot;; for (let i = 0; i &lt; 1000; ++i) { console.log(i); const browser = await playwright.chromium.launch({ slowMo: 250 }); const context = await browser.newContext(); const page = await context.newPage(); page.on(&quot;framenavigated&quot;, async (frame) =&gt; { await frame.locator(&quot;span&quot;).evaluateAll(() =&gt; {}); await frame.addStyleTag({ content: &quot;div {}&quot; }); }); await page.goto(&quot;https://playwright.dev/docs/api/class-browser&quot;); await context.close(); await browser.close(); }"><pre class="notranslate"><span class="pl-c">// index.js</span> <span class="pl-k">import</span> <span class="pl-s1">playwright</span> <span class="pl-k">from</span> <span class="pl-s">"playwright"</span><span class="pl-kos">;</span> <span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">let</span> <span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-s1">i</span> <span class="pl-c1">&lt;</span> <span class="pl-c1">1000</span><span class="pl-kos">;</span> <span class="pl-c1">++</span><span class="pl-s1">i</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">i</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">browser</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">playwright</span><span class="pl-kos">.</span><span class="pl-c1">chromium</span><span class="pl-kos">.</span><span class="pl-en">launch</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">slowMo</span>: <span class="pl-c1">250</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">context</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">newContext</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">context</span><span class="pl-kos">.</span><span class="pl-en">newPage</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">"framenavigated"</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-s1">frame</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">frame</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">"span"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">evaluateAll</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">frame</span><span class="pl-kos">.</span><span class="pl-en">addStyleTag</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">content</span>: <span class="pl-s">"div {}"</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">"https://playwright.dev/docs/api/class-browser"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">context</span><span class="pl-kos">.</span><span class="pl-en">close</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">close</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>Unzip <a href="https://github.com/microsoft/playwright/files/11157402/testcase.zip">testcase.zip</a></li> <li><code class="notranslate">npm install</code></li> <li><code class="notranslate">DEBUG=pw:api,pw:channel:command,pw:channel:response node index.js</code></li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">No error.</p> <p dir="auto"><strong>Actual</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0 pw:api =&gt; browserType.launch started +0ms pw:channel:command { pw:channel:command id: 1, pw:channel:command guid: 'browser-type@217bc1acf01e8ab60147d89d2aafcd1a', pw:channel:command method: 'launch', pw:channel:command params: { ignoreAllDefaultArgs: false, slowMo: 250 } pw:channel:command } +0ms pw:channel:response { pw:channel:response id: 1, pw:channel:response result: { browser: { guid: 'browser@457c5f62717d2b86635a9c36c4b2a3a2' } } pw:channel:response } +0ms pw:api &lt;= browserType.launch succeeded +412ms pw:api =&gt; browser.newContext started +2ms pw:channel:command { pw:channel:command id: 2, pw:channel:command guid: 'browser@457c5f62717d2b86635a9c36c4b2a3a2', pw:channel:command method: 'newContext', pw:channel:command params: { noDefaultViewport: false } pw:channel:command } +413ms pw:channel:response { pw:channel:response id: 2, pw:channel:response result: { pw:channel:response context: { guid: 'browser-context@c2725438de82db711cab1d84e6966c97' } pw:channel:response } pw:channel:response } +11ms pw:api &lt;= browser.newContext succeeded +9ms pw:api =&gt; browserContext.newPage started +1ms pw:channel:command { pw:channel:command id: 3, pw:channel:command guid: 'browser-context@c2725438de82db711cab1d84e6966c97', pw:channel:command method: 'newPage', pw:channel:command params: undefined pw:channel:command } +10ms pw:channel:response { pw:channel:response id: 3, pw:channel:response result: { page: { guid: 'page@b84a8ba8e6e23aa2528953cbf97dc5c3' } } pw:channel:response } +155ms pw:api &lt;= browserContext.newPage succeeded +153ms pw:api =&gt; page.goto started +1ms pw:channel:command { pw:channel:command id: 4, pw:channel:command guid: 'frame@3ee5e10621a15eaf80cb985dbccb9a28', pw:channel:command method: 'goto', pw:channel:command params: { pw:channel:command url: 'https://playwright.dev/docs/api/class-browser', pw:channel:command waitUntil: 'load' pw:channel:command } pw:channel:command } +154ms pw:api navigating to &quot;https://playwright.dev/docs/api/class-browser&quot;, waiting until &quot;load&quot; +2ms pw:api &quot;commit&quot; event fired +45ms pw:api navigated to &quot;https://playwright.dev/docs/api/class-browser&quot; +1ms pw:api =&gt; locator.evaluateAll started +3ms pw:channel:command { pw:channel:command id: 5, pw:channel:command guid: 'frame@3ee5e10621a15eaf80cb985dbccb9a28', pw:channel:command method: 'evalOnSelectorAll', pw:channel:command params: { pw:channel:command selector: 'span', pw:channel:command expression: '() =&gt; {}', pw:channel:command isFunction: true, pw:channel:command arg: { value: [Object], handles: [] } pw:channel:command } pw:channel:command } +51ms pw:api &quot;domcontentloaded&quot; event fired +189ms pw:api &quot;load&quot; event fired +117ms pw:channel:response { id: 5, result: { value: { v: 'undefined' } } } +512ms pw:api &lt;= locator.evaluateAll succeeded +157ms pw:api =&gt; frame.addStyleTag started +3ms pw:channel:command { pw:channel:command id: 6, pw:channel:command guid: 'frame@3ee5e10621a15eaf80cb985dbccb9a28', pw:channel:command method: 'addStyleTag', pw:channel:command params: { content: 'div {}' } pw:channel:command } +466ms pw:channel:response { pw:channel:response id: 4, pw:channel:response result: { response: { guid: 'response@cab1b2a18575669f02a3fbe57676ad7a' } } pw:channel:response } +105ms pw:api &lt;= page.goto succeeded +100ms pw:api =&gt; browserContext.close started +3ms pw:channel:command { pw:channel:command id: 7, pw:channel:command guid: 'browser-context@c2725438de82db711cab1d84e6966c97', pw:channel:command method: 'close', pw:channel:command params: undefined pw:channel:command } +103ms pw:channel:response { id: 7 } +12ms pw:api &lt;= browserContext.close succeeded +8ms pw:api =&gt; browser.close started +1ms pw:channel:command { pw:channel:command id: 8, pw:channel:command guid: 'browser@457c5f62717d2b86635a9c36c4b2a3a2', pw:channel:command method: 'close', pw:channel:command params: undefined pw:channel:command } +9ms pw:channel:response { id: 8 } +38ms pw:api &lt;= browser.close succeeded +38ms 1 pw:api =&gt; browserType.launch started +3ms pw:channel:command { pw:channel:command id: 9, pw:channel:command guid: 'browser-type@217bc1acf01e8ab60147d89d2aafcd1a', pw:channel:command method: 'launch', pw:channel:command params: { ignoreAllDefaultArgs: false, slowMo: 250 } pw:channel:command } +42ms pw:channel:response { pw:channel:response id: 6, pw:channel:response result: { element: { guid: 'handle@7833e65f500bd1d978e1450a5459c7bb' } } pw:channel:response } +238ms C:\Users\regseb\dev\testcase\node_modules\playwright-core\lib\client\connection.js:211 if (!object) throw new Error(`Object with guid ${arg.guid} was not bound in the connection`); ^ Error: Object with guid handle@7833e65f500bd1d978e1450a5459c7bb was not bound in the connection at Connection._tChannelImplFromWire (C:\Users\regseb\dev\testcase\node_modules\playwright-core\lib\client\connection.js:211:26) at C:\Users\regseb\dev\testcase\node_modules\playwright-core\lib\protocol\validatorPrimitives.js:129:20 at C:\Users\regseb\dev\testcase\node_modules\playwright-core\lib\protocol\validatorPrimitives.js:108:21 at Connection.dispatch (C:\Users\regseb\dev\testcase\node_modules\playwright-core\lib\client\connection.js:170:26) at Immediate.&lt;anonymous&gt; (C:\Users\regseb\dev\testcase\node_modules\playwright-core\lib\inProcessFactory.js:46:83) at processImmediate (node:internal/timers:466:21)"><pre class="notranslate"><code class="notranslate">0 pw:api =&gt; browserType.launch started +0ms pw:channel:command { pw:channel:command id: 1, pw:channel:command guid: 'browser-type@217bc1acf01e8ab60147d89d2aafcd1a', pw:channel:command method: 'launch', pw:channel:command params: { ignoreAllDefaultArgs: false, slowMo: 250 } pw:channel:command } +0ms pw:channel:response { pw:channel:response id: 1, pw:channel:response result: { browser: { guid: 'browser@457c5f62717d2b86635a9c36c4b2a3a2' } } pw:channel:response } +0ms pw:api &lt;= browserType.launch succeeded +412ms pw:api =&gt; browser.newContext started +2ms pw:channel:command { pw:channel:command id: 2, pw:channel:command guid: 'browser@457c5f62717d2b86635a9c36c4b2a3a2', pw:channel:command method: 'newContext', pw:channel:command params: { noDefaultViewport: false } pw:channel:command } +413ms pw:channel:response { pw:channel:response id: 2, pw:channel:response result: { pw:channel:response context: { guid: 'browser-context@c2725438de82db711cab1d84e6966c97' } pw:channel:response } pw:channel:response } +11ms pw:api &lt;= browser.newContext succeeded +9ms pw:api =&gt; browserContext.newPage started +1ms pw:channel:command { pw:channel:command id: 3, pw:channel:command guid: 'browser-context@c2725438de82db711cab1d84e6966c97', pw:channel:command method: 'newPage', pw:channel:command params: undefined pw:channel:command } +10ms pw:channel:response { pw:channel:response id: 3, pw:channel:response result: { page: { guid: 'page@b84a8ba8e6e23aa2528953cbf97dc5c3' } } pw:channel:response } +155ms pw:api &lt;= browserContext.newPage succeeded +153ms pw:api =&gt; page.goto started +1ms pw:channel:command { pw:channel:command id: 4, pw:channel:command guid: 'frame@3ee5e10621a15eaf80cb985dbccb9a28', pw:channel:command method: 'goto', pw:channel:command params: { pw:channel:command url: 'https://playwright.dev/docs/api/class-browser', pw:channel:command waitUntil: 'load' pw:channel:command } pw:channel:command } +154ms pw:api navigating to "https://playwright.dev/docs/api/class-browser", waiting until "load" +2ms pw:api "commit" event fired +45ms pw:api navigated to "https://playwright.dev/docs/api/class-browser" +1ms pw:api =&gt; locator.evaluateAll started +3ms pw:channel:command { pw:channel:command id: 5, pw:channel:command guid: 'frame@3ee5e10621a15eaf80cb985dbccb9a28', pw:channel:command method: 'evalOnSelectorAll', pw:channel:command params: { pw:channel:command selector: 'span', pw:channel:command expression: '() =&gt; {}', pw:channel:command isFunction: true, pw:channel:command arg: { value: [Object], handles: [] } pw:channel:command } pw:channel:command } +51ms pw:api "domcontentloaded" event fired +189ms pw:api "load" event fired +117ms pw:channel:response { id: 5, result: { value: { v: 'undefined' } } } +512ms pw:api &lt;= locator.evaluateAll succeeded +157ms pw:api =&gt; frame.addStyleTag started +3ms pw:channel:command { pw:channel:command id: 6, pw:channel:command guid: 'frame@3ee5e10621a15eaf80cb985dbccb9a28', pw:channel:command method: 'addStyleTag', pw:channel:command params: { content: 'div {}' } pw:channel:command } +466ms pw:channel:response { pw:channel:response id: 4, pw:channel:response result: { response: { guid: 'response@cab1b2a18575669f02a3fbe57676ad7a' } } pw:channel:response } +105ms pw:api &lt;= page.goto succeeded +100ms pw:api =&gt; browserContext.close started +3ms pw:channel:command { pw:channel:command id: 7, pw:channel:command guid: 'browser-context@c2725438de82db711cab1d84e6966c97', pw:channel:command method: 'close', pw:channel:command params: undefined pw:channel:command } +103ms pw:channel:response { id: 7 } +12ms pw:api &lt;= browserContext.close succeeded +8ms pw:api =&gt; browser.close started +1ms pw:channel:command { pw:channel:command id: 8, pw:channel:command guid: 'browser@457c5f62717d2b86635a9c36c4b2a3a2', pw:channel:command method: 'close', pw:channel:command params: undefined pw:channel:command } +9ms pw:channel:response { id: 8 } +38ms pw:api &lt;= browser.close succeeded +38ms 1 pw:api =&gt; browserType.launch started +3ms pw:channel:command { pw:channel:command id: 9, pw:channel:command guid: 'browser-type@217bc1acf01e8ab60147d89d2aafcd1a', pw:channel:command method: 'launch', pw:channel:command params: { ignoreAllDefaultArgs: false, slowMo: 250 } pw:channel:command } +42ms pw:channel:response { pw:channel:response id: 6, pw:channel:response result: { element: { guid: 'handle@7833e65f500bd1d978e1450a5459c7bb' } } pw:channel:response } +238ms C:\Users\regseb\dev\testcase\node_modules\playwright-core\lib\client\connection.js:211 if (!object) throw new Error(`Object with guid ${arg.guid} was not bound in the connection`); ^ Error: Object with guid handle@7833e65f500bd1d978e1450a5459c7bb was not bound in the connection at Connection._tChannelImplFromWire (C:\Users\regseb\dev\testcase\node_modules\playwright-core\lib\client\connection.js:211:26) at C:\Users\regseb\dev\testcase\node_modules\playwright-core\lib\protocol\validatorPrimitives.js:129:20 at C:\Users\regseb\dev\testcase\node_modules\playwright-core\lib\protocol\validatorPrimitives.js:108:21 at Connection.dispatch (C:\Users\regseb\dev\testcase\node_modules\playwright-core\lib\client\connection.js:170:26) at Immediate.&lt;anonymous&gt; (C:\Users\regseb\dev\testcase\node_modules\playwright-core\lib\inProcessFactory.js:46:83) at processImmediate (node:internal/timers:466:21) </code></pre></div> <h3 dir="auto">Additional info</h3> <ul dir="auto"> <li>I add style with <code class="notranslate">frame.addStyleTag()</code>. <ul dir="auto"> <li>Playwright sends a command to the browser to add style (using a protocol close to <a href="https://www.jsonrpc.org/specification" rel="nofollow">JSON-RPC</a>). <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ id: 6, guid: 'frame@3ee5e10621a15eaf80cb985dbccb9a28', method: 'addStyleTag', params: { content: 'div {}' } }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-c1">id</span>: <span class="pl-c1">6</span><span class="pl-kos">,</span> <span class="pl-c1">guid</span>: <span class="pl-s">'frame@3ee5e10621a15eaf80cb985dbccb9a28'</span><span class="pl-kos">,</span> <span class="pl-c1">method</span>: <span class="pl-s">'addStyleTag'</span><span class="pl-kos">,</span> <span class="pl-c1">params</span>: <span class="pl-kos">{</span> <span class="pl-c1">content</span>: <span class="pl-s">'div {}'</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> </li> </ul> </li> <li>I close the browser. <ul dir="auto"> <li>Playwright <em>removes</em> the callbacks from the commands.</li> </ul> </li> <li>Playwright receives the response from the command. <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ id: 6, result: { element: { guid: 'handle@7833e65f500bd1d978e1450a5459c7bb' } } }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-c1">id</span>: <span class="pl-c1">6</span><span class="pl-kos">,</span> <span class="pl-c1">result</span>: <span class="pl-kos">{</span> <span class="pl-c1">element</span>: <span class="pl-kos">{</span> <span class="pl-c1">guid</span>: <span class="pl-s">'handle@7833e65f500bd1d978e1450a5459c7bb'</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <ul dir="auto"> <li>Playwright doesn't find the callback associated with the command and throws an exception.<br> <div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/microsoft/playwright/blob/ecd0f927f4f0efb396aec1a839b4252b229f8ae0/packages/playwright-core/src/client/connection.ts#L191-L193">playwright/packages/playwright-core/src/client/connection.ts</a> </p> <p class="mb-0 color-fg-muted"> Lines 191 to 193 in <a data-pjax="true" class="commit-tease-sha" href="/microsoft/playwright/commit/ecd0f927f4f0efb396aec1a839b4252b229f8ae0">ecd0f92</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="L191" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="191"></td> <td id="LC191" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-s1">object</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">_objects</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">arg</span><span class="pl-kos">.</span><span class="pl-c1">guid</span><span class="pl-kos">)</span><span class="pl-c1">!</span><span class="pl-kos">;</span> </td> </tr> <tr class="border-0"> <td id="L192" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="192"></td> <td id="LC192" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-s1">object</span><span class="pl-kos">)</span> </td> </tr> <tr class="border-0"> <td id="L193" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="193"></td> <td id="LC193" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-smi">Error</span><span class="pl-kos">(</span><span class="pl-s">`Object with guid <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">arg</span><span class="pl-kos">.</span><span class="pl-c1">guid</span><span class="pl-kos">}</span></span> was not bound in the connection`</span><span class="pl-kos">)</span><span class="pl-kos">;</span> </td> </tr> </tbody></table> </div> </div> </li> </ul> </li> </ul> <h3 dir="auto">Related issues</h3> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1528711342" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/20023" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/20023/hovercard" href="https://github.com/microsoft/playwright/issues/20023">#20023</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1599996576" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/21210" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/21210/hovercard?comment_id=1477840641&amp;comment_type=issue_comment" href="https://github.com/microsoft/playwright/issues/21210#issuecomment-1477840641">#21210 (comment)</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1599996576" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/21210" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/21210/hovercard?comment_id=1506956035&amp;comment_type=issue_comment" href="https://github.com/microsoft/playwright/issues/21210#issuecomment-1506956035">#21210 (comment)</a></li> </ul>
0
<p dir="auto">Hello.</p> <p dir="auto">I read <a href="https://docs.opencv.org/2.4/doc/tutorials/introduction/ios_install/ios_install.html#ios-installation" rel="nofollow">https://docs.opencv.org/2.4/doc/tutorials/introduction/ios_install/ios_install.html#ios-installation</a> for iOS development.</p> <p dir="auto">"sudo ln -s /Applications/Xcode.app/Contents/Developer Developer" fails on macOS Catalina as below.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ln: Developer: Read-only file system"><pre class="notranslate"><code class="notranslate">ln: Developer: Read-only file system </code></pre></div> <p dir="auto">Are there any workarounds?</p> <p dir="auto">Thanks.</p>
<p dir="auto">Instructions here have you creating a symbolic link between the Xcode developer folder and a root level developer folder. I don't know who thinks creating symbolic links to the root level is a good idea, but it breaks toolchains. For example, Android Studio, Google Cardboard, and a host of other products in the past have all placed symbolic links to various things at this location, with the same name.</p> <p dir="auto"><em><strong>This has never been an acceptable or good idea</strong></em></p> <p dir="auto">On some earlier versions of MacOS, this is an actual folder with other tools located inside it.</p> <p dir="auto">Is there really no other way to make this work, other than a symbolic link to a 'Developer' folder at the root?</p> <p dir="auto"><a href="https://docs.opencv.org/master/d5/da3/tutorial_ios_install.html" rel="nofollow">https://docs.opencv.org/master/d5/da3/tutorial_ios_install.html</a></p>
1
<h3 dir="auto">Version</h3> <p dir="auto">2.6.11</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://codepen.io/PatriciusSanctus/pen/PowdQpq" rel="nofollow">https://codepen.io/PatriciusSanctus/pen/PowdQpq</a></p> <h3 dir="auto">Steps to reproduce</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Vue.component('func-parent', { functional: true, provide: () =&gt; ({ foo: 'bar' }) // || { foo: 'bar' } }) Vue.component('func-child', { functional: true, inject: ['foo'] })"><pre class="notranslate"><code class="notranslate">Vue.component('func-parent', { functional: true, provide: () =&gt; ({ foo: 'bar' }) // || { foo: 'bar' } }) Vue.component('func-child', { functional: true, inject: ['foo'] }) </code></pre></div> <h3 dir="auto">What is expected?</h3> <p dir="auto">i want use injection in render() function</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">[Vue warn]: Injection "foo" not found</p> <hr> <p dir="auto">without DOM i can't send parent`s props to child for control child behavior (simple example: "grid-row -&gt; grid-col")</p>
<h3 dir="auto">What problem does this feature solve?</h3> <ul dir="auto"> <li>being buffered by linting- / validation-tools about the invalid html</li> <li>risking conflicts with future html / svg / MathML-specs</li> </ul> <h3 dir="auto">What does the proposed API look like?</h3> <h1 dir="auto">short version</h1> <p dir="auto">Instead of <code class="notranslate">&lt;… v-bind= …&gt;</code> use <code class="notranslate">&lt;… data-v-bind= …&gt;</code></p> <h1 dir="auto">long version</h1> <p dir="auto">I think I can add to the discussion on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="33715058" data-permission-text="Title is private" data-url="https://github.com/vuejs/vue/issues/273" data-hovercard-type="issue" data-hovercard-url="/vuejs/vue/issues/273/hovercard" href="https://github.com/vuejs/vue/issues/273">#273</a> but unfortunately I am not allowed to, so I opened this duplicate.</p> <p dir="auto"><strong>Why it buffers me much:</strong></p> <ul dir="auto"> <li>Any html-validator I know – Node.js, browser-plugin, IDE – thinks it is invalid and will tell me so.</li> </ul> <p dir="auto"><strong>Why it buffers me minor:</strong></p> <ul dir="auto"> <li>The specs gave us the <em>data-</em> for custom attributes so we can be sure not to conflict with native attributes in future specs. Since native attributes will be intepreted as is in source-code I think that JS will remove the invalid attributes is not a fitting argument.</li> <li>custom attributes with <em>data</em> also have there own JavaScript API. I like how it differs the code from native attributes structurally and visually.</li> </ul> <p dir="auto"><strong>Why I think it's great</strong></p> <ul dir="auto"> <li>I think <em>data-</em> might be more bloated but that is a problem with the specs.</li> </ul>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version:2.7.0</li> <li>Operating System version: win7</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>run provider</li> <li>run consumer</li> <li>consumer run fail</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <p dir="auto">consumer run success and i can request method.</p> <p dir="auto">What actually happens?</p> <p dir="auto">consumer run fail<br> see the code below<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/RestController/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/RestController">@RestController</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/RequestMapping/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/RequestMapping">@RequestMapping</a>("category")<br> @DubboComponentScan</p> <p dir="auto">public class CateGoryController {<br> <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><br> private CateGoryService cateGoryService;</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@RequestMapping(&quot;findTree&quot;) public List&lt;Category&gt; findCateGoryTree(){ return cateGoryService.findCateGoryTree(); }"><pre class="notranslate"><code class="notranslate">@RequestMapping("findTree") public List&lt;Category&gt; findCateGoryTree(){ return cateGoryService.findCateGoryTree(); } </code></pre></div> <p dir="auto">}</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <p dir="auto">org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cateGoryController': Injection of @org.apache.dubbo.config.annotation.Reference dependencies is failed; nested exception is java.lang.UnsupportedOperationException<br> at org.apache.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor.postProcessPropertyValues(AnnotationInjectedBeanPostProcessor.java:132)<br> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1268)<br> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)<br> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)<br> at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)<br> at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)<br> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)<br> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)<br> at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)<br> at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)<br> at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)<br> at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:668)<br> at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:634)<br> at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:682)<br> at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:553)<br> at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:494)<br> at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:171)<br> at javax.servlet.GenericServlet.init(GenericServlet.java:160)<br> at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)<br> at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)<br> at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)<br> at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)<br> at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)<br> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)<br> at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)<br> at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)<br> at java.util.concurrent.FutureTask.run(FutureTask.java:266)<br> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)<br> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)<br> at java.lang.Thread.run(Thread.java:744)<br> Caused by: java.lang.UnsupportedOperationException<br> at java.util.concurrent.CopyOnWriteArrayList$COWIterator.set(CopyOnWriteArrayList.java:1185)<br> at java.util.Collections.sort(Collections.java:170)<br> at org.apache.dubbo.rpc.cluster.RouterChain.sort(RouterChain.java:87)<br> at org.apache.dubbo.rpc.cluster.RouterChain.initWithRouters(RouterChain.java:67)<br> at org.apache.dubbo.rpc.cluster.RouterChain.(RouterChain.java:57)<br> at org.apache.dubbo.rpc.cluster.RouterChain.buildChain(RouterChain.java:46)<br> at org.apache.dubbo.registry.integration.RegistryDirectory.buildRouterChain(RegistryDirectory.java:584)<br> at org.apache.dubbo.registry.integration.RegistryProtocol.doRefer(RegistryProtocol.java:376)<br> at org.apache.dubbo.registry.integration.RegistryProtocol.refer(RegistryProtocol.java:359)<br> at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:114)<br> at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:65)<br> at org.apache.dubbo.qos.protocol.QosProtocolWrapper.refer(QosProtocolWrapper.java:70)<br> at org.apache.dubbo.rpc.Protocol$Adaptive.refer(Protocol$Adaptive.java)<br> at org.apache.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:362)<br> at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:301)<br> at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:225)<br> at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor$ReferenceBeanInvocationHandler.init(ReferenceAnnotationBeanPostProcessor.java:162)<br> at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor$ReferenceBeanInvocationHandler.access$100(ReferenceAnnotationBeanPostProcessor.java:146)<br> at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.buildInvocationHandler(ReferenceAnnotationBeanPostProcessor.java:140)<br> at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.buildProxy(ReferenceAnnotationBeanPostProcessor.java:122)<br> at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.doGetInjectedBean(ReferenceAnnotationBeanPostProcessor.java:116)<br> at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.doGetInjectedBean(ReferenceAnnotationBeanPostProcessor.java:49)<br> at org.apache.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor.getInjectedObject(AnnotationInjectedBeanPostProcessor.java:340)<br> at org.apache.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor$AnnotatedFieldElement.inject(AnnotationInjectedBeanPostProcessor.java:520)<br> at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)<br> at org.apache.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor.postProcessPropertyValues(AnnotationInjectedBeanPostProcessor.java:128)<br> ... 29 more<br> Just put your stack trace here!</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>
<ul dir="auto"> <li>[√] I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li>[√] I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.4.1</li> <li>Operating System version: Windows 10 专业版 1809</li> <li>Java version: 1.8.0.191</li> <li>Apollo version: 1.5.0</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">根据2.7.4.1的release note:<a href="https://github.com/apache/dubbo/releases/tag/dubbo-2.7.4">https://github.com/apache/dubbo/releases/tag/dubbo-2.7.4</a><br> PR:<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="497404334" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/5105" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/5105/hovercard" href="https://github.com/apache/dubbo/pull/5105">#5105</a><br> issue:<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="400549272" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/3266" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/3266/hovercard" href="https://github.com/apache/dubbo/issues/3266">#3266</a></p> <p dir="auto">我在apollo中使用了一个namespace对应一个配置文件的存储和组织模型,比如dubbo namespace(类型:properties),对应<code class="notranslate">dubbo.properties</code>,里面的配置项目是<code class="notranslate">dubbo.properties</code>中的配置项目,而不是之前的一个key:<code class="notranslate">dubbo.properties</code>里面存储了整个<code class="notranslate">dubbo.properties</code>的内容</p> <p dir="auto">具体配置:<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="513224467" data-permission-text="Title is private" data-url="https://github.com/apolloconfig/apollo/issues/2702" data-hovercard-type="issue" data-hovercard-url="/apolloconfig/apollo/issues/2702/hovercard" href="https://github.com/apolloconfig/apollo/issues/2702">apolloconfig/apollo#2702</a></p> <h3 dir="auto">Expected Result</h3> <p dir="auto">dubbo consumer 正常启动</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">最后应用异常退出</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2019-10-28 18:02:46.676 [main] INFO org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener - Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2019-10-28 18:02:46.678 [main] INFO org.apache.dubbo.spring.boot.context.event.AwaitingNonWebApplicationListener - [Dubbo] Current Spring Boot Application is about to shutdown... 2019-10-28 18:02:46.692 [main] ERROR org.springframework.boot.SpringApplication - Application run failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dubboConsumerController': Injection of @Reference dependencies is failed; nested exception is java.lang.IllegalStateException: No registry config found or it's not a valid config! The registry config is: &lt;dubbo:registry valid=&quot;false&quot; zookeeperProtocol=&quot;false&quot; prefix=&quot;dubbo.registry&quot; /&gt; at org.apache.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor.postProcessPropertyValues(AnnotationInjectedBeanPostProcessor.java:150) ~[dubbo-2.7.4.1.jar:2.7.4.1] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1416) ~[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592) ~[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:845) ~[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) ~[spring-context-5.1.9.RELEASE.jar:5.1.9.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.1.9.RELEASE.jar:5.1.9.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~[spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:743) [spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:390) [spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:312) [spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1214) [spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1203) [spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] at com.test.consumer_a.DubboConsumerApplication.main(DubboConsumerApplication.java:13) [classes/:?] Caused by: java.lang.IllegalStateException: No registry config found or it's not a valid config! The registry config is: &lt;dubbo:registry valid=&quot;false&quot; zookeeperProtocol=&quot;false&quot; prefix=&quot;dubbo.registry&quot; /&gt; at org.apache.dubbo.config.AbstractInterfaceConfig.checkRegistry(AbstractInterfaceConfig.java:203) ~[dubbo-2.7.4.1.jar:2.7.4.1] at org.apache.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:378) ~[dubbo-2.7.4.1.jar:2.7.4.1] at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:329) ~[dubbo-2.7.4.1.jar:2.7.4.1] at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:250) ~[dubbo-2.7.4.1.jar:2.7.4.1] at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.getOrCreateProxy(ReferenceAnnotationBeanPostProcessor.java:246) ~[dubbo-2.7.4.1.jar:2.7.4.1] at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.doGetInjectedBean(ReferenceAnnotationBeanPostProcessor.java:143) ~[dubbo-2.7.4.1.jar:2.7.4.1] at org.apache.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor.getInjectedObject(AnnotationInjectedBeanPostProcessor.java:359) ~[dubbo-2.7.4.1.jar:2.7.4.1] at org.apache.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor$AnnotatedFieldElement.inject(AnnotationInjectedBeanPostProcessor.java:539) ~[dubbo-2.7.4.1.jar:2.7.4.1] at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90) ~[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] at org.apache.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor.postProcessPropertyValues(AnnotationInjectedBeanPostProcessor.java:146) ~[dubbo-2.7.4.1.jar:2.7.4.1] ... 17 more Disconnected from the target VM, address: '127.0.0.1:55529', transport: 'socket' Process finished with exit code 1"><pre class="notranslate"><code class="notranslate">2019-10-28 18:02:46.676 [main] INFO org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener - Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2019-10-28 18:02:46.678 [main] INFO org.apache.dubbo.spring.boot.context.event.AwaitingNonWebApplicationListener - [Dubbo] Current Spring Boot Application is about to shutdown... 2019-10-28 18:02:46.692 [main] ERROR org.springframework.boot.SpringApplication - Application run failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dubboConsumerController': Injection of @Reference dependencies is failed; nested exception is java.lang.IllegalStateException: No registry config found or it's not a valid config! The registry config is: &lt;dubbo:registry valid="false" zookeeperProtocol="false" prefix="dubbo.registry" /&gt; at org.apache.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor.postProcessPropertyValues(AnnotationInjectedBeanPostProcessor.java:150) ~[dubbo-2.7.4.1.jar:2.7.4.1] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1416) ~[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592) ~[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:845) ~[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) ~[spring-context-5.1.9.RELEASE.jar:5.1.9.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.1.9.RELEASE.jar:5.1.9.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~[spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:743) [spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:390) [spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:312) [spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1214) [spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1203) [spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] at com.test.consumer_a.DubboConsumerApplication.main(DubboConsumerApplication.java:13) [classes/:?] Caused by: java.lang.IllegalStateException: No registry config found or it's not a valid config! The registry config is: &lt;dubbo:registry valid="false" zookeeperProtocol="false" prefix="dubbo.registry" /&gt; at org.apache.dubbo.config.AbstractInterfaceConfig.checkRegistry(AbstractInterfaceConfig.java:203) ~[dubbo-2.7.4.1.jar:2.7.4.1] at org.apache.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:378) ~[dubbo-2.7.4.1.jar:2.7.4.1] at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:329) ~[dubbo-2.7.4.1.jar:2.7.4.1] at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:250) ~[dubbo-2.7.4.1.jar:2.7.4.1] at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.getOrCreateProxy(ReferenceAnnotationBeanPostProcessor.java:246) ~[dubbo-2.7.4.1.jar:2.7.4.1] at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.doGetInjectedBean(ReferenceAnnotationBeanPostProcessor.java:143) ~[dubbo-2.7.4.1.jar:2.7.4.1] at org.apache.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor.getInjectedObject(AnnotationInjectedBeanPostProcessor.java:359) ~[dubbo-2.7.4.1.jar:2.7.4.1] at org.apache.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor$AnnotatedFieldElement.inject(AnnotationInjectedBeanPostProcessor.java:539) ~[dubbo-2.7.4.1.jar:2.7.4.1] at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90) ~[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] at org.apache.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor.postProcessPropertyValues(AnnotationInjectedBeanPostProcessor.java:146) ~[dubbo-2.7.4.1.jar:2.7.4.1] ... 17 more Disconnected from the target VM, address: '127.0.0.1:55529', transport: 'socket' Process finished with exit code 1 </code></pre></div> <p dir="auto">我在<code class="notranslate">com.ctrip.framework.apollo.internals.RemoteConfigRepository</code>构造函数第一行下了断点,发现dubbo还是会传入<code class="notranslate">dubbo.properties</code>作为namespace来查询配置,具体的堆栈信息如下:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;init&gt;:79, RemoteConfigRepository (com.ctrip.framework.apollo.internals) createRemoteConfigRepository:77, DefaultConfigFactory (com.ctrip.framework.apollo.spi) createLocalConfigRepository:73, DefaultConfigFactory (com.ctrip.framework.apollo.spi) createConfigFile:47, DefaultConfigFactory (com.ctrip.framework.apollo.spi) getConfigFile:58, DefaultConfigManager (com.ctrip.framework.apollo.internals) getConfigFile:65, ConfigService (com.ctrip.framework.apollo) getProperties:155, ApolloDynamicConfiguration (org.apache.dubbo.configcenter.support.apollo) getProperties:110, DynamicConfiguration (org.apache.dubbo.configcenter) prepareEnvironment:291, AbstractInterfaceConfig (org.apache.dubbo.config) startConfigCenter:280, AbstractInterfaceConfig (org.apache.dubbo.config) checkAndUpdateSubConfigs:220, ReferenceConfig (org.apache.dubbo.config) get:244, ReferenceConfig (org.apache.dubbo.config) getOrCreateProxy:246, ReferenceAnnotationBeanPostProcessor (org.apache.dubbo.config.spring.beans.factory.annotation) doGetInjectedBean:143, ReferenceAnnotationBeanPostProcessor (org.apache.dubbo.config.spring.beans.factory.annotation) getInjectedObject:359, AnnotationInjectedBeanPostProcessor (org.apache.dubbo.config.spring.beans.factory.annotation) inject:539, AnnotationInjectedBeanPostProcessor$AnnotatedFieldElement (org.apache.dubbo.config.spring.beans.factory.annotation) inject:90, InjectionMetadata (org.springframework.beans.factory.annotation) postProcessPropertyValues:146, AnnotationInjectedBeanPostProcessor (org.apache.dubbo.config.spring.beans.factory.annotation) populateBean:1416, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support) doCreateBean:592, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support) createBean:515, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support) lambda$doGetBean$0:320, AbstractBeanFactory (org.springframework.beans.factory.support) getObject:-1, 1031775150 (org.springframework.beans.factory.support.AbstractBeanFactory$$Lambda$141) getSingleton:222, DefaultSingletonBeanRegistry (org.springframework.beans.factory.support) doGetBean:318, AbstractBeanFactory (org.springframework.beans.factory.support) getBean:199, AbstractBeanFactory (org.springframework.beans.factory.support) preInstantiateSingletons:845, DefaultListableBeanFactory (org.springframework.beans.factory.support) finishBeanFactoryInitialization:877, AbstractApplicationContext (org.springframework.context.support) refresh:549, AbstractApplicationContext (org.springframework.context.support) refresh:141, ServletWebServerApplicationContext (org.springframework.boot.web.servlet.context) refresh:743, SpringApplication (org.springframework.boot) refreshContext:390, SpringApplication (org.springframework.boot) run:312, SpringApplication (org.springframework.boot) run:1214, SpringApplication (org.springframework.boot) run:1203, SpringApplication (org.springframework.boot) main:13, DubboConsumerApplication (com.test.consumer_a)"><pre class="notranslate"><code class="notranslate">&lt;init&gt;:79, RemoteConfigRepository (com.ctrip.framework.apollo.internals) createRemoteConfigRepository:77, DefaultConfigFactory (com.ctrip.framework.apollo.spi) createLocalConfigRepository:73, DefaultConfigFactory (com.ctrip.framework.apollo.spi) createConfigFile:47, DefaultConfigFactory (com.ctrip.framework.apollo.spi) getConfigFile:58, DefaultConfigManager (com.ctrip.framework.apollo.internals) getConfigFile:65, ConfigService (com.ctrip.framework.apollo) getProperties:155, ApolloDynamicConfiguration (org.apache.dubbo.configcenter.support.apollo) getProperties:110, DynamicConfiguration (org.apache.dubbo.configcenter) prepareEnvironment:291, AbstractInterfaceConfig (org.apache.dubbo.config) startConfigCenter:280, AbstractInterfaceConfig (org.apache.dubbo.config) checkAndUpdateSubConfigs:220, ReferenceConfig (org.apache.dubbo.config) get:244, ReferenceConfig (org.apache.dubbo.config) getOrCreateProxy:246, ReferenceAnnotationBeanPostProcessor (org.apache.dubbo.config.spring.beans.factory.annotation) doGetInjectedBean:143, ReferenceAnnotationBeanPostProcessor (org.apache.dubbo.config.spring.beans.factory.annotation) getInjectedObject:359, AnnotationInjectedBeanPostProcessor (org.apache.dubbo.config.spring.beans.factory.annotation) inject:539, AnnotationInjectedBeanPostProcessor$AnnotatedFieldElement (org.apache.dubbo.config.spring.beans.factory.annotation) inject:90, InjectionMetadata (org.springframework.beans.factory.annotation) postProcessPropertyValues:146, AnnotationInjectedBeanPostProcessor (org.apache.dubbo.config.spring.beans.factory.annotation) populateBean:1416, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support) doCreateBean:592, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support) createBean:515, AbstractAutowireCapableBeanFactory (org.springframework.beans.factory.support) lambda$doGetBean$0:320, AbstractBeanFactory (org.springframework.beans.factory.support) getObject:-1, 1031775150 (org.springframework.beans.factory.support.AbstractBeanFactory$$Lambda$141) getSingleton:222, DefaultSingletonBeanRegistry (org.springframework.beans.factory.support) doGetBean:318, AbstractBeanFactory (org.springframework.beans.factory.support) getBean:199, AbstractBeanFactory (org.springframework.beans.factory.support) preInstantiateSingletons:845, DefaultListableBeanFactory (org.springframework.beans.factory.support) finishBeanFactoryInitialization:877, AbstractApplicationContext (org.springframework.context.support) refresh:549, AbstractApplicationContext (org.springframework.context.support) refresh:141, ServletWebServerApplicationContext (org.springframework.boot.web.servlet.context) refresh:743, SpringApplication (org.springframework.boot) refreshContext:390, SpringApplication (org.springframework.boot) run:312, SpringApplication (org.springframework.boot) run:1214, SpringApplication (org.springframework.boot) run:1203, SpringApplication (org.springframework.boot) main:13, DubboConsumerApplication (com.test.consumer_a) </code></pre></div> <p dir="auto">在<code class="notranslate">getProperties:155, ApolloDynamicConfiguration (org.apache.dubbo.configcenter.support.apollo)</code>这里传入的是:<code class="notranslate">ConfigService.getConfigFile("dubbo.properties", ConfigFileFormat.Properties)</code></p> <p dir="auto">而正常的应该是: <code class="notranslate">ConfigService.getConfigFile("dubbo", ConfigFileFormat.Properties)</code></p>
0
<p dir="auto">MultinomialNB inherits coef_, intercept_ from BaseDiscreteNB defined by</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" def _get_coef(self): return (self.feature_log_prob_[1:] if len(self.classes_) == 2 else self.feature_log_prob_) def _get_intercept(self): return (self.class_log_prior_[1:] if len(self.classes_) == 2 else self.class_log_prior_) coef_ = property(_get_coef) intercept_ = property(_get_intercept)"><pre class="notranslate"> <span class="pl-k">def</span> <span class="pl-en">_get_coef</span>(<span class="pl-s1">self</span>): <span class="pl-k">return</span> (<span class="pl-s1">self</span>.<span class="pl-s1">feature_log_prob_</span>[<span class="pl-c1">1</span>:] <span class="pl-k">if</span> <span class="pl-en">len</span>(<span class="pl-s1">self</span>.<span class="pl-s1">classes_</span>) <span class="pl-c1">==</span> <span class="pl-c1">2</span> <span class="pl-k">else</span> <span class="pl-s1">self</span>.<span class="pl-s1">feature_log_prob_</span>) <span class="pl-k">def</span> <span class="pl-en">_get_intercept</span>(<span class="pl-s1">self</span>): <span class="pl-k">return</span> (<span class="pl-s1">self</span>.<span class="pl-s1">class_log_prior_</span>[<span class="pl-c1">1</span>:] <span class="pl-k">if</span> <span class="pl-en">len</span>(<span class="pl-s1">self</span>.<span class="pl-s1">classes_</span>) <span class="pl-c1">==</span> <span class="pl-c1">2</span> <span class="pl-k">else</span> <span class="pl-s1">self</span>.<span class="pl-s1">class_log_prior_</span>) <span class="pl-s1">coef_</span> <span class="pl-c1">=</span> <span class="pl-en">property</span>(<span class="pl-s1">_get_coef</span>) <span class="pl-s1">intercept_</span> <span class="pl-c1">=</span> <span class="pl-en">property</span>(<span class="pl-s1">_get_intercept</span>)</pre></div> <p dir="auto">For binary classification, in order to be consistent with LinearClassifierMixin, the coef_(intercept_) should be the difference between second and first rows(elements)</p>
<p dir="auto">Hello. I think I found a mistake in brier_score_loss.<br> When you have a target = 1 and a prediction = 1 too, brier_score_loss should be 0 (best result), but it gives 1. Why is it happening? Because _check_binary_probabilistic_predictions gets target with only one class and convert it to 0. And metric calculates for target = 0 and prediction = 1. The same problem for target = 1 and prediction = 0. brier_score_loss is 0 (the best result), but it should be 1.</p> <p dir="auto">Examples:<br> Approx = [0, 0, 0, 0]<br> Target = [1, 1, 1, 1]<br> Weight = [1, 1, 1, 1]<br> brier_score_loss(Target, Approx, sample_weight=Weight)<br> result is 0</p> <p dir="auto">Approx = [1, 1, 1, 1]<br> Target = [1, 1, 1, 1]<br> Weight = [1, 1, 1, 1]<br> brier_score_loss(Target, Approx, sample_weight=Weight)<br> result is 1</p> <p dir="auto">Maybe we should fix it? Thank you.</p>
0
<p dir="auto">Had a ts-typings slack conversation with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mhegazy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mhegazy">@mhegazy</a> just now, regarding angular2 changing our typings to stop polluting the type-checker with our dependencies.<br> (details on that change: <a href="https://docs.google.com/document/d/1vgepQPkuHS4P3rzANQpoMIDIXe0Rl9Z2QyTtb8dpMoI/edit#" rel="nofollow">https://docs.google.com/document/d/1vgepQPkuHS4P3rzANQpoMIDIXe0Rl9Z2QyTtb8dpMoI/edit#</a> )</p> <p dir="auto">While correct, this makes the getting started experience worse for Angular 2 users (many of whom are new to TypeScript and even JavaScript).</p> <p dir="auto">The major stumbling block is our dependency on es6-promise and es6-collections. For users with <code class="notranslate">--target=es5</code> (the majority and default case), they need these two .d.ts files presented to the compiler. When <code class="notranslate">--target=es6</code>, we must avoid Duplicate identifier errors. We would prefer not to have the <code class="notranslate">typings</code> tool involved in our first five minutes, since we may lose some audience from the complexity and possibility of a mistake ruining their first app.</p> <p dir="auto">To make it really seamless we need two things:</p> <ul dir="auto"> <li>If the user has a dependency on angular2, we want the compiler to add es6-promise and es6-collections typings. Imagine if <code class="notranslate">angular2/package.json</code> could declare <code class="notranslate">"ambientTypingsDependencies": ["es6-promise","es6-collections"]</code>. (We don't care what the right-hand side means - it could mean any typing discoverable by <code class="notranslate">typings search</code> but that has versioning issues. It should probably instead be done by splitting <code class="notranslate">lib.es6.d.ts</code> in the TypeScript distro into smaller files, then the option <code class="notranslate">"typingDeps":["XXX"]</code> causes reference to <code class="notranslate">lib.XXX.d.ts</code> and this does not become a general-purpose mechanism. This is really similar to <code class="notranslate">--target=es5+es6-promise+es6-collections</code> except that the user doesn't need to specify it, rather it appears via the dependency on <code class="notranslate">angular2</code>)</li> <li>No Duplicate identifier errors based on the <code class="notranslate">--target</code> setting. This could be either a fix for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="78054310" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/3215" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/3215/hovercard" href="https://github.com/microsoft/TypeScript/issues/3215">#3215</a>, or else avoiding the addition of those typings for <code class="notranslate">--target=es6</code>, maybe with something like <code class="notranslate">"typingsDependencies__ButEs5Only": ["es6-promise","es6-collections"]</code></li> </ul>
<p dir="auto">Referring modules in CommonJS and AMD is quite different. AMD can understand CommonJS (relative paths) to some extent. CommonJS cannot understand AMD mostly.</p> <p dir="auto">So this is the problem. What do I need to do to share the same code base between CommonJS and AMD? What is a best practice for this?</p> <p dir="auto">Currently the options known to me are:</p> <ul dir="auto"> <li>copying the code after compiling so the modules are where the module system can find them</li> <li>running a path transformation routine over compiled code</li> </ul> <p dir="auto">Neither of those look right to me.</p>
0
<h1 dir="auto">What / Why</h1> <p dir="auto"><code class="notranslate">npm ERR! cb() never called!</code> every time I try to <code class="notranslate">install -g eslint</code></p> <h2 dir="auto">When</h2> <p dir="auto">Everytime I try to install <code class="notranslate">eslint</code> via:<br> <code class="notranslate">sudo npm install -g eslint</code></p> <h2 dir="auto">Where</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ npm -v 6.13.4 $ uname -a Linux debian10 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux"><pre class="notranslate"><code class="notranslate">$ npm -v 6.13.4 $ uname -a Linux debian10 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux </code></pre></div> <h2 dir="auto">How</h2> <h3 dir="auto">Current Behavior</h3> <p dir="auto">Installing <code class="notranslate">eslint</code>always crashes with an error like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! cb() never called! npm ERR! This is an error with npm itself. Please report this error at: npm ERR! &lt;https://npm.community&gt; npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-12-16T12_34_57_744Z-debug.log"><pre class="notranslate"><code class="notranslate">npm ERR! cb() never called! npm ERR! This is an error with npm itself. Please report this error at: npm ERR! &lt;https://npm.community&gt; npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-12-16T12_34_57_744Z-debug.log </code></pre></div> <p dir="auto">I have tried <code class="notranslate">npm cache clean --force</code> but that did not help.</p> <h3 dir="auto">Steps to Reproduce</h3> <p dir="auto">Update <code class="notranslate">npm</code> to latest and install <code class="notranslate">eslint</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ms@debian10:~$ sudo npm install -g npm@latest /usr/local/bin/npm -&gt; /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npx -&gt; /usr/local/lib/node_modules/npm/bin/npx-cli.js + [email protected] updated 1 package in 6.632s ms@debian10:~$ sudo npm install -g eslint npm ERR! cb() never called! npm ERR! This is an error with npm itself. Please report this error at: npm ERR! &lt;https://npm.community&gt; npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-12-16T12_34_57_744Z-debug.log"><pre class="notranslate"><code class="notranslate">ms@debian10:~$ sudo npm install -g npm@latest /usr/local/bin/npm -&gt; /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npx -&gt; /usr/local/lib/node_modules/npm/bin/npx-cli.js + [email protected] updated 1 package in 6.632s ms@debian10:~$ sudo npm install -g eslint npm ERR! cb() never called! npm ERR! This is an error with npm itself. Please report this error at: npm ERR! &lt;https://npm.community&gt; npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-12-16T12_34_57_744Z-debug.log </code></pre></div> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">The package should be installed successfully</p> <h2 dir="auto">Who</h2> <ul dir="auto"> <li>n/a</li> </ul> <h2 dir="auto">References</h2> <p dir="auto">Collection of similar issues in ticket <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="519804109" data-permission-text="Title is private" data-url="https://github.com/npm/cli/issues/417" data-hovercard-type="issue" data-hovercard-url="/npm/cli/issues/417/hovercard" href="https://github.com/npm/cli/issues/417">#417</a></p>
<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">I'm trying to run:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npx https://gist.github.com/kentcdodds/bb452ffe53a5caa3600197e1d8005733"><pre class="notranslate"><code class="notranslate">npx https://gist.github.com/kentcdodds/bb452ffe53a5caa3600197e1d8005733 </code></pre></div> <p dir="auto">However I get:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sh: workshop-setup: command not found"><pre class="notranslate"><code class="notranslate">sh: workshop-setup: command not found </code></pre></div> <p dir="auto">For context, I use this for step of my workshop repositories. It checks that learner's machines have the correct versions of things installed, installs dependencies, and runs validation to make sure things were installed correctly. This worked before I updated to npx v8.</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">I expect the bin of the gist's package.json to be run as previous versions of npx as recent as v7.</p> <h3 dir="auto">Steps To Reproduce</h3> <ol dir="auto"> <li>In any environment</li> <li>With any config</li> <li>Run <code class="notranslate">npx https://gist.github.com/kentcdodds/bb452ffe53a5caa3600197e1d8005733</code></li> <li>See the above error</li> </ol> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>npm: latest</li> <li>Node.js: latest</li> <li>OS Name: any</li> <li>System Model Name: any</li> <li>npm config: any</li> </ul> <p dir="auto">(All my students are running into this. Even my CI: <a href="https://github.com/kentcdodds/react-fundamentals/runs/6989184285?check_suite_focus=true">https://github.com/kentcdodds/react-fundamentals/runs/6989184285?check_suite_focus=true</a>)</p>
0
<ul dir="auto"> <li>VSCode Version:1.0.0</li> <li>windows 10 home</li> </ul> <p dir="auto">Steps to Reproduce:</p> <p dir="auto">when i use shortcuts <code class="notranslate">workbench.action.terminal.openNativeConsole</code> i can only open a cmd but i can't open a powerhsell. is there a why to change the shell vsc open?</p>
<ul dir="auto"> <li>VSCode Version: 0.10.11</li> <li>OS Version: Win7Sp1</li> </ul> <p dir="auto">Steps to Reproduce:</p> <p dir="auto">Before collapsing; Doesn't matter how many newlines I use.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7074286/14288334/37286502-fb24-11e5-8780-d8c642bb2200.png"><img src="https://cloud.githubusercontent.com/assets/7074286/14288334/37286502-fb24-11e5-8780-d8c642bb2200.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">After collapsing; I really don't think it should collapse all the newlines, it looks horrible.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7074286/14288344/3ecdc2de-fb24-11e5-98f1-8b84833e61b7.png"><img src="https://cloud.githubusercontent.com/assets/7074286/14288344/3ecdc2de-fb24-11e5-98f1-8b84833e61b7.png" alt="image" style="max-width: 100%;"></a></p>
0
<p dir="auto">I've seen several questions regarding deleting images but none of them are good for me.</p> <p dir="auto">Let's have a use case like this:</p> <ul dir="auto"> <li>user adds an entity to a list ("favorites")</li> <li>we load all the images for the entity and store them via Glide cache</li> <li>now user can have the images even in offline mode</li> <li>user removes entity from the list</li> </ul> <p dir="auto">Now what? I dont want to clear the cache completely (I want to keep all the images of the other favorites) but I don't want to keep images in cache I dont need (seems to pile up).</p> <p dir="auto">Havent checked the internal implementation but what stops from Glide to find and delete an image of a particular URL if you're hashing it anyway? In our case the URL's rarely if ever change too. I'm very happy with Glide but this seems to be an issue which doesnt sound hard to fix.</p> <p dir="auto">Any future plans to do something like this?</p> <p dir="auto">Thanks</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">I've changed the directory of caravel.db to a local path.<br> When I restarted the machine and exeuted the "pip install caravel --upgrade",<br> input the "caravel db upgrade", the error is "sqlalchemy.exc.OperationalError: (pysqlite2.dbapi2.OperationalError) duplicate column name: verbose_name [SQL: u'ALTER TABLE table_columns ADD COLUMN verbose_name VARCHAR(1024)']"</p> <p dir="auto">then I input the "caravel init", and error is "sqlalchemy.exc.OperationalError: (pysqlite2.dbapi2.OperationalError) no such column: sql_metrics.is_restricted [SQL: u'SELECT sql_metrics.created_on AS sql_metrics_created_on, sql_metrics.changed_on AS sql_metrics_changed_on, sql_metrics.id AS sql_metrics_id, sql_metrics.metric_name AS sql_metrics_metric_name, sql_metrics.verbose_name AS sql_metrics_verbose_name, sql_metrics.metric_type AS sql_metrics_metric_type, sql_metrics.table_id AS sql_metrics_table_id, sql_metrics.expression AS sql_metrics_expression, sql_metrics.description AS sql_metrics_description, sql_metrics.is_restricted AS sql_metrics_is_restricted, sql_metrics.changed_by_fk AS sql_metrics_changed_by_fk, sql_metrics.created_by_fk AS sql_metrics_created_by_fk \nFROM sql_metrics']"</p> <p dir="auto">I tried many ways to solve this problem, but none of them worked.</p> <p dir="auto">Thanks for your solution,<br> best</p>
<p dir="auto">Can't login via OAuth2 LDAP with some issues.</p> <ol dir="auto"> <li>Error with <code class="notranslate">client_id=None</code></li> <li>Error <code class="notranslate">ERROR:flask_appbuilder.security.views:Error returning OAuth user info: name 'logging' is not defined</code></li> </ol> <p dir="auto">First issue is docs-based, because with config:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'consumer_key':'SOME_CLIENT_ID', 'consumer_secret':'SOME_SECRET'"><pre class="notranslate"><code class="notranslate">'consumer_key':'SOME_CLIENT_ID', 'consumer_secret':'SOME_SECRET' </code></pre></div> <p dir="auto">says Keycloak this: <code class="notranslate">... type=LOGIN_ERROR, realmId=SOME_REALM, clientId=None, userId=null, ...</code>, so Superset don't care about <code class="notranslate">client_id</code>.<br> When I've duplicated <code class="notranslate">consumer_key</code> as <code class="notranslate">client_id</code> it started working up to the second problem.</p> <p dir="auto">Second problem is Error written above. Keycloak says:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11560794/109177050-b243a500-7787-11eb-97af-b6d0a4cfcabe.png"><img src="https://user-images.githubusercontent.com/11560794/109177050-b243a500-7787-11eb-97af-b6d0a4cfcabe.png" alt="image" style="max-width: 100%;"></a><br> and <code class="notranslate">ERROR:flask_appbuilder.security.views:Error returning OAuth user info: name 'logging' is not defined</code>. IDK what to do :/</p> <h3 dir="auto">Expected results</h3> <p dir="auto">Successful OAuth2 login</p> <h3 dir="auto">Actual results</h3> <p dir="auto">Lying docs, can't easily setup OAuth2</p> <h4 dir="auto">How to reproduce the bug</h4> <ol dir="auto"> <li>Try to setup OAuth2 with keycloak provider</li> </ol> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>superset version: <code class="notranslate">1.0.1</code></li> <li>python version: <code class="notranslate">3.8.7</code></li> <li>node.js version: <code class="notranslate">v12.18.4</code></li> </ul> <h3 dir="auto">Checklist</h3> <p dir="auto">Make sure to follow these steps before submitting your issue - thank you!</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the superset logs for python stacktraces and included it here as text if there are any.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar.</li> </ul> <h3 dir="auto">Additional context</h3> <p dir="auto"><em>superset_config.py</em></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="... #--------------------------------------------------------- # OAuth Config #--------------------------------------------------------- from custom_sso_security_manager import CustomSsoSecurityManager CUSTOM_SECURITY_MANAGER = CustomSsoSecurityManager AUTH_TYPE = AUTH_OAUTH OAUTH_PROVIDERS = [ { 'name':'SSO', 'token_key':'access_token', # Name of the token in the response of access_token_url 'icon':'fa-address-card', # Icon for the provider 'remote_app': { 'consumer_key':'SOME_CLIENT_ID', # Client Id (Identify Superset application) 'client_id':'SOME_CLIENT_ID', # Client Id (Identify Superset application) 'consumer_secret':'SOME_CLIENT_SECRET', # Secret for this Client Id (Identify Superset application) 'client_secret':'SOME_CLIENT_SECRET', # Secret for this Client Id (Identify Superset application) 'request_token_params':{ 'scope': 'email profile' # Scope for the Authorization }, 'access_token_method':'POST', # HTTP Method to call access_token_url 'access_token_params':{ # Additional parameters for calls to access_token_url 'client_id':'SOME_CLIENT_ID' }, 'access_token_headers':{ # Additional headers for calls to access_token_url 'Authorization': 'Basic Base64EncodedClientIdAndSecret' }, 'base_url':'https://&lt;KEYCLOAK_URL&gt;/auth/realms/&lt;REALM&gt;', 'access_token_url':'https://&lt;KEYCLOAK_URL&gt;/auth/realms/&lt;REALM&gt;/protocol/openid-connect/token', 'authorize_url':'https://&lt;KEYCLOAK_URL&gt;/auth/realms/&lt;REALM&gt;/protocol/openid-connect/auth' } } ] ..."><pre class="notranslate"><code class="notranslate">... #--------------------------------------------------------- # OAuth Config #--------------------------------------------------------- from custom_sso_security_manager import CustomSsoSecurityManager CUSTOM_SECURITY_MANAGER = CustomSsoSecurityManager AUTH_TYPE = AUTH_OAUTH OAUTH_PROVIDERS = [ { 'name':'SSO', 'token_key':'access_token', # Name of the token in the response of access_token_url 'icon':'fa-address-card', # Icon for the provider 'remote_app': { 'consumer_key':'SOME_CLIENT_ID', # Client Id (Identify Superset application) 'client_id':'SOME_CLIENT_ID', # Client Id (Identify Superset application) 'consumer_secret':'SOME_CLIENT_SECRET', # Secret for this Client Id (Identify Superset application) 'client_secret':'SOME_CLIENT_SECRET', # Secret for this Client Id (Identify Superset application) 'request_token_params':{ 'scope': 'email profile' # Scope for the Authorization }, 'access_token_method':'POST', # HTTP Method to call access_token_url 'access_token_params':{ # Additional parameters for calls to access_token_url 'client_id':'SOME_CLIENT_ID' }, 'access_token_headers':{ # Additional headers for calls to access_token_url 'Authorization': 'Basic Base64EncodedClientIdAndSecret' }, 'base_url':'https://&lt;KEYCLOAK_URL&gt;/auth/realms/&lt;REALM&gt;', 'access_token_url':'https://&lt;KEYCLOAK_URL&gt;/auth/realms/&lt;REALM&gt;/protocol/openid-connect/token', 'authorize_url':'https://&lt;KEYCLOAK_URL&gt;/auth/realms/&lt;REALM&gt;/protocol/openid-connect/auth' } } ] ... </code></pre></div> <p dir="auto"><em>custom_sso_security_manager.py</em></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from superset.security import SupersetSecurityManager class CustomSsoSecurityManager(SupersetSecurityManager): def oauth_user_info(self, provider, response=None): logging.debug(&quot;Oauth2 provider: {0}.&quot;.format(provider)) if provider == 'SSO': # As example, this line request a GET to base_url + '/' + userDetails with Bearer Authentication, # and expects that authorization server checks the token, and response with user details me = self.appbuilder.sm.oauth_remotes[provider].get('userDetails').data logging.debug(&quot;user_data: {0}&quot;.format(me)) return { 'name' : me['name'], 'email' : me['email'], 'id' : me['user_name'], 'username' : me['user_name'], 'first_name':'', 'last_name':''} ..."><pre class="notranslate"><code class="notranslate">from superset.security import SupersetSecurityManager class CustomSsoSecurityManager(SupersetSecurityManager): def oauth_user_info(self, provider, response=None): logging.debug("Oauth2 provider: {0}.".format(provider)) if provider == 'SSO': # As example, this line request a GET to base_url + '/' + userDetails with Bearer Authentication, # and expects that authorization server checks the token, and response with user details me = self.appbuilder.sm.oauth_remotes[provider].get('userDetails').data logging.debug("user_data: {0}".format(me)) return { 'name' : me['name'], 'email' : me['email'], 'id' : me['user_name'], 'username' : me['user_name'], 'first_name':'', 'last_name':''} ... </code></pre></div> <p dir="auto">It's configured exactly as in <a href="https://superset.apache.org/docs/installation/configuring-superset#custom-oauth2-configuration" rel="nofollow">docs</a> <em>(except the client ID that's not working as in docs)</em></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: Microsoft Windows [Version 10.0.18362.295] Windows Terminal version (if applicable):Windows Terminal (Preview) Version: 0.5.2661.0 Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.295] Windows Terminal version (if applicable):Windows Terminal (Preview) Version: 0.5.2661.0 Any other software? </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Run Windows Terminal (Preview)</li> <li>In drop down menu press Settings</li> </ol> <p dir="auto">Running settings</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Showing settings for terminal.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">MS Visual studio is launching with argument /dde instad settings.</p>
<h1 dir="auto">Save opened tabs and locations of the tabs</h1> <p dir="auto">After reopening Windows Terminal, it would be nice to have loaded tabs from previous closed session, also with locations. (Exactly like browsers can do that).</p>
0
<p dir="auto">I am installing tensorflow with GPU and meeting some problems:</p> <p dir="auto">WARNING: /home/EI/tensorflow/tensorflow/contrib/learn/BUILD:15:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:exporter': Use SavedModel Builder instead.<br> WARNING: #/home/EI/tensorflow/tensorflow/contrib/learn/BUILD:15:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:gc': Use SavedModel instead.<br> INFO: Found 1 target...<br> ERROR: /home/EI/tensorflow/tensorflow/core/BUILD:1280:1: C++ compilation of rule '//tensorflow/core:lib_hash_crc32c_accelerate_internal' failed: crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter ... (remaining 41 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.<br> gcc: error trying to exec 'cc1plus': execvp: No such file or directory<br> Target //tensorflow/tools/pip_package:build_pip_package failed to build<br> Use --verbose_failures to see the command lines of failed build steps.<br> INFO: Elapsed time: 1994.312s, Critical Path: 8.68s</p> <p dir="auto">Operating System: Ubuntu 16.04LTS<br> gcc 4.9.3<br> bazel :0.4.5<br> python:3.6.0<br> CUDA:8.0.61_375.62<br> cuDNN:5.1.1</p>
<p dir="auto">Currently it is not possible to scope all variables cleanly when using RNN cells and Optimizers. RNN cells create variables with tf.get_variable and optimizers create variables with tf.Variable. These two methods don't get along, creating messy variable names when variable scopes are handled differently by the two methods.</p> <p dir="auto">Script for testing different variable creation and scoping combinations.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# -*- coding: utf-8 -*- import tensorflow as tf def build_loss(use_get_variable=True): y = tf.placeholder('int32', [None], name='y') x = tf.placeholder('float32', shape=[None, None, 10], name='x') cell = tf.contrib.rnn.GRUCell(128) # RNN cell if use_get_variable: # Create variable with tf.get_variable w = tf.get_variable('w', dtype='float32', initializer=tf.random_normal([128, 10])) else: # Create variable with tf.Variable w = tf.Variable(initial_value=tf.random_normal([128, 10]), dtype='float32', name='w') rnn_out, _ = tf.nn.dynamic_rnn(cell, x, dtype='float32', time_major=False) # RNN rnn_out = rnn_out[:, -1, :] # Last timestep rnn_out = tf.matmul(rnn_out, w) # Output layer projection loss_op = tf.reduce_mean(tf.nn.sparse_softmax_cross_entropy_with_logits(labels=y, logits=rnn_out)) # Cross entropy return loss_op def inspect(use_get_variable=True, scope_optimizer=True, re_enter_scope=None, optimizer=tf.train.AdamOptimizer): scope = 'scope' if re_enter_scope: with tf.variable_scope(scope) as variable_scope: # Capture variable scope if re_enter_scope == 'object': # Save captured object for re-entering scope with captured variable scope object scope = variable_scope elif re_enter_scope == 'original_name_scope': # Save original name scope of captured variable scope for re-entering the scope with original name scope scope = variable_scope.original_name_scope with tf.variable_scope(scope): # (Re-)enter scope loss_op = build_loss(use_get_variable=use_get_variable) if scope_optimizer: # Create optimizer in the variable scope train_op = optimizer(0.1).minimize(loss_op) if not scope_optimizer: # Create optimizer outside of variable scope train_op = optimizer(0.1).minimize(loss_op) with tf.Session() as sess: # Initialize variables sess.run(tf.global_variables_initializer()) description = 'optimizer ' + ('NOT' if not scope_optimizer else 'IS') + ' scoped, ' if not re_enter_scope: description += 'using ORIGINAL scope, ' elif re_enter_scope == 'object': description += 're-entering scope with OBJECT, ' elif re_enter_scope == 'original_name_scope': description += 're-entering scope with ORIGINAL_NAME_SCOPE, ' description += 'variables created with ' + ('tf.get_variable' if use_get_variable else 'tf.Variable') print(description) print('\n'.join([' '+var.name for var in tf.global_variables()])) print() tf.reset_default_graph() def main(): # Ideally scope everything with re-entered scope, leads to double scoping of gradient variables and having duplicate # scope (with unique name) for Adam optimizer beta power variables inspect(use_get_variable=True, scope_optimizer=True, re_enter_scope='object') # Not scoping optimizer fixes double scoping of RNN variables but leads to having AdamOptimizer beta_powers not # scoped inspect(use_get_variable=True, scope_optimizer=False, re_enter_scope='object') # Using tf.Variable for variable creation when re-entering scope with scope object leads to creation of duplicate # scope (with unique name) for non-RNN variables inspect(use_get_variable=False, scope_optimizer=False, re_enter_scope='object') # Changing scope re-entering method to variable_scope.original_name_scope fixes the problem of duplicate scope # when using tf.Variable for variable creation, but creates additional problem of having double slashes in # scope hierarchy path with RNN variables. inspect(use_get_variable=False, scope_optimizer=False, re_enter_scope='original_name_scope') # Similar problem is observed when using tf.get_variable for variable creation and re-entering scope with # original_name_scope but this time double slashes are observed also with non-RNN variables. inspect(use_get_variable=True, scope_optimizer=False, re_enter_scope='original_name_scope') # Scoping optimizer without re-entering the scope fixes scoping of Adam optimizer beta power variables but does not # fix the problem of having double scopes for RNN variables. However re-entering scopes is desired for OOP. inspect(use_get_variable=False, scope_optimizer=True, re_enter_scope=False) # Using tf.get_variable for variable creation won't help since Optimizer creates variables with tf.Variable and RNN # cells create variables with tf.get_variable, these two methods don't get along inspect(use_get_variable=True, scope_optimizer=True, re_enter_scope=False) # Swapping AdamOptimizer for RMSPropOptimizer fixes the problem with AdamOptimizer's beta power variables inspect(use_get_variable=True, scope_optimizer=False, re_enter_scope='object', optimizer=tf.train.RMSPropOptimizer) if __name__ == '__main__': main()"><pre class="notranslate"><span class="pl-c"># -*- coding: utf-8 -*-</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">def</span> <span class="pl-en">build_loss</span>(<span class="pl-s1">use_get_variable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>): <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">placeholder</span>(<span class="pl-s">'int32'</span>, [<span class="pl-c1">None</span>], <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'y'</span>) <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">placeholder</span>(<span class="pl-s">'float32'</span>, <span class="pl-s1">shape</span><span class="pl-c1">=</span>[<span class="pl-c1">None</span>, <span class="pl-c1">None</span>, <span class="pl-c1">10</span>], <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'x'</span>) <span class="pl-s1">cell</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">contrib</span>.<span class="pl-s1">rnn</span>.<span class="pl-v">GRUCell</span>(<span class="pl-c1">128</span>) <span class="pl-c"># RNN cell</span> <span class="pl-k">if</span> <span class="pl-s1">use_get_variable</span>: <span class="pl-c"># Create variable with tf.get_variable</span> <span class="pl-s1">w</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">get_variable</span>(<span class="pl-s">'w'</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'float32'</span>, <span class="pl-s1">initializer</span><span class="pl-c1">=</span><span class="pl-s1">tf</span>.<span class="pl-en">random_normal</span>([<span class="pl-c1">128</span>, <span class="pl-c1">10</span>])) <span class="pl-k">else</span>: <span class="pl-c"># Create variable with tf.Variable</span> <span class="pl-s1">w</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Variable</span>(<span class="pl-s1">initial_value</span><span class="pl-c1">=</span><span class="pl-s1">tf</span>.<span class="pl-en">random_normal</span>([<span class="pl-c1">128</span>, <span class="pl-c1">10</span>]), <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'float32'</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'w'</span>) <span class="pl-s1">rnn_out</span>, <span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">nn</span>.<span class="pl-en">dynamic_rnn</span>(<span class="pl-s1">cell</span>, <span class="pl-s1">x</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'float32'</span>, <span class="pl-s1">time_major</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-c"># RNN</span> <span class="pl-s1">rnn_out</span> <span class="pl-c1">=</span> <span class="pl-s1">rnn_out</span>[:, <span class="pl-c1">-</span><span class="pl-c1">1</span>, :] <span class="pl-c"># Last timestep</span> <span class="pl-s1">rnn_out</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">matmul</span>(<span class="pl-s1">rnn_out</span>, <span class="pl-s1">w</span>) <span class="pl-c"># Output layer projection</span> <span class="pl-s1">loss_op</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">reduce_mean</span>(<span class="pl-s1">tf</span>.<span class="pl-s1">nn</span>.<span class="pl-en">sparse_softmax_cross_entropy_with_logits</span>(<span class="pl-s1">labels</span><span class="pl-c1">=</span><span class="pl-s1">y</span>, <span class="pl-s1">logits</span><span class="pl-c1">=</span><span class="pl-s1">rnn_out</span>)) <span class="pl-c"># Cross entropy</span> <span class="pl-k">return</span> <span class="pl-s1">loss_op</span> <span class="pl-k">def</span> <span class="pl-en">inspect</span>(<span class="pl-s1">use_get_variable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">scope_optimizer</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">re_enter_scope</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">optimizer</span><span class="pl-c1">=</span><span class="pl-s1">tf</span>.<span class="pl-s1">train</span>.<span class="pl-v">AdamOptimizer</span>): <span class="pl-s1">scope</span> <span class="pl-c1">=</span> <span class="pl-s">'scope'</span> <span class="pl-k">if</span> <span class="pl-s1">re_enter_scope</span>: <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-en">variable_scope</span>(<span class="pl-s1">scope</span>) <span class="pl-k">as</span> <span class="pl-s1">variable_scope</span>: <span class="pl-c"># Capture variable scope</span> <span class="pl-k">if</span> <span class="pl-s1">re_enter_scope</span> <span class="pl-c1">==</span> <span class="pl-s">'object'</span>: <span class="pl-c"># Save captured object for re-entering scope with captured variable scope object</span> <span class="pl-s1">scope</span> <span class="pl-c1">=</span> <span class="pl-s1">variable_scope</span> <span class="pl-k">elif</span> <span class="pl-s1">re_enter_scope</span> <span class="pl-c1">==</span> <span class="pl-s">'original_name_scope'</span>: <span class="pl-c"># Save original name scope of captured variable scope for re-entering the scope with original name scope</span> <span class="pl-s1">scope</span> <span class="pl-c1">=</span> <span class="pl-s1">variable_scope</span>.<span class="pl-s1">original_name_scope</span> <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-en">variable_scope</span>(<span class="pl-s1">scope</span>): <span class="pl-c"># (Re-)enter scope</span> <span class="pl-s1">loss_op</span> <span class="pl-c1">=</span> <span class="pl-en">build_loss</span>(<span class="pl-s1">use_get_variable</span><span class="pl-c1">=</span><span class="pl-s1">use_get_variable</span>) <span class="pl-k">if</span> <span class="pl-s1">scope_optimizer</span>: <span class="pl-c"># Create optimizer in the variable scope</span> <span class="pl-s1">train_op</span> <span class="pl-c1">=</span> <span class="pl-en">optimizer</span>(<span class="pl-c1">0.1</span>).<span class="pl-en">minimize</span>(<span class="pl-s1">loss_op</span>) <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">scope_optimizer</span>: <span class="pl-c"># Create optimizer outside of variable scope</span> <span class="pl-s1">train_op</span> <span class="pl-c1">=</span> <span class="pl-en">optimizer</span>(<span class="pl-c1">0.1</span>).<span class="pl-en">minimize</span>(<span class="pl-s1">loss_op</span>) <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-v">Session</span>() <span class="pl-k">as</span> <span class="pl-s1">sess</span>: <span class="pl-c"># Initialize variables</span> <span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">tf</span>.<span class="pl-en">global_variables_initializer</span>()) <span class="pl-s1">description</span> <span class="pl-c1">=</span> <span class="pl-s">'optimizer '</span> <span class="pl-c1">+</span> (<span class="pl-s">'NOT'</span> <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">scope_optimizer</span> <span class="pl-k">else</span> <span class="pl-s">'IS'</span>) <span class="pl-c1">+</span> <span class="pl-s">' scoped, '</span> <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">re_enter_scope</span>: <span class="pl-s1">description</span> <span class="pl-c1">+=</span> <span class="pl-s">'using ORIGINAL scope, '</span> <span class="pl-k">elif</span> <span class="pl-s1">re_enter_scope</span> <span class="pl-c1">==</span> <span class="pl-s">'object'</span>: <span class="pl-s1">description</span> <span class="pl-c1">+=</span> <span class="pl-s">'re-entering scope with OBJECT, '</span> <span class="pl-k">elif</span> <span class="pl-s1">re_enter_scope</span> <span class="pl-c1">==</span> <span class="pl-s">'original_name_scope'</span>: <span class="pl-s1">description</span> <span class="pl-c1">+=</span> <span class="pl-s">'re-entering scope with ORIGINAL_NAME_SCOPE, '</span> <span class="pl-s1">description</span> <span class="pl-c1">+=</span> <span class="pl-s">'variables created with '</span> <span class="pl-c1">+</span> (<span class="pl-s">'tf.get_variable'</span> <span class="pl-k">if</span> <span class="pl-s1">use_get_variable</span> <span class="pl-k">else</span> <span class="pl-s">'tf.Variable'</span>) <span class="pl-en">print</span>(<span class="pl-s1">description</span>) <span class="pl-en">print</span>(<span class="pl-s">'<span class="pl-cce">\n</span>'</span>.<span class="pl-en">join</span>([<span class="pl-s">' '</span><span class="pl-c1">+</span><span class="pl-s1">var</span>.<span class="pl-s1">name</span> <span class="pl-k">for</span> <span class="pl-s1">var</span> <span class="pl-c1">in</span> <span class="pl-s1">tf</span>.<span class="pl-en">global_variables</span>()])) <span class="pl-en">print</span>() <span class="pl-s1">tf</span>.<span class="pl-en">reset_default_graph</span>() <span class="pl-k">def</span> <span class="pl-en">main</span>(): <span class="pl-c"># Ideally scope everything with re-entered scope, leads to double scoping of gradient variables and having duplicate</span> <span class="pl-c"># scope (with unique name) for Adam optimizer beta power variables</span> <span class="pl-en">inspect</span>(<span class="pl-s1">use_get_variable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">scope_optimizer</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">re_enter_scope</span><span class="pl-c1">=</span><span class="pl-s">'object'</span>) <span class="pl-c"># Not scoping optimizer fixes double scoping of RNN variables but leads to having AdamOptimizer beta_powers not</span> <span class="pl-c"># scoped</span> <span class="pl-en">inspect</span>(<span class="pl-s1">use_get_variable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">scope_optimizer</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">re_enter_scope</span><span class="pl-c1">=</span><span class="pl-s">'object'</span>) <span class="pl-c"># Using tf.Variable for variable creation when re-entering scope with scope object leads to creation of duplicate</span> <span class="pl-c"># scope (with unique name) for non-RNN variables</span> <span class="pl-en">inspect</span>(<span class="pl-s1">use_get_variable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">scope_optimizer</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">re_enter_scope</span><span class="pl-c1">=</span><span class="pl-s">'object'</span>) <span class="pl-c"># Changing scope re-entering method to variable_scope.original_name_scope fixes the problem of duplicate scope</span> <span class="pl-c"># when using tf.Variable for variable creation, but creates additional problem of having double slashes in</span> <span class="pl-c"># scope hierarchy path with RNN variables.</span> <span class="pl-en">inspect</span>(<span class="pl-s1">use_get_variable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">scope_optimizer</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">re_enter_scope</span><span class="pl-c1">=</span><span class="pl-s">'original_name_scope'</span>) <span class="pl-c"># Similar problem is observed when using tf.get_variable for variable creation and re-entering scope with</span> <span class="pl-c"># original_name_scope but this time double slashes are observed also with non-RNN variables.</span> <span class="pl-en">inspect</span>(<span class="pl-s1">use_get_variable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">scope_optimizer</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">re_enter_scope</span><span class="pl-c1">=</span><span class="pl-s">'original_name_scope'</span>) <span class="pl-c"># Scoping optimizer without re-entering the scope fixes scoping of Adam optimizer beta power variables but does not</span> <span class="pl-c"># fix the problem of having double scopes for RNN variables. However re-entering scopes is desired for OOP.</span> <span class="pl-en">inspect</span>(<span class="pl-s1">use_get_variable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">scope_optimizer</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">re_enter_scope</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-c"># Using tf.get_variable for variable creation won't help since Optimizer creates variables with tf.Variable and RNN</span> <span class="pl-c"># cells create variables with tf.get_variable, these two methods don't get along</span> <span class="pl-en">inspect</span>(<span class="pl-s1">use_get_variable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">scope_optimizer</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">re_enter_scope</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-c"># Swapping AdamOptimizer for RMSPropOptimizer fixes the problem with AdamOptimizer's beta power variables</span> <span class="pl-en">inspect</span>(<span class="pl-s1">use_get_variable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">scope_optimizer</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">re_enter_scope</span><span class="pl-c1">=</span><span class="pl-s">'object'</span>, <span class="pl-s1">optimizer</span><span class="pl-c1">=</span><span class="pl-s1">tf</span>.<span class="pl-s1">train</span>.<span class="pl-v">RMSPropOptimizer</span>) <span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">'__main__'</span>: <span class="pl-en">main</span>()</pre></div> <p dir="auto">outputs</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="optimizer IS scoped, re-entering scope with OBJECT, variables created with tf.get_variable scope/w:0 scope/rnn/gru_cell/gates/weights:0 scope/rnn/gru_cell/gates/biases:0 scope/rnn/gru_cell/candidate/weights:0 scope/rnn/gru_cell/candidate/biases:0 scope_1/beta1_power:0 scope_1/beta2_power:0 scope/scope/w/Adam:0 scope/scope/w/Adam_1:0 scope/scope/rnn/gru_cell/gates/weights/Adam:0 scope/scope/rnn/gru_cell/gates/weights/Adam_1:0 scope/scope/rnn/gru_cell/gates/biases/Adam:0 scope/scope/rnn/gru_cell/gates/biases/Adam_1:0 scope/scope/rnn/gru_cell/candidate/weights/Adam:0 scope/scope/rnn/gru_cell/candidate/weights/Adam_1:0 scope/scope/rnn/gru_cell/candidate/biases/Adam:0 scope/scope/rnn/gru_cell/candidate/biases/Adam_1:0 optimizer NOT scoped, re-entering scope with OBJECT, variables created with tf.get_variable scope/w:0 scope/rnn/gru_cell/gates/weights:0 scope/rnn/gru_cell/gates/biases:0 scope/rnn/gru_cell/candidate/weights:0 scope/rnn/gru_cell/candidate/biases:0 beta1_power:0 beta2_power:0 scope/w/Adam:0 scope/w/Adam_1:0 scope/rnn/gru_cell/gates/weights/Adam:0 scope/rnn/gru_cell/gates/weights/Adam_1:0 scope/rnn/gru_cell/gates/biases/Adam:0 scope/rnn/gru_cell/gates/biases/Adam_1:0 scope/rnn/gru_cell/candidate/weights/Adam:0 scope/rnn/gru_cell/candidate/weights/Adam_1:0 scope/rnn/gru_cell/candidate/biases/Adam:0 scope/rnn/gru_cell/candidate/biases/Adam_1:0 optimizer NOT scoped, re-entering scope with OBJECT, variables created with tf.Variable scope_1/w:0 scope/rnn/gru_cell/gates/weights:0 scope/rnn/gru_cell/gates/biases:0 scope/rnn/gru_cell/candidate/weights:0 scope/rnn/gru_cell/candidate/biases:0 beta1_power:0 beta2_power:0 scope_1/w/Adam:0 scope_1/w/Adam_1:0 scope/rnn/gru_cell/gates/weights/Adam:0 scope/rnn/gru_cell/gates/weights/Adam_1:0 scope/rnn/gru_cell/gates/biases/Adam:0 scope/rnn/gru_cell/gates/biases/Adam_1:0 scope/rnn/gru_cell/candidate/weights/Adam:0 scope/rnn/gru_cell/candidate/weights/Adam_1:0 scope/rnn/gru_cell/candidate/biases/Adam:0 scope/rnn/gru_cell/candidate/biases/Adam_1:0 optimizer NOT scoped, re-entering scope with ORIGINAL_NAME_SCOPE, variables created with tf.Variable scope/w:0 scope//rnn/gru_cell/gates/weights:0 scope//rnn/gru_cell/gates/biases:0 scope//rnn/gru_cell/candidate/weights:0 scope//rnn/gru_cell/candidate/biases:0 beta1_power:0 beta2_power:0 scope/w/Adam:0 scope/w/Adam_1:0 scope//rnn/gru_cell/gates/weights/Adam:0 scope//rnn/gru_cell/gates/weights/Adam_1:0 scope//rnn/gru_cell/gates/biases/Adam:0 scope//rnn/gru_cell/gates/biases/Adam_1:0 scope//rnn/gru_cell/candidate/weights/Adam:0 scope//rnn/gru_cell/candidate/weights/Adam_1:0 scope//rnn/gru_cell/candidate/biases/Adam:0 scope//rnn/gru_cell/candidate/biases/Adam_1:0 optimizer NOT scoped, re-entering scope with ORIGINAL_NAME_SCOPE, variables created with tf.get_variable scope//w:0 scope//rnn/gru_cell/gates/weights:0 scope//rnn/gru_cell/gates/biases:0 scope//rnn/gru_cell/candidate/weights:0 scope//rnn/gru_cell/candidate/biases:0 beta1_power:0 beta2_power:0 scope//w/Adam:0 scope//w/Adam_1:0 scope//rnn/gru_cell/gates/weights/Adam:0 scope//rnn/gru_cell/gates/weights/Adam_1:0 scope//rnn/gru_cell/gates/biases/Adam:0 scope//rnn/gru_cell/gates/biases/Adam_1:0 scope//rnn/gru_cell/candidate/weights/Adam:0 scope//rnn/gru_cell/candidate/weights/Adam_1:0 scope//rnn/gru_cell/candidate/biases/Adam:0 scope//rnn/gru_cell/candidate/biases/Adam_1:0 optimizer IS scoped, using ORIGINAL scope, variables created with tf.Variable scope/w:0 scope/rnn/gru_cell/gates/weights:0 scope/rnn/gru_cell/gates/biases:0 scope/rnn/gru_cell/candidate/weights:0 scope/rnn/gru_cell/candidate/biases:0 scope/beta1_power:0 scope/beta2_power:0 scope/scope/w/Adam:0 scope/scope/w/Adam_1:0 scope/scope/rnn/gru_cell/gates/weights/Adam:0 scope/scope/rnn/gru_cell/gates/weights/Adam_1:0 scope/scope/rnn/gru_cell/gates/biases/Adam:0 scope/scope/rnn/gru_cell/gates/biases/Adam_1:0 scope/scope/rnn/gru_cell/candidate/weights/Adam:0 scope/scope/rnn/gru_cell/candidate/weights/Adam_1:0 scope/scope/rnn/gru_cell/candidate/biases/Adam:0 scope/scope/rnn/gru_cell/candidate/biases/Adam_1:0 optimizer IS scoped, using ORIGINAL scope, variables created with tf.get_variable scope/w:0 scope/rnn/gru_cell/gates/weights:0 scope/rnn/gru_cell/gates/biases:0 scope/rnn/gru_cell/candidate/weights:0 scope/rnn/gru_cell/candidate/biases:0 scope/beta1_power:0 scope/beta2_power:0 scope/scope/w/Adam:0 scope/scope/w/Adam_1:0 scope/scope/rnn/gru_cell/gates/weights/Adam:0 scope/scope/rnn/gru_cell/gates/weights/Adam_1:0 scope/scope/rnn/gru_cell/gates/biases/Adam:0 scope/scope/rnn/gru_cell/gates/biases/Adam_1:0 scope/scope/rnn/gru_cell/candidate/weights/Adam:0 scope/scope/rnn/gru_cell/candidate/weights/Adam_1:0 scope/scope/rnn/gru_cell/candidate/biases/Adam:0 scope/scope/rnn/gru_cell/candidate/biases/Adam_1:0 optimizer NOT scoped, re-entering scope with OBJECT, variables created with tf.get_variable scope/w:0 scope/rnn/gru_cell/gates/weights:0 scope/rnn/gru_cell/gates/biases:0 scope/rnn/gru_cell/candidate/weights:0 scope/rnn/gru_cell/candidate/biases:0 scope/w/RMSProp:0 scope/w/RMSProp_1:0 scope/rnn/gru_cell/gates/weights/RMSProp:0 scope/rnn/gru_cell/gates/weights/RMSProp_1:0 scope/rnn/gru_cell/gates/biases/RMSProp:0 scope/rnn/gru_cell/gates/biases/RMSProp_1:0 scope/rnn/gru_cell/candidate/weights/RMSProp:0 scope/rnn/gru_cell/candidate/weights/RMSProp_1:0 scope/rnn/gru_cell/candidate/biases/RMSProp:0 scope/rnn/gru_cell/candidate/biases/RMSProp_1:0"><pre class="notranslate"><code class="notranslate">optimizer IS scoped, re-entering scope with OBJECT, variables created with tf.get_variable scope/w:0 scope/rnn/gru_cell/gates/weights:0 scope/rnn/gru_cell/gates/biases:0 scope/rnn/gru_cell/candidate/weights:0 scope/rnn/gru_cell/candidate/biases:0 scope_1/beta1_power:0 scope_1/beta2_power:0 scope/scope/w/Adam:0 scope/scope/w/Adam_1:0 scope/scope/rnn/gru_cell/gates/weights/Adam:0 scope/scope/rnn/gru_cell/gates/weights/Adam_1:0 scope/scope/rnn/gru_cell/gates/biases/Adam:0 scope/scope/rnn/gru_cell/gates/biases/Adam_1:0 scope/scope/rnn/gru_cell/candidate/weights/Adam:0 scope/scope/rnn/gru_cell/candidate/weights/Adam_1:0 scope/scope/rnn/gru_cell/candidate/biases/Adam:0 scope/scope/rnn/gru_cell/candidate/biases/Adam_1:0 optimizer NOT scoped, re-entering scope with OBJECT, variables created with tf.get_variable scope/w:0 scope/rnn/gru_cell/gates/weights:0 scope/rnn/gru_cell/gates/biases:0 scope/rnn/gru_cell/candidate/weights:0 scope/rnn/gru_cell/candidate/biases:0 beta1_power:0 beta2_power:0 scope/w/Adam:0 scope/w/Adam_1:0 scope/rnn/gru_cell/gates/weights/Adam:0 scope/rnn/gru_cell/gates/weights/Adam_1:0 scope/rnn/gru_cell/gates/biases/Adam:0 scope/rnn/gru_cell/gates/biases/Adam_1:0 scope/rnn/gru_cell/candidate/weights/Adam:0 scope/rnn/gru_cell/candidate/weights/Adam_1:0 scope/rnn/gru_cell/candidate/biases/Adam:0 scope/rnn/gru_cell/candidate/biases/Adam_1:0 optimizer NOT scoped, re-entering scope with OBJECT, variables created with tf.Variable scope_1/w:0 scope/rnn/gru_cell/gates/weights:0 scope/rnn/gru_cell/gates/biases:0 scope/rnn/gru_cell/candidate/weights:0 scope/rnn/gru_cell/candidate/biases:0 beta1_power:0 beta2_power:0 scope_1/w/Adam:0 scope_1/w/Adam_1:0 scope/rnn/gru_cell/gates/weights/Adam:0 scope/rnn/gru_cell/gates/weights/Adam_1:0 scope/rnn/gru_cell/gates/biases/Adam:0 scope/rnn/gru_cell/gates/biases/Adam_1:0 scope/rnn/gru_cell/candidate/weights/Adam:0 scope/rnn/gru_cell/candidate/weights/Adam_1:0 scope/rnn/gru_cell/candidate/biases/Adam:0 scope/rnn/gru_cell/candidate/biases/Adam_1:0 optimizer NOT scoped, re-entering scope with ORIGINAL_NAME_SCOPE, variables created with tf.Variable scope/w:0 scope//rnn/gru_cell/gates/weights:0 scope//rnn/gru_cell/gates/biases:0 scope//rnn/gru_cell/candidate/weights:0 scope//rnn/gru_cell/candidate/biases:0 beta1_power:0 beta2_power:0 scope/w/Adam:0 scope/w/Adam_1:0 scope//rnn/gru_cell/gates/weights/Adam:0 scope//rnn/gru_cell/gates/weights/Adam_1:0 scope//rnn/gru_cell/gates/biases/Adam:0 scope//rnn/gru_cell/gates/biases/Adam_1:0 scope//rnn/gru_cell/candidate/weights/Adam:0 scope//rnn/gru_cell/candidate/weights/Adam_1:0 scope//rnn/gru_cell/candidate/biases/Adam:0 scope//rnn/gru_cell/candidate/biases/Adam_1:0 optimizer NOT scoped, re-entering scope with ORIGINAL_NAME_SCOPE, variables created with tf.get_variable scope//w:0 scope//rnn/gru_cell/gates/weights:0 scope//rnn/gru_cell/gates/biases:0 scope//rnn/gru_cell/candidate/weights:0 scope//rnn/gru_cell/candidate/biases:0 beta1_power:0 beta2_power:0 scope//w/Adam:0 scope//w/Adam_1:0 scope//rnn/gru_cell/gates/weights/Adam:0 scope//rnn/gru_cell/gates/weights/Adam_1:0 scope//rnn/gru_cell/gates/biases/Adam:0 scope//rnn/gru_cell/gates/biases/Adam_1:0 scope//rnn/gru_cell/candidate/weights/Adam:0 scope//rnn/gru_cell/candidate/weights/Adam_1:0 scope//rnn/gru_cell/candidate/biases/Adam:0 scope//rnn/gru_cell/candidate/biases/Adam_1:0 optimizer IS scoped, using ORIGINAL scope, variables created with tf.Variable scope/w:0 scope/rnn/gru_cell/gates/weights:0 scope/rnn/gru_cell/gates/biases:0 scope/rnn/gru_cell/candidate/weights:0 scope/rnn/gru_cell/candidate/biases:0 scope/beta1_power:0 scope/beta2_power:0 scope/scope/w/Adam:0 scope/scope/w/Adam_1:0 scope/scope/rnn/gru_cell/gates/weights/Adam:0 scope/scope/rnn/gru_cell/gates/weights/Adam_1:0 scope/scope/rnn/gru_cell/gates/biases/Adam:0 scope/scope/rnn/gru_cell/gates/biases/Adam_1:0 scope/scope/rnn/gru_cell/candidate/weights/Adam:0 scope/scope/rnn/gru_cell/candidate/weights/Adam_1:0 scope/scope/rnn/gru_cell/candidate/biases/Adam:0 scope/scope/rnn/gru_cell/candidate/biases/Adam_1:0 optimizer IS scoped, using ORIGINAL scope, variables created with tf.get_variable scope/w:0 scope/rnn/gru_cell/gates/weights:0 scope/rnn/gru_cell/gates/biases:0 scope/rnn/gru_cell/candidate/weights:0 scope/rnn/gru_cell/candidate/biases:0 scope/beta1_power:0 scope/beta2_power:0 scope/scope/w/Adam:0 scope/scope/w/Adam_1:0 scope/scope/rnn/gru_cell/gates/weights/Adam:0 scope/scope/rnn/gru_cell/gates/weights/Adam_1:0 scope/scope/rnn/gru_cell/gates/biases/Adam:0 scope/scope/rnn/gru_cell/gates/biases/Adam_1:0 scope/scope/rnn/gru_cell/candidate/weights/Adam:0 scope/scope/rnn/gru_cell/candidate/weights/Adam_1:0 scope/scope/rnn/gru_cell/candidate/biases/Adam:0 scope/scope/rnn/gru_cell/candidate/biases/Adam_1:0 optimizer NOT scoped, re-entering scope with OBJECT, variables created with tf.get_variable scope/w:0 scope/rnn/gru_cell/gates/weights:0 scope/rnn/gru_cell/gates/biases:0 scope/rnn/gru_cell/candidate/weights:0 scope/rnn/gru_cell/candidate/biases:0 scope/w/RMSProp:0 scope/w/RMSProp_1:0 scope/rnn/gru_cell/gates/weights/RMSProp:0 scope/rnn/gru_cell/gates/weights/RMSProp_1:0 scope/rnn/gru_cell/gates/biases/RMSProp:0 scope/rnn/gru_cell/gates/biases/RMSProp_1:0 scope/rnn/gru_cell/candidate/weights/RMSProp:0 scope/rnn/gru_cell/candidate/weights/RMSProp_1:0 scope/rnn/gru_cell/candidate/biases/RMSProp:0 scope/rnn/gru_cell/candidate/biases/RMSProp_1:0 </code></pre></div> <p dir="auto">Workaround for clean scoping is to create optimizer op outside of the variable scope and using eg. <code class="notranslate">RMSPropOptimizer</code>. However this is confusing behaviour, ideally everything should be able to be scoped. Unfortunately there is nothing to get variable names clean when using <code class="notranslate">AdamOptimizer</code>. <code class="notranslate">AdamOptimizer</code> creates variables for beta powers with <code class="notranslate">tf.Variable</code>.</p> <p dir="auto">All of the mentioned problems would probably be fixed by using <code class="notranslate">tf.get_variable</code> everywhere. Until (and if) this change happens users should be instructed to use <code class="notranslate">tf.get_variable</code> only, creating optimizer outside of variable scope and avoid using <code class="notranslate">AdamOptimizer</code> if clean scoping is desired. Double scoping of RNN gradient variables would be tolerable but having several nested classes implementing different models with their own variable scopes lead to extremely messy variable names making debugging more difficult.</p> <p dir="auto">Tested on Ubuntu 16.04 with Tensorflow 1.0.0 installed with pip.</p> <p dir="auto">Related issues:<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="191018655" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/5786" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/5786/hovercard" href="https://github.com/tensorflow/tensorflow/issues/5786">#5786</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="194303257" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/6189" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/6189/hovercard" href="https://github.com/tensorflow/tensorflow/issues/6189">#6189</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="192800636" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/6007" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/6007/hovercard" href="https://github.com/tensorflow/tensorflow/issues/6007">#6007</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> <p dir="auto">Dubbo version: 2.6.2<br> Operating System version: win7<br> Java version: 1.8</p> <h3 dir="auto">Step to reproduce this issue</h3> <p dir="auto">阅读源码发现,每个代理实现类都会去判断默认实现</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public class Protocol$Adaptive implements org.apache.dubbo.rpc.Protocol { public void destroy() { throw new UnsupportedOperationException( &quot;method public abstract void org.apache.dubbo.rpc.Protocol.destroy() of interface org.apache.dubbo.rpc.Protocol is not adaptive method!&quot;); } public int getDefaultPort() { throw new UnsupportedOperationException( &quot;method public abstract int org.apache.dubbo.rpc.Protocol.getDefaultPort() of interface org.apache.dubbo.rpc.Protocol is not adaptive method!&quot;); } public org.apache.dubbo.rpc.Invoker refer(java.lang.Class arg0, org.apache.dubbo.common.URL arg1) throws org.apache.dubbo.rpc.RpcException { if (arg1 == null) throw new IllegalArgumentException(&quot;url == null&quot;); org.apache.dubbo.common.URL url = arg1; String extName = (url.getProtocol() == null ? &quot;dubbo&quot; : url.getProtocol()); if (extName == null) throw new IllegalStateException(&quot;Fail to get extension(org.apache.dubbo.rpc.Protocol) name from url(&quot; + url.toString() + &quot;) use keys([protocol])&quot;); org.apache.dubbo.rpc.Protocol extension = (org.apache.dubbo.rpc.Protocol) ExtensionLoader .getExtensionLoader(org.apache.dubbo.rpc.Protocol.class).getExtension(extName); return extension.refer(arg0, arg1); } public org.apache.dubbo.rpc.Exporter export(org.apache.dubbo.rpc.Invoker arg0) throws org.apache.dubbo.rpc.RpcException { if (arg0 == null) throw new IllegalArgumentException(&quot;org.apache.dubbo.rpc.Invoker argument == null&quot;); if (arg0.getUrl() == null) throw new IllegalArgumentException(&quot;org.apache.dubbo.rpc.Invoker argument getUrl() == null&quot;); org.apache.dubbo.common.URL url = arg0.getUrl(); String extName = (url.getProtocol() == null ? &quot;dubbo&quot; : url.getProtocol()); if (extName == null) throw new IllegalStateException(&quot;Fail to get extension(org.apache.dubbo.rpc.Protocol) name from url(&quot; + url.toString() + &quot;) use keys([protocol])&quot;); org.apache.dubbo.rpc.Protocol extension = (org.apache.dubbo.rpc.Protocol) ExtensionLoader .getExtensionLoader(org.apache.dubbo.rpc.Protocol.class).getExtension(extName); return extension.export(arg0); } }"><pre class="notranslate"><code class="notranslate">public class Protocol$Adaptive implements org.apache.dubbo.rpc.Protocol { public void destroy() { throw new UnsupportedOperationException( "method public abstract void org.apache.dubbo.rpc.Protocol.destroy() of interface org.apache.dubbo.rpc.Protocol is not adaptive method!"); } public int getDefaultPort() { throw new UnsupportedOperationException( "method public abstract int org.apache.dubbo.rpc.Protocol.getDefaultPort() of interface org.apache.dubbo.rpc.Protocol is not adaptive method!"); } public org.apache.dubbo.rpc.Invoker refer(java.lang.Class arg0, org.apache.dubbo.common.URL arg1) throws org.apache.dubbo.rpc.RpcException { if (arg1 == null) throw new IllegalArgumentException("url == null"); org.apache.dubbo.common.URL url = arg1; String extName = (url.getProtocol() == null ? "dubbo" : url.getProtocol()); if (extName == null) throw new IllegalStateException("Fail to get extension(org.apache.dubbo.rpc.Protocol) name from url(" + url.toString() + ") use keys([protocol])"); org.apache.dubbo.rpc.Protocol extension = (org.apache.dubbo.rpc.Protocol) ExtensionLoader .getExtensionLoader(org.apache.dubbo.rpc.Protocol.class).getExtension(extName); return extension.refer(arg0, arg1); } public org.apache.dubbo.rpc.Exporter export(org.apache.dubbo.rpc.Invoker arg0) throws org.apache.dubbo.rpc.RpcException { if (arg0 == null) throw new IllegalArgumentException("org.apache.dubbo.rpc.Invoker argument == null"); if (arg0.getUrl() == null) throw new IllegalArgumentException("org.apache.dubbo.rpc.Invoker argument getUrl() == null"); org.apache.dubbo.common.URL url = arg0.getUrl(); String extName = (url.getProtocol() == null ? "dubbo" : url.getProtocol()); if (extName == null) throw new IllegalStateException("Fail to get extension(org.apache.dubbo.rpc.Protocol) name from url(" + url.toString() + ") use keys([protocol])"); org.apache.dubbo.rpc.Protocol extension = (org.apache.dubbo.rpc.Protocol) ExtensionLoader .getExtensionLoader(org.apache.dubbo.rpc.Protocol.class).getExtension(extName); return extension.export(arg0); } } </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/wiki/FAQ">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.0-SNAPSHOT</li> <li>Operating System version: mac os</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Step to reproduce this issue</h3> <ol dir="auto"> <li>Export a service</li> <li>Make cluster = "forking"</li> <li>Set Attachment in RpcContext</li> <li>Do rpc invoke</li> </ol> <h3 dir="auto">Expected Result</h3> <p dir="auto">The attachment in RpcContext has element.</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">The attachment in RpcContext don't have element.</p> <h3 dir="auto">The problem</h3> <p dir="auto">I set attachment in the consumer side like this:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12047600/42265457-30483704-7fa6-11e8-8075-2eede7775b3a.png"><img src="https://user-images.githubusercontent.com/12047600/42265457-30483704-7fa6-11e8-8075-2eede7775b3a.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Then do rpc invoke,but the attachment is missing, (AbstractInvoker#invoke):<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12047600/42265551-6b74d300-7fa6-11e8-8ad6-359cf091a3ac.png"><img src="https://user-images.githubusercontent.com/12047600/42265551-6b74d300-7fa6-11e8-8ad6-359cf091a3ac.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">The problem is that ForkingClusterInvoker use threapool to do rpc invoke which will miss the threadlocal:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12047600/42265595-92dae95c-7fa6-11e8-8ae3-3332cc67e4d3.png"><img src="https://user-images.githubusercontent.com/12047600/42265595-92dae95c-7fa6-11e8-8ae3-3332cc67e4d3.png" alt="image" style="max-width: 100%;"></a></p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=costin" rel="nofollow">Costin Leau</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4031?redirect=false" rel="nofollow">SPR-4031</a></strong> and commented</p> <p dir="auto">Right now, the beanAttributes group contains all the possible attributes used for a bean definition. However, namespaces that extend it, cannot reuse specific attributes and need to redefine them.<br> It would be nice to make the attributes global (while preserving the group) so that other NS can reuse their definitions.</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.5 RC1</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="398082088" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8708" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8708/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8708">#8708</a> make bean attributes global attributes inside spring-beans.xsd (<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="398082091" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8709" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8709/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8709">#8709</a> make bean attributes global attributes inside spring-beans.xsd (<em><strong>"is duplicated by"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=rpiotrow" rel="nofollow">Rafał Piotrowski</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4935?redirect=false" rel="nofollow">SPR-4935</a></strong> and commented</p> <p dir="auto">I create simple bean which implements BeanFactoryPostProcessor and has dependent bean injected with <code class="notranslate">@Autowired</code> annotation. Injection does not occur.</p> <p dir="auto">Workaround is to use standard XML dependency injection.</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.5.4</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/14209/autowired_bug_2.zip" rel="nofollow">autowired_bug_2.zip</a> (<em>4.35 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/14199/autowired_bug.zip" rel="nofollow">autowired_bug.zip</a> (<em>3.12 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/16350/autowired.patch" rel="nofollow">autowired.patch</a> (<em>1.32 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/16351/mylyn-context.zip" rel="nofollow">mylyn-context.zip</a> (<em>2.29 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="398111616" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12863" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12863/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12863">#12863</a> BeanFactoryPostProcessor not working for <code class="notranslate">@Value</code> (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/a557878a6f79e1d595c1e6e05faf7cbd78718b58/hovercard" href="https://github.com/spring-projects/spring-framework/commit/a557878a6f79e1d595c1e6e05faf7cbd78718b58"><tt>a557878</tt></a></p> <p dir="auto">0 votes, 6 watchers</p>
0
<p dir="auto">The bottom of the <a href="http://flask.pocoo.org/docs/0.10/quickstart/#quickstart" rel="nofollow">quickstart</a> page has a link: <a href="http://flask.pocoo.org/snippets/89/" rel="nofollow">Sharing your Localhost Server with Localtunnel</a> to a page with old/outdated information on Localtunnel. (it is pointing to Localtunnel <a href="http://progrium.com/localtunnel/" rel="nofollow">here</a>, which doesn't exist).</p> <p dir="auto">Localtunnel now appears to be: <a href="https://localtunnel.me/" rel="nofollow">here</a> or on github <a href="https://github.com/localtunnel/localtunnel">here</a>, and is installed via <code class="notranslate">npm</code>, not <code class="notranslate">gem</code>.</p>
<p dir="auto">At the <a href="http://flask.pocoo.org/snippets/89/" rel="nofollow">Snippet 89</a> there is a link pointing to <em>Localtunnel</em> website. Unfortunelly, Localtunnel home page has changed from <a href="http://progrium.com/localtunnel/" rel="nofollow">http://progrium.com/localtunnel/</a> to <a href="http://localtunnel.me/" rel="nofollow">http://localtunnel.me/</a></p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/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">Use new Next.js plugin for TypeScript</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Use a hack to transpile TypeScript to JSX and then let Next.js handle it.</p> <h2 dir="auto">Context</h2> <p dir="auto">With the release of Next.js v5 the current example with TypeScript is outdated and can be simplified with the new <a href="https://github.com/zeit/next-plugins/tree/master/packages/next-typescript">next-typescript</a> plugin.</p>
<h1 dir="auto">Bug report</h1> <h2 dir="auto">Describe the bug</h2> <p dir="auto">I was working on Next.js with Netlify CMS by using withAmp().<br> I add <code class="notranslate">&lt;style amp-custom&gt;</code> in <code class="notranslate">Next Head</code> but because of using <code class="notranslate">withAmp()</code> which (likely to) auto generate <code class="notranslate">&lt;style amp-custom&gt;</code> with blank style.</p> <p dir="auto">The result is duplication of using &lt;style amp-custom&gt; which will failed if used AMP validator.<br> I try searching around about adding CSS to withAmp and changing the 'auto added' amp-custom style but result was no luck, plus I can't seem to find a proper way to fix this and documentation about using withAmp properly (which is not on 'learn' and blog post) like: second parameter options of withAmp, does it only include <code class="notranslate">{ hybrid: true }</code> ?</p> <p dir="auto">I can't seem to find a good documentation of <code class="notranslate">withAmp</code> and can't add <code class="notranslate">&lt;style amp-custom&gt;</code></p> <h2 dir="auto">To Reproduce</h2> <ol dir="auto"> <li>I set up a repo if you wanted to properly take a look at:</li> </ol> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="git clone -b next-amp-issue-1 https://github.com/dusit-thani-core-team/Dusit-Blog"><pre class="notranslate">git clone -b next-amp-issue-1 https://github.com/dusit-thani-core-team/Dusit-Blog</pre></div> <ol start="2" dir="auto"> <li>run <code class="notranslate">yarn dev</code> and go to <code class="notranslate">localhost:3000</code>, you should see there's two <code class="notranslate">&lt;style amp-custom=""&gt;</code>, one contains style, one doesn't</li> <li><code class="notranslate">yarn export</code>, build failed as a result of failed AMP Validator from duplication of <code class="notranslate">&lt;style amp-custom&gt;</code></li> </ol> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Is there a way to reduce <code class="notranslate">&lt;style amp-custom&gt;</code> to one, like adding a config to remove 'auto added' <code class="notranslate">&lt;style amp-custom&gt;</code> or add style to 'auto added' <code class="notranslate">&lt;style amp-custom&gt;</code>.</p> <h2 dir="auto">Screenshots</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/35027979/59555217-6d8ad100-8fd9-11e9-9ee6-48ab6e198d2c.png"><img src="https://user-images.githubusercontent.com/35027979/59555217-6d8ad100-8fd9-11e9-9ee6-48ab6e198d2c.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/35027979/59555234-a2972380-8fd9-11e9-8d37-fc23101f67f9.png"><img src="https://user-images.githubusercontent.com/35027979/59555234-a2972380-8fd9-11e9-8d37-fc23101f67f9.png" alt="image" style="max-width: 100%;"></a></p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: Windows 10<br> Tried on Chrome and Firefox.</li> <li>Next.js 8.1.0, react: 16.8.6, react-dom: 16.8.6</li> <li>Node 12.3.1, yarn 1.15.2</li> </ul> <h2 dir="auto">Additional context</h2> <p dir="auto">Add any other context about the problem here.<br> Is there a clear documentation of using AMP with CSS or using AMP or just example using similar to this?</p>
0
<h1 dir="auto">Description of the new feature/enhancement</h1> <p dir="auto">"SaferCPlusPlus" is essentially a collection of safe data types intended to facilitate memory and data race safe C++ programming. This library is intended to work with and be complimentary to the Core Guidelines lifetime checker over its various stages of development and availability. (Including situations where the lifetime checker is not available at all.)</p> <h1 dir="auto">A clear and concise description of what the problem is that the new feature would solve.</h1> <p dir="auto">See the rest of the README for the benefits as well usage examples: <a href="https://github.com/duneroadrunner/SaferCPlusPlus/blob/master/README.md">https://github.com/duneroadrunner/SaferCPlusPlus/blob/master/README.md</a></p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">Include the necessary headers as described in the README.</p> <h1 dir="auto">A clear and concise description of what you want to happen.</h1> <p dir="auto">A more memory safe conhost, conpty, and Terminal.</p>
<h1 dir="auto">Summary</h1> <p dir="auto">Add "Duplicate Tab" option to open same profile in different tab</p>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Feature Idea</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">Windows Transport</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Allow connectivity to Windows hosts, via Win32 OpenSSH (<a href="https://github.com/PowerShell/Win32-OpenSSH">https://github.com/PowerShell/Win32-OpenSSH</a>) opposed to WinRM.</p> <p dir="auto">I can see this was requested last year but was closed as it wasn't apart of windows. Now there is a Microsoft release available (pre-prod currently). <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="229351790" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/24726" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/24726/hovercard" href="https://github.com/ansible/ansible/issues/24726">#24726</a></p>
<p dir="auto">(orig comment reformatted for readability)</p> <h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">vmware_guest</p> <h5 dir="auto">ANSIBLE VERSION</h5> <p dir="auto">ansible 2.5.0<br> config file = /etc/ansible/ansible.cfg<br> configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']<br> ansible python module location = /usr/lib/python2.7/site-packages/ansible-2.5.0-py2.7.egg/ansible<br> executable location = /usr/bin/ansible<br> python version = 2.7.5 (default, May 3 2017, 07:55:04) [GCC 4.8.5 20150623 (Red Hat 4.8.5-14)]</p> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">[root@vhwansgp2 _10__bss_infrastructure_playbooks]# ansible-config dump --only-changed<br> DEFAULT_HOST_LIST(/etc/ansible/ansible.cfg) = [u'/etc/ansible/inventory']<br> DEFAULT_STDOUT_CALLBACK(/etc/ansible/ansible.cfg) = debug<br> HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False<br> PERSISTENT_CONNECT_TIMEOUT(/etc/ansible/ansible.cfg) = 30<br> [root@vhwansgp2 _10__bss_infrastructure_playbooks]#</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Ansible Server : RHEL 7<br> Trying to build a VM of ESX version 6.</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">vmware_guest module throwing the below error.</p> <p dir="auto">&lt;127.0.0.1&gt; EXEC /bin/sh -c '/usr/bin/python2 /var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774/vmware_guest.py; rm -rf "/var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774/" &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0'</p> <p dir="auto">The full traceback is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/tmp/ansible_wB67_F/ansible_module_vmware_guest.py&quot;, line 1547, in &lt;module&gt; main() File &quot;/tmp/ansible_wB67_F/ansible_module_vmware_guest.py&quot;, line 1538, in main result = pyv.deploy_vm() File &quot;/tmp/ansible_wB67_F/ansible_module_vmware_guest.py&quot;, line 1372, in deploy_vm self.wait_for_vm_ip(vm) File &quot;/tmp/ansible_wB67_F/ansible_module_vmware_guest.py&quot;, line 1457, in wait_for_vm_ip facts = self.gather_facts(newvm) File &quot;/tmp/ansible_wB67_F/ansible_module_vmware_guest.py&quot;, line 564, in gather_facts return gather_vm_facts(self.content, vm) File &quot;/tmp/ansible_wB67_F/ansible_modlib.zip/ansible/module_utils/vmware.py&quot;, line 266, in gather_vm_facts AttributeError: 'NoneType' object has no attribute 'config' fatal: [127.0.0.1]: FAILED! =&gt; {… PLAY RECAP *********************************************************************07:54:15 127.0.0.1 : ok=1 changed=0 unreachable=0 failed=1 "><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/tmp/ansible_wB67_F/ansible_module_vmware_guest.py", line 1547, in &lt;module&gt; main() File "/tmp/ansible_wB67_F/ansible_module_vmware_guest.py", line 1538, in main result = pyv.deploy_vm() File "/tmp/ansible_wB67_F/ansible_module_vmware_guest.py", line 1372, in deploy_vm self.wait_for_vm_ip(vm) File "/tmp/ansible_wB67_F/ansible_module_vmware_guest.py", line 1457, in wait_for_vm_ip facts = self.gather_facts(newvm) File "/tmp/ansible_wB67_F/ansible_module_vmware_guest.py", line 564, in gather_facts return gather_vm_facts(self.content, vm) File "/tmp/ansible_wB67_F/ansible_modlib.zip/ansible/module_utils/vmware.py", line 266, in gather_vm_facts AttributeError: 'NoneType' object has no attribute 'config' fatal: [127.0.0.1]: FAILED! =&gt; {… PLAY RECAP *********************************************************************07:54:15 127.0.0.1 : ok=1 changed=0 unreachable=0 failed=1 </code></pre></div> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- # Create a new VM from a template using the new vmware_guest module - name: VM from template hosts: 127.0.0.1 gather_facts: false connection: local vars: notes: Created by Ansible dumpfacts: False tasks: - name: set the template name set_fact: vmtemplate: RHEL7.3_Template when: os == &quot;Redhat&quot; and ver == &quot;7.3&quot; - name: Create VM from template vmware_guest: validate_certs: False hostname: &quot;{{ vcenter_hostname }}&quot; username: &quot;{{ vcenter_user }}&quot; password: &quot;{{ vcenter_pass }}&quot; esxi_hostname: &quot;{{ esxhost }}&quot; datacenter: GBS name: &quot;{{hname }}&quot; template: &quot;{{ vmtemplate }}&quot; disk: - size_gb: 35 type: thin datastore: &quot;{{ datastore }}&quot; hardware: memory_mb: &quot;{{ vm_memory | default(1024) }}&quot; num_cpus: &quot;{{ vm_cpu }}&quot; networks: - name: VM Network ip: &quot;{{ ipaddr }}&quot; netmask: 255.255.255.0 gateway: &quot;{{ gatwy }}&quot; dns_servers: - 10.0.0.250 wait_for_ip_address: True state: present register: newvm - name: IP address info debug: msg: &quot;{{ newvm.instance.ipv4 }} {{ hname }} {{ os }} {{ ver }}&quot; "><pre class="notranslate">--- <span class="pl-c"><span class="pl-c">#</span> Create a new VM from a template using the new vmware_guest module</span> - <span class="pl-ent">name</span>: <span class="pl-s">VM from template</span> <span class="pl-ent">hosts</span>: <span class="pl-s">127.0.0.1</span> <span class="pl-ent">gather_facts</span>: <span class="pl-c1">false</span> <span class="pl-ent">connection</span>: <span class="pl-s">local</span> <span class="pl-ent">vars</span>: <span class="pl-ent">notes</span>: <span class="pl-s">Created by Ansible</span> <span class="pl-ent">dumpfacts</span>: <span class="pl-c1">False</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">name</span>: <span class="pl-s">set the template name</span> <span class="pl-ent">set_fact</span>: <span class="pl-ent">vmtemplate</span>: <span class="pl-s">RHEL7.3_Template</span> <span class="pl-ent">when</span>: <span class="pl-s">os == "Redhat" and ver == "7.3"</span> - <span class="pl-ent">name</span>: <span class="pl-s">Create VM from template</span> <span class="pl-ent">vmware_guest</span>: <span class="pl-ent">validate_certs</span>: <span class="pl-c1">False</span> <span class="pl-ent">hostname</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ vcenter_hostname }}<span class="pl-pds">"</span></span> <span class="pl-ent">username</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ vcenter_user }}<span class="pl-pds">"</span></span> <span class="pl-ent">password</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ vcenter_pass }}<span class="pl-pds">"</span></span> <span class="pl-ent">esxi_hostname</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ esxhost }}<span class="pl-pds">"</span></span> <span class="pl-ent">datacenter</span>: <span class="pl-s">GBS</span> <span class="pl-ent">name</span>: <span class="pl-s"><span class="pl-pds">"</span>{{hname }}<span class="pl-pds">"</span></span> <span class="pl-ent">template</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ vmtemplate }}<span class="pl-pds">"</span></span> <span class="pl-ent">disk</span>: - <span class="pl-ent">size_gb</span>: <span class="pl-c1">35</span> <span class="pl-ent">type</span>: <span class="pl-s">thin</span> <span class="pl-ent">datastore</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ datastore }}<span class="pl-pds">"</span></span> <span class="pl-ent">hardware</span>: <span class="pl-ent">memory_mb</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ vm_memory | default(1024) }}<span class="pl-pds">"</span></span> <span class="pl-ent">num_cpus</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ vm_cpu }}<span class="pl-pds">"</span></span> <span class="pl-ent">networks</span>: - <span class="pl-ent">name</span>: <span class="pl-s">VM Network</span> <span class="pl-ent">ip</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ ipaddr }}<span class="pl-pds">"</span></span> <span class="pl-ent">netmask</span>: <span class="pl-s">255.255.255.0</span> <span class="pl-ent">gateway</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ gatwy }}<span class="pl-pds">"</span></span> <span class="pl-ent">dns_servers</span>: - <span class="pl-s">10.0.0.250</span> <span class="pl-ent">wait_for_ip_address</span>: <span class="pl-c1">True</span> <span class="pl-ent">state</span>: <span class="pl-s">present</span> <span class="pl-ent">register</span>: <span class="pl-s">newvm</span> - <span class="pl-ent">name</span>: <span class="pl-s">IP address info</span> <span class="pl-ent">debug</span>: <span class="pl-ent">msg</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ newvm.instance.ipv4 }} {{ hname }} {{ os }} {{ ver }}<span class="pl-pds">"</span></span> </pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">It will create a vm and perform the basic OS configurations.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">SEARCH<br> KEY</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook 2.5.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/var/lib/awx/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible-2.5.0-py2.7.egg/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, May 3 2017, 07:55:04) [GCC 4.8.5 20150623 (Red Hat 4.8.5-14)] Using /etc/ansible/ansible.cfg as config file SSH password: Parsed /tmp/awx_95_x_P4Re/tmpEiKzAH.awxrest.py inventory source with script plugin PLAYBOOK: create_vm.yml ******************************************************** 1 plays in create_vm.yml PLAY [VM from template] ********************************************************07:53:30 META: ran handlers TASK [set the template name] ***************************************************07:53:30 task path: /var/lib/awx/projects/_10__bss_infrastructure_playbooks/create_vm.yml:1107:53:30 ok: [127.0.0.1] =&gt; { &quot;ansible_facts&quot;: { &quot;vmtemplate&quot;: &quot;RHEL7.3_Template&quot; }, &quot;changed&quot;: false, &quot;failed&quot;: false } TASK [Create VM from template] *************************************************07:53:30 task path: /var/lib/awx/projects/_10__bss_infrastructure_playbooks/create_vm.yml:1507:53:30 Using module file /usr/lib/python2.7/site-packages/ansible-2.5.0-py2.7.egg/ansible/modules/cloud/vmware/vmware_guest.py &lt;127.0.0.1&gt; ESTABLISH LOCAL CONNECTION FOR USER: awx &lt;127.0.0.1&gt; EXEC /bin/sh -c 'echo ~ &amp;&amp; sleep 0' &lt;127.0.0.1&gt; EXEC /bin/sh -c '( umask 77 &amp;&amp; mkdir -p &quot;` echo /var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774 `&quot; &amp;&amp; echo ansible-tmp-1508741611.03-141536980839774=&quot;` echo /var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774 `&quot; ) &amp;&amp; sleep 0' &lt;127.0.0.1&gt; PUT /tmp/tmp2E_Vnk TO /var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774/vmware_guest.py &lt;127.0.0.1&gt; EXEC /bin/sh -c 'chmod u+x /var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774/ /var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774/vmware_guest.py &amp;&amp; sleep 0' &lt;127.0.0.1&gt; EXEC /bin/sh -c '/usr/bin/python2 /var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774/vmware_guest.py; rm -rf &quot;/var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774/&quot; &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0' The full traceback is: Traceback (most recent call last): File &quot;/tmp/ansible_wB67_F/ansible_module_vmware_guest.py&quot;, line 1547, in &lt;module&gt; main() File &quot;/tmp/ansible_wB67_F/ansible_module_vmware_guest.py&quot;, line 1538, in main result = pyv.deploy_vm() File &quot;/tmp/ansible_wB67_F/ansible_module_vmware_guest.py&quot;, line 1372, in deploy_vm self.wait_for_vm_ip(vm) File &quot;/tmp/ansible_wB67_F/ansible_module_vmware_guest.py&quot;, line 1457, in wait_for_vm_ip facts = self.gather_facts(newvm) File &quot;/tmp/ansible_wB67_F/ansible_module_vmware_guest.py&quot;, line 564, in gather_facts return gather_vm_facts(self.content, vm) File &quot;/tmp/ansible_wB67_F/ansible_modlib.zip/ansible/module_utils/vmware.py&quot;, line 266, in gather_vm_facts AttributeError: 'NoneType' object has no attribute 'config' fatal: [127.0.0.1]: FAILED! =&gt; {… PLAY RECAP *********************************************************************07:54:15 127.0.0.1 : ok=1 changed=0 unreachable=0 failed=1"><pre class="notranslate"><code class="notranslate">ansible-playbook 2.5.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/var/lib/awx/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible-2.5.0-py2.7.egg/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, May 3 2017, 07:55:04) [GCC 4.8.5 20150623 (Red Hat 4.8.5-14)] Using /etc/ansible/ansible.cfg as config file SSH password: Parsed /tmp/awx_95_x_P4Re/tmpEiKzAH.awxrest.py inventory source with script plugin PLAYBOOK: create_vm.yml ******************************************************** 1 plays in create_vm.yml PLAY [VM from template] ********************************************************07:53:30 META: ran handlers TASK [set the template name] ***************************************************07:53:30 task path: /var/lib/awx/projects/_10__bss_infrastructure_playbooks/create_vm.yml:1107:53:30 ok: [127.0.0.1] =&gt; { "ansible_facts": { "vmtemplate": "RHEL7.3_Template" }, "changed": false, "failed": false } TASK [Create VM from template] *************************************************07:53:30 task path: /var/lib/awx/projects/_10__bss_infrastructure_playbooks/create_vm.yml:1507:53:30 Using module file /usr/lib/python2.7/site-packages/ansible-2.5.0-py2.7.egg/ansible/modules/cloud/vmware/vmware_guest.py &lt;127.0.0.1&gt; ESTABLISH LOCAL CONNECTION FOR USER: awx &lt;127.0.0.1&gt; EXEC /bin/sh -c 'echo ~ &amp;&amp; sleep 0' &lt;127.0.0.1&gt; EXEC /bin/sh -c '( umask 77 &amp;&amp; mkdir -p "` echo /var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774 `" &amp;&amp; echo ansible-tmp-1508741611.03-141536980839774="` echo /var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774 `" ) &amp;&amp; sleep 0' &lt;127.0.0.1&gt; PUT /tmp/tmp2E_Vnk TO /var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774/vmware_guest.py &lt;127.0.0.1&gt; EXEC /bin/sh -c 'chmod u+x /var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774/ /var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774/vmware_guest.py &amp;&amp; sleep 0' &lt;127.0.0.1&gt; EXEC /bin/sh -c '/usr/bin/python2 /var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774/vmware_guest.py; rm -rf "/var/lib/awx/.ansible/tmp/ansible-tmp-1508741611.03-141536980839774/" &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0' The full traceback is: Traceback (most recent call last): File "/tmp/ansible_wB67_F/ansible_module_vmware_guest.py", line 1547, in &lt;module&gt; main() File "/tmp/ansible_wB67_F/ansible_module_vmware_guest.py", line 1538, in main result = pyv.deploy_vm() File "/tmp/ansible_wB67_F/ansible_module_vmware_guest.py", line 1372, in deploy_vm self.wait_for_vm_ip(vm) File "/tmp/ansible_wB67_F/ansible_module_vmware_guest.py", line 1457, in wait_for_vm_ip facts = self.gather_facts(newvm) File "/tmp/ansible_wB67_F/ansible_module_vmware_guest.py", line 564, in gather_facts return gather_vm_facts(self.content, vm) File "/tmp/ansible_wB67_F/ansible_modlib.zip/ansible/module_utils/vmware.py", line 266, in gather_vm_facts AttributeError: 'NoneType' object has no attribute 'config' fatal: [127.0.0.1]: FAILED! =&gt; {… PLAY RECAP *********************************************************************07:54:15 127.0.0.1 : ok=1 changed=0 unreachable=0 failed=1 </code></pre></div>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=aantono" rel="nofollow">Alex Antonov</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2674?redirect=false" rel="nofollow">SPR-2674</a></strong> and commented</p> <p dir="auto">If a redirectToView is used after the request has been binded and validated, both BeanPropertyBindingResult and DirectFieldBindingResult do not carry over the underlying BeanWrapper and DirectFieldAccessor (due to them being transient and thus not being serialized in the implementations of the HTTP session which uses byte-array serialization mechanism), and as a result, loosing all the custom PropertyEditors which were assigned to the BindingResult during.</p> <p dir="auto">Not sure what the exact reason for declaring the BeanWrapper/DirectFieldAccessor transient is, but the most obvious fix is to make them non-transient, or explicitly hold a reference to the PropertyEditorRegistry in the *BindingResult implementations and then inject it into the newly recreated instances of BeanWrapper/DirectFieldAccessor.</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0 final</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="398070540" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7258" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7258/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7258">#7258</a> Serializable Bind exception bean wrapper is transient, therefore installed property editors are lost upon deserialization. (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=olegk" rel="nofollow">Oleg Kalnichevski</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6180?redirect=false" rel="nofollow">SPR-6180</a></strong> and commented</p> <p dir="auto">Folks,</p> <p dir="auto">Please consider upgrading HttpClient to version 4.0 which is the latest stable (GA) version of the library. Commons HttpClient 3.1 is very likely to be deprecated / officially declared end of life very soon (3 - 6 months). There have been no bug fixes in the 3.x branch for over a year.</p> <p dir="auto">Patch attached. Unfortunately I was unable to fix the Ivy build which I am not very familiar with.</p> <p dir="auto">Oleg</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0 RC1</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/15761/spring-httpclient-4.0.patch" rel="nofollow">spring-httpclient-4.0.patch</a> (<em>27.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="398108082" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12301" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12301/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12301">#12301</a> Provide support for Http Client 4 now that it is available (<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="398102079" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11385" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11385/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11385">#11385</a> CommonsClientHttpRequestFactory getHttpClient() returns HttpClient from Commons HttpClient 3.x which has been EOL'd (<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="398160104" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/15356" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/15356/hovercard" href="https://github.com/spring-projects/spring-framework/issues/15356">#15356</a> Request streaming for HttpComponentsClientHttpRequestFactory</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/3690002dce069729e24bb67386df3cbd7655708c/hovercard" href="https://github.com/spring-projects/spring-framework/commit/3690002dce069729e24bb67386df3cbd7655708c"><tt>3690002</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/54bbcf3a42ab2be10ebb27b7ff8965dcdf7a5254/hovercard" href="https://github.com/spring-projects/spring-framework/commit/54bbcf3a42ab2be10ebb27b7ff8965dcdf7a5254"><tt>54bbcf3</tt></a></p> <p dir="auto">17 votes, 20 watchers</p>
0
<p dir="auto">Hello, when creating a browser window like this:<br> <code class="notranslate">new BrowserWindow({ show: false, webPreferences: { nodeIntegration: true, webSecurity: false, partition: '', session: session.fromPartition(</code>${counter}<code class="notranslate">) }</code><br> and using a session:<br> <code class="notranslate">protocol.interceptBufferProtocol('http', (req, callback) =&gt; { console.log('Hello World'); });</code><br> Is never called</p>
<p dir="auto">Brief: When a session is set when creating a BrowserWindow, the protocol intercept functions are not activated.</p> <p dir="auto">Electron version: 6.0.8<br> Operating system: (Bug happens on Mac, Win 7, Win 10 and Ubuntu, so it's not an OS issue)</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">When the user navigates to a http page, the <code class="notranslate">protocol.interceptBufferProtocol</code> callback function should be called,<br> in this case, "Hello World" should be printed to the console</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">The <code class="notranslate">protocol.interceptBufferProtocol</code> callback function is not called/ran at all. In this case, nothing is printed in the console</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">Create a BrowserWindow and define <code class="notranslate">session</code> in the webPreferences</p> <p dir="auto"><code class="notranslate">protocol.interceptBufferProtocol('http', (req, callback) =&gt; { console.log('Hello World'); });</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="new BrowserWindow({ show: false, webPreferences: { nodeIntegration: true, webSecurity: false, partition: '', session: session.fromPartition(`1`) }"><pre class="notranslate"><code class="notranslate">new BrowserWindow({ show: false, webPreferences: { nodeIntegration: true, webSecurity: false, partition: '', session: session.fromPartition(`1`) } </code></pre></div>
1
<h1 dir="auto">Problem</h1> <p dir="auto">In the <a href="https://github.com/cyclejs">cycle.js</a> project, data-flow is implemented by defining functions of the type:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="type CreateDataFlow&lt;Source, Sink&gt; = (sources: Source)=&gt;Sink"><pre class="notranslate"><span class="pl-k">type</span> <span class="pl-smi">CreateDataFlow</span><span class="pl-c1">&lt;</span><span class="pl-smi">Source</span><span class="pl-kos">,</span> <span class="pl-smi">Sink</span><span class="pl-c1">&gt;</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">sources</span>: <span class="pl-smi">Source</span><span class="pl-kos">)</span><span class="pl-c1">=&gt;</span><span class="pl-smi">Sink</span></pre></div> <p dir="auto">Where <code class="notranslate">Source</code> and <code class="notranslate">Sink</code> are interfaces where every member is a property of type <code class="notranslate">Observable</code>.</p> <p dir="auto">Each implementation of <code class="notranslate">CreateDataFlow</code> will specify Interfaces (typically without index types) for <code class="notranslate">Source</code> and <code class="notranslate">Sink</code>.</p> <p dir="auto">Currently, it is not possible to specify this contract using types.</p> <p dir="auto">This is a problem because the contract is not enforced by types, and instead relies on the developer to implement their data-flow function correctly. More specifically, this is a problem when dealing with higher-order code that takes implementations of <code class="notranslate">CreateDataFlow</code>, that wants to deal with the input/output generically (i.e. without knowing what the keys/members are at compile time, it wishes to iterate over them knowing only that the type is <code class="notranslate">Observable</code>).</p> <h1 dir="auto">Existing Solutions</h1> <p dir="auto">There are two options:</p> <p dir="auto">The first is the one illustrated above. I.e., where the type-parameters <code class="notranslate">Source</code> and <code class="notranslate">Sink</code> have no type-restrictions. This creates the situation where any function that takes a parameter will be accepted. It's not clear from the typing what the contract should be, and so it will be trivially easy to pass in an invalidly typed function. If we wish to iterate over the output of the implementation, for example, we have to cast it to an index type (although, type guards do at least make this runtime safe).</p> <p dir="auto">The second option is to try something like:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="type CreateDataFlow&lt;Source extends {[key:string]:Observable&lt;any&gt;}, Sink extends {[key:string]:Observable&lt;any&gt;}&gt; = (source:Source)=&gt;Sink"><pre class="notranslate"><span class="pl-k">type</span> <span class="pl-smi">CreateDataFlow</span><span class="pl-c1">&lt;</span><span class="pl-smi">Source</span> <span class="pl-k">extends</span> <span class="pl-kos">{</span><span class="pl-kos">[</span><span class="pl-s1">key</span>:<span class="pl-smi">string</span><span class="pl-kos">]</span>:<span class="pl-smi">Observable</span><span class="pl-kos">&lt;</span><span class="pl-smi">any</span><span class="pl-kos">&gt;</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-smi">Sink</span> <span class="pl-k">extends</span> <span class="pl-kos">{</span><span class="pl-kos">[</span><span class="pl-s1">key</span>:<span class="pl-smi">string</span><span class="pl-kos">]</span>:<span class="pl-smi">Observable</span><span class="pl-kos">&lt;</span><span class="pl-smi">any</span><span class="pl-kos">&gt;</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">source</span>:<span class="pl-smi">Source</span><span class="pl-kos">)</span><span class="pl-c1">=&gt;</span><span class="pl-smi">Sink</span></pre></div> <p dir="auto">The problem is, this doesn't actually adhere to the contract: If we try to use an implementation where <code class="notranslate">Source</code> is an Interface (with all members having type <code class="notranslate">Observable</code>), an error is thrown by the compiler. Using this approach we are forced to weaken the contract to index-types only, which means we cannot differentiate (at a type-level) between implementations, and indeed allows callers of an implementation of <code class="notranslate">CreateDataFlow</code> to pass in any conforming instance (although, again type-guards do make this runtime safe).</p> <p dir="auto">Neither solution adequately captures the contract, and requires use of type-guards to make type-safe. Needless to say, runtime type-safety is not nearly as nice as compile time, otherwise we'd all be using JavaScript instead.</p> <h1 dir="auto">Proposal: Allow string literals in index types</h1> <p dir="auto">The proposal is that the following code would be valid:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="type ObservableMap &lt;Keys extends string&gt; = {[keys:Keys]: Observable&lt;any&gt;}"><pre class="notranslate"><span class="pl-k">type</span> <span class="pl-smi">ObservableMap</span> <span class="pl-c1">&lt;</span><span class="pl-smi">Keys</span> <span class="pl-k">extends</span> <span class="pl-smi">string</span><span class="pl-c1">&gt;</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">[</span><span class="pl-s1">keys</span>:<span class="pl-smi">Keys</span><span class="pl-kos">]</span>: <span class="pl-smi">Observable</span><span class="pl-kos">&lt;</span><span class="pl-smi">any</span><span class="pl-kos">&gt;</span><span class="pl-kos">}</span></pre></div> <p dir="auto">And so the definition of <code class="notranslate">CreateDataFlow</code> becomes:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="type CreateDataFlow&lt;SourceKeys, SinkKeys&gt; = (source: ObservableMap&lt;SourceKeys&gt;) =&gt; ObservableMap&lt;SinkKeys&gt;"><pre class="notranslate"><span class="pl-k">type</span> <span class="pl-smi">CreateDataFlow</span><span class="pl-c1">&lt;</span><span class="pl-smi">SourceKeys</span><span class="pl-kos">,</span> <span class="pl-smi">SinkKeys</span><span class="pl-c1">&gt;</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">source</span>: <span class="pl-smi">ObservableMap</span><span class="pl-kos">&lt;</span><span class="pl-smi">SourceKeys</span><span class="pl-kos">&gt;</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">ObservableMap</span><span class="pl-kos">&lt;</span><span class="pl-smi">SinkKeys</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">Sub-types would be interfaces, and Key would be a string-literal defining the members, e.g.:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface MySource { a: Observable&lt;string&gt; b: Observable&lt;number&gt; } type MySourceKey = 'a'|'b' interface MySink { c: Observable&lt;boolean&gt; d: Observable&lt;void&gt; } type MySinkKey = 'c'|'d' const myDataFlow: CreateDataFlow&lt;MySourceKey, MySinkKey&gt; = (mySource: MySource)=&gt;MySink { // ... } "><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">MySource</span> <span class="pl-kos">{</span> <span class="pl-c1">a</span>: <span class="pl-smi">Observable</span><span class="pl-kos">&lt;</span><span class="pl-smi">string</span><span class="pl-kos">&gt;</span> <span class="pl-c1">b</span>: <span class="pl-smi">Observable</span><span class="pl-kos">&lt;</span><span class="pl-smi">number</span><span class="pl-kos">&gt;</span> <span class="pl-kos">}</span> <span class="pl-k">type</span> <span class="pl-smi">MySourceKey</span> <span class="pl-c1">=</span> <span class="pl-s">'a'</span><span class="pl-c1">|</span><span class="pl-s">'b'</span> <span class="pl-k">interface</span> <span class="pl-smi">MySink</span> <span class="pl-kos">{</span> <span class="pl-c1">c</span>: <span class="pl-smi">Observable</span><span class="pl-kos">&lt;</span><span class="pl-smi">boolean</span><span class="pl-kos">&gt;</span> <span class="pl-c1">d</span>: <span class="pl-smi">Observable</span><span class="pl-kos">&lt;</span><span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">&gt;</span> <span class="pl-kos">}</span> <span class="pl-k">type</span> <span class="pl-smi">MySinkKey</span> <span class="pl-c1">=</span> <span class="pl-s">'c'</span><span class="pl-c1">|</span><span class="pl-s">'d'</span> <span class="pl-k">const</span> <span class="pl-en">myDataFlow</span>: <span class="pl-smi">CreateDataFlow</span><span class="pl-kos">&lt;</span><span class="pl-smi">MySourceKey</span><span class="pl-kos">,</span> <span class="pl-smi">MySinkKey</span><span class="pl-kos">&gt;</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">mySource</span>: <span class="pl-smi">MySource</span><span class="pl-kos">)</span><span class="pl-c1">=&gt;</span><span class="pl-smi">MySink</span> <span class="pl-kos">{</span> <span class="pl-c">// ...</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Potentially something akin to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="144197140" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/7722" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/7722/hovercard" href="https://github.com/microsoft/TypeScript/issues/7722">#7722</a> could be used to manage these "key" definitions.</p>
<p dir="auto">E.g. <code class="notranslate">componentDidMount</code> for a class that inherits from <code class="notranslate">React.Component</code></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Foo extends React.Component&lt;any, any&gt;{ com/*here*/ }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-k">extends</span> <span class="pl-smi">React</span><span class="pl-kos">.</span><span class="pl-c1">Component</span><span class="pl-kos">&lt;</span><span class="pl-smi">any</span><span class="pl-kos">,</span> <span class="pl-smi">any</span><span class="pl-kos">&gt;</span><span class="pl-kos">{</span> <span class="pl-c1">com</span><span class="pl-c">/*here*/</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">refs <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="125424445" data-permission-text="Title is private" data-url="https://github.com/TypeStrong/atom-typescript/issues/809" data-hovercard-type="issue" data-hovercard-url="/TypeStrong/atom-typescript/issues/809/hovercard" href="https://github.com/TypeStrong/atom-typescript/issues/809">TypeStrong/atom-typescript#809</a></p>
0