text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: No. Built for iOS using provided scripts. Defined ops to be included in build as documented (using <code class="notranslate">ops_to_register.h</code>).</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Built on macOS 10.12.6 for distribution on iOS</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: source</li>
<li><strong>TensorFlow version (use command below)</strong>: Unsure, sorry, my python environment is all messed up right now. My HEAD is at <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/0d2f6918322c7bf29d1de3075b0d4ed3b1b72919/hovercard" href="https://github.com/tensorflow/tensorflow/commit/0d2f6918322c7bf29d1de3075b0d4ed3b1b72919"><tt>0d2f691</tt></a></li>
<li><strong>Python version</strong>: 2.7.12, but I believe that's irrelevant for this issue</li>
<li><strong>Bazel version (if compiling from source)</strong>: 0.5.1-homebrew, but I'm using <code class="notranslate">build_all_ios.sh</code> instead of Bazel to build</li>
<li><strong>CUDA/cuDNN version</strong>: Unknown</li>
<li><strong>GPU model and memory</strong>: iPhone 7 Plus, but AFAIK GPU is unavailable on iOS</li>
<li><strong>Exact command to reproduce</strong>: No particular command. Please see description of issue</li>
</ul>
<p dir="auto">Also <a href="https://stackoverflow.com/questions/45682837/tensorflow-thread-pools-appear-to-spin-forever-even-after-session-is-closed" rel="nofollow">asked about this</a> on Stack Overflow, where it was suggested I file an issue</p>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">I believe this is a bug in Tensorflow. I am running Tensorflow on iOS, using the C++ API. I'm doing some image classification. I have a long-lived session, and I call <code class="notranslate">Run</code> many times on it, to evaluate different images from a backlog. Once I'm done, the <code class="notranslate">RunQueue</code>s (via <code class="notranslate">NonBlockingThreadPool</code>s) continue to pin the CPU at near max usage. They appear to be stuck in the <code class="notranslate">Steal</code> loop, presumably with no work to do.</p>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">I tried <code class="notranslate">Close()</code>ing and then <code class="notranslate">delete</code>ing the session, and having read some of the C++ source, this <em>should</em> have shut down the thread pools that belong to the session, but this didn't change the situation:</p>
<div class="highlight highlight-source-objc++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="auto status = session->Close();
delete session;
session = nil;"><pre class="notranslate"><span class="pl-k">auto</span> status = session-><span class="pl-en">Close</span>();
<span class="pl-k">delete</span> session;
session = <span class="pl-c1">nil</span>;</pre></div>
<p dir="auto">I tried setting some specific configuration options so I could be sure that the session did in fact own its thread pools instead of using a global thread pool, but this didn't help either:</p>
<div class="highlight highlight-source-objc++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="tensorflow::SessionOptions options;
options.config.clear_session_inter_op_thread_pool();
options.config.set_use_per_session_threads(true);
auto status = tensorflow::NewSession(options, &session);"><pre class="notranslate">tensorflow::SessionOptions options;
options.config.clear_session_inter_op_thread_pool();
options.config.set_use_per_session_threads(<span class="pl-c1">true</span>);
<span class="pl-k">auto</span> status = tensorflow::NewSession(options, &session);</pre></div>
<p dir="auto">One thing to note: while my understanding is that this isn't necessary, I did also try using a mutex to ensure that <code class="notranslate">Close</code> and <code class="notranslate">delete</code> would not be called concurrently with any call to <code class="notranslate">Run</code>, but again, no luck.</p>
<p dir="auto">The only thing that <em>has</em> reduced CPU load to a reasonable level is to set <code class="notranslate">inter_op_parallelism_threads</code> to <code class="notranslate">1</code>. This doesn't resolve the underlying problem (that the threads are never cleaned up), but it <em>does</em> mean that the <code class="notranslate">Steal</code> loop is avoided, so the thread just blocks forever.</p> | <h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: Yes</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Google Colab</li>
<li><strong>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device</strong>: N/A</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: N/A</li>
<li><strong>TensorFlow version (use command below)</strong>: 1.10.0</li>
<li><strong>Python version</strong>: 3.6.3</li>
<li><strong>Bazel version (if compiling from source)</strong>: N/A</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>: N/A</li>
<li><strong>CUDA/cuDNN version</strong>: N/A</li>
<li><strong>GPU model and memory</strong>: N/A</li>
<li><strong>Exact command to reproduce</strong>: N/A</li>
</ul>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">When <code class="notranslate">train.batch_sequences_with_states</code> extracts batches from a sequence of samples, what it actually does is duplicating the same segment for <code class="notranslate">batch_size</code> times.</p>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">The code is revised based on <a href="https://github.com/tensorflow/tensorflow/blob/r1.10/tensorflow/contrib/training/python/training/batch_sequences_with_states_test.py">batch_sequences_with_states_test.py</a></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from pprint import pprint
import numpy as np
import tensorflow as tf
from tensorflow.contrib.training.python.training import sequence_queueing_state_saver as sqss
batch_size = 3
num_unroll = 2
lstm_size = 4
value_length = 8
input_key = tf.as_string(tf.cast(10000 * tf.random_uniform(()), tf.int32))
input_sequences = {'input': np.random.rand(value_length, 3)}
input_context = {'context_key': [1]}
initial_states = {"lstm_state": np.random.rand(10, lstm_size)}
with tf.Session() as sess:
batch = sqss.batch_sequences_with_states(
input_key=input_key,
input_sequences=input_sequences,
input_context=input_context,
input_length=value_length,
initial_states=initial_states,
num_unroll=num_unroll,
batch_size=batch_size)
state = batch.state('lstm_state')
update_state = batch.save_state('lstm_state', state + 1)
coord = tf.train.Coordinator()
tf.train.start_queue_runners(sess=sess, coord=coord)
input_batch_val = sess.run([
batch.key, batch.next_key, batch.sequences['input'],
batch.context['context_key'], state, batch.length, update_state][2])
pprint(input_batch_val)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">pprint</span> <span class="pl-k">import</span> <span class="pl-s1">pprint</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span>
<span class="pl-k">from</span> <span class="pl-s1">tensorflow</span>.<span class="pl-s1">contrib</span>.<span class="pl-s1">training</span>.<span class="pl-s1">python</span>.<span class="pl-s1">training</span> <span class="pl-k">import</span> <span class="pl-s1">sequence_queueing_state_saver</span> <span class="pl-k">as</span> <span class="pl-s1">sqss</span>
<span class="pl-s1">batch_size</span> <span class="pl-c1">=</span> <span class="pl-c1">3</span>
<span class="pl-s1">num_unroll</span> <span class="pl-c1">=</span> <span class="pl-c1">2</span>
<span class="pl-s1">lstm_size</span> <span class="pl-c1">=</span> <span class="pl-c1">4</span>
<span class="pl-s1">value_length</span> <span class="pl-c1">=</span> <span class="pl-c1">8</span>
<span class="pl-s1">input_key</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">as_string</span>(<span class="pl-s1">tf</span>.<span class="pl-en">cast</span>(<span class="pl-c1">10000</span> <span class="pl-c1">*</span> <span class="pl-s1">tf</span>.<span class="pl-en">random_uniform</span>(()), <span class="pl-s1">tf</span>.<span class="pl-s1">int32</span>))
<span class="pl-s1">input_sequences</span> <span class="pl-c1">=</span> {<span class="pl-s">'input'</span>: <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">rand</span>(<span class="pl-s1">value_length</span>, <span class="pl-c1">3</span>)}
<span class="pl-s1">input_context</span> <span class="pl-c1">=</span> {<span class="pl-s">'context_key'</span>: [<span class="pl-c1">1</span>]}
<span class="pl-s1">initial_states</span> <span class="pl-c1">=</span> {<span class="pl-s">"lstm_state"</span>: <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">rand</span>(<span class="pl-c1">10</span>, <span class="pl-s1">lstm_size</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-s1">batch</span> <span class="pl-c1">=</span> <span class="pl-s1">sqss</span>.<span class="pl-en">batch_sequences_with_states</span>(
<span class="pl-s1">input_key</span><span class="pl-c1">=</span><span class="pl-s1">input_key</span>,
<span class="pl-s1">input_sequences</span><span class="pl-c1">=</span><span class="pl-s1">input_sequences</span>,
<span class="pl-s1">input_context</span><span class="pl-c1">=</span><span class="pl-s1">input_context</span>,
<span class="pl-s1">input_length</span><span class="pl-c1">=</span><span class="pl-s1">value_length</span>,
<span class="pl-s1">initial_states</span><span class="pl-c1">=</span><span class="pl-s1">initial_states</span>,
<span class="pl-s1">num_unroll</span><span class="pl-c1">=</span><span class="pl-s1">num_unroll</span>,
<span class="pl-s1">batch_size</span><span class="pl-c1">=</span><span class="pl-s1">batch_size</span>)
<span class="pl-s1">state</span> <span class="pl-c1">=</span> <span class="pl-s1">batch</span>.<span class="pl-en">state</span>(<span class="pl-s">'lstm_state'</span>)
<span class="pl-s1">update_state</span> <span class="pl-c1">=</span> <span class="pl-s1">batch</span>.<span class="pl-en">save_state</span>(<span class="pl-s">'lstm_state'</span>, <span class="pl-s1">state</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span>)
<span class="pl-s1">coord</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">train</span>.<span class="pl-v">Coordinator</span>()
<span class="pl-s1">tf</span>.<span class="pl-s1">train</span>.<span class="pl-en">start_queue_runners</span>(<span class="pl-s1">sess</span><span class="pl-c1">=</span><span class="pl-s1">sess</span>, <span class="pl-s1">coord</span><span class="pl-c1">=</span><span class="pl-s1">coord</span>)
<span class="pl-s1">input_batch_val</span> <span class="pl-c1">=</span> <span class="pl-s1">sess</span>.<span class="pl-en">run</span>([
<span class="pl-s1">batch</span>.<span class="pl-s1">key</span>, <span class="pl-s1">batch</span>.<span class="pl-s1">next_key</span>, <span class="pl-s1">batch</span>.<span class="pl-s1">sequences</span>[<span class="pl-s">'input'</span>],
<span class="pl-s1">batch</span>.<span class="pl-s1">context</span>[<span class="pl-s">'context_key'</span>], <span class="pl-s1">state</span>, <span class="pl-s1">batch</span>.<span class="pl-s1">length</span>, <span class="pl-s1">update_state</span>][<span class="pl-c1">2</span>])
<span class="pl-en">pprint</span>(<span class="pl-s1">input_batch_val</span>)</pre></div>
<p dir="auto">Output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="array([[[0.33537843, 0.76504494, 0.368679 ],
[0.47943187, 0.58871135, 0.06263617]],
[[0.33537843, 0.76504494, 0.368679 ],
[0.47943187, 0.58871135, 0.06263617]],
[[0.33537843, 0.76504494, 0.368679 ],
[0.47943187, 0.58871135, 0.06263617]]])"><pre class="notranslate"><code class="notranslate">array([[[0.33537843, 0.76504494, 0.368679 ],
[0.47943187, 0.58871135, 0.06263617]],
[[0.33537843, 0.76504494, 0.368679 ],
[0.47943187, 0.58871135, 0.06263617]],
[[0.33537843, 0.76504494, 0.368679 ],
[0.47943187, 0.58871135, 0.06263617]]])
</code></pre></div>
<p dir="auto">What further justifies my suspect is the expected values of sequences in unit tests <a href="https://github.com/tensorflow/tensorflow/blob/r1.10/tensorflow/contrib/training/python/training/batch_sequences_with_states_test.py">batch_sequences_with_states_test.py</a>, which is duplicating the first segment of <code class="notranslate">"seq1"</code>.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def _testBasicPadding(self, pad, key=None, make_keys_unique=False):
num_unroll = 2 # Divisor of value_length - so no padding necessary.
expected_seq1_batch1 = np.tile(
self.sequences["seq1"][np.newaxis, 0:num_unroll, :],
(self.batch_size, 1, 1))"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">_testBasicPadding</span>(<span class="pl-s1">self</span>, <span class="pl-s1">pad</span>, <span class="pl-s1">key</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">make_keys_unique</span><span class="pl-c1">=</span><span class="pl-c1">False</span>):
<span class="pl-s1">num_unroll</span> <span class="pl-c1">=</span> <span class="pl-c1">2</span> <span class="pl-c"># Divisor of value_length - so no padding necessary.</span>
<span class="pl-s1">expected_seq1_batch1</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">tile</span>(
<span class="pl-s1">self</span>.<span class="pl-s1">sequences</span>[<span class="pl-s">"seq1"</span>][<span class="pl-s1">np</span>.<span class="pl-s1">newaxis</span>, <span class="pl-c1">0</span>:<span class="pl-s1">num_unroll</span>, :],
(<span class="pl-s1">self</span>.<span class="pl-s1">batch_size</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>))</pre></div> | 0 |
<p dir="auto">Dear Fabien,<br>
Thank you for uploading your slides on the symphony hack day in Berlin.<br>
I played around with the expression language and the got the error, that in the router the request is missing.</p>
<p dir="auto">I created a fork of symfony standard to reproduce the problem:<br>
<a href="https://github.com/sebastianblum/symfony-standard/tree/routing-condition">https://github.com/sebastianblum/symfony-standard/tree/routing-condition</a></p>
<p dir="auto">If I add the condition in the routing.yml</p>
<p dir="auto">condition: "request.getMethod() in ['GET', 'POST'] and request.headers.get('User-Agent') matches '/firefox/i'"<br>
see <a href="https://github.com/sebastianblum/symfony-standard/blob/routing-condition/src/Acme/DemoBundle/Resources/config/routing.yml">https://github.com/sebastianblum/symfony-standard/blob/routing-condition/src/Acme/DemoBundle/Resources/config/routing.yml</a></p>
<p dir="auto">then I got the following error:</p>
<p dir="auto">FatalErrorException: Error: Call to a member function getMethod() on a non-object<br>
See complete stack trace <a href="https://gist.github.com/sebastianblum/7417064">https://gist.github.com/sebastianblum/7417064</a></p> | <table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>yes</td>
</tr>
<tr>
<td>Feature request?</td>
<td>no</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>all</td>
</tr>
</tbody>
</table>
<p dir="auto">When upgrading an app to Symfony 3.3 beta, an exception is triggered when using the <code class="notranslate">framework.trusted_proxies</code> option. I guess this BC break is OK because security, etc. But as you can see, the Console component has some issues when rendering nested exceptions:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/73419/25651937/f35c9a8a-2fe5-11e7-9e7e-42d833ded0a5.png"><img src="https://cloud.githubusercontent.com/assets/73419/25651937/f35c9a8a-2fe5-11e7-9e7e-42d833ded0a5.png" alt="nested_exceptions" style="max-width: 100%;"></a></p> | 0 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.356
PowerToys version: 0.11.0"><pre class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.356
PowerToys version: 0.11.0
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Install using MSI and try to launch PowerToys using any of the available shortcuts.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Expecting PowerToys to open / load.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">My monitors flicker briefly and Task Manager shows "PowerToys Runner" as running, consuming around 6.5MB of RAM. No window opens however and there is no icon in the Notification Area. All PowerToys shortcut icons are also blank, not the one expected.</p>
<p dir="auto">Using Windows 10 with 4 monitors - 3 are running from a GTX 970 and one is running from on-board Intel GPU. Same problem after multiple re-installs / reboots.</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.18362.32
PowerToys version: 0.11.0
PowerToy module for which you are reporting the bug (if applicable): "><pre class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.32
PowerToys version: 0.11.0
PowerToy module for which you are reporting the bug (if applicable):
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Reboot.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">An icon should appear in system tray, on which I can double click to open the main window. Or I should be able to open the main window by clicking PowerToys in the start menu.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">No icon appears in system tray. (Though it was there right after install&run before I reboot my machine.) Clicking on PowerToys in start menu brings up a dialog asking for privielge escalation, but nothing happens after then, no matter I click "yes" or "no".</p>
<p dir="auto">The PowerToys seems to be running. I hold WIN and I see the shortcut hints. I hold down SHIFT and drag windows and I see FancyZone react. However, my FancyZone configuration disappears. Now I only have one zone that takes up the whole screen.</p>
<h1 dir="auto">Screenshots</h1> | 1 |
<p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">1.8.0</p>
<p dir="auto"><strong>Code</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface A {
name: string;
age: number;
}
interface AExtension {
name?: string;
age?: number;
}
interface B {
key: string;
value: boolean;
}
interface BExtension {
key?: string;
value?: boolean;
}
function extend(base: A, extension: AExtension);
function extend(base: B, extension: BExtension);
function extend<T>(base: T, extension: any) {
}
const b : B = { key: '...', value: true };
extend(b, { key: '' });
"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">A</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">age</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">interface</span> <span class="pl-smi">AExtension</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">age</span>?: <span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">interface</span> <span class="pl-smi">B</span> <span class="pl-kos">{</span>
<span class="pl-c1">key</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-c1">value</span>: <span class="pl-smi">boolean</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">interface</span> <span class="pl-smi">BExtension</span> <span class="pl-kos">{</span>
<span class="pl-c1">key</span>?: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-c1">value</span>?: <span class="pl-smi">boolean</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-s1">extend</span><span class="pl-kos">(</span><span class="pl-s1">base</span>: <span class="pl-smi">A</span><span class="pl-kos">,</span> <span class="pl-s1">extension</span>: <span class="pl-smi">AExtension</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-s1">extend</span><span class="pl-kos">(</span><span class="pl-s1">base</span>: <span class="pl-smi">B</span><span class="pl-kos">,</span> <span class="pl-s1">extension</span>: <span class="pl-smi">BExtension</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-en">extend</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-s1">base</span>: <span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-s1">extension</span>: <span class="pl-smi">any</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">b</span> : <span class="pl-smi">B</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">key</span>: <span class="pl-s">'...'</span><span class="pl-kos">,</span> <span class="pl-c1">value</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-en">extend</span><span class="pl-kos">(</span><span class="pl-s1">b</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">key</span>: <span class="pl-s">''</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Expected behavior:</strong><br>
Code completion for second parameter of <code class="notranslate">extend</code> shows properties of <code class="notranslate">BExtension</code>.</p>
<p dir="auto"><strong>Actual behavior:</strong><br>
Code completion for second parameter of <code class="notranslate">extend</code> shows properties of <code class="notranslate">AExtension</code>.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2046557/14424547/fbd37a88-ffe1-11e5-9c66-8ebc8be160e8.png"><img src="https://cloud.githubusercontent.com/assets/2046557/14424547/fbd37a88-ffe1-11e5-9c66-8ebc8be160e8.png" alt="image" style="max-width: 100%;"></a></p> | <div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="smile:before {
content: "\200B";
}"><pre class="notranslate"><span class="pl-ent">smile</span><span class="pl-kos">:</span><span class="pl-c1">before</span> {
<span class="pl-c1">content</span><span class="pl-kos">:</span> <span class="pl-s">"\200B"</span>;
}</pre></div>
<p dir="auto">Is compressed to</p>
<div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="smile:before {
content: "200B";
}"><pre class="notranslate"><span class="pl-ent">smile</span><span class="pl-kos">:</span><span class="pl-c1">before</span> {
<span class="pl-c1">content</span><span class="pl-kos">:</span> <span class="pl-s">"200B"</span>;
}</pre></div>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="126945477" data-permission-text="Title is private" data-url="https://github.com/mgechev/angular-seed/issues/390" data-hovercard-type="issue" data-hovercard-url="/mgechev/angular-seed/issues/390/hovercard" href="https://github.com/mgechev/angular-seed/issues/390">mgechev/angular-seed#390</a></p> | 0 |
<p dir="auto">I was beating my head against the wall trying to figure out what I was doing wrong because this clearly was not unrolling my loop.</p>
<p dir="auto"><code class="notranslate">*for="field of fields"</code> of course needs to be <code class="notranslate">*for="#field of fields"</code> >_<</p>
<p dir="auto">Silently failing here seems bad. The for directive should at least check at runtime that it is receiving a valid variable declaration and throw if not. I'll leave it to you all to figure out how to send back useful line numbers and such ;)</p> | <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 => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => 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 => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
When you create custom <code class="notranslate">Http</code> it is working in browser, but when you use it in NodeJs environment while rendering on server it never performs <code class="notranslate">HttpRequest</code>.</p>
<p dir="auto"><strong>Expected behavior</strong><br>
Custom <code class="notranslate">Http</code> should work on browser or server side.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
<a href="https://github.com/kukjevov/ng-universal-demo">https://github.com/kukjevov/ng-universal-demo</a> You can see it in master branch. There is a custom <code class="notranslate">Http</code> which works on client, but not on server.</p>
<p dir="auto">There are console logs, but log in <code class="notranslate">subscribe</code> method which prints result is only called on browser side if used with custom <code class="notranslate">Http</code>. If you use original <code class="notranslate">Http</code> log is also called on server and data are rendered to html.</p>
<p dir="auto">From logs you can see that custom <code class="notranslate">GET</code> method is called but that is all. You cant even see<br>
<code class="notranslate">GET: /data: 3.005ms</code> on server side if custom <code class="notranslate">Http</code> is used. So that means url was never called.<br>
--></p>
<p dir="auto"><strong>Please tell us about your environment:</strong><br>
Win 10, VSCode, Express Server</p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Angular version:</strong> 4.0.0-rc.5</p>
</li>
<li>
<p dir="auto"><strong>Browser:</strong> [all]</p>
</li>
<li>
<p dir="auto"><strong>Language:</strong> [TypeScript 2.2.1]</p>
</li>
<li>
<p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = 7.7.1</p>
</li>
</ul> | 0 |
<p dir="auto">I've created a navbar fixed to top and some content. When the modal is shown, a white 15px margin appears on the right side that pushes the content left.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/346a2b5848966cb9fdf3ca3235ab86fd5144f92191c15c0581be5169d6b58de6/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3834323431322f313037303931312f34626330366335382d313436382d313165332d383433332d6430666464316166356134332e706e67"><img src="https://camo.githubusercontent.com/346a2b5848966cb9fdf3ca3235ab86fd5144f92191c15c0581be5169d6b58de6/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3834323431322f313037303931312f34626330366335382d313436382d313165332d383433332d6430666464316166356134332e706e67" alt="modal" data-canonical-src="https://f.cloud.github.com/assets/842412/1070911/4bc06c58-1468-11e3-8433-d0fdd1af5a43.png" style="max-width: 100%;"></a></p>
<p dir="auto">It appears to be this rule:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="body.modal-open,
.modal-open .navbar-fixed-top,
.modal-open .navbar-fixed-bottom {
margin-right: 15px;
}"><pre class="notranslate"><code class="notranslate">body.modal-open,
.modal-open .navbar-fixed-top,
.modal-open .navbar-fixed-bottom {
margin-right: 15px;
}
</code></pre></div>
<p dir="auto">I tested it on OSX in Chrome, Firefox and Opera and it shows similar behavior in all.</p> | <p dir="auto">When launching the modal component (<a href="http://getbootstrap.com/javascript/#modals" rel="nofollow">http://getbootstrap.com/javascript/#modals</a>) the entire content will slightly move to the left on mac OS (haven't tried it on windows yet). With the active modal the scrollbar seem to disappear, while the content width still changes.</p>
<p dir="auto">You can observer the problem on the bootstrap page</p> | 1 |
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">ec2_group</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.4.2.0
config file = /home/jwitkowski/throtle-ansible/ansible.cfg
configured module search path = [u'/home/jwitkowski/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/jwitkowski/throtle-ansible-venv/lib/python2.7/site-packages/ansible
executable location = /home/jwitkowski/throtle-ansible-venv/bin/ansible
python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]"><pre class="notranslate"><code class="notranslate">ansible 2.4.2.0
config file = /home/jwitkowski/throtle-ansible/ansible.cfg
configured module search path = [u'/home/jwitkowski/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/jwitkowski/throtle-ansible-venv/lib/python2.7/site-packages/ansible
executable location = /home/jwitkowski/throtle-ansible-venv/bin/ansible
python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(throtle-ansible-venv) [jwitkowski@dmpprod-ss1 throtle-ansible]$ ansible-config dump --only-changed
ANSIBLE_PIPELINING(/home/jwitkowski/throtle-ansible/ansible.cfg) = True
ANSIBLE_SSH_ARGS(/home/jwitkowski/throtle-ansible/ansible.cfg) = -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ForwardAgent=yes
DEFAULT_CALLBACK_PLUGIN_PATH(/home/jwitkowski/throtle-ansible/ansible.cfg) = [u'/home/jwitkowski/throtle-ansible/library/callback']
DEFAULT_FILTER_PLUGIN_PATH(/home/jwitkowski/throtle-ansible/ansible.cfg) = [u'/usr/share/ansible_plugins/filter_plugins', u'/home/jwitkowski/throtle-ansible/library/plugins']
DEFAULT_FORKS(/home/jwitkowski/throtle-ansible/ansible.cfg) = 15
DEFAULT_GATHERING(/home/jwitkowski/throtle-ansible/ansible.cfg) = smart
DEFAULT_GATHER_SUBSET(/home/jwitkowski/throtle-ansible/ansible.cfg) = !hardware,!ohai,!facter
DEFAULT_HOST_LIST(/home/jwitkowski/throtle-ansible/ansible.cfg) = [u'/home/jwitkowski/throtle-ansible/inventory']
DEFAULT_MANAGED_STR(/home/jwitkowski/throtle-ansible/ansible.cfg) = Created by Ansible
DEFAULT_PRIVATE_KEY_FILE(/home/jwitkowski/throtle-ansible/ansible.cfg) = /home/jwitkowski/.ssh/throtle-ansible.key
DEFAULT_REMOTE_TMP(/home/jwitkowski/throtle-ansible/ansible.cfg) = /tmp/ansible-$USER/tmp
DEFAULT_ROLES_PATH(/home/jwitkowski/throtle-ansible/ansible.cfg) = [u'/home/jwitkowski/throtle-ansible/roles']
DEFAULT_SCP_IF_SSH(/home/jwitkowski/throtle-ansible/ansible.cfg) = True
DEFAULT_VAULT_PASSWORD_FILE(/home/jwitkowski/throtle-ansible/ansible.cfg) = /home/jwitkowski/throtle-ansible/.vault
DISPLAY_ARGS_TO_STDOUT(/home/jwitkowski/throtle-ansible/ansible.cfg) = True
HOST_KEY_CHECKING(/home/jwitkowski/throtle-ansible/ansible.cfg) = False
RETRY_FILES_SAVE_PATH(/home/jwitkowski/throtle-ansible/ansible.cfg) = /home/jwitkowski/.ansible/retry-files"><pre class="notranslate"><code class="notranslate">(throtle-ansible-venv) [jwitkowski@dmpprod-ss1 throtle-ansible]$ ansible-config dump --only-changed
ANSIBLE_PIPELINING(/home/jwitkowski/throtle-ansible/ansible.cfg) = True
ANSIBLE_SSH_ARGS(/home/jwitkowski/throtle-ansible/ansible.cfg) = -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ForwardAgent=yes
DEFAULT_CALLBACK_PLUGIN_PATH(/home/jwitkowski/throtle-ansible/ansible.cfg) = [u'/home/jwitkowski/throtle-ansible/library/callback']
DEFAULT_FILTER_PLUGIN_PATH(/home/jwitkowski/throtle-ansible/ansible.cfg) = [u'/usr/share/ansible_plugins/filter_plugins', u'/home/jwitkowski/throtle-ansible/library/plugins']
DEFAULT_FORKS(/home/jwitkowski/throtle-ansible/ansible.cfg) = 15
DEFAULT_GATHERING(/home/jwitkowski/throtle-ansible/ansible.cfg) = smart
DEFAULT_GATHER_SUBSET(/home/jwitkowski/throtle-ansible/ansible.cfg) = !hardware,!ohai,!facter
DEFAULT_HOST_LIST(/home/jwitkowski/throtle-ansible/ansible.cfg) = [u'/home/jwitkowski/throtle-ansible/inventory']
DEFAULT_MANAGED_STR(/home/jwitkowski/throtle-ansible/ansible.cfg) = Created by Ansible
DEFAULT_PRIVATE_KEY_FILE(/home/jwitkowski/throtle-ansible/ansible.cfg) = /home/jwitkowski/.ssh/throtle-ansible.key
DEFAULT_REMOTE_TMP(/home/jwitkowski/throtle-ansible/ansible.cfg) = /tmp/ansible-$USER/tmp
DEFAULT_ROLES_PATH(/home/jwitkowski/throtle-ansible/ansible.cfg) = [u'/home/jwitkowski/throtle-ansible/roles']
DEFAULT_SCP_IF_SSH(/home/jwitkowski/throtle-ansible/ansible.cfg) = True
DEFAULT_VAULT_PASSWORD_FILE(/home/jwitkowski/throtle-ansible/ansible.cfg) = /home/jwitkowski/throtle-ansible/.vault
DISPLAY_ARGS_TO_STDOUT(/home/jwitkowski/throtle-ansible/ansible.cfg) = True
HOST_KEY_CHECKING(/home/jwitkowski/throtle-ansible/ansible.cfg) = False
RETRY_FILES_SAVE_PATH(/home/jwitkowski/throtle-ansible/ansible.cfg) = /home/jwitkowski/.ansible/retry-files
</code></pre></div>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">I have a large YAML file that defines lists of dictionaries that contain my AWS security groups. I also have a playbook which loops over these lists and creates security groups from them. Sometimes when running the playbook I will receive the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="An exception occurred during task execution. To see the full traceback,
use -vvv. The error was:botocore.exceptions.ClientError:An error occurred (InvalidGroup.Duplicate) when calling the CreateSecurityGroup operation:The security group 'prod-sftp-instance' already exists for VPC 'vpc-39c8235f'
failed:[
localhost
](item=nsq) =>{
"changed":false,
"item":"nsq",
"module_stderr":"Traceback (most recent call last):
File \"/tmp/ansible_2VDh2N/ansible_module_ec2_group.py\", line 899, in <module>
main()
File \"/tmp/ansible_2VDh2N/ansible_module_ec2_group.py\", line 742, in main
group, groups, vpc_id)
File \"/tmp/ansible_2VDh2N/ansible_module_ec2_group.py\", line 406, in get_target_from_rule
auto_group = client.create_security_group(**params)
File \"/home/jwitkowski/throtle-ansible-venv/lib/python2.7/site-packages/botocore/client.py\", line 317, in _api_call
return self._make_api_call(operation_name, kwargs)\n File \"/home/jwitkowski/throtle-ansible-venv/lib/python2.7/site-packages/botocore/client.py\", line 615, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidGroup.Duplicate) when calling the CreateSecurityGroup operation: The security group 'prod-sftp-instance' already exists for VPC 'vpc-39c8235f'",
"module_stdout":"",
"msg":"MODULE FAILURE",
"rc":1
}"><pre class="notranslate"><code class="notranslate">An exception occurred during task execution. To see the full traceback,
use -vvv. The error was:botocore.exceptions.ClientError:An error occurred (InvalidGroup.Duplicate) when calling the CreateSecurityGroup operation:The security group 'prod-sftp-instance' already exists for VPC 'vpc-39c8235f'
failed:[
localhost
](item=nsq) =>{
"changed":false,
"item":"nsq",
"module_stderr":"Traceback (most recent call last):
File \"/tmp/ansible_2VDh2N/ansible_module_ec2_group.py\", line 899, in <module>
main()
File \"/tmp/ansible_2VDh2N/ansible_module_ec2_group.py\", line 742, in main
group, groups, vpc_id)
File \"/tmp/ansible_2VDh2N/ansible_module_ec2_group.py\", line 406, in get_target_from_rule
auto_group = client.create_security_group(**params)
File \"/home/jwitkowski/throtle-ansible-venv/lib/python2.7/site-packages/botocore/client.py\", line 317, in _api_call
return self._make_api_call(operation_name, kwargs)\n File \"/home/jwitkowski/throtle-ansible-venv/lib/python2.7/site-packages/botocore/client.py\", line 615, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidGroup.Duplicate) when calling the CreateSecurityGroup operation: The security group 'prod-sftp-instance' already exists for VPC 'vpc-39c8235f'",
"module_stdout":"",
"msg":"MODULE FAILURE",
"rc":1
}
</code></pre></div>
<p dir="auto">This typically happens when a ec2_group module is attempting to create an "empty" group from the <code class="notranslate">group_name:</code> parameter when fed a list of groups. The above is an example of just that where the group being created is "prod-nsq-instance" but it has a <code class="notranslate">group_name:</code> dependency on "prod-sftp-instance", which already exists. If I run the playbook a second time with no modifications it typically passes no problem.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">vars/security_groups.yml:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sg_nsq_rules:
- proto: tcp
ports:
- 4150
- 4160
- 4170-4171
group_name:
- "{{ deploy_env }}-nsq-instance"
- "{{ deploy_env }}-sftp-instance"
group_desc: "{{ ansible_managed }}"
- proto: tcp
ports:
- 9117-9118 #NSQ and CAdvisor exporters
group_name: "{{ deploy_env }}-prometheus-instance"
group_desc: "{{ ansible_managed }}"
sg_sftp_rules:
- proto: tcp
ports: 22 #Global SFTP Allow
cidr_ip: 0.0.0.0/0
- proto: tcp
ports:
- 8301 #Consul Port
- 8400 #Consul Port
- 8500 #Consul Port
- 8600 #Consul Port
group_name:
- "{{ deploy_env }}-mongors-instance"
- "{{ deploy_env }}-mongoconfig-instance"
- "{{ deploy_env }}-uiapp-instance"
group_desc: "{{ ansible_managed }}"
sg_prometheus_rules:
- proto: tcp
ports:
- 25 #SMTP
- 80 #Webserver for nagios
- 443 #Webserver for nagios
- 6783 #Alert manager data port
- 8081 #Grafana HTTP Server
- 9090 #Query webserver for prometheus
- 9093 #Alert Manager http port
cidr_ip: "{{vpc_cidr_block}}"
sg_ec2_instances:
sg_nsq_ec2: "{{ sg_common }} + {{ sg_nsq_rules }}"
sg_sftp_ec2: "{{ sg_common }} + {{ sg_sftp_rules }}""><pre class="notranslate"><code class="notranslate">sg_nsq_rules:
- proto: tcp
ports:
- 4150
- 4160
- 4170-4171
group_name:
- "{{ deploy_env }}-nsq-instance"
- "{{ deploy_env }}-sftp-instance"
group_desc: "{{ ansible_managed }}"
- proto: tcp
ports:
- 9117-9118 #NSQ and CAdvisor exporters
group_name: "{{ deploy_env }}-prometheus-instance"
group_desc: "{{ ansible_managed }}"
sg_sftp_rules:
- proto: tcp
ports: 22 #Global SFTP Allow
cidr_ip: 0.0.0.0/0
- proto: tcp
ports:
- 8301 #Consul Port
- 8400 #Consul Port
- 8500 #Consul Port
- 8600 #Consul Port
group_name:
- "{{ deploy_env }}-mongors-instance"
- "{{ deploy_env }}-mongoconfig-instance"
- "{{ deploy_env }}-uiapp-instance"
group_desc: "{{ ansible_managed }}"
sg_prometheus_rules:
- proto: tcp
ports:
- 25 #SMTP
- 80 #Webserver for nagios
- 443 #Webserver for nagios
- 6783 #Alert manager data port
- 8081 #Grafana HTTP Server
- 9090 #Query webserver for prometheus
- 9093 #Alert Manager http port
cidr_ip: "{{vpc_cidr_block}}"
sg_ec2_instances:
sg_nsq_ec2: "{{ sg_common }} + {{ sg_nsq_rules }}"
sg_sftp_ec2: "{{ sg_common }} + {{ sg_sftp_rules }}"
</code></pre></div>
<p dir="auto">vars/deploy_env/test.yml</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sg_ec2s:
- "sftp"
- "nsq""><pre class="notranslate"><code class="notranslate">sg_ec2s:
- "sftp"
- "nsq"
</code></pre></div>
<p dir="auto">build_sec_group.yml playbook:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- hosts: localhost
gather_facts: False
vars_files:
- "vars/security_groups.yml"
- "vars/deploy_envs/test.yml"
tasks:
- name: Create EC2 Security groups
ec2_group:
name: "{{ display_env|default(deploy_env) }}-{{ item }}-instance"
description: "{{ ansible_managed }}"
vpc_id: "{{ vpc_id }}"
region: "{{ region }}"
rules: "{{ sg_ec2_instances['sg_' + item + '_ec2'] }}"
tags:
Name: "{{ display_env|default(deploy_env) }}-{{ item }}-instance"
Environment: "{{ display_env|default(deploy_env) }}"
with_items: "{{ sg_ec2s }}"
when: group_tag is not defined or (group_tag is defined and group_tag == item)
tags:
- "ec2_instance""><pre class="notranslate"><code class="notranslate">- hosts: localhost
gather_facts: False
vars_files:
- "vars/security_groups.yml"
- "vars/deploy_envs/test.yml"
tasks:
- name: Create EC2 Security groups
ec2_group:
name: "{{ display_env|default(deploy_env) }}-{{ item }}-instance"
description: "{{ ansible_managed }}"
vpc_id: "{{ vpc_id }}"
region: "{{ region }}"
rules: "{{ sg_ec2_instances['sg_' + item + '_ec2'] }}"
tags:
Name: "{{ display_env|default(deploy_env) }}-{{ item }}-instance"
Environment: "{{ display_env|default(deploy_env) }}"
with_items: "{{ sg_ec2s }}"
when: group_tag is not defined or (group_tag is defined and group_tag == item)
tags:
- "ec2_instance"
</code></pre></div>
<p dir="auto">Run the above setup a few times and you'll eventually hit the error.</p>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">The playbook should run each time idempotently and never cause this error.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">The error above appears intermittently and works sometimes without changing any code.</p> | <p dir="auto">Trying to register multiple variables in YAML array syntax:</p>
<p dir="auto">kk:playbooks kris$ cat p.yml<br>
# vim:ft=ansible:<br>
- hosts: server<br>
user: root</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" tasks:
- name: test something
command: echo test
register:
- a
- b
- debug: var=a
- debug: var=b"><pre class="notranslate"><code class="notranslate"> tasks:
- name: test something
command: echo test
register:
- a
- b
- debug: var=a
- debug: var=b
</code></pre></div>
<p dir="auto">This explodes:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="kk:playbooks kris$ ansible-playbook p.yml
PLAY [server] *****************************************************************
TASK: [test something] ********************************************************
changed: [server]
Traceback (most recent call last):
File "/usr/local/Cellar/ansible/1.9.3/libexec/bin/ansible-playbook", line 324, in <module>
sys.exit(main(sys.argv[1:]))
File "/usr/local/Cellar/ansible/1.9.3/libexec/bin/ansible-playbook", line 264, in main
pb.run()
File "/usr/local/Cellar/ansible/1.9.3/libexec/lib/python2.7/site-packages/ansible/playbook/__init__.py", line 348, in run
if not self._run_play(play):
File "/usr/local/Cellar/ansible/1.9.3/libexec/lib/python2.7/site-packages/ansible/playbook/__init__.py", line 789, in _run_play
if not self._run_task(play, task, False):
File "/usr/local/Cellar/ansible/1.9.3/libexec/lib/python2.7/site-packages/ansible/playbook/__init__.py", line 540, in _run_task
_register_play_vars(host, result)
File "/usr/local/Cellar/ansible/1.9.3/libexec/lib/python2.7/site-packages/ansible/playbook/__init__.py", line 514, in _register_play_vars
utils.update_hash(self.VARS_CACHE, host, {task.register: result})
TypeError: unhashable type: 'list'"><pre class="notranslate"><code class="notranslate">kk:playbooks kris$ ansible-playbook p.yml
PLAY [server] *****************************************************************
TASK: [test something] ********************************************************
changed: [server]
Traceback (most recent call last):
File "/usr/local/Cellar/ansible/1.9.3/libexec/bin/ansible-playbook", line 324, in <module>
sys.exit(main(sys.argv[1:]))
File "/usr/local/Cellar/ansible/1.9.3/libexec/bin/ansible-playbook", line 264, in main
pb.run()
File "/usr/local/Cellar/ansible/1.9.3/libexec/lib/python2.7/site-packages/ansible/playbook/__init__.py", line 348, in run
if not self._run_play(play):
File "/usr/local/Cellar/ansible/1.9.3/libexec/lib/python2.7/site-packages/ansible/playbook/__init__.py", line 789, in _run_play
if not self._run_task(play, task, False):
File "/usr/local/Cellar/ansible/1.9.3/libexec/lib/python2.7/site-packages/ansible/playbook/__init__.py", line 540, in _run_task
_register_play_vars(host, result)
File "/usr/local/Cellar/ansible/1.9.3/libexec/lib/python2.7/site-packages/ansible/playbook/__init__.py", line 514, in _register_play_vars
utils.update_hash(self.VARS_CACHE, host, {task.register: result})
TypeError: unhashable type: 'list'
</code></pre></div>
<p dir="auto">It is the type that makes it explode, that is</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="register: [ a ]"><pre class="notranslate"><code class="notranslate">register: [ a ]
</code></pre></div>
<p dir="auto">is already sufficient to make it blow.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="kk:playbooks kris$ cat q.yml
# vim:ft=ansible:
- hosts: server
user: root
tasks:
- name: test something
command: echo test
notify:
- one
- two
handlers:
- name: one
command: echo one
- name: two
command: echo two"><pre class="notranslate"><code class="notranslate">kk:playbooks kris$ cat q.yml
# vim:ft=ansible:
- hosts: server
user: root
tasks:
- name: test something
command: echo test
notify:
- one
- two
handlers:
- name: one
command: echo one
- name: two
command: echo two
</code></pre></div>
<p dir="auto">works just as expected, so I'd expect duplicating the parameter handling from handlers in register would fix the problem.</p>
<p dir="auto">Related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="106444994" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/12364" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/12364/hovercard" href="https://github.com/ansible/ansible/issues/12364">#12364</a></p> | 0 |
<p dir="auto">Hi guys,<br>
in the latest javascript file of bootstrap is an error in my opinion... (in all 3.0.x versions)<br>
The problem is in the Collapse.prototype.show function.<br>
Especially because of the 'collapsing' transition. Here you remove the 'collapse' class, because you are adding 'collapsing'. But after this step is complete, you are removing 'collapsing', but do not add the normal 'collapse' again, only in.</p>
<p dir="auto">Which results in a lot of problems, because most application are waiting for an 'collapse in' class (as the documentation stated), which will be never there..</p>
<p dir="auto">I made an fiddle to illustrate my point, if the content is shown it has only the class 'in':<br>
<a href="http://jsfiddle.net/u4D46/" rel="nofollow">http://jsfiddle.net/u4D46/</a></p>
<p dir="auto">Regards<br>
ICE</p> | <p dir="auto">Hi there,</p>
<p dir="auto">i'm new to github so i hope i make not so much mistakes.</p>
<p dir="auto">Here i have a demo of the problem:</p>
<p dir="auto"><a href="http://jsfiddle.net/W6hPs/6/" rel="nofollow">http://jsfiddle.net/W6hPs/6/</a></p>
<p dir="auto">i think the tab-plane has overflow:auto; and if the button group is dropped down the tab-plane don't get bigger. with overflow:visible; is it fixed. But i don't know the future issues for that change.</p> | 0 |
<h2 dir="auto">Bug</h2>
<p dir="auto">Start to get protobuf error recently on Windows.<br>
Haven't take a deep look yet but it sounds like an issue for compiling <code class="notranslate">torch.pb</code> with a different version of protobuf.</p>
<p dir="auto">I'm using a system installed protobuf.<br>
Does it use a different protobuf from somewhere else (e.g. pip package or git submodule)?</p>
<p dir="auto">Error log attached:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[1/81] cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_dll --intdir=caffe2\CMakeFiles\caffe2.dir --manifests -- C:\PROGRA~2\MICROS~4\2017\ENTERP~1\VC\Tools\MSVC\1416~1.270\bin\Hostx64\x64\link.exe @CMakeFiles\caffe2.rsp /out:bin\caffe2.dll /implib:lib\caffe2.lib /pdb:pdb\caffe2.pdb /dll /version:0.0 /DEBUG:FASTLINK /LTCG:incremental /INCREMENTAL:NO /NODEFAULTLIB:vcomp && cd ."
FAILED: bin/caffe2.dll lib/caffe2.lib
cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_dll --intdir=caffe2\CMakeFiles\caffe2.dir --manifests -- C:\PROGRA~2\MICROS~4\2017\ENTERP~1\VC\Tools\MSVC\1416~1.270\bin\Hostx64\x64\link.exe @CMakeFiles\caffe2.rsp /out:bin\caffe2.dll /implib:lib\caffe2.lib /pdb:pdb\caffe2.pdb /dll /version:0.0 /DEBUG:FASTLINK /LTCG:incremental /INCREMENTAL:NO /NODEFAULTLIB:vcomp && cd ."
LINK: command "C:\PROGRA~2\MICROS~4\2017\ENTERP~1\VC\Tools\MSVC\1416~1.270\bin\Hostx64\x64\link.exe @CMakeFiles\caffe2.rsp /out:bin\caffe2.dll /implib:lib\caffe2.lib /pdb:pdb\caffe2.pdb /dll /version:0.0 /DEBUG:FASTLINK /LTCG:incremental /INCREMENTAL:NO /NODEFAULTLIB:vcomp /MANIFEST /MANIFESTFILE:bin\caffe2.dll.manifest" failed (exit code 1120) with the following output:
Microsoft (R) Incremental Linker Version 14.16.27025.1
Copyright (C) Microsoft Corporation. All rights reserved.
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\CPUGeneral.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\CPUGenerator.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\CPUTypeDefault.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\Context.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\DLConvertor.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\ExpandUtils.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\LegacyTHDispatch.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\SparseTensorImpl.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\TensorGeometry.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\TensorUtils.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\UndefinedType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\Utils.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\cpu\FlushDenormal.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\detail\CPUGuardImpl.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\detail\CUDAHooksInterface.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\detail\ComplexHooksInterface.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\detail\HIPHooksInterface.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\ATenGeneral.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\Formatting.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\LegacyDeviceTypeInit.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\LegacyTypeDispatch.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\Range.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\Tensor.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\VariableHooksInterface.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\blob.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\context_base.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\interned_strings.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\ivalue.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\register_symbols.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\thread_pool.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\type.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Activation.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\AdaptiveAveragePooling.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\AffineGridGenerator.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\BatchLinearAlgebra.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\BinaryOps.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\ConstantPadNd.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Convolution.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\ConvolutionTBC.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Copy.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\DispatchStub.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Distance.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Distributions.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Dropout.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Embedding.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\EmbeddingBag.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\FractionalMaxPool2d.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\FractionalMaxPool3d.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\GridSampler.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Indexing.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Itertools.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\LegacyBridge.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\LegacyDefinitions.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\LegacyNNDefinitions.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Linear.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\LinearAlgebra.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Loss.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\LossCTC.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Memory.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Normalization.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Onehot.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\PackedSequence.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\PixelShuffle.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Pooling.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\QuantizedLinear.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\RNN.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\RangeFactories.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\ReduceOps.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\ReflectionPad.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\ReplicationPadding.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Resize.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\RoiPooling.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Scalar.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\SoftMax.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\SpectralOps.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\SummaryOps.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\TensorCompare.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\TensorConversions.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\TensorFactories.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\TensorIterator.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\TensorIteratorReduce.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\TensorProperties.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\TensorShape.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\TensorTransformations.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\TypeProperties.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\UnaryOps.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Unique.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\WeightNorm.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\sparse\SparseTensor.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\sparse\SparseTensorMath.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\mkl\LinearAlgebra.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\mkl\SpectralOps.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\mkldnn\Conv.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\CPUByteType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\CPUCharType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\CPUDoubleType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\CPUFloatType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\CPUHalfType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\CPUIntType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\CPULongType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\CPUShortType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\LegacyTHCPUByteDispatcher.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\LegacyTHCPUCharDispatcher.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\LegacyTHCPUDoubleDispatcher.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\LegacyTHCPUFloatDispatcher.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\LegacyTHCPUHalfDispatcher.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\LegacyTHCPUIntDispatcher.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\LegacyTHCPULongDispatcher.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\LegacyTHCPUShortDispatcher.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\LegacyTHDispatcher.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\RegisterCPU.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\SparseCPUByteType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\SparseCPUCharType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\SparseCPUDoubleType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\SparseCPUFloatType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\SparseCPUIntType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\SparseCPULongType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\SparseCPUShortType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\TypeDefault.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THGeneral.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THAllocator.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THSize.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THStorageFunctions.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THTensor.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THTensorRandom.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THTensorMath.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THTensorMoreMath.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THTensorEvenMoreMath.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THTensorConv.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THTensorLapack.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THBlas.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THLapack.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THLogAdd.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THRandom.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THFile.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THDiskFile.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THMemoryFile.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THVector.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\vector\AVX.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\vector\AVX2.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\THNN\init.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\UnaryOpsKernel.cpp.AVX2.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\TensorCompareKernel.cpp.AVX2.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\SoftMaxKernel.cpp.AVX2.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\ReduceOpsKernel.cpp.AVX2.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\IndexKernel.cpp.AVX2.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX2.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\DistanceOpsKernel.cpp.AVX2.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\CopyKernel.cpp.AVX2.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\BinaryOpsKernel.cpp.AVX2.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\Activation.cpp.AVX2.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\UnaryOpsKernel.cpp.AVX.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\TensorCompareKernel.cpp.AVX.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\SoftMaxKernel.cpp.AVX.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\ReduceOpsKernel.cpp.AVX.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\IndexKernel.cpp.AVX.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\DistanceOpsKernel.cpp.AVX.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\CopyKernel.cpp.AVX.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\BinaryOpsKernel.cpp.AVX.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\Activation.cpp.AVX.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\UnaryOpsKernel.cpp.DEFAULT.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\TensorCompareKernel.cpp.DEFAULT.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\SoftMaxKernel.cpp.DEFAULT.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\ReduceOpsKernel.cpp.DEFAULT.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\IndexKernel.cpp.DEFAULT.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\GridSamplerKernel.cpp.DEFAULT.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\DistanceOpsKernel.cpp.DEFAULT.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\CopyKernel.cpp.DEFAULT.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\BinaryOpsKernel.cpp.DEFAULT.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\Activation.cpp.DEFAULT.cpp.obj
caffe2\CMakeFiles\caffe2.dir\contrib\aten\aten_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\allocator.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\blob_serialization.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\blob_stats.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\common.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\context.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\context_base.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\db.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\event.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\graph.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\init.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\init_denormals.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\init_intrinsics_check.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\init_omp.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\int8_serialization.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\memonger.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\module.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\net.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\net_async_base.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\net_async_scheduling.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\net_async_task.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\net_async_task_future.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\net_async_task_graph.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\net_async_tracing.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\net_dag_utils.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\net_parallel.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\net_simple.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\net_simple_refcount.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\numa.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\operator.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\operator_c10wrapper.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\operator_schema.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\plan_executor.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\prof_dag_counters.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\qtensor.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\qtensor_serialization.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\stats.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\tensor.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\tensor_int8.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\test_utils.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\transform.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\types.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\workspace.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\proto_convert.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\proto_wrap.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\proto_utils.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\murmur_hash3.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\smart_tensor_printer.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\signal_handler.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\string_utils.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\threadpool\ThreadPool.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\cpuid.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\bench_utils.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\math_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\math_utils.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\thread_name.cc.obj
caffe2\CMakeFiles\caffe2.dir\predictor\predictor.cc.obj
caffe2\CMakeFiles\caffe2.dir\predictor\predictor_utils.cc.obj
caffe2\CMakeFiles\caffe2.dir\predictor\predictor_config.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\nomnigraph\Representations\NeuralNet.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\nomnigraph\tests\test_util.cc.obj
caffe2\CMakeFiles\caffe2.dir\__\third_party\miniz-2.0.8\miniz.c.obj
caffe2\CMakeFiles\caffe2.dir\serialize\inline_container.cc.obj
caffe2\CMakeFiles\caffe2.dir\serialize\istream_adapter.cc.obj
caffe2\CMakeFiles\caffe2.dir\serialize\file_adapter.cc.obj
caffe2\CMakeFiles\caffe2.dir\serialize\read_adapter_interface.cc.obj
caffe2\CMakeFiles\caffe2.dir\db\create_db_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\db\protodb.cc.obj
caffe2\CMakeFiles\caffe2.dir\distributed\file_store_handler.cc.obj
caffe2\CMakeFiles\caffe2.dir\distributed\file_store_handler_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\distributed\store_handler.cc.obj
caffe2\CMakeFiles\caffe2.dir\distributed\store_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\observers\time_observer.cc.obj
caffe2\CMakeFiles\caffe2.dir\observers\runcnt_observer.cc.obj
caffe2\CMakeFiles\caffe2.dir\onnx\backend.cc.obj
caffe2\CMakeFiles\caffe2.dir\onnx\backend_rep.cc.obj
caffe2\CMakeFiles\caffe2.dir\onnx\device.cc.obj
caffe2\CMakeFiles\caffe2.dir\onnx\helper.cc.obj
caffe2\CMakeFiles\caffe2.dir\onnx\onnx_exporter.cc.obj
caffe2\CMakeFiles\caffe2.dir\onnx\onnxifi_graph_info.cc.obj
caffe2\CMakeFiles\caffe2.dir\onnx\onnxifi_init.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\abs_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\accumulate_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\accuracy_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\acos_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\affine_channel_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\apmeter_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\arg_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\asin_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\assert_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\atan_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\atomic_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\batch_box_cox_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\batch_bucketize_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\batch_gather_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\batch_matmul_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\batch_moments_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\batch_sparse_to_dense_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\bbox_transform_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\bisect_percentile_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\boolean_mask_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\boolean_unmask_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\box_with_nms_limit_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\byte_weight_dequant_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\cast_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\cbrt_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\ceil_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\channel_backprop_stats_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\channel_shuffle_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\channel_stats_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\clip_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\collect_and_distribute_fpn_rpn_proposals_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\communicator_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\concat_split_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\conditional_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\conv_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\conv_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\conv_op_eigen.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\conv_op_shared.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\conv_transpose_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\conv_transpose_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\conv_transpose_op_mobile.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\copy_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\cos_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\cosh_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\cosine_embedding_criterion_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\counter_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\create_scope_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\crf_viterbi_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\cross_entropy_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\ctc_beam_search_decoder_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\ctc_greedy_decoder_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\cube_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\data_couple.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\dataset_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\deform_conv_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\deform_conv_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\dense_vector_to_id_list_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\distance_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\do_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\dropout_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_add_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_add_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_div_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_div_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_linear_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_logical_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_mul_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_mul_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_ops_schema.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_ops_utils.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_sub_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_sub_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_sum_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elu_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\enforce_finite_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\ensure_clipped_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\ensure_cpu_output_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\exp_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\expand_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\expand_squeeze_dims_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\fc_inference.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\feature_maps_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\feed_blob_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\filler_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\find_duplicate_elements_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\find_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\flatten_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\flexible_top_k.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\floor_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\free_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\fully_connected_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\fused_rowwise_8bit_conversion_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\fused_rowwise_random_quantization_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\gather_fused_8bit_rowwise_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\gather_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\gather_ranges_to_dense_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\generate_proposals_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\given_tensor_byte_string_to_uint8_fill_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\given_tensor_fill_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\glu_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\group_norm_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\gru_unit_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\h_softmax_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\half_float_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\hard_sigmoid_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\heatmap_max_keypoint_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\if_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\im2col_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\index_hash_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\index_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\instance_norm_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\instance_norm_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\integral_image_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\is_empty_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\jsd_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\key_split_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\last_n_window_collector.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\layer_norm_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\leaky_relu_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\length_split_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\lengths_pad_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\lengths_reducer_fused_8bit_rowwise_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\lengths_reducer_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\lengths_reducer_rowwise_8bit_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\lengths_tile_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\lengths_top_k_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\listwise_l2r_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\load_save_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\local_response_normalization_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\locally_connected_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\locally_connected_op_util.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\log_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\logit_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\loss_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\lp_pool_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\lpnorm_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\lstm_unit_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\map_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\margin_ranking_criterion_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\matmul_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\mean_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\merge_id_lists_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\minmax_gradient_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\minmax_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\mod_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\moments_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\multi_class_accuracy_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\negate_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\negative_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\ngram_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\norm_planar_yuv_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\normalize_l1_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\normalize_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\numpy_tile_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\one_hot_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\onnx_while_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\onnxifi_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\order_switch_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\pack_rnn_sequence_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\pack_segments.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\pad_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\partition_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\percentile_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\perplexity_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\piecewise_linear_transform_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\pool_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\pool_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\pool_op_util.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\pow_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\prelu_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\prepend_dim_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\quant_decode_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\rank_loss_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\reciprocal_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\reciprocal_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\reduce_front_back_max_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\reduce_front_back_mean_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\reduce_front_back_sum_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\reduce_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\reduction_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\relu_n_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\relu_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\remove_data_blocks_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\replace_nan_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\reservoir_sampling.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\reshape_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\resize_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\reverse_packed_segs_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\rmac_regions_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\roi_align_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\roi_align_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\roi_align_rotated_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\roi_align_rotated_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\roi_pool_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\rowmul_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\rsqrt_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\scale_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\segment_reduction_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\selu_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\sequence_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\shape_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\sigmoid_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\sigmoid_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\sin_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\sinh_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\sinusoid_position_encoding_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\slice_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\softmax_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\softmax_shared.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\softmax_with_loss_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\softplus_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\softsign_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\space_batch_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\sparse_normalize_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\sparse_to_dense_mask_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\sparse_to_dense_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\spatial_batch_norm_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\spatial_batch_norm_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\spatial_softmax_with_loss_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\sqr_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\sqrt_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\square_root_divide_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\stats_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\stats_put_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\stop_gradient.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\string_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\stump_func_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\stylizer_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\summarize_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\swish_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\tan_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\tanh_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\tanh_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\tensor_protos_db_input.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\text_file_reader.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\text_file_reader_utils.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\thresholded_relu_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\tile_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\top_k.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\transpose_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\tt_linear_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\unique_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\upsample_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\utility_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\variable_length_sequence_padding.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\weighted_multi_sampling_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\weighted_sample_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\while_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\workspace_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\zero_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\flatten_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\averaged_loss_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\mul_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\relu_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\expand_dims_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\filler_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\sparse_lengths_sum_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\sigmoid_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\cast_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\stop_gradient_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\batch_gather_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\concat_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\batch_matmul_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\sigmoid_cross_entropy_with_logits_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\fc_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\enforce_finite_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\add_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\sigmoid.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\layer_norm.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\filler.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\expand_dims.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\mul.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\relu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\stop_gradient.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\sigmoid_cross_entropy_with_logits.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\enforce_finite.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\cast.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\averaged_loss.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\batch_matmul.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\batch_gather.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\fc.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\concat.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\sparse_lengths_sum.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\add.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\flatten.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\rnn\recurrent_network_blob_fetcher_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\rnn\recurrent_network_executor.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\rnn\recurrent_network_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\annotations.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\backend_cutting.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\converter.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\dead_code_elim.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\device.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\distributed.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\distributed_converter.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\fusion.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\mobile.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\onnxifi_transformer.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\optimize_ideep.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\optimizer.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\passes.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\sink.cc.obj
caffe2\CMakeFiles\caffe2.dir\perfkernels\adagrad.cc.obj
caffe2\CMakeFiles\caffe2.dir\perfkernels\embedding_lookup.cc.obj
caffe2\CMakeFiles\caffe2.dir\perfkernels\fused_8bit_rowwise_embedding_lookup.cc.obj
caffe2\CMakeFiles\caffe2.dir\perfkernels\math_cpu_base.cc.obj
caffe2\CMakeFiles\caffe2.dir\perfkernels\typed_axpy.cc.obj
caffe2\CMakeFiles\caffe2.dir\queue\blobs_queue.cc.obj
caffe2\CMakeFiles\caffe2.dir\queue\blobs_queue_db.cc.obj
caffe2\CMakeFiles\caffe2.dir\queue\queue_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\queue\rebatching_queue.cc.obj
caffe2\CMakeFiles\caffe2.dir\queue\rebatching_queue_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\adadelta_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\adagrad_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\adam_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\clip_tensor_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\ftrl_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\gftrl_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\iter_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\lars_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\learning_rate_adaption_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\learning_rate_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\momentum_sgd_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\rmsprop_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\wngrad_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\yellowfin_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\transforms\common_subexpression_elimination.cc.obj
caffe2\CMakeFiles\caffe2.dir\transforms\conv_to_nnpack_transform.cc.obj
caffe2\CMakeFiles\caffe2.dir\transforms\pattern_net_transform.cc.obj
caffe2\CMakeFiles\caffe2.dir\transforms\single_op_transform.cc.obj -LIBPATH:C:\PROGRA~1\Python37\libs lib\cpuinfo.lib lib\onnxifi_loader.lib "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl\lib\intel64_win\mkl_intel_lp64.lib" "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl\lib\intel64_win\mkl_intel_thread.lib" "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl\lib\intel64_win\mkl_core.lib" "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\compiler\lib\intel64_win\libiomp5md.lib" "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl\lib\intel64_win\mkl_intel_lp64.lib" "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl\lib\intel64_win\mkl_intel_thread.lib" "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl\lib\intel64_win\mkl_core.lib" "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\compiler\lib\intel64_win\libiomp5md.lib" lib\cpuinfo.lib -WHOLEARCHIVE:C:/Users/tolia/AppData/Local/Temp/pytorch/build/lib/caffe2_protos.lib lib\clog.lib -WHOLEARCHIVE:C:/Users/tolia/AppData/Local/Temp/pytorch/build/lib/onnx.lib lib\onnx_proto.lib "C:\Program Files\protobuf\lib\libprotobuf.lib" "C:\Program Files\zlib\lib\zlib.lib" -WHOLEARCHIVE:C:/Users/tolia/AppData/Local/Temp/pytorch/build/lib/Caffe2_perfkernels_avx.lib lib\c10.lib "C:\Program Files\google-glog\lib\glog.lib" "C:\Program Files\gflags\lib\gflags.lib" "C:\Program Files\gflags\lib\gflags.lib" shlwapi.lib -WHOLEARCHIVE:C:/Users/tolia/AppData/Local/Temp/pytorch/build/lib/Caffe2_perfkernels_avx2.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib
Creating library lib\caffe2.lib and object lib\caffe2.exp
caffe2_protos.lib(torch.pb.cc.obj) : error LNK2001: unresolved external symbol "class google::protobuf::internal::ExplicitlyConstructed<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > google::protobuf::internal::fixed_address_empty_string" (?fixed_address_empty_string@internal@protobuf@google@@3V?$ExplicitlyConstructed@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@123@A)
bin\caffe2.dll : fatal error LNK1120: 1 unresolved externals
ninja: build stopped: subcommand failed."><pre class="notranslate"><code class="notranslate">[1/81] cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_dll --intdir=caffe2\CMakeFiles\caffe2.dir --manifests -- C:\PROGRA~2\MICROS~4\2017\ENTERP~1\VC\Tools\MSVC\1416~1.270\bin\Hostx64\x64\link.exe @CMakeFiles\caffe2.rsp /out:bin\caffe2.dll /implib:lib\caffe2.lib /pdb:pdb\caffe2.pdb /dll /version:0.0 /DEBUG:FASTLINK /LTCG:incremental /INCREMENTAL:NO /NODEFAULTLIB:vcomp && cd ."
FAILED: bin/caffe2.dll lib/caffe2.lib
cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_dll --intdir=caffe2\CMakeFiles\caffe2.dir --manifests -- C:\PROGRA~2\MICROS~4\2017\ENTERP~1\VC\Tools\MSVC\1416~1.270\bin\Hostx64\x64\link.exe @CMakeFiles\caffe2.rsp /out:bin\caffe2.dll /implib:lib\caffe2.lib /pdb:pdb\caffe2.pdb /dll /version:0.0 /DEBUG:FASTLINK /LTCG:incremental /INCREMENTAL:NO /NODEFAULTLIB:vcomp && cd ."
LINK: command "C:\PROGRA~2\MICROS~4\2017\ENTERP~1\VC\Tools\MSVC\1416~1.270\bin\Hostx64\x64\link.exe @CMakeFiles\caffe2.rsp /out:bin\caffe2.dll /implib:lib\caffe2.lib /pdb:pdb\caffe2.pdb /dll /version:0.0 /DEBUG:FASTLINK /LTCG:incremental /INCREMENTAL:NO /NODEFAULTLIB:vcomp /MANIFEST /MANIFESTFILE:bin\caffe2.dll.manifest" failed (exit code 1120) with the following output:
Microsoft (R) Incremental Linker Version 14.16.27025.1
Copyright (C) Microsoft Corporation. All rights reserved.
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\CPUGeneral.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\CPUGenerator.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\CPUTypeDefault.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\Context.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\DLConvertor.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\ExpandUtils.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\LegacyTHDispatch.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\SparseTensorImpl.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\TensorGeometry.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\TensorUtils.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\UndefinedType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\Utils.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\cpu\FlushDenormal.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\detail\CPUGuardImpl.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\detail\CUDAHooksInterface.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\detail\ComplexHooksInterface.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\detail\HIPHooksInterface.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\ATenGeneral.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\Formatting.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\LegacyDeviceTypeInit.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\LegacyTypeDispatch.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\Range.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\Tensor.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\VariableHooksInterface.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\blob.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\context_base.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\interned_strings.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\ivalue.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\register_symbols.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\thread_pool.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\core\type.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Activation.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\AdaptiveAveragePooling.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\AffineGridGenerator.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\BatchLinearAlgebra.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\BinaryOps.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\ConstantPadNd.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Convolution.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\ConvolutionTBC.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Copy.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\DispatchStub.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Distance.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Distributions.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Dropout.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Embedding.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\EmbeddingBag.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\FractionalMaxPool2d.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\FractionalMaxPool3d.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\GridSampler.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Indexing.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Itertools.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\LegacyBridge.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\LegacyDefinitions.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\LegacyNNDefinitions.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Linear.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\LinearAlgebra.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Loss.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\LossCTC.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Memory.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Normalization.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Onehot.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\PackedSequence.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\PixelShuffle.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Pooling.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\QuantizedLinear.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\RNN.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\RangeFactories.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\ReduceOps.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\ReflectionPad.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\ReplicationPadding.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Resize.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\RoiPooling.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Scalar.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\SoftMax.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\SpectralOps.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\SummaryOps.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\TensorCompare.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\TensorConversions.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\TensorFactories.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\TensorIterator.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\TensorIteratorReduce.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\TensorProperties.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\TensorShape.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\TensorTransformations.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\TypeProperties.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\UnaryOps.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\Unique.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\WeightNorm.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\sparse\SparseTensor.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\sparse\SparseTensorMath.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\mkl\LinearAlgebra.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\mkl\SpectralOps.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\mkldnn\Conv.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\CPUByteType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\CPUCharType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\CPUDoubleType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\CPUFloatType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\CPUHalfType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\CPUIntType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\CPULongType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\CPUShortType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\LegacyTHCPUByteDispatcher.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\LegacyTHCPUCharDispatcher.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\LegacyTHCPUDoubleDispatcher.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\LegacyTHCPUFloatDispatcher.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\LegacyTHCPUHalfDispatcher.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\LegacyTHCPUIntDispatcher.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\LegacyTHCPULongDispatcher.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\LegacyTHCPUShortDispatcher.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\LegacyTHDispatcher.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\RegisterCPU.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\SparseCPUByteType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\SparseCPUCharType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\SparseCPUDoubleType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\SparseCPUFloatType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\SparseCPUIntType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\SparseCPULongType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\SparseCPUShortType.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\TypeDefault.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THGeneral.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THAllocator.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THSize.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THStorageFunctions.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THTensor.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THTensorRandom.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THTensorMath.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THTensorMoreMath.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THTensorEvenMoreMath.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THTensorConv.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THTensorLapack.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THBlas.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THLapack.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THLogAdd.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THRandom.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THFile.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THDiskFile.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THMemoryFile.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\THVector.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\vector\AVX.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\TH\vector\AVX2.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\THNN\init.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\UnaryOpsKernel.cpp.AVX2.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\TensorCompareKernel.cpp.AVX2.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\SoftMaxKernel.cpp.AVX2.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\ReduceOpsKernel.cpp.AVX2.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\IndexKernel.cpp.AVX2.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX2.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\DistanceOpsKernel.cpp.AVX2.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\CopyKernel.cpp.AVX2.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\BinaryOpsKernel.cpp.AVX2.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\Activation.cpp.AVX2.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\UnaryOpsKernel.cpp.AVX.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\TensorCompareKernel.cpp.AVX.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\SoftMaxKernel.cpp.AVX.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\ReduceOpsKernel.cpp.AVX.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\IndexKernel.cpp.AVX.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\DistanceOpsKernel.cpp.AVX.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\CopyKernel.cpp.AVX.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\BinaryOpsKernel.cpp.AVX.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\Activation.cpp.AVX.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\UnaryOpsKernel.cpp.DEFAULT.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\TensorCompareKernel.cpp.DEFAULT.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\SoftMaxKernel.cpp.DEFAULT.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\ReduceOpsKernel.cpp.DEFAULT.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\IndexKernel.cpp.DEFAULT.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\GridSamplerKernel.cpp.DEFAULT.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\DistanceOpsKernel.cpp.DEFAULT.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\CopyKernel.cpp.DEFAULT.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\BinaryOpsKernel.cpp.DEFAULT.cpp.obj
caffe2\CMakeFiles\caffe2.dir\__\aten\src\ATen\native\cpu\Activation.cpp.DEFAULT.cpp.obj
caffe2\CMakeFiles\caffe2.dir\contrib\aten\aten_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\allocator.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\blob_serialization.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\blob_stats.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\common.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\context.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\context_base.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\db.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\event.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\graph.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\init.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\init_denormals.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\init_intrinsics_check.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\init_omp.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\int8_serialization.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\memonger.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\module.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\net.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\net_async_base.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\net_async_scheduling.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\net_async_task.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\net_async_task_future.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\net_async_task_graph.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\net_async_tracing.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\net_dag_utils.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\net_parallel.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\net_simple.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\net_simple_refcount.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\numa.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\operator.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\operator_c10wrapper.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\operator_schema.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\plan_executor.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\prof_dag_counters.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\qtensor.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\qtensor_serialization.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\stats.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\tensor.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\tensor_int8.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\test_utils.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\transform.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\types.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\workspace.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\proto_convert.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\proto_wrap.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\proto_utils.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\murmur_hash3.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\smart_tensor_printer.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\signal_handler.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\string_utils.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\threadpool\ThreadPool.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\cpuid.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\bench_utils.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\math_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\math_utils.cc.obj
caffe2\CMakeFiles\caffe2.dir\utils\thread_name.cc.obj
caffe2\CMakeFiles\caffe2.dir\predictor\predictor.cc.obj
caffe2\CMakeFiles\caffe2.dir\predictor\predictor_utils.cc.obj
caffe2\CMakeFiles\caffe2.dir\predictor\predictor_config.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\nomnigraph\Representations\NeuralNet.cc.obj
caffe2\CMakeFiles\caffe2.dir\core\nomnigraph\tests\test_util.cc.obj
caffe2\CMakeFiles\caffe2.dir\__\third_party\miniz-2.0.8\miniz.c.obj
caffe2\CMakeFiles\caffe2.dir\serialize\inline_container.cc.obj
caffe2\CMakeFiles\caffe2.dir\serialize\istream_adapter.cc.obj
caffe2\CMakeFiles\caffe2.dir\serialize\file_adapter.cc.obj
caffe2\CMakeFiles\caffe2.dir\serialize\read_adapter_interface.cc.obj
caffe2\CMakeFiles\caffe2.dir\db\create_db_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\db\protodb.cc.obj
caffe2\CMakeFiles\caffe2.dir\distributed\file_store_handler.cc.obj
caffe2\CMakeFiles\caffe2.dir\distributed\file_store_handler_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\distributed\store_handler.cc.obj
caffe2\CMakeFiles\caffe2.dir\distributed\store_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\observers\time_observer.cc.obj
caffe2\CMakeFiles\caffe2.dir\observers\runcnt_observer.cc.obj
caffe2\CMakeFiles\caffe2.dir\onnx\backend.cc.obj
caffe2\CMakeFiles\caffe2.dir\onnx\backend_rep.cc.obj
caffe2\CMakeFiles\caffe2.dir\onnx\device.cc.obj
caffe2\CMakeFiles\caffe2.dir\onnx\helper.cc.obj
caffe2\CMakeFiles\caffe2.dir\onnx\onnx_exporter.cc.obj
caffe2\CMakeFiles\caffe2.dir\onnx\onnxifi_graph_info.cc.obj
caffe2\CMakeFiles\caffe2.dir\onnx\onnxifi_init.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\abs_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\accumulate_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\accuracy_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\acos_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\affine_channel_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\apmeter_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\arg_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\asin_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\assert_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\atan_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\atomic_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\batch_box_cox_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\batch_bucketize_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\batch_gather_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\batch_matmul_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\batch_moments_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\batch_sparse_to_dense_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\bbox_transform_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\bisect_percentile_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\boolean_mask_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\boolean_unmask_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\box_with_nms_limit_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\byte_weight_dequant_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\cast_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\cbrt_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\ceil_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\channel_backprop_stats_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\channel_shuffle_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\channel_stats_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\clip_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\collect_and_distribute_fpn_rpn_proposals_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\communicator_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\concat_split_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\conditional_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\conv_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\conv_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\conv_op_eigen.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\conv_op_shared.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\conv_transpose_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\conv_transpose_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\conv_transpose_op_mobile.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\copy_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\cos_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\cosh_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\cosine_embedding_criterion_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\counter_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\create_scope_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\crf_viterbi_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\cross_entropy_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\ctc_beam_search_decoder_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\ctc_greedy_decoder_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\cube_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\data_couple.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\dataset_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\deform_conv_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\deform_conv_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\dense_vector_to_id_list_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\distance_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\do_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\dropout_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_add_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_add_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_div_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_div_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_linear_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_logical_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_mul_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_mul_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_ops_schema.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_ops_utils.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_sub_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_sub_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elementwise_sum_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\elu_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\enforce_finite_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\ensure_clipped_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\ensure_cpu_output_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\exp_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\expand_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\expand_squeeze_dims_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\fc_inference.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\feature_maps_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\feed_blob_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\filler_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\find_duplicate_elements_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\find_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\flatten_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\flexible_top_k.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\floor_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\free_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\fully_connected_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\fused_rowwise_8bit_conversion_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\fused_rowwise_random_quantization_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\gather_fused_8bit_rowwise_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\gather_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\gather_ranges_to_dense_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\generate_proposals_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\given_tensor_byte_string_to_uint8_fill_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\given_tensor_fill_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\glu_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\group_norm_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\gru_unit_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\h_softmax_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\half_float_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\hard_sigmoid_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\heatmap_max_keypoint_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\if_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\im2col_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\index_hash_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\index_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\instance_norm_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\instance_norm_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\integral_image_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\is_empty_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\jsd_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\key_split_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\last_n_window_collector.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\layer_norm_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\leaky_relu_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\length_split_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\lengths_pad_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\lengths_reducer_fused_8bit_rowwise_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\lengths_reducer_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\lengths_reducer_rowwise_8bit_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\lengths_tile_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\lengths_top_k_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\listwise_l2r_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\load_save_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\local_response_normalization_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\locally_connected_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\locally_connected_op_util.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\log_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\logit_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\loss_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\lp_pool_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\lpnorm_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\lstm_unit_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\map_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\margin_ranking_criterion_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\matmul_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\mean_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\merge_id_lists_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\minmax_gradient_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\minmax_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\mod_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\moments_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\multi_class_accuracy_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\negate_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\negative_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\ngram_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\norm_planar_yuv_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\normalize_l1_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\normalize_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\numpy_tile_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\one_hot_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\onnx_while_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\onnxifi_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\order_switch_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\pack_rnn_sequence_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\pack_segments.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\pad_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\partition_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\percentile_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\perplexity_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\piecewise_linear_transform_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\pool_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\pool_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\pool_op_util.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\pow_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\prelu_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\prepend_dim_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\quant_decode_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\rank_loss_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\reciprocal_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\reciprocal_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\reduce_front_back_max_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\reduce_front_back_mean_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\reduce_front_back_sum_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\reduce_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\reduction_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\relu_n_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\relu_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\remove_data_blocks_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\replace_nan_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\reservoir_sampling.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\reshape_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\resize_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\reverse_packed_segs_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\rmac_regions_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\roi_align_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\roi_align_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\roi_align_rotated_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\roi_align_rotated_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\roi_pool_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\rowmul_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\rsqrt_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\scale_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\segment_reduction_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\selu_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\sequence_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\shape_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\sigmoid_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\sigmoid_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\sin_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\sinh_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\sinusoid_position_encoding_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\slice_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\softmax_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\softmax_shared.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\softmax_with_loss_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\softplus_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\softsign_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\space_batch_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\sparse_normalize_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\sparse_to_dense_mask_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\sparse_to_dense_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\spatial_batch_norm_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\spatial_batch_norm_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\spatial_softmax_with_loss_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\sqr_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\sqrt_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\square_root_divide_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\stats_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\stats_put_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\stop_gradient.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\string_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\stump_func_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\stylizer_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\summarize_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\swish_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\tan_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\tanh_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\tanh_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\tensor_protos_db_input.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\text_file_reader.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\text_file_reader_utils.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\thresholded_relu_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\tile_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\top_k.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\transpose_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\tt_linear_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\unique_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\upsample_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\utility_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\variable_length_sequence_padding.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\weighted_multi_sampling_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\weighted_sample_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\while_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\workspace_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\zero_gradient_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\flatten_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\averaged_loss_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\mul_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\relu_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\expand_dims_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\filler_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\sparse_lengths_sum_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\sigmoid_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\cast_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\stop_gradient_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\batch_gather_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\concat_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\batch_matmul_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\sigmoid_cross_entropy_with_logits_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\fc_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\enforce_finite_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\cpu\add_cpu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\sigmoid.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\layer_norm.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\filler.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\expand_dims.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\mul.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\relu.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\stop_gradient.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\sigmoid_cross_entropy_with_logits.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\enforce_finite.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\cast.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\averaged_loss.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\batch_matmul.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\batch_gather.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\fc.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\concat.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\sparse_lengths_sum.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\add.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\experimental\c10\schemas\flatten.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\rnn\recurrent_network_blob_fetcher_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\rnn\recurrent_network_executor.cc.obj
caffe2\CMakeFiles\caffe2.dir\operators\rnn\recurrent_network_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\annotations.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\backend_cutting.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\converter.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\dead_code_elim.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\device.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\distributed.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\distributed_converter.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\fusion.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\mobile.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\onnxifi_transformer.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\optimize_ideep.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\optimizer.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\passes.cc.obj
caffe2\CMakeFiles\caffe2.dir\opt\sink.cc.obj
caffe2\CMakeFiles\caffe2.dir\perfkernels\adagrad.cc.obj
caffe2\CMakeFiles\caffe2.dir\perfkernels\embedding_lookup.cc.obj
caffe2\CMakeFiles\caffe2.dir\perfkernels\fused_8bit_rowwise_embedding_lookup.cc.obj
caffe2\CMakeFiles\caffe2.dir\perfkernels\math_cpu_base.cc.obj
caffe2\CMakeFiles\caffe2.dir\perfkernels\typed_axpy.cc.obj
caffe2\CMakeFiles\caffe2.dir\queue\blobs_queue.cc.obj
caffe2\CMakeFiles\caffe2.dir\queue\blobs_queue_db.cc.obj
caffe2\CMakeFiles\caffe2.dir\queue\queue_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\queue\rebatching_queue.cc.obj
caffe2\CMakeFiles\caffe2.dir\queue\rebatching_queue_ops.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\adadelta_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\adagrad_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\adam_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\clip_tensor_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\ftrl_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\gftrl_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\iter_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\lars_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\learning_rate_adaption_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\learning_rate_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\momentum_sgd_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\rmsprop_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\wngrad_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\sgd\yellowfin_op.cc.obj
caffe2\CMakeFiles\caffe2.dir\transforms\common_subexpression_elimination.cc.obj
caffe2\CMakeFiles\caffe2.dir\transforms\conv_to_nnpack_transform.cc.obj
caffe2\CMakeFiles\caffe2.dir\transforms\pattern_net_transform.cc.obj
caffe2\CMakeFiles\caffe2.dir\transforms\single_op_transform.cc.obj -LIBPATH:C:\PROGRA~1\Python37\libs lib\cpuinfo.lib lib\onnxifi_loader.lib "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl\lib\intel64_win\mkl_intel_lp64.lib" "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl\lib\intel64_win\mkl_intel_thread.lib" "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl\lib\intel64_win\mkl_core.lib" "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\compiler\lib\intel64_win\libiomp5md.lib" "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl\lib\intel64_win\mkl_intel_lp64.lib" "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl\lib\intel64_win\mkl_intel_thread.lib" "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl\lib\intel64_win\mkl_core.lib" "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\compiler\lib\intel64_win\libiomp5md.lib" lib\cpuinfo.lib -WHOLEARCHIVE:C:/Users/tolia/AppData/Local/Temp/pytorch/build/lib/caffe2_protos.lib lib\clog.lib -WHOLEARCHIVE:C:/Users/tolia/AppData/Local/Temp/pytorch/build/lib/onnx.lib lib\onnx_proto.lib "C:\Program Files\protobuf\lib\libprotobuf.lib" "C:\Program Files\zlib\lib\zlib.lib" -WHOLEARCHIVE:C:/Users/tolia/AppData/Local/Temp/pytorch/build/lib/Caffe2_perfkernels_avx.lib lib\c10.lib "C:\Program Files\google-glog\lib\glog.lib" "C:\Program Files\gflags\lib\gflags.lib" "C:\Program Files\gflags\lib\gflags.lib" shlwapi.lib -WHOLEARCHIVE:C:/Users/tolia/AppData/Local/Temp/pytorch/build/lib/Caffe2_perfkernels_avx2.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib
Creating library lib\caffe2.lib and object lib\caffe2.exp
caffe2_protos.lib(torch.pb.cc.obj) : error LNK2001: unresolved external symbol "class google::protobuf::internal::ExplicitlyConstructed<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > google::protobuf::internal::fixed_address_empty_string" (?fixed_address_empty_string@internal@protobuf@google@@3V?$ExplicitlyConstructed@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@123@A)
bin\caffe2.dll : fatal error LNK1120: 1 unresolved externals
ninja: build stopped: subcommand failed.
</code></pre></div>
<h2 dir="auto">Environment</h2>
<ul dir="auto">
<li>PyTorch Version (e.g., 1.0): master</li>
<li>OS (e.g., Linux): Win10</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</li>
<li>Python version: master</li>
</ul> | <p dir="auto">Hi. Please suggest how to:</p>
<ol dir="auto">
<li>train a model in pytorch, save it on disk.</li>
<li>load the model in c++, call model:forward() several times without loading the model each time</li>
</ol> | 0 |
<p dir="auto">Something like this should really produce a better error message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mod foo {
extern mod extra;
use foo::extra;
}
/////////////////////////////////
//The error:
//bug-testing.rs:4:6: 4:16 error: unresolved import
//bug-testing.rs:4 use foo::extra;
// ^~~~~~~~~~
//error: aborting due to previous error
//////////////////////////////////"><pre class="notranslate"><code class="notranslate">mod foo {
extern mod extra;
use foo::extra;
}
/////////////////////////////////
//The error:
//bug-testing.rs:4:6: 4:16 error: unresolved import
//bug-testing.rs:4 use foo::extra;
// ^~~~~~~~~~
//error: aborting due to previous error
//////////////////////////////////
</code></pre></div>
<p dir="auto">Not sure whether current compiler state makes it difficult to identify this and other reasons for failed resolution, but if it's fairly simple better error messages would be great.</p> | <p dir="auto">Example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Foo {a: 1, b: 2, c: 3,
d: 4, e: 5}"><pre class="notranslate"><code class="notranslate">Foo {a: 1, b: 2, c: 3,
d: 4, e: 5}
</code></pre></div>
<p dir="auto">if you indent the second line, it will work and result in:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Foo {a: 1, b: 2, c: 3,
d: 4, e: 5}"><pre class="notranslate"><code class="notranslate">Foo {a: 1, b: 2, c: 3,
d: 4, e: 5}
</code></pre></div>
<p dir="auto">However, if there were a space after the '{':</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Foo { a: 1, b: 2, c: 3,
d: 4, e: 5}"><pre class="notranslate"><code class="notranslate">Foo { a: 1, b: 2, c: 3,
d: 4, e: 5}
</code></pre></div>
<p dir="auto">you would expect pressing tab on the second line to indent to:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Foo { a: 1, b: 2, c: 3,
d: 4, e: 5}"><pre class="notranslate"><code class="notranslate">Foo { a: 1, b: 2, c: 3,
d: 4, e: 5}
</code></pre></div>
<p dir="auto">instead an error is raised, saying that <code class="notranslate">forward-to-word</code>'s definition is void.</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.6, 2.7.7</li>
<li>Operating System version: macOS 10.14.1</li>
<li>Java version: 1.8.0_222</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>expose service with name Alice.call()</li>
<li>expose service with name Bob.call(), with an injvm <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> field Alice</li>
<li>add a filter to Alice, which print "filter invoked"</li>
<li>invoke Alice.call()</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">"filter invoked" was print in console.</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">"filter invoked" was not print in console.</p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.5.3</li>
<li>Operating System version: centos</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>泛化实现一个dubbo服务<br>
ServiceConfig service = dubboServices.get(serviceId);<br>
this.removeService(service);<br>
dubboServices.remove(serviceId);<br>
service = this.createDubboService(serviceName, myGenericService, address, timeout,<br>
protocolPort, groupName, retries, applicationName);<br>
service.export();</li>
<li>注册中心写入规则,<br>
{<br>
"condition": " => host != 172.1.1.1",<br>
"service":"com.bestpay.cf.instalmentmix.api.facade.account.CustomerService"<br>
}</li>
<li>结果路由规则不生效<br>
请求还是走到了172.1.1.1上的服务,没有按预期情况走到泛化实现的服务上面</li>
</ol>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">希望是有方式可以让路由规则可以对泛化服务生效</p> | 0 |
<p dir="auto">On, my local machine macOS 10.12.1 <code class="notranslate">babel-register</code> works fine under Node 4.3.2. On Travis, it works fine under Node versions 6, 6.1 and 5.11, but for some reason, during the Travis build/test under Node 4.3.2, it just can't find <code class="notranslate">babel-runtime/regenerator</code>.</p>
<p dir="auto">Here is my <a href="https://github.com/resistdesign/incarnate/blob/master/package.json">package.json</a>.</p>
<p dir="auto">Here is the raw Travis log:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
Worker information
hostname: ip-10-12-9-52:29dd9498-7d66-4d46-baf9-d9cc8e2a9fb4
version: v2.5.0-8-g19ea9c2 https://github.com/travis-ci/worker/tree/19ea9c20425c78100500c7cc935892b47024922c
instance: f986739:travis:node_js
startup: 592.774995ms
Build system information
Build language: node_js
Build group: stable
Build dist: precise
Build id: 186403304
Job id: 186403308
travis-build version: 7cac7d393
Build image provisioning date and time
Thu Feb 5 15:09:33 UTC 2015
Operating System Details
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
Linux Version
3.13.0-29-generic
Cookbooks Version
a68419e https://github.com/travis-ci/travis-cookbooks/tree/a68419e
GCC version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
LLVM version
clang version 3.4 (tags/RELEASE_34/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
Pre-installed Ruby versions
ruby-1.9.3-p551
Pre-installed Node.js versions
v0.10.36
Pre-installed Go versions
1.4.1
Redis version
redis-server 2.8.19
riak version
2.0.2
MongoDB version
MongoDB 2.4.12
CouchDB version
couchdb 1.6.1
Neo4j version
1.9.4
RabbitMQ Version
3.4.3
ElasticSearch version
1.4.0
Installed Sphinx versions
2.0.10
2.1.9
2.2.6
Default Sphinx version
2.2.6
Installed Firefox version
firefox 31.0esr
PhantomJS version
1.9.8
ant -version
Apache Ant(TM) version 1.8.2 compiled on December 3 2011
mvn -version
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T17:29:23+00:00)
Maven home: /usr/local/maven
Java version: 1.7.0_76, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-oracle/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "3.13.0-29-generic", arch: "amd64", family: "unix"
$ export DEBIAN_FRONTEND=noninteractive
W: Size of file /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_precise-security_restricted_binary-amd64_Packages.gz is not what the server reported 13782 14904
W: Size of file /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_precise-updates_restricted_binary-amd64_Packages.gz is not what the server reported 19576 20785
W: Size of file /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_precise-security_restricted_binary-i386_Packages.gz is not what the server reported 13751 14885
W: Size of file /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_precise-updates_restricted_binary-i386_Packages.gz is not what the server reported 19521 20707
W: Size of file /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_precise-backports_multiverse_source_Sources.gz is not what the server reported 5886 5888
W: Size of file /var/lib/apt/lists/ppa.launchpad.net_travis-ci_zero-mq_ubuntu_dists_precise_main_binary-amd64_Packages.gz is not what the server reported 832 1195
W: Size of file /var/lib/apt/lists/ppa.launchpad.net_ubuntugis_ppa_ubuntu_dists_precise_main_binary-amd64_Packages.gz is not what the server reported 33653 36677
W: Size of file /var/lib/apt/lists/ppa.launchpad.net_ubuntugis_ppa_ubuntu_dists_precise_main_binary-i386_Packages.gz is not what the server reported 33699 36733
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
libc-bin libc-dev-bin libc6-dev
Suggested packages:
glibc-doc
The following packages will be upgraded:
libc-bin libc-dev-bin libc6 libc6-dev
4 upgraded, 0 newly installed, 0 to remove and 250 not upgraded.
Need to get 8,840 kB of archives.
After this operation, 14.3 kB disk space will be freed.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libc6-dev amd64 2.15-0ubuntu10.15 [2,943 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libc-dev-bin amd64 2.15-0ubuntu10.15 [84.7 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libc-bin amd64 2.15-0ubuntu10.15 [1,177 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libc6 amd64 2.15-0ubuntu10.15 [4,636 kB]
Fetched 8,840 kB in 0s (36.2 MB/s)
Preconfiguring packages ...
(Reading database ... 69991 files and directories currently installed.)
Preparing to replace libc6-dev 2.15-0ubuntu10.10 (using .../libc6-dev_2.15-0ubuntu10.15_amd64.deb) ...
Unpacking replacement libc6-dev ...
Preparing to replace libc-dev-bin 2.15-0ubuntu10.10 (using .../libc-dev-bin_2.15-0ubuntu10.15_amd64.deb) ...
Unpacking replacement libc-dev-bin ...
Preparing to replace libc-bin 2.15-0ubuntu10.10 (using .../libc-bin_2.15-0ubuntu10.15_amd64.deb) ...
Unpacking replacement libc-bin ...
Processing triggers for man-db ...
Setting up libc-bin (2.15-0ubuntu10.15) ...
(Reading database ... 69990 files and directories currently installed.)
Preparing to replace libc6 2.15-0ubuntu10.10 (using .../libc6_2.15-0ubuntu10.15_amd64.deb) ...
Unpacking replacement libc6 ...
Setting up libc6 (2.15-0ubuntu10.15) ...
Setting up libc-dev-bin (2.15-0ubuntu10.15) ...
Setting up libc6-dev (2.15-0ubuntu10.15) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
$ git clone --depth=50 --branch=master https://github.com/resistdesign/incarnate.git resistdesign/incarnate
Cloning into 'resistdesign/incarnate'...
remote: Counting objects: 169, done.
remote: Compressing objects: 100% (140/140), done.
remote: Total 169 (delta 83), reused 97 (delta 27), pack-reused 0
Receiving objects: 100% (169/169), 25.71 KiB | 0 bytes/s, done.
Resolving deltas: 100% (83/83), done.
Checking connectivity... done.
$ cd resistdesign/incarnate
$ git checkout -qf a4acffa37fb005d344ae0ad8d56a6aa9213b40a9
This job is running on container-based infrastructure, which does not allow use of 'sudo', setuid and setguid executables.
If you require sudo, add 'sudo: required' to your .travis.yml
See https://docs.travis-ci.com/user/workers/container-based-infrastructure/ for details.
Updating nvm to v0.32.0
$ nvm install 4.3.2
######################################################################## 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v4.3.2 (npm v2.14.12)
Starting with io.js 3 and Node.js 4, building native extensions requires C++11-compatible compiler, which seems unavailable on this VM. Please read https://docs.travis-ci.com/user/languages/javascript-with-nodejs#Node.js-v4-(or-io.js-v3)-compiler-requirements.
$ node --version
v4.3.2
$ npm --version
2.14.12
$ nvm --version
0.32.0
$ npm install
npm WARN optional dep failed, continuing [email protected]
[email protected] node_modules/mocha
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected])
[email protected] node_modules/expect
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
[email protected] node_modules/npm-watch
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
[email protected] node_modules/event-emitter
├── [email protected]
└── [email protected] ([email protected], [email protected])
[email protected] node_modules/babel-register
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected]
└── [email protected]
[email protected] node_modules/babel-plugin-transform-object-rest-spread
├── [email protected]
└── [email protected] ([email protected], [email protected])
[email protected] node_modules/babel-plugin-transform-runtime
└── [email protected] ([email protected], [email protected])
[email protected] node_modules/babel-plugin-transform-class-properties
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected])
[email protected] node_modules/babel-preset-env
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected])
$ npm test
> @resistdesign/[email protected] test /home/travis/build/resistdesign/incarnate
> mocha -u exports --require babel-register -- '**/*.spec.js'
module.js:327
throw err;
^
Error: Cannot find module 'babel-runtime/regenerator'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/travis/build/resistdesign/incarnate/src/Incarnate.spec.js:3:20)
at Module._compile (module.js:409:26)
at loader (/home/travis/build/resistdesign/incarnate/node_modules/babel-register/lib/node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (/home/travis/build/resistdesign/incarnate/node_modules/babel-register/lib/node.js:154:7)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at /home/travis/build/resistdesign/incarnate/node_modules/mocha/lib/mocha.js:222:27
at Array.forEach (native)
at Mocha.loadFiles (/home/travis/build/resistdesign/incarnate/node_modules/mocha/lib/mocha.js:219:14)
at Mocha.run (/home/travis/build/resistdesign/incarnate/node_modules/mocha/lib/mocha.js:487:10)
at Object.<anonymous> (/home/travis/build/resistdesign/incarnate/node_modules/mocha/bin/_mocha:459:18)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:134:18)
at node.js:962:3
npm ERR! Test failed. See above for more details.
The command "npm test" exited with 1.
Done. Your build exited with 1."><pre class="notranslate">Worker information
hostname: ip-10-12-9-52:29dd9498-7d66-4d46-baf9-d9cc8e2a9fb4
version: v2.5.0-8-g19ea9c2 https://github.com/travis-ci/worker/tree/19ea9c20425c78100500c7cc935892b47024922c
instance: f986739:travis:node_js
startup: 592.774995ms
Build system information
Build language: node_js
Build group: stable
Build dist: precise
Build id: 186403304
Job id: 186403308
travis-build version: 7cac7d393
Build image provisioning date and <span class="pl-k">time</span>
Thu Feb 5 15:09:33 UTC 2015
Operating System Details
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
Linux Version
3.13.0-29-generic
Cookbooks Version
a68419e https://github.com/travis-ci/travis-cookbooks/tree/a68419e
GCC version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software<span class="pl-k">;</span> see the <span class="pl-c1">source</span> <span class="pl-k">for</span> copying conditions. There is NO
warranty<span class="pl-k">;</span> not even <span class="pl-k">for</span> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
LLVM version
clang version 3.4 (tags/RELEASE_34/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
Pre-installed Ruby versions
ruby-1.9.3-p551
Pre-installed Node.js versions
v0.10.36
Pre-installed Go versions
1.4.1
Redis version
redis-server 2.8.19
riak version
2.0.2
MongoDB version
MongoDB 2.4.12
CouchDB version
couchdb 1.6.1
Neo4j version
1.9.4
RabbitMQ Version
3.4.3
ElasticSearch version
1.4.0
Installed Sphinx versions
2.0.10
2.1.9
2.2.6
Default Sphinx version
2.2.6
Installed Firefox version
firefox 31.0esr
PhantomJS version
1.9.8
ant -version
Apache Ant(TM) version 1.8.2 compiled on December 3 2011
mvn -version
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1<span class="pl-k">;</span> 2014-12-14T17:29:23+00:00)
Maven home: /usr/local/maven
Java version: 1.7.0_76, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-oracle/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: <span class="pl-s"><span class="pl-pds">"</span>linux<span class="pl-pds">"</span></span>, version: <span class="pl-s"><span class="pl-pds">"</span>3.13.0-29-generic<span class="pl-pds">"</span></span>, arch: <span class="pl-s"><span class="pl-pds">"</span>amd64<span class="pl-pds">"</span></span>, family: <span class="pl-s"><span class="pl-pds">"</span>unix<span class="pl-pds">"</span></span>
$ <span class="pl-k">export</span> DEBIAN_FRONTEND=noninteractive
W: Size of file /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_precise-security_restricted_binary-amd64_Packages.gz is not what the server reported 13782 14904
W: Size of file /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_precise-updates_restricted_binary-amd64_Packages.gz is not what the server reported 19576 20785
W: Size of file /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_precise-security_restricted_binary-i386_Packages.gz is not what the server reported 13751 14885
W: Size of file /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_precise-updates_restricted_binary-i386_Packages.gz is not what the server reported 19521 20707
W: Size of file /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_precise-backports_multiverse_source_Sources.gz is not what the server reported 5886 5888
W: Size of file /var/lib/apt/lists/ppa.launchpad.net_travis-ci_zero-mq_ubuntu_dists_precise_main_binary-amd64_Packages.gz is not what the server reported 832 1195
W: Size of file /var/lib/apt/lists/ppa.launchpad.net_ubuntugis_ppa_ubuntu_dists_precise_main_binary-amd64_Packages.gz is not what the server reported 33653 36677
W: Size of file /var/lib/apt/lists/ppa.launchpad.net_ubuntugis_ppa_ubuntu_dists_precise_main_binary-i386_Packages.gz is not what the server reported 33699 36733
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
libc-bin libc-dev-bin libc6-dev
Suggested packages:
glibc-doc
The following packages will be upgraded:
libc-bin libc-dev-bin libc6 libc6-dev
4 upgraded, 0 newly installed, 0 to remove and 250 not upgraded.
Need to get 8,840 kB of archives.
After this operation, 14.3 kB disk space will be freed.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libc6-dev amd64 2.15-0ubuntu10.15 [2,943 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libc-dev-bin amd64 2.15-0ubuntu10.15 [84.7 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libc-bin amd64 2.15-0ubuntu10.15 [1,177 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libc6 amd64 2.15-0ubuntu10.15 [4,636 kB]
Fetched 8,840 kB <span class="pl-k">in</span> 0s (36.2 MB/s)
Preconfiguring packages ...
(Reading database ... 69991 files and directories currently installed.)
Preparing to replace libc6-dev 2.15-0ubuntu10.10 (using .../libc6-dev_2.15-0ubuntu10.15_amd64.deb) ...
Unpacking replacement libc6-dev ...
Preparing to replace libc-dev-bin 2.15-0ubuntu10.10 (using .../libc-dev-bin_2.15-0ubuntu10.15_amd64.deb) ...
Unpacking replacement libc-dev-bin ...
Preparing to replace libc-bin 2.15-0ubuntu10.10 (using .../libc-bin_2.15-0ubuntu10.15_amd64.deb) ...
Unpacking replacement libc-bin ...
Processing triggers <span class="pl-k">for</span> man-db ...
Setting up libc-bin (2.15-0ubuntu10.15) ...
(Reading database ... 69990 files and directories currently installed.)
Preparing to replace libc6 2.15-0ubuntu10.10 (using .../libc6_2.15-0ubuntu10.15_amd64.deb) ...
Unpacking replacement libc6 ...
Setting up libc6 (2.15-0ubuntu10.15) ...
Setting up libc-dev-bin (2.15-0ubuntu10.15) ...
Setting up libc6-dev (2.15-0ubuntu10.15) ...
Processing triggers <span class="pl-k">for</span> libc-bin ...
ldconfig deferred processing now taking place
$ git clone --depth=50 --branch=master https://github.com/resistdesign/incarnate.git resistdesign/incarnate
Cloning into <span class="pl-s"><span class="pl-pds">'</span>resistdesign/incarnate<span class="pl-pds">'</span></span>...
remote: Counting objects: 169, done.
remote: Compressing objects: 100% (140/140), done.
remote: Total 169 (delta 83), reused 97 (delta 27), pack-reused 0
Receiving objects: 100% (169/169), 25.71 KiB <span class="pl-k">|</span> 0 bytes/s, done.
Resolving deltas: 100% (83/83), done.
Checking connectivity... done.
$ <span class="pl-c1">cd</span> resistdesign/incarnate
$ git checkout -qf a4acffa37fb005d344ae0ad8d56a6aa9213b40a9
This job is running on container-based infrastructure, which does not allow use of <span class="pl-s"><span class="pl-pds">'</span>sudo<span class="pl-pds">'</span></span>, setuid and setguid executables.
If you require sudo, add <span class="pl-s"><span class="pl-pds">'</span>sudo: required<span class="pl-pds">'</span></span> to your .travis.yml
See https://docs.travis-ci.com/user/workers/container-based-infrastructure/ <span class="pl-k">for</span> details.
Updating nvm to v0.32.0
$ nvm install 4.3.2
<span class="pl-c"><span class="pl-c">#</span>####################################################################### 100.0%</span>
Computing checksum with sha256sum
Checksums matched<span class="pl-k">!</span>
Now using node v4.3.2 (npm v2.14.12)
Starting with io.js 3 and Node.js 4, building native extensions requires C++11-compatible compiler, which seems unavailable on this VM. Please <span class="pl-c1">read</span> https://docs.travis-ci.com/user/languages/javascript-with-nodejs#Node.js-v4-(or-io.js-v3)-compiler-requirements.
$ node --version
v4.3.2
$ npm --version
2.14.12
$ nvm --version
0.32.0
$ npm install
npm WARN optional dep failed, continuing [email protected]
[email protected] node_modules/mocha
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected])
[email protected] node_modules/expect
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
[email protected] node_modules/npm-watch
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
[email protected] node_modules/event-emitter
├── [email protected]
└── [email protected] ([email protected], [email protected])
[email protected] node_modules/babel-register
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected]
└── [email protected]
[email protected] node_modules/babel-plugin-transform-object-rest-spread
├── [email protected]
└── [email protected] ([email protected], [email protected])
[email protected] node_modules/babel-plugin-transform-runtime
└── [email protected] ([email protected], [email protected])
[email protected] node_modules/babel-plugin-transform-class-properties
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected])
[email protected] node_modules/babel-preset-env
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected])
$ npm <span class="pl-c1">test</span>
<span class="pl-k">></span> @resistdesign/[email protected] <span class="pl-c1">test</span> /home/travis/build/resistdesign/incarnate
<span class="pl-k">></span> mocha -u exports --require babel-register -- <span class="pl-s"><span class="pl-pds">'</span>**/*.spec.js<span class="pl-pds">'</span></span>
module.js:327
throw err<span class="pl-k">;</span>
^
Error: Cannot find module <span class="pl-s"><span class="pl-pds">'</span>babel-runtime/regenerator<span class="pl-pds">'</span></span>
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<span class="pl-k"><</span>anonymous<span class="pl-k">></span> (/home/travis/build/resistdesign/incarnate/src/Incarnate.spec.js:3:20)
at Module._compile (module.js:409:26)
at loader (/home/travis/build/resistdesign/incarnate/node_modules/babel-register/lib/node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (/home/travis/build/resistdesign/incarnate/node_modules/babel-register/lib/node.js:154:7)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at /home/travis/build/resistdesign/incarnate/node_modules/mocha/lib/mocha.js:222:27
at Array.forEach (native)
at Mocha.loadFiles (/home/travis/build/resistdesign/incarnate/node_modules/mocha/lib/mocha.js:219:14)
at Mocha.run (/home/travis/build/resistdesign/incarnate/node_modules/mocha/lib/mocha.js:487:10)
at Object.<span class="pl-k"><</span>anonymous<span class="pl-k">></span> (/home/travis/build/resistdesign/incarnate/node_modules/mocha/bin/_mocha:459:18)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:134:18)
at node.js:962:3
npm ERR<span class="pl-k">!</span> Test failed. See above <span class="pl-k">for</span> more details.
The <span class="pl-c1">command</span> <span class="pl-s"><span class="pl-pds">"</span>npm test<span class="pl-pds">"</span></span> exited with 1.
Done. Your build exited with 1.</pre></div> | <h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>Current behavior</strong></p>
<ul dir="auto">
<li><a href="babeljs.io/repl">REPL</a>, <a href="https://codesandbox.io/s/babel-repl-custom-plugin-7s08o?file=/src/index.js" rel="nofollow">Codesandbox</a>, or GitHub Repo helps!</li>
</ul>
<p dir="auto">Github repo<br>
<a href="https://github.com/marcusjwhelan/dockerReact">https://github.com/marcusjwhelan/dockerReact</a></p>
<p dir="auto"><strong>Input Code</strong></p>
<p dir="auto">Startup without docker</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="npm run start"><pre class="notranslate">npm run start</pre></div>
<p dir="auto">This works and all the development process continues with hot reload just fine.</p>
<p dir="auto">However if I try to run the application in development mode only one package is not included in the node_modules and that is @babel/plugin-transform-runtime</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="docker-compose -f docker-compose-dev.yml build --no-cache
docker-compose -f docker-compose-dev.yml up
# or if first time
docker-compose -f docker-compose-dev.yml up --build"><pre class="notranslate">docker-compose -f docker-compose-dev.yml build --no-cache
docker-compose -f docker-compose-dev.yml up
<span class="pl-c"><span class="pl-c">#</span> or if first time</span>
docker-compose -f docker-compose-dev.yml up --build</pre></div>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">The application should compile and run in docker like it did before having to add the transform runtime and @babel/runtime</p>
<p dir="auto"><strong>Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)</strong></p>
<ul dir="auto">
<li>Filename: <code class="notranslate">babel.config.js</code></li>
</ul>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"presets": [
[
"@babel/preset-env",
{
"useBuiltIns": "entry",
"corejs": 3,
"targets": "> 0.25%, not dead"
}
],
"@babel/preset-typescript",
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-transform-runtime",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-async-generator-functions",
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-proposal-optional-catch-binding",
"@babel/plugin-proposal-unicode-property-regex",
"@babel/plugin-proposal-export-namespace-from",
"@babel/plugin-proposal-logical-assignment-operators",
"@babel/plugin-proposal-nullish-coalescing-operator",
"@babel/plugin-proposal-numeric-separator",
"@babel/plugin-proposal-optional-chaining",
"@babel/plugin-transform-member-expression-literals",
"@babel/plugin-transform-property-literals",
"@babel/plugin-transform-reserved-words",
"@babel/plugin-transform-arrow-functions",
"@babel/plugin-transform-block-scoped-functions",
"@babel/plugin-transform-block-scoping",
"@babel/plugin-transform-classes",
"@babel/plugin-transform-computed-properties",
"@babel/plugin-transform-destructuring",
"@babel/plugin-transform-duplicate-keys",
"@babel/plugin-transform-for-of",
"@babel/plugin-transform-function-name",
"@babel/plugin-transform-instanceof",
"@babel/plugin-transform-literals",
"@babel/plugin-transform-object-super",
"@babel/plugin-transform-parameters",
"@babel/plugin-transform-shorthand-properties",
"@babel/plugin-transform-spread",
"@babel/plugin-transform-sticky-regex",
"@babel/plugin-transform-template-literals",
"@babel/plugin-transform-typeof-symbol",
"@babel/plugin-transform-unicode-escapes",
"@babel/plugin-transform-unicode-regex",
"@babel/plugin-transform-exponentiation-operator",
"@babel/plugin-transform-async-to-generator",
"@babel/plugin-transform-typescript"
]
}"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-s">"presets"</span>: <span class="pl-kos">[</span>
<span class="pl-kos">[</span>
<span class="pl-s">"@babel/preset-env"</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-s">"useBuiltIns"</span>: <span class="pl-s">"entry"</span><span class="pl-kos">,</span>
<span class="pl-s">"corejs"</span>: <span class="pl-c1">3</span><span class="pl-kos">,</span>
<span class="pl-s">"targets"</span>: <span class="pl-s">"> 0.25%, not dead"</span>
<span class="pl-kos">}</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/preset-typescript"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/preset-react"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"@babel/plugin-transform-runtime"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-proposal-class-properties"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-proposal-async-generator-functions"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-proposal-object-rest-spread"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-proposal-optional-catch-binding"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-proposal-unicode-property-regex"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-proposal-export-namespace-from"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-proposal-logical-assignment-operators"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-proposal-nullish-coalescing-operator"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-proposal-numeric-separator"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-proposal-optional-chaining"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-member-expression-literals"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-property-literals"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-reserved-words"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-arrow-functions"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-block-scoped-functions"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-block-scoping"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-classes"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-computed-properties"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-destructuring"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-duplicate-keys"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-for-of"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-function-name"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-instanceof"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-literals"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-object-super"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-parameters"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-shorthand-properties"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-spread"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-sticky-regex"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-template-literals"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-typeof-symbol"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-unicode-escapes"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-unicode-regex"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-exponentiation-operator"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-async-to-generator"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-transform-typescript"</span>
<span class="pl-kos">]</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Environment</strong></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>Babel version(s): ^7.12.9 => 7.12.9</li>
<li>Node/npm version: 12.18.2 - C:\Program Files\nodejs\node.EXE</li>
<li>OS: Windows 10 10.0.18363</li>
<li>Monorepo: no</li>
<li>How you are using Babel: webpack cli</li>
</ul>
<p dir="auto"><strong>Additional context</strong></p>
<p dir="auto">webpack.config.dev.js</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const path = require('path')
const webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
const WebpackPwaManifest = require('webpack-pwa-manifest')
const PATH_SOURCE = path.join(__dirname, './src')
const PATH_PUBLIC = path.join(__dirname, './public')
module.exports = {
mode: 'development',
target: 'web',
// webpack will take the files from ./src/index
entry: [
path.join(PATH_SOURCE, './index.tsx')
],
devtool: 'source-map',
// adding .ts and .tsx to resolve.extensions will help babel look for .ts and .tsx files to transpile
resolve: {
extensions: ['.wasm', '.ts', '.tsx', '.mjs', '.cjs', '.js', '.json', '.html']
},
stats: {
// warnings: false // in dev only -> suppress warnings
},
watchOptions: {
poll: true
},
module: {
rules: [
// we use babel-loader to load our jsx and tsx files
{
test: /\.(ts|js)x?$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader'
},
},
// css-loader to bundle all the css files into one file and style-loader to add all the styles inside the style tag of the document
{
test: /\.css$/,
use: ['style-loader', 'css-loader']
},
{
test: /\.json$/,
loader: 'json-loader',
type: 'javascript/auto'
},
{
test: /\.html$/,
exclude: /node_modules/,
loader: 'html-loader'
},
{
test: /\.(a?png|svg)$/,
loader: 'url-loader',
options: {
limit: 8192,
}
},
{
test: /\.(jpe?g|gif|bmp|mp3|mp4|ogg|wav|eot|ttf|woff|woff2)$/,
use: 'file-loader'
},
{
test: /\.ico$/,
loader: 'file-loader',
options: {
name: '[name].[ext]'
}
}
]
},
// development server configuration
devServer: {
hot: true,
port: 3000,
open: true,
// must be `true` for SPAs
historyApiFallback: true
},
optimization: {
splitChunks: {
cacheGroups: {
default: false,
vendors: false,
// vendor chunk
vendor: {
minChunks: 2,
// name of the chunk
name: 'vendor',
// async + async chunks
chunks: 'all',
// import file path containing node_modules
test: /node_modules/,
// priority
priority: 20
},
// common chunk
common: {
name: 'common',
minChunks: 2,
chunks: 'all',
priority: 10,
reuseExistingChunk: true,
enforce: true
}
}
}
},
plugins: [
new HtmlWebpackPlugin({
favicon: path.join(PATH_PUBLIC, './favicon.ico'),
template: path.join(PATH_PUBLIC, './index.html')
}),
new BundleAnalyzerPlugin(),
new WebpackPwaManifest({
name: 'example',
short_name: 'ex',
display: 'standalone',
theme_color: '#ffffff',
description: 'desc',
background_color: '#212121',
crossorigin: null, // can be null, use-credentials or anonymous
ios: {
'apple-mobile-web-app-title': 'Example',
'apple-mobile-web-app-status-bar-style': 'black'
},
icons: [
{
src: path.resolve('public/logo512.png'),
size: '512x512' // you can also use the specifications pattern
},
{
src: path.resolve('public/logo192.png'),
size: '192x192',
destination: path.join('icons', 'ios'),
ios: true
},
{
src: path.resolve('public/logo192.png'),
size: '192x192',
destination: path.join('icons', 'android')
}
]
}),
new webpack.HotModuleReplacementPlugin(),
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('development')
}
})
]
}"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">path</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'path'</span><span class="pl-kos">)</span>
<span class="pl-k">const</span> <span class="pl-s1">webpack</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'webpack'</span><span class="pl-kos">)</span>
<span class="pl-k">const</span> <span class="pl-v">HtmlWebpackPlugin</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'html-webpack-plugin'</span><span class="pl-kos">)</span>
<span class="pl-k">const</span> <span class="pl-v">BundleAnalyzerPlugin</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'webpack-bundle-analyzer'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">BundleAnalyzerPlugin</span>
<span class="pl-k">const</span> <span class="pl-v">WebpackPwaManifest</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'webpack-pwa-manifest'</span><span class="pl-kos">)</span>
<span class="pl-k">const</span> <span class="pl-c1">PATH_SOURCE</span> <span class="pl-c1">=</span> <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-s">'./src'</span><span class="pl-kos">)</span>
<span class="pl-k">const</span> <span class="pl-c1">PATH_PUBLIC</span> <span class="pl-c1">=</span> <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-s">'./public'</span><span class="pl-kos">)</span>
<span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">mode</span>: <span class="pl-s">'development'</span><span class="pl-kos">,</span>
<span class="pl-c1">target</span>: <span class="pl-s">'web'</span><span class="pl-kos">,</span>
<span class="pl-c">// webpack will take the files from ./src/index</span>
<span class="pl-c1">entry</span>: <span class="pl-kos">[</span>
<span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-c1">PATH_SOURCE</span><span class="pl-kos">,</span> <span class="pl-s">'./index.tsx'</span><span class="pl-kos">)</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-c1">devtool</span>: <span class="pl-s">'source-map'</span><span class="pl-kos">,</span>
<span class="pl-c">// adding .ts and .tsx to resolve.extensions will help babel look for .ts and .tsx files to transpile</span>
<span class="pl-c1">resolve</span>: <span class="pl-kos">{</span>
<span class="pl-c1">extensions</span>: <span class="pl-kos">[</span><span class="pl-s">'.wasm'</span><span class="pl-kos">,</span> <span class="pl-s">'.ts'</span><span class="pl-kos">,</span> <span class="pl-s">'.tsx'</span><span class="pl-kos">,</span> <span class="pl-s">'.mjs'</span><span class="pl-kos">,</span> <span class="pl-s">'.cjs'</span><span class="pl-kos">,</span> <span class="pl-s">'.js'</span><span class="pl-kos">,</span> <span class="pl-s">'.json'</span><span class="pl-kos">,</span> <span class="pl-s">'.html'</span><span class="pl-kos">]</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">stats</span>: <span class="pl-kos">{</span>
<span class="pl-c">// warnings: false // in dev only -> suppress warnings</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">watchOptions</span>: <span class="pl-kos">{</span>
<span class="pl-c1">poll</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">module</span>: <span class="pl-kos">{</span>
<span class="pl-c1">rules</span>: <span class="pl-kos">[</span>
<span class="pl-c">// we use babel-loader to load our jsx and tsx files</span>
<span class="pl-kos">{</span>
<span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span><span class="pl-kos">(</span>ts<span class="pl-c1">|</span>js<span class="pl-kos">)</span>x?<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span>
<span class="pl-c1">exclude</span>: <span class="pl-pds"><span class="pl-c1">/</span>node_modules<span class="pl-c1">/</span></span><span class="pl-kos">,</span>
<span class="pl-c1">use</span>: <span class="pl-kos">{</span>
<span class="pl-c1">loader</span>: <span class="pl-s">'babel-loader'</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c">// css-loader to bundle all the css files into one file and style-loader to add all the styles inside the style tag of the document</span>
<span class="pl-kos">{</span>
<span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span>css<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span>
<span class="pl-c1">use</span>: <span class="pl-kos">[</span><span class="pl-s">'style-loader'</span><span class="pl-kos">,</span> <span class="pl-s">'css-loader'</span><span class="pl-kos">]</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span>json<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span>
<span class="pl-c1">loader</span>: <span class="pl-s">'json-loader'</span><span class="pl-kos">,</span>
<span class="pl-c1">type</span>: <span class="pl-s">'javascript/auto'</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span>html<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span>
<span class="pl-c1">exclude</span>: <span class="pl-pds"><span class="pl-c1">/</span>node_modules<span class="pl-c1">/</span></span><span class="pl-kos">,</span>
<span class="pl-c1">loader</span>: <span class="pl-s">'html-loader'</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span><span class="pl-kos">(</span>a?png<span class="pl-c1">|</span>svg<span class="pl-kos">)</span><span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span>
<span class="pl-c1">loader</span>: <span class="pl-s">'url-loader'</span><span class="pl-kos">,</span>
<span class="pl-c1">options</span>: <span class="pl-kos">{</span>
<span class="pl-c1">limit</span>: <span class="pl-c1">8192</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span><span class="pl-kos">(</span>jpe?g<span class="pl-c1">|</span>gif<span class="pl-c1">|</span>bmp<span class="pl-c1">|</span>mp3<span class="pl-c1">|</span>mp4<span class="pl-c1">|</span>ogg<span class="pl-c1">|</span>wav<span class="pl-c1">|</span>eot<span class="pl-c1">|</span>ttf<span class="pl-c1">|</span>woff<span class="pl-c1">|</span>woff2<span class="pl-kos">)</span><span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span>
<span class="pl-c1">use</span>: <span class="pl-s">'file-loader'</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span>ico<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span>
<span class="pl-c1">loader</span>: <span class="pl-s">'file-loader'</span><span class="pl-kos">,</span>
<span class="pl-c1">options</span>: <span class="pl-kos">{</span>
<span class="pl-c1">name</span>: <span class="pl-s">'[name].[ext]'</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-c">// development server configuration</span>
<span class="pl-c1">devServer</span>: <span class="pl-kos">{</span>
<span class="pl-c1">hot</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">port</span>: <span class="pl-c1">3000</span><span class="pl-kos">,</span>
<span class="pl-c1">open</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c">// must be `true` for SPAs</span>
<span class="pl-c1">historyApiFallback</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">optimization</span>: <span class="pl-kos">{</span>
<span class="pl-c1">splitChunks</span>: <span class="pl-kos">{</span>
<span class="pl-c1">cacheGroups</span>: <span class="pl-kos">{</span>
<span class="pl-c1">default</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">vendors</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c">// vendor chunk</span>
<span class="pl-c1">vendor</span>: <span class="pl-kos">{</span>
<span class="pl-c1">minChunks</span>: <span class="pl-c1">2</span><span class="pl-kos">,</span>
<span class="pl-c">// name of the chunk</span>
<span class="pl-c1">name</span>: <span class="pl-s">'vendor'</span><span class="pl-kos">,</span>
<span class="pl-c">// async + async chunks</span>
<span class="pl-c1">chunks</span>: <span class="pl-s">'all'</span><span class="pl-kos">,</span>
<span class="pl-c">// import file path containing node_modules</span>
<span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span>node_modules<span class="pl-c1">/</span></span><span class="pl-kos">,</span>
<span class="pl-c">// priority</span>
<span class="pl-c1">priority</span>: <span class="pl-c1">20</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c">// common chunk</span>
<span class="pl-c1">common</span>: <span class="pl-kos">{</span>
<span class="pl-c1">name</span>: <span class="pl-s">'common'</span><span class="pl-kos">,</span>
<span class="pl-c1">minChunks</span>: <span class="pl-c1">2</span><span class="pl-kos">,</span>
<span class="pl-c1">chunks</span>: <span class="pl-s">'all'</span><span class="pl-kos">,</span>
<span class="pl-c1">priority</span>: <span class="pl-c1">10</span><span class="pl-kos">,</span>
<span class="pl-c1">reuseExistingChunk</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">enforce</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">plugins</span>: <span class="pl-kos">[</span>
<span class="pl-k">new</span> <span class="pl-v">HtmlWebpackPlugin</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">favicon</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-c1">PATH_PUBLIC</span><span class="pl-kos">,</span> <span class="pl-s">'./favicon.ico'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">template</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-c1">PATH_PUBLIC</span><span class="pl-kos">,</span> <span class="pl-s">'./index.html'</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-k">new</span> <span class="pl-v">BundleAnalyzerPlugin</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-k">new</span> <span class="pl-v">WebpackPwaManifest</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">name</span>: <span class="pl-s">'example'</span><span class="pl-kos">,</span>
<span class="pl-c1">short_name</span>: <span class="pl-s">'ex'</span><span class="pl-kos">,</span>
<span class="pl-c1">display</span>: <span class="pl-s">'standalone'</span><span class="pl-kos">,</span>
<span class="pl-c1">theme_color</span>: <span class="pl-s">'#ffffff'</span><span class="pl-kos">,</span>
<span class="pl-c1">description</span>: <span class="pl-s">'desc'</span><span class="pl-kos">,</span>
<span class="pl-c1">background_color</span>: <span class="pl-s">'#212121'</span><span class="pl-kos">,</span>
<span class="pl-c1">crossorigin</span>: <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-c">// can be null, use-credentials or anonymous</span>
<span class="pl-c1">ios</span>: <span class="pl-kos">{</span>
<span class="pl-s">'apple-mobile-web-app-title'</span>: <span class="pl-s">'Example'</span><span class="pl-kos">,</span>
<span class="pl-s">'apple-mobile-web-app-status-bar-style'</span>: <span class="pl-s">'black'</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">icons</span>: <span class="pl-kos">[</span>
<span class="pl-kos">{</span>
<span class="pl-c1">src</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s">'public/logo512.png'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">size</span>: <span class="pl-s">'512x512'</span> <span class="pl-c">// you can also use the specifications pattern</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">src</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s">'public/logo192.png'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">size</span>: <span class="pl-s">'192x192'</span><span class="pl-kos">,</span>
<span class="pl-c1">destination</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-s">'icons'</span><span class="pl-kos">,</span> <span class="pl-s">'ios'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">ios</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">src</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s">'public/logo192.png'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">size</span>: <span class="pl-s">'192x192'</span><span class="pl-kos">,</span>
<span class="pl-c1">destination</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-s">'icons'</span><span class="pl-kos">,</span> <span class="pl-s">'android'</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">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">HotModuleReplacementPlugin</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-k">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">DefinePlugin</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-s">'process.env'</span>: <span class="pl-kos">{</span>
<span class="pl-c1">NODE_ENV</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-s">'development'</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-kos">]</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">package.json</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"name": "hmv1",
"version": "0.1.0",
"description": "Example",
"main": "index.js",
"scripts": {
"bundle": "webpack --mode=production --config=webpack.config.js",
"start": "webpack serve --config=webpack.config.dev.js --mode=development --host 127.0.0.1",
"start_docker": "webpack serve --config=webpack.config.dev.js --mode=development --host 0.0.0.0",
"compose_start": "docker-compose -f docker-compose-dev.yml up --build",
"docker_build_dev": "docker build -f Dockerfile.dev -t react-dev-tag .",
"docker_start_dev": "docker run -v \"%cd%\":/var/www -v /var/www/node_modules -p 8080:8080 -ti --rm --name dev-react-name react-dev-tag",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "Marcus Whelan",
"license": "ISC",
"devDependencies": {
"@babel/core": "^7.12.9",
"@babel/plugin-proposal-async-generator-functions": "^7.12.1",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/plugin-proposal-export-namespace-from": "^7.12.1",
"@babel/plugin-proposal-logical-assignment-operators": "^7.12.1",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1",
"@babel/plugin-proposal-numeric-separator": "^7.12.7",
"@babel/plugin-proposal-object-rest-spread": "^7.12.1",
"@babel/plugin-proposal-optional-catch-binding": "^7.12.1",
"@babel/plugin-proposal-optional-chaining": "^7.12.7",
"@babel/plugin-proposal-unicode-property-regex": "^7.12.1",
"@babel/plugin-transform-arrow-functions": "^7.12.1",
"@babel/plugin-transform-async-to-generator": "^7.12.1",
"@babel/plugin-transform-block-scoped-functions": "^7.12.1",
"@babel/plugin-transform-block-scoping": "^7.12.1",
"@babel/plugin-transform-classes": "^7.12.1",
"@babel/plugin-transform-computed-properties": "^7.12.1",
"@babel/plugin-transform-destructuring": "^7.12.1",
"@babel/plugin-transform-duplicate-keys": "^7.12.1",
"@babel/plugin-transform-exponentiation-operator": "^7.12.1",
"@babel/plugin-transform-for-of": "^7.12.1",
"@babel/plugin-transform-function-name": "^7.12.1",
"@babel/plugin-transform-instanceof": "^7.12.1",
"@babel/plugin-transform-literals": "^7.12.1",
"@babel/plugin-transform-member-expression-literals": "^7.12.1",
"@babel/plugin-transform-object-super": "^7.12.1",
"@babel/plugin-transform-parameters": "^7.12.1",
"@babel/plugin-transform-property-literals": "^7.12.1",
"@babel/plugin-transform-reserved-words": "^7.12.1",
"@babel/plugin-transform-runtime": "^7.12.1",
"@babel/plugin-transform-shorthand-properties": "^7.12.1",
"@babel/plugin-transform-spread": "^7.12.1",
"@babel/plugin-transform-sticky-regex": "^7.12.7",
"@babel/plugin-transform-template-literals": "^7.12.1",
"@babel/plugin-transform-typeof-symbol": "^7.12.1",
"@babel/plugin-transform-typescript": "^7.12.1",
"@babel/plugin-transform-unicode-escapes": "^7.12.1",
"@babel/plugin-transform-unicode-regex": "^7.12.1",
"@types/crypto-js": "^4.0.1",
"@types/jest": "^26.0.15",
"@types/js-cookie": "^2.2.6",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@types/react-redux": "^7.1.11",
"@types/react-router": "^5.1.8",
"@types/react-router-dom": "^5.1.6",
"@types/redux-logger": "^3.0.8",
"@typescript-eslint/eslint-plugin": "^4.9.0",
"@typescript-eslint/eslint-plugin-tslint": "^4.9.0",
"@typescript-eslint/parser": "^4.9.0",
"babel-loader": "^8.2.2",
"clean-webpack-plugin": "^3.0.0",
"css-loader": "^5.0.1",
"eslint": "^7.14.0",
"eslint-plugin-jsdoc": "^30.7.8",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-react-hooks": "^4.2.0",
"fibers": "^5.0.0",
"file-loader": "^6.2.0",
"html-loader": "^1.3.2",
"html-webpack-plugin": "^4.5.0",
"identity-obj-proxy": "^3.0.0",
"imports-loader": "^1.2.0",
"json-loader": "^0.5.7",
"redux-logger": "^3.0.6",
"resolve-url-loader": "^3.1.2",
"source-map-loader": "^1.1.2",
"style-loader": "^2.0.0",
"ts-loader": "^8.0.11",
"typescript": "^4.1.2",
"url-loader": "^4.1.1",
"webpack": "^5.9.0",
"webpack-bundle-analyzer": "^4.2.0",
"webpack-cli": "^4.2.0",
"webpack-dev-server": "^4.0.0-beta.0",
"webpack-pwa-manifest": "^4.3.0"
},
"dependencies": {
"@babel/preset-env": "^7.12.7",
"@babel/preset-react": "^7.12.7",
"@babel/preset-typescript": "^7.12.7",
"@babel/runtime": "^7.12.5",
"@babel/runtime-corejs3": "^7.12.5",
"@material-ui/core": "^4.11.1",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "^4.0.0-alpha.56",
"axios": "^0.21.0",
"connected-react-router": "^6.8.0",
"crypto-js": "^4.0.0",
"history": "^5.0.0",
"jquery": "^3.5.1",
"js-cookie": "^2.2.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-redux": "^7.2.2",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0",
"react-spring": "^8.0.27",
"redux": "^4.0.5",
"redux-thunk": "^2.3.0"
}
}
"><pre class="notranslate">{
<span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>hmv1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>0.1.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"description"</span>: <span class="pl-s"><span class="pl-pds">"</span>Example<span class="pl-pds">"</span></span>,
<span class="pl-ent">"main"</span>: <span class="pl-s"><span class="pl-pds">"</span>index.js<span class="pl-pds">"</span></span>,
<span class="pl-ent">"scripts"</span>: {
<span class="pl-ent">"bundle"</span>: <span class="pl-s"><span class="pl-pds">"</span>webpack --mode=production --config=webpack.config.js<span class="pl-pds">"</span></span>,
<span class="pl-ent">"start"</span>: <span class="pl-s"><span class="pl-pds">"</span>webpack serve --config=webpack.config.dev.js --mode=development --host 127.0.0.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"start_docker"</span>: <span class="pl-s"><span class="pl-pds">"</span>webpack serve --config=webpack.config.dev.js --mode=development --host 0.0.0.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"compose_start"</span>: <span class="pl-s"><span class="pl-pds">"</span>docker-compose -f docker-compose-dev.yml up --build<span class="pl-pds">"</span></span>,
<span class="pl-ent">"docker_build_dev"</span>: <span class="pl-s"><span class="pl-pds">"</span>docker build -f Dockerfile.dev -t react-dev-tag .<span class="pl-pds">"</span></span>,
<span class="pl-ent">"docker_start_dev"</span>: <span class="pl-s"><span class="pl-pds">"</span>docker run -v <span class="pl-cce">\"</span>%cd%<span class="pl-cce">\"</span>:/var/www -v /var/www/node_modules -p 8080:8080 -ti --rm --name dev-react-name react-dev-tag<span class="pl-pds">"</span></span>,
<span class="pl-ent">"test"</span>: <span class="pl-s"><span class="pl-pds">"</span>echo <span class="pl-cce">\"</span>Error: no test specified<span class="pl-cce">\"</span> && exit 1<span class="pl-pds">"</span></span>
},
<span class="pl-ent">"keywords"</span>: [],
<span class="pl-ent">"author"</span>: <span class="pl-s"><span class="pl-pds">"</span>Marcus Whelan<span class="pl-pds">"</span></span>,
<span class="pl-ent">"license"</span>: <span class="pl-s"><span class="pl-pds">"</span>ISC<span class="pl-pds">"</span></span>,
<span class="pl-ent">"devDependencies"</span>: {
<span class="pl-ent">"@babel/core"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.9<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-proposal-async-generator-functions"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-proposal-class-properties"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-proposal-export-namespace-from"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-proposal-logical-assignment-operators"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-proposal-nullish-coalescing-operator"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-proposal-numeric-separator"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.7<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-proposal-object-rest-spread"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-proposal-optional-catch-binding"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-proposal-optional-chaining"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.7<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-proposal-unicode-property-regex"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-arrow-functions"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-async-to-generator"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-block-scoped-functions"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-block-scoping"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-classes"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-computed-properties"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-destructuring"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-duplicate-keys"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-exponentiation-operator"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-for-of"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-function-name"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-instanceof"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-literals"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-member-expression-literals"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-object-super"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-parameters"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-property-literals"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-reserved-words"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-runtime"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-shorthand-properties"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-spread"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-sticky-regex"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.7<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-template-literals"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-typeof-symbol"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-typescript"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-unicode-escapes"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/plugin-transform-unicode-regex"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@types/crypto-js"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.0.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@types/jest"</span>: <span class="pl-s"><span class="pl-pds">"</span>^26.0.15<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@types/js-cookie"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.2.6<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@types/react"</span>: <span class="pl-s"><span class="pl-pds">"</span>^17.0.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@types/react-dom"</span>: <span class="pl-s"><span class="pl-pds">"</span>^17.0.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@types/react-redux"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.1.11<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@types/react-router"</span>: <span class="pl-s"><span class="pl-pds">"</span>^5.1.8<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@types/react-router-dom"</span>: <span class="pl-s"><span class="pl-pds">"</span>^5.1.6<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@types/redux-logger"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.0.8<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@typescript-eslint/eslint-plugin"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.9.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@typescript-eslint/eslint-plugin-tslint"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.9.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@typescript-eslint/parser"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.9.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"babel-loader"</span>: <span class="pl-s"><span class="pl-pds">"</span>^8.2.2<span class="pl-pds">"</span></span>,
<span class="pl-ent">"clean-webpack-plugin"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.0.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"css-loader"</span>: <span class="pl-s"><span class="pl-pds">"</span>^5.0.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"eslint"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.14.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"eslint-plugin-jsdoc"</span>: <span class="pl-s"><span class="pl-pds">"</span>^30.7.8<span class="pl-pds">"</span></span>,
<span class="pl-ent">"eslint-plugin-no-null"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.0.2<span class="pl-pds">"</span></span>,
<span class="pl-ent">"eslint-plugin-react-hooks"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.2.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"fibers"</span>: <span class="pl-s"><span class="pl-pds">"</span>^5.0.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"file-loader"</span>: <span class="pl-s"><span class="pl-pds">"</span>^6.2.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"html-loader"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.3.2<span class="pl-pds">"</span></span>,
<span class="pl-ent">"html-webpack-plugin"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.5.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"identity-obj-proxy"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.0.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"imports-loader"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.2.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"json-loader"</span>: <span class="pl-s"><span class="pl-pds">"</span>^0.5.7<span class="pl-pds">"</span></span>,
<span class="pl-ent">"redux-logger"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.0.6<span class="pl-pds">"</span></span>,
<span class="pl-ent">"resolve-url-loader"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.1.2<span class="pl-pds">"</span></span>,
<span class="pl-ent">"source-map-loader"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.1.2<span class="pl-pds">"</span></span>,
<span class="pl-ent">"style-loader"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.0.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"ts-loader"</span>: <span class="pl-s"><span class="pl-pds">"</span>^8.0.11<span class="pl-pds">"</span></span>,
<span class="pl-ent">"typescript"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.1.2<span class="pl-pds">"</span></span>,
<span class="pl-ent">"url-loader"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.1.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"webpack"</span>: <span class="pl-s"><span class="pl-pds">"</span>^5.9.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"webpack-bundle-analyzer"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.2.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"webpack-cli"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.2.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"webpack-dev-server"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.0.0-beta.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"webpack-pwa-manifest"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.3.0<span class="pl-pds">"</span></span>
},
<span class="pl-ent">"dependencies"</span>: {
<span class="pl-ent">"@babel/preset-env"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.7<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/preset-react"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.7<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/preset-typescript"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.7<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/runtime"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.5<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@babel/runtime-corejs3"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.5<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@material-ui/core"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.11.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@material-ui/icons"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.9.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@material-ui/lab"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.0.0-alpha.56<span class="pl-pds">"</span></span>,
<span class="pl-ent">"axios"</span>: <span class="pl-s"><span class="pl-pds">"</span>^0.21.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"connected-react-router"</span>: <span class="pl-s"><span class="pl-pds">"</span>^6.8.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"crypto-js"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.0.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"history"</span>: <span class="pl-s"><span class="pl-pds">"</span>^5.0.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"jquery"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.5.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"js-cookie"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.2.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"react"</span>: <span class="pl-s"><span class="pl-pds">"</span>^17.0.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"react-dom"</span>: <span class="pl-s"><span class="pl-pds">"</span>^17.0.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"react-redux"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.2.2<span class="pl-pds">"</span></span>,
<span class="pl-ent">"react-router"</span>: <span class="pl-s"><span class="pl-pds">"</span>^5.2.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"react-router-dom"</span>: <span class="pl-s"><span class="pl-pds">"</span>^5.2.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"react-spring"</span>: <span class="pl-s"><span class="pl-pds">"</span>^8.0.27<span class="pl-pds">"</span></span>,
<span class="pl-ent">"redux"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.0.5<span class="pl-pds">"</span></span>,
<span class="pl-ent">"redux-thunk"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.3.0<span class="pl-pds">"</span></span>
}
}
</pre></div>
<h1 dir="auto">The error</h1>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="docker-compose -f docker-compose-dev.yml up
Recreating docker_react_dev_container ... done
Attaching to docker_react_dev_container
docker_react_dev_container |
docker_react_dev_container | > [email protected] start_docker /var/www
docker_react_dev_container | > webpack serve --config=webpack.config.dev.js --mode=development --host 0.0.0.0
docker_react_dev_container |
docker_react_dev_container | <i> [webpack-dev-server] Project is running at http://0.0.0.0:3000/
docker_react_dev_container | <i> [webpack-dev-server] Content not from webpack is served from /var/www
docker_react_dev_container | <i> [webpack-dev-server] 404s will fallback to /index.html
docker_react_dev_container | (node:23) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
docker_react_dev_container | BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
docker_react_dev_container | Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
docker_react_dev_container | Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*.
docker_react_dev_container | (Use `node --trace-deprecation ...` to show where the warning was created)
docker_react_dev_container | Error parsing bundle asset "/var/www/dist/main.js": no such file
docker_react_dev_container |
docker_react_dev_container | No bundles were parsed. Analyzer will show only original module sizes from stats file.
docker_react_dev_container |
docker_react_dev_container | Webpack Bundle Analyzer is started at http://127.0.0.1:8888
docker_react_dev_container | Use Ctrl+C to close it
docker_react_dev_container | <e> [webpack-dev-middleware] assets by path icons/ 46.3 KiB
docker_react_dev_container | <e> asset icons/android/icon_192x192.4b84f1f7e81945d33680dacbfc230eaa.png 23.1 KiB [emitted]
docker_react_dev_container | <e> asset icons/ios/icon_192x192.4b84f1f7e81945d33680dacbfc230eaa.png 23.1 KiB [emitted]
docker_react_dev_container | <e> asset main.js 250 KiB [emitted] (name: main) 1 related asset
docker_react_dev_container | <e> asset icon_512x512.27f2880700cd02fe09aa71289ac8b7f7.png 29.8 KiB [emitted]
docker_react_dev_container | <e> asset favicon.ico 3.78 KiB [emitted]
docker_react_dev_container | <e> asset index.html 1.03 KiB [emitted]
docker_react_dev_container | <e> asset manifest.de05c92f23f6c327d93c915bc9ebcc42.json 656 bytes [emitted]
docker_react_dev_container | <e> runtime modules 24.8 KiB 10 modules
docker_react_dev_container | <e> cacheable modules 193 KiB
docker_react_dev_container | <e> modules by path ./node_modules/webpack-dev-server/client/ 71 KiB 12 modules
docker_react_dev_container | <e> modules by path ./node_modules/webpack/hot/*.js 4.3 KiB 4 modules
docker_react_dev_container | <e> modules by path ./node_modules/html-entities/lib/*.js 57.9 KiB 4 modules
docker_react_dev_container | <e> modules by path ./node_modules/url/ 37.4 KiB 3 modules
docker_react_dev_container | <e> modules by path ./node_modules/querystring/*.js 4.51 KiB
docker_react_dev_container | <e> ./node_modules/querystring/index.js 127 bytes [built] [code generated]
docker_react_dev_container | <e> ./node_modules/querystring/decode.js 2.34 KiB [built] [code generated]
docker_react_dev_container | <e> ./node_modules/querystring/encode.js 2.04 KiB [built] [code generated]
docker_react_dev_container | <e> ./src/index.tsx 39 bytes [built] [code generated] [1 error]
docker_react_dev_container | <e> ./node_modules/ansi-html/index.js 4.16 KiB [built] [code generated]
docker_react_dev_container | <e> ./node_modules/events/events.js 13.8 KiB [built] [code generated]
docker_react_dev_container | <e> ./node_modules/webpack/hot/ sync nonrecursive ^\.\/log$ 170 bytes [built] [code generated]
docker_react_dev_container | <e>
docker_react_dev_container | <e> ERROR in ./src/index.tsx
docker_react_dev_container | <e> Module build failed (from ./node_modules/babel-loader/lib/index.js):
docker_react_dev_container | <e> Error: Cannot find module '@babel/plugin-transform-runtime' from '/var/www'
docker_react_dev_container | <e> at Function.resolveSync [as sync] (/var/www/node_modules/resolve/lib/sync.js:90:15)
docker_react_dev_container | <e> at resolveStandardizedName (/var/www/node_modules/@babel/core/lib/config/files/plugins.js:101:31)
docker_react_dev_container | <e> at resolvePlugin (/var/www/node_modules/@babel/core/lib/config/files/plugins.js:54:10)
docker_react_dev_container | <e> at loadPlugin (/var/www/node_modules/@babel/core/lib/config/files/plugins.js:62:20)
docker_react_dev_container | <e> at createDescriptor (/var/www/node_modules/@babel/core/lib/config/config-descriptors.js:154:9)
docker_react_dev_container | <e> at /var/www/node_modules/@babel/core/lib/config/config-descriptors.js:109:50
docker_react_dev_container | <e> at Array.map (<anonymous>)
docker_react_dev_container | <e> at createDescriptors (/var/www/node_modules/@babel/core/lib/config/config-descriptors.js:109:29)
docker_react_dev_container | <e> at createPluginDescriptors (/var/www/node_modules/@babel/core/lib/config/config-descriptors.js:105:10)
docker_react_dev_container | <e> at plugins (/var/www/node_modules/@babel/core/lib/config/config-descriptors.js:40:19)
docker_react_dev_container | <e>
docker_react_dev_container | <e> webpack 5.9.0 compiled with 1 error in 5969 ms
docker_react_dev_container | <i> [webpack-dev-middleware] Failed to compile.
"><pre class="notranslate">docker-compose -f docker-compose-dev.yml up
Recreating docker_react_dev_container ... <span class="pl-k">done</span>
Attaching to docker_react_dev_container
docker_react_dev_container <span class="pl-k">|</span>
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k">></span> [email protected] start_docker /var/www
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k">></span> webpack serve --config=webpack.config.dev.js --mode=development --host 0.0.0.0
docker_react_dev_container <span class="pl-k">|</span>
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>i<span class="pl-k">></span> [webpack-dev-server] Project is running at http://0.0.0.0:3000/
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>i<span class="pl-k">></span> [webpack-dev-server] Content not from webpack is served from /var/www
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>i<span class="pl-k">></span> [webpack-dev-server] 404s will fallback to /index.html
docker_react_dev_container <span class="pl-k">|</span> (node:23) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen <span class="pl-k">in</span> future, all modifications are deprecated.
docker_react_dev_container <span class="pl-k">|</span> BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
docker_react_dev_container <span class="pl-k">|</span> Do changes to assets earlier, e. g. <span class="pl-k">in</span> Compilation.hooks.processAssets.
docker_react_dev_container <span class="pl-k">|</span> Make sure to <span class="pl-k">select</span> <span class="pl-smi">an</span> appropriate stage from Compilation.PROCESS_ASSETS_STAGE_<span class="pl-k">*</span>.
docker_react_dev_container <span class="pl-k">|</span> (Use <span class="pl-s"><span class="pl-pds">`</span>node --trace-deprecation ...<span class="pl-pds">`</span></span> to show where the warning was created)
docker_react_dev_container <span class="pl-k">|</span> Error parsing bundle asset <span class="pl-s"><span class="pl-pds">"</span>/var/www/dist/main.js<span class="pl-pds">"</span></span>: no such file
docker_react_dev_container <span class="pl-k">|</span>
docker_react_dev_container <span class="pl-k">|</span> No bundles were parsed. Analyzer will show only original module sizes from stats file.
docker_react_dev_container <span class="pl-k">|</span>
docker_react_dev_container <span class="pl-k">|</span> Webpack Bundle Analyzer is started at http://127.0.0.1:8888
docker_react_dev_container <span class="pl-k">|</span> Use Ctrl+C to close it
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> [webpack-dev-middleware] assets by path icons/ 46.3 KiB
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> asset icons/android/icon_192x192.4b84f1f7e81945d33680dacbfc230eaa.png 23.1 KiB [emitted]
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> asset icons/ios/icon_192x192.4b84f1f7e81945d33680dacbfc230eaa.png 23.1 KiB [emitted]
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> asset main.js 250 KiB [emitted] (name: main) 1 related asset
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> asset icon_512x512.27f2880700cd02fe09aa71289ac8b7f7.png 29.8 KiB [emitted]
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> asset favicon.ico 3.78 KiB [emitted]
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> asset index.html 1.03 KiB [emitted]
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> asset manifest.de05c92f23f6c327d93c915bc9ebcc42.json 656 bytes [emitted]
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> runtime modules 24.8 KiB 10 modules
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> cacheable modules 193 KiB
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> modules by path ./node_modules/webpack-dev-server/client/ 71 KiB 12 modules
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> modules by path ./node_modules/webpack/hot/<span class="pl-k">*</span>.js 4.3 KiB 4 modules
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> modules by path ./node_modules/html-entities/lib/<span class="pl-k">*</span>.js 57.9 KiB 4 modules
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> modules by path ./node_modules/url/ 37.4 KiB 3 modules
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> modules by path ./node_modules/querystring/<span class="pl-k">*</span>.js 4.51 KiB
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> ./node_modules/querystring/index.js 127 bytes [built] [code generated]
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> ./node_modules/querystring/decode.js 2.34 KiB [built] [code generated]
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> ./node_modules/querystring/encode.js 2.04 KiB [built] [code generated]
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> ./src/index.tsx 39 bytes [built] [code generated] [1 error]
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> ./node_modules/ansi-html/index.js 4.16 KiB [built] [code generated]
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> ./node_modules/events/events.js 13.8 KiB [built] [code generated]
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> ./node_modules/webpack/hot/ sync nonrecursive ^<span class="pl-cce">\.\/</span>log$ 170 bytes [built] [code generated]
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span>
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> ERROR <span class="pl-k">in</span> ./src/index.tsx
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> Module build failed (from ./node_modules/babel-loader/lib/index.js):
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> Error: Cannot find module <span class="pl-s"><span class="pl-pds">'</span>@babel/plugin-transform-runtime<span class="pl-pds">'</span></span> from <span class="pl-s"><span class="pl-pds">'</span>/var/www<span class="pl-pds">'</span></span>
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> at Function.resolveSync [as sync] (/var/www/node_modules/resolve/lib/sync.js:90:15)
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> at resolveStandardizedName (/var/www/node_modules/@babel/core/lib/config/files/plugins.js:101:31)
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> at resolvePlugin (/var/www/node_modules/@babel/core/lib/config/files/plugins.js:54:10)
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> at loadPlugin (/var/www/node_modules/@babel/core/lib/config/files/plugins.js:62:20)
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> at createDescriptor (/var/www/node_modules/@babel/core/lib/config/config-descriptors.js:154:9)
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> at /var/www/node_modules/@babel/core/lib/config/config-descriptors.js:109:50
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> at Array.map (<span class="pl-k"><</span>anonymous<span class="pl-k">></span>)
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> at createDescriptors (/var/www/node_modules/@babel/core/lib/config/config-descriptors.js:109:29)
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> at createPluginDescriptors (/var/www/node_modules/@babel/core/lib/config/config-descriptors.js:105:10)
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> at plugins (/var/www/node_modules/@babel/core/lib/config/config-descriptors.js:40:19)
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span>
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>e<span class="pl-k">></span> webpack 5.9.0 compiled with 1 error <span class="pl-k">in</span> 5969 ms
docker_react_dev_container <span class="pl-k">|</span> <span class="pl-k"><</span>i<span class="pl-k">></span> [webpack-dev-middleware] Failed to compile.
</pre></div> | 0 |
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 3.4</li>
<li>Operating System / Platform => Windows 64 Bit</li>
<li>Compiler => Visual Studio 2019</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I use cmake to build opencv 3.4, and there is a warning about OpenCV_RUNTIME.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CMake Warning at cmake/OpenCVDetectCXXCompiler.cmake:147 (message):
OpenCV does not recognize MSVC_VERSION "1921". Cannot set OpenCV_RUNTIME
Call Stack (most recent call first):
CMakeLists.txt:157 (include)"><pre class="notranslate"><code class="notranslate">CMake Warning at cmake/OpenCVDetectCXXCompiler.cmake:147 (message):
OpenCV does not recognize MSVC_VERSION "1921". Cannot set OpenCV_RUNTIME
Call Stack (most recent call first):
CMakeLists.txt:157 (include)
</code></pre></div>
<p dir="auto">I check the file OpenCVDetectCXXCompiler.cmake, and in line 132-148.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" if(MSVC_VERSION EQUAL 1400)
set(OpenCV_RUNTIME vc8)
elseif(MSVC_VERSION EQUAL 1500)
set(OpenCV_RUNTIME vc9)
elseif(MSVC_VERSION EQUAL 1600)
set(OpenCV_RUNTIME vc10)
elseif(MSVC_VERSION EQUAL 1700)
set(OpenCV_RUNTIME vc11)
elseif(MSVC_VERSION EQUAL 1800)
set(OpenCV_RUNTIME vc12)
elseif(MSVC_VERSION EQUAL 1900)
set(OpenCV_RUNTIME vc14)
elseif(MSVC_VERSION MATCHES "^191[0-9]$")
set(OpenCV_RUNTIME vc15)
else()
message(WARNING "OpenCV does not recognize MSVC_VERSION \"${MSVC_VERSION}\". Cannot set OpenCV_RUNTIME")
endif()"><pre class="notranslate"><code class="notranslate"> if(MSVC_VERSION EQUAL 1400)
set(OpenCV_RUNTIME vc8)
elseif(MSVC_VERSION EQUAL 1500)
set(OpenCV_RUNTIME vc9)
elseif(MSVC_VERSION EQUAL 1600)
set(OpenCV_RUNTIME vc10)
elseif(MSVC_VERSION EQUAL 1700)
set(OpenCV_RUNTIME vc11)
elseif(MSVC_VERSION EQUAL 1800)
set(OpenCV_RUNTIME vc12)
elseif(MSVC_VERSION EQUAL 1900)
set(OpenCV_RUNTIME vc14)
elseif(MSVC_VERSION MATCHES "^191[0-9]$")
set(OpenCV_RUNTIME vc15)
else()
message(WARNING "OpenCV does not recognize MSVC_VERSION \"${MSVC_VERSION}\". Cannot set OpenCV_RUNTIME")
endif()
</code></pre></div>
<p dir="auto">Can I just add MSVC_VERSION 1921 like this, or something else?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" elseif(MSVC_VERSION MATCHES "^192[0-9]$")
set(OpenCV_RUNTIME vc16)"><pre class="notranslate"><code class="notranslate"> elseif(MSVC_VERSION MATCHES "^192[0-9]$")
set(OpenCV_RUNTIME vc16)
</code></pre></div>
<h5 dir="auto">Steps to reproduce</h5> | <h3 dir="auto">System Information</h3>
<p dir="auto">Version:<br>
opencv-python 4.7.0.72</p>
<p dir="auto">here is the image:<br>
<code class="notranslate">https://s3.ap-northeast-2.amazonaws.com/com.liveschole/common/1679969040122.png</code></p>
<p dir="auto">here is the code.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="img_path = <download image path>
img = cv2.imread(img_path)"><pre class="notranslate"><code class="notranslate">img_path = <download image path>
img = cv2.imread(img_path)
</code></pre></div>
<p dir="auto">here is the error code.<br>
<code class="notranslate">libpng error: Read Error</code></p> | 0 |
<p dir="auto">Rust should support a no extra attribute and flag. This would be useful for me so I could:</p>
<ul dir="auto">
<li>compile my own hacked version of extra like <code class="notranslate">rustc rust/src/libextra/extra.rs --output-dir .</code></li>
<li>compile a regressing benchmark like <code class="notranslate">rustc -L . -Z no-extra rust/src/test/bench/msgsend-mutex-arcs.rs -o mutex-bench</code></li>
<li>and then run the benchmark file like <code class="notranslate">./mutex-bench</code></li>
</ul>
<p dir="auto">This would greatly speed up time hunting for the regression in mutex performance for my pull request <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="16607468" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/7701" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/7701/hovercard" href="https://github.com/rust-lang/rust/pull/7701">#7701</a> .</p> | <p dir="auto">Once we can declare lifetime parameters, there is no reason not to permit them in type bounds. Also, I am not entirely sure if the way we are handling them is correct/sound. I've tagged places where such bounds appear with FIXMEs so that I can look into them later.</p>
<hr>
<p dir="auto">Example:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="trait Iterable<'a> {
fn my_iter(&'a self);
}
fn foo<'a, C: Iterable<'a>>(c: C) {
c.my_iter();
}
fn main() { }"><pre class="notranslate"><span class="pl-k">trait</span> <span class="pl-smi">Iterable</span><span class="pl-kos"><</span><span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-k">fn</span> <span class="pl-en">my_iter</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-c1">'</span><span class="pl-ent">a</span> <span class="pl-smi">self</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos"><</span><span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">,</span> <span class="pl-smi">C</span><span class="pl-kos">:</span> <span class="pl-smi">Iterable</span><span class="pl-kos"><</span><span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">></span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-s1">c</span><span class="pl-kos">:</span> <span class="pl-smi">C</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
c<span class="pl-kos">.</span><span class="pl-en">my_iter</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="5121.rs:6:5: 6:6 error: internal compiler error: Cannot relate bound region: ReLateBound(12, BrNamed(syntax::ast::DefId{crate: 0u32, node: 21u32}, a)) <= ReInfer(1)
This message reflects a bug in the Rust compiler.
We would appreciate a bug report: https://github.com/mozilla/rust/wiki/HOWTO-submit-a-Rust-bug-report
5121.rs:6 c.my_iter();
^
task 'rustc' failed at 'explicit failure', /home/huon/rust/src/libsyntax/diagnostic.rs:41
task '<main>' failed at 'explicit failure', /home/huon/rust/src/librustc/lib.rs:440"><pre class="notranslate"><code class="notranslate">5121.rs:6:5: 6:6 error: internal compiler error: Cannot relate bound region: ReLateBound(12, BrNamed(syntax::ast::DefId{crate: 0u32, node: 21u32}, a)) <= ReInfer(1)
This message reflects a bug in the Rust compiler.
We would appreciate a bug report: https://github.com/mozilla/rust/wiki/HOWTO-submit-a-Rust-bug-report
5121.rs:6 c.my_iter();
^
task 'rustc' failed at 'explicit failure', /home/huon/rust/src/libsyntax/diagnostic.rs:41
task '<main>' failed at 'explicit failure', /home/huon/rust/src/librustc/lib.rs:440
</code></pre></div>
<hr>
<p dir="auto">pnkfelix: I am adding a checklist to the bottom of this bug, where the unchecked issues represent problems that still remain unfixed (and the entire list of issues were closed as duplicates of this ticket).</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="22395368" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/10391" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/10391/hovercard" href="https://github.com/rust-lang/rust/issues/10391">#10391</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="22630846" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/10467" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/10467/hovercard" href="https://github.com/rust-lang/rust/issues/10467">#10467</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="23893691" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/10841" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/10841/hovercard" href="https://github.com/rust-lang/rust/issues/10841">#10841</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="23939524" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/10868" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/10868/hovercard" href="https://github.com/rust-lang/rust/issues/10868">#10868</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="24399843" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/11016" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/11016/hovercard" href="https://github.com/rust-lang/rust/issues/11016">#11016</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="25389050" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/11446" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/11446/hovercard" href="https://github.com/rust-lang/rust/issues/11446">#11446</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="26453035" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/11881" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/11881/hovercard" href="https://github.com/rust-lang/rust/issues/11881">#11881</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="26778222" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/12008" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/12008/hovercard" href="https://github.com/rust-lang/rust/issues/12008">#12008</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="29299812" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/12851" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/12851/hovercard" href="https://github.com/rust-lang/rust/issues/12851">#12851</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="12788148" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/5715" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/5715/hovercard" href="https://github.com/rust-lang/rust/issues/5715">#5715</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="26739071" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/11971" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/11971/hovercard" href="https://github.com/rust-lang/rust/issues/11971">#11971</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="29319894" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/12856" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/12856/hovercard" href="https://github.com/rust-lang/rust/issues/12856">#12856</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="29321161" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/12857" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/12857/hovercard" href="https://github.com/rust-lang/rust/issues/12857">#12857</a></li>
</ul> | 0 |
<p dir="auto">Elastic Search Version: 0.90.1<br>
Number of servers: 16<br>
Nodes: 32 (2 nodes per server)</p>
<p dir="auto">When using N/2+1 to set the "discovery.zen.minimum_master_nodes":</p>
<p dir="auto"><strong>discovery.zen.minimum_master_nodes: 17</strong></p>
<p dir="auto">The node will never join the cluster. I can set it to:</p>
<p dir="auto"><strong>discovery.zen.minimum_master_nodes: 5</strong></p>
<p dir="auto">And it joins, but setting it to any number above 5 and it all not join.</p>
<p dir="auto">Currently I have 4 hosts in the "discovery.zen.ping.unicast.hosts: "</p>
<p dir="auto"><strong>discovery.zen.ping.unicast.hosts: ["node1", "node6", "node11", "node16"]</strong></p>
<p dir="auto">If I change "discovery.zen.minimum_master_nodes: 5" to "6" the node will not join the cluster. However if I add an additional host to "discovery.zen.ping.unicast.hosts:" the node will then join the cluster. This behavior is consistant, +1 to master_node and I need to add a host to unicast setting.</p> | <p dir="auto">If you have <code class="notranslate">minimum_master_nodes</code> set and you don't supply enough nodes in <code class="notranslate">d.z.p.unicast.hosts</code>, a node can fail to join the cluster. Described at <a href="http://thread.gmane.org/gmane.comp.search.elasticsearch.user/740" rel="nofollow">http://thread.gmane.org/gmane.comp.search.elasticsearch.user/740</a>.</p> | 1 |
<p dir="auto">Try this:</p>
<p dir="auto"><code class="notranslate">x = Float16[2.3 4.3; 3.4 5.6]</code><br>
<code class="notranslate">svd(x)</code></p>
<p dir="auto">The returned eigenvectors and eigenvalues are in <code class="notranslate">Float32</code>. I think they should be in <code class="notranslate">Float16</code>.</p>
<p dir="auto">Compare to the behavior of <code class="notranslate">svd(x)</code> where <code class="notranslate">x</code> is <code class="notranslate">Float32</code>, or <code class="notranslate">Float64</code>. In these cases the result has the same type of <code class="notranslate">x</code>.</p> | <p dir="auto">At this point, Float16 is in a kind of weird limbo where it is sort of a storage type but we keep haphazardly adding more and more functionality to it. I think we really need to figure out where to draw the line here. Either we severely limit the scope of Float16's functionality and stop using it in tests for anything but converting to and from other numeric types, or we just go full throttle and make it a full computation type with as much functionality as Float32 or Float64 – albeit slower, since many operations will not be implemented as native machine ops.</p> | 1 |
<p dir="auto">Using Django 1.4.3, django-celery 3.0.11 and celery 3.0.16. In settings configuration I have USE_TZ=Yes and I am using redis as a queue manager.</p>
<p dir="auto">After some time the server is running,</p>
<p dir="auto">My celery is restarting every time showing this error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2013-05-06 04:00:01,586: ERROR/MainProcess] Unrecoverable error: TypeError("can't compare offset-naive and offset-aware datetimes",)
Traceback (most recent call last):
File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/__init__.py", line 363, in start
component.start()
File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 395, in start
self.consume_messages()
File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 480, in consume_messages
readers[fileno](fileno, event)
File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/kombu/transport/redis.py", line 770, in handle_event
self._callbacks[queue](message)
File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/kombu/transport/virtual/__init__.py", line 480, in _callback
return callback(message)
File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/kombu/messaging.py", line 562, in _receive_callback
return on_m(message) if on_m else self.receive(decoded, message)
File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/kombu/messaging.py", line 531, in receive
[callback(body, message) for callback in callbacks]
File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 438, in on_task_received
strategies[name](message, body, message.ack_log_error)
File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/strategy.py", line 25, in task_message_handler
delivery_info=message.delivery_info))
File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 511, in on_task
if task.revoked():
File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/job.py", line 296, in revoked
expired = self.maybe_expire()
File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/job.py", line 267, in maybe_expire
if now > self.expires:
TypeError: can't compare offset-naive and offset-aware datetimes
[2013-05-06 04:00:01,589: INFO/MainProcess] Celerybeat: Shutting down...
[2013-05-06 04:00:01,590: WARNING/MainProcess] Restoring 1 unacknowledged message(s)."><pre class="notranslate"><code class="notranslate">[2013-05-06 04:00:01,586: ERROR/MainProcess] Unrecoverable error: TypeError("can't compare offset-naive and offset-aware datetimes",)
Traceback (most recent call last):
File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/__init__.py", line 363, in start
component.start()
File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 395, in start
self.consume_messages()
File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 480, in consume_messages
readers[fileno](fileno, event)
File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/kombu/transport/redis.py", line 770, in handle_event
self._callbacks[queue](message)
File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/kombu/transport/virtual/__init__.py", line 480, in _callback
return callback(message)
File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/kombu/messaging.py", line 562, in _receive_callback
return on_m(message) if on_m else self.receive(decoded, message)
File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/kombu/messaging.py", line 531, in receive
[callback(body, message) for callback in callbacks]
File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 438, in on_task_received
strategies[name](message, body, message.ack_log_error)
File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/strategy.py", line 25, in task_message_handler
delivery_info=message.delivery_info))
File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 511, in on_task
if task.revoked():
File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/job.py", line 296, in revoked
expired = self.maybe_expire()
File "/home/mediquo/Envs/mediquo/local/lib/python2.7/site-packages/celery/worker/job.py", line 267, in maybe_expire
if now > self.expires:
TypeError: can't compare offset-naive and offset-aware datetimes
[2013-05-06 04:00:01,589: INFO/MainProcess] Celerybeat: Shutting down...
[2013-05-06 04:00:01,590: WARNING/MainProcess] Restoring 1 unacknowledged message(s).
</code></pre></div> | <p dir="auto">I believe this issue is supposed to be fixed in the versions of DjCelery and Celery I'm using, but I'm still getting TypeErrors thrown when I try any variation of python manage.py celeryd</p>
<p dir="auto">Of note, I'm also using Postgre 9.1.9 on Ubuntu and a Linode server.</p>
<p dir="auto">Here's the traceback:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" [2013-04-19 15:35:30,610: WARNING/MainProcess] celery@convconv ready.
[2013-04-19 15:35:30,657: ERROR/MainProcess] Unrecoverable error: TypeError("can't compare offset-naive and offset-aware datetimes",)
Traceback (most recent call last):
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/__init__.py", line 363, in start
component.start()
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 395, in start
self.consume_messages()
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 480, in consume_messages
readers[fileno](fileno, event)
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/kombu/connection.py", line 291, in drain_nowait
self.drain_events(timeout=0)
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/kombu/connection.py", line 280, in drain_events
return self.transport.drain_events(self.connection, **kwargs)
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/kombu/transport/pyamqp.py", line 91, in drain_events
return connection.drain_events(**kwargs)
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/amqp/connection.py", line 288, in drain_events
return amqp_method(channel, args, content)
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/amqp/channel.py", line 1886, in _basic_deliver
fun(msg)
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/kombu/messaging.py", line 562, in _receive_callback
return on_m(message) if on_m else self.receive(decoded, message)
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/kombu/messaging.py", line 531, in receive
[callback(body, message) for callback in callbacks]
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 438, in on_task_received
strategies[name](message, body, message.ack_log_error)
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/strategy.py", line 25, in task_message_handler
delivery_info=message.delivery_info))
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 511, in on_task
if task.revoked():
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/job.py", line 296, in revoked
expired = self.maybe_expire()
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/job.py", line 267, in maybe_expire
if now > self.expires:
TypeError: can't compare offset-naive and offset-aware datetimes"><pre class="notranslate"><code class="notranslate"> [2013-04-19 15:35:30,610: WARNING/MainProcess] celery@convconv ready.
[2013-04-19 15:35:30,657: ERROR/MainProcess] Unrecoverable error: TypeError("can't compare offset-naive and offset-aware datetimes",)
Traceback (most recent call last):
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/__init__.py", line 363, in start
component.start()
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 395, in start
self.consume_messages()
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 480, in consume_messages
readers[fileno](fileno, event)
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/kombu/connection.py", line 291, in drain_nowait
self.drain_events(timeout=0)
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/kombu/connection.py", line 280, in drain_events
return self.transport.drain_events(self.connection, **kwargs)
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/kombu/transport/pyamqp.py", line 91, in drain_events
return connection.drain_events(**kwargs)
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/amqp/connection.py", line 288, in drain_events
return amqp_method(channel, args, content)
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/amqp/channel.py", line 1886, in _basic_deliver
fun(msg)
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/kombu/messaging.py", line 562, in _receive_callback
return on_m(message) if on_m else self.receive(decoded, message)
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/kombu/messaging.py", line 531, in receive
[callback(body, message) for callback in callbacks]
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 438, in on_task_received
strategies[name](message, body, message.ack_log_error)
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/strategy.py", line 25, in task_message_handler
delivery_info=message.delivery_info))
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 511, in on_task
if task.revoked():
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/job.py", line 296, in revoked
expired = self.maybe_expire()
File "/home/converseon_admin/.virtualenvs/SELFSERVE/local/lib/python2.7/site-packages/celery/worker/job.py", line 267, in maybe_expire
if now > self.expires:
TypeError: can't compare offset-naive and offset-aware datetimes
</code></pre></div> | 1 |
<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">When plotting with <code class="notranslate">%matplotlib notebook</code>, the canvas gets cropped to a small section in the top left corner.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<p dir="auto">When running the following code:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="%matplotlib notebook
import matplotlib.pyplot as plt
import numpy as np
fig, ax = plt.subplots()
ax.scatter(range(10), range(10))"><pre class="notranslate"><span class="pl-c1">%</span><span class="pl-s1">matplotlib</span> <span class="pl-s1">notebook</span>
<span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>()
<span class="pl-s1">ax</span>.<span class="pl-en">scatter</span>(<span class="pl-en">range</span>(<span class="pl-c1">10</span>), <span class="pl-en">range</span>(<span class="pl-c1">10</span>))</pre></div>
<p dir="auto">I get the following output in <strong>Chrome</strong>:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/ad4b056b3c2275c5cd7ca7f02058dba6fa21b5b8028bd7e5968bd8bd4624e613/68747470733a2f2f692e696d6775722e636f6d2f636552354536612e706e67"><img src="https://camo.githubusercontent.com/ad4b056b3c2275c5cd7ca7f02058dba6fa21b5b8028bd7e5968bd8bd4624e613/68747470733a2f2f692e696d6775722e636f6d2f636552354536612e706e67" alt="https://i.imgur.com/ceR5E6a.png" data-canonical-src="https://i.imgur.com/ceR5E6a.png" style="max-width: 100%;"></a></p>
<p dir="auto">As you can see, the interactive plot is cropped to the top left corner. Inspecting the HTML shows that the height and width are <code class="notranslate">undefined</code>. Therefore, chrome defaults to the size 300 x 150</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<canvas
class="mpl-canvas"
style="width: undefinedpx; height: undefinedpx;"
width="NaN"
height="NaN">
</canvas>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">canvas</span>
<span class="pl-c1">class</span>="<span class="pl-s">mpl-canvas</span>"
<span class="pl-c1">style</span>="<span class="pl-s">width: undefinedpx; height: undefinedpx;</span>"
<span class="pl-c1">width</span>="<span class="pl-s">NaN</span>"
<span class="pl-c1">height</span>="<span class="pl-s">NaN</span>"<span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">canvas</span><span class="pl-kos">></span></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/3aed4051c06578d1eedbc234d8864d9cb13325e6c2d0d4cce1f562a8ab030e31/68747470733a2f2f692e696d6775722e636f6d2f545170757a4a542e706e67"><img src="https://camo.githubusercontent.com/3aed4051c06578d1eedbc234d8864d9cb13325e6c2d0d4cce1f562a8ab030e31/68747470733a2f2f692e696d6775722e636f6d2f545170757a4a542e706e67" alt="https://i.imgur.com/TQpuzJT.png" data-canonical-src="https://i.imgur.com/TQpuzJT.png" style="max-width: 100%;"></a></p>
<p dir="auto">Closing the tab and rerunning in <strong>Firefox</strong>, I get no issues.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/372f87ad39b56b56326df9a69c6ac8bef7a2508d436e6dbd836e98375e29715c/68747470733a2f2f692e696d6775722e636f6d2f4e6478594138682e706e67"><img src="https://camo.githubusercontent.com/372f87ad39b56b56326df9a69c6ac8bef7a2508d436e6dbd836e98375e29715c/68747470733a2f2f692e696d6775722e636f6d2f4e6478594138682e706e67" alt="https://i.imgur.com/NdxYA8h.png" data-canonical-src="https://i.imgur.com/NdxYA8h.png" style="max-width: 100%;"></a></p>
<br>
<p dir="auto">The shrunk canvas is still interactive (you can still pan the y-axis up and down), but obviously the height and width calculations went awry. I have tried restarting the Jupyter server (and the notebook kernel) and I still get the same result in Chrome.</p>
<p dir="auto"><strong>Note</strong>: using <code class="notranslate">%matplotlib inline</code> works fine in Chrome.</p>
<p dir="auto">To summarize, I only get this issue when I use <strong><code class="notranslate">%matplotlib notebook</code></strong> in <strong>Chrome</strong>. I don't know if switching to Windows would resolve this problem (I use Ubuntu 20.04).</p>
<p dir="auto"><strong>Versions</strong></p>
<p dir="auto">I am running Jupyter in a virtual environment managed by Poetry.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="% lsb_release -d
Description: Ubuntu 20.04.1 LTS
% poetry run jupyter --version
jupyter core : 4.6.3
jupyter-notebook : 6.1.1
qtconsole : 4.7.5
ipython : 7.17.0
ipykernel : 5.3.4
jupyter client : 6.1.6
jupyter lab : not installed
nbconvert : 5.6.1
ipywidgets : 7.5.1
nbformat : 5.0.7
traitlets : 4.3.3
% poetry run python -c 'import matplotlib; print(matplotlib.get_backend())'
TkAgg
% poetry run python -V
Python 3.8.3
% google-chrome --version
Google Chrome 84.0.4147.105
% cat pyproject.toml
...
[tool.poetry.dependencies]
python = "^3.8"
jupyter = "^1.0.0"
pandas = "^1.1.0"
numpy = "^1.19.1"
scipy = "^1.5.2"
networkx = "^2.4"
ipywidgets = "^7.5.1"
matplotlib = "^3.3.0"
sklearn = "^0.0"
..."><pre class="notranslate"><code class="notranslate">% lsb_release -d
Description: Ubuntu 20.04.1 LTS
% poetry run jupyter --version
jupyter core : 4.6.3
jupyter-notebook : 6.1.1
qtconsole : 4.7.5
ipython : 7.17.0
ipykernel : 5.3.4
jupyter client : 6.1.6
jupyter lab : not installed
nbconvert : 5.6.1
ipywidgets : 7.5.1
nbformat : 5.0.7
traitlets : 4.3.3
% poetry run python -c 'import matplotlib; print(matplotlib.get_backend())'
TkAgg
% poetry run python -V
Python 3.8.3
% google-chrome --version
Google Chrome 84.0.4147.105
% cat pyproject.toml
...
[tool.poetry.dependencies]
python = "^3.8"
jupyter = "^1.0.0"
pandas = "^1.1.0"
numpy = "^1.19.1"
scipy = "^1.5.2"
networkx = "^2.4"
ipywidgets = "^7.5.1"
matplotlib = "^3.3.0"
sklearn = "^0.0"
...
</code></pre></div> | <h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">A simple 3D scatter plot is not working on jupyter notebook when <code class="notranslate">%matplotlib notebook</code> is enabled. However, it is working for <code class="notranslate">%matplotlib inline</code></p>
<p dir="auto">An extremely large, blank window appears that spans beyond the page.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="%matplotlib notebook
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
A = np.random.random((100,3))
fig = plt.figure()
ax = Axes3D(fig)
ax.scatter(A[:,0], A[:,1], A[:,2])
plt.show()"><pre class="notranslate"><span class="pl-c1">%</span><span class="pl-s1">matplotlib</span> <span class="pl-s1">notebook</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">from</span> <span class="pl-s1">mpl_toolkits</span>.<span class="pl-s1">mplot3d</span> <span class="pl-k">import</span> <span class="pl-v">Axes3D</span>
<span class="pl-v">A</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">random</span>((<span class="pl-c1">100</span>,<span class="pl-c1">3</span>))
<span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>()
<span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-v">Axes3D</span>(<span class="pl-s1">fig</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">scatter</span>(<span class="pl-v">A</span>[:,<span class="pl-c1">0</span>], <span class="pl-v">A</span>[:,<span class="pl-c1">1</span>], <span class="pl-v">A</span>[:,<span class="pl-c1">2</span>])
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto"><strong>Actual outcome</strong><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/f3db3afac0a2629303b342241b9e2f53900bb6befb602fbd010887bf0e697b3d/68747470733a2f2f692e706f7374696d672e63632f335271516a7934662f53637265656e2d53686f742d323032302d30372d33302d61742d392d34342d35312d504d2e706e67"><img src="https://camo.githubusercontent.com/f3db3afac0a2629303b342241b9e2f53900bb6befb602fbd010887bf0e697b3d/68747470733a2f2f692e706f7374696d672e63632f335271516a7934662f53637265656e2d53686f742d323032302d30372d33302d61742d392d34342d35312d504d2e706e67" alt="Fail case" data-canonical-src="https://i.postimg.cc/3RqQjy4f/Screen-Shot-2020-07-30-at-9-44-51-PM.png" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">Expecting a 3D scatter plot of <code class="notranslate">A</code>.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: posix Darwin 19.6.0</li>
<li>Matplotlib version: 3.3.0</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): nbAgg</li>
<li>Python version: 3.7.5</li>
<li>Jupyter version (if applicable):
<ul dir="auto">
<li>jupyter core : 4.6.3</li>
<li>jupyter-notebook : 6.0.3</li>
<li>qtconsole : 4.7.5</li>
<li>ipython : 7.16.1</li>
<li>ipykernel : 5.3.4</li>
<li>jupyter client : 6.1.6</li>
<li>jupyter lab : not installed</li>
<li>nbconvert : 5.6.1</li>
<li>ipywidgets : 7.5.1</li>
<li>nbformat : 5.0.7</li>
<li>traitlets : 4.3.3</li>
</ul>
</li>
<li>Other libraries: numpy 1.19.1, scipy 1.5.2</li>
</ul> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jack_kerouac" rel="nofollow">Florian Rampp</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7383?redirect=false" rel="nofollow">SPR-7383</a></strong> and commented</p>
<p dir="auto">The current implementations of ClientHttpRequestFactory (besides SimpleClientHttpRequestFactory) only comprise CommonsClientHttpRequestFactory, which depends on Jakarta Commons HttpClient. The successor of this is Apache HttpComponents. See: <a href="http://hc.apache.org/httpclient-3.x/#History" rel="nofollow">http://hc.apache.org/httpclient-3.x/#History</a></p>
<p dir="auto">It would be desirable to employ the newer HttpComponents HttpClient. Therefore, an implementation of ClientHttpRequestFactory for usage with the HttpComponents HttpClient is necessary.</p>
<p dir="auto">This issue might be related to <a href="http://jira.springframework.org/browse/SWS-563" rel="nofollow">http://jira.springframework.org/browse/SWS-563</a>.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1 M1</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="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>"duplicates"</strong></em>)</li>
</ul> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=david_syer" rel="nofollow">Dave Syer</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7632?redirect=false" rel="nofollow">SPR-7632</a></strong> and commented</p>
<p dir="auto">Allow valid file extension paths to be specified in DispatcherServlet. My use case is</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@RequestMapping(value = "/jobs/{jobName}", method = RequestMethod.GET)"><pre class="notranslate"><code class="notranslate">@RequestMapping(value = "/jobs/{jobName}", method = RequestMethod.GET)
</code></pre></div>
<p dir="auto">I need .html and .json to be valid extensions (stripped off by the dispatcher), but other . separated jobName values are legal and should be presented as they are (e.g. my.job or my.job.html both resolve to my.job).</p>
<p dir="auto">The current behaviour is simply to truncate at the first period. Even with a regex pattern <code class="notranslate">{jobName:.*</code>} we truncate the path, so the only way to make it work is to add HttpServletRequest to all controller methods and extract the parameter manually (back to Spring 2.5).</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0.6</p>
<p dir="auto">This issue is a sub-task of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398112762" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13057" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13057/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13057">#13057</a></p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398113149" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13120" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13120/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13120">#13120</a> Configure PatternsRequestCondition with information that allows it to do a smart suffix pattern match (<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="398197792" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/19242" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/19242/hovercard" href="https://github.com/spring-projects/spring-framework/issues/19242">#19242</a> <code class="notranslate">@PathVariable</code> will cut off the last point (<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="398097808" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10832" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10832/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10832">#10832</a> a Uri Value is incorrectly extracted if it contains '.'.</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/4fd7645efd2daf8d23960706180837a61bf9f321/hovercard" href="https://github.com/spring-projects/spring-framework/commit/4fd7645efd2daf8d23960706180837a61bf9f321"><tt>4fd7645</tt></a></p>
<p dir="auto">0 votes, 6 watchers</p> | 0 |
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">replace module</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.1.0
config file = /home/klaus/.ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.13+ (default, Jul 19 2017, 18:15:03) [GCC 6.4.0 20170704]"><pre class="notranslate"><code class="notranslate">ansible 2.3.1.0
config file = /home/klaus/.ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.13+ (default, Jul 19 2017, 18:15:03) [GCC 6.4.0 20170704]
</code></pre></div>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">LC_*=de_DE (without utf-8, so it is iso8859-1)</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">I have the following part:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: Keep all passwd-entries in /etc/password sane
replace:
dest: /etc/passwd
regexp: '^([^:]+):[^:]*:'
replace: '\1:x:'"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Keep all passwd-entries in /etc/password sane</span>
<span class="pl-ent">replace</span>:
<span class="pl-ent">dest</span>: <span class="pl-s">/etc/passwd</span>
<span class="pl-ent">regexp</span>: <span class="pl-s"><span class="pl-pds">'</span>^([^:]+):[^:]*:<span class="pl-pds">'</span></span>
<span class="pl-ent">replace</span>: <span class="pl-s"><span class="pl-pds">'</span>\1:x:<span class="pl-pds">'</span></span></pre></div>
<p dir="auto">This worked with earlier versions but now it fails with an error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="An exception occurred during task execution. To see the full traceback, use -vvv. The error was: UnicodeDecodeError: 'utf8' codec can't decode byte 0xee in position 668: invalid continuation byte"><pre class="notranslate"><code class="notranslate">An exception occurred during task execution. To see the full traceback, use -vvv. The error was: UnicodeDecodeError: 'utf8' codec can't decode byte 0xee in position 668: invalid continuation byte
</code></pre></div>
<p dir="auto">The problem is that I have user full names in passwd that includes latin1 chars (like ï)</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">See above in the description</p> | <p dir="auto">I'm able to ssh login to <strong>10.10.24.127</strong> without password, while running the ansible playbook, I encountered the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fatal: [10.10.24.127] => SSH encountered an unknown error. The output was:
OpenSSH_6.7p1 Ubuntu-5ubuntu1.3, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: auto-mux: Trying existing master
debug1: Control socket "/home/hao/.ansible/cp/ansible-ssh-10.10.24.127-22-hao" does not exist
debug2: ssh_connect: needpriv 0
debug1: Connecting to 10.10.24.127 [10.10.24.127] port 22.
debug2: fd 3 setting O_NONBLOCK
debug1: fd 3 clearing O_NONBLOCK
debug1: Connection established.
debug3: timeout: 10000 ms remain after connect
debug1: identity file /home/hao/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/hao/.ssh/id_rsa-cert type -1
debug1: identity file /home/hao/.ssh/id_dsa type 2
debug1: key_load_public: No such file or directory
debug1: identity file /home/hao/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/hao/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/hao/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/hao/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/hao/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.7p1 Ubuntu-5ubuntu1.3
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.7
debug1: match: OpenSSH_6.7 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug3: load_hostkeys: loading entries for host "10.10.24.127" from file "/home/hao/.ssh/known_hosts"
debug3: load_hostkeys: found key type ED25519 in file /home/hao/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys
debug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],ssh-ed25519
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: [email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: [email protected],ssh-ed25519,[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected],arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected],arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
debug2: kex_parse_kexinit: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1,[email protected],[email protected],[email protected],[email protected],hmac-md5,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1,[email protected],[email protected],[email protected],[email protected],hmac-md5,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: [email protected],zlib,none
debug2: kex_parse_kexinit: [email protected],zlib,none
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: [email protected],diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss,ssh-ed25519
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected]
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected]
debug2: kex_parse_kexinit: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: kex_parse_kexinit: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: kex_parse_kexinit: none,[email protected]
debug2: kex_parse_kexinit: none,[email protected]
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: setup [email protected]
debug1: kex: server->client aes128-ctr [email protected] [email protected]
debug2: mac_setup: setup [email protected]
debug1: kex: client->server aes128-ctr [email protected] [email protected]
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ED25519 e2:12:26:46:85:47:e7:09:40:5c:3f:9a:e2:2b:32:4d
debug3: load_hostkeys: loading entries for host "10.10.24.127" from file "/home/hao/.ssh/known_hosts"
debug3: load_hostkeys: found key type ED25519 in file /home/hao/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys
debug1: Host '10.10.24.127' is known and matches the ED25519 host key.
debug1: Found key in /home/hao/.ssh/known_hosts:1
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/hao/.ssh/id_rsa (0x7f99d601e9f0),
debug2: key: /home/hao/.ssh/id_dsa (0x7f99d601f960),
debug2: key: /home/hao/.ssh/id_ecdsa ((nil)),
debug2: key: /home/hao/.ssh/id_ed25519 ((nil)),
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug3: start over, passed a different list publickey,password,keyboard-interactive
debug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey
debug3: authmethod_lookup publickey
debug3: remaining preferred: ,gssapi-keyex,hostbased,publickey
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/hao/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Offering DSA public key: /home/hao/.ssh/id_dsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Trying private key: /home/hao/.ssh/id_ecdsa
debug3: no such identity: /home/hao/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /home/hao/.ssh/id_ed25519
debug3: no such identity: /home/hao/.ssh/id_ed25519: No such file or directory
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey,password,keyboard-interactive)."><pre class="notranslate"><code class="notranslate">fatal: [10.10.24.127] => SSH encountered an unknown error. The output was:
OpenSSH_6.7p1 Ubuntu-5ubuntu1.3, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: auto-mux: Trying existing master
debug1: Control socket "/home/hao/.ansible/cp/ansible-ssh-10.10.24.127-22-hao" does not exist
debug2: ssh_connect: needpriv 0
debug1: Connecting to 10.10.24.127 [10.10.24.127] port 22.
debug2: fd 3 setting O_NONBLOCK
debug1: fd 3 clearing O_NONBLOCK
debug1: Connection established.
debug3: timeout: 10000 ms remain after connect
debug1: identity file /home/hao/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/hao/.ssh/id_rsa-cert type -1
debug1: identity file /home/hao/.ssh/id_dsa type 2
debug1: key_load_public: No such file or directory
debug1: identity file /home/hao/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/hao/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/hao/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/hao/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/hao/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.7p1 Ubuntu-5ubuntu1.3
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.7
debug1: match: OpenSSH_6.7 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug3: load_hostkeys: loading entries for host "10.10.24.127" from file "/home/hao/.ssh/known_hosts"
debug3: load_hostkeys: found key type ED25519 in file /home/hao/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys
debug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],ssh-ed25519
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: [email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: [email protected],ssh-ed25519,[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected],arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected],arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
debug2: kex_parse_kexinit: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1,[email protected],[email protected],[email protected],[email protected],hmac-md5,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1,[email protected],[email protected],[email protected],[email protected],hmac-md5,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: [email protected],zlib,none
debug2: kex_parse_kexinit: [email protected],zlib,none
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: [email protected],diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss,ssh-ed25519
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected]
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected]
debug2: kex_parse_kexinit: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: kex_parse_kexinit: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: kex_parse_kexinit: none,[email protected]
debug2: kex_parse_kexinit: none,[email protected]
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: setup [email protected]
debug1: kex: server->client aes128-ctr [email protected] [email protected]
debug2: mac_setup: setup [email protected]
debug1: kex: client->server aes128-ctr [email protected] [email protected]
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ED25519 e2:12:26:46:85:47:e7:09:40:5c:3f:9a:e2:2b:32:4d
debug3: load_hostkeys: loading entries for host "10.10.24.127" from file "/home/hao/.ssh/known_hosts"
debug3: load_hostkeys: found key type ED25519 in file /home/hao/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys
debug1: Host '10.10.24.127' is known and matches the ED25519 host key.
debug1: Found key in /home/hao/.ssh/known_hosts:1
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/hao/.ssh/id_rsa (0x7f99d601e9f0),
debug2: key: /home/hao/.ssh/id_dsa (0x7f99d601f960),
debug2: key: /home/hao/.ssh/id_ecdsa ((nil)),
debug2: key: /home/hao/.ssh/id_ed25519 ((nil)),
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug3: start over, passed a different list publickey,password,keyboard-interactive
debug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey
debug3: authmethod_lookup publickey
debug3: remaining preferred: ,gssapi-keyex,hostbased,publickey
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/hao/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Offering DSA public key: /home/hao/.ssh/id_dsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Trying private key: /home/hao/.ssh/id_ecdsa
debug3: no such identity: /home/hao/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /home/hao/.ssh/id_ed25519
debug3: no such identity: /home/hao/.ssh/id_ed25519: No such file or directory
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey,password,keyboard-interactive).
</code></pre></div>
<p dir="auto">my <strong>hosts</strong> file is like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[abr-ref01]
10.10.24.127
[coreos:vars]
ansible_ssh_user=core
ansible_ssh_pass=bozo
ansible_python_interpreter="PATH=/home/core/bin:$PATH python""><pre class="notranslate"><code class="notranslate">[abr-ref01]
10.10.24.127
[coreos:vars]
ansible_ssh_user=core
ansible_ssh_pass=bozo
ansible_python_interpreter="PATH=/home/core/bin:$PATH python"
</code></pre></div>
<p dir="auto">and my <strong>ansible.cfg</strong> is like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ssh_connection]
ssh_args = -o User=core -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PasswordAuthentication=yes -o IdentityFile=/etc/ansible/keys/ssh_private_key -o IdentitiesOnly=yes
[defaults]
host_key_checking = False"><pre class="notranslate"><code class="notranslate">[ssh_connection]
ssh_args = -o User=core -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PasswordAuthentication=yes -o IdentityFile=/etc/ansible/keys/ssh_private_key -o IdentitiesOnly=yes
[defaults]
host_key_checking = False
</code></pre></div> | 0 |
<p dir="auto">Please:</p>
<ul dir="auto">
<li>[x ] Check for duplicate issues.</li>
<li>[ x] Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:</li>
</ul>
<p dir="auto">This code generates a Traceback. If I replace <code class="notranslate">jax.opt.adam</code> with <code class="notranslate">jax_opt.sgd</code>, it seems to work fine. That is why I suspect something is wrong in <code class="notranslate">adam</code>. This is in jax version 0.2.25.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import jax.example_libraries.optimizers as jax_opt
from jax import value_and_grad
import jax.numpy as np
opt_init, opt_update, get_params = jax_opt.adam(1e-2)
opt_state = opt_init(np.array(1.1))
def objective(x):
return (x**2).squeeze()
def step(i, opt_state):
value, grads = value_and_grad(objective)(get_params(opt_state))
return value, opt_update(step, grads, opt_state)
step(0, opt_state)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">example_libraries</span>.<span class="pl-s1">optimizers</span> <span class="pl-k">as</span> <span class="pl-s1">jax_opt</span>
<span class="pl-k">from</span> <span class="pl-s1">jax</span> <span class="pl-k">import</span> <span class="pl-s1">value_and_grad</span>
<span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-s1">opt_init</span>, <span class="pl-s1">opt_update</span>, <span class="pl-s1">get_params</span> <span class="pl-c1">=</span> <span class="pl-s1">jax_opt</span>.<span class="pl-en">adam</span>(<span class="pl-c1">1e-2</span>)
<span class="pl-s1">opt_state</span> <span class="pl-c1">=</span> <span class="pl-en">opt_init</span>(<span class="pl-s1">np</span>.<span class="pl-en">array</span>(<span class="pl-c1">1.1</span>))
<span class="pl-k">def</span> <span class="pl-en">objective</span>(<span class="pl-s1">x</span>):
<span class="pl-k">return</span> (<span class="pl-s1">x</span><span class="pl-c1">**</span><span class="pl-c1">2</span>).<span class="pl-en">squeeze</span>()
<span class="pl-k">def</span> <span class="pl-en">step</span>(<span class="pl-s1">i</span>, <span class="pl-s1">opt_state</span>):
<span class="pl-s1">value</span>, <span class="pl-s1">grads</span> <span class="pl-c1">=</span> <span class="pl-en">value_and_grad</span>(<span class="pl-s1">objective</span>)(<span class="pl-en">get_params</span>(<span class="pl-s1">opt_state</span>))
<span class="pl-k">return</span> <span class="pl-s1">value</span>, <span class="pl-en">opt_update</span>(<span class="pl-s1">step</span>, <span class="pl-s1">grads</span>, <span class="pl-s1">opt_state</span>)
<span class="pl-en">step</span>(<span class="pl-c1">0</span>, <span class="pl-s1">opt_state</span>)</pre></div>
<ul dir="auto">
<li>[x ] If applicable, include full error messages/tracebacks.</li>
</ul>
<p dir="auto">I get this resulting error</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-7-caac38fbc2ef> in <module>()
14 return value, opt_update(step, grads, opt_state)
15
---> 16 step(0, opt_state)
3 frames
/usr/local/lib/python3.7/dist-packages/jax/example_libraries/optimizers.py in update(i, g, state)
408 m = (1 - b1) * g + b1 * m # First moment estimate.
409 v = (1 - b2) * jnp.square(g) + b2 * v # Second moment estimate.
--> 410 mhat = m / (1 - jnp.asarray(b1, m.dtype) ** (i + 1)) # Bias correction.
411 vhat = v / (1 - jnp.asarray(b2, m.dtype) ** (i + 1))
412 x = x - step_size(i) * mhat / (jnp.sqrt(vhat) + eps)
TypeError: unsupported operand type(s) for +: 'function' and 'int'"><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">TypeError</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"><</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">7</span><span class="pl-c1">-</span><span class="pl-s1">caac38fbc2ef</span><span class="pl-c1">></span> <span class="pl-s1">in</span> <span class="pl-c1"><</span><span class="pl-s1">module</span><span class="pl-c1">></span>()
<span class="pl-c1">14</span> <span class="pl-k">return</span> <span class="pl-s1">value</span>, <span class="pl-en">opt_update</span>(<span class="pl-s1">step</span>, <span class="pl-s1">grads</span>, <span class="pl-s1">opt_state</span>)
<span class="pl-c1">15</span>
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">></span> <span class="pl-c1">16</span> <span class="pl-en">step</span>(<span class="pl-c1">0</span>, <span class="pl-s1">opt_state</span>)
<span class="pl-c1">3</span> <span class="pl-s1">frames</span>
<span class="pl-c1">/</span><span class="pl-s1">usr</span><span class="pl-c1">/</span><span class="pl-s1">local</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">dist</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">jax</span><span class="pl-c1">/</span><span class="pl-s1">example_libraries</span><span class="pl-c1">/</span><span class="pl-s1">optimizers</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">update</span>(<span class="pl-s1">i</span>, <span class="pl-s1">g</span>, <span class="pl-s1">state</span>)
<span class="pl-c1">408</span> <span class="pl-s1">m</span> <span class="pl-c1">=</span> (<span class="pl-c1">1</span> <span class="pl-c1">-</span> <span class="pl-s1">b1</span>) <span class="pl-c1">*</span> <span class="pl-s1">g</span> <span class="pl-c1">+</span> <span class="pl-s1">b1</span> <span class="pl-c1">*</span> <span class="pl-s1">m</span> <span class="pl-c"># First moment estimate.</span>
<span class="pl-c1">409</span> <span class="pl-s1">v</span> <span class="pl-c1">=</span> (<span class="pl-c1">1</span> <span class="pl-c1">-</span> <span class="pl-s1">b2</span>) <span class="pl-c1">*</span> <span class="pl-s1">jnp</span>.<span class="pl-en">square</span>(<span class="pl-s1">g</span>) <span class="pl-c1">+</span> <span class="pl-s1">b2</span> <span class="pl-c1">*</span> <span class="pl-s1">v</span> <span class="pl-c"># Second moment estimate.</span>
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">></span> <span class="pl-c1">410</span> <span class="pl-s1">mhat</span> <span class="pl-c1">=</span> <span class="pl-s1">m</span> <span class="pl-c1">/</span> (<span class="pl-c1">1</span> <span class="pl-c1">-</span> <span class="pl-s1">jnp</span>.<span class="pl-en">asarray</span>(<span class="pl-s1">b1</span>, <span class="pl-s1">m</span>.<span class="pl-s1">dtype</span>) <span class="pl-c1">**</span> (<span class="pl-s1">i</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span>)) <span class="pl-c"># Bias correction.</span>
<span class="pl-c1">411</span> <span class="pl-s1">vhat</span> <span class="pl-c1">=</span> <span class="pl-s1">v</span> <span class="pl-c1">/</span> (<span class="pl-c1">1</span> <span class="pl-c1">-</span> <span class="pl-s1">jnp</span>.<span class="pl-en">asarray</span>(<span class="pl-s1">b2</span>, <span class="pl-s1">m</span>.<span class="pl-s1">dtype</span>) <span class="pl-c1">**</span> (<span class="pl-s1">i</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span>))
<span class="pl-c1">412</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span> <span class="pl-c1">-</span> <span class="pl-en">step_size</span>(<span class="pl-s1">i</span>) <span class="pl-c1">*</span> <span class="pl-s1">mhat</span> <span class="pl-c1">/</span> (<span class="pl-s1">jnp</span>.<span class="pl-en">sqrt</span>(<span class="pl-s1">vhat</span>) <span class="pl-c1">+</span> <span class="pl-s1">eps</span>)
<span class="pl-v">TypeError</span>: <span class="pl-en">unsupported</span> <span class="pl-s1">operand</span> <span class="pl-s1">type</span>(<span class="pl-s1">s</span>) <span class="pl-s1">for</span> <span class="pl-c1">+</span>: <span class="pl-s">'function'</span> <span class="pl-c1">and</span> <span class="pl-s">'int'</span></pre></div> | <p dir="auto">The documentation of jax.devices says that it returns all devices. This is not true in multi-backend setups, it returns only the devices from the default backend. This was confusing to me initially, and I also encountered this confusion in issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="604212252" data-permission-text="Title is private" data-url="https://github.com/google/jax/issues/2785" data-hovercard-type="pull_request" data-hovercard-url="/google/jax/pull/2785/hovercard" href="https://github.com/google/jax/pull/2785">#2785</a></p>
<p dir="auto">The simplest change would be to the documentation: if no <code class="notranslate">backend</code> is specified then only the devices on the default backend are returned (along with an explanation of what is the default backend).</p>
<p dir="auto">A better change may be though to say that it returns all devices, in the order of backend priority, such that <code class="notranslate">devices()[0]</code> is the same as now. This may break some code though.</p> | 0 |
<p dir="auto">So here's a weird one. I have a Docker container based on debian:stable where I install python3 and python3-pip, and when trying to install requests from a requirements.txt file I get the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Downloading/unpacking requests (from -r /tmp/requirements/xxx.txt (line 2))
Running setup.py egg_info for package requests
Exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 104, in main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 245, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python3/dist-packages/pip/req.py", line 1014, in prepare_files
req_to_install.assert_source_matches_version()
File "/usr/lib/python3/dist-packages/pip/req.py", line 359, in assert_source_matches_version
version = self.installed_version
File "/usr/lib/python3/dist-packages/pip/req.py", line 351, in installed_version
return self.pkg_info()['version']
File "/usr/lib/python3/dist-packages/pip/req.py", line 318, in pkg_info
data = self.egg_info_data('PKG-INFO')
File "/usr/lib/python3/dist-packages/pip/req.py", line 261, in egg_info_data
data = fp.read()
File "/usr/lib/python3.2/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 8161: ordinal not in range(128)"><pre class="notranslate"><code class="notranslate">Downloading/unpacking requests (from -r /tmp/requirements/xxx.txt (line 2))
Running setup.py egg_info for package requests
Exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 104, in main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 245, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python3/dist-packages/pip/req.py", line 1014, in prepare_files
req_to_install.assert_source_matches_version()
File "/usr/lib/python3/dist-packages/pip/req.py", line 359, in assert_source_matches_version
version = self.installed_version
File "/usr/lib/python3/dist-packages/pip/req.py", line 351, in installed_version
return self.pkg_info()['version']
File "/usr/lib/python3/dist-packages/pip/req.py", line 318, in pkg_info
data = self.egg_info_data('PKG-INFO')
File "/usr/lib/python3/dist-packages/pip/req.py", line 261, in egg_info_data
data = fp.read()
File "/usr/lib/python3.2/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 8161: ordinal not in range(128)
</code></pre></div>
<p dir="auto">However, when I run <code class="notranslate">pip-3.2 install requests</code> directly, it works fine.<br>
I honestly have no idea where even to start on debugging this.</p> | <p dir="auto">The current Requests implementation seems not to work for https request under proxy.</p>
<p dir="auto">I have posted a question on stackoverflow:</p>
<p dir="auto"><a href="http://stackoverflow.com/questions/13005301/https-proxy-support-in-python-requests-library" rel="nofollow">http://stackoverflow.com/questions/13005301/https-proxy-support-in-python-requests-library</a></p> | 0 |
<p dir="auto">I'm using Symfony Process to execute <a href="http://wp-cli.org" rel="nofollow">wp-cli</a> commands and one of them was something like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="wp post create --post_title="Hello VersionPress!" --post_date="2011-11-11 11:11:11""><pre class="notranslate"><code class="notranslate">wp post create --post_title="Hello VersionPress!" --post_date="2011-11-11 11:11:11"
</code></pre></div>
<p dir="auto">If I executed this command on Windows <code class="notranslate">cmd</code> it worked fine but when Symfony Process ran it, the post title was created as "Hello VersionPress11:11" and the data was generally not right, even though the command technically succeeded (no error).</p>
<p dir="auto">After some experimenting, it seems that <strong>the exclamation mark is somehow a problem</strong>. When I removed it, all worked fine. Is that a bug in Symfony Process on Windows or maybe some kind of misconfiguration on my side?</p> | <p dir="auto">In <code class="notranslate">Symfony/Component/HttpKernel/EventListener/ExceptionListener::duplicate()</code> the <a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/EventListener/ExceptionListener.php#L120"><code class="notranslate">format</code></a> attribute is set without an underscore. This results in the cloned <code class="notranslate">Request</code> having a <code class="notranslate">null</code> format which in turn causes <a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php#L55">ExceptionController::showAction</a> to always render exceptions in html.</p>
<p dir="auto">Looks like <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/symfony/symfony/commit/f946108d6526ceaad9b8340fb58335ed4a93eda6/hovercard" href="https://github.com/symfony/symfony/commit/f946108d6526ceaad9b8340fb58335ed4a93eda6"><tt>f946108</tt></a> broke it.</p> | 0 |
<pre class="notranslate">go version devel +b86ee06ef235 Mon Aug 18 16:52:31 2014 +0400 linux/amd64
Run the following program with GODEBUG=gctrace=1
package main
import "time"
func main() {
for {
time.Sleep(time.Second)
}
}
gc1(1): 3+1+139+0 us, 0 -> 0 MB, 13 (13-0) objects, 0/0/0 sweeps, 0(0) handoff, 0(0)
steal, 0/0/0 yields
scvg0: inuse: 17592186044400, idle: 15, sys: 1, released: 0, consumed: 1 (MB)
gc2(1): 3+1+178+0 us, 0 -> 0 MB, 41 (41-0) objects, 11/0/0 sweeps, 0(0) handoff, 0(0)
steal, 0/0/0 yields
scvg1: GC forced
scvg1: inuse: 17592186044400, idle: 16, sys: 1, released: 0, consumed: 1 (MB)
scvg2: inuse: 17592186044400, idle: 16, sys: 1, released: 0, consumed: 1 (MB)
gc3(1): 2+0+135+0 us, 0 -> 0 MB, 33 (41-8) objects, 19/12/0 sweeps, 0(0) handoff,
0(0) steal, 0/0/0 yields
scvg3: GC forced
scvg3: inuse: 17592186044400, idle: 16, sys: 1, released: 0, consumed: 1 (MB)
scvg4: 0 MB released
scvg4: inuse: 17592186044400, idle: 16, sys: 1, released: 0, consumed: 0 (MB)
gc4(1): 2+0+135+0 us, 0 -> 0 MB, 33 (41-8) objects, 19/10/0 sweeps, 0(0) handoff,
0(0) steal, 0/0/0 yields
scvg5: GC forced
scvg5: inuse: 17592186044400, idle: 16, sys: 1, released: 0, consumed: 0 (MB)
scvg6: 0 MB released
scvg6: inuse: 17592186044400, idle: 16, sys: 1, released: 0, consumed: 0 (MB)
inuse heap numbers look wrong.</pre> | <p dir="auto">Please answer these questions before submitting your issue. Thanks!</p>
<ol dir="auto">
<li>What version of Go are you using (<code class="notranslate">go version</code>)?</li>
</ol>
<p dir="auto">go version go1.6 linux/amd64</p>
<p dir="auto">(rest doesn't apply, since I don't report a bug here)</p>
<p dir="auto">It would be nice to make it easier to define, shareable, read-only views of data from which many consumable readers can be derived.</p>
<p dir="auto">I did expect something like <a href="https://godoc.org/github.com/nightlyone/views/bytes" rel="nofollow">https://godoc.org/github.com/nightlyone/views/bytes</a><br>
and <a href="https://godoc.org/github.com/nightlyone/views/strings" rel="nofollow">https://godoc.org/github.com/nightlyone/views/strings</a> in the respective bytes and strings packages of the stdlib.</p>
<p dir="auto">These are useful in interfaces like <a href="https://godoc.org/github.com/nightlyone/views" rel="nofollow">https://godoc.org/github.com/nightlyone/views</a></p> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.x (master)</li>
<li>Operating System version: Ubuntu 16.04</li>
<li>Java version: Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li><code class="notranslate">git checkout b0107e767651d066d68c3beaaca9736aed2292b8</code></li>
<li><code class="notranslate">mvn test -am -pl dubbo-rpc/dubbo-rpc-dubbo -Dtest=DubboProtocolTest#testDubboProtocolWithMina -DfailIfNoTests=false</code></li>
</ol>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">The test should pass.</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">The test fails. Output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Running org.apache.dubbo.rpc.protocol.dubbo.DubboProtocolTest
2018-11-08 03:47:05,604 INFO [org.apache.dubbo.common.logger.LoggerFactory:?] - using logger: org.apache.dubbo.common.logger.log4j.Log4jLoggerAdapter
2018-11-08 03:47:06,034 INFO [org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol:destroy] - [DUBBO] Unexport service: dubbo://127.0.0.1:9010/org.apache.dubbo.rpc.protocol.dubbo.support.DemoService?server=mina, dubbo version: , current host: 172.17.0.12
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.657 sec <<< FAILURE! - in org.apache.dubbo.rpc.protocol.dubbo.DubboProtocolTest
testDubboProtocolWithMina(org.apache.dubbo.rpc.protocol.dubbo.DubboProtocolTest) Time elapsed: 0.086 sec <<< ERROR!
org.apache.dubbo.rpc.RpcException: Unsupported server type: mina, url: dubbo://127.0.0.1:9010/org.apache.dubbo.rpc.protocol.dubbo.support.DemoService?channel.readonly.sent=true&heartbeat=60000&server=mina
at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocolTest.testDubboProtocolWithMina(DubboProtocolTest.java:99)
Results :
Tests in error:
DubboProtocolTest.testDubboProtocolWithMina:99 ? Rpc Unsupported server type: ...
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0"><pre class="notranslate"><code class="notranslate">Running org.apache.dubbo.rpc.protocol.dubbo.DubboProtocolTest
2018-11-08 03:47:05,604 INFO [org.apache.dubbo.common.logger.LoggerFactory:?] - using logger: org.apache.dubbo.common.logger.log4j.Log4jLoggerAdapter
2018-11-08 03:47:06,034 INFO [org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol:destroy] - [DUBBO] Unexport service: dubbo://127.0.0.1:9010/org.apache.dubbo.rpc.protocol.dubbo.support.DemoService?server=mina, dubbo version: , current host: 172.17.0.12
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.657 sec <<< FAILURE! - in org.apache.dubbo.rpc.protocol.dubbo.DubboProtocolTest
testDubboProtocolWithMina(org.apache.dubbo.rpc.protocol.dubbo.DubboProtocolTest) Time elapsed: 0.086 sec <<< ERROR!
org.apache.dubbo.rpc.RpcException: Unsupported server type: mina, url: dubbo://127.0.0.1:9010/org.apache.dubbo.rpc.protocol.dubbo.support.DemoService?channel.readonly.sent=true&heartbeat=60000&server=mina
at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocolTest.testDubboProtocolWithMina(DubboProtocolTest.java:99)
Results :
Tests in error:
DubboProtocolTest.testDubboProtocolWithMina:99 ? Rpc Unsupported server type: ...
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
</code></pre></div>
<h3 dir="auto">More Details</h3>
<ol dir="auto">
<li>The test <code class="notranslate">DubboProtocolTest.testDubboProtocolWithMina</code> fails when run by itself.</li>
<li>The test passes when run in the whole test class, but the test does not actually test anything about mina.</li>
<li>A possible fix to make the test pass when run by itself (while still not testing anything about mina) is to apply the following patch:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="index b67112c..7a30fec 100644
--- a/dubbo-rpc/dubbo-rpc-dubbo/src/test/java/org/apache/dubbo/rpc/protocol/dubbo/DubboProtocolTest.java
+++ b/dubbo-rpc/dubbo-rpc-dubbo/src/test/java/org/apache/dubbo/rpc/protocol/dubbo/DubboProtocolTest.java
@@ -96,6 +96,8 @@ public class DubboProtocolTest {
@Test
public void testDubboProtocolWithMina() throws Exception {
DemoService service = new DemoServiceImpl();
+ protocol.export(proxy.getInvoker(service, DemoService.class, URL.valueOf("dubbo://127.0.0.1:9010/" + DemoService.class.getName())));
+ proxy.getProxy(protocol.refer(DemoService.class, URL.valueOf("dubbo://127.0.0.1:9010/" + DemoService.class.getName()).addParameter("timeout", 3000l)));
protocol.export(proxy.getInvoker(service, DemoService.class, URL.valueOf("dubbo://127.0.0.1:9010/" + DemoService.class.getName()).addParameter(Constants.SERVER_KEY, "mina")));
service = proxy.getProxy(protocol.refer(DemoService.class, URL.valueOf("dubbo://127.0.0.1:9010/" + DemoService.class.getName()).addParameter(Constants.CLIENT_KEY, "mina").addParameter("timeout", 3000l)));
for (int i = 0; i < 10; i++) {"><pre class="notranslate"><code class="notranslate">index b67112c..7a30fec 100644
--- a/dubbo-rpc/dubbo-rpc-dubbo/src/test/java/org/apache/dubbo/rpc/protocol/dubbo/DubboProtocolTest.java
+++ b/dubbo-rpc/dubbo-rpc-dubbo/src/test/java/org/apache/dubbo/rpc/protocol/dubbo/DubboProtocolTest.java
@@ -96,6 +96,8 @@ public class DubboProtocolTest {
@Test
public void testDubboProtocolWithMina() throws Exception {
DemoService service = new DemoServiceImpl();
+ protocol.export(proxy.getInvoker(service, DemoService.class, URL.valueOf("dubbo://127.0.0.1:9010/" + DemoService.class.getName())));
+ proxy.getProxy(protocol.refer(DemoService.class, URL.valueOf("dubbo://127.0.0.1:9010/" + DemoService.class.getName()).addParameter("timeout", 3000l)));
protocol.export(proxy.getInvoker(service, DemoService.class, URL.valueOf("dubbo://127.0.0.1:9010/" + DemoService.class.getName()).addParameter(Constants.SERVER_KEY, "mina")));
service = proxy.getProxy(protocol.refer(DemoService.class, URL.valueOf("dubbo://127.0.0.1:9010/" + DemoService.class.getName()).addParameter(Constants.CLIENT_KEY, "mina").addParameter("timeout", 3000l)));
for (int i = 0; i < 10; i++) {
</code></pre></div>
<ol start="4" dir="auto">
<li>The test should be changed to actually test something about mina.</li>
</ol> | <ul dir="auto">
<li>[*] I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li>[*] I have checked the <a href="https://github.com/apache/incubator-dubbo/wiki/FAQ">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<ul dir="auto">
<li>Dubbo version: 2.6.2</li>
<li>Operating System version: CentOS 7</li>
<li>Java version: 1.8</li>
</ul>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/service/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/service">@service</a>(interfaceClass = DubboSwaggerService.class, protocol = "rest", register = false)<br>
register is not work</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/documented/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/documented">@documented</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/retention/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/retention">@retention</a>(RetentionPolicy.RUNTIME)<br>
<a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/target/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/target">@target</a>({ElementType.TYPE})<br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/inherited/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/inherited">@inherited</a><br>
public <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/interface/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/interface">@interface</a> Service {</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Class<?> interfaceClass() default void.class;
String interfaceName() default "";
String version() default "";
String group() default "";
String path() default "";
boolean export() default false;
String token() default "";
boolean deprecated() default false;
boolean dynamic() default false;
String accesslog() default "";
int executes() default 0;
boolean register() default false; // this default value should be true"><pre class="notranslate"><code class="notranslate">Class<?> interfaceClass() default void.class;
String interfaceName() default "";
String version() default "";
String group() default "";
String path() default "";
boolean export() default false;
String token() default "";
boolean deprecated() default false;
boolean dynamic() default false;
String accesslog() default "";
int executes() default 0;
boolean register() default false; // this default value should be true
</code></pre></div> | 0 |
<h3 dir="auto">Describe your issue.</h3>
<p dir="auto">Can't run <code class="notranslate">import scipy.stats</code> with numpy nightly</p>
<h3 dir="auto">Reproducing Code Example</h3>
<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(.311venv) marcogorelli@DESKTOP-U8OKFP3:~/pandas-dev$ pip install -U numpy
Collecting numpy
Using cached numpy-1.24.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB)
Installing collected packages: numpy
Successfully installed numpy-1.24.1
(.311venv) marcogorelli@DESKTOP-U8OKFP3:~/pandas-dev$ python -c 'import scipy.stats'
(.311venv) marcogorelli@DESKTOP-U8OKFP3:~/pandas-dev$ pip uninstall numpy -y
Found existing installation: numpy 1.24.1
Uninstalling numpy-1.24.1:
Successfully uninstalled numpy-1.24.1
(.311venv) marcogorelli@DESKTOP-U8OKFP3:~/pandas-dev$ pip install --pre --extra-index https://pypi.anaconda.org/scipy-wheels-nightly/simple numpy
Looking in indexes: https://pypi.org/simple, https://pypi.anaconda.org/scipy-wheels-nightly/simple
Collecting numpy
Downloading https://pypi.anaconda.org/scipy-wheels-nightly/simple/numpy/1.25.0.dev0%2B405.g720cabc23/numpy-1.25.0.dev0%2B405.g720cabc23-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.3/17.3 MB 9.0 MB/s eta 0:00:00
Installing collected packages: numpy
Successfully installed numpy-1.25.0.dev0+405.g720cabc23
(.311venv) marcogorelli@DESKTOP-U8OKFP3:~/pandas-dev$ python -c 'import scipy.stats'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/marcogorelli/pandas-dev/.311venv/lib/python3.11/site-packages/scipy/stats/__init__.py", line 484, in <module>
from ._stats_py import *
File "/home/marcogorelli/pandas-dev/.311venv/lib/python3.11/site-packages/scipy/stats/_stats_py.py", line 46, in <module>
from . import distributions
File "/home/marcogorelli/pandas-dev/.311venv/lib/python3.11/site-packages/scipy/stats/distributions.py", line 8, in <module>
from ._distn_infrastructure import (rv_discrete, rv_continuous, rv_frozen)
File "/home/marcogorelli/pandas-dev/.311venv/lib/python3.11/site-packages/scipy/stats/_distn_infrastructure.py", line 25, in <module>
from scipy import integrate
File "/home/marcogorelli/pandas-dev/.311venv/lib/python3.11/site-packages/scipy/integrate/__init__.py", line 91, in <module>
from ._quadrature import *
File "/home/marcogorelli/pandas-dev/.311venv/lib/python3.11/site-packages/scipy/integrate/_quadrature.py", line 35, in <module>
trapezoid = _copy_func(trapezoid)
^^^^^^^^^^^^^^^^^^^^^
File "/home/marcogorelli/pandas-dev/.311venv/lib/python3.11/site-packages/scipy/integrate/_quadrature.py", line 28, in _copy_func
g = types.FunctionType(f.__code__, f.__globals__, name=f.__name__,
^^^^^^^^^^
AttributeError: 'numpy._ArrayFunctionDispatcher' object has no attribute '__code__'. Did you mean: '__call__'?"><pre class="notranslate"><span class="pl-e">(.311venv) marcogorelli@DESKTOP-U8OKFP3:~/pandas-dev</span>$ <span class="pl-s1">pip install -U numpy</span>
<span class="pl-c1">Collecting numpy</span>
<span class="pl-c1"> Using cached numpy-1.24.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB)</span>
<span class="pl-c1">Installing collected packages: numpy</span>
<span class="pl-c1">Successfully installed numpy-1.24.1</span>
<span class="pl-e">(.311venv) marcogorelli@DESKTOP-U8OKFP3:~/pandas-dev</span>$ <span class="pl-s1">python -c <span class="pl-s"><span class="pl-pds">'</span>import scipy.stats<span class="pl-pds">'</span></span></span>
<span class="pl-e">(.311venv) marcogorelli@DESKTOP-U8OKFP3:~/pandas-dev</span>$ <span class="pl-s1">pip uninstall numpy -y</span>
<span class="pl-c1">Found existing installation: numpy 1.24.1</span>
<span class="pl-c1">Uninstalling numpy-1.24.1:</span>
<span class="pl-c1"> Successfully uninstalled numpy-1.24.1</span>
<span class="pl-e">(.311venv) marcogorelli@DESKTOP-U8OKFP3:~/pandas-dev</span>$ <span class="pl-s1">pip install --pre --extra-index https://pypi.anaconda.org/scipy-wheels-nightly/simple numpy</span>
<span class="pl-c1">Looking in indexes: https://pypi.org/simple, https://pypi.anaconda.org/scipy-wheels-nightly/simple</span>
<span class="pl-c1">Collecting numpy</span>
<span class="pl-c1"> Downloading https://pypi.anaconda.org/scipy-wheels-nightly/simple/numpy/1.25.0.dev0%2B405.g720cabc23/numpy-1.25.0.dev0%2B405.g720cabc23-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB)</span>
<span class="pl-c1"> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.3/17.3 MB 9.0 MB/s eta 0:00:00</span>
<span class="pl-c1">Installing collected packages: numpy</span>
<span class="pl-c1">Successfully installed numpy-1.25.0.dev0+405.g720cabc23</span>
<span class="pl-e">(.311venv) marcogorelli@DESKTOP-U8OKFP3:~/pandas-dev</span>$ <span class="pl-s1">python -c <span class="pl-s"><span class="pl-pds">'</span>import scipy.stats<span class="pl-pds">'</span></span></span>
<span class="pl-c1">Traceback (most recent call last):</span>
<span class="pl-c1"> File "<string>", line 1, in <module></span>
<span class="pl-c1"> File "/home/marcogorelli/pandas-dev/.311venv/lib/python3.11/site-packages/scipy/stats/__init__.py", line 484, in <module></span>
<span class="pl-c1"> from ._stats_py import *</span>
<span class="pl-c1"> File "/home/marcogorelli/pandas-dev/.311venv/lib/python3.11/site-packages/scipy/stats/_stats_py.py", line 46, in <module></span>
<span class="pl-c1"> from . import distributions</span>
<span class="pl-c1"> File "/home/marcogorelli/pandas-dev/.311venv/lib/python3.11/site-packages/scipy/stats/distributions.py", line 8, in <module></span>
<span class="pl-c1"> from ._distn_infrastructure import (rv_discrete, rv_continuous, rv_frozen)</span>
<span class="pl-c1"> File "/home/marcogorelli/pandas-dev/.311venv/lib/python3.11/site-packages/scipy/stats/_distn_infrastructure.py", line 25, in <module></span>
<span class="pl-c1"> from scipy import integrate</span>
<span class="pl-c1"> File "/home/marcogorelli/pandas-dev/.311venv/lib/python3.11/site-packages/scipy/integrate/__init__.py", line 91, in <module></span>
<span class="pl-c1"> from ._quadrature import *</span>
<span class="pl-c1"> File "/home/marcogorelli/pandas-dev/.311venv/lib/python3.11/site-packages/scipy/integrate/_quadrature.py", line 35, in <module></span>
<span class="pl-c1"> trapezoid = _copy_func(trapezoid)</span>
<span class="pl-c1"> ^^^^^^^^^^^^^^^^^^^^^</span>
<span class="pl-c1"> File "/home/marcogorelli/pandas-dev/.311venv/lib/python3.11/site-packages/scipy/integrate/_quadrature.py", line 28, in _copy_func</span>
<span class="pl-c1"> g = types.FunctionType(f.__code__, f.__globals__, name=f.__name__,</span>
<span class="pl-c1"> ^^^^^^^^^^</span>
<span class="pl-c1">AttributeError: 'numpy._ArrayFunctionDispatcher' object has no attribute '__code__'. Did you mean: '__call__'?</span></pre></div>
<h3 dir="auto">SciPy/NumPy/Python version information</h3>
<p dir="auto">1.11.0.dev0+1302.d5d04ef 1.25.0.dev0+405.g720cabc23 sys.version_info(major=3, minor=11, micro=1, releaselevel='final', serial=0)</p> | <p dir="auto">See for example <a href="https://github.com/scipy/scipy/actions/runs/3946141515/jobs/6753635939">this log</a>. Lots of this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="AttributeError: 'numpy._ArrayFunctionDispatcher' object has no attribute '__code__'"><pre class="notranslate"><code class="notranslate">AttributeError: 'numpy._ArrayFunctionDispatcher' object has no attribute '__code__'
</code></pre></div>
<p dir="auto">Should be due to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1535012503" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/23020" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/23020/hovercard" href="https://github.com/numpy/numpy/pull/23020">numpy/numpy#23020</a> (Cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/seberg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/seberg">@seberg</a>). There are two usages of <code class="notranslate">__code__</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" rg __code__
scipy/integrate/_quadrature.py
28: g = types.FunctionType(f.__code__, f.__globals__, name=f.__name__,
scipy/interpolate/_rbf.py
193: hasattr(self.function, '__code__'):
202: argcount = val.__code__.co_argcount"><pre class="notranslate"><code class="notranslate"> rg __code__
scipy/integrate/_quadrature.py
28: g = types.FunctionType(f.__code__, f.__globals__, name=f.__name__,
scipy/interpolate/_rbf.py
193: hasattr(self.function, '__code__'):
202: argcount = val.__code__.co_argcount
</code></pre></div>
<p dir="auto">Haven't checked yet what those do exactly, but either way this is a regression that's going to break already-released SciPy versions, so it should be fixed on the NumPy side.</p> | 1 |
<p dir="auto">Help me, i dont know whats wrong with this. (note : i can run aplication well if i create app on android studio project but when i create flutter on android studio, i got this error logs.)</p>
<h2 dir="auto">Steps to Reproduce</h2>
<ol dir="auto">
<li>created an app flutter in android studio</li>
<li>when it done, i try to run it on my real device</li>
<li>and i got this error logs</li>
</ol>
<h2 dir="auto">Logs</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Resolving dependencies...
* Error running Gradle:
Exit code 1 from: D:\Flutter Dev\venue_loka\android\gradlew.bat app:properties:
Checking the license for package Android SDK Build-Tools 27.0.3 in C:\Program Files (x86)\Android\android-sdk\licenses
License for package Android SDK Build-Tools 27.0.3 accepted.
Preparing "Install Android SDK Build-Tools 27.0.3 (revision: 27.0.3)".
Warning: Failed to read or create install properties file.
FAILURE: Build failed with an exception.
Finished with error: Please review your Gradle project setup in the android/ folder.
* Where:
Build file 'D:\Flutter Dev\venue_loka\android\build.gradle' line: 24
* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
> Failed to install the following SDK components:
build-tools;27.0.3 Android SDK Build-Tools 27.0.3
The SDK directory is not writable (C:\Program Files (x86)\Android\android-sdk)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 16s"><pre class="notranslate"><code class="notranslate">Resolving dependencies...
* Error running Gradle:
Exit code 1 from: D:\Flutter Dev\venue_loka\android\gradlew.bat app:properties:
Checking the license for package Android SDK Build-Tools 27.0.3 in C:\Program Files (x86)\Android\android-sdk\licenses
License for package Android SDK Build-Tools 27.0.3 accepted.
Preparing "Install Android SDK Build-Tools 27.0.3 (revision: 27.0.3)".
Warning: Failed to read or create install properties file.
FAILURE: Build failed with an exception.
Finished with error: Please review your Gradle project setup in the android/ folder.
* Where:
Build file 'D:\Flutter Dev\venue_loka\android\build.gradle' line: 24
* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
> Failed to install the following SDK components:
build-tools;27.0.3 Android SDK Build-Tools 27.0.3
The SDK directory is not writable (C:\Program Files (x86)\Android\android-sdk)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 16s
</code></pre></div> | <p dir="auto">i receive an error when i run flutter run</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter run
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle... 0.7s
Resolving dependencies... 0.9s
Running 'gradlew assembleDebug'...
Configuration 'debugCompile' in project ':app' is deprecated. Use 'debugImplementation' instead.
Configuration 'profileCompile' in project ':app' is deprecated. Use 'profileImplementation' instead.
Configuration 'releaseCompile' in project ':app' is deprecated. Use 'releaseImplementation' instead.
Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
Configuration 'debugProvided' in project ':apn_fb_login' is deprecated. Use 'debugCompileOnly' instead.
Configuration 'releaseProvided' in project ':apn_fb_login' is deprecated. Use 'releaseCompileOnly' instead.
Configuration 'debugProvided' in project ':firebase_messaging' is deprecated. Use 'debugCompileOnly' instead.
Configuration 'releaseProvided' in project ':firebase_messaging' is deprecated. Use 'releaseCompileOnly' instead.
Configuration 'debugProvided' in project ':google_sign_in' is deprecated. Use 'debugCompileOnly' instead.
Configuration 'releaseProvided' in project ':google_sign_in' is deprecated. Use 'releaseCompileOnly' instead.
Configuration 'debugProvided' in project ':image_picker' is deprecated. Use 'debugCompileOnly' instead.
Configuration 'releaseProvided' in project ':image_picker' is deprecated. Use 'releaseCompileOnly' instead.
Configuration 'debugProvided' in project ':share' is deprecated. Use 'debugCompileOnly' instead.
Configuration 'releaseProvided' in project ':share' is deprecated. Use 'releaseCompileOnly' instead.
Configuration 'debugProvided' in project ':shared_preferences' is deprecated. Use 'debugCompileOnly' instead.
Configuration 'releaseProvided' in project ':shared_preferences' is deprecated. Use 'releaseCompileOnly' instead.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:preDebugBuild'.
> Android dependency 'com.android.support:appcompat-v7' has different version for the compile (26.1.0) and runtime (27.0.1) classpath. You should manually set the same version via DependencyResolution
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
Gradle build failed: 1
"><pre class="notranslate"><code class="notranslate">flutter run
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle... 0.7s
Resolving dependencies... 0.9s
Running 'gradlew assembleDebug'...
Configuration 'debugCompile' in project ':app' is deprecated. Use 'debugImplementation' instead.
Configuration 'profileCompile' in project ':app' is deprecated. Use 'profileImplementation' instead.
Configuration 'releaseCompile' in project ':app' is deprecated. Use 'releaseImplementation' instead.
Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
Configuration 'debugProvided' in project ':apn_fb_login' is deprecated. Use 'debugCompileOnly' instead.
Configuration 'releaseProvided' in project ':apn_fb_login' is deprecated. Use 'releaseCompileOnly' instead.
Configuration 'debugProvided' in project ':firebase_messaging' is deprecated. Use 'debugCompileOnly' instead.
Configuration 'releaseProvided' in project ':firebase_messaging' is deprecated. Use 'releaseCompileOnly' instead.
Configuration 'debugProvided' in project ':google_sign_in' is deprecated. Use 'debugCompileOnly' instead.
Configuration 'releaseProvided' in project ':google_sign_in' is deprecated. Use 'releaseCompileOnly' instead.
Configuration 'debugProvided' in project ':image_picker' is deprecated. Use 'debugCompileOnly' instead.
Configuration 'releaseProvided' in project ':image_picker' is deprecated. Use 'releaseCompileOnly' instead.
Configuration 'debugProvided' in project ':share' is deprecated. Use 'debugCompileOnly' instead.
Configuration 'releaseProvided' in project ':share' is deprecated. Use 'releaseCompileOnly' instead.
Configuration 'debugProvided' in project ':shared_preferences' is deprecated. Use 'debugCompileOnly' instead.
Configuration 'releaseProvided' in project ':shared_preferences' is deprecated. Use 'releaseCompileOnly' instead.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:preDebugBuild'.
> Android dependency 'com.android.support:appcompat-v7' has different version for the compile (26.1.0) and runtime (27.0.1) classpath. You should manually set the same version via DependencyResolution
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
Gradle build failed: 1
</code></pre></div>
<p dir="auto">My gradle.build file is:</p>
<div class="highlight highlight-source-groovy-gradle notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withInputStream { stream ->
localProperties.load(stream)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
compileSdkVersion 26
buildToolsVersion '26.0.3'
lintOptions {
disable 'InvalidPackage'
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.shuttertop.app"
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
}
flutter {
source '../..'
}
dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
}
apply plugin: 'com.google.gms.google-services'"><pre class="notranslate"><span class="pl-k">def</span> localProperties <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-k">Properties</span>()
<span class="pl-k">def</span> localPropertiesFile <span class="pl-k">=</span> rootProject<span class="pl-k">.</span>file(<span class="pl-s"><span class="pl-pds">'</span>local.properties<span class="pl-pds">'</span></span>)
<span class="pl-k">if</span> (localPropertiesFile<span class="pl-k">.</span>exists()) {
localPropertiesFile<span class="pl-k">.</span>withInputStream { <span class="pl-v">stream</span> <span class="pl-k">-></span>
localProperties<span class="pl-k">.</span>load(stream)
}
}
<span class="pl-k">def</span> flutterRoot <span class="pl-k">=</span> localProperties<span class="pl-k">.</span>getProperty(<span class="pl-s"><span class="pl-pds">'</span>flutter.sdk<span class="pl-pds">'</span></span>)
<span class="pl-k">if</span> (flutterRoot <span class="pl-k">==</span> <span class="pl-c1">null</span>) {
<span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-k">GradleException</span>(<span class="pl-s"><span class="pl-pds">"</span>Flutter SDK not found. Define location with flutter.sdk in the local.properties file.<span class="pl-pds">"</span></span>)
}
apply <span class="pl-c1">plugin</span>: <span class="pl-s"><span class="pl-pds">'</span>com.android.application<span class="pl-pds">'</span></span>
apply <span class="pl-c1">from</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">$f<span class="pl-smi">lutterRoot</span></span>/packages/flutter_tools/gradle/flutter.gradle<span class="pl-pds">"</span></span>
<span class="pl-en">android</span> {
compileSdkVersion 26
buildToolsVersion <span class="pl-s"><span class="pl-pds">'</span>26.0.3<span class="pl-pds">'</span></span>
lintOptions {
disable <span class="pl-s"><span class="pl-pds">'</span>InvalidPackage<span class="pl-pds">'</span></span>
}
defaultConfig {
<span class="pl-c"><span class="pl-c">//</span> TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).</span>
applicationId <span class="pl-s"><span class="pl-pds">"</span>com.shuttertop.app<span class="pl-pds">"</span></span>
minSdkVersion <span class="pl-c1">16</span>
targetSdkVersion <span class="pl-c1">26</span>
versionCode <span class="pl-c1">1</span>
versionName <span class="pl-s"><span class="pl-pds">"</span>1.0<span class="pl-pds">"</span></span>
testInstrumentationRunner <span class="pl-s"><span class="pl-pds">"</span>android.support.test.runner.AndroidJUnitRunner<span class="pl-pds">"</span></span>
}
buildTypes {
release {
<span class="pl-c"><span class="pl-c">//</span> TODO: Add your own signing config for the release build.</span>
<span class="pl-c"><span class="pl-c">//</span> Signing with the debug keys for now, so `flutter run --release` works.</span>
signingConfig signingConfigs<span class="pl-k">.</span>debug
}
}
}
<span class="pl-en">flutter</span> {
source <span class="pl-s"><span class="pl-pds">'</span>../..<span class="pl-pds">'</span></span>
}
<span class="pl-en">dependencies</span> {
testImplementation <span class="pl-s"><span class="pl-pds">'</span>junit:junit:4.12<span class="pl-pds">'</span></span>
androidTestImplementation <span class="pl-s"><span class="pl-pds">'</span>com.android.support.test:runner:1.0.1<span class="pl-pds">'</span></span>
androidTestImplementation <span class="pl-s"><span class="pl-pds">'</span>com.android.support.test.espresso:espresso-core:3.0.1<span class="pl-pds">'</span></span>
}
apply <span class="pl-c1">plugin</span>: <span class="pl-s"><span class="pl-pds">'</span>com.google.gms.google-services<span class="pl-pds">'</span></span></pre></div>
<p dir="auto">flutter doctor:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (on Linux, locale en_US.UTF-8, channel alpha)
• Flutter at /home/luca/Programs/flutter
• Framework revision 8f65fec5f5 (4 weeks 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.3)
• Android SDK at /home/luca/Android/Sdk
• Android NDK at /home/luca/Android/Sdk/ndk-bundle
• Platform android-26, build-tools 26.0.3
• ANDROID_HOME = /home/luca/Android/Sdk
• Java binary at: /home/luca/Programs/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[✓] Android Studio (version 3.0)
• Android Studio at /home/luca/Programs/android-studio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[✓] Connected devices
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator)
"><pre class="notranslate"><code class="notranslate">[✓] Flutter (on Linux, locale en_US.UTF-8, channel alpha)
• Flutter at /home/luca/Programs/flutter
• Framework revision 8f65fec5f5 (4 weeks 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.3)
• Android SDK at /home/luca/Android/Sdk
• Android NDK at /home/luca/Android/Sdk/ndk-bundle
• Platform android-26, build-tools 26.0.3
• ANDROID_HOME = /home/luca/Android/Sdk
• Java binary at: /home/luca/Programs/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[✓] Android Studio (version 3.0)
• Android Studio at /home/luca/Programs/android-studio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[✓] Connected devices
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator)
</code></pre></div> | 1 |
<p dir="auto">Enhance <a href="https://github.com/pandas-dev/pandas/blob/master/doc/source/contributing.rst">https://github.com/pandas-dev/pandas/blob/master/doc/source/contributing.rst</a> with a discussion of how our <code class="notranslate">_shared_docs</code> system works.</p>
<ul dir="auto">
<li>Why we do it (reduce duplicate docstrings, while still having some class-specific stuff)</li>
<li>How it's done (Appender, _shared_docs dict, _shared_doc_kwargs)</li>
<li>How to substitute values</li>
</ul> | <p dir="auto">The output from .groups on a grouped DataFrame should be handled similarly to a large DataFrame, where beyond a certain length, the data is displayed in a summary form rather than output in its entirety.</p>
<p dir="auto">This truncation should occur both at the group level (large number of groups) and per-group (large amount of data points in a group).</p> | 0 |
<p dir="auto">This github issue is meant to track the big roadmap items ahead of use and for the community to provide ideas, feedback, steer and comment</p>
<h2 dir="auto">Lineage Annotations</h2>
<p dir="auto">Airflow knows a lot about your job dependencies, but how much does it know about your data objects (databases, tables, reports, ...)? Lineage annotations would expose a way for users to define lineage between data objects explicitly and tie that to tasks and/or DAG. The framework may include hooks for programatic inference (HiveOperator could introspect the HQL and guess table names and lineage), and a way to override or complement these. The framework will most likely be fairly agnostic about your data objects, letting you namespace them however you want, and simply consider them as an array of parent/child relationship between strings. It may be nice to use dot notation and reserve the first part of the expression to <code class="notranslate">object_type</code>, allowing for color coding in a graph view and tying actions (links) and the like. This will course ship with nice graph visualization, browsing and navigation features.</p>
<h2 dir="auto">Picklin'</h2>
<p dir="auto">stateless/codeless web servers and workers</p>
<h2 dir="auto">Backfilll UI</h2>
<p dir="auto">Trigger a backfill from the UI</p>
<h2 dir="auto">REST API</h2>
<p dir="auto">Essentially offering features similar to what is available in the CLI through a REST API, there may be some automagic solutions here that can figure out how to build REST specs from argparse, it would also insure consistency between the two</p>
<h1 dir="auto">[done!]</h1>
<h2 dir="auto">Continuous integration with Travis-CI</h2>
<p dir="auto">Systematically run all unit tests against CDH and HDP on Python 2.7 and 3.5</p>
<h2 dir="auto">Externally Triggered DAGs</h2>
<p dir="auto">Airflow currently assumes that you run your workflows on a fixed schedule interval. This is perfect for hourly, daily and weekly jobs. When thinking about "analytics as a service" and "analysis automation", many use cases are more of the "on demand" nature. For instance if you have a workflow that processes someone's genome when ordered to, or a workflow that builds a dataset on demand for data scientists based on parameters they provide, .... This requires a new class of DAGs that are triggered externally, not on a fixed schedule interval.</p> | <p dir="auto"><strong>Apache Airflow version</strong>: None given</p>
<p dir="auto">Ticket was created 26/Jan/17 23:20</p>
<p dir="auto"><strong>Kubernetes version (if you are using kubernetes)</strong> (use <code class="notranslate">kubectl version</code>):</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>:</li>
<li><strong>OS</strong> (e.g. from /etc/os-release):</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li>
<li><strong>Install tools</strong>:</li>
<li><strong>Others</strong>:<br>
<strong>What happened</strong>:</li>
</ul>
<p dir="auto">following piece of code is the root cause of it.</p>
<p dir="auto">line = ''<br>
for line in iter(sp.stdout.readline, b''):<br>
line = line.decode(self.output_encoding).strip()<br>
logging.info(line)</p>
<p dir="auto">I plan to fix it using string buffer instead of just 1 line string variable here.</p>
<p dir="auto"><strong>What you expected to happen</strong>:</p>
<p dir="auto"><strong>How to reproduce it</strong>:</p>
<p dir="auto"><strong>Anything else we need to know</strong>:</p>
<p dir="auto">Moved here from <a href="https://issues.apache.org/jira/browse/AIRFLOW-833" rel="nofollow">https://issues.apache.org/jira/browse/AIRFLOW-833</a></p> | 0 |
<h3 dir="auto">What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?</h3>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="213000689" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/8238" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/8238/hovercard" href="https://github.com/tensorflow/tensorflow/issues/8238">#8238</a></p>
<h3 dir="auto">Environment info</h3>
<p dir="auto">OS X 10.11.6<br>
$ clang --version<br>
Apple LLVM version 8.0.0 (clang-800.0.42.1)<br>
Target: x86_64-apple-darwin15.6.0<br>
Thread model: posix<br>
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin</p>
<p dir="auto">Installed version of CUDA and cuDNN:<br>
drwxrwxrwx 15 root wheel 510 May 3 2015 CUDA-7.0<br>
David-Laxers-MacBook-Pro:tensorflow davidlaxer$ ls -l /Developer/NVIDIA/CUDA-7.0/lib/libcud*<br>
-rw-r--r-- 1 davidlaxer staff 292184 Mar 6 2015 /Developer/NVIDIA/CUDA-7.0/lib/libcudadevrt.a<br>
-rwxr-xr-x 1 davidlaxer staff 274176 Mar 6 2015 /Developer/NVIDIA/CUDA-7.0/lib/libcudart.7.0.dylib<br>
lrwxr-xr-x 1 davidlaxer staff 19 Mar 6 2015 /Developer/NVIDIA/CUDA-7.0/lib/libcudart.dylib -> libcudart.7.0.dylib<br>
-rw-r--r-- 1 davidlaxer staff 562856 Mar 6 2015 /Developer/NVIDIA/CUDA-7.0/lib/libcudart_static.a<br>
If installed from binary pip package, provide:</p>
<ol dir="auto">
<li>A link to the pip package you installed:</li>
<li>The output from <code class="notranslate">python -c "import tensorflow; print(tensorflow.__version__)"</code>.</li>
</ol>
<p dir="auto">print(tensorflow.<strong>version</strong>)<br>
1.0.1<br>
If installed from source, provide</p>
<ol dir="auto">
<li>The commit hash (<code class="notranslate">git rev-parse HEAD</code>)</li>
</ol>
<p dir="auto"><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/99e30bc6b22b259ddc6a2cfc6aec1d9ebc635da4/hovercard" href="https://github.com/tensorflow/tensorflow/commit/99e30bc6b22b259ddc6a2cfc6aec1d9ebc635da4"><tt>99e30bc</tt></a></p>
<ol start="2" dir="auto">
<li>The output of <code class="notranslate">bazel version</code></li>
</ol>
<p dir="auto">Build label: 0.4.2<br>
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar<br>
Build time: Wed Dec 7 15:54:21 2016 (1481126061)<br>
Build timestamp: 1481126061<br>
Build timestamp as int: 1481126061</p> | <p dir="auto">There is a length/signed/unsigned mismatch in an inline vector initialization.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tensorflow/compiler/xla/service/allocation_tracker.cc:178:54: error: non-constant-expression cannot be narrowed from type 'std::vector<se::DeviceMemoryBase>::size_type' (aka 'unsigned long') to 'long long' in initializer list [-Wc++11-narrowing]
ShapeUtil::GetSubshape(allocation->shape(), {i}),
^
tensorflow/compiler/xla/service/allocation_tracker.cc:178:54: note: insert an explicit cast to silence this issue
ShapeUtil::GetSubshape(allocation->shape(), {i}),
^
static_cast<long long>( )
1 error generated."><pre class="notranslate"><code class="notranslate">tensorflow/compiler/xla/service/allocation_tracker.cc:178:54: error: non-constant-expression cannot be narrowed from type 'std::vector<se::DeviceMemoryBase>::size_type' (aka 'unsigned long') to 'long long' in initializer list [-Wc++11-narrowing]
ShapeUtil::GetSubshape(allocation->shape(), {i}),
^
tensorflow/compiler/xla/service/allocation_tracker.cc:178:54: note: insert an explicit cast to silence this issue
ShapeUtil::GetSubshape(allocation->shape(), {i}),
^
static_cast<long long>( )
1 error generated.
</code></pre></div>
<p dir="auto">diff:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--- a/tensorflow/compiler/xla/service/allocation_tracker.cc
+++ b/tensorflow/compiler/xla/service/allocation_tracker.cc
@@ -175,7 +175,7 @@ StatusOr<std::vector<GlobalDataHandle>> AllocationTracker::DeconstructTuple(
i < element_bases.size(); ++i) {
element_handles.push_back(RegisterInternal(
allocation->backend(), allocation->device_ordinal(), element_bases[i],
- ShapeUtil::GetSubshape(allocation->shape(), {i}),
+ ShapeUtil::GetSubshape(allocation->shape(), {static_cast<long long>(i)}),
tensorflow::strings::StrCat(allocation->tag(), ".element_", i),
/*initial_ref_count=*/2));
}"><pre class="notranslate"><code class="notranslate">--- a/tensorflow/compiler/xla/service/allocation_tracker.cc
+++ b/tensorflow/compiler/xla/service/allocation_tracker.cc
@@ -175,7 +175,7 @@ StatusOr<std::vector<GlobalDataHandle>> AllocationTracker::DeconstructTuple(
i < element_bases.size(); ++i) {
element_handles.push_back(RegisterInternal(
allocation->backend(), allocation->device_ordinal(), element_bases[i],
- ShapeUtil::GetSubshape(allocation->shape(), {i}),
+ ShapeUtil::GetSubshape(allocation->shape(), {static_cast<long long>(i)}),
tensorflow::strings::StrCat(allocation->tag(), ".element_", i),
/*initial_ref_count=*/2));
}
</code></pre></div> | 1 |
<p dir="auto">Challenge wouldn't accept border in shorthand; also wouldn't accept border in longhand<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/10858542/7866412/e2e890e2-0534-11e5-97fe-99eb3252721e.PNG"><img src="https://cloud.githubusercontent.com/assets/10858542/7866412/e2e890e2-0534-11e5-97fe-99eb3252721e.PNG" alt="add border around element" style="max-width: 100%;"></a></p> | <p dir="auto">The following HTML is not working for this challenge:</p>
<style>
.smaller-image {
width: 100px;
}
.thick-green-border{
border-width: 10px;
border-color: green;
border-style: solid;
}
</style>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/f1ba009cb2b5e79d9cba610fbc92f8aead0c3e4f49d07d666f81d2557c1b1f16/68747470733a2f2f6269742e6c792f6663632d6b697474656e73"><img src="https://camo.githubusercontent.com/f1ba009cb2b5e79d9cba610fbc92f8aead0c3e4f49d07d666f81d2557c1b1f16/68747470733a2f2f6269742e6c792f6663632d6b697474656e73" data-canonical-src="https://bit.ly/fcc-kittens" style="max-width: 100%;"></a></p>
<p dir="auto">I'm not sure what I'm doing wrong?</p> | 1 |
<pre class="notranslate">I started using the time package (<a href="http://golang.org/pkg/time/)" rel="nofollow">http://golang.org/pkg/time/)</a> and it supports timezones
only in the form of timezone offsets or the "deprecated" timezone
abbreviations.
Since abbreviations are not guaranteed to be unique, it is generally understood that
timezone names are the way to go (i.e. America/Los_Angeles instead of PST) but it's not
possible with the current time package.
Can the support be added to the time package for zone names?</pre> | <pre class="notranslate">A recent memory profiling run created a binary/memprofile pair that generates:
Illegal division by zero at .../pkg/tool/darwin_amd64/pprof line 3765, <PROFILE>
line 1556.
The memprofile file is at <a href="https://gist.github.com/josharian/6998976">https://gist.github.com/josharian/6998976</a>. I'd rather not
share the binary at this point, if possible.
Which version are you using? (run 'go version')
go version devel +6e3768395dd2 Mon Oct 14 10:53:55 2013 -0700 darwin/amd64</pre> | 0 |
<p dir="auto">On x86:<br>
<code class="notranslate">>>>np.float64(np.nan).astype('M8[ns]')</code><br>
<code class="notranslate">numpy.datetime64('NaT')</code></p>
<p dir="auto">On ARM:<br>
<code class="notranslate">>>>np.float64(np.nan).astype('M8[ns]')</code><br>
<code class="notranslate">numpy.datetime64('1970-01-01T00:00:00.00000000')</code></p>
<p dir="auto">Some tests for pandas fail on ARM due to this difference</p>
<p dir="auto">Traceback (most recent call last):<br>
File "/root/venv/lib/python2.7/site-packages/pandas/tseries/tests/test_timeseries.py", line 4072, in test_NaT_cast<br>
assert_series_equal(result, expected)<br>
File "/root/venv/lib/python2.7/site-packages/pandas/util/testing.py", line 1049, in assert_series_equal<br>
check_less_precise, obj='{0}'.format(obj))<br>
File "pandas/src/testing.pyx", line 58, in pandas._testing.assert_almost_equal (pandas/src/testing.c:3887)<br>
File "pandas/src/testing.pyx", line 147, in pandas._testing.assert_almost_equal (pandas/src/testing.c:2769)<br>
File "/root/venv/lib/python2.7/site-packages/pandas/util/testing.py", line 915, in raise_assert_detail<br>
raise AssertionError(msg)<br>
AssertionError: Series are different</p>
<p dir="auto">Series values are different (100.0 %)</p> | <p dir="auto">originally detected while building fresh pandas for debian [1], and then verified with current master of numpy:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(sid_powerpc-dchroot)yoh@partch:~/numpy$ python -c 'import numpy as np; print(np.array([np.nan]).astype("M8[ns]")); print np.__version__'; git describe --tags
['2262-04-10T00:12:45.292707840']
1.13.0.dev0+a4dca24
pre-removal-numpybook-3581-ga4dca24"><pre class="notranslate">(sid_powerpc-dchroot)yoh@partch:<span class="pl-k">~</span>/numpy$ python -c <span class="pl-s"><span class="pl-pds">'</span>import numpy as np; print(np.array([np.nan]).astype("M8[ns]")); print np.__version__<span class="pl-pds">'</span></span><span class="pl-k">;</span> git describe --tags
[<span class="pl-s"><span class="pl-pds">'</span>2262-04-10T00:12:45.292707840<span class="pl-pds">'</span></span>]
1.13.0.dev0+a4dca24
pre-removal-numpybook-3581-ga4dca24</pre></div>
<p dir="auto">expected result (e.g. on amd64 box):</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$> python -c 'import numpy as np; print(np.array([np.nan]).astype("M8[ns]")); print np.__version__';
['NaT']
1.11.2"><pre class="notranslate">$<span class="pl-k">></span> python -c <span class="pl-s"><span class="pl-pds">'</span>import numpy as np; print(np.array([np.nan]).astype("M8[ns]")); print np.__version__<span class="pl-pds">'</span></span><span class="pl-k">;</span>
[<span class="pl-s"><span class="pl-pds">'</span>NaT<span class="pl-pds">'</span></span>]
1.11.2</pre></div>
<p dir="auto">[1] <a href="https://buildd.debian.org/status/fetch.php?pkg=pandas&arch=powerpc&ver=0.19.1-2&stamp=1480352140" rel="nofollow">https://buildd.debian.org/status/fetch.php?pkg=pandas&arch=powerpc&ver=0.19.1-2&stamp=1480352140</a></p>
<p dir="auto">edit 1: issue is not new (debian jessie/stable):</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(jessie_powerpc-dchroot)yoh@partch:~$ python -c 'import numpy as np; print(np.array([np.nan]).astype("M8[ns]")); print np.__version__'
['2262-04-10T00:12:45.292707840+0000']
1.8.2"><pre class="notranslate">(jessie_powerpc-dchroot)yoh@partch:<span class="pl-k">~</span>$ python -c <span class="pl-s"><span class="pl-pds">'</span>import numpy as np; print(np.array([np.nan]).astype("M8[ns]")); print np.__version__<span class="pl-pds">'</span></span>
[<span class="pl-s"><span class="pl-pds">'</span>2262-04-10T00:12:45.292707840+0000<span class="pl-pds">'</span></span>]
1.8.2</pre></div> | 1 |
<p dir="auto">Here is the text data I would like to read as a data frame:</p>
<p dir="auto">data3="Date Open High Low Close Volume\nMay 16, 2014 2.92 2.93 2.82 2.85 25,715,748\nMay 15, 2014 3.02 3.05 2.88 2.92 28,311,224\nAug 8, 2013 1.97 1.98 1.94 1.95 20,100,154\nAug 7, 2013 1.89 1.97 1.87 1.95 29,206,564\nAug 6, 2013 1.95 2.01 1.88 1.90 52,198,842\nAug 5, 2013 1.88 1.94 1.88 1.92 29,041,924\nAug 2, 2013 1.86 1.88 1.83 1.86 22,169,076"</p>
<p dir="auto">It's from an Html table of 6 columns: Date Open High Low Close Volume.</p>
<p dir="auto">When I use wether the wether read_csv or read_table, I have a weird output.<br>
Here is my script:</p>
<p dir="auto">in [0] :<br>
import StringIO as s<br>
import pandas as pd</p>
<p dir="auto">data3="Date Open High Low Close Volume\nMay 16, 2014 2.92 2.93 2.82 2.85 25,715,748\nMay 15, 2014 3.02 3.05 2.88 2.92 28,311,224\nAug 8, 2013 1.97 1.98 1.94 1.95 20,100,154\nAug 7, 2013 1.89 1.97 1.87 1.95 29,206,564\nAug 6, 2013 1.95 2.01 1.88 1.90 52,198,842\nAug 5, 2013 1.88 1.94 1.88 1.92 29,041,924\nAug 2, 2013 1.86 1.88 1.83 1.86 22,169,076"</p>
<p dir="auto">pd.read_table(s.StringIO(data3),<br>
header=0,<br>
thousands=',',<br>
sep=" ",<br>
parse_dates=False)</p>
<p dir="auto">out[0] :<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5865600/3008327/a4535af4-deb8-11e3-931f-8c1ec97c41e5.png"><img src="https://cloud.githubusercontent.com/assets/5865600/3008327/a4535af4-deb8-11e3-931f-8c1ec97c41e5.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">And I would like to have:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5865600/3008341/ec649ad8-deb8-11e3-9207-02e3051cc9d8.png"><img src="https://cloud.githubusercontent.com/assets/5865600/3008341/ec649ad8-deb8-11e3-9207-02e3051cc9d8.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">And if I set the parameter parse_dates to TRUE, I got this:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5865600/3008347/148e7876-deb9-11e3-9997-b0dd99239276.png"><img src="https://cloud.githubusercontent.com/assets/5865600/3008347/148e7876-deb9-11e3-9997-b0dd99239276.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Even weirder !!</p>
<p dir="auto">Im not sure if it is a bug or I did something wrong but if someone can give us a clue.....it would be welcome.</p>
<p dir="auto">Thanks</p>
<p dir="auto">Rgds,</p>
<p dir="auto">Mickael</p> | <p dir="auto">Input:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd
values = ['11', '23', '45', '98']
noindex = pd.Series(data=values, index=None)
yesindex = pd.Series(data=values, index=list('abcd'))
extractno = noindex.str.extract('(\d)')
print extractno
extractyes = yesindex.str.extract('(\d)')
print extractyes"><pre class="notranslate"><code class="notranslate">import pandas as pd
values = ['11', '23', '45', '98']
noindex = pd.Series(data=values, index=None)
yesindex = pd.Series(data=values, index=list('abcd'))
extractno = noindex.str.extract('(\d)')
print extractno
extractyes = yesindex.str.extract('(\d)')
print extractyes
</code></pre></div>
<p dir="auto">Output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0 1
1 2
2 4
3 9
dtype: object
a NaN
b NaN
c NaN
d NaN
dtype: object"><pre class="notranslate"><code class="notranslate">0 1
1 2
2 4
3 9
dtype: object
a NaN
b NaN
c NaN
d NaN
dtype: object
</code></pre></div> | 0 |
<p dir="auto"><strong>Apache Airflow version</strong>: 1.10.10</p>
<p dir="auto"><strong>Kubernetes version (if you are using kubernetes)</strong> (use <code class="notranslate">kubectl version</code>):</p>
<p dir="auto"><strong>Environment</strong>:<br>
Debian with pip install airflow</p>
<p dir="auto"><strong>What happened</strong>:<br>
I have some missing DAGs from the source code and it has the record in the database.<br>
When I upgrade to v1.10.10, those DAGs don't have the description field, which is None by default, so the change on this PR, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="567212421" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/7457" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/7457/hovercard" href="https://github.com/apache/airflow/pull/7457">#7457</a>, will return an error about applying <code class="notranslate">len</code> function to None type.</p>
<p dir="auto"><strong>What you expected to happen</strong>:<br>
It should not have any error during the rendering.</p>
<p dir="auto"><strong>How to reproduce it</strong>:<br>
Remove a registered DAG from the source code. And the error will pop up</p>
<p dir="auto"><strong>Anything else we need to know</strong>:<br>
Nope</p> | <h3 dir="auto">Official Helm Chart version</h3>
<p dir="auto">1.3.0 (latest released)</p>
<h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">2.2.2</p>
<h3 dir="auto">Kubernetes Version</h3>
<p dir="auto">1.2.1</p>
<h3 dir="auto">Helm Chart configuration</h3>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="airflow:
env:
- name: AIRFLOW__SCHEDULER__USE_ROW_LEVEL_LOCKING
value: "True"
webserver:
livenessProbe:
initialDelaySeconds: 100
timeoutSeconds: 100
failureThreshold: 20
periodSeconds: 25
readinessProbe:
initialDelaySeconds: 100
timeoutSeconds: 100
failureThreshold: 20
periodSeconds: 25
scheduler:
replicas: 2
executor: CeleryExecutor"><pre class="notranslate"><span class="pl-ent">airflow</span>:
<span class="pl-ent">env</span>:
- <span class="pl-ent">name</span>: <span class="pl-s">AIRFLOW__SCHEDULER__USE_ROW_LEVEL_LOCKING</span>
<span class="pl-ent">value</span>: <span class="pl-s"><span class="pl-pds">"</span>True<span class="pl-pds">"</span></span>
<span class="pl-ent">webserver</span>:
<span class="pl-ent">livenessProbe</span>:
<span class="pl-ent">initialDelaySeconds</span>: <span class="pl-c1">100</span>
<span class="pl-ent">timeoutSeconds</span>: <span class="pl-c1">100</span>
<span class="pl-ent">failureThreshold</span>: <span class="pl-c1">20</span>
<span class="pl-ent">periodSeconds</span>: <span class="pl-c1">25</span>
<span class="pl-ent">readinessProbe</span>:
<span class="pl-ent">initialDelaySeconds</span>: <span class="pl-c1">100</span>
<span class="pl-ent">timeoutSeconds</span>: <span class="pl-c1">100</span>
<span class="pl-ent">failureThreshold</span>: <span class="pl-c1">20</span>
<span class="pl-ent">periodSeconds</span>: <span class="pl-c1">25</span>
<span class="pl-ent">scheduler</span>:
<span class="pl-ent">replicas</span>: <span class="pl-c1">2</span>
<span class="pl-ent">executor</span>: <span class="pl-s">CeleryExecutor</span></pre></div>
<h3 dir="auto">Docker Image customisations</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">What happened</h3>
<p dir="auto">I added 500 dummy dags, and my scheduler/postgres logs are flooded with such error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="duplicate key value violates unique constraint "serialized_dag_pkey"
DETAIL: Key (dag_id)=(test_dag_454) already exists.
scheduler [SQL: INSERT INTO serialized_dag (dag_id, fileloc, fileloc_hash, data, last_updated, dag_hash) VALUES (%(dag_id)s, %(fileloc)s, %(fileloc_hash)s, scheduler [parameters: {'dag_id': 'test_dag_454', 'fileloc': '/opt/airflow/dags/repo/test_dag_454.py', 'fileloc_hash': 14390114031793844, 'data': '{"__vers scheduler (Background on this error at: http://sqlalche.me/e/13/gkpj)"><pre class="notranslate"><code class="notranslate">duplicate key value violates unique constraint "serialized_dag_pkey"
DETAIL: Key (dag_id)=(test_dag_454) already exists.
scheduler [SQL: INSERT INTO serialized_dag (dag_id, fileloc, fileloc_hash, data, last_updated, dag_hash) VALUES (%(dag_id)s, %(fileloc)s, %(fileloc_hash)s, scheduler [parameters: {'dag_id': 'test_dag_454', 'fileloc': '/opt/airflow/dags/repo/test_dag_454.py', 'fileloc_hash': 14390114031793844, 'data': '{"__vers scheduler (Background on this error at: http://sqlalche.me/e/13/gkpj)
</code></pre></div>
<h3 dir="auto">What you expected to happen</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Anything else</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | 0 |
<h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">When moving a window out of a fancy zone it should resize to it's original size before being snapped into the fancy zone. This would operate like the existing Windows snap feature.</p>
<h1 dir="auto">Proposed technical implementation details</h1>
<p dir="auto">Perhaps add this as an option as the current implementation may be preferred by some.</p> | <h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">It would be nice to be able to add a shortcut that prints any character (maybe even multiple characters at once).</p>
<p dir="auto">This is useful if you want a key or shortcut to output a character that's not on the current keyboard layout (or insert text snippets) ‒ for instance for creating a keyboard layout that contains two different character sets or an additional layer of special characters. I'm using an AutoHotKey script to map shortcuts to e.g. <code class="notranslate">×</code>, <code class="notranslate">‒</code> (a longer dash) and the backtick (without it behaving like a dead key, which is useful for programming).</p> | 0 |
<p dir="auto">Hi,<br>
The following code works in version 1.2, but leads to an exception in version 1.3:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> from matplotlib import pyplot as plt
>>> plt.plot(range(10), color='none')
>>> plt.show()"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">plt</span>.<span class="pl-en">plot</span>(<span class="pl-en">range</span>(<span class="pl-c1">10</span>), <span class="pl-s1">color</span><span class="pl-c1">=</span><span class="pl-s">'none'</span>)
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto">I think the issue boils down to this commit: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/matplotlib/matplotlib/commit/edc48f01d27c3f91c2f4460f8fff9eadbd7d2c74/hovercard" href="https://github.com/matplotlib/matplotlib/commit/edc48f01d27c3f91c2f4460f8fff9eadbd7d2c74"><tt>edc48f0</tt></a></p>
<p dir="auto">I'm not sure whether this was an intentional change. Thanks!</p> | <h3 dir="auto">Documentation Link</h3>
<p dir="auto"><a href="https://matplotlib.org/devdocs/api/_as_gen/matplotlib.pyplot.subplot_mosaic.html" rel="nofollow">https://matplotlib.org/devdocs/api/_as_gen/matplotlib.pyplot.subplot_mosaic.html</a></p>
<h3 dir="auto">Problem</h3>
<p dir="auto">Now that <code class="notranslate">pyplot</code> has inline type annotations, they show up in the API documentation and can make the calling signatures harder to read. The figure creation functions are a particularly good example of this.</p>
<h3 dir="auto">Suggested improvement</h3>
<p dir="auto">xarray's approach is to simply <a href="https://github.com/pydata/xarray/blob/850156cf80fe8791d45bcaff2da579cffc0cfc35/doc/conf.py#L113">turn off the annotations in the docs</a>. Perhaps there is a more nuanced solution?</p> | 0 |
<p dir="auto">Currently,</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Validator\Mapping\MemberMetadata::accept() "><pre class="notranslate"><span class="pl-v">Validator</span>\<span class="pl-v">Mapping</span>\<span class="pl-v">MemberMetadata</span>::<span class="pl-en">accept</span>() </pre></div>
<p dir="auto">leaves traversing of properties that are arrays or \Traversable up to the visitor.<br>
While the main purpose of <em>Visitor Pattern</em> is to decouple object structure from visitor functionality.</p>
<p dir="auto">In the following example, i naively expected that, when visiting an entity, a MyValidationVisitor::vizit() method would be recursively invoked for every entity property.</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$metadata = $validator->getMetadataFor($entity);
$visitor = new MyValidationVisitor();
$metadata->accept($visitor, $entity, ...);"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>metadata</span> = <span class="pl-s1"><span class="pl-c1">$</span>validator</span>-><span class="pl-en">getMetadataFor</span>(<span class="pl-s1"><span class="pl-c1">$</span>entity</span>);
<span class="pl-s1"><span class="pl-c1">$</span>visitor</span> = <span class="pl-k">new</span> <span class="pl-v">MyValidationVisitor</span>();
<span class="pl-s1"><span class="pl-c1">$</span>metadata</span>-><span class="pl-en">accept</span>(<span class="pl-s1"><span class="pl-c1">$</span>visitor</span>, <span class="pl-s1"><span class="pl-c1">$</span>entity</span>, ...);</pre></div>
<p dir="auto">In practice, i have to manually re-curse into array properties.</p>
<p dir="auto">I believe, that the need to call accept() inside Vizitor::visit() brings confusion, so the following code from Validator\ValidationVisitor::validate() method must be re-factored and moved to Validator\Mapping\MemberMetadata::accept() in order to decouple validation from structure of validated objects</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if (is_array($value) || ($traverse && $value instanceof \Traversable)) {
foreach ($value as $key => $element) {
// Ignore any scalar values in the collection
if (is_object($element) || is_array($element)) {
// Only repeat the traversal if $deep is set
$this->validate($element, $group, $propertyPath.'['.$key.']', $deep, $deep);
}
}
try {
$this->metadataFactory->getMetadataFor($value)->accept($this, $value, $group, $propertyPath);
} catch (NoSuchMetadataException $e) {
// Metadata doesn't necessarily have to exist for
// traversable objects, because we know how to validate
// them anyway. Optionally, additional metadata is supported.
}
} else {
$this->metadataFactory->getMetadataFor($value)->accept($this, $value, $group, $propertyPath);
}"><pre class="notranslate"><span class="pl-k">if</span> (is_array(<span class="pl-s1"><span class="pl-c1">$</span>value</span>) || (<span class="pl-s1"><span class="pl-c1">$</span>traverse</span> && <span class="pl-s1"><span class="pl-c1">$</span>value</span> instanceof \<span class="pl-v">Traversable</span>)) {
<span class="pl-k">foreach</span> (<span class="pl-s1"><span class="pl-c1">$</span>value</span> <span class="pl-k">as</span> <span class="pl-s1"><span class="pl-c1">$</span>key</span> => <span class="pl-s1"><span class="pl-c1">$</span>element</span>) {
<span class="pl-c">// Ignore any scalar values in the collection</span>
<span class="pl-k">if</span> (is_object(<span class="pl-s1"><span class="pl-c1">$</span>element</span>) || is_array(<span class="pl-s1"><span class="pl-c1">$</span>element</span>)) {
<span class="pl-c">// Only repeat the traversal if $deep is set</span>
<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-en">validate</span>(<span class="pl-s1"><span class="pl-c1">$</span>element</span>, <span class="pl-s1"><span class="pl-c1">$</span>group</span>, <span class="pl-s1"><span class="pl-c1">$</span>propertyPath</span>.<span class="pl-s">'['</span>.<span class="pl-s1"><span class="pl-c1">$</span>key</span>.<span class="pl-s">']'</span>, <span class="pl-s1"><span class="pl-c1">$</span>deep</span>, <span class="pl-s1"><span class="pl-c1">$</span>deep</span>);
}
}
<span class="pl-k">try</span> {
<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-c1">metadataFactory</span>-><span class="pl-en">getMetadataFor</span>(<span class="pl-s1"><span class="pl-c1">$</span>value</span>)-><span class="pl-en">accept</span>(<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>, <span class="pl-s1"><span class="pl-c1">$</span>value</span>, <span class="pl-s1"><span class="pl-c1">$</span>group</span>, <span class="pl-s1"><span class="pl-c1">$</span>propertyPath</span>);
} <span class="pl-k">catch</span> (<span class="pl-smi"><span class="pl-smi">NoSuchMetadataException</span></span> <span class="pl-s1"><span class="pl-c1">$</span>e</span>) {
<span class="pl-c">// Metadata doesn't necessarily have to exist for</span>
<span class="pl-c">// traversable objects, because we know how to validate</span>
<span class="pl-c">// them anyway. Optionally, additional metadata is supported.</span>
}
} <span class="pl-k">else</span> {
<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-c1">metadataFactory</span>-><span class="pl-en">getMetadataFor</span>(<span class="pl-s1"><span class="pl-c1">$</span>value</span>)-><span class="pl-en">accept</span>(<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>, <span class="pl-s1"><span class="pl-c1">$</span>value</span>, <span class="pl-s1"><span class="pl-c1">$</span>group</span>, <span class="pl-s1"><span class="pl-c1">$</span>propertyPath</span>);
}</pre></div> | <p dir="auto">Currently there is a <code class="notranslate">@Route</code> annotation. But how could I easily add routes which are redirected to the main route to prevent duplicate content (Search Engine Optimization, redirect old routes, ..)?</p>
<p dir="auto">I think something like <code class="notranslate">@RedirectRoute("/test", "/target", 301)</code> would be nice.</p> | 0 |
<p dir="auto">React version: 18.2.0</p>
<h2 dir="auto">Steps To Reproduce</h2>
<ol dir="auto">
<li>Create a component that renders <code class="notranslate">children</code> directly or wrapped by a fragment</li>
<li>Programatically or using google in-page translate clear the component<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12008100/214622717-f3d871cd-7cb4-483b-9b6d-e4b7e9e6fdf8.png"><img width="612" alt="image" src="https://user-images.githubusercontent.com/12008100/214622717-f3d871cd-7cb4-483b-9b6d-e4b7e9e6fdf8.png" style="max-width: 100%;"></a></li>
<li>Trigger a re-render that removes the component</li>
<li>Observe error<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12008100/214622966-f547fe7e-e132-4eaa-8b9d-edb08f3063dd.png"><img width="1049" alt="image" src="https://user-images.githubusercontent.com/12008100/214622966-f547fe7e-e132-4eaa-8b9d-edb08f3063dd.png" style="max-width: 100%;"></a><br>
<code class="notranslate">Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.</code></li>
</ol>
<p dir="auto">There is a better title for this bug report I just can't think of it yet <g-emoji class="g-emoji" alias="sweat_smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f605.png">😅</g-emoji></p>
<p dir="auto">Link to code example: <a href="https://codesandbox.io/s/determined-antonelli-7swu6w?file=/src/App.js" rel="nofollow">https://codesandbox.io/s/determined-antonelli-7swu6w?file=/src/App.js</a></p>
<h2 dir="auto">The current behavior</h2>
<p dir="auto">The page turns blank because the element to remove could not be found</p>
<h2 dir="auto">The expected behavior</h2>
<p dir="auto">Either ignore the element and try to continue, or re-render the first parent node that <em>does</em> exist</p> | <h2 dir="auto">Coming from search? See workaround here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="273303484" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/11538" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/11538/hovercard?comment_id=417504600&comment_type=issue_comment" href="https://github.com/facebook/react/issues/11538#issuecomment-417504600">#11538 (comment)</a>. And star this issue: <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=872770" rel="nofollow">https://bugs.chromium.org/p/chromium/issues/detail?id=872770</a>.</h2>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p>
<p dir="auto">Bug, though there's a decent chance it's a Chrome/Google Translate one</p>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto">When using Google Translate on a page using React 16, a certain code pattern produces a Javascript error (<code class="notranslate">Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.</code>) when the rendered content changes.</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via <a href="https://jsfiddle.net" rel="nofollow">https://jsfiddle.net</a> or similar (template for React 16: <a href="https://jsfiddle.net/Luktwrdm/" rel="nofollow">https://jsfiddle.net/Luktwrdm/</a>, template for React 15: <a href="https://jsfiddle.net/hmbg7e9w/" rel="nofollow">https://jsfiddle.net/hmbg7e9w/</a>).</strong></p>
<p dir="auto">(This has only been checked on macOS 10.13.1)</p>
<ol dir="auto">
<li>Navigate to <a href="https://qq49kwjynj.codesandbox.io/" rel="nofollow">https://qq49kwjynj.codesandbox.io/</a> in a Chrome browser set to some language other than Japanese.</li>
<li>Right click the page and select "Translate to English"</li>
<li>Click the checkbox, and the error will show.</li>
</ol>
<p dir="auto">The source of the example can be found at <a href="https://codesandbox.io/s/qq49kwjynj" rel="nofollow">https://codesandbox.io/s/qq49kwjynj</a><br>
The part of the code that seems to cause it is the following two lines:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{this.state.checked && "選択済み"}
{!this.state.checked && "無選択"}"><pre class="notranslate"><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">state</span><span class="pl-kos">.</span><span class="pl-c1">checked</span> <span class="pl-c1">&&</span> <span class="pl-s">"選択済み"</span><span class="pl-kos">}</span>
<span class="pl-kos">{</span><span class="pl-c1">!</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">state</span><span class="pl-kos">.</span><span class="pl-c1">checked</span> <span class="pl-c1">&&</span> <span class="pl-s">"無選択"</span><span class="pl-kos">}</span></pre></div>
<p dir="auto">Changing this to the following fixes the behavior with Google Translate:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{this.state.checked ? "選択済み" : "無選択"}"><pre class="notranslate"><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">state</span><span class="pl-kos">.</span><span class="pl-c1">checked</span> ? <span class="pl-s">"選択済み"</span> : <span class="pl-s">"無選択"</span><span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">It should not produce an error.</p>
<p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong></p>
<p dir="auto">I created an identical example with React 15 at the following pages:<br>
<a href="https://p93xxmr0rq.codesandbox.io/" rel="nofollow">https://p93xxmr0rq.codesandbox.io/</a><br>
<a href="https://codesandbox.io/s/p93xxmr0rq" rel="nofollow">https://codesandbox.io/s/p93xxmr0rq</a><br>
When repeating the same steps outlined above, no error was produced.<br>
It only seems to affect React 16.<br>
As this is a Chrome-only feature, it only affects Chrome.</p> | 1 |
<p dir="auto"><code class="notranslate">test.js</code></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#!/usr/bin/env deno
console.log(Deno.args);"><pre class="notranslate">#!/usr/bin/env deno
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-v">Deno</span><span class="pl-kos">.</span><span class="pl-c1">args</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="> ./test.js -B
[ "./test.js", "-B" ]"><pre class="notranslate"><span class="pl-k">></span> ./test.js -B
[ <span class="pl-s"><span class="pl-pds">"</span>./test.js<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>-B<span class="pl-pds">"</span></span> ]</pre></div>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="> ./test.js -A
[ "./test.js" ]"><pre class="notranslate"><span class="pl-k">></span> ./test.js -A
[ <span class="pl-s"><span class="pl-pds">"</span>./test.js<span class="pl-pds">"</span></span> ]</pre></div> | <h3 dir="auto">Description</h3>
<p dir="auto">As a developer, I would like to be able to consume the <code class="notranslate">-v</code> or <code class="notranslate">--version</code> flags in my application. I'd prefer that if a script is provided, Deno ignore the version flag and instead pass it on to <code class="notranslate">Deno.args</code>. Currently if I run a script with either flag, Deno prints out its internal version information as if I had run</p>
<ul dir="auto">
<li><code class="notranslate">deno version</code></li>
<li><code class="notranslate">deno --version</code></li>
<li><code class="notranslate">deno -v</code></li>
</ul>
<h3 dir="auto">Steps to Reproduce</h3>
<ol dir="auto">
<li>Create a file <code class="notranslate">test.ts</code> containing the following code</li>
</ol>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="console.log(Deno.args);"><pre class="notranslate"><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-c1">args</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<ol start="2" dir="auto">
<li>Run <code class="notranslate">deno test.ts</code> or <code class="notranslate">deno run test.ts</code></li>
<li>Observe the program runs successfully and prints out: <code class="notranslate">[ "test.ts" ]</code></li>
<li>Run any of the following...</li>
</ol>
<ul dir="auto">
<li><code class="notranslate">deno test.ts --version</code></li>
<li><code class="notranslate">deno test.ts -v</code></li>
<li><code class="notranslate">deno run test.ts --version</code></li>
<li><code class="notranslate">deno run test.ts -v</code></li>
</ul>
<ol start="5" dir="auto">
<li>Observe the program never runs, deno instead prints out its internal version information</li>
</ol>
<h3 dir="auto">Additional Context</h3>
<ul dir="auto">
<li>Deno version: 0.15.0</li>
<li>OS: Windows 10 v1903</li>
</ul> | 1 |
<p dir="auto"><code class="notranslate">@UniqueEntity</code> doesn't properly handle composite keys when one of them is a related entity. The database throws <code class="notranslate">Integrity constraint violation: 1062 Duplicate entry</code> when trying to persist an entity with the same company and name as an already existing one. Expected behavior is that <code class="notranslate">@UniqueEntity</code>'s validator blocks persisting the (duplicate) entity. Here's such an entity to illustrate the issue:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/**
* @ORM\Entity
* @ORM\Table(name="my_user",
* uniqueConstraints={@ORM\UniqueConstraint(columns={
* "company_id", "name"
* })}
* )
* @UniqueEntity(fields={"company", "name"})
*/
class MyUser {
/**
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\ManyToOne(targetEntity="Company", inversedBy="myUsers")
* @ORM\JoinColumn(name="company_id", referencedColumnName="id", nullable=false)
* @Assert\NotNull
*/
protected $company;
/**
* @ORM\Column(name="name", type="string", nullable=false)
* @Assert\NotBlank
*/
protected $name;
// setters and getters omitted
}"><pre class="notranslate"><code class="notranslate">/**
* @ORM\Entity
* @ORM\Table(name="my_user",
* uniqueConstraints={@ORM\UniqueConstraint(columns={
* "company_id", "name"
* })}
* )
* @UniqueEntity(fields={"company", "name"})
*/
class MyUser {
/**
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\ManyToOne(targetEntity="Company", inversedBy="myUsers")
* @ORM\JoinColumn(name="company_id", referencedColumnName="id", nullable=false)
* @Assert\NotNull
*/
protected $company;
/**
* @ORM\Column(name="name", type="string", nullable=false)
* @Assert\NotBlank
*/
protected $name;
// setters and getters omitted
}
</code></pre></div> | <table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>yes</td>
</tr>
<tr>
<td>Feature request?</td>
<td>no</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>no</td>
</tr>
<tr>
<td>RFC?</td>
<td>no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>4.0.4</td>
</tr>
</tbody>
</table>
<p dir="auto">Javascript error is report to the JS console (tested in Chrome and Edge) when the exception is handled by Symfony Profiler:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught TypeError: Cannot set property 'className' of null at Object.createTabs"><pre class="notranslate"><code class="notranslate">Uncaught TypeError: Cannot set property 'className' of null at Object.createTabs
</code></pre></div>
<p dir="auto">May be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="259593839" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/24281" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/24281/hovercard" href="https://github.com/symfony/symfony/pull/24281">#24281</a>.</p>
<h3 dir="auto">Steps to reproduce:</h3>
<ol dir="auto">
<li>Create a new flex project</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="composer create-project symfony/skeleton blog
cd blog
composer require server --dev
composer require profiler --dev "><pre class="notranslate"><code class="notranslate">composer create-project symfony/skeleton blog
cd blog
composer require server --dev
composer require profiler --dev
</code></pre></div>
<ol start="2" dir="auto">
<li>Create a controller and enable its route in <code class="notranslate">config/routes.yaml</code>:</li>
</ol>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<?php
namespace App\Controller;
class DefaultController {
public function index()
{
throw new \Exception('Wow!');
}
}"><pre class="notranslate"><span class="pl-ent"><?php</span>
<span class="pl-k">namespace</span> <span class="pl-v">App</span>\<span class="pl-v">Controller</span>;
<span class="pl-k">class</span> <span class="pl-v">DefaultController</span> {
<span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">index</span>()
{
<span class="pl-k">throw</span> <span class="pl-k">new</span> \<span class="pl-v">Exception</span>(<span class="pl-s">'Wow!'</span>);
}
}</pre></div>
<ol start="3" dir="auto">
<li>Run <code class="notranslate">php bin\console server:run</code></li>
<li>Open the browser</li>
<li>Info about the exception is rendered properly</li>
<li>But there is an error in the browser JS console</li>
</ol> | 0 |
<p dir="auto">It would be really cool if there was syntax highlighting and autocompletion for inline HTML templates</p>
<p dir="auto">VS Code:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1758655/11259454/6b924c24-8ead-11e5-9443-22c701f61e74.png"><img src="https://cloud.githubusercontent.com/assets/1758655/11259454/6b924c24-8ead-11e5-9443-22c701f61e74.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">IDEA:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1758655/11259486/a80378ae-8ead-11e5-9814-b2533fb737d7.png"><img src="https://cloud.githubusercontent.com/assets/1758655/11259486/a80378ae-8ead-11e5-9814-b2533fb737d7.png" alt="image" style="max-width: 100%;"></a></p> | <p dir="auto">Right now, those keywords like <code class="notranslate">import</code> <code class="notranslate">class</code> <code class="notranslate">from</code> are all plain white.</p> | 1 |
<h3 dir="auto">Description</h3>
<p dir="auto">There is a great Operator for Cloud Functions: <a href="https://airflow.apache.org/docs/apache-airflow-providers-google/stable/operators/cloud/functions.html" rel="nofollow">https://airflow.apache.org/docs/apache-airflow-providers-google/stable/operators/cloud/functions.html</a></p>
<p dir="auto">But, if needing a bit more compute/control than the functions runtime supports, utilizing Cloud Run could be ideal.</p>
<h3 dir="auto">Use case/motivation</h3>
<p dir="auto">Looking to be able to trigger Cloud Run jobs from Airflow akin to Cloud Functions [ when needing to compute slightly larger things that don't work with Functions ].</p>
<h3 dir="auto">Related issues</h3>
<p dir="auto">I did not see any related issues.</p>
<p dir="auto">Hoping for some comment on whether this would be welcomed. If nobody else would address, but would be a welcomed contribution, then I am happy to dig into contributing.</p>
<h3 dir="auto">Are you willing to submit a PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" 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> | <h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">2.3.0 (latest released)</p>
<h3 dir="auto">What happened</h3>
<p dir="auto">After upgrade from 2.2.2 to 2.3.0, when I am trying to do <code class="notranslate">airflow db upgrade</code> all I get is following log and then airflow hangs:<br>
<code class="notranslate">Found 16 duplicates in table task_fail. Will attempt to move them.</code></p>
<h3 dir="auto">What you think should happen instead</h3>
<p dir="auto">Airflow should not hang at this log and properly move these duplicates</p>
<h3 dir="auto">How to reproduce</h3>
<ul dir="auto">
<li>Run Airflow 2.2.2</li>
<li>Create duplicates in table task_fail</li>
<li>Update Airflow to 2.3.0 and try upgrading DB</li>
</ul>
<h3 dir="auto">Operating System</h3>
<p dir="auto">Debian 10</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="apache-airflow-providers-apache-cassandra==2.0.1 \
apache-airflow-providers-apache-hive==2.0.2 \
apache-airflow-providers-celery==2.1.0 \
apache-airflow-providers-cncf-kubernetes==2.0.2 \
apache-airflow-providers-ftp==2.0.1 \
apache-airflow-providers-http==2.0.1 \
apache-airflow-providers-imap==2.0.1 \
apache-airflow-providers-jdbc==2.0.1 \
apache-airflow-providers-mysql==2.1.1 \
apache-airflow-providers-papermill==2.2.3 \
apache-airflow-providers-postgres==2.2.0 \
apache-airflow-providers-sftp==2.1.1 \
apache-airflow-providers-sqlite==2.0.1 \
apache-airflow-providers-ssh==2.1.1 \
apache-airflow-providers-google==5.1.0 \
apache-airflow-providers-apache-beam==3.1.0 \
apache-airflow-providers-apache-spark==2.0.1 \"><pre class="notranslate"><code class="notranslate">apache-airflow-providers-apache-cassandra==2.0.1 \
apache-airflow-providers-apache-hive==2.0.2 \
apache-airflow-providers-celery==2.1.0 \
apache-airflow-providers-cncf-kubernetes==2.0.2 \
apache-airflow-providers-ftp==2.0.1 \
apache-airflow-providers-http==2.0.1 \
apache-airflow-providers-imap==2.0.1 \
apache-airflow-providers-jdbc==2.0.1 \
apache-airflow-providers-mysql==2.1.1 \
apache-airflow-providers-papermill==2.2.3 \
apache-airflow-providers-postgres==2.2.0 \
apache-airflow-providers-sftp==2.1.1 \
apache-airflow-providers-sqlite==2.0.1 \
apache-airflow-providers-ssh==2.1.1 \
apache-airflow-providers-google==5.1.0 \
apache-airflow-providers-apache-beam==3.1.0 \
apache-airflow-providers-apache-spark==2.0.1 \
</code></pre></div>
<h3 dir="auto">Deployment</h3>
<p dir="auto">Other Docker-based deployment</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto">Google GKE<br>
2 Instances of Airflow processes running(HA configuration)</p>
<h3 dir="auto">Anything else</h3>
<p dir="auto">Problem occurs every time I am trying to update database.</p>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | 0 |
<h3 dir="auto">Issue with current documentation:</h3>
<p dir="auto">The documentation for scipy.interpolate.RegularGridInterpolator describes the class as for "Interpolation on a regular grid in arbitrary dimensions" and there is this statement, "The data must be defined on a regular grid; the grid spacing however may be uneven." Isn't such a grid a rectilinear grid, and not explicitly <em>not</em> a regular grid? See <a href="https://en.wikipedia.org/wiki/Regular_grid" rel="nofollow">Regular Grid</a>.</p>
<p dir="auto">The really odd thing about all of this is that the code on which this class is based, <em>regulargrid</em> by Johannes Buchner, seems to make the same mistake. In the README for the <a href="https://github.com/JohannesBuchner/regulargrid">regulargrid repo</a>, it even links the wikipedia article I've just referenced here at the top. Then it goes on to describe a Cartesian Grid as one with equal spacing between points (correct, but that spacing has to also be equal across each dimension) and a Regular Grid as having unequal spacing between points (incorrect). Beneath this definition of "Cartesian grid", there's an example of a grid which is Regular but not Cartesian.</p>
<p dir="auto">Just to make sure that the "Regular grid" was actually rectilinear, I checked regulargrid/test/test_regulargrid.py. On line 13, the breaks are distributed randomly in each of two spatial dimensions, making it in fact rectilinear and not regular.</p>
<p dir="auto">I can also confirm that the same mistake is made in scipy.interpolate.interpn - I've used this code on rectilinear grids and it seems to work fine, despite the method saying that a "regular grid" is required many times in the documentation.</p>
<p dir="auto">I think correcting this is important - I tried for hours to find a rectilinear grid interpolator so that I could use it instead of interpn... it turns out I need not have bothered!</p>
<h3 dir="auto">Suggested fix:</h3>
<p dir="auto">The documentation for scipy.interpolate.RegularGridInterpolator and scipy.interpolate.interpn should be updated to specify that the interpolation happens on a rectilinear grid rather than a regular grid.</p> | <p dir="auto">The Pypi wheels (in particular the manylinux ones) contain prebuilts libraries for openblas (bsd) and libgfortran.... (gpl with runtime exception?) but no information about their licenses and where to get the corresponding sources. It would be great to have some clarity in this domain.<br>
The same issue exists with numpy <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="210179946" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/8689" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/8689/hovercard" href="https://github.com/numpy/numpy/issues/8689">numpy/numpy#8689</a></p> | 0 |
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd
# create our dataframe
m = 5
temp = pd.DataFrame({
'a': ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'] * m,
'b': ['t', 'w', 'x', 'y', 'z'] * 2 * m,
'c': [letter
for each in ['m', 'n', 'u', 'p', 'o']
for letter in [each] * 2 * m],
'd': [letter
for each in ['aa', 'bb', 'cc', 'dd', 'ee',
'ff', 'gg', 'hh','ii', 'jj']
for letter in [each] * m],
})
# change them all to categorical variables
for c in temp.columns:
temp[c] = temp[c].astype('category')
# get the dimensions before we do anything
print(temp.shape)
# drop duplicates to make sure this is unqiue
# it should be unique
id_df = temp.drop_duplicates()
print(id_df.shape)
# join a row-wise unique dataset to itself on all variables
# when they're categorical variables it duplicates rows
# when they're strings things behave as they're suppposed to
temp1 = pd.merge(temp, id_df, on = list(temp.columns))
print(temp1.shape)
"><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-c"># create our dataframe</span>
<span class="pl-s1">m</span> <span class="pl-c1">=</span> <span class="pl-c1">5</span>
<span class="pl-s1">temp</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({
<span class="pl-s">'a'</span>: [<span class="pl-s">'a'</span>, <span class="pl-s">'b'</span>, <span class="pl-s">'c'</span>, <span class="pl-s">'d'</span>, <span class="pl-s">'e'</span>, <span class="pl-s">'f'</span>, <span class="pl-s">'g'</span>, <span class="pl-s">'h'</span>, <span class="pl-s">'i'</span>, <span class="pl-s">'j'</span>] <span class="pl-c1">*</span> <span class="pl-s1">m</span>,
<span class="pl-s">'b'</span>: [<span class="pl-s">'t'</span>, <span class="pl-s">'w'</span>, <span class="pl-s">'x'</span>, <span class="pl-s">'y'</span>, <span class="pl-s">'z'</span>] <span class="pl-c1">*</span> <span class="pl-c1">2</span> <span class="pl-c1">*</span> <span class="pl-s1">m</span>,
<span class="pl-s">'c'</span>: [<span class="pl-s1">letter</span>
<span class="pl-k">for</span> <span class="pl-s1">each</span> <span class="pl-c1">in</span> [<span class="pl-s">'m'</span>, <span class="pl-s">'n'</span>, <span class="pl-s">'u'</span>, <span class="pl-s">'p'</span>, <span class="pl-s">'o'</span>]
<span class="pl-k">for</span> <span class="pl-s1">letter</span> <span class="pl-c1">in</span> [<span class="pl-s1">each</span>] <span class="pl-c1">*</span> <span class="pl-c1">2</span> <span class="pl-c1">*</span> <span class="pl-s1">m</span>],
<span class="pl-s">'d'</span>: [<span class="pl-s1">letter</span>
<span class="pl-k">for</span> <span class="pl-s1">each</span> <span class="pl-c1">in</span> [<span class="pl-s">'aa'</span>, <span class="pl-s">'bb'</span>, <span class="pl-s">'cc'</span>, <span class="pl-s">'dd'</span>, <span class="pl-s">'ee'</span>,
<span class="pl-s">'ff'</span>, <span class="pl-s">'gg'</span>, <span class="pl-s">'hh'</span>,<span class="pl-s">'ii'</span>, <span class="pl-s">'jj'</span>]
<span class="pl-k">for</span> <span class="pl-s1">letter</span> <span class="pl-c1">in</span> [<span class="pl-s1">each</span>] <span class="pl-c1">*</span> <span class="pl-s1">m</span>],
})
<span class="pl-c"># change them all to categorical variables</span>
<span class="pl-k">for</span> <span class="pl-s1">c</span> <span class="pl-c1">in</span> <span class="pl-s1">temp</span>.<span class="pl-s1">columns</span>:
<span class="pl-s1">temp</span>[<span class="pl-s1">c</span>] <span class="pl-c1">=</span> <span class="pl-s1">temp</span>[<span class="pl-s1">c</span>].<span class="pl-en">astype</span>(<span class="pl-s">'category'</span>)
<span class="pl-c"># get the dimensions before we do anything</span>
<span class="pl-en">print</span>(<span class="pl-s1">temp</span>.<span class="pl-s1">shape</span>)
<span class="pl-c"># drop duplicates to make sure this is unqiue</span>
<span class="pl-c"># it should be unique</span>
<span class="pl-s1">id_df</span> <span class="pl-c1">=</span> <span class="pl-s1">temp</span>.<span class="pl-en">drop_duplicates</span>()
<span class="pl-en">print</span>(<span class="pl-s1">id_df</span>.<span class="pl-s1">shape</span>)
<span class="pl-c"># join a row-wise unique dataset to itself on all variables</span>
<span class="pl-c"># when they're categorical variables it duplicates rows</span>
<span class="pl-c"># when they're strings things behave as they're suppposed to</span>
<span class="pl-s1">temp1</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">merge</span>(<span class="pl-s1">temp</span>, <span class="pl-s1">id_df</span>, <span class="pl-s1">on</span> <span class="pl-c1">=</span> <span class="pl-en">list</span>(<span class="pl-s1">temp</span>.<span class="pl-s1">columns</span>))
<span class="pl-en">print</span>(<span class="pl-s1">temp1</span>.<span class="pl-s1">shape</span>)</pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">Using merge on Categorical dtypes doesn't appear to be checking equality correctly. Merging a unique dataframe to itself on 4 Categorical columns appears to duplicate rows. The above code example is simpler than what I experienced the issue on but the behavior is there.</p>
<p dir="auto">The dataframe as it is created is a 50 row by 4 column dataframe of strings. Casting the strings to Categoricals to save on RAM appears to work well. Running the drop_duplicates method and checking the dimensions shows that each row is unique. Then simply merging the dataframes together results in a 54 row by 4 column dataframe.</p>
<p dir="auto">My guess is that there is something about the way the values are assigned that underlie the labels differs and that the underlying values may be equal when the labels aren't. It appears to be a fairly specific case, as commenting any of those columns out results in what I'd expect in terms of output.</p>
<h4 dir="auto">Expected Output</h4>
<p dir="auto">Running the same code and steps as illustrated in the prior paragraph without casting the columns to a Categorical dtype results in what I would expect: a 50 row by 4 column dataframe.</p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
<p dir="auto">pandas: 0.20.2<br>
pytest: 2.8.5<br>
pip: 9.0.1<br>
setuptools: 20.3<br>
Cython: 0.23.4<br>
numpy: 1.13.0<br>
scipy: 0.17.0<br>
xarray: None<br>
IPython: 4.1.2<br>
sphinx: 1.3.1<br>
patsy: 0.4.0<br>
dateutil: 2.6.0<br>
pytz: 2017.2<br>
blosc: None<br>
bottleneck: 1.0.0<br>
tables: 3.2.2<br>
numexpr: 2.5<br>
feather: None<br>
matplotlib: 1.5.1<br>
openpyxl: 2.3.2<br>
xlrd: 0.9.4<br>
xlwt: 1.0.0<br>
xlsxwriter: 0.8.4<br>
lxml: 3.6.0<br>
bs4: 4.4.1<br>
html5lib: None<br>
sqlalchemy: 1.0.12<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.8<br>
s3fs: None<br>
pandas_gbq: None<br>
pandas_datareader: None</p>
</details> | <h4 dir="auto">Code Sample</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="s1 = pd.Series([1,1,2,2,3,3], name='s')
s2 = pd.Series([1,1,1,2,2,2], name='s')
pd.crosstab(s1, s2)"><pre class="notranslate"><span class="pl-s1">s1</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">3</span>], <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'s'</span>)
<span class="pl-s1">s2</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>], <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'s'</span>)
<span class="pl-s1">pd</span>.<span class="pl-en">crosstab</span>(<span class="pl-s1">s1</span>, <span class="pl-s1">s2</span>)</pre></div>
<p dir="auto"><strong>Return:</strong></p>
<p dir="auto">Short version:</p>
<blockquote>
<p dir="auto">ValueError: Duplicated level name: "s", assigned to level 1, is already used for level 0.</p>
</blockquote>
<p dir="auto">Long version:</p>
<details>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-66-b5484aa990df> in <module>()
2 s2 = pd.Series([1,1,1,2,2,2], name='s')
3
----> 4 pd.crosstab(s1, s2)
C:\A_PROGRAMS\anaconda3\lib\site-packages\pandas\core\reshape\pivot.py in crosstab(index, columns, values, rownames, colnames, aggfunc, margins, margins_name, dropna, normalize)
490 table = df.pivot_table('__dummy__', index=rownames, columns=colnames,
491 margins=margins, margins_name=margins_name,
--> 492 dropna=dropna, **kwargs)
493
494 # Post-process
C:\A_PROGRAMS\anaconda3\lib\site-packages\pandas\core\frame.py in pivot_table(self, values, index, columns, aggfunc, fill_value, margins, dropna, margins_name)
5301 aggfunc=aggfunc, fill_value=fill_value,
5302 margins=margins, dropna=dropna,
-> 5303 margins_name=margins_name)
5304
5305 def stack(self, level=-1, dropna=True):
C:\A_PROGRAMS\anaconda3\lib\site-packages\pandas\core\reshape\pivot.py in pivot_table(data, values, index, columns, aggfunc, fill_value, margins, dropna, margins_name)
85 # if we have a categorical
86 grouped = data.groupby(keys, observed=False)
---> 87 agged = grouped.agg(aggfunc)
88 if dropna and isinstance(agged, ABCDataFrame) and len(agged.columns):
89 agged = agged.dropna(how='all')
C:\A_PROGRAMS\anaconda3\lib\site-packages\pandas\core\groupby\groupby.py in aggregate(self, arg, *args, **kwargs)
4656 axis=''))
4657 def aggregate(self, arg, *args, **kwargs):
-> 4658 return super(DataFrameGroupBy, self).aggregate(arg, *args, **kwargs)
4659
4660 agg = aggregate
C:\A_PROGRAMS\anaconda3\lib\site-packages\pandas\core\groupby\groupby.py in aggregate(self, arg, *args, **kwargs)
4095 # grouper specific aggregations
4096 if self.grouper.nkeys > 1:
-> 4097 return self._python_agg_general(arg, *args, **kwargs)
4098 else:
4099
C:\A_PROGRAMS\anaconda3\lib\site-packages\pandas\core\groupby\groupby.py in _python_agg_general(self, func, *args, **kwargs)
1086 output[name] = self._try_cast(values[mask], result)
1087
-> 1088 return self._wrap_aggregated_output(output)
1089
1090 def _wrap_applied_output(self, *args, **kwargs):
C:\A_PROGRAMS\anaconda3\lib\site-packages\pandas\core\groupby\groupby.py in _wrap_aggregated_output(self, output, names)
4728 result = result._consolidate()
4729 else:
-> 4730 index = self.grouper.result_index
4731 result = DataFrame(output, index=index, columns=output_keys)
4732
pandas/_libs/properties.pyx in pandas._libs.properties.CachedProperty.__get__()
C:\A_PROGRAMS\anaconda3\lib\site-packages\pandas\core\groupby\groupby.py in result_index(self)
2379 labels=labels,
2380 verify_integrity=False,
-> 2381 names=self.names)
2382 return result
2383
C:\A_PROGRAMS\anaconda3\lib\site-packages\pandas\core\indexes\multi.py in __new__(cls, levels, labels, sortorder, names, dtype, copy, name, verify_integrity, _set_identity)
230 if names is not None:
231 # handles name validation
--> 232 result._set_names(names)
233
234 if sortorder is not None:
C:\A_PROGRAMS\anaconda3\lib\site-packages\pandas\core\indexes\multi.py in _set_names(self, names, level, validate)
693 'Duplicated level name: "{}", assigned to '
694 'level {}, is already used for level '
--> 695 '{}.'.format(name, l, used[name]))
696
697 self.levels[l].rename(name, inplace=True)
ValueError: Duplicated level name: "s", assigned to level 1, is already used for level 0."><pre class="notranslate"><code class="notranslate">---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-66-b5484aa990df> in <module>()
2 s2 = pd.Series([1,1,1,2,2,2], name='s')
3
----> 4 pd.crosstab(s1, s2)
C:\A_PROGRAMS\anaconda3\lib\site-packages\pandas\core\reshape\pivot.py in crosstab(index, columns, values, rownames, colnames, aggfunc, margins, margins_name, dropna, normalize)
490 table = df.pivot_table('__dummy__', index=rownames, columns=colnames,
491 margins=margins, margins_name=margins_name,
--> 492 dropna=dropna, **kwargs)
493
494 # Post-process
C:\A_PROGRAMS\anaconda3\lib\site-packages\pandas\core\frame.py in pivot_table(self, values, index, columns, aggfunc, fill_value, margins, dropna, margins_name)
5301 aggfunc=aggfunc, fill_value=fill_value,
5302 margins=margins, dropna=dropna,
-> 5303 margins_name=margins_name)
5304
5305 def stack(self, level=-1, dropna=True):
C:\A_PROGRAMS\anaconda3\lib\site-packages\pandas\core\reshape\pivot.py in pivot_table(data, values, index, columns, aggfunc, fill_value, margins, dropna, margins_name)
85 # if we have a categorical
86 grouped = data.groupby(keys, observed=False)
---> 87 agged = grouped.agg(aggfunc)
88 if dropna and isinstance(agged, ABCDataFrame) and len(agged.columns):
89 agged = agged.dropna(how='all')
C:\A_PROGRAMS\anaconda3\lib\site-packages\pandas\core\groupby\groupby.py in aggregate(self, arg, *args, **kwargs)
4656 axis=''))
4657 def aggregate(self, arg, *args, **kwargs):
-> 4658 return super(DataFrameGroupBy, self).aggregate(arg, *args, **kwargs)
4659
4660 agg = aggregate
C:\A_PROGRAMS\anaconda3\lib\site-packages\pandas\core\groupby\groupby.py in aggregate(self, arg, *args, **kwargs)
4095 # grouper specific aggregations
4096 if self.grouper.nkeys > 1:
-> 4097 return self._python_agg_general(arg, *args, **kwargs)
4098 else:
4099
C:\A_PROGRAMS\anaconda3\lib\site-packages\pandas\core\groupby\groupby.py in _python_agg_general(self, func, *args, **kwargs)
1086 output[name] = self._try_cast(values[mask], result)
1087
-> 1088 return self._wrap_aggregated_output(output)
1089
1090 def _wrap_applied_output(self, *args, **kwargs):
C:\A_PROGRAMS\anaconda3\lib\site-packages\pandas\core\groupby\groupby.py in _wrap_aggregated_output(self, output, names)
4728 result = result._consolidate()
4729 else:
-> 4730 index = self.grouper.result_index
4731 result = DataFrame(output, index=index, columns=output_keys)
4732
pandas/_libs/properties.pyx in pandas._libs.properties.CachedProperty.__get__()
C:\A_PROGRAMS\anaconda3\lib\site-packages\pandas\core\groupby\groupby.py in result_index(self)
2379 labels=labels,
2380 verify_integrity=False,
-> 2381 names=self.names)
2382 return result
2383
C:\A_PROGRAMS\anaconda3\lib\site-packages\pandas\core\indexes\multi.py in __new__(cls, levels, labels, sortorder, names, dtype, copy, name, verify_integrity, _set_identity)
230 if names is not None:
231 # handles name validation
--> 232 result._set_names(names)
233
234 if sortorder is not None:
C:\A_PROGRAMS\anaconda3\lib\site-packages\pandas\core\indexes\multi.py in _set_names(self, names, level, validate)
693 'Duplicated level name: "{}", assigned to '
694 'level {}, is already used for level '
--> 695 '{}.'.format(name, l, used[name]))
696
697 self.levels[l].rename(name, inplace=True)
ValueError: Duplicated level name: "s", assigned to level 1, is already used for level 0.
</code></pre></div>
</details>
<h4 dir="auto">Problem description</h4>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="27303661" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/6319" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/6319/hovercard" href="https://github.com/pandas-dev/pandas/issues/6319">#6319</a> supposedly fixed this issue, yet it still persists in my configuration.</p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<h2 dir="auto">INSTALLED VERSIONS</h2>
<p dir="auto">commit: None<br>
python: 3.6.5.final.0<br>
python-bits: 64<br>
OS: Windows<br>
OS-release: 7<br>
machine: AMD64<br>
processor: Intel64 Family 6 Model 94 Stepping 3, GenuineIntel<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: None<br>
LOCALE: None.None</p>
<p dir="auto">pandas: 0.23.1<br>
pytest: 3.5.1<br>
pip: 10.0.1<br>
setuptools: 39.1.0<br>
Cython: 0.28.2<br>
numpy: 1.14.3<br>
scipy: 1.1.0<br>
pyarrow: 0.9.0<br>
xarray: None<br>
IPython: 6.4.0<br>
sphinx: 1.7.4<br>
patsy: 0.5.0<br>
dateutil: 2.7.3<br>
pytz: 2018.4<br>
blosc: None<br>
bottleneck: 1.2.1<br>
tables: 3.4.2<br>
numexpr: 2.6.5<br>
feather: 0.4.0<br>
matplotlib: 2.1.2<br>
openpyxl: 2.5.3<br>
xlrd: 1.1.0<br>
xlwt: 1.3.0<br>
xlsxwriter: 1.0.4<br>
lxml: 4.1.1<br>
bs4: 4.6.0<br>
html5lib: 1.0.1<br>
sqlalchemy: 1.2.7<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.10<br>
s3fs: None<br>
fastparquet: None<br>
pandas_gbq: None<br>
pandas_datareader: None</p>
</details> | 0 |
<p dir="auto">If I paste this function in the REPL and hit one of the arrow keys, the first line is duplicated.</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function f(io::IO, s)
print(io, "StringDecoder from $(F()) to $(T()) wrapping $(s.istream)")
end"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">f</span>(io<span class="pl-k">::</span><span class="pl-c1">IO</span>, s)
<span class="pl-c1">print</span>(io, <span class="pl-s"><span class="pl-pds">"</span>StringDecoder from <span class="pl-v">$(<span class="pl-c1">F</span>())</span> to <span class="pl-v">$(<span class="pl-c1">T</span>())</span> wrapping <span class="pl-v">$(s<span class="pl-k">.</span>istream)</span><span class="pl-pds">"</span></span>)
<span class="pl-k">end</span></pre></div>
<p dir="auto">i.e. I get this:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> function f(io::IO, s)
julia> function f(io::IO, s)
print(io, "StringDecoder from $(F()) to $(T()) wrapping $(s.istream)")
end"><pre class="notranslate">julia<span class="pl-k">></span> <span class="pl-k">function</span> <span class="pl-en">f</span>(io<span class="pl-k">::</span><span class="pl-c1">IO</span>, s)
julia<span class="pl-k">></span> <span class="pl-k">function</span> <span class="pl-en">f</span>(io<span class="pl-k">::</span><span class="pl-c1">IO</span>, s)
<span class="pl-c1">print</span>(io, <span class="pl-s"><span class="pl-pds">"</span>StringDecoder from <span class="pl-v">$(<span class="pl-c1">F</span>())</span> to <span class="pl-v">$(<span class="pl-c1">T</span>())</span> wrapping <span class="pl-v">$(s<span class="pl-k">.</span>istream)</span><span class="pl-pds">"</span></span>)
<span class="pl-k">end</span></pre></div>
<p dir="auto">Each additional press gives a new duplicated line.</p> | <p dir="auto">I had hoped that indexing a named tuple (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="233271596" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/22194" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/22194/hovercard" href="https://github.com/JuliaLang/julia/pull/22194">#22194</a>) with a <code class="notranslate">Symbol</code> would be a type-inferrable operation. I'm guessing that a tfunc or whatever, like for <code class="notranslate">Tuple</code>, may be needed here.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" _
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: https://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.7.0-DEV.2400 (2017-11-02 03:12 UTC)
_/ |\__'_|_|_|\__'_| | ajf/empty/5fa163f (fork: 1 commits, 0 days)
|__/ | x86_64-linux-gnu
julia> nt = (a=1, b=2.0)
(a = 1, b = 2.0)
julia> f(x) = x[:a]
f (generic function with 1 method)
julia> @code_warntype f(nt)
Variables:
x::NamedTuple{(:a, :b),Tuple{Int64,Float64}}
Body:
begin
return (Base.getfield)(x::NamedTuple{(:a, :b),Tuple{Int64,Float64}}, :a)::Union{Float64, Int64}
end::Union{Float64, Int64}"><pre class="notranslate"><code class="notranslate"> _
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: https://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.7.0-DEV.2400 (2017-11-02 03:12 UTC)
_/ |\__'_|_|_|\__'_| | ajf/empty/5fa163f (fork: 1 commits, 0 days)
|__/ | x86_64-linux-gnu
julia> nt = (a=1, b=2.0)
(a = 1, b = 2.0)
julia> f(x) = x[:a]
f (generic function with 1 method)
julia> @code_warntype f(nt)
Variables:
x::NamedTuple{(:a, :b),Tuple{Int64,Float64}}
Body:
begin
return (Base.getfield)(x::NamedTuple{(:a, :b),Tuple{Int64,Float64}}, :a)::Union{Float64, Int64}
end::Union{Float64, Int64}
</code></pre></div> | 0 |
<p dir="auto">Duplicate:<br>
Go to :<br>
<a href="http://twitter.github.com/bootstrap/components.html">http://twitter.github.com/bootstrap/components.html</a><br>
Make sure the browser height is small enough (or the affix->bottom won't be triggered)<br>
Scroll down to the bottom of the page<br>
Make sure there is not # behind the url.<br>
Press refresh.</p> | <p dir="auto">For button dropdowns, provide examples for how to set links, where it says:</p>
<ul dir="auto">
</ul> | 0 |
<p dir="auto"><strong>report a <em>bug</em></strong><br>
I think it's a bug.</p>
<p dir="auto"><strong>current behavior & the steps to reproduce</strong><br>
I add the plugin:<br>
<code class="notranslate">plugins: [ /**/ new webpack.optimize.MinChunkSizePlugin({ minChunkSize: 10000 }), /**/ ]</code><br>
in webpack.config.js.<br>
When I bundle my application, I got:</p>
<blockquote>
<p dir="auto">/**/*/node_modules/webpack/lib/optimize/MinChunkSizePlugin.js:59<br>
pair[2].integrate(pair[3], "min-size");<br>
^</p>
</blockquote>
<blockquote>
<p dir="auto">TypeError: pair[2].integrate is not a function<br>
at Compilation.compilation.plugin (/<strong>/*/node_modules/webpack/lib/optimize/MinChunkSizePlugin.js:59:13)<br>
at Compilation.applyPluginsBailResult1 (/</strong>/<em>/node_modules/tapable/lib/Tapable.js:120:27)<br>
at Compilation.seal (/**/</em>/node_modules/webpack/lib/Compilation.js:572:9)<br>
at /<strong>/*/node_modules/webpack/lib/Compiler.js:488:16<br>
at /</strong>/<em>/node_modules/tapable/lib/Tapable.js:225:11<br>
at _addModuleChain (/**/</em>/node_modules/webpack/lib/Compilation.js:477:11)<br>
at processModuleDependencies.err (/**/*/node_modules/webpack/lib/Compilation.js:448:13)<br>
at _combinedTickCallback (internal/process/next_tick.js:67:7)<br>
at process._tickCallback (internal/process/next_tick.js:98:9)</p>
</blockquote>
<p dir="auto">But if I remove the MinChunkSizePlugin, the bundle will be succeeded.</p>
<p dir="auto"><strong>other relevant information</strong></p>
<ol dir="auto">
<li>"webpack": "^2.3.0"</li>
<li>bundle cli: cross-env NODE_ENV=production webpack --display-modules --sort-modules-by size</li>
</ol> | <h1 dir="auto">Bug report</h1>
<p dir="auto">I have the following config (optimization part):</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" optimization: {
runtimeChunk: {
name: 'runtime',
},
splitChunks: {
minChunks: 2,
minSize: 30000,
cacheGroups: {
clientApplication: {
name: 'clientApplication',
test: /applications\/client/,
chunks: 'all',
enforce: true,
},
},
},"><pre class="notranslate"> <span class="pl-s1">optimization</span>: <span class="pl-kos">{</span>
<span class="pl-c1">runtimeChunk</span>: <span class="pl-kos">{</span>
<span class="pl-c1">name</span>: <span class="pl-s">'runtime'</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">splitChunks</span>: <span class="pl-kos">{</span>
<span class="pl-c1">minChunks</span>: <span class="pl-c1">2</span><span class="pl-kos">,</span>
<span class="pl-c1">minSize</span>: <span class="pl-c1">30000</span><span class="pl-kos">,</span>
<span class="pl-c1">cacheGroups</span>: <span class="pl-kos">{</span>
<span class="pl-c1">clientApplication</span>: <span class="pl-kos">{</span>
<span class="pl-c1">name</span>: <span class="pl-s">'clientApplication'</span><span class="pl-kos">,</span>
<span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span>applications<span class="pl-cce">\/</span>client<span class="pl-c1">/</span></span><span class="pl-kos">,</span>
<span class="pl-c1">chunks</span>: <span class="pl-s">'all'</span><span class="pl-kos">,</span>
<span class="pl-c1">enforce</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span></pre></div>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto">Error in logs while production build:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/Users/a.malko/Work/frontend/node_modules/schema-utils/dist/validate.js:96
throw new _ValidationError.default(errors, schema, configuration);
^
ValidationError: Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
- configuration.optimization.splitChunks should be one of these:
false | object { automaticNameDelimiter?, cacheGroups?, chunks?, enforceSizeThreshold?, fallbackCacheGroup?, filename?, hidePathInfo?, maxAsyncRequests?, maxAsyncSize?, maxInitialRequests?, maxInitialSize?, maxSize?, minChunks?, minRemainingSize?, minSize?, name?, usedExports? }
-> Optimize duplication and caching by splitting chunks by shared modules and cache group.
Details:
* configuration.optimization.splitChunks.cacheGroups['clientApplication'].test should be one of these:
RegExp | string | function
-> Assign modules to a cache group by module name.
Details:
* configuration.optimization.splitChunks.cacheGroups['clientApplication'].test should be an instance of RegExp.
* configuration.optimization.splitChunks.cacheGroups['clientApplication'].test should be a string.
* configuration.optimization.splitChunks.cacheGroups['clientApplication'].test should be an instance of function.
at validate (/Users/a.malko/Work/frontend/node_modules/schema-utils/dist/validate.js:96:11)
at validateSchema (/Users/a.malko/Work/frontend/node_modules/webpack/lib/validateSchema.js:45:2)
at webpack (/Users/a.malko/Work/frontend/node_modules/webpack/lib/webpack.js:100:2)
at f (/Users/a.malko/Work/frontend/node_modules/webpack/lib/index.js:31:15)
at processOptions (/Users/a.malko/Work/frontend/node_modules/webpack-cli/bin/cli.js:272:16)
at /Users/a.malko/Work/frontend/node_modules/webpack-cli/bin/cli.js:364:3
at Object.parse (/Users/a.malko/Work/frontend/node_modules/yargs/yargs.js:576:18)
at /Users/a.malko/Work/frontend/node_modules/webpack-cli/bin/cli.js:49:8
at Object.<anonymous> (/Users/a.malko/Work/frontend/node_modules/webpack-cli/bin/cli.js:366:3)
at Module._compile (internal/modules/cjs/loader.js:1176:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
at Module.load (internal/modules/cjs/loader.js:1040:32)
at Function.Module._load (internal/modules/cjs/loader.js:929:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47"><pre class="notranslate">/Users/a.malko/Work/frontend/node_modules/schema-utils/dist/validate.js:96
throw new _ValidationError.default(errors, schema, configuration)<span class="pl-k">;</span>
^
ValidationError: Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
- configuration.optimization.splitChunks should be one of these:
<span class="pl-c1">false</span> <span class="pl-k">|</span> object { automaticNameDelimiter<span class="pl-k">?</span>, cacheGroups<span class="pl-k">?</span>, chunks<span class="pl-k">?</span>, enforceSizeThreshold<span class="pl-k">?</span>, fallbackCacheGroup<span class="pl-k">?</span>, filename<span class="pl-k">?</span>, hidePathInfo<span class="pl-k">?</span>, maxAsyncRequests<span class="pl-k">?</span>, maxAsyncSize<span class="pl-k">?</span>, maxInitialRequests<span class="pl-k">?</span>, maxInitialSize<span class="pl-k">?</span>, maxSize<span class="pl-k">?</span>, minChunks<span class="pl-k">?</span>, minRemainingSize<span class="pl-k">?</span>, minSize<span class="pl-k">?</span>, name<span class="pl-k">?</span>, usedExports<span class="pl-k">?</span> }
-<span class="pl-k">></span> Optimize duplication and caching by splitting chunks by shared modules and cache group.
Details:
<span class="pl-k">*</span> configuration.optimization.splitChunks.cacheGroups[<span class="pl-s"><span class="pl-pds">'</span>clientApplication<span class="pl-pds">'</span></span>].test should be one of these:
RegExp <span class="pl-k">|</span> string <span class="pl-k">|</span> function
-<span class="pl-k">></span> Assign modules to a cache group by module name.
Details:
<span class="pl-k">*</span> configuration.optimization.splitChunks.cacheGroups[<span class="pl-s"><span class="pl-pds">'</span>clientApplication<span class="pl-pds">'</span></span>].test should be an instance of RegExp.
<span class="pl-k">*</span> configuration.optimization.splitChunks.cacheGroups[<span class="pl-s"><span class="pl-pds">'</span>clientApplication<span class="pl-pds">'</span></span>].test should be a string.
<span class="pl-k">*</span> configuration.optimization.splitChunks.cacheGroups[<span class="pl-s"><span class="pl-pds">'</span>clientApplication<span class="pl-pds">'</span></span>].test should be an instance of function.
at validate (/Users/a.malko/Work/frontend/node_modules/schema-utils/dist/validate.js:96:11)
at validateSchema (/Users/a.malko/Work/frontend/node_modules/webpack/lib/validateSchema.js:45:2)
at webpack (/Users/a.malko/Work/frontend/node_modules/webpack/lib/webpack.js:100:2)
at f (/Users/a.malko/Work/frontend/node_modules/webpack/lib/index.js:31:15)
at processOptions (/Users/a.malko/Work/frontend/node_modules/webpack-cli/bin/cli.js:272:16)
at /Users/a.malko/Work/frontend/node_modules/webpack-cli/bin/cli.js:364:3
at Object.parse (/Users/a.malko/Work/frontend/node_modules/yargs/yargs.js:576:18)
at /Users/a.malko/Work/frontend/node_modules/webpack-cli/bin/cli.js:49:8
at Object.<span class="pl-k"><</span>anonymous<span class="pl-k">></span> (/Users/a.malko/Work/frontend/node_modules/webpack-cli/bin/cli.js:366:3)
at Module._compile (internal/modules/cjs/loader.js:1176:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
at Module.load (internal/modules/cjs/loader.js:1040:32)
at Function.Module._load (internal/modules/cjs/loader.js:929:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47</pre></div>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<p dir="auto">You can clone this repo <a href="https://github.com/artem-malko/webpack-5-beta-config-bug">https://github.com/artem-malko/webpack-5-beta-config-bug</a> and try it by yourself.</p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">No errors)</p>
<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version: v5.0.0-beta.26-v5.0.0-beta.29<br>
Node.js version: v14.1.0<br>
Operating System: macOS Catalina<br>
Additional tools:</p> | 0 |
<p dir="auto">To replicate:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="A = Tridiagonal(rand(4), rand(5), rand(4))
B = rand(5, 5)
A * B #works
B * A #MethodError
B * full(A) #works"><pre class="notranslate">A <span class="pl-k">=</span> <span class="pl-c1">Tridiagonal</span>(<span class="pl-c1">rand</span>(<span class="pl-c1">4</span>), <span class="pl-c1">rand</span>(<span class="pl-c1">5</span>), <span class="pl-c1">rand</span>(<span class="pl-c1">4</span>))
B <span class="pl-k">=</span> <span class="pl-c1">rand</span>(<span class="pl-c1">5</span>, <span class="pl-c1">5</span>)
A <span class="pl-k">*</span> B <span class="pl-c"><span class="pl-c">#</span>works</span>
B <span class="pl-k">*</span> A <span class="pl-c"><span class="pl-c">#</span>MethodError</span>
B <span class="pl-k">*</span> <span class="pl-c1">full</span>(A) <span class="pl-c"><span class="pl-c">#</span>works</span></pre></div>
<p dir="auto">Seems to me some fallback is missing. I'm on v0.4-rc2, haven't tried on master.</p> | <p dir="auto">See <a href="http://stackoverflow.com/questions/21595246/try-catch-or-type-conversion-performance-in-julia" rel="nofollow">http://stackoverflow.com/questions/21595246/try-catch-or-type-conversion-performance-in-julia</a>. We have lots of integer, float, expression parsing code that all just raises exceptions rather than indicating whether they succeeded or not, but we discourage try/catch as control flow. Should we provide non-error-raising versions of all of these functions that people can use to test whether some string is a valid float, for example?</p> | 0 |
<p dir="auto"><strong>TypeScript Version:</strong> nightly (1.9.0-dev.20160521) (same behavior in 1.8.10).</p>
<p dir="auto">Given this plain JavaScript file annotated with JSDoc for the Closure Compiler (included via <code class="notranslate">allowJs</code>):</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/**
* @param {number=} input
* @return {number}
*/
function legacyMethod(input) {
if (typeof input === "undefined") {
return 0;
}
return input * input;
};"><pre class="notranslate"><span class="pl-c">/**</span>
<span class="pl-c"> * <span class="pl-k">@param</span> {<span class="pl-smi">number=</span>} input</span>
<span class="pl-c"> * <span class="pl-k">@return</span> {<span class="pl-smi">number</span>}</span>
<span class="pl-c"> */</span>
<span class="pl-k">function</span> <span class="pl-en">legacyMethod</span><span class="pl-kos">(</span><span class="pl-s1">input</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-k">typeof</span> <span class="pl-s1">input</span> <span class="pl-c1">===</span> <span class="pl-s">"undefined"</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-c1">0</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">return</span> <span class="pl-s1">input</span> <span class="pl-c1">*</span> <span class="pl-s1">input</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">And this TypeScript file:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="console.log(legacyMethod(1));
console.log(legacyMethod());"><pre class="notranslate"><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-en">legacyMethod</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-en">legacyMethod</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">I would expect that the second <code class="notranslate">legacyMethod</code> call to also be fine, due to the <code class="notranslate">=</code> suffix on the type (see <a href="https://developers.google.com/closure/compiler/docs/js-for-compiler#types" rel="nofollow">https://developers.google.com/closure/compiler/docs/js-for-compiler#types</a> for more details on the Closure Compiler type language). Based on Visual Studio Code's Intellisense the extracted type for <code class="notranslate">legacyMethod</code> is <code class="notranslate">function legacyMethod(input?: number): number</code> which seems correct. However, when running, I get:</p>
<p dir="auto"><code class="notranslate">main.ts(2,13): error TS2346: Supplied parameters do not match any signature of call target.</code></p>
<p dir="auto">Out of curiosity, I tried <code class="notranslate">legacyMethod(undefined)</code> which worked (as did <code class="notranslate">legacyMethod(null)</code>, which the Closure Compiler would not have allowed, since optional parameters are undefined, not null).</p> | <p dir="auto">When I use jsdoc to create constructor the intellisense work well. Except a bug that it must obey parameter. It will not know type if the parameter is not all passed in. even it marked as optional by jsdoc</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1042507/12939084/240cda72-cfee-11e5-8a05-f8eef6b9cb8c.png"><img src="https://cloud.githubusercontent.com/assets/1042507/12939084/240cda72-cfee-11e5-8a05-f8eef6b9cb8c.png" alt="screen shot 2559-02-10 at 12 02 13 pm" style="max-width: 100%;"></a></p>
<p dir="auto">As the screenshot. air is optional by jsdoc</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1042507/12939086/2bf5250a-cfee-11e5-9b1b-0bae6381420c.png"><img src="https://cloud.githubusercontent.com/assets/1042507/12939086/2bf5250a-cfee-11e5-9b1b-0bae6381420c.png" alt="screen shot 2559-02-10 at 11 56 43 am" style="max-width: 100%;"></a></p>
<p dir="auto">this work but</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1042507/12939089/325376ae-cfee-11e5-986f-a1e3f52ee421.png"><img src="https://cloud.githubusercontent.com/assets/1042507/12939089/325376ae-cfee-11e5-986f-a1e3f52ee421.png" alt="screen shot 2559-02-10 at 11 54 19 am" style="max-width: 100%;"></a></p>
<p dir="auto">not</p> | 1 |
<p dir="auto">Typically .env these files are small and manageable, but there are times when you run into situations where you duplicate the same data within the file. Here is an example:</p>
<p dir="auto">MAIL_USERNAME=<a href="mailto:[email protected]">[email protected]</a><br>
MAIL_FROM_ADDRESS=<a href="mailto:[email protected]">[email protected]</a></p>
<p dir="auto">The dotenv package that Laravel relies on can use variables with other defined variables in this same file. For example:</p>
<p dir="auto">MAIL_USERNAME=<a href="mailto:[email protected]">[email protected]</a><br>
MAIL_FROM_ADDRESS=${MAIL_USERNAME}</p>
<p dir="auto">This simple trick allows you not to repeat yourself and can be useful when you have multiple services requiring the same piece of data.</p>
<p dir="auto">I tried using this with the deno dotenv package and the deno standard library for env files and both parsers don't pick up the variable, intead the console log value in the MAIL_FROM_ADDRESS example above would be just ${MAIL_USERNAME} instead of <a href="mailto:[email protected]">[email protected]</a>.</p> | <p dir="auto">When running <code class="notranslate">deno info mod.ts</code> the printed <code class="notranslate">emit</code> field shows a path with a duplicate extension <code class="notranslate">.ts.js</code>. <code class="notranslate">mod.ts</code>contains just some re-exports:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// mod.ts
export { foo, bar, baz } from "./mods/mod.ts""><pre class="notranslate"><span class="pl-c">// mod.ts</span>
<span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-s1">foo</span><span class="pl-kos">,</span> <span class="pl-s1">bar</span><span class="pl-kos">,</span> <span class="pl-s1">baz</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./mods/mod.ts"</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno info mod.ts
local: /mnt/c/Users/User/foo/bar/mod.ts
type: TypeScript
emit: /path/to/some/project/mod.ts.js
dependencies: 3 unique (total 11.42KB)"><pre class="notranslate"><code class="notranslate">deno info mod.ts
local: /mnt/c/Users/User/foo/bar/mod.ts
type: TypeScript
emit: /path/to/some/project/mod.ts.js
dependencies: 3 unique (total 11.42KB)
</code></pre></div>
<p dir="auto"><code class="notranslate">deno --version</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno 1.13.2 (release, x86_64-unknown-linux-gnu)
v8 9.3.345.11
typescript 4.3.5"><pre class="notranslate"><code class="notranslate">deno 1.13.2 (release, x86_64-unknown-linux-gnu)
v8 9.3.345.11
typescript 4.3.5
</code></pre></div> | 0 |
<h1 dir="auto">Motivation</h1>
<p dir="auto">In our experience, the number of dimensions of a datasource typically range from a dozen to dozens. However, queries about the datasource always only involve several dimensions. As we know, the fewer dimensions a datasource has, the less time a query cost. Based on the idea of changing time with space, druid can build a derived datasource which only contains several common dimensions of the datasource. When users query the datasource, druid calculates results based on the derived datasource if the derived datasource contains all dimensions the query required.</p>
<p dir="auto">From another perspective, it is also a compromise between druid and kylin. Druid has minimal degree of pre-calculation, while kylin has maximum degree of pre-calculation. That is, druid only pre-calculation the combined value of all dimensions as shown in Table1(assume there are two dimensions and one metrics). However, kylin pre-calculation all possible combinations of dimensions as shown in Table 1-3. As a result, druid calculates for each query, while kylin stores much useless result data.</p>
<p dir="auto">Table 1:</p>
<table role="table">
<thead>
<tr>
<th>Dimension A</th>
<th>Dimension B</th>
<th>Metrics A</th>
</tr>
</thead>
<tbody>
<tr>
<td>a1</td>
<td>b1</td>
<td>1</td>
</tr>
<tr>
<td>a2</td>
<td>b1</td>
<td>3</td>
</tr>
<tr>
<td>a1</td>
<td>b2</td>
<td>5</td>
</tr>
</tbody>
</table>
<p dir="auto">Table 2:</p>
<table role="table">
<thead>
<tr>
<th>Dimension A</th>
<th>Metrics A</th>
</tr>
</thead>
<tbody>
<tr>
<td>a1</td>
<td>6</td>
</tr>
<tr>
<td>a2</td>
<td>3</td>
</tr>
</tbody>
</table>
<p dir="auto">Table 3:</p>
<table role="table">
<thead>
<tr>
<th>DimensionB</th>
<th>Metrics A</th>
</tr>
</thead>
<tbody>
<tr>
<td>b1</td>
<td>4</td>
</tr>
<tr>
<td>b2</td>
<td>5</td>
</tr>
</tbody>
</table>
<p dir="auto">Virtual datasource is proposed for druid to do more pre-calculation. The datasource which user ingests is called base-datasource, and the datasource which generated based on the base-datasource is called derived-datasource which is very similar to the notion of materialized views in traditional relational databases. Derived-datasource only involves some of dimensions of the base-datasource. It is noteworthy that user only need to know the base-datasource name. When user query the base-datasource, druid can automatically change the datasource of the query to a derived-datasource if the derived-datasource match some conditions, such as including all dimensions the query required.</p>
<p dir="auto">In this version, we focus on the datasource which is loaded from files.</p>
<h1 dir="auto">Implementation</h1>
<h2 dir="auto">Create and Delete Derived-datasource</h2>
<h3 dir="auto">Conditions:</h3>
<ol dir="auto">
<li>The timeline, metrics and granularities of a derived-datasource and its base-datasources are the same</li>
<li>Derived-datasource dimensions is a subset of base-datasource dimensions.</li>
</ol>
<h3 dir="auto">Implementation</h3>
<ol dir="auto">
<li>Add two http interface in DatasourceResource.java. One is a POST request used to create derived datasource, and the other is a GET request to get information of derived-datasource.<br>
<code class="notranslate">curl -X POST -d @dimensions.json http://localhost:8081/druid/coordinator/v1/datasources/wikiticker/derivatives -H 'Content-Type:application/json'</code><br>
Dimensions.json stored all dimensions of derived-datasource, such as<br>
<code class="notranslate">["metroCode","namespace","page","regionIsoCode","regionName","user"]</code><br>
<code class="notranslate">curl -X GET http://localhost:8081/druid/coordinator/v1/datasources/wikiticker/derivatives -H 'Content-Type:application/json'</code><br>
The return result is all derived-datasources of wikiticker, and related dimensions:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"baseDataSource": "wikiticker",
"derivedDataSource": {
"wikiticker-0c224343": [
"metroCode",
"namespace",
"page",
"regionIsoCode",
"regionName",
"user"
]
}
}"><pre class="notranslate"><code class="notranslate">{
"baseDataSource": "wikiticker",
"derivedDataSource": {
"wikiticker-0c224343": [
"metroCode",
"namespace",
"page",
"regionIsoCode",
"regionName",
"user"
]
}
}
</code></pre></div>
<ol start="2" dir="auto">
<li>
<p dir="auto">Add an new class DerivedDatasourceManager, which is responsible for:</p>
<ul dir="auto">
<li>Read and Write information of derived-datasource from database;</li>
<li>Traverse all derived-datasource. If the timeline of derived-datasource is less than the base datasource, a hadoop-reindex-task will be submit to ingest missing data. On the contrary, if the timeline of derived-datasource is more than the base datasource, druid will set used=false for the excess segments and a kill task will be submit to remove the data.</li>
</ul>
</li>
<li>
<p dir="auto">Add a new table "druid_derivatives" to store information of derived-datasource. The table include 3 columns: basedatasource, deriveddatasource,dimensions. The primary key is combination of basedatasource and dimensions</p>
</li>
<li>
<p dir="auto">For the purpose of submitting hadoop-reindex-tasks when timeline of derived-datasource is less than base-datasource, it is necessary to get metrics and granularities of base-datasource. Therefore, a table "druid_dataschema" is required to add. It includes 5 columns: basedatasource, start, end, ts, datashcema. The primary key is the combination of basedatasource, start, end and ts.</p>
</li>
<li>
<p dir="auto">In HadoopIndexTask.java, after publishing segments to database, the schema of the task should be inserted into table "druid_dataschema". Besides, if the datasource of the task has derived datasource and the data of the derived-datasource in the interval of the task has already existed, it’s required to delete this data of derived-datasource.</p>
</li>
<li>
<p dir="auto">When user delete a datasource, derived-datasource of the datasource should be deleted.</p>
</li>
</ol>
<h2 dir="auto">Optimizing Datasource</h2>
<h3 dir="auto">Conditions:</h3>
<p dir="auto">Once druid receives a query, the datasource of the query is replaced by a derived-datasource(Figure 1). The alternatives must meet the following conditions:</p>
<ol dir="auto">
<li>The intersection between base-datasource timeline and query interval is equal to the intersection between derived-datasource timeline and query interval.</li>
<li>derived-datasource includes all dimensions query need</li>
<li>The chosen derived-datasource has the minimum amount of data among all derived-datasources which meet condition 1 and 2.</li>
<li>If there is no suitable derived-datasource, base-datasource will not be replaced.<br>
Figure 1:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12528894/34593477-1cc21958-f206-11e7-8719-1d3b858a5876.png"><img src="https://user-images.githubusercontent.com/12528894/34593477-1cc21958-f206-11e7-8719-1d3b858a5876.png" alt="virtual datasource" style="max-width: 100%;"></a></li>
</ol>
<h3 dir="auto">Implementation</h3>
<p dir="auto">In BrokerResource.java, when receive a query, first optimize datasource: replacing datasource with a suitable derived-datasource. The process of optimization is as follows.</p>
<ol dir="auto">
<li>Check if the datasource is a table datasource. If not, do not optimize. (In this version, we only support table datasource optimization)</li>
<li>Check if the datasource has derived-datasource. If it has, get the information of these derived-datasources: name, dimensions and timeline.</li>
<li>Traverse all derived-datasource, and find the derived-datasource which meet condition 1 and 2. If there are some derived-datasources meeting these two conditions, do the 4th step.</li>
<li>Find the derived-datasource which has the minimum amount of data among all derived-datasources which meet condition 1 and 2.</li>
</ol> | <p dir="auto">The kafka firehose has a couple of broad areas of potential improvement.</p>
<p dir="auto"><em>Redundancy:</em> It is not possible to run both partitioned and redundant, due to the fact that you'd need two consumer groups, but each group would partition events differently and play havoc with segment identity.</p>
<p dir="auto"><em>Data duplication/loss:</em> The Kafka APIs allow the firehose to in principle be exactly once (or even at-least-once) but is not currently either of those things. Known reasons for this include:</p>
<ul dir="auto">
<li>The high-level kafka consumer can generate duplicate messages during a rebalance.</li>
<li>Druid checkpoints its offsets after writing to disk, but during this time it will have read a few more messages into memory. The checkpoint will include those messages, which may therefore be lost after process failure.</li>
<li>I am not sure if Druid fsyncs its segments after writing them, so this may affect the likelihood of the file being available as expected after power failure. It should fsync if it doesn't.</li>
<li>Messages older than the windowPeriod will be dropped (by design- but still worth noting).</li>
</ul>
<p dir="auto">These areas could addressed by switching to the simple consumer, or by different usage of the high level consumer, or by waiting for the mythical <a href="https://cwiki.apache.org/confluence/display/KAFKA/Kafka+0.9+Consumer+Rewrite+Design" rel="nofollow">consumer redesign</a>. Caveat: I have not read the consumer redesign doc yet and am not sure if it would actually help.</p> | 0 |
<p dir="auto">A major use case for the <a href="https://docs.scipy.org/doc/numpy-1.15.1/reference/generated/numpy.fromfile.html" rel="nofollow">numpy.fromfile()</a> function is in reading from binary file of some kind. Frequently, binary formats are just arrays of data with a fixed-size header. It would be useful to have an extra optional parameter for the fromfile() function which defines a byte offset for when to start reading. This parameter would default to 0, leaving it backwards-compatible with existing code.</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
binary_file = "sample_binary.bin"
my_array = np.fromfile(binary_file, dtype=np.uint8, offset=40)"><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">binary_file</span> <span class="pl-c1">=</span> <span class="pl-s">"sample_binary.bin"</span>
<span class="pl-s1">my_array</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">fromfile</span>(<span class="pl-s1">binary_file</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">uint8</span>, <span class="pl-s1">offset</span><span class="pl-c1">=</span><span class="pl-c1">40</span>)</pre></div>
<p dir="auto">Currently, the above code will not run, as the 'offset' keyword argument is not supported. In this call, the ndarray object 'my_array' would be the result of the binary file being read in, starting with an offset of 40 bytes.</p>
<p dir="auto">It is certainly possible to <a href="https://stackoverflow.com/questions/30124255/read-a-binary-file-using-numpy-fromfile-and-a-given-offset" rel="nofollow">work-around</a> the issue currently, but adding direct support for offsets in the function would make for cleaner code.</p> | <p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1412" rel="nofollow">http://projects.scipy.org/numpy/ticket/1412</a> on 2010-02-25 by trac user A_LARAS, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cournape/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cournape">@cournape</a>.</em></p>
<p dir="auto">Hi There[[BR]]</p>
<p dir="auto">I'm trying to build scipy from the trunk (latest release):[[BR]]<br>
python setup.py config_fc --fcompiler=gnu95 install --prefix=/usr/local/python[[BR]]<br>
but stuck with the following error :[[BR]]<br>
C compiler: c++_r -qlanglvl=extc89 -DNDEBUG -O[[BR]]</p>
<p dir="auto">compile options: '-Iscipy/interpolate/src -I/usr/local/python/lib/python2.4/site-packages/numpy/core/include -I/usr/local/python/include/python2.4 -c'[[BR]]<br>
c++_r: scipy/interpolate/src/_interpolate.cpp[[BR]]<br>
sh: c++_r: not found.[[BR]]<br>
sh: c++_r: not found.[[BR]]<br>
error: Command "c++_r -qlanglvl=extc89 -DNDEBUG -O -Iscipy/interpolate/src -I/usr/local/python/lib/python2.4/site-packages/numpy/core/include -I/usr/local/python/include/python2.4 -c scipy/interpolate/src/_interpolate.cpp -o build/temp.aix-5.3-2.4/scipy/interpolate/src/_interpolate.o" failed with exit status 127[[BR]]</p>
<p dir="auto">whith export CXX="c++", I hit another error (syntax error)[[BR]]<br>
c++ c++ -qlanglvl=extc89 -bI:/usr/local/Python.2.4/lib/python2.4/config/python.exp build/temp.aix-5.3-2.4/scipy/interpolate/src/_interpolate.o -Lbuild/temp.aix-5.3-2.4 -o build/lib.aix-5.3-2.4/scipy/interpolate/_interpolate.so[[BR]]<br>
c++: c++: No such file or directory[[BR]]<br>
c++: unrecognized option '-qlanglvl=extc89'[[BR]]<br>
c++: unrecognized option '-bI:/usr/local/Python.2.4/lib/python2.4/config/python.exp'[[BR]]<br>
error: Command "c++ c++ -qlanglvl=extc89 -bI:/usr/local/Python.2.4/lib/python2.4/config/python.exp build/temp.aix-5.3-2.4/scipy/interpolate/src/_interpolate.o -Lbuild/temp.aix-5.3-2.4 -o build/lib.aix-5.3-2.4/scipy/interpolate/_interpolate.so" failed with exit status 1[[BR]]</p>
<p dir="auto">the second "c++" is passed as an options to CXX compiler, and I don't know how to get rid of this.[[BR]]</p>
<p dir="auto">OS: AIX 5.3 64 bits[[BR]]<br>
CC: gcc (GCC) 4.2.4[[BR]]<br>
CXX: c++ (GCC) 4.2.4[[BR]]<br>
Python: Python 2.4 (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="365753" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/2" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/2/hovercard" href="https://github.com/numpy/numpy/pull/2">#2</a>, Dec 20 2004, 10:36:59) [C] on aix4[[BR]]<br>
Numpy: 1.4[[BR]]</p> | 0 |
<p dir="auto">run the spider with <code class="notranslate">scrapy runspider</code>, it also happens on <code class="notranslate">parse</code> and <code class="notranslate">crawl</code>.<br>
<a href="https://gist.github.com/nramirezuy/65faa56c7eab1e117d77">https://gist.github.com/nramirezuy/65faa56c7eab1e117d77</a></p> | <p dir="auto">Programming a <code class="notranslate">Crawler</code> from ipython notebook is causing <code class="notranslate">boto</code> to raise an error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR:boto:Caught exception reading instance data
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/boto/utils.py", line 219, in retry_url
r = opener.open(req)
File "/usr/lib/python2.7/urllib2.py", line 404, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 422, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1214, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open
raise URLError(err)
URLError: <urlopen error timed out>
ERROR:boto:Unable to read instance data, giving up
2015-03-24 00:58:54-0300 [fipe-periodo] INFO: Closing spider (finished)
2015-03-24 00:58:54-0300 [fipe-periodo] INFO: Dumping Scrapy stats:
{'downloader/request_bytes': 308,
'downloader/request_count': 1,
'downloader/request_method_count/GET': 1,
'downloader/response_bytes': 124031,
'downloader/response_count': 1,
'downloader/response_status_count/200': 1,
'finish_reason': 'finished',
'finish_time': datetime.datetime(2015, 3, 24, 3, 58, 54, 646566),
'item_scraped_count': 171,
'response_received_count': 1,
'scheduler/dequeued': 1,
'scheduler/dequeued/memory': 1,
'scheduler/enqueued': 1,
'scheduler/enqueued/memory': 1,
'start_time': datetime.datetime(2015, 3, 24, 3, 58, 53, 978029)}
2015-03-24 00:58:54-0300 [fipe-periodo] INFO: Spider closed (finished)"><pre class="notranslate"><code class="notranslate">ERROR:boto:Caught exception reading instance data
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/boto/utils.py", line 219, in retry_url
r = opener.open(req)
File "/usr/lib/python2.7/urllib2.py", line 404, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 422, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1214, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open
raise URLError(err)
URLError: <urlopen error timed out>
ERROR:boto:Unable to read instance data, giving up
2015-03-24 00:58:54-0300 [fipe-periodo] INFO: Closing spider (finished)
2015-03-24 00:58:54-0300 [fipe-periodo] INFO: Dumping Scrapy stats:
{'downloader/request_bytes': 308,
'downloader/request_count': 1,
'downloader/request_method_count/GET': 1,
'downloader/response_bytes': 124031,
'downloader/response_count': 1,
'downloader/response_status_count/200': 1,
'finish_reason': 'finished',
'finish_time': datetime.datetime(2015, 3, 24, 3, 58, 54, 646566),
'item_scraped_count': 171,
'response_received_count': 1,
'scheduler/dequeued': 1,
'scheduler/dequeued/memory': 1,
'scheduler/enqueued': 1,
'scheduler/enqueued/memory': 1,
'start_time': datetime.datetime(2015, 3, 24, 3, 58, 53, 978029)}
2015-03-24 00:58:54-0300 [fipe-periodo] INFO: Spider closed (finished)
</code></pre></div>
<p dir="auto">We solved the problem by removing boto from <code class="notranslate">scrapy.optional_packages</code></p>
<p dir="auto">Here is the code</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from twisted.internet import reactor
from scrapy.crawler import Crawler
from scrapy import log, signals
from scrapy.utils.project import get_project_settings
from fipe_spiders.spiders.automoveis import FipePeriodo
from scrapy import optional_features
# uncommented fixes my issue
# optional_features.remove('boto')
def setup_crawler(Spider):
spider = Spider()
settings = get_project_settings()
crawler = Crawler(settings)
crawler.signals.connect(reactor.stop, signal=signals.spider_closed)
crawler.configure()
crawler.crawl(spider)
crawler.start()
setup_crawler(FipePeriodo)
log.start()
reactor.run()
"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">twisted</span>.<span class="pl-s1">internet</span> <span class="pl-k">import</span> <span class="pl-s1">reactor</span>
<span class="pl-k">from</span> <span class="pl-s1">scrapy</span>.<span class="pl-s1">crawler</span> <span class="pl-k">import</span> <span class="pl-v">Crawler</span>
<span class="pl-k">from</span> <span class="pl-s1">scrapy</span> <span class="pl-k">import</span> <span class="pl-s1">log</span>, <span class="pl-s1">signals</span>
<span class="pl-k">from</span> <span class="pl-s1">scrapy</span>.<span class="pl-s1">utils</span>.<span class="pl-s1">project</span> <span class="pl-k">import</span> <span class="pl-s1">get_project_settings</span>
<span class="pl-k">from</span> <span class="pl-s1">fipe_spiders</span>.<span class="pl-s1">spiders</span>.<span class="pl-s1">automoveis</span> <span class="pl-k">import</span> <span class="pl-v">FipePeriodo</span>
<span class="pl-k">from</span> <span class="pl-s1">scrapy</span> <span class="pl-k">import</span> <span class="pl-s1">optional_features</span>
<span class="pl-c"># uncommented fixes my issue</span>
<span class="pl-c"># optional_features.remove('boto')</span>
<span class="pl-k">def</span> <span class="pl-en">setup_crawler</span>(<span class="pl-v">Spider</span>):
<span class="pl-s1">spider</span> <span class="pl-c1">=</span> <span class="pl-v">Spider</span>()
<span class="pl-s1">settings</span> <span class="pl-c1">=</span> <span class="pl-en">get_project_settings</span>()
<span class="pl-s1">crawler</span> <span class="pl-c1">=</span> <span class="pl-v">Crawler</span>(<span class="pl-s1">settings</span>)
<span class="pl-s1">crawler</span>.<span class="pl-s1">signals</span>.<span class="pl-en">connect</span>(<span class="pl-s1">reactor</span>.<span class="pl-s1">stop</span>, <span class="pl-s1">signal</span><span class="pl-c1">=</span><span class="pl-s1">signals</span>.<span class="pl-s1">spider_closed</span>)
<span class="pl-s1">crawler</span>.<span class="pl-en">configure</span>()
<span class="pl-s1">crawler</span>.<span class="pl-en">crawl</span>(<span class="pl-s1">spider</span>)
<span class="pl-s1">crawler</span>.<span class="pl-en">start</span>()
<span class="pl-en">setup_crawler</span>(<span class="pl-v">FipePeriodo</span>)
<span class="pl-s1">log</span>.<span class="pl-en">start</span>()
<span class="pl-s1">reactor</span>.<span class="pl-en">run</span>()</pre></div> | 1 |
<p dir="auto"><strong>Glide Version</strong>:<br>
4.80</p>
<p dir="auto"><strong>Integration libraries</strong>:<br>
nothing</p>
<p dir="auto"><strong>Device/Android Version</strong>:<br>
API 27</p>
<p dir="auto"><strong>Gradle File</strong>:</p>
<div class="highlight highlight-source-groovy-gradle notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="apply plugin: 'com.android.application'
allprojects {
repositories {
google()
jcenter()
maven{
url "https://maven.google.com"
}
}
}
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.seuchild.smallseedlings"
minSdkVersion 23
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.constraintlayout:constraintlayout:1.1.0'
implementation 'androidx.appcompat:appcompat:1.0.0-rc01'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.0-alpha1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha1'
implementation "com.google.android.material:material:1.0.0-rc01"
implementation 'com.github.bumptech.glide:glide:4.8.0'
annotationProcessor 'androidx.annotation:annotation:1.0.0-rc01'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
}"><pre class="notranslate">apply <span class="pl-c1">plugin</span>: <span class="pl-s"><span class="pl-pds">'</span>com.android.application<span class="pl-pds">'</span></span>
<span class="pl-en">allprojects</span> {
repositories {
google()
jcenter()
maven{
url <span class="pl-s"><span class="pl-pds">"</span>https://maven.google.com<span class="pl-pds">"</span></span>
}
}
}
<span class="pl-en">android</span> {
compileSdkVersion 28
defaultConfig {
applicationId <span class="pl-s"><span class="pl-pds">"</span>com.seuchild.smallseedlings<span class="pl-pds">"</span></span>
minSdkVersion <span class="pl-c1">23</span>
targetSdkVersion <span class="pl-c1">28</span>
versionCode <span class="pl-c1">1</span>
versionName <span class="pl-s"><span class="pl-pds">"</span>1.0<span class="pl-pds">"</span></span>
testInstrumentationRunner <span class="pl-s"><span class="pl-pds">"</span>android.support.test.runner.AndroidJUnitRunner<span class="pl-pds">"</span></span>
}
buildTypes {
release {
minifyEnabled <span class="pl-c1">false</span>
proguardFiles getDefaultProguardFile(<span class="pl-s"><span class="pl-pds">'</span>proguard-android.txt<span class="pl-pds">'</span></span>), <span class="pl-s"><span class="pl-pds">'</span>proguard-rules.pro<span class="pl-pds">'</span></span>
}
}
}
<span class="pl-en">dependencies</span> {
implementation fileTree(<span class="pl-c1">dir</span>: <span class="pl-s"><span class="pl-pds">'</span>libs<span class="pl-pds">'</span></span>, <span class="pl-c1">include</span>: [<span class="pl-s"><span class="pl-pds">'</span>*.jar<span class="pl-pds">'</span></span>])
implementation <span class="pl-s"><span class="pl-pds">'</span>androidx.constraintlayout:constraintlayout:1.1.0<span class="pl-pds">'</span></span>
implementation <span class="pl-s"><span class="pl-pds">'</span>androidx.appcompat:appcompat:1.0.0-rc01<span class="pl-pds">'</span></span>
testImplementation <span class="pl-s"><span class="pl-pds">'</span>junit:junit:4.12<span class="pl-pds">'</span></span>
androidTestImplementation <span class="pl-s"><span class="pl-pds">'</span>androidx.test:runner:1.1.0-alpha1<span class="pl-pds">'</span></span>
androidTestImplementation <span class="pl-s"><span class="pl-pds">'</span>androidx.test.espresso:espresso-core:3.1.0-alpha1<span class="pl-pds">'</span></span>
implementation <span class="pl-s"><span class="pl-pds">"</span>com.google.android.material:material:1.0.0-rc01<span class="pl-pds">"</span></span>
implementation <span class="pl-s"><span class="pl-pds">'</span>com.github.bumptech.glide:glide:4.8.0<span class="pl-pds">'</span></span>
annotationProcessor <span class="pl-s"><span class="pl-pds">'</span>androidx.annotation:annotation:1.0.0-rc01<span class="pl-pds">'</span></span>
annotationProcessor <span class="pl-s"><span class="pl-pds">'</span>com.github.bumptech.glide:compiler:4.8.0<span class="pl-pds">'</span></span>
}</pre></div>
<p dir="auto"><strong>App</strong>:<br>
Nothing,just dependencies</p>
<p dir="auto"><strong>Error Message:</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy
Message{kind=ERROR, text=Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy, sources=[Unknown source file], tool name=Optional.of(D8)}"><pre class="notranslate"><code class="notranslate">Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy
Message{kind=ERROR, text=Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy, sources=[Unknown source file], tool name=Optional.of(D8)}
</code></pre></div> | <p dir="auto">Getting the following error in Android Studio 3.0 Beta 4 with the following deps:</p>
<p dir="auto">implementation 'com.github.bumptech.glide:glide:4.1.0'<br>
implementation 'com.github.bumptech.glide:okhttp3-integration:4.1.0'<br>
annotationProcessor 'com.github.bumptech.glide:compiler:4.1.0'</p>
<p dir="auto">Gradle file:<br>
android {<br>
compileSdkVersion 26<br>
buildToolsVersion "26.0.1"<br>
defaultConfig {<br>
minSdkVersion 21<br>
targetSdkVersion 26<br>
...............</p>
<p dir="auto">gradle.properties as follows:<br>
android.enableAapt2=true<br>
#android.enableD8=true<br>
#org.gradle.caching=true<br>
org.gradle.jvmargs=-Xmx1536m</p>
<p dir="auto">Tried multiple cleans and rebuilds. Dropping back down to Glide 4.0.0 on all deps and everything works again. Any ideas?</p>
<blockquote>
<p dir="auto">:app:transformClassesWithAndroidGradleClassShrinkerForDebug<br>
-allowaccessmodification is ignored by the built-in class shrinker.<br>
com/bumptech/glide/integration/okhttp/R$integer references unknown class: com/bumptech/glide/integration/okhttp/R<br>
com/bumptech/glide/integration/okhttp/R$style references unknown class: com/bumptech/glide/integration/okhttp/R<br>
com/bumptech/glide/integration/okhttp/R$color references unknown class: com/bumptech/glide/integration/okhttp/R<br>
com/bumptech/glide/integration/okhttp/R$string references unknown class: com/bumptech/glide/integration/okhttp/R<br>
com/bumptech/glide/R$drawable references unknown class: com/bumptech/glide/R<br>
com/bumptech/glide/R$layout references unknown class: com/bumptech/glide/R<br>
com/bumptech/glide/integration/okhttp/R$layout references unknown class: com/bumptech/glide/integration/okhttp/R<br>
com/bumptech/glide/R$bool references unknown class: com/bumptech/glide/R<br>
com/bumptech/glide/integration/okhttp/R$bool references unknown class: com/bumptech/glide/integration/okhttp/R<br>
com/bumptech/glide/R$string references unknown class: com/bumptech/glide/R<br>
com/bumptech/glide/integration/okhttp/R$drawable references unknown class: com/bumptech/glide/integration/okhttp/R<br>
com/bumptech/glide/R$color references unknown class: com/bumptech/glide/R<br>
com/bumptech/glide/R$style references unknown class: com/bumptech/glide/R<br>
com/bumptech/glide/R$integer references unknown class: com/bumptech/glide/R<br>
:app:transformClassesWithAndroidGradleClassShrinkerForDebug FAILED</p>
</blockquote>
<p dir="auto">FAILURE: Build failed with an exception.</p>
<ul dir="auto">
<li>What went wrong:<br>
Execution failed for task ':app:transformClassesWithAndroidGradleClassShrinkerForDebug'.</li>
</ul>
<blockquote>
<p dir="auto">Warnings found during shrinking, please use -dontwarn or -ignorewarnings to suppress them.</p>
</blockquote>
<ul dir="auto">
<li>
<p dir="auto">Try:<br>
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.</p>
</li>
<li>
<p dir="auto">Get more help at <a href="https://help.gradle.org" rel="nofollow">https://help.gradle.org</a></p>
</li>
</ul>
<p dir="auto">BUILD FAILED in 38s</p>
<p dir="auto">39 actionable tasks: 15 executed, 24 up-to-date</p> | 0 |
<p dir="auto">Hi,</p>
<p dir="auto">After our latest vendor upgrade we have experienced a very long execution time on our CI server. After digging into it I found the following:</p>
<p dir="auto">Symfony 2.6.5, Win 7 x64, dev mode:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Total time 755 ms
Initialization time 480 ms"><pre class="notranslate"><code class="notranslate">Total time 755 ms
Initialization time 480 ms
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="composer update symfony/symfony
//...
- Removing symfony/symfony (v2.6.5)
- Installing symfony/symfony (v2.6.8)"><pre class="notranslate"><code class="notranslate">composer update symfony/symfony
//...
- Removing symfony/symfony (v2.6.5)
- Installing symfony/symfony (v2.6.8)
</code></pre></div>
<p dir="auto">(no other vendors were updated)</p>
<p dir="auto">Symfony 2.6.8, Win 7 x64, dev mode:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Total time 9622 ms
Initialization time 9405 ms"><pre class="notranslate"><code class="notranslate">Total time 9622 ms
Initialization time 9405 ms
</code></pre></div>
<ul dir="auto">
<li>problem present on linux as well</li>
<li>php error log empty</li>
<li>dev log seems normal</li>
<li>prod mode is unaffected</li>
</ul>
<p dir="auto">Any help would be much appreciated.</p> | <p dir="auto">On Previous versions of symfony (lower than 2.6.8) the response time of a page was about 800 ms in dev environment. With the upgrade in 2.6.8 the response time was more than 4s with high usage of CPU. In production environment, I didn't notice any response time change between 2.6.7 and 2.6.8.<br>
The timeline of the toolbar shows an Initialization time from 300ms for 2.6.7 to 3800ms for 2.6.8.<br>
Environment :<br>
Linux Ubuntu 15.04<br>
PHP 5.5.9</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?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Context</h2>
<p dir="auto">We <g-emoji class="g-emoji" alias="heart" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2764.png">❤️</g-emoji>next.js! I made the (possibly) poor decision of migrating our (nteract's) monorepo to Webpack 4 only to notice that next.js is on webpack 3. How far off is a migration to webpack 4? My primary reason for asking is to know if I should switch us <em>back</em> to webpack 3 or just wait on the next next version. <g-emoji class="g-emoji" alias="smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f604.png">😄</g-emoji></p>
<p dir="auto">We have a few non-next.js apps (some loaded by a python server, one by electron) and we want to make the webpack similar using the universal webpack configurator plugins crafted for next 4. I don't want to break our next apps, so I kept those a bit separate.</p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Context</h2>
<p dir="auto">We <g-emoji class="g-emoji" alias="heart" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2764.png">❤️</g-emoji>next.js! I made the (possibly) poor decision of migrating our (nteract's) monorepo to Webpack 4 only to notice that next.js is on webpack 3. How far off is a migration to webpack 4? My primary reason for asking is to know if I should switch us <em>back</em> to webpack 3 or just wait on the next next version. <g-emoji class="g-emoji" alias="smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f604.png">😄</g-emoji></p>
<p dir="auto">We have a few non-next.js apps (some loaded by a python server, one by electron) and we want to make the webpack similar using the universal webpack configurator plugins crafted for next 4. I don't want to break our next apps, so I kept those a bit separate.</p> | 1 |
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> module temp
struct x end
end
Main.temp
julia> using Main.temp
julia> f(::temp.x) = 1
f (generic function with 1 method)
julia> f(temp.x())
1
julia> module temp
struct x end
end
WARNING: replacing module temp.
Main.temp
julia> f(temp.x())
ERROR: MethodError: no method matching f(::Main.temp.x)
Closest candidates are:
f(::Main.temp.x) at REPL[3]:1
Stacktrace:
[1] top-level scope
@ REPL[6]:1"><pre class="notranslate">julia<span class="pl-k">></span> <span class="pl-k">module</span> temp
<span class="pl-k">struct</span> x <span class="pl-k">end</span>
<span class="pl-k">end</span>
Main<span class="pl-k">.</span>temp
julia<span class="pl-k">></span> <span class="pl-k">using</span> Main<span class="pl-k">.</span>temp
julia<span class="pl-k">></span> <span class="pl-en">f</span>(<span class="pl-k">::</span><span class="pl-c1">temp.x</span>) <span class="pl-k">=</span> <span class="pl-c1">1</span>
f (generic <span class="pl-k">function</span> with <span class="pl-c1">1</span> method)
julia<span class="pl-k">></span> <span class="pl-c1">f</span>(temp<span class="pl-k">.</span><span class="pl-c1">x</span>())
<span class="pl-c1">1</span>
julia<span class="pl-k">></span> <span class="pl-k">module</span> temp
<span class="pl-k">struct</span> x <span class="pl-k">end</span>
<span class="pl-k">end</span>
WARNING<span class="pl-k">:</span> replacing <span class="pl-k">module</span> temp.
Main<span class="pl-k">.</span>temp
julia<span class="pl-k">></span> <span class="pl-c1">f</span>(temp<span class="pl-k">.</span><span class="pl-c1">x</span>())
ERROR<span class="pl-k">:</span> MethodError<span class="pl-k">:</span> no method matching <span class="pl-c1">f</span>(<span class="pl-k">::</span><span class="pl-c1">Main.temp.x</span>)
Closest candidates are<span class="pl-k">:</span>
<span class="pl-c1">f</span>(<span class="pl-k">::</span><span class="pl-c1">Main.temp.x</span>) at REPL[<span class="pl-c1">3</span>]<span class="pl-k">:</span><span class="pl-c1">1</span>
Stacktrace<span class="pl-k">:</span>
[<span class="pl-c1">1</span>] top<span class="pl-k">-</span>level scope
@ REPL[<span class="pl-c1">6</span>]<span class="pl-k">:</span><span class="pl-c1">1</span></pre></div>
<p dir="auto">In this case perhaps there might be a way to indicate that the present module differs from the one for which the method had been added? The closest candidate is confusing otherwise.</p> | <p dir="auto">Here's a MWE on v1.6.1:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct Foo end
f = Foo()
module Bar
export Foo, func
struct Foo end
func(f::Foo) = "hi"
end # module
using .Bar
func(f) # Error: can't dispatch
# Then I did:
f isa Foo
methods(func) # Only one method found
# I should have checked:
f isa Bar.Foo"><pre class="notranslate"><span class="pl-k">struct</span> Foo <span class="pl-k">end</span>
f <span class="pl-k">=</span> <span class="pl-c1">Foo</span>()
<span class="pl-k">module</span> Bar
<span class="pl-k">export</span> Foo, func
<span class="pl-k">struct</span> Foo <span class="pl-k">end</span>
<span class="pl-en">func</span>(f<span class="pl-k">::</span><span class="pl-c1">Foo</span>) <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">"</span>hi<span class="pl-pds">"</span></span>
<span class="pl-k">end</span> <span class="pl-c"><span class="pl-c">#</span> module</span>
<span class="pl-k">using</span> <span class="pl-k">.</span>Bar
<span class="pl-c1">func</span>(f) <span class="pl-c"><span class="pl-c">#</span> Error: can't dispatch</span>
<span class="pl-c"><span class="pl-c">#</span> Then I did:</span>
f <span class="pl-k">isa</span> Foo
<span class="pl-c1">methods</span>(func) <span class="pl-c"><span class="pl-c">#</span> Only one method found </span>
<span class="pl-c"><span class="pl-c">#</span> I should have checked:</span>
f <span class="pl-k">isa</span> Bar<span class="pl-k">.</span>Foo</pre></div>
<p dir="auto">If the error message could say there are two <code class="notranslate">Foo</code>s defined in different modules that would be helpful.</p> | 1 |
<p dir="auto">Some keyboards (like HP Pavilion 600) have a functional button (F1-F12) that cannot be locked to use this as function keys without Fn key holding. And no, they don't have any Fn lock (HP support confirms this). So I can remap most of these keys, but F9-F12 keys seem as shortcuts (it detects with Remap shortcut function):</p>
<p dir="auto">Win-F9 => F12<br>
Win-Ctrl-F9 => F11<br>
Win-Tab => F10<br>
Win-Shift-F9 => F9</p>
<p dir="auto">But I can't map a shortcut into a specified key, only as another shortcut.</p>
<p dir="auto">So, I will be glad to use the ability to remap a keyboard shortcut into a specified key.</p> | <h2 dir="auto">📝 Provide a description of the new feature</h2>
<p dir="auto">This feature will remove the default search bar, and attach a permanent search prompt onto the desktop. Also, adds additional behaviour which will snap when user clicks shift+drag. And blurs, on using windows, or losing focus?</p>
<p dir="auto"><em>What is the expected behavior of the proposed feature? What is the scenario this would be used?</em></p>
<p dir="auto">It will replace the search bar, and add it in the middle of the screen, which is how I want my indexing to be, not the old boring start menu one. Maybe, it will also have feature to completely index the whole partition. And please, don't link it to search engine. Don't mess this up, like you did it to the start menu search. Just add a "Search on web" button to redirect to the browser.</p>
<hr>
<p dir="auto">If you'd like to see this feature implemented, add a <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji> reaction to this post.</p> | 0 |
<p dir="auto">Awesome effort guys. I have recently migrated from Mac OS. There is feature of 'Spotlight Search' in Mac which helps to search a particular file or anything. It also helps to find word meanings.</p>
<p dir="auto">This helped me a lot as I could find meanings clicking few buttons.</p>
<p dir="auto">I would request to add that feature (dictionary search) in Powertools under PowerToys Run command.</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.18362.449
PowerToys version: 0.13.0
PowerToy module for which you are reporting the bug (if applicable): PowerRename"><pre class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.449
PowerToys version: 0.13.0
PowerToy module for which you are reporting the bug (if applicable): PowerRename
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Create reparse points, e.g. duplicate a folder with some files in OneDrive, right click the folder and choose "Free up space". OneDrive will change the local files to reparse points. Mark the files, right click them. The context menu does not show PowerRenamer (but it does show the standard "Rename" which works, albeit only for a single file, as usual).</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">PowerRenamer should show up in the context menu and work on the reparse point(s).</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">PowerRenamer does not show up (or work) with NTFS reparse points.</p>
<h1 dir="auto">Screenshots</h1>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/126681/68808368-7f909e80-0661-11ea-9bbf-427396eba31d.png"><img src="https://user-images.githubusercontent.com/126681/68808368-7f909e80-0661-11ea-9bbf-427396eba31d.png" alt="PowerRenamer_in_context_menu_of_local_file" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/126681/68808372-81f2f880-0661-11ea-99ca-e4342a443906.png"><img src="https://user-images.githubusercontent.com/126681/68808372-81f2f880-0661-11ea-99ca-e4342a443906.png" alt="PowerRenamer_missing_in_context_menu_of_NTFS_reparse_point" style="max-width: 100%;"></a></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.900]
PowerToys version: v0.19.1
PowerToy module for which you are reporting the bug (if applicable): FancyZones"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.900]
PowerToys version: v0.19.1
PowerToy module for which you are reporting the bug (if applicable): FancyZones
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Try to attach a window to a FancyZone that borders the Windows Taskbar and the window is resized behind the taskbar.</p>
<p dir="auto">Noticed this happening after PowerToys update when Windows Explorer had to restart and also after Sleep/Hibernation.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Windows don't go behind the taskbar</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Windows do go behind the taskbar</p>
<h1 dir="auto">Screenshots</h1>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6013584/87157092-4c032400-c283-11ea-9737-00c86b9acad3.png"><img src="https://user-images.githubusercontent.com/6013584/87157092-4c032400-c283-11ea-9737-00c86b9acad3.png" alt="image" style="max-width: 100%;"></a></p> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18363.900
PowerToys version: 0.19.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones
Monitor(s): 2 side-by-side 4K monitors (one set to display scaling 100% and the other to 125%)"><pre class="notranslate"><code class="notranslate">Windows build number: 10.0.18363.900
PowerToys version: 0.19.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones
Monitor(s): 2 side-by-side 4K monitors (one set to display scaling 100% and the other to 125%)
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ul dir="auto">
<li>Set Windows taskbar location to <em>Top</em></li>
<li>Snap a window to a FancyZone (2 priority grid zones in my case)</li>
</ul>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">The window should snap to the <em>full-height</em> of the FancyZone <em>below</em> the task bar</p>
<h1 dir="auto">Actual behavior</h1>
<ul dir="auto">
<li>The window snaps <em>behind</em> the task bar (as shown with the green arrows)</li>
<li>The window leaves a <em>gap</em> underneath each window (as shown with the red arrows), which exposes the desktop background underneath</li>
</ul>
<h1 dir="auto">Screenshots</h1>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25905330/86352863-c110a100-bc66-11ea-95ff-f5a876357ef6.png"><img src="https://user-images.githubusercontent.com/25905330/86352863-c110a100-bc66-11ea-95ff-f5a876357ef6.png" alt="image" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">Hi! Is there any way to generate tests dynamically? Like in mocha:<br>
<a href="https://mochajs.org/#dynamically-generating-tests" rel="nofollow">https://mochajs.org/#dynamically-generating-tests</a></p>
<p dir="auto">For example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" test.describe.serial('Dynamic tests', () => {
const asyncData = test.preloadData()
test('Check testData', () => {
ok(asyncData?.length)
})
asyncData.forEach(item => {
test(`Test for ${item}`, async () => {
....
})
})
})"><pre class="notranslate"><code class="notranslate"> test.describe.serial('Dynamic tests', () => {
const asyncData = test.preloadData()
test('Check testData', () => {
ok(asyncData?.length)
})
asyncData.forEach(item => {
test(`Test for ${item}`, async () => {
....
})
})
})
</code></pre></div> | <p dir="auto">You can already do each via running test in a loop:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="for (const data in [...]) {
test('testing ' + data, async () => {});
}"><pre class="notranslate"><span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">const</span> <span class="pl-s1">data</span> <span class="pl-k">in</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">test</span><span class="pl-kos">(</span><span class="pl-s">'testing '</span> <span class="pl-c1">+</span> <span class="pl-s1">data</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">=></span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">If the above does not work for you, please tell us why in the comments!</p> | 1 |
<p dir="auto">Following the instructions in the <a href="https://github.com/Microsoft/vscode/wiki/How-to-Contribute#build-and-run-from-source">contribution guidelines</a>, I received the following error when I ran <code class="notranslate">gulp watch</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ gulp watch
fs.js:549
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT: no such file or directory, open '/Users/dem/proj/vscode/node_modules/gulp-tsb/lib/typescript/lib.d.ts'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.readFileSync (fs.js:397:15)
at new DefaultLibScriptSnapshot (/Users/dem/proj/vscode/node_modules/gulp-tsb/lib/builder.js:354:32)
at Object.createTypeScriptBuilder (/Users/dem/proj/vscode/node_modules/gulp-tsb/lib/builder.js:29:44)
at Object.create (/Users/dem/proj/vscode/node_modules/gulp-tsb/lib/index.js:28:28)
at createCompile (/Users/dem/proj/vscode/gulpfile.js:43:15)
at compileTask (/Users/dem/proj/vscode/gulpfile.js:74:16)
at Object.<anonymous> (/Users/dem/proj/vscode/gulpfile.js:100:47)
at Module._compile (module.js:435:26)"><pre class="notranslate"><code class="notranslate">$ gulp watch
fs.js:549
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT: no such file or directory, open '/Users/dem/proj/vscode/node_modules/gulp-tsb/lib/typescript/lib.d.ts'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.readFileSync (fs.js:397:15)
at new DefaultLibScriptSnapshot (/Users/dem/proj/vscode/node_modules/gulp-tsb/lib/builder.js:354:32)
at Object.createTypeScriptBuilder (/Users/dem/proj/vscode/node_modules/gulp-tsb/lib/builder.js:29:44)
at Object.create (/Users/dem/proj/vscode/node_modules/gulp-tsb/lib/index.js:28:28)
at createCompile (/Users/dem/proj/vscode/gulpfile.js:43:15)
at compileTask (/Users/dem/proj/vscode/gulpfile.js:74:16)
at Object.<anonymous> (/Users/dem/proj/vscode/gulpfile.js:100:47)
at Module._compile (module.js:435:26)
</code></pre></div>
<p dir="auto">I resolved the error by:</p>
<ol dir="auto">
<li>Creating the <code class="notranslate">~/proj/vscode/node_modules/gulp-tsb/lib/typescript/</code>folder, which was missing:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cd ~/proj/vscode/node_modules/gulp-tsb/lib/
mkdir typescript"><pre class="notranslate"><code class="notranslate">cd ~/proj/vscode/node_modules/gulp-tsb/lib/
mkdir typescript
</code></pre></div>
<ol start="2" dir="auto">
<li>
<p dir="auto">Copying <code class="notranslate">~/proj/vscode/out/vs/languages/typescript/common/lib/lib.d.ts</code> into that new <code class="notranslate">typescript</code> folder:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cp ~/proj/vscode/out/vs/languages/typescript/common/lib/lib.d.ts ~/proj/vscode/node_modules/gulp-tsb/lib/typescript"><pre class="notranslate"><code class="notranslate">cp ~/proj/vscode/out/vs/languages/typescript/common/lib/lib.d.ts ~/proj/vscode/node_modules/gulp-tsb/lib/typescript
</code></pre></div>
</li>
</ol>
<p dir="auto"><strong>Additional information:</strong></p>
<ul dir="auto">
<li>I didn't have mocha or gulp installed before trying to build Visual Studio Code</li>
<li>This is on the master branch</li>
<li>I'm able to duplicate this error every time I clone a new copy of the repository</li>
</ul>
<p dir="auto">If there is any other information you need, I'm happy to help!</p> | <p dir="auto">I <em>really</em> miss proper tabs for open files (like VS proper), and the ability to rip a tab out into its own window.</p> | 0 |
<p dir="auto">We have the following code:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="require('web-frame').setSpellCheckProvider("en-US", false, {
spellCheck: function (word) {
// the spell checking mechanism
}
});"><pre class="notranslate"><span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'web-frame'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">setSpellCheckProvider</span><span class="pl-kos">(</span><span class="pl-s">"en-US"</span><span class="pl-kos">,</span> <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-en">spellCheck</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">word</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// the spell checking mechanism</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<ul dir="auto">
<li><code class="notranslate">isn't</code> gets wrong highlighting when:
<ul dir="auto">
<li>spellCheck have been called with <code class="notranslate">isn</code> and we return <code class="notranslate">false</code></li>
<li>spellCheck have been called with <code class="notranslate">isn't</code> and we return <code class="notranslate">true</code></li>
</ul>
</li>
</ul>
<p dir="auto">The only way to get correct highlighting for <code class="notranslate">isn't</code> is to return true in both cases. However, <code class="notranslate">isn</code> is not a correct word so this is somewhat hacky. The same applies for <code class="notranslate">doesn't</code>, 'aren't<code class="notranslate">, 'didn't</code>, 'wasn't`, etc...</p>
<p dir="auto">With the current implementation it is also not possible to make an URL or email address valid because the <code class="notranslate">spellCheck</code> callback is called individually for <code class="notranslate">http</code>, <code class="notranslate">the-website</code> and <code class="notranslate">com</code>.</p>
<hr>
<p dir="auto">Solutions for these problems would be to call <code class="notranslate">spellCheck</code> callback only when a <code class="notranslate">Space</code> have been entered.</p> | <p dir="auto">We're using the <code class="notranslate">spellchecker</code> module within the <code class="notranslate">preload</code> script of a renderer process, and have followed the basic steps for setting it up as the provider via <a href="https://github.com/atom/atom-shell/blob/master/docs/api/web-frame.md"><code class="notranslate">web-frame</code></a>.</p>
<p dir="auto">However, it seems to break words at the apostrophe mark rather than process the complete contraction. I'm not sure if this is an issue with the dictionary or the affix file, but the result is undesirable:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/a97fed41a5f58749fbe92b5506981a08281d4c011bfbe825a37fb938ee1482fa/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f662e636c2e6c792f6974656d732f335a3067326232623232314b325230413431327a2f496d616765253230323031352d30312d31332532306174253230332e30312e3036253230504d2e706e67"><img src="https://camo.githubusercontent.com/a97fed41a5f58749fbe92b5506981a08281d4c011bfbe825a37fb938ee1482fa/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f662e636c2e6c792f6974656d732f335a3067326232623232314b325230413431327a2f496d616765253230323031352d30312d31332532306174253230332e30312e3036253230504d2e706e67" alt="" data-canonical-src="https://s3.amazonaws.com/f.cl.ly/items/3Z0g2b2b221K2R0A412z/Image%202015-01-13%20at%203.01.06%20PM.png" style="max-width: 100%;"></a></p>
<p dir="auto">Any ideas on what's happening?</p> | 1 |
<p dir="auto">The behavior of attributes with a value of <code class="notranslate">null</code> or <code class="notranslate">undefined</code> is inconsistent. On first render they are not present on the element at all. On subsequent renders, the attribute sticks around with an empty value.</p>
<p dir="auto">For example, <code class="notranslate"><a href={null} /></code> renders what you expect (<code class="notranslate"><a /></code>), but if the value of <code class="notranslate">href</code> changes to <code class="notranslate">null</code> after the first render, you get <code class="notranslate"><a href /></code>. In the case of <code class="notranslate">href</code> (and likely others) an empty attribute has unintended side effects.</p>
<p dir="auto">See this fiddle: <a href="http://jsfiddle.net/pGG2A/1/" rel="nofollow">http://jsfiddle.net/pGG2A/1/</a></p> | <p dir="auto">The bug occurred when:<br>
While checking component state in the extension of components react getting error.</p>
<hr>
<h2 dir="auto">Please do not remove the text below this line</h2>
<p dir="auto">DevTools version: 4.11.0-39713716aa</p>
<p dir="auto">Call stack: at store_Store.getElementAtIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22171:35)<br>
at store_Store.getElementIDAtIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22187:26)<br>
at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29770:63<br>
at List.render (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:23893:18)<br>
at Ii (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:14002:76)<br>
at Hi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13993:10)<br>
at uk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16728:86)<br>
at tk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16245:11)<br>
at qk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16237:23)<br>
at jk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16221:5)</p>
<p dir="auto">Component stack: at List (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:23588:30)<br>
at div<br>
at AutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:3111:5)<br>
at div<br>
at div<br>
at Tree_Tree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29531:47)<br>
at div<br>
at div<br>
at OwnersListContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28680:3)<br>
at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29121:3)<br>
at Components_Components (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34645:52)<br>
at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30035:5)<br>
at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30157:5)<br>
at div<br>
at div<br>
at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34264:3)<br>
at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:25356:3)<br>
at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:25963:3)<br>
at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30300:3)<br>
at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:37639:3)</p> | 0 |
<h3 dir="auto">Version</h3>
<p dir="auto">2.5.16</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://codepen.io/dengdan99/pen/qwEGmg?editors=1111" rel="nofollow">https://codepen.io/dengdan99/pen/qwEGmg?editors=1111</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">子组件(child)被销毁并重新创建了,</p>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">子组件不被销毁</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">子组件被销毁并重新挂载</p> | <h3 dir="auto">Version</h3>
<p dir="auto">2.6.10</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://github.com/MKRazz/vue-boolean-prop-issue">https://github.com/MKRazz/vue-boolean-prop-issue</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>Create a component with a boolean property, pass the value of empty string to that property.</li>
<li>Render the value, shows as empty string, rather than false</li>
</ol>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">Since the property is set to type boolean the result to should be treated as such.</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">Components which have a boolean property aren't able to assert that it is actually a boolean.</p>
<hr>
<p dir="auto">I know there is already <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="200732487" data-permission-text="Title is private" data-url="https://github.com/vuejs/vue/issues/4710" data-hovercard-type="issue" data-hovercard-url="/vuejs/vue/issues/4710/hovercard" href="https://github.com/vuejs/vue/issues/4710">#4710</a>, which was answered. And I can partially agree with that, however this case is slightly different:</p>
<ul dir="auto">
<li>Consider dynamic bindings <code class="notranslate">:prop="''"</code> instead of <code class="notranslate">prop=""</code></li>
<li>Every implementer of vue would need to explicitly coerce the input to a boolean to prevent propagating this problem.</li>
<li>I want to make sure that the data in vue isn't blindly being passed to the html element, and we need to fix this somewhere.</li>
</ul> | 0 |
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/1864" rel="nofollow">http://projects.scipy.org/scipy/ticket/1864</a> on 2013-03-11 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/josef-pkt/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/josef-pkt">@josef-pkt</a>, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rgommers/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rgommers">@rgommers</a>.</em></p>
<p dir="auto">I guess a bug, because _argcheck is not properly defined</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> stats.nct.cdf(-0.5, 10, -0.5)
nan
>>> stats.nct._cdf(-0.5, 10, -0.5)
0.50490799249967822"><pre class="notranslate"><code class="notranslate">>>> stats.nct.cdf(-0.5, 10, -0.5)
nan
>>> stats.nct._cdf(-0.5, 10, -0.5)
0.50490799249967822
</code></pre></div>
<p dir="auto">same value as in R</p>
<p dir="auto">(needed for power of t-test)</p> | <p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/1883" rel="nofollow">http://projects.scipy.org/scipy/ticket/1883</a> on 2013-03-29 by trac user Sytse, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rgommers/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rgommers">@rgommers</a>.</em></p>
<p dir="auto">The non-central t-distribution in scipy.stats.distributions accepts a non-centrality parameter with positive values only.</p>
<p dir="auto">From Wikipedia (<a href="http://en.wikipedia.org/wiki/Noncentral_t-distribution" rel="nofollow">http://en.wikipedia.org/wiki/Noncentral_t-distribution</a>):<br>
"If Z is a normally distributed random variable with unit variance and zero mean, and V is a Chi-squared distributed random variable with ν degrees of freedom that is statistically independent of Z, then T=(Z+μ)/sqrt(V/ν) is a noncentral t-distributed random variable with ν degrees of freedom and noncentrality parameter μ. Note that the noncentrality parameter may be negative."</p>
<p dir="auto">Adding a function:[[BR]]</p>
<p dir="auto">def _argcheck(self, df, nc):[[BR]]<br>
return (df > 0)[[BR]]</p>
<p dir="auto">to the class class nct_gen would completely solve the problem.</p> | 1 |
<p dir="auto">With a file <code class="notranslate">script.js</code> containing this input: <code class="notranslate">class Foo extends Bar {}</code></p>
<p dir="auto">As a baseline, the following command:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="babel --plugins transform-runtime,transform-es2015-classes script.js"><pre class="notranslate"><code class="notranslate">babel --plugins transform-runtime,transform-es2015-classes script.js
</code></pre></div>
<p dir="auto">Yields the following output, which as noted in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="114493374" data-permission-text="Title is private" data-url="https://github.com/babel/babel/issues/2726" data-hovercard-type="issue" data-hovercard-url="/babel/babel/issues/2726/hovercard" href="https://github.com/babel/babel/issues/2726">#2726</a> imports the core-js helpers but inlines the babel helpers:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import _Object$setPrototypeOf from "babel-runtime/core-js/object/set-prototype-of";
import _Object$create from "babel-runtime/core-js/object/create";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = _Object$create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) _Object$setPrototypeOf ? _Object$setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
let Foo = (function (_Bar) {
_inherits(Foo, _Bar);
function Foo() {
_classCallCheck(this, Foo);
return _possibleConstructorReturn(this, Object.getPrototypeOf(Foo).apply(this, arguments));
}
return Foo;
})(Bar);"><pre class="notranslate"><code class="notranslate">import _Object$setPrototypeOf from "babel-runtime/core-js/object/set-prototype-of";
import _Object$create from "babel-runtime/core-js/object/create";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = _Object$create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) _Object$setPrototypeOf ? _Object$setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
let Foo = (function (_Bar) {
_inherits(Foo, _Bar);
function Foo() {
_classCallCheck(this, Foo);
return _possibleConstructorReturn(this, Object.getPrototypeOf(Foo).apply(this, arguments));
}
return Foo;
})(Bar);
</code></pre></div>
<p dir="auto">However, strangely, adding the <code class="notranslate">typeof-symbol</code> transform, as follows:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="babel --plugins transform-runtime,transform-es2015-classes,transform-es2015-typeof-symbol script.js"><pre class="notranslate"><code class="notranslate">babel --plugins transform-runtime,transform-es2015-classes,transform-es2015-typeof-symbol script.js
</code></pre></div>
<p dir="auto">Produces this output, which is identical to the output when you specify just <code class="notranslate">--plugins transform-es2015-classes</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
let Foo = (function (_Bar) {
_inherits(Foo, _Bar);
function Foo() {
_classCallCheck(this, Foo);
return _possibleConstructorReturn(this, Object.getPrototypeOf(Foo).apply(this, arguments));
}
return Foo;
})(Bar);"><pre class="notranslate"><code class="notranslate">function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
let Foo = (function (_Bar) {
_inherits(Foo, _Bar);
function Foo() {
_classCallCheck(this, Foo);
return _possibleConstructorReturn(this, Object.getPrototypeOf(Foo).apply(this, arguments));
}
return Foo;
})(Bar);
</code></pre></div>
<p dir="auto">It's almost as if including the <code class="notranslate">transform-es2015-typeof-symbol</code> plugin somehow effectively disables the <code class="notranslate">transform-runtime</code> plugin.</p> | <p dir="auto">Reproduction: <a href="https://github.com/yyx990803/babel-6-runtime-repro">https://github.com/yyx990803/babel-6-runtime-repro</a></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var babel = require('babel-core')
var code = babel.transform('class Test {}', {
plugins: [
'transform-runtime',
'transform-es2015-classes'
]
}).code
console.log(code)"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">babel</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'babel-core'</span><span class="pl-kos">)</span>
<span class="pl-k">var</span> <span class="pl-s1">code</span> <span class="pl-c1">=</span> <span class="pl-s1">babel</span><span class="pl-kos">.</span><span class="pl-en">transform</span><span class="pl-kos">(</span><span class="pl-s">'class Test {}'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">plugins</span>: <span class="pl-kos">[</span>
<span class="pl-s">'transform-runtime'</span><span class="pl-kos">,</span>
<span class="pl-s">'transform-es2015-classes'</span>
<span class="pl-kos">]</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">code</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">code</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">Expected the <code class="notranslate">_classCallCheck</code> to be using the runtime version, but it's still inlined:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
let Test = function Test() {
_classCallCheck(this, Test);
};"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">_classCallCheck</span><span class="pl-kos">(</span><span class="pl-s1">instance</span><span class="pl-kos">,</span> <span class="pl-v">Constructor</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">instance</span> <span class="pl-k">instanceof</span> <span class="pl-v">Constructor</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-v">TypeError</span><span class="pl-kos">(</span><span class="pl-s">"Cannot call a class as a function"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span>
<span class="pl-k">let</span> <span class="pl-v">Test</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-v">Test</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">_classCallCheck</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-v">Test</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> | 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">The sample C++ program for libtorch results in an incorrect Makefile because the path to libculibos.a is hardcoded somewhere as <code class="notranslate">/usr/local/cuda/lib64/libculibos.a</code>.<br>
On Arch Linux, the default install directory for CUDA is <code class="notranslate">/opt/cuda</code>.<br>
<strong>This is handled correctly for other linked libraries.</strong></p>
<h2 dir="auto">Workaround</h2>
<p dir="auto">After running CMake, modify <code class="notranslate">CMakeFiles/(project).dir/build.make</code> and modify the line:<br>
(project): /usr/local/cuda/lib64/libculibos.a<br>
to:<br>
(project): /opt/cuda/lib64/libculibos.a</p>
<p dir="auto">This fixes the problem for me with CUDA 10.</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>Be on Arch Linux with libtorch downloaded from the official download link.</li>
<li>Try to follow the [minimal C++ example]: <a href="https://pytorch.org/cppdocs/installing.html" rel="nofollow">https://pytorch.org/cppdocs/installing.html</a></li>
<li>You will get an error when running <code class="notranslate">make</code>, which can be fixed with the temporary workaround shown above.</li>
</ol> | <p dir="auto">hi all<br>
Follow the tutorial(Loading a PyTorch Model in C++)<br>
1.cmake<br>
-- Caffe2: CUDA detected: 10.0<br>
-- Caffe2: CUDA nvcc is: /usr/local/cuda-10.0/bin/nvcc<br>
-- Caffe2: CUDA toolkit directory: /usr/local/cuda-10.0<br>
-- Caffe2: Header version is: 10.0<br>
-- Found cuDNN: v7.4.2 (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libcudnn.so)<br>
-- Automatic GPU detection failed. Building for common architectures.<br>
-- Autodetected CUDA architecture(s): 3.0;3.5;5.0;5.2;6.0;6.1;7.0;7.0+PTX<br>
-- Added CUDA NVCC flags for: -gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-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;-gencode;arch=compute_70,code=compute_70<br>
-- Configuring done<br>
-- Generating done<br>
2. make<br>
make[2]: *** No rule to make target '/usr/local/cuda/lib64/libculibos.a', needed by 'example-app'. Stop.<br>
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/example-app.dir/all' failed<br>
make[1]: *** [CMakeFiles/example-app.dir/all] Error 2<br>
Makefile:83: recipe for target 'all' failed<br>
make: *** [all] Error 2</p>
<p dir="auto">please ....</p> | 1 |
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1091" rel="nofollow">http://projects.scipy.org/numpy/ticket/1091</a> on 2009-04-22 by trac user mesmith, assigned to unknown.</em></p>
<p dir="auto">I want to re-open ticket <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="7725119" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/1035" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/1035/hovercard" href="https://github.com/numpy/numpy/issues/1035">#1035</a>. Here is the information that I submitted.</p>
<p dir="auto">I am re-opening this issue because the crackfortran patch does not appear to be redundant to me. The patch allows for setting the python callback argument as optional. I use it by adding the follow f2py declarations to the FORTRAN file where the python callback is called. [[BR]]</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="c These lines are here to get the correct settings into flip.pyf
cf2py intent(callback, hide) py_errmsg
cf2py optional py_errmsg
cf2py external py_errmsg
cf2py use gp_errmsg__user__routines"><pre class="notranslate"><code class="notranslate">c These lines are here to get the correct settings into flip.pyf
cf2py intent(callback, hide) py_errmsg
cf2py optional py_errmsg
cf2py external py_errmsg
cf2py use gp_errmsg__user__routines
</code></pre></div>
<p dir="auto">[[BR]]<br>
where py_errmsg is a python callback function.</p>
<p dir="auto">Without the patch I get an error message from python when I attempt to execute the FORTRAN subroutine containing the python callback. [[BR]]</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: flip.gp_setdef() takes at least 1 argument (0 given)"><pre class="notranslate"><code class="notranslate">TypeError: flip.gp_setdef() takes at least 1 argument (0 given)
</code></pre></div>
<p dir="auto">[[BR]]<br>
where gp_setdef is the FORTRAN subroutine called from python and containing the cf2py lines above.</p>
<p dir="auto">I have tried numpy version 1.3 and the patch is still required. If there is another way to accomplish what I am trying to do without the patch--and without requiring the python callback function as an argument--I would like to know how to do it. The user base for our software is growing and the necessity of applying the patch for each installation is becoming unmanagable.</p>
<p dir="auto">I have updated the attached crackfortran.patch file for numpy 1.3.</p>
<p dir="auto">Thanks</p> | <p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/437" rel="nofollow">http://projects.scipy.org/numpy/ticket/437</a> on 2007-01-29 by trac user mesmith, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pearu/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pearu">@pearu</a>.</em></p>
<p dir="auto">I have a couple of changes I have made to f2py related to call backs that I would like to have included. I have been using these changes for over a year with no adverse side affects. Two attached patch files have the changes.</p> | 1 |
<p dir="auto">I use Glide to view thumbnails of pictures and videos like 3.5GB in the gallery. Glide crashes while uploading high size video image after 4.11.0 update.</p>
<p dir="auto"><strong>Glide Version</strong>: 4.11.0, 4.12.0</p>
<p dir="auto"><strong>Integration libraries</strong>: 'com.squareup.okhttp3:okhttp:3.11.0'</p>
<p dir="auto"><strong>Device/Android Version</strong>: Huawei P30 Pro</p>
<p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>: Glide crashes when I want to view thumbnails of large videos in the gallery.</p>
<p dir="auto"><strong>Glide load line / <code class="notranslate">GlideModule</code> (if any) / list Adapter code (if any)</strong>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" GlideApp.with(this).load(media.getPath())
.diskCacheStrategy(DiskCacheStrategy.NONE)
.transition(DrawableTransitionOptions.withCrossFade())
.into(thumbnail);"><pre class="notranslate"><code class="notranslate"> GlideApp.with(this).load(media.getPath())
.diskCacheStrategy(DiskCacheStrategy.NONE)
.transition(DrawableTransitionOptions.withCrossFade())
.into(thumbnail);
</code></pre></div>
<p dir="auto"><strong>Layout XML</strong>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="2dp"
android:layout_marginRight="2dp"
android:layout_marginBottom="2dp"
android:animateLayoutChanges="true">
<com.chat.android.util.view.SquareImageView
android:id="@+id/mediapicker_image_item_thumbnail"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:scaleType="centerCrop" />"><pre class="notranslate"><code class="notranslate"><?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="2dp"
android:layout_marginRight="2dp"
android:layout_marginBottom="2dp"
android:animateLayoutChanges="true">
<com.chat.android.util.view.SquareImageView
android:id="@+id/mediapicker_image_item_thumbnail"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:scaleType="centerCrop" />
</code></pre></div>
<p dir="auto"><strong>Stack trace / LogCat</strong>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #33 pc 0000000000325d28 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.resource.bitmap.ParcelFileDescriptorBitmapDecoder.decode+4)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #36 pc 0000000000325d48 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.resource.bitmap.ParcelFileDescriptorBitmapDecoder.decode+4)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #39 pc 0000000000314dca [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodePath.decodeResourceWithList+66)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #42 pc 0000000000314d48 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodePath.decodeResource+36)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #45 pc 0000000000314cf4 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodePath.decode)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #48 pc 000000000031768a [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList+66)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #51 pc 000000000031760a [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.LoadPath.load+38)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #54 pc 0000000000314404 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.runLoadPath+52)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #57 pc 00000000003141f4 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.decodeFromFetcher+20)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #60 pc 000000000031416e [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.decodeFromData+22)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #63 pc 00000000003145d0 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData+124)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #66 pc 00000000003148d6 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady+98)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #69 pc 00000000003185a2 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator.onDataReadyInternal+86)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #72 pc 00000000003181e4 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator$1.onDataReady+28)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #75 pc 0000000000311ed0 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.data.LocalUriFetcher.loadData+20)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #78 pc 0000000000318626 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator.startNextLoad+30)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #81 pc 0000000000318350 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator.startNext+200)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #84 pc 0000000000314b7e [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.runGenerators+46)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #87 pc 000000000031460a [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData+182)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #90 pc 00000000003148d6 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady+98)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #93 pc 00000000003185a2 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator.onDataReadyInternal+86)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #96 pc 00000000003181e4 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator$1.onDataReady+28)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #99 pc 0000000000311ed0 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.data.LocalUriFetcher.loadData+20)
2021-03-09 08:20:16.053 14897-14897/? A/DEBUG: #102 pc 0000000000318626 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator.startNextLoad+30)
2021-03-09 08:20:16.053 14897-14897/? A/DEBUG: #105 pc 0000000000318350 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator.startNext+200)
2021-03-09 08:20:16.053 14897-14897/? A/DEBUG: #108 pc 0000000000314b7e [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.runGenerators+46)
2021-03-09 08:20:16.053 14897-14897/? A/DEBUG: #111 pc 0000000000314c70 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.runWrapped+132)
2021-03-09 08:20:16.053 14897-14897/? A/DEBUG: #114 pc 0000000000314a6e [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.run+54)
2021-03-09 08:20:16.053 14897-14897/? A/DEBUG: #126 pc 000000000031c5ca [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run+62)
2021-03-09 08:22:08.808 15063-15063/? A/DEBUG: pid: 14929, tid: 15058, name: glide-source-th >>> com.chat.android <<<
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #15 pc 00000000003259e6 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.resource.bitmap.ImageReader$ParcelFileDescriptorImageReader.decodeBitmap+22)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #18 pc 0000000000323e02 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.resource.bitmap.Downsampler.decodeStream+50)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #21 pc 0000000000324292 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.resource.bitmap.Downsampler.getDimensions+6)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #24 pc 0000000000323a0c [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.resource.bitmap.Downsampler.decodeFromWrappedStreams+28)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #27 pc 000000000032413e [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.resource.bitmap.Downsampler.decode+222)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #30 pc 0000000000324046 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.resource.bitmap.Downsampler.decode+30)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #33 pc 0000000000325d28 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.resource.bitmap.ParcelFileDescriptorBitmapDecoder.decode+4)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #36 pc 0000000000325d48 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.resource.bitmap.ParcelFileDescriptorBitmapDecoder.decode+4)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #39 pc 0000000000314dca [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodePath.decodeResourceWithList+66)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #42 pc 0000000000314d48 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodePath.decodeResource+36)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #45 pc 0000000000314cf4 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodePath.decode)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #48 pc 000000000031768a [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList+66)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #51 pc 000000000031760a [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.LoadPath.load+38)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #54 pc 0000000000314404 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.runLoadPath+52)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #57 pc 00000000003141f4 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.decodeFromFetcher+20)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #60 pc 000000000031416e [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.decodeFromData+22)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #63 pc 00000000003145d0 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData+124)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #66 pc 00000000003148d6 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady+98)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #69 pc 00000000003185a2 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator.onDataReadyInternal+86)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #72 pc 00000000003181e4 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator$1.onDataReady+28)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #75 pc 0000000000311ed0 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.data.LocalUriFetcher.loadData+20)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #78 pc 0000000000318626 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator.startNextLoad+30)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #81 pc 0000000000318350 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator.startNext+200)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #84 pc 0000000000314b7e [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.runGenerators+46)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #87 pc 000000000031460a [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData+182)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #90 pc 00000000003148d6 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady+98)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #93 pc 00000000003185a2 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator.onDataReadyInternal+86)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #96 pc 00000000003181e4 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator$1.onDataReady+28)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #99 pc 0000000000311ed0 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.data.LocalUriFetcher.loadData+20)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #102 pc 0000000000318626 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator.startNextLoad+30)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #105 pc 0000000000318350 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator.startNext+200)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #108 pc 0000000000314b7e [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.runGenerators+46)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #111 pc 0000000000314c70 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.runWrapped+132)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #114 pc 0000000000314a6e [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.run+54)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #126 pc 000000000031c5ca [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run+62)
"><pre lang="2021-03-09" class="notranslate"><code class="notranslate">2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #33 pc 0000000000325d28 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.resource.bitmap.ParcelFileDescriptorBitmapDecoder.decode+4)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #36 pc 0000000000325d48 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.resource.bitmap.ParcelFileDescriptorBitmapDecoder.decode+4)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #39 pc 0000000000314dca [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodePath.decodeResourceWithList+66)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #42 pc 0000000000314d48 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodePath.decodeResource+36)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #45 pc 0000000000314cf4 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodePath.decode)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #48 pc 000000000031768a [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList+66)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #51 pc 000000000031760a [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.LoadPath.load+38)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #54 pc 0000000000314404 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.runLoadPath+52)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #57 pc 00000000003141f4 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.decodeFromFetcher+20)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #60 pc 000000000031416e [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.decodeFromData+22)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #63 pc 00000000003145d0 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData+124)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #66 pc 00000000003148d6 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady+98)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #69 pc 00000000003185a2 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator.onDataReadyInternal+86)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #72 pc 00000000003181e4 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator$1.onDataReady+28)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #75 pc 0000000000311ed0 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.data.LocalUriFetcher.loadData+20)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #78 pc 0000000000318626 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator.startNextLoad+30)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #81 pc 0000000000318350 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator.startNext+200)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #84 pc 0000000000314b7e [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.runGenerators+46)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #87 pc 000000000031460a [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData+182)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #90 pc 00000000003148d6 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady+98)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #93 pc 00000000003185a2 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator.onDataReadyInternal+86)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #96 pc 00000000003181e4 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator$1.onDataReady+28)
2021-03-09 08:20:16.052 14897-14897/? A/DEBUG: #99 pc 0000000000311ed0 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.data.LocalUriFetcher.loadData+20)
2021-03-09 08:20:16.053 14897-14897/? A/DEBUG: #102 pc 0000000000318626 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator.startNextLoad+30)
2021-03-09 08:20:16.053 14897-14897/? A/DEBUG: #105 pc 0000000000318350 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator.startNext+200)
2021-03-09 08:20:16.053 14897-14897/? A/DEBUG: #108 pc 0000000000314b7e [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.runGenerators+46)
2021-03-09 08:20:16.053 14897-14897/? A/DEBUG: #111 pc 0000000000314c70 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.runWrapped+132)
2021-03-09 08:20:16.053 14897-14897/? A/DEBUG: #114 pc 0000000000314a6e [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.run+54)
2021-03-09 08:20:16.053 14897-14897/? A/DEBUG: #126 pc 000000000031c5ca [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run+62)
2021-03-09 08:22:08.808 15063-15063/? A/DEBUG: pid: 14929, tid: 15058, name: glide-source-th >>> com.chat.android <<<
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #15 pc 00000000003259e6 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.resource.bitmap.ImageReader$ParcelFileDescriptorImageReader.decodeBitmap+22)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #18 pc 0000000000323e02 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.resource.bitmap.Downsampler.decodeStream+50)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #21 pc 0000000000324292 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.resource.bitmap.Downsampler.getDimensions+6)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #24 pc 0000000000323a0c [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.resource.bitmap.Downsampler.decodeFromWrappedStreams+28)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #27 pc 000000000032413e [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.resource.bitmap.Downsampler.decode+222)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #30 pc 0000000000324046 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.resource.bitmap.Downsampler.decode+30)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #33 pc 0000000000325d28 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.resource.bitmap.ParcelFileDescriptorBitmapDecoder.decode+4)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #36 pc 0000000000325d48 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.resource.bitmap.ParcelFileDescriptorBitmapDecoder.decode+4)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #39 pc 0000000000314dca [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodePath.decodeResourceWithList+66)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #42 pc 0000000000314d48 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodePath.decodeResource+36)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #45 pc 0000000000314cf4 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodePath.decode)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #48 pc 000000000031768a [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList+66)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #51 pc 000000000031760a [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.LoadPath.load+38)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #54 pc 0000000000314404 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.runLoadPath+52)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #57 pc 00000000003141f4 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.decodeFromFetcher+20)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #60 pc 000000000031416e [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.decodeFromData+22)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #63 pc 00000000003145d0 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData+124)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #66 pc 00000000003148d6 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady+98)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #69 pc 00000000003185a2 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator.onDataReadyInternal+86)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #72 pc 00000000003181e4 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator$1.onDataReady+28)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #75 pc 0000000000311ed0 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.data.LocalUriFetcher.loadData+20)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #78 pc 0000000000318626 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator.startNextLoad+30)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #81 pc 0000000000318350 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator.startNext+200)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #84 pc 0000000000314b7e [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.runGenerators+46)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #87 pc 000000000031460a [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData+182)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #90 pc 00000000003148d6 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady+98)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #93 pc 00000000003185a2 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator.onDataReadyInternal+86)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #96 pc 00000000003181e4 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator$1.onDataReady+28)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #99 pc 0000000000311ed0 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.data.LocalUriFetcher.loadData+20)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #102 pc 0000000000318626 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator.startNextLoad+30)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #105 pc 0000000000318350 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.SourceGenerator.startNext+200)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #108 pc 0000000000314b7e [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.runGenerators+46)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #111 pc 0000000000314c70 [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.runWrapped+132)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #114 pc 0000000000314a6e [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.DecodeJob.run+54)
2021-03-09 08:22:08.937 15063-15063/? A/DEBUG: #126 pc 000000000031c5ca [anon:dalvik-classes.dex extracted in memory from /data/app/com.chat.android-FRmNaXcbtRtm3i_s4Ex6iQ==/base.apk] (com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run+62)
</code></pre></div> | <p dir="auto"><strong>Glide Version</strong>: 4.11.0</p>
<p dir="auto"><strong>Integration libraries</strong>: Default installation</p>
<p dir="auto"><strong>Device/Android Version</strong>: Huawei p30 Android 10</p>
<p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>:<br>
Closes (crashes) the activity when try to load a big sized video file into an imageview. Running well with previous versions (4.10.0) Tested with 2Gb video file.</p>
<p dir="auto"><strong>Glide load line / <code class="notranslate">GlideModule</code> (if any) / list Adapter code (if any)</strong>:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide.with(mActivity)
.load(video_data.getContentUri())
.apply(options)
.transition(DrawableTransitionOptions.withCrossFade())
.centerCrop()
.into(holder.image_view_picture);"><pre class="notranslate"><span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-s1">mActivity</span>)
.<span class="pl-en">load</span>(<span class="pl-s1">video_data</span>.<span class="pl-en">getContentUri</span>())
.<span class="pl-en">apply</span>(<span class="pl-s1">options</span>)
.<span class="pl-en">transition</span>(<span class="pl-smi">DrawableTransitionOptions</span>.<span class="pl-en">withCrossFade</span>())
.<span class="pl-en">centerCrop</span>()
.<span class="pl-en">into</span>(<span class="pl-s1">holder</span>.<span class="pl-s1">image_view_picture</span>);</pre></div>
<p dir="auto"><strong>Stack trace / LogCat</strong>:</p>
<div class="highlight highlight-source-ruby notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="2020-03-30 16:15:43.677 1248-1364/cast.to.big A/libc: FORTIFY: read: count 18446744071704558641 > SSIZE_MAX
2020-03-30 16:15:43.677 1248-1364/cast.to.big A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 1364 (glide-source-th), pid 1248 (cast.to.big)"><pre class="notranslate"><span class="pl-c1">2020</span>-<span class="pl-c1">03</span>-<span class="pl-c1">30</span> <span class="pl-c1">16</span><span class="pl-pds">:15</span><span class="pl-pds">:43</span><span class="pl-kos">.</span><span class="pl-c1">677</span> <span class="pl-c1">1248</span>-<span class="pl-c1">1364</span>/<span class="pl-en">cast</span><span class="pl-kos">.</span><span class="pl-en">to</span><span class="pl-kos">.</span><span class="pl-en">big</span> <span class="pl-c1">A</span>/<span class="pl-en">libc</span>: <span class="pl-pds">FORTIFY</span>: <span class="pl-pds">read</span>: <span class="pl-en">count</span> <span class="pl-c1">18446744071704558641</span> > <span class="pl-c1">SSIZE_MAX</span>
<span class="pl-c1">2020</span>-<span class="pl-c1">03</span>-<span class="pl-c1">30</span> <span class="pl-c1">16</span><span class="pl-pds">:15</span><span class="pl-pds">:43</span><span class="pl-kos">.</span><span class="pl-c1">677</span> <span class="pl-c1">1248</span>-<span class="pl-c1">1364</span>/<span class="pl-en">cast</span><span class="pl-kos">.</span><span class="pl-en">to</span><span class="pl-kos">.</span><span class="pl-en">big</span> <span class="pl-c1">A</span>/<span class="pl-en">libc</span>: <span class="pl-v">Fatal</span> <span class="pl-en">signal</span> <span class="pl-c1">6</span> <span class="pl-kos">(</span><span class="pl-c1">SIGABRT</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-en">code</span> -<span class="pl-c1">1</span> <span class="pl-kos">(</span><span class="pl-c1">SI_QUEUE</span><span class="pl-kos">)</span> <span class="pl-k">in</span> <span class="pl-en">tid</span> <span class="pl-c1">1364</span> <span class="pl-kos">(</span><span class="pl-en">glide</span>-<span class="pl-en">source</span>-<span class="pl-en">th</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-en">pid</span> <span class="pl-c1">1248</span> <span class="pl-kos">(</span><span class="pl-en">cast</span><span class="pl-kos">.</span><span class="pl-en">to</span><span class="pl-kos">.</span><span class="pl-en">big</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">It runs great if we use 4.10.0 Glide version instance of 4.11.0</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 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 a feature request that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Duplicates</h3>
<p dir="auto">First of all, these duplicates are questions; not discussions so this issue can be open yet.<br>
<a href="https://github.com/electron/electron/issues/10861" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/10861/hovercard">#10861</a></p>
<p dir="auto">Hello guys, so, in the past months I've been using Electron and I have to say that it's a really good framework. But I've found the great issue; app size.</p>
<p dir="auto">Electron apps are way TOO BIG, more than they shouldn't. I know that this is because of the Chromium engine who needs to be packaged with Electron.</p>
<p dir="auto">My question would be...<br>
<strong>Why not package Chromium as a shared resource (per system or per user)</strong><br>
This could work like Node Modules do; every Electron version has a chromium engine. So if for example, Discord has electron 7 and vscode does too we are reducing app size.</p>
<p dir="auto">This could be done as an optional electron-builder/packager/forge option.</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">12.0.1</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">Windows</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">10</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"><em>No response</em></p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Moving window, should not trigger a resize event</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">Move window triggers resize event</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto"><em>No response</em></p>
<p dir="auto"><a href="https://github.com/HaulinOats/electron-event-overlap">Here's</a> a repo demonstrating this, or see the trimmed down example below.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const {app, BrowserWindow} = require('electron')
function createWindow () {
const mainWindow = new BrowserWindow({
width: 800,
height: 600
});
mainWindow.loadURL('https://google.com');
mainWindow.on('resize', ()=>{
console.log('resize event: current size: ' + JSON.stringify(mainWindow.getSize()));
});
mainWindow.on('move', ()=>{
// console.log('move event');
});
mainWindow.on("moved", () => {
console.log("Finished moving: current size: " + JSON.stringify(mainWindow.getSize()));
})
}
app.on('ready', createWindow)
app.on('window-all-closed', function () {
if (process.platform !== 'darwin') app.quit()
})
app.on('activate', function () {
if (mainWindow === null) createWindow()
})"><pre class="notranslate"><code class="notranslate">const {app, BrowserWindow} = require('electron')
function createWindow () {
const mainWindow = new BrowserWindow({
width: 800,
height: 600
});
mainWindow.loadURL('https://google.com');
mainWindow.on('resize', ()=>{
console.log('resize event: current size: ' + JSON.stringify(mainWindow.getSize()));
});
mainWindow.on('move', ()=>{
// console.log('move event');
});
mainWindow.on("moved", () => {
console.log("Finished moving: current size: " + JSON.stringify(mainWindow.getSize()));
})
}
app.on('ready', createWindow)
app.on('window-all-closed', function () {
if (process.platform !== 'darwin') app.quit()
})
app.on('activate', function () {
if (mainWindow === null) createWindow()
})
</code></pre></div>
<p dir="auto">Start the app and move the window around. You'll see some output like this:</p>
<p dir="auto">resize event: current size: [801,601]<br>
Finished moving: current size: [801,601]<br>
Finished moving: current size: [801,601]<br>
Finished moving: current size: [801,601]<br>
Finished moving: current size: [801,601]<br>
Finished moving: current size: [801,601]<br>
resize event: current size: [801,600]<br>
Finished moving: current size: [801,600]<br>
resize event: current size: [800,600]<br>
Finished moving: current size: [800,600]<br>
resize event: current size: [801,601]<br>
Finished moving: current size: [801,601]</p>
<p dir="auto">This is a continuation of <a href="https://github.com/electron/electron/issues/18978" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/18978/hovercard">this</a> closed issue. There, erickzhao says:</p>
<blockquote>
<p dir="auto">It seems like the resize event is triggered because the Chromium internals actually change the window size by 0 or 1 every time you move the window.</p>
</blockquote>
<blockquote>
<p dir="auto">For instance, a 800x600 window might subtly resize to 800x601 or 801x600 during moving. Not sure what the best solution to this would be.</p>
</blockquote> | 0 |
<p dir="auto"><strong>Feature</strong></p>
<p dir="auto">In Angular 1 it was possible to store the intermediate result of a filtered ngFor. Since v1.3 beta17 it's even easier by using an alias expression. See the docs here: <a href="https://code.angularjs.org/1.3.0-beta.17/docs/api/ng/directive/ngRepeat" rel="nofollow">https://code.angularjs.org/1.3.0-beta.17/docs/api/ng/directive/ngRepeat</a>. But in Angular 2 this feature seems to be missing.</p>
<p dir="auto"><strong>Use case as an example</strong></p>
<p dir="auto">My (example) use case: I'm using a pipe to filter a list of items depending on a search text. When the result list is empty, I want to be able to notify the user about this empty state, e.g. with a text "No search results." or similar. In addition, it would be nice to show the number of found search results at any time. In Angular 1, I was able to save the intermediate filter result in a variable and work with its length property to achieve this.</p>
<p dir="auto">Will this feature be coming in Angualr 2 or should we better not use a Pipe in this case? Although I think a Pipe is the nicest solution here.</p> | <p dir="auto">Particularly for use cases where piped output is bound to in many places within a template, it's beneficial to have a single piped expression. For example, this observable that's piped into a template:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<div>
<ul>
<div *ng-if="!(people | async)">
Loading people
</div>
<div *ng-if="people | async">
<li *ng-for="person of people | async">
{{person.name}}
</li>
</div>
</ul>
</div>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">ul</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">*ng-if</span>="<span class="pl-s">!(people | async)</span>"<span class="pl-kos">></span>
Loading people
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">*ng-if</span>="<span class="pl-s">people | async</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span> <span class="pl-c1">*ng-for</span>="<span class="pl-s">person of people | async</span>"<span class="pl-kos">></span>
{{person.name}}
<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">ul</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div>
<p dir="auto">This would cause three subscriptions to be created for the people observable, which may re-do the work of getting the observable value if the observable is not a multicast observable. This is also problematic if inside of the ng-if that evaluates to true when the observable has emitted a value, there are expressions that assume people | async is not null, such as: <code class="notranslate">{{people | async.length }}</code>. This would raise an exception since the first value returned from the async pipe would be <code class="notranslate">null</code>.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vsavkin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vsavkin">@vsavkin</a> and I put together a prototype directive, which I'm currently using in the <a href="https://github.com/angular/angular/blob/master/modules/examples/src/http/http_comp.ts"><code class="notranslate">http</code> example</a> that supports assigning the result of a piped expression to a local variable within the template:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<div *assign-local="#unwrappedPeople to people | async">
<ul *ng-if="unwrappedPeople" class="people">
<li *ng-for="#person of unwrappedPeople">
hello, {{person.name}}
</li>
</ul>
<span *ng-if="!unwrappedPeople">
Fetching people...
</span>
</div>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">*assign-local</span>="<span class="pl-s">#unwrappedPeople to people | async</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">ul</span> <span class="pl-c1">*ng-if</span>="<span class="pl-s">unwrappedPeople</span>" <span class="pl-c1">class</span>="<span class="pl-s">people</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span> <span class="pl-c1">*ng-for</span>="<span class="pl-s">#person of unwrappedPeople</span>"<span class="pl-kos">></span>
hello, {{person.name}}
<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">ul</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">span</span> <span class="pl-c1">*ng-if</span>="<span class="pl-s">!unwrappedPeople</span>"<span class="pl-kos">></span>
Fetching people...
<span class="pl-kos"></</span><span class="pl-ent">span</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div>
<p dir="auto">This creates a single subscription and simplifies the rest of the template. Here is the implementation: <a href="https://github.com/angular/angular/blob/master/modules/examples/src/http/assign_local_directive.ts">https://github.com/angular/angular/blob/master/modules/examples/src/http/assign_local_directive.ts</a></p>
<p dir="auto">I'd like to add this directive as a first-class directive in the angular2 module.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vsavkin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vsavkin">@vsavkin</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mhevery/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mhevery">@mhevery</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tbosch/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tbosch">@tbosch</a> do you have any feedback on the implementation?</p> | 1 |
<ul dir="auto">
<li>have a single JavaScript file with contents <code class="notranslate">do</code></li>
<li>trigger IntelliSense once, dismiss with escape</li>
<li>take a heap snapshot</li>
<li>repeat the IntelliSense/dismiss cycle ~10 times</li>
<li>take another heap snapshot, mem usage grew by 1,5MB</li>
</ul> | <p dir="auto">Hi team,</p>
<p dir="auto">In the early days of VSCode, there was a feature that I adored that allowed me to open the compiled output of my TypeScript files. By simply right clicking the source <code class="notranslate">.ts</code> file and clicking <code class="notranslate">Open derived output</code> I could view my <code class="notranslate">.js</code> output.</p>
<p dir="auto">This feature was pulled due to not being able to find the compiled output if it was in a different directory.<br>
There are many workarounds for this, but none as effective as this feature. I would love to see this re-added.</p>
<p dir="auto">Thanks</p> | 0 |
<p dir="auto">I know this issues has been raised, but none of the purposed solutions have worked for me so far. I'm working in Anaconda on Windows 10, and after finally getting pytorch installed successfully, I'm getting this when importing:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(base) C:\Users\conner>python
Python 3.6.0 |Anaconda custom (64-bit)| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\conner\Anaconda3\lib\site-packages\torch\__init__.py", line 76, in <module>
from torch._C import *
ImportError: DLL load failed: The specified module could not be found."><pre class="notranslate"><code class="notranslate">(base) C:\Users\conner>python
Python 3.6.0 |Anaconda custom (64-bit)| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\conner\Anaconda3\lib\site-packages\torch\__init__.py", line 76, in <module>
from torch._C import *
ImportError: DLL load failed: The specified module could not be found.
</code></pre></div>
<p dir="auto">I've tried cd .. to another directory and reopening python there, without luck. I also tried abridging the _C file name as recommended in another thread, again to no avail. Here's what's in the package directory:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(base) C:\Users\conner\Anaconda3\Lib\site-packages\torch>dir
Volume in drive C has no label.
Volume Serial Number is F8D6-539E
Directory of C:\Users\conner\Anaconda3\Lib\site-packages\torch
05/05/2018 07:52 PM <DIR> .
05/05/2018 07:52 PM <DIR> ..
05/05/2018 07:29 PM <DIR> autograd
05/05/2018 07:29 PM <DIR> backends
05/05/2018 07:29 PM <DIR> contrib
05/05/2018 07:29 PM <DIR> cuda
05/05/2018 07:29 PM <DIR> distributed
02/24/2018 05:49 AM 6,208 distributions.py
05/05/2018 07:29 PM <DIR> for_onnx
02/24/2018 05:49 AM 9,714 functional.py
05/05/2018 07:29 PM <DIR> jit
05/05/2018 07:29 PM <DIR> legacy
05/05/2018 07:29 PM <DIR> lib
05/05/2018 07:29 PM <DIR> multiprocessing
05/05/2018 07:29 PM <DIR> nn
05/05/2018 07:29 PM <DIR> onnx
05/05/2018 07:29 PM <DIR> optim
11/09/2017 07:38 PM 4,130 random.py
02/24/2018 05:49 AM 16,759 serialization.py
05/05/2018 07:29 PM <DIR> sparse
02/24/2018 05:49 AM 4,016 storage.py
02/24/2018 05:49 AM 14,497 tensor.py
05/05/2018 07:29 PM <DIR> utils
02/24/2018 01:46 PM 58 version.py
02/24/2018 01:52 PM 22,208,512 _C.pyd
02/24/2018 01:52 PM 10,240 _nvrtc.cp36-win_amd64.pyd
10/27/2017 09:31 PM 3,044 _six.py
09/17/2017 08:09 AM 1,164 _storage_docs.py
02/24/2018 05:49 AM 39,842 _tensor_docs.py
02/24/2018 05:49 AM 11,024 _tensor_str.py
05/05/2018 07:29 PM <DIR> _thnn
02/24/2018 05:49 AM 127,125 _torch_docs.py
02/24/2018 05:49 AM 9,201 _utils.py
02/24/2018 05:49 AM 9,313 __init__.py
05/05/2018 07:29 PM <DIR> __pycache__
16 File(s) 22,474,847 bytes
19 Dir(s) 318,426,836,992 bytes free"><pre class="notranslate"><code class="notranslate">(base) C:\Users\conner\Anaconda3\Lib\site-packages\torch>dir
Volume in drive C has no label.
Volume Serial Number is F8D6-539E
Directory of C:\Users\conner\Anaconda3\Lib\site-packages\torch
05/05/2018 07:52 PM <DIR> .
05/05/2018 07:52 PM <DIR> ..
05/05/2018 07:29 PM <DIR> autograd
05/05/2018 07:29 PM <DIR> backends
05/05/2018 07:29 PM <DIR> contrib
05/05/2018 07:29 PM <DIR> cuda
05/05/2018 07:29 PM <DIR> distributed
02/24/2018 05:49 AM 6,208 distributions.py
05/05/2018 07:29 PM <DIR> for_onnx
02/24/2018 05:49 AM 9,714 functional.py
05/05/2018 07:29 PM <DIR> jit
05/05/2018 07:29 PM <DIR> legacy
05/05/2018 07:29 PM <DIR> lib
05/05/2018 07:29 PM <DIR> multiprocessing
05/05/2018 07:29 PM <DIR> nn
05/05/2018 07:29 PM <DIR> onnx
05/05/2018 07:29 PM <DIR> optim
11/09/2017 07:38 PM 4,130 random.py
02/24/2018 05:49 AM 16,759 serialization.py
05/05/2018 07:29 PM <DIR> sparse
02/24/2018 05:49 AM 4,016 storage.py
02/24/2018 05:49 AM 14,497 tensor.py
05/05/2018 07:29 PM <DIR> utils
02/24/2018 01:46 PM 58 version.py
02/24/2018 01:52 PM 22,208,512 _C.pyd
02/24/2018 01:52 PM 10,240 _nvrtc.cp36-win_amd64.pyd
10/27/2017 09:31 PM 3,044 _six.py
09/17/2017 08:09 AM 1,164 _storage_docs.py
02/24/2018 05:49 AM 39,842 _tensor_docs.py
02/24/2018 05:49 AM 11,024 _tensor_str.py
05/05/2018 07:29 PM <DIR> _thnn
02/24/2018 05:49 AM 127,125 _torch_docs.py
02/24/2018 05:49 AM 9,201 _utils.py
02/24/2018 05:49 AM 9,313 __init__.py
05/05/2018 07:29 PM <DIR> __pycache__
16 File(s) 22,474,847 bytes
19 Dir(s) 318,426,836,992 bytes free
</code></pre></div> | <p dir="auto">File "", line 4, in <br>
import torch</p>
<p dir="auto">File "C:\Users\hp i3\Anaconda3\lib\site-packages\torch_<em>init</em>_.py", line 76, in <br>
from torch._C import *</p>
<p dir="auto">ImportError: DLL load failed: The specified module could not be found.</p> | 1 |
<p dir="auto">In clases like .hidden-phone, etc...</p>
<p dir="auto">We should not use display:inherit in those clases. Inherit will cause the element to be displayed the same way than its parent.</p>
<p dir="auto">Example of this problem:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<div class="I have display box">
<a class="hidden-phone" href="#"> Don't like phones </a>
<a href="#"> Show me anywhere </a>
</div>"><pre class="notranslate"><code class="notranslate"><div class="I have display box">
<a class="hidden-phone" href="#"> Don't like phones </a>
<a href="#"> Show me anywhere </a>
</div>
</code></pre></div>
<p dir="auto">The first link, instead of being displayed inline, like a "normal link" will get display box from its parent. This will cause the second link to go below, instead of being on the same line.</p>
<p dir="auto">I can send a pull request but I'd like some confirmation about this problem before doing anything.</p> | <p dir="auto">With no changes to the default selections, the customizer fails to build the package.</p>
<p dir="auto">The error.txt included in the css directory states:</p>
<blockquote>
<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":"Syntax Error on line 792","index":25106,"filename":"bootstrap.css","line":792,"column":11,"extract":[" *margin: -5px 0 5px;"," ove rflow: hidden;"," background-color: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/top/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/top">@top</a>;"]}</p>
</blockquote> | 0 |
<h2 dir="auto">Feature Request</h2>
<p dir="auto">The ability to modify <code class="notranslate">*dependencies</code> blocks in the <code class="notranslate">pubspec.yaml</code> from the CLI.</p>
<h2 dir="auto">Examples</h2>
<p dir="auto">Let's assume this is the user's current <code class="notranslate">dependencies</code> section in their manifest.</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.0"><pre class="notranslate"><span class="pl-ent">dependencies</span>:
<span class="pl-ent">flutter</span>:
<span class="pl-ent">sdk</span>: <span class="pl-s">flutter</span>
<span class="pl-ent">cupertino_icons</span>: <span class="pl-s">^0.1.0</span></pre></div>
<p dir="auto">Running this command...</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ flutter packages add url_launcher"><pre class="notranslate">$ flutter packages add url_launcher</pre></div>
<p dir="auto">Would modify said section to be the following.</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.0
url_launcher: 2.0.1"><pre class="notranslate"><span class="pl-ent">dependencies</span>:
<span class="pl-ent">flutter</span>:
<span class="pl-ent">sdk</span>: <span class="pl-s">flutter</span>
<span class="pl-ent">cupertino_icons</span>: <span class="pl-s">^0.1.0</span>
<span class="pl-ent">url_launcher</span>: <span class="pl-s">2.0.1</span></pre></div>
<p dir="auto">This would be done by querying <code class="notranslate">pub.dartlang.org</code>'s API and getting the latest version of the given package (which at the time of writing is <code class="notranslate">2.0.1</code>).</p>
<p dir="auto">Perhaps a <code class="notranslate">--version x.y.z</code> option could be provided (which would not be validated against the registry so no network requests would be made) (bikeshed the syntax).</p>
<p dir="auto">Bonus points: Support <code class="notranslate">flutter packages add a b c d</code> (which would add all packages if they all exist in the registry).</p>
<hr>
<p dir="auto">As the inverse of <code class="notranslate">flutter packages add</code> a <code class="notranslate">flutter packages remove</code> command could be implemented.</p>
<p dir="auto">This would remove the node with the given name (or error if no such node exists).</p>
<hr>
<h2 dir="auto">Question</h2>
<p dir="auto">Is this something that the flutter team is interested in?</p>
<p dir="auto">If so, would someone be open to mentoring the implementation if necessary?</p>
<hr>
<p dir="auto"><a href="https://github.com/killercup/cargo-edit"><code class="notranslate">cargo-edit</code></a> is the inspiration for this feature request.</p> | <p dir="auto">flutter start --debug with the ios simulator. The --debug is just ignore.</p>
<p dir="auto"><a href="https://github.com/flutter/engine/wiki/Flutter-Apps-on-iOS">https://github.com/flutter/engine/wiki/Flutter-Apps-on-iOS</a> is the official instructions instead.</p>
<p dir="auto">At a minimum we should throw an error in this case and point people to the wiki.</p>
<p dir="auto">This affects Dart VM engineers attempting to work on the Dart VM in flutter on Macs. FYI <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/johnmccutchan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/johnmccutchan">@johnmccutchan</a></p> | 0 |
<h2 dir="auto">Bug Report</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I would like to work on a fix!</li>
</ul>
<p dir="auto"><strong>Current Behavior</strong><br>
Upgrading from <code class="notranslate">babel-preset-env</code> (and other babel libraries) from 7.7.4 to 7.7.5 starts including too many transformations. PR here - this adds 10% size to our app. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="539435652" data-permission-text="Title is private" data-url="https://github.com/DestinyItemManager/DIM/issues/4814" data-hovercard-type="pull_request" data-hovercard-url="/DestinyItemManager/DIM/pull/4814/hovercard" href="https://github.com/DestinyItemManager/DIM/pull/4814">DestinyItemManager/DIM#4814</a></p>
<p dir="auto">Our babel config: <a href="https://github.com/DestinyItemManager/DIM/blob/master/babel.config.js">https://github.com/DestinyItemManager/DIM/blob/master/babel.config.js</a></p>
<p dir="auto">Our browserslist config is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" "browserslist": [
"last 2 Chrome versions",
"last 2 ChromeAndroid versions",
"last 2 FirefoxAndroid versions",
"last 2 Firefox versions",
"Firefox ESR",
"last 2 Safari versions",
"iOS >= 11",
"last 2 Edge versions",
"last 2 Opera versions",
"unreleased versions"
],"><pre class="notranslate"><code class="notranslate"> "browserslist": [
"last 2 Chrome versions",
"last 2 ChromeAndroid versions",
"last 2 FirefoxAndroid versions",
"last 2 Firefox versions",
"Firefox ESR",
"last 2 Safari versions",
"iOS >= 11",
"last 2 Edge versions",
"last 2 Opera versions",
"unreleased versions"
],
</code></pre></div>
<p dir="auto">Using 7.7.4, debug ouput:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@babel/preset-env: `DEBUG` option
Using targets:
{
"chrome": "77",
"edge": "17",
"firefox": "68",
"ios": "11",
"opera": "63",
"safari": "12.1"
}
Using modules transform: false
Using plugins:
transform-template-literals { "ios":"11", "safari":"12.1" }
transform-function-name { "edge":"17" }
transform-dotall-regex { "edge":"17", "firefox":"68", "ios":"11" }
transform-unicode-regex { "ios":"11" }
transform-parameters { "edge":"17" }
proposal-async-generator-functions { "edge":"17", "ios":"11" }
proposal-object-rest-spread { "edge":"17", "ios":"11" }
proposal-unicode-property-regex { "edge":"17", "firefox":"68", "ios":"11" }
proposal-json-strings { "edge":"17", "ios":"11" }
proposal-optional-catch-binding { "edge":"17", "ios":"11" }
transform-named-capturing-groups-regex { "edge":"17", "firefox":"68", "ios":"11" }
syntax-dynamic-import { "chrome":"77", "edge":"17", "firefox":"68", "ios":"11", "opera":"63", "safari":"12.1" }"><pre class="notranslate"><code class="notranslate">@babel/preset-env: `DEBUG` option
Using targets:
{
"chrome": "77",
"edge": "17",
"firefox": "68",
"ios": "11",
"opera": "63",
"safari": "12.1"
}
Using modules transform: false
Using plugins:
transform-template-literals { "ios":"11", "safari":"12.1" }
transform-function-name { "edge":"17" }
transform-dotall-regex { "edge":"17", "firefox":"68", "ios":"11" }
transform-unicode-regex { "ios":"11" }
transform-parameters { "edge":"17" }
proposal-async-generator-functions { "edge":"17", "ios":"11" }
proposal-object-rest-spread { "edge":"17", "ios":"11" }
proposal-unicode-property-regex { "edge":"17", "firefox":"68", "ios":"11" }
proposal-json-strings { "edge":"17", "ios":"11" }
proposal-optional-catch-binding { "edge":"17", "ios":"11" }
transform-named-capturing-groups-regex { "edge":"17", "firefox":"68", "ios":"11" }
syntax-dynamic-import { "chrome":"77", "edge":"17", "firefox":"68", "ios":"11", "opera":"63", "safari":"12.1" }
</code></pre></div>
<p dir="auto">Using 7.7.5, debug ouput:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@babel/preset-env: `DEBUG` option
Using targets:
{
"android": "79",
"chrome": "77",
"edge": "17",
"firefox": "68",
"ios": "11",
"opera": "63",
"safari": "12.1"
}
Using modules transform: false
Using plugins:
transform-template-literals { "android":"79", "ios":"11", "safari":"12.1" }
transform-literals { "android":"79" }
transform-function-name { "android":"79", "edge":"17" }
transform-arrow-functions { "android":"79" }
transform-block-scoped-functions { "android":"79" }
transform-classes { "android":"79" }
transform-object-super { "android":"79" }
transform-shorthand-properties { "android":"79" }
transform-duplicate-keys { "android":"79" }
transform-computed-properties { "android":"79" }
transform-for-of { "android":"79" }
transform-sticky-regex { "android":"79" }
transform-dotall-regex { "android":"79", "edge":"17", "firefox":"68", "ios":"11" }
transform-unicode-regex { "android":"79", "ios":"11" }
transform-spread { "android":"79" }
transform-parameters { "android":"79", "edge":"17" }
transform-destructuring { "android":"79" }
transform-block-scoping { "android":"79" }
transform-new-target { "android":"79" }
transform-regenerator { "android":"79" }
transform-exponentiation-operator { "android":"79" }
transform-async-to-generator { "android":"79" }
proposal-async-generator-functions { "android":"79", "edge":"17", "ios":"11" }
proposal-object-rest-spread { "android":"79", "edge":"17", "ios":"11" }
proposal-unicode-property-regex { "android":"79", "edge":"17", "firefox":"68", "ios":"11" }
proposal-json-strings { "android":"79", "edge":"17", "ios":"11" }
proposal-optional-catch-binding { "android":"79", "edge":"17", "ios":"11" }
transform-named-capturing-groups-regex { "android":"79", "edge":"17", "firefox":"68", "ios":"11" }
syntax-dynamic-import { "android":"79", "chrome":"77", "edge":"17", "firefox":"68", "ios":"11", "opera":"63", "safari":"12.1" }"><pre class="notranslate"><code class="notranslate">@babel/preset-env: `DEBUG` option
Using targets:
{
"android": "79",
"chrome": "77",
"edge": "17",
"firefox": "68",
"ios": "11",
"opera": "63",
"safari": "12.1"
}
Using modules transform: false
Using plugins:
transform-template-literals { "android":"79", "ios":"11", "safari":"12.1" }
transform-literals { "android":"79" }
transform-function-name { "android":"79", "edge":"17" }
transform-arrow-functions { "android":"79" }
transform-block-scoped-functions { "android":"79" }
transform-classes { "android":"79" }
transform-object-super { "android":"79" }
transform-shorthand-properties { "android":"79" }
transform-duplicate-keys { "android":"79" }
transform-computed-properties { "android":"79" }
transform-for-of { "android":"79" }
transform-sticky-regex { "android":"79" }
transform-dotall-regex { "android":"79", "edge":"17", "firefox":"68", "ios":"11" }
transform-unicode-regex { "android":"79", "ios":"11" }
transform-spread { "android":"79" }
transform-parameters { "android":"79", "edge":"17" }
transform-destructuring { "android":"79" }
transform-block-scoping { "android":"79" }
transform-new-target { "android":"79" }
transform-regenerator { "android":"79" }
transform-exponentiation-operator { "android":"79" }
transform-async-to-generator { "android":"79" }
proposal-async-generator-functions { "android":"79", "edge":"17", "ios":"11" }
proposal-object-rest-spread { "android":"79", "edge":"17", "ios":"11" }
proposal-unicode-property-regex { "android":"79", "edge":"17", "firefox":"68", "ios":"11" }
proposal-json-strings { "android":"79", "edge":"17", "ios":"11" }
proposal-optional-catch-binding { "android":"79", "edge":"17", "ios":"11" }
transform-named-capturing-groups-regex { "android":"79", "edge":"17", "firefox":"68", "ios":"11" }
syntax-dynamic-import { "android":"79", "chrome":"77", "edge":"17", "firefox":"68", "ios":"11", "opera":"63", "safari":"12.1" }
</code></pre></div>
<p dir="auto"><strong>Input Code</strong></p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="539435652" data-permission-text="Title is private" data-url="https://github.com/DestinyItemManager/DIM/issues/4814" data-hovercard-type="pull_request" data-hovercard-url="/DestinyItemManager/DIM/pull/4814/hovercard" href="https://github.com/DestinyItemManager/DIM/pull/4814">DestinyItemManager/DIM#4814</a><br>
Our babel config: <a href="https://github.com/DestinyItemManager/DIM/blob/master/babel.config.js">https://github.com/DestinyItemManager/DIM/blob/master/babel.config.js</a></p>
<p dir="auto"><strong>Expected behavior/code</strong></p>
<p dir="auto">I would expect that the transforms wouldn't change between versions, especially minor versions, and that we'd continue only transpiling what's necessary for the browsers in our browserslist config.</p>
<p dir="auto"><strong>Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)</strong></p>
<ul dir="auto">
<li>Filename: <code class="notranslate">babel.config.js</code></li>
</ul>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module.exports = function(api) {
const isProduction = api.env('production');
const plugins = [
'lodash',
'babel-plugin-optimize-clsx',
'@babel/plugin-syntax-dynamic-import',
['@babel/plugin-proposal-optional-chaining', { loose: true }],
['@babel/plugin-proposal-nullish-coalescing-operator', { loose: true }],
[
'@babel/plugin-transform-runtime',
{
useESModules: true
}
],
[
'transform-imports',
{
'@fortawesome/free-brands-svg-icons': {
transform: (member) => `@fortawesome/free-brands-svg-icons/${member}`,
preventFullImport: true,
skipDefaultConversion: true
},
'@fortawesome/free-solid-svg-icons': {
transform: (member) => `@fortawesome/free-solid-svg-icons/${member}`,
preventFullImport: true,
skipDefaultConversion: true
},
'@fortawesome/free-regular-svg-icons': {
transform: (member) => `@fortawesome/free-regular-svg-icons/${member}`,
preventFullImport: true,
skipDefaultConversion: true
}
}
]
];
if (isProduction) {
plugins.push(
'@babel/plugin-transform-react-constant-elements',
'@babel/plugin-transform-react-inline-elements'
);
} else {
plugins.push('react-hot-loader/babel');
}
return {
presets: [
[
'@babel/preset-env',
{
modules: false,
loose: true,
useBuiltIns: 'usage',
corejs: 3,
shippedProposals: true
}
],
['@babel/preset-react', { useBuiltIns: true, loose: true, corejs: 3 }]
],
plugins
};
};"><pre class="notranslate"><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-en">exports</span> <span class="pl-c1">=</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">api</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">isProduction</span> <span class="pl-c1">=</span> <span class="pl-s1">api</span><span class="pl-kos">.</span><span class="pl-en">env</span><span class="pl-kos">(</span><span class="pl-s">'production'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">plugins</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span>
<span class="pl-s">'lodash'</span><span class="pl-kos">,</span>
<span class="pl-s">'babel-plugin-optimize-clsx'</span><span class="pl-kos">,</span>
<span class="pl-s">'@babel/plugin-syntax-dynamic-import'</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span><span class="pl-s">'@babel/plugin-proposal-optional-chaining'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">loose</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span><span class="pl-s">'@babel/plugin-proposal-nullish-coalescing-operator'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">loose</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span>
<span class="pl-s">'@babel/plugin-transform-runtime'</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">useESModules</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span>
<span class="pl-s">'transform-imports'</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-s">'@fortawesome/free-brands-svg-icons'</span>: <span class="pl-kos">{</span>
<span class="pl-en">transform</span>: <span class="pl-kos">(</span><span class="pl-s1">member</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-s">`@fortawesome/free-brands-svg-icons/<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">member</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">,</span>
<span class="pl-c1">preventFullImport</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">skipDefaultConversion</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">'@fortawesome/free-solid-svg-icons'</span>: <span class="pl-kos">{</span>
<span class="pl-en">transform</span>: <span class="pl-kos">(</span><span class="pl-s1">member</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-s">`@fortawesome/free-solid-svg-icons/<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">member</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">,</span>
<span class="pl-c1">preventFullImport</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">skipDefaultConversion</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">'@fortawesome/free-regular-svg-icons'</span>: <span class="pl-kos">{</span>
<span class="pl-en">transform</span>: <span class="pl-kos">(</span><span class="pl-s1">member</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-s">`@fortawesome/free-regular-svg-icons/<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">member</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">,</span>
<span class="pl-c1">preventFullImport</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">skipDefaultConversion</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">]</span>
<span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">isProduction</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">plugins</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span>
<span class="pl-s">'@babel/plugin-transform-react-constant-elements'</span><span class="pl-kos">,</span>
<span class="pl-s">'@babel/plugin-transform-react-inline-elements'</span>
<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span>
<span class="pl-s1">plugins</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s">'react-hot-loader/babel'</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">presets</span>: <span class="pl-kos">[</span>
<span class="pl-kos">[</span>
<span class="pl-s">'@babel/preset-env'</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">modules</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">loose</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">useBuiltIns</span>: <span class="pl-s">'usage'</span><span class="pl-kos">,</span>
<span class="pl-c1">corejs</span>: <span class="pl-c1">3</span><span class="pl-kos">,</span>
<span class="pl-c1">shippedProposals</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span><span class="pl-s">'@babel/preset-react'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">useBuiltIns</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">loose</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">corejs</span>: <span class="pl-c1">3</span> <span class="pl-kos">}</span><span class="pl-kos">]</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
plugins
<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>Environment</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="System:
OS: macOS Mojave 10.14.6
Binaries:
Node: 13.1.0 - /usr/local/bin/node
Yarn: 1.19.1 - /usr/local/bin/yarn
npm: 6.12.1 - /usr/local/bin/npm
npmPackages:
@babel/core: ^7.0.0 => 7.7.7
@babel/plugin-proposal-nullish-coalescing-operator: ^7.4.4 => 7.7.4
@babel/plugin-proposal-object-rest-spread: ^7.0.0 => 7.7.7
@babel/plugin-proposal-optional-chaining: ^7.6.0 => 7.7.5
@babel/plugin-syntax-dynamic-import: ^7.0.0 => 7.7.4
@babel/plugin-transform-react-constant-elements: ^7.0.0 => 7.7.4
@babel/plugin-transform-react-inline-elements: ^7.0.0 => 7.7.4
@babel/plugin-transform-runtime: ^7.1.0 => 7.7.6
@babel/preset-env: ^7.3.1 => 7.7.7
@babel/preset-react: ^7.0.0 => 7.7.4
@babel/runtime: ^7.1.2 => 7.7.7
babel-loader: ^8.0.2 => 8.0.6
babel-plugin-lodash: ^3.3.2 => 3.3.4
babel-plugin-optimize-clsx: ^2.5.0 => 2.5.0
babel-plugin-transform-imports: ^2.0.0 => 2.0.0
eslint: ^6.0.1 => 6.8.0
jest: ^24.9.0 => 24.9.0
webpack: ^4.5.0 => 4.41.5"><pre class="notranslate"><code class="notranslate">System:
OS: macOS Mojave 10.14.6
Binaries:
Node: 13.1.0 - /usr/local/bin/node
Yarn: 1.19.1 - /usr/local/bin/yarn
npm: 6.12.1 - /usr/local/bin/npm
npmPackages:
@babel/core: ^7.0.0 => 7.7.7
@babel/plugin-proposal-nullish-coalescing-operator: ^7.4.4 => 7.7.4
@babel/plugin-proposal-object-rest-spread: ^7.0.0 => 7.7.7
@babel/plugin-proposal-optional-chaining: ^7.6.0 => 7.7.5
@babel/plugin-syntax-dynamic-import: ^7.0.0 => 7.7.4
@babel/plugin-transform-react-constant-elements: ^7.0.0 => 7.7.4
@babel/plugin-transform-react-inline-elements: ^7.0.0 => 7.7.4
@babel/plugin-transform-runtime: ^7.1.0 => 7.7.6
@babel/preset-env: ^7.3.1 => 7.7.7
@babel/preset-react: ^7.0.0 => 7.7.4
@babel/runtime: ^7.1.2 => 7.7.7
babel-loader: ^8.0.2 => 8.0.6
babel-plugin-lodash: ^3.3.2 => 3.3.4
babel-plugin-optimize-clsx: ^2.5.0 => 2.5.0
babel-plugin-transform-imports: ^2.0.0 => 2.0.0
eslint: ^6.0.1 => 6.8.0
jest: ^24.9.0 => 24.9.0
webpack: ^4.5.0 => 4.41.5
</code></pre></div>
<p dir="auto"><strong>Possible Solution</strong></p>
<p dir="auto">It appears that the issue is that babel-preset-env now considers <code class="notranslate">android: 79</code> to be one of the browsers on our list, and is including transforms for it as a result (and thus including most of the es5 translations). I'm not sure why it's doing this - running <code class="notranslate">npx browserslist</code> gives me:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="and_chr 78
and_ff 68
chrome 81
chrome 80
chrome 79
chrome 78
chrome 77
edge 76
edge 18
edge 17
firefox 73
firefox 72
firefox 71
firefox 70
firefox 68
ios_saf 13.3
ios_saf 13.2
ios_saf 13.0-13.1
ios_saf 12.2-12.4
ios_saf 12.0-12.1
ios_saf 11.3-11.4
ios_saf 11.0-11.2
opera 64
opera 63
safari 13
safari 12.1
safari TP"><pre class="notranslate"><code class="notranslate">and_chr 78
and_ff 68
chrome 81
chrome 80
chrome 79
chrome 78
chrome 77
edge 76
edge 18
edge 17
firefox 73
firefox 72
firefox 71
firefox 70
firefox 68
ios_saf 13.3
ios_saf 13.2
ios_saf 13.0-13.1
ios_saf 12.2-12.4
ios_saf 12.0-12.1
ios_saf 11.3-11.4
ios_saf 11.0-11.2
opera 64
opera 63
safari 13
safari 12.1
safari TP
</code></pre></div>
<p dir="auto">Perhaps whatever mapping there is between browserslist and preset-env is misidentifying the android bits of the config. What's weird is the android-specific browsers in that list aren't at version 79 - only Chrome is.</p> | <h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>Current Behavior</strong><br>
The following snippet is transpiled</p>
<p dir="auto"><strong>Input Code</strong></p>
<ul dir="auto">
<li>REPL or Repo link if applicable: <a href="https://babeljs.io/repl#?browsers=Android%20%3E%3D%2052&build=&builtIns=false&spec=false&loose=false&code_lz=MYGwhgzhAECC0G8C-Q&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=env&prettier=false&targets=&version=7.7.4&externalPlugins=" rel="nofollow">https://babeljs.io/repl#?browsers=Android%20%3E%3D%2052&build=&builtIns=false&spec=false&loose=false&code_lz=MYGwhgzhAECC0G8C-Q&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=env&prettier=false&targets=&version=7.7.4&externalPlugins=</a></li>
</ul>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class A {};"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">A</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Expected behavior/code</strong><br>
It is not transpiled on <code class="notranslate">Chrome >= 52</code>, so it should not be transpiled when <code class="notranslate">Android >= 52</code>, which shares the same language features support with Chrome.</p>
<p dir="auto"><strong>Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)</strong></p>
<ul dir="auto">
<li>Filename: <code class="notranslate">babel.config.js</code></li>
</ul>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"presets": ["@babel/env", { "targets": "Android >= 52" }]
}"><pre class="notranslate">{
<span class="pl-ent">"presets"</span>: [<span class="pl-s"><span class="pl-pds">"</span>@babel/env<span class="pl-pds">"</span></span>, { <span class="pl-ent">"targets"</span>: <span class="pl-s"><span class="pl-pds">"</span>Android >= 52<span class="pl-pds">"</span></span> }]
}</pre></div>
<p dir="auto"><strong>Environment</strong><br>
REPL</p> | 1 |
<p dir="auto">by <strong>travis.cardwell</strong>:</p>
<pre class="notranslate">The gofmt command does not take into account the width of runes when calculating the
alignment for comments. I ran into the issue in a program that has rune constants, some
of which are single-width and some of which are double-width, but the issue is more
apparent in the following (contrived) example:
What does 'go version' print?
$ go version
go version go1.2.1 linux/amd64
What steps will reproduce the problem?
$ cat fmttest.go
package fmttest
const (
msgEn = "This is a test." // English
msgJa = "これはテストです。" // Japanese
)
$ gofmt -d fmttest.go
diff fmttest.go gofmt/fmttest.go
--- /tmp/gofmt819271649 2014-03-06 14:13:28.000000000 +0900
+++ /tmp/gofmt002870220 2014-03-06 14:13:28.000000000 +0900
@@ -1,6 +1,6 @@
package fmttest
const (
- msgEn = "This is a test." // English
- msgJa = "これはテストです。" // Japanese
+ msgEn = "This is a test." // English
+ msgJa = "これはテストです。" // Japanese
)
The issue is not clear in this web interface [with my font settings] because spaces do
not have the same constant width as non-spaces, but it is clear if you copy the above
example into a file and run the gofmt command in a terminal.
What happened?
The alignment for comments is calculated based on the maximum width of code in the
block. Currently, all runes are assumed to have a width of 1. With tabwidth=8, the
width of the msgEn code is 33 columns, and the width of the msgJa code is incorrectly
calculated as 27 columns. Comments are therefore calculated to start on column 35. The
msgEn comment is offset from the code by one space, and the msgJa comment is offset from
the code by 7 spaces. The result is not aligned properly. The original alignment was
expected to be correct.
What should have happened instead?
Instead, the width of runes should be taken into account when calculating alignment.
With tabwidth=8, the width of the msgJa code should be calculated as 36 columns, as all
9 runes in the string are double-width. Comments should then be calculated to start on
column 38, resulting in the original alignment.
Please provide any additional information below.
Note that the length of a rune (in bytes) is unrelated to the width of a rune (in
columns). When testing, I highly recommend including troublesome cases. For example,
the following rune is commonly used in Japanese yet causes issues in some software:
<a href="http://decodeunicode.org/u+203B" rel="nofollow">http://decodeunicode.org/u+203B</a></pre> | <pre class="notranslate">What steps will reproduce the problem?
Issue:
gofmt, or text.tabwriter, assumes that all Unicode code points occupy exactly one column
in editors or on terminals. That assumption is not correct because most (but not all)
Chinese/Japanese/Korean characters, emojis, "fullwidth" Latin characters, etc,
occupy two columns. As a result gofmt formats Go code like this.
var Countries = map[string]string{
"アメリカ合衆国": "United States of America",
"日本": "Japan",
"ドイツ": "Germany",
"フランス": "France",
"ポーランド": "Poland",
}
As you can see the column of the map value is misaligned. You cannot fix this by hand
because gofmt would reformat it for you in the wrong way if you do that. That's annoying.
In Unicode, there's a zero column character (ZERO WIDTH SPACE; U+200B). SOFT HYPHEN
(U+00AD) may be displayed as a hyphen at the end of a line but may be zero-width in
other places, depending on your display environment. These chracters also affect the
column layout.
What is the expected output? What do you see instead?
Proposal:
Unicode Standard Annex #11 gives the definition of column width for characters in the
legacy East Asian character sets. I propose to add the East Asian Width property to the
unicode package, so that we can get the column width for a CJK character. East Asian
Fullwidth and East Asian Wide characters should be treated as two column by tabwriter.
(Note: East Asian Ambiguous characters need to be treated as one column. They are
treated as two columns only in East Asian display environment. The character set
contains Cyrillic characters and others which we would never want to handle as two
column.)
Because the Annex #11 does not say anything about characters that are not in the legacy
East Asian character sets, we need additional rules for characters not in CJK character
sets but in Unicode. I propose this simple rule:
- ZERO WIDTH SPACE is 0 column
- Emojis are 2 columns
- Other code points, including U+0000, SOFT HYPHEN, and all control characters, are 1 column
This additional rule will be implemented to an unexported function in text.tabwriter.
Caveats:
I deliberately avoid defining the generic "wcswidth" function to determine the
column width for a string in the standard library. That function can never be defined in
the right way because there's no standard for it. Also it'd be hard to get a reasonable
definition for characters with odd semantics, such as SOFT HYPHEN.</pre> | 1 |
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">Inventory</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.4.3.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/rteague/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.14 (default, Jan 17 2018, 14:28:32) [GCC 7.2.1 20170915 (Red Hat 7.2.1-2)]"><pre class="notranslate"><code class="notranslate">ansible 2.4.3.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/rteague/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.14 (default, Jan 17 2018, 14:28:32) [GCC 7.2.1 20170915 (Red Hat 7.2.1-2)]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">Default</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Inventory variables are treated differently depending on where they are defined. If a variable is provided on the host line in an ini-style inventory, Ansible will perform automatic type conversion. The same does not apply for variables defined in a vars group.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# test-inv
[masters]
localhost host_line_defined="{'host-type': 'master', 'sub-host-type': 'default', 'region': 'infra'}"
[masters:vars]
vars_group_defined="{'host-type': 'master', 'sub-host-type': 'default', 'region': 'infra'}""><pre class="notranslate"><code class="notranslate"># test-inv
[masters]
localhost host_line_defined="{'host-type': 'master', 'sub-host-type': 'default', 'region': 'infra'}"
[masters:vars]
vars_group_defined="{'host-type': 'master', 'sub-host-type': 'default', 'region': 'infra'}"
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">It is expected that variables are treated the same regardless of where they are defined in the inventory. This can cause issues when users define variables for hosts in different ways which result in unexpected behavior in playbooks.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">The variable <code class="notranslate">host_line_defined</code> is converted to a <code class="notranslate">dict</code>.<br>
The variable <code class="notranslate">vars_group_defined</code> remains a <code class="notranslate">string</code>.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible-inventory -i inventory/test-inv --list --yaml
all:
children:
masters:
hosts:
localhost:
host_line_defined:
host-type: master
region: infra
sub-host-type: default
vars_group_defined: '{''host-type'': ''master'', ''sub-host-type'': ''default'',
''region'': ''infra''}'
ungrouped: {}"><pre class="notranslate"><code class="notranslate">$ ansible-inventory -i inventory/test-inv --list --yaml
all:
children:
masters:
hosts:
localhost:
host_line_defined:
host-type: master
region: infra
sub-host-type: default
vars_group_defined: '{''host-type'': ''master'', ''sub-host-type'': ''default'',
''region'': ''infra''}'
ungrouped: {}
</code></pre></div> | <h5 dir="auto">Issue Type:</h5>
<p dir="auto">Bug Report</p>
<h5 dir="auto">Ansible Version:</h5>
<p dir="auto">1.7</p>
<h5 dir="auto">Environment:</h5>
<p dir="auto">Vagrant machine with image "hashicorp/precise64".<br>
Ubuntu 12.04 LTS</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">I understand that this sounds really weird, but I can't find the source of the problem atm.<br>
When I run mailcatcher task and ini_file command executed <code class="notranslate">extension=redis.so</code> line is stripped out. Seems like easter-egg %)</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<p dir="auto">I am running vagrant machine and configuring it with simple playbook. I am able to reproduce this issue with following data.<br>
ansible.cfg</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[defaults]
host_key_checking=false"><pre class="notranslate"><code class="notranslate">[defaults]
host_key_checking=false
</code></pre></div>
<p dir="auto">ansible_hosts</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="vagrantbox ansible_connection=local"><pre class="notranslate"><code class="notranslate">vagrantbox ansible_connection=local
</code></pre></div>
<p dir="auto">group_vars/all</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
---
env: prod"><pre class="notranslate"><code class="notranslate">
---
env: prod
</code></pre></div>
<p dir="auto">host_vars/vagrantbox</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
---
env: dev
"><pre class="notranslate"><code class="notranslate">
---
env: dev
</code></pre></div>
<p dir="auto">playbook.yml</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
---
- hosts: vagrantbox
remote_user: vagrant
sudo: True
roles:
- php-fpm
- { role: mailcatcher, when: env == "dev" }"><pre class="notranslate"><code class="notranslate">
---
- hosts: vagrantbox
remote_user: vagrant
sudo: True
roles:
- php-fpm
- { role: mailcatcher, when: env == "dev" }
</code></pre></div>
<p dir="auto">roles/php-fpm/handler/main.yml</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
---
- name: restart php5-fpm
service: name=php5-fpm state=restarted enabled=true
"><pre class="notranslate"><code class="notranslate">
---
- name: restart php5-fpm
service: name=php5-fpm state=restarted enabled=true
</code></pre></div>
<p dir="auto">roles/php-fpm/tasks/main.yml</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
---
- name: Add php 5.4 repository
apt_repository: repo='ppa:ondrej/php5-oldstable'
- name: Install php-fpm and deps
apt: pkg={{ item }} state=present
with_items:
- php5-fpm
- php5
- php5-cli
- php5-imagick
- php5-gd
- php5-mcrypt
- php5-mysql
- php-apc
- php5-curl
- php5-mhash
- php-pear
- php5-dev
- shell: pecl list | grep -ic lzf
register: lzf_installed
failed_when: false
changed_when: false
- shell: pecl install lzf
when: lzf_installed.stdout|int == 0
- shell: pecl list | grep -ic redis
register: redis_installed
failed_when: false
changed_when: false
- shell: pecl install redis
when: redis_installed.stdout|int == 0
- set_fact: >
{% if env == "prod" %}apc_stat=0{% else %}apc_stat=1{% endif %}
- template: src=customizations.ini.j2 dest=/etc/php5/mods-available/customizations.ini mode=0644
notify:
- restart php5-fpm
- name: set symlink for custmizations file
file: src=/etc/php5/mods-available/customizations.ini dest=/etc/php5/{{item}}/conf.d/customizations.ini owner=root group=root state=link
with_items:
- cli
- fpm
notify:
- restart php5-fpm"><pre class="notranslate"><code class="notranslate">
---
- name: Add php 5.4 repository
apt_repository: repo='ppa:ondrej/php5-oldstable'
- name: Install php-fpm and deps
apt: pkg={{ item }} state=present
with_items:
- php5-fpm
- php5
- php5-cli
- php5-imagick
- php5-gd
- php5-mcrypt
- php5-mysql
- php-apc
- php5-curl
- php5-mhash
- php-pear
- php5-dev
- shell: pecl list | grep -ic lzf
register: lzf_installed
failed_when: false
changed_when: false
- shell: pecl install lzf
when: lzf_installed.stdout|int == 0
- shell: pecl list | grep -ic redis
register: redis_installed
failed_when: false
changed_when: false
- shell: pecl install redis
when: redis_installed.stdout|int == 0
- set_fact: >
{% if env == "prod" %}apc_stat=0{% else %}apc_stat=1{% endif %}
- template: src=customizations.ini.j2 dest=/etc/php5/mods-available/customizations.ini mode=0644
notify:
- restart php5-fpm
- name: set symlink for custmizations file
file: src=/etc/php5/mods-available/customizations.ini dest=/etc/php5/{{item}}/conf.d/customizations.ini owner=root group=root state=link
with_items:
- cli
- fpm
notify:
- restart php5-fpm
</code></pre></div>
<p dir="auto">roles/php-fpm/templates/customizations.ini.j2</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="; {{ ansible_managed }}
[extension]
extension=redis.so
extension=lzf.so
[Date]
date.timezone = Europe/Tallinn
[PHP]
memory_limit = 512M
expose_php = Off
session.save_handler = redis
session.save_path = "tcp://127.0.0.1:6379?database=0&timeout=120"
[APC]
apc.enabled = "1"
apc.enable_cli=0
apc.stat = "{{ apc_stat }}"
apc.max_file_size = "5M"
apc.localcache = "1"
apc.localcache.size = "512"
apc.shm_segments = "1"
apc.ttl = "3600"
apc.user_ttl = "7200"
apc.gc_ttl = "3600"
apc.cache_by_default = "1"
apc.filters = ""
apc.write_lock = "1"
;apc.num_files_hint= "0"
;apc.user_entries_hint="0"
apc.num_files_hint = 10000
apc.user_entries_hint = 10000
apc.shm_size = "256M"
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.include_once_override = "0"
apc.file_update_protection="2"
apc.canonicalize = "1"
apc.report_autofilter="0"
apc.stat_ctime="0""><pre class="notranslate"><code class="notranslate">; {{ ansible_managed }}
[extension]
extension=redis.so
extension=lzf.so
[Date]
date.timezone = Europe/Tallinn
[PHP]
memory_limit = 512M
expose_php = Off
session.save_handler = redis
session.save_path = "tcp://127.0.0.1:6379?database=0&timeout=120"
[APC]
apc.enabled = "1"
apc.enable_cli=0
apc.stat = "{{ apc_stat }}"
apc.max_file_size = "5M"
apc.localcache = "1"
apc.localcache.size = "512"
apc.shm_segments = "1"
apc.ttl = "3600"
apc.user_ttl = "7200"
apc.gc_ttl = "3600"
apc.cache_by_default = "1"
apc.filters = ""
apc.write_lock = "1"
;apc.num_files_hint= "0"
;apc.user_entries_hint="0"
apc.num_files_hint = 10000
apc.user_entries_hint = 10000
apc.shm_size = "256M"
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.include_once_override = "0"
apc.file_update_protection="2"
apc.canonicalize = "1"
apc.report_autofilter="0"
apc.stat_ctime="0"
</code></pre></div>
<p dir="auto">roles/mailcatcher/tasks/main.yml</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
---
- name: Add rubygems stable repository with latest versions
apt_repository: repo='ppa:skottler/ruby193-latest' state=absent
- name: install ruby and rubygems
apt: pkg={{ item }} state=present
with_items:
- ruby
- ruby1.9.3
- rubygems
- libsqlite3-dev
- file: src=/usr/bin/ruby1.9.3 dest=/etc/alternatives/ruby state=link
- file: src=/etc/alternatives/ruby dest=/usr/bin/ruby state=link
- file: src=/usr/bin/gem1.9.3 dest=/etc/alternatives/gem state=link
- file: src=/etc/alternatives/gem dest=/usr/bin/gem state=link
- name: install mailcatcher
gem: name=mailcatcher user_install=no
- name: get path to mailcatcher
command: which catchmail
register: catchmail_path
# strips out comment and extension=redis.so
- ini_file: dest=/etc/php5/mods-available/customizations.ini section="mail function" option=sendmail_path value="{{ catchmail_path.stdout}} -f [email protected]"
- shell: ps aux | grep "mailcatcher --ip=0.0.0.0" | grep -v grep | grep -c mailcatcher
register: mailcatcher_started
failed_when: False"><pre class="notranslate"><code class="notranslate">
---
- name: Add rubygems stable repository with latest versions
apt_repository: repo='ppa:skottler/ruby193-latest' state=absent
- name: install ruby and rubygems
apt: pkg={{ item }} state=present
with_items:
- ruby
- ruby1.9.3
- rubygems
- libsqlite3-dev
- file: src=/usr/bin/ruby1.9.3 dest=/etc/alternatives/ruby state=link
- file: src=/etc/alternatives/ruby dest=/usr/bin/ruby state=link
- file: src=/usr/bin/gem1.9.3 dest=/etc/alternatives/gem state=link
- file: src=/etc/alternatives/gem dest=/usr/bin/gem state=link
- name: install mailcatcher
gem: name=mailcatcher user_install=no
- name: get path to mailcatcher
command: which catchmail
register: catchmail_path
# strips out comment and extension=redis.so
- ini_file: dest=/etc/php5/mods-available/customizations.ini section="mail function" option=sendmail_path value="{{ catchmail_path.stdout}} -f [email protected]"
- shell: ps aux | grep "mailcatcher --ip=0.0.0.0" | grep -v grep | grep -c mailcatcher
register: mailcatcher_started
failed_when: False
</code></pre></div>
<h5 dir="auto">Expected Results:</h5>
<p dir="auto">In 'dev' environment customizations.ini file contains extension=redis.so line as well as mail function config</p>
<h5 dir="auto">Actual Results:</h5>
<p dir="auto">In 'dev' environment customizations.ini file does not contain extension=redis.so line as well as ansible managed comment.</p> | 0 |
<h3 dir="auto">Description</h3>
<p dir="auto">It would be nice to add a comment when pausing a DAG, so that others looking at a DAG and expecting it to be unpaused, can understand why it may have been paused and who it has been paused by.</p>
<h3 dir="auto">Use case/motivation</h3>
<p dir="auto">I want to have the ability to share with others, the reason I am pausing a DAG. This could be done via a modal pop-up prompting the user for a comment (while maintaining the option to leave it empty), which will be displayed as a banner near the top of a DAG page.</p>
<h3 dir="auto">Related issues</h3>
<p dir="auto">I found these related issues which has since gone stale <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="916045333" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/16349" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/16349/hovercard" href="https://github.com/apache/airflow/issues/16349">#16349</a> & <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="876597259" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/15675" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/15675/hovercard" href="https://github.com/apache/airflow/issues/15675">#15675</a></p>
<h3 dir="auto">Are you willing to submit a PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | <h3 dir="auto">Description</h3>
<p dir="auto">add a global <code class="notranslate">/suspend</code> and <code class="notranslate">/resume</code> endpoint to the REST API (and corresponding CLI command) that would do the following for the entire airflow deployment:</p>
<p dir="auto"><code class="notranslate">/suspend</code></p>
<ul dir="auto">
<li>pause all currently unpaused DAGs (keeping track of what was previously unpaused in the metadata db)</li>
<li>Set <code class="notranslate">AIRFLOW__SCHEDULER__USE_JOB_SCHEDULE=False</code> (if not already false) to prevent scheduler from scheduling more tasks</li>
<li>(should handle duplicate suspend calls by <code class="notranslate">409: Airflow is already suspended</code>)</li>
</ul>
<p dir="auto"><code class="notranslate">/resume</code></p>
<ul dir="auto">
<li>unpause all DAGs from a previous <code class="notranslate">/suspend</code> call</li>
<li>set <code class="notranslate">AIRFLOW__SCHEDULER__USE_JOB_SCHEDULE</code> to whatever it was <em>before</em> the last <code class="notranslate">/suspend</code> call</li>
<li>(should handle resuming an airflow that is not in the suspended state with <code class="notranslate">409: Cannot resume an airflow that is not in suspended state</code>)</li>
</ul>
<h3 dir="auto">Use case/motivation</h3>
<p dir="auto">This could be really helpful for people wanting to pause everything:</p>
<ul dir="auto">
<li>before running and upgrade to a newer airflow version</li>
<li>because this is a dev enviornment and we don't need anything to run outside of working hours to reduce resource consumption</li>
<li>"archiving an airflow" call suspend then tear down all the airflow components, could be restored by bringing up the components and then calling resume.</li>
</ul>
<h3 dir="auto">Related issues</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Are you willing to submit a PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | 0 |
<p dir="auto">I have the following:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// third-party.d.ts
declare module foo.bar {
export interface IBar<T> {
a: T;
}
}"><pre class="notranslate"><span class="pl-c">// third-party.d.ts</span>
<span class="pl-k">declare</span> module <span class="pl-s1">foo</span><span class="pl-kos">.</span><span class="pl-s1">bar</span> <span class="pl-kos">{</span>
<span class="pl-k">export</span> <span class="pl-k">interface</span> <span class="pl-smi">IBar</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
<span class="pl-c1">a</span>: <span class="pl-smi">T</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// bar.ts
module bar {
export interface IBar {
a: number;
}
}"><pre class="notranslate"><span class="pl-c">// bar.ts</span>
module <span class="pl-s1">bar</span> <span class="pl-kos">{</span>
<span class="pl-k">export</span> <span class="pl-k">interface</span> <span class="pl-smi">IBar</span> <span class="pl-kos">{</span>
<span class="pl-c1">a</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// main.ts
module foo.main {
import IBar = foo.bar.IBar;
import IBar2 = bar.IBar;
export var a: IBar<number>;
export var b: IBar2;
}"><pre class="notranslate"><span class="pl-c">// main.ts</span>
module <span class="pl-s1">foo</span><span class="pl-kos">.</span><span class="pl-s1">main</span> <span class="pl-kos">{</span>
<span class="pl-k">import</span> <span class="pl-smi">IBar</span> <span class="pl-c1">=</span> <span class="pl-s1">foo</span><span class="pl-kos">.</span><span class="pl-s1">bar</span><span class="pl-kos">.</span><span class="pl-smi">IBar</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-smi">IBar2</span> <span class="pl-c1">=</span> <span class="pl-s1">bar</span><span class="pl-kos">.</span><span class="pl-smi">IBar</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">var</span> <span class="pl-s1">a</span>: <span class="pl-smi">IBar</span><span class="pl-kos"><</span><span class="pl-smi">number</span><span class="pl-kos">></span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">var</span> <span class="pl-s1">b</span>: <span class="pl-smi">IBar2</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">compiling with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tsc -d bar.ts main.ts third-party.d.ts"><pre class="notranslate"><code class="notranslate">tsc -d bar.ts main.ts third-party.d.ts
</code></pre></div>
<p dir="auto">fails with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="main.ts(5,17): error TS2314: Generic type 'IBar<T>' requires 1 type argument(s)."><pre class="notranslate"><code class="notranslate">main.ts(5,17): error TS2314: Generic type 'IBar<T>' requires 1 type argument(s).
</code></pre></div>
<p dir="auto">The issue appears to be because the <code class="notranslate">foo.main</code> shares the <code class="notranslate">foo</code> namespace with the third party <code class="notranslate">foo.bar</code> and cannot distinguish the thirty party namespace from the top-level <code class="notranslate">bar</code> namespace.</p>
<p dir="auto">Updating the main file to drop the imports:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module foo.main {
export var a: foo.bar.IBar<number>;
export var b: bar.IBar2;
}"><pre class="notranslate">module <span class="pl-s1">foo</span><span class="pl-kos">.</span><span class="pl-s1">main</span> <span class="pl-kos">{</span>
<span class="pl-k">export</span> <span class="pl-k">var</span> <span class="pl-s1">a</span>: <span class="pl-s1">foo</span><span class="pl-kos">.</span><span class="pl-s1">bar</span><span class="pl-kos">.</span><span class="pl-smi">IBar</span><span class="pl-kos"><</span><span class="pl-smi">number</span><span class="pl-kos">></span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">var</span> <span class="pl-s1">b</span>: <span class="pl-s1">bar</span><span class="pl-kos">.</span><span class="pl-smi">IBar2</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">yields this error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="main.ts(5,17): error TS2305: Module 'foo.bar' has no exported member 'IBar2'"><pre class="notranslate"><code class="notranslate">main.ts(5,17): error TS2305: Module 'foo.bar' has no exported member 'IBar2'
</code></pre></div>
<p dir="auto">Is there any way to resolve the name clash? This simple example aside, you can imaging a large project which contains a module like <code class="notranslate">somecompany.utility</code>, which would prevent the use of any top-level <code class="notranslate">utility</code> module in the future.</p> | <p dir="auto">Hi,</p>
<p dir="auto"><strong>Version</strong>: VS 2015 / TS 1.5</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1106823/9182144/118545b6-3fa1-11e5-9432-220044004c2e.png"><img src="https://cloud.githubusercontent.com/assets/1106823/9182144/118545b6-3fa1-11e5-9432-220044004c2e.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">When hovering over the property <code class="notranslate">foo</code>, it would be helpful if the JSDoc <code class="notranslate">"The foo option"</code> was also displayed. At present the only way to figure out what the property represents seems to be to delete and type it again:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1106823/9182249/9d4b3650-3fa1-11e5-98a9-2825f6679fbf.png"><img src="https://cloud.githubusercontent.com/assets/1106823/9182249/9d4b3650-3fa1-11e5-98a9-2825f6679fbf.png" alt="image" style="max-width: 100%;"></a></p> | 0 |
<ul dir="auto">
<li>Electron version: 1.7.8 - 6.0.0-beta.2</li>
<li>Operating system: Windows 7 / Windows 10</li>
</ul>
<h3 dir="auto">Preconditions</h3>
<ul dir="auto">
<li>Window is frameless</li>
<li>Window has own "-webkit-app-region: drag" element that is styled to change its color when hovered</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<ul dir="auto">
<li>Mouse is moved over "-webkit-app-region: drag" element</li>
<li>"-webkit-app-region: drag" element changes its color as styled</li>
</ul>
<h3 dir="auto">Actual behavior</h3>
<ul dir="auto">
<li>Mouse is moved over "-webkit-app-region: drag" element</li>
<li>"-webkit-app-region: drag" element remains visibly unchanged</li>
</ul>
<h3 dir="auto">How to reproduce</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="git clone -b webkit-app-region-drag-swallows-mouse-events-bug https://github.com/christian-judt/electron-quick-start.git
cd electron-quick-start
npm install
npm start"><pre class="notranslate"><code class="notranslate">git clone -b webkit-app-region-drag-swallows-mouse-events-bug https://github.com/christian-judt/electron-quick-start.git
cd electron-quick-start
npm install
npm start
</code></pre></div>
<h3 dir="auto">Maybe related issues</h3>
<ul dir="auto">
<li>mouseleave event isn't fired when moving the mouse outside the window (Windows) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="41263692" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/611" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/611/hovercard" href="https://github.com/electron/electron/issues/611">#611</a></li>
<li>-webkit-app-region drag disables parts of UI and doesn't act like normal HTML <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="46716729" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/741" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/741/hovercard" href="https://github.com/electron/electron/issues/741">#741</a></li>
<li>-webkit-app-region: drag eats all click events <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="66329211" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/1354" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/1354/hovercard" href="https://github.com/electron/electron/issues/1354">#1354</a></li>
<li>App-region: drag on Windows 10, blocking events <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="175230046" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/7107" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/7107/hovercard" href="https://github.com/electron/electron/issues/7107">#7107</a></li>
</ul> | <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>v8.1.1</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>macOS 10.15.3</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>1.8.4</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">The window should be draggable by clicking on elements styled with <code class="notranslate">-webkit-app-region: drag;</code>.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">The window does not move when clicking and dragging on elements styled with <code class="notranslate">-webkit-app-region: drag;</code>.</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">This bug can be reproduced very easily using the most minimal of examples. See code below:</p>
<p dir="auto"><strong>index.js</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var {app, BrowserWindow} = require('electron');
var mainWindow = null;
app.whenReady().then( function() {
mainWindow = new BrowserWindow({
width: 800,
height: 600
});
mainWindow.loadFile('index.html');
} );"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-kos">{</span>app<span class="pl-kos">,</span> BrowserWindow<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">'electron'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">mainWindow</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span><span class="pl-kos">;</span>
<span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">whenReady</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-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">mainWindow</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">BrowserWindow</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">width</span>: <span class="pl-c1">800</span><span class="pl-kos">,</span>
<span class="pl-c1">height</span>: <span class="pl-c1">600</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">mainWindow</span><span class="pl-kos">.</span><span class="pl-en">loadFile</span><span class="pl-kos">(</span><span class="pl-s">'index.html'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span> <span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>index.html</strong></p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'">
</head>
<body style="-webkit-app-region: drag; -webkit-user-select: none;">
<h1>Hello World!</h1>
</body>
</html>"><pre class="notranslate"><span class="pl-c1"><!DOCTYPE HTML<span class="pl-kos">></span></span>
<span class="pl-kos"><</span><span class="pl-ent">html</span> <span class="pl-c1">lang</span>="<span class="pl-s">en</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">head</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">meta</span> <span class="pl-c1">charset</span>="<span class="pl-s">UTF-8</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">title</span><span class="pl-kos">></span>Hello World!<span class="pl-kos"></</span><span class="pl-ent">title</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">meta</span> <span class="pl-c1">http-equiv</span>="<span class="pl-s">Content-Security-Policy</span>" <span class="pl-c1">content</span>="<span class="pl-s">default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'</span>"<span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">head</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">body</span> <span class="pl-c1">style</span>="<span class="pl-s">-webkit-app-region: drag; -webkit-user-select: none;</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h1</span><span class="pl-kos">></span>Hello World!<span class="pl-kos"></</span><span class="pl-ent">h1</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">body</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">html</span><span class="pl-kos">></span></pre></div>
<p dir="auto">Run this example and you will see the window cannot be dragged by clicking inside the content, even though the entire body is styled with <code class="notranslate">-webkit-app-region: drag;</code>.</p>
<h3 dir="auto">Screenshots</h3>
<p dir="auto">None needed.</p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">This bug is related to, but not a duplicate of, the following:</p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="542474404" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/21621" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/21621/hovercard" href="https://github.com/electron/electron/issues/21621">#21621</a> (talking about BrowserView specifically)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="573779817" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/22474" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/22474/hovercard" href="https://github.com/electron/electron/issues/22474">#22474</a> (says "cannot resize" but I think they mean move / drag)</li>
</ul> | 0 |
<p dir="auto">Steps to reproduce the behavior:</p>
<p dir="auto">Call torch.ceil on a sparse tensor<br>
Below is a code sample:</p>
<p dir="auto">import torch<br>
i = torch.cuda.LongTensor([[0, 1, 1],<br>
[2, 0, 2],<br>
[2, 0, 2]])</p>
<p dir="auto">v = torch.cuda.FloatTensor([3.2, -44.5, -5.1])</p>
<p dir="auto">s = torch.sparse_coo_tensor(i, v, torch.Size([2, 4, 4]), device=torch.device('cuda'))<br>
print(torch.ceil(s))</p>
<p dir="auto">Actual behavior<br>
Traceback (most recent call last):<br>
File "sparse_floor.py", line 9, in <br>
print(torch.ceil(s))<br>
RuntimeError: Could not run 'aten::ceil.out' with arguments from the 'SparseCUDA' backend. 'aten::ceil.out' is only available for these backends: [CPU, CUDA, Named, Autograd, Profiler, Tracer].</p>
<p dir="auto">Expected behavior<br>
ceil of the sparse tensor should get calculated and output as a sparse tensor</p>
<p dir="auto">Environment<br>
Versions of relevant libraries:<br>
[pip3] numpy==1.19.1<br>
[pip3] torch==1.8.0a0<br>
[pip3] torchtext==0.8.0a0+7e267d2<br>
[pip3] torchvision==0.8.0a0+be8192e<br>
[conda] blas 1.0 mkl<br>
[conda] cudatoolkit 10.2.89 hfd86e86_1<br>
[conda] magma-cuda102 2.5.2 1 pytorch<br>
[conda] mkl 2020.1 217<br>
[conda] mkl-include 2020.1 217<br>
[conda] mkl-service 2.3.0 py38he904b0f_0<br>
[conda] mkl_fft 1.1.0 py38h23d657b_0<br>
[conda] mkl_random 1.1.1 py38h0573a6f_0<br>
[conda] numpy 1.19.1 py38hbc911f0_0<br>
[conda] numpy-base 1.19.1 py38hfa32c7d_0<br>
[conda] torch 1.8.0a0 dev_0<br>
[conda] torchtext 0.8.0a0+7e267d2 pypi_0 pypi<br>
[conda] torchvision 0.8.0a0+be8192e pypi_0 pypi</p>
<p dir="auto">PyTorch Version: 1.8.0a0<br>
OS: Linux<br>
How you installed PyTorch (conda, pip, source): source<br>
Build command you used (if compiling from source): python setup.py develop<br>
Python version: 3.8<br>
CUDA/cuDNN version: 10.2</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aocsa/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aocsa">@aocsa</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nikitaved/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nikitaved">@nikitaved</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pearu/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pearu">@pearu</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mruberry/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mruberry">@mruberry</a></p> | <p dir="auto">-- with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Tierex/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Tierex">@Tierex</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mrshenli/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mrshenli">@mrshenli</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kiukchung/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kiukchung">@kiukchung</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pritamdamania/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pritamdamania">@pritamdamania</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lw/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lw">@lw</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/agolynski/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/agolynski">@agolynski</a> , <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/osalpekar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/osalpekar">@osalpekar</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zhaojuanmao/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zhaojuanmao">@zhaojuanmao</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rohan-varma/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rohan-varma">@rohan-varma</a></p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="rocket" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f680.png">🚀</g-emoji> Feature</h2>
<p dir="auto">Concept and a new set of rpc APIs in <code class="notranslate">torch.distributed.rpc</code> aiming to help users construct distributed applications more easily, apis maily comprise of:</p>
<ol dir="auto">
<li>Higher level torch rpc APIs, including group creation, scoped service registering and easier value sharing among processes.</li>
<li>Succinct init methods to for apps using both rpc and process groups with a heterogeneous topology (roles),</li>
<li>Ensure all the above works well when launching these apps using TorchElastic, or with a simple launch script<br>
such as <code class="notranslate">torch.distributed.launch</code>.</li>
</ol>
<h2 dir="auto">Motivation</h2>
<p dir="auto">This RFC is a refined and extended version of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="656856394" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/41425" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/41425/hovercard" href="https://github.com/pytorch/pytorch/issues/41425">#41425</a></p>
<h3 dir="auto">Homogeneous/Heterogeneous Torch RPC Apps</h3>
<p dir="auto">This section has been described in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="656856394" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/41425" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/41425/hovercard" href="https://github.com/pytorch/pytorch/issues/41425">#41425</a> with details, and therefore it will be omitted here.</p>
<h3 dir="auto">Service registering</h3>
<p dir="auto">Currently <code class="notranslate">torch.distributed.rpc</code> has only defined three basic point to point style APIs: <code class="notranslate">rpc_sync</code>, <code class="notranslate">rpc_async</code>, and <code class="notranslate">rpc_remote</code>. They require users to manually specify a specific action: <code class="notranslate">func</code> to perform, and a specific destination: <code class="notranslate">to</code> where this action will be performed on:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="torch.distributed.rpc.rpc_sync(to, func, args=None, kwargs=None)
torch.distributed.rpc.rpc_async(to, func, args=None, kwargs=None)
torch.distributed.rpc.remote(to, func, args=None, kwargs=None)"><pre class="notranslate"><code class="notranslate">torch.distributed.rpc.rpc_sync(to, func, args=None, kwargs=None)
torch.distributed.rpc.rpc_async(to, func, args=None, kwargs=None)
torch.distributed.rpc.remote(to, func, args=None, kwargs=None)
</code></pre></div>
<p dir="auto">However, in most real application scenarios, a single process does not provide sufficient computing power to provide a complete service, therefore users are usually dealing with a complex of different processes serving different roles, such as a parameter server architecture diagram below:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17508457/87754941-96af0e00-c838-11ea-8798-02ff8dd2cb2f.png"><img src="https://user-images.githubusercontent.com/17508457/87754941-96af0e00-c838-11ea-8798-02ff8dd2cb2f.png" alt="PS" style="max-width: 100%;"></a></p>
<p dir="auto">If users want to invoke <code class="notranslate">push()</code> or the <code class="notranslate">pull()</code> method, it would be most sensible to provide a mechanism to register these two methods along with the method provider (i.e: job queue, model distributors) in the scope where they would like to use them, and let processes query for the registered method.<br>
Compared to the mechanism mentioned in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="656856394" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/41425" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/41425/hovercard" href="https://github.com/pytorch/pytorch/issues/41425">#41425</a></p>
<blockquote>
<p dir="auto">group-rpc calls (e.g. call the same function on all trainers)</p>
</blockquote>
<p dir="auto">which can also provide a similar function as "Service registering", "Service registering" enables users to call different processes with different roles, as well as hiding the actual service provider and make detail implementations transparent to users. This is especially important if users wants to maintain modularity or write complex applications.</p>
<h3 dir="auto">Resource sharing</h3>
<p dir="auto">Although RPC is an "action" based paradigm, compared to the "resource" based paradigm used by http & restful apis, sometimes it could be useful to borrow some ideas from there. For example, to implement a simple synchronization mechanism using a shared value in a group of processes:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def process1():
rpc.init_rpc(...)
some_signal = Switch(False) # a switch class
rpc.pair("signal", some_signal) # expose this variable in the implicit global rpc group
sleep(10) # do some initialization
some_signal.set(True)
# synchronized
def process2():
rpc.init_rpc(...)
some_signal = Switch(False) # a switch class
rpc.pair("signal2", some_signal) # expose this variable in the implicit global rpc group
sleep(5) # do some initialization
some_signal.set(True)
while not rpc.get_paired("signal"):
sleep(1)
# synchronized
def process2():
rpc.init_rpc(...)
while not rpc.get_paired("signal") or not rpc.get_paired("signal2"):
sleep(1)
# synchronized"><pre class="notranslate"><code class="notranslate">def process1():
rpc.init_rpc(...)
some_signal = Switch(False) # a switch class
rpc.pair("signal", some_signal) # expose this variable in the implicit global rpc group
sleep(10) # do some initialization
some_signal.set(True)
# synchronized
def process2():
rpc.init_rpc(...)
some_signal = Switch(False) # a switch class
rpc.pair("signal2", some_signal) # expose this variable in the implicit global rpc group
sleep(5) # do some initialization
some_signal.set(True)
while not rpc.get_paired("signal"):
sleep(1)
# synchronized
def process2():
rpc.init_rpc(...)
while not rpc.get_paired("signal") or not rpc.get_paired("signal2"):
sleep(1)
# synchronized
</code></pre></div>
<p dir="auto">compared to</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="signal1 = False
signal2 = False
def get_signal1():
return signal1
def get_signal2():
return signal2
def process1():
rpc.init_rpc(...)
sleep(10) # do some initialization
some_signal = True
# synchronized
def process2():
rpc.init_rpc(...)
sleep(5) # do some initialization
while not rpc.rpc_sync("proc1", get_signal1):
sleep(1)
# synchronized
def process2():
rpc.init_rpc(...)
while (not rpc.rpc_sync("proc1", get_signal1) or
not rpc.rpc_sync("proc1", get_signal2)):
sleep(1)
# synchronized"><pre class="notranslate"><code class="notranslate">signal1 = False
signal2 = False
def get_signal1():
return signal1
def get_signal2():
return signal2
def process1():
rpc.init_rpc(...)
sleep(10) # do some initialization
some_signal = True
# synchronized
def process2():
rpc.init_rpc(...)
sleep(5) # do some initialization
while not rpc.rpc_sync("proc1", get_signal1):
sleep(1)
# synchronized
def process2():
rpc.init_rpc(...)
while (not rpc.rpc_sync("proc1", get_signal1) or
not rpc.rpc_sync("proc1", get_signal2)):
sleep(1)
# synchronized
</code></pre></div>
<p dir="auto">is simpler, because in the second example, users will have to roll out a new function for each signal they would like to look up, or<br>
they have to implement a custom lookup function taking a signal name and return a signal value, like below:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="signals = {}
def lookup(signal_name: str):
return signals.get(signal_name, None)"><pre class="notranslate"><code class="notranslate">signals = {}
def lookup(signal_name: str):
return signals.get(signal_name, None)
</code></pre></div>
<p dir="auto">Therefore, it is reasonable to provide a simple api like <code class="notranslate">rpc.pair</code> and <code class="notranslate">rpc.get_paired</code> to expose the value to the respective scope, so that processes can easily look up other values.</p>
<h3 dir="auto">Groups</h3>
<p dir="auto">If we want to either share a resource, or access a service, by RPC, it is crutial to limit their effect scope, so we can define services / pair values in a controllable, safe range, without overwriting other paired values and creating hidden conflicts. RPC has a implicit global group, as stated in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="656856394" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/41425" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/41425/hovercard" href="https://github.com/pytorch/pytorch/issues/41425">#41425</a> :</p>
<blockquote>
<p dir="auto">rpc not really needing a group (other than the implicit global one).</p>
</blockquote>
<p dir="auto">Again, we must be clear that <code class="notranslate">rpc_sync</code>, <code class="notranslate">rpc_async</code>, and <code class="notranslate">rpc_remote</code> are all operating on a global scope, and only having one scope is a severe disadvantage in OOP designs.</p>
<p dir="auto">There is one difference in the group conception between this RFC and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="656856394" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/41425" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/41425/hovercard" href="https://github.com/pytorch/pytorch/issues/41425">#41425</a>, that is group may consists of different roles, for example, in the parameter server architecture above, users may implement each sub-module and group them by their kind, or consider all submodules as members of the parameter server RPC group:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17508457/87755322-5ef49600-c839-11ea-8397-ef1af1f96f90.png"><img src="https://user-images.githubusercontent.com/17508457/87755322-5ef49600-c839-11ea-8397-ef1af1f96f90.png" alt="PS2" style="max-width: 100%;"></a></p>
<h2 dir="auto">Pitch</h2>
<h3 dir="auto">Role based auto initialization</h3>
<p dir="auto">Ideally we'd like the application code to look like the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def master_main():
# do something
pass
def trainer_main():
# do something
pass
if __name__ == "__main__":
rpc.init_role(backend=backend, backend_options)
if rpc.get_worker_info().role == "master":
master_main()
elif rpc.get_worker_info().role == "trainer":
trainer_main()
rpc.shutdown()"><pre class="notranslate"><code class="notranslate">def master_main():
# do something
pass
def trainer_main():
# do something
pass
if __name__ == "__main__":
rpc.init_role(backend=backend, backend_options)
if rpc.get_worker_info().role == "master":
master_main()
elif rpc.get_worker_info().role == "trainer":
trainer_main()
rpc.shutdown()
</code></pre></div>
<p dir="auto">So users do not specify world size and process rank by hand, instead they should pass how many roles to launch to torchelastic launcher or a simpler launcher scipt similar to <code class="notranslate">torch.distributed.launch</code> if they don't want to configure torchelastic with etcd:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> python -m torchelastic.distributed.launch
--nnodes=$NUM_NODES
--nproc_per_node=$NUM_TRAINERS
--role=trainer:4 # launch 4 trainer processes
--role=master:1 # launch 1 master process
--rdzv_id=$JOB_ID
--rdzv_backend=etcd
--rdzv_endpoint=$ETCD_HOST:$ETCD_PORT
YOUR_TRAINING_SCRIPT.py (--arg1 ... train script args...)"><pre class="notranslate"><code class="notranslate">>>> python -m torchelastic.distributed.launch
--nnodes=$NUM_NODES
--nproc_per_node=$NUM_TRAINERS
--role=trainer:4 # launch 4 trainer processes
--role=master:1 # launch 1 master process
--rdzv_id=$JOB_ID
--rdzv_backend=etcd
--rdzv_endpoint=$ETCD_HOST:$ETCD_PORT
YOUR_TRAINING_SCRIPT.py (--arg1 ... train script args...)
</code></pre></div>
<p dir="auto">And torchelastic or the launching script will set <code class="notranslate">RANK</code>, <code class="notranslate">WORLD_SIZE</code>, <code class="notranslate">NODE_RANK</code>, <code class="notranslate">NODE_DIMS</code>, <code class="notranslate">LOCAL_RANK</code>, <code class="notranslate">ROLE</code>, <code class="notranslate">ROLE_NUM</code>, <code class="notranslate">ROLE_NUMS</code>, <code class="notranslate">ROLE_RANK</code>, <code class="notranslate">NAME</code>, <code class="notranslate">MASTER_ADDR</code>, <code class="notranslate">MASTER_PORT</code> in the env vars, and <code class="notranslate">rpc.init_role</code> will pick these env vars up.</p>
<p dir="auto">After the application is initialized the following hold true:</p>
<ol dir="auto">
<li>
<p dir="auto">Every process (regardless of role) can invoke rpc APIs on one another.</p>
</li>
<li>
<p dir="auto">Every process has a global rank (e.g. one that was passed as RANK env var) that can be obtained via dist.get_rank()</p>
</li>
<li>
<p dir="auto">Each node is assigned a rank. (this is equivalent to the elastic agent’s rank - a.k.a GROUP_RANK in torchelastic)</p>
</li>
<li>
<p dir="auto">The global rank can be derived from the following formula:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/43595115/87468522-a75c4b80-c5ce-11ea-9994-72b39363fd97.png"><img src="https://user-images.githubusercontent.com/43595115/87468522-a75c4b80-c5ce-11ea-9994-72b39363fd97.png" alt="eq" style="max-width: 100%;"></a><br>
Where <code class="notranslate">node_dims[i]</code> returns the number of local processes on node rank i.<br>
But cannot be derived from <code class="notranslate">ROLE_NUMS</code> since there is no explicit garantee on the order of roles.</p>
</li>
<li>
<p dir="auto">the launching utility (torchelastic or a simple script launcher) will set <code class="notranslate">RANK</code>, <code class="notranslate">WORLD_SIZE</code>, <code class="notranslate">NODE_RANK</code>(<code class="notranslate">GROUP_RANK</code>), <code class="notranslate">NODE_DIMS</code>, <code class="notranslate">LOCAL_RANK</code>, <code class="notranslate">ROLE</code>, <code class="notranslate">ROLE_NUM</code>, <code class="notranslate">ROLE_NUMS</code>, <code class="notranslate">ROLE_RANK</code>, <code class="notranslate">NAME</code>, <code class="notranslate">MASTER_ADDR</code>, <code class="notranslate">MASTER_PORT</code> in the env vars.<br>
<code class="notranslate">ROLE_NUM</code> is the number of processes in current role, and <code class="notranslate">ROLE_NUMS</code> is the number of processes of each role.<br>
<code class="notranslate">NODE_DIMS</code> is a comma seperated string of >0 integers: 2,3,4,5<br>
<code class="notranslate">ROLE_NUMS</code> is a comma sepeated string of role names and >0 integers: trainer,4,master,1<br>
There is no trailling comma in them.<br>
Role names must not contain commas.</p>
</li>
<li>
<p dir="auto">Every process has a unique name in form <code class="notranslate">name = {role}:{role_id}</code>, <code class="notranslate">{role_id}</code> is a number in [0, num_workers_in_role),</p>
</li>
<li>
<p dir="auto">The <code class="notranslate">WorkerInfo</code> object returned by <code class="notranslate">torch.distributed.rpc.get_worker_info()</code> should contain 4 properties: <code class="notranslate">name</code>, <code class="notranslate">id</code>, <code class="notranslate">role</code>, <code class="notranslate">role_id</code>. <code class="notranslate">id</code> is equal to the global rank, users can look up <code class="notranslate">role</code> and <code class="notranslate">role_id</code> of current process by passing <code class="notranslate">None</code> to <code class="notranslate">get_worker_info()</code>. If users are calling <code class="notranslate">rpc.init_rpc</code> instead of <code class="notranslate">rpc.init_role</code> to initialize, <code class="notranslate">role</code> and <code class="notranslate">role_id</code> should be <code class="notranslate">None</code>.</p>
</li>
</ol>
<p dir="auto">Clarification or different ranks:<br>
! <code class="notranslate">RANK</code> depicts the global rank of the current process among all launched processes, it is an int in <code class="notranslate">[0, num_total_processes)</code><br>
! <code class="notranslate">NODE_RANK</code> depicts the rank of container / physical server, it is an int in <code class="notranslate">[0, num_container_or_server)</code><br>
! <code class="notranslate">LOCAL_RANK</code> depicts the rank of the current process among processes on this container/server, it is an int in <code class="notranslate">[0, NODE_DIMS[NODE_RANK])</code><br>
! <code class="notranslate">ROLE_RANK</code> depicts the rank of current process among processes in this role, it is an int in <code class="notranslate">[0, ROLE_NUMS[ROLE])</code></p>
<h3 dir="auto">Role-based rpc APIs</h3>
<p dir="auto">Since we are working with the concept of roles this is really a syntactic sugar that allows users to perform group rpc calls on all workers belonging to a role rather than having to for-loop around them. It can trivially be implemented by first getting all the worker names for the role (or derive it by using role_world_size = ROLE_NUMS[ROLE] = ROLE_NUM)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ret_futures = {}
role = os.environ['ROLE']
role_num = int(os.environ['ROLE_NUM'])
for idx in range(0, role_num):
name=f"trainer:{idx}"
ret_futures[name] = rpc.rpc_async(to=name, func=foobar, args=(...)))
# versus
ret_futures = rpc.rpc_async_role(role="trainer", selector=lambda _: True, func=foobar, args=(...))
# selector is a function which takes in a role rank and returns True for selecting it, False for deselecting it.
# could be None, and selecting all processes with this role"><pre class="notranslate"><code class="notranslate">ret_futures = {}
role = os.environ['ROLE']
role_num = int(os.environ['ROLE_NUM'])
for idx in range(0, role_num):
name=f"trainer:{idx}"
ret_futures[name] = rpc.rpc_async(to=name, func=foobar, args=(...)))
# versus
ret_futures = rpc.rpc_async_role(role="trainer", selector=lambda _: True, func=foobar, args=(...))
# selector is a function which takes in a role rank and returns True for selecting it, False for deselecting it.
# could be None, and selecting all processes with this role
</code></pre></div>
<p dir="auto">Note The original design also included an rpc.wait_all() API for completeness. This has already been implemented in the form of torch.futures.collect_all (<a href="https://github.com/pytorch/pytorch/blob/master/torch/futures/__init__.py#L88">https://github.com/pytorch/pytorch/blob/master/torch/futures/__init__.py#L88</a>)</p>
<h3 dir="auto">Create groups</h3>
<p dir="auto">In this section:</p>
<ol dir="auto">
<li>MPI style APIs will be refered to as "collective communication primitives" or "coll comm" for short.</li>
<li>"sub" means a group whose members is a subset of a larger group of same kind.</li>
</ol>
<h4 dir="auto">Collective group</h4>
<p dir="auto">In current distributed apis, we can create a collective group for coll comm using:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="torch.distributed.new_group(ranks=None, timeout=datetime.timedelta(0, 1800), backend=None)"><pre class="notranslate"><code class="notranslate">torch.distributed.new_group(ranks=None, timeout=datetime.timedelta(0, 1800), backend=None)
</code></pre></div>
<p dir="auto">this function takes in a list of raw ranks, is blocking, and requires all mentioned processes in <code class="notranslate">ranks</code> to enter. However, many users find coll comm extremely useful in many scenarios, therefore, we decide to import all of its functions into the scope of rpc,<br>
so that instead of using a list of raw ranks, users may now create a collective group with:</p>
<ol dir="auto">
<li>a list of names, such as ["worker:0", "worker:1", "manager:0"]</li>
<li>a role name, with a index selector: role="worker", selector=lambda id: id in (0, 1)</li>
</ol>
<p dir="auto">api has the following signature:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rpc.new_collective_group(names, role: str = None, selector: Callable = None, timeout=datetime.timedelta(0, 1800), backend=None) -> CollectiveGroup"><pre class="notranslate"><code class="notranslate">rpc.new_collective_group(names, role: str = None, selector: Callable = None, timeout=datetime.timedelta(0, 1800), backend=None) -> CollectiveGroup
</code></pre></div>
<p dir="auto"><code class="notranslate">CollectiveGroup</code> has the same coll comm apis as <code class="notranslate">torch.distributed</code>, except the <code class="notranslate">group</code> keyword argument is the created group itself, and <code class="notranslate">dst</code> and <code class="notranslate">src</code> are process names instead of global ranks:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def send(self, tensor, dst, tag=0)
def recv(self, tensor, src=None, tag=0)
def isend(self, tensor, dst, tag=0)
def irecv(self, tensor, src, tag=0)
..."><pre class="notranslate"><code class="notranslate">def send(self, tensor, dst, tag=0)
def recv(self, tensor, src=None, tag=0)
def isend(self, tensor, dst, tag=0)
def irecv(self, tensor, src, tag=0)
...
</code></pre></div>
<h4 dir="auto">RPC group</h4>
<p dir="auto">RPC group is a name scope, each process may join multiple RPC groups, and each RPC group may contain multiple processes, RPC group is a place where users may:</p>
<ol dir="auto">
<li>share variables only among members by pairing their value with a key to the group</li>
<li>expose services so that only its member processes may access.</li>
</ol>
<p dir="auto">The default RPC group is the rpc world, that is the <code class="notranslate">rpc</code> module itself:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="torch.distributed.rpc.rpc_sync(to, func, args=None, kwargs=None)
torch.distributed.rpc.rpc_async(to, func, args=None, kwargs=None)
torch.distributed.rpc.remote(to, func, args=None, kwargs=None)"><pre class="notranslate"><code class="notranslate">torch.distributed.rpc.rpc_sync(to, func, args=None, kwargs=None)
torch.distributed.rpc.rpc_async(to, func, args=None, kwargs=None)
torch.distributed.rpc.remote(to, func, args=None, kwargs=None)
</code></pre></div>
<p dir="auto">are all operating on this implicit global group.</p>
<p dir="auto">In order to create a sub rpc group:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rpc.new_rpc_group(self, names, role: str = None, selector: Callable = None, group_name: str) -> RpcGroup"><pre class="notranslate"><code class="notranslate">rpc.new_rpc_group(self, names, role: str = None, selector: Callable = None, group_name: str) -> RpcGroup
</code></pre></div>
<p dir="auto">compared to the collective group, <code class="notranslate">group_name</code> is necessary here because it will identify the scope of shared variables and exposed services.</p>
<p dir="auto"><code class="notranslate">RpcGroup</code> class, as well as the implicit global group <code class="notranslate">rpc</code>, provides the following APIs:<br>
<strong>This part is open to discussion</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# pair a value to this group, the same key cannot be used twice, otherwise an exception must be thrown
pair(key: str, Value: Any) -> None
# unpair a value from this group, the key must exist, otherwise an exception must be thrown
unpair(key: str) -> None
# query whether a key has been used to pair
is_paired(key: str) -> bool
# get a paired value, if it exist, otherwise an exception must be thrown
get_paired(key: str) -> Any
# expose a service, the service function will be executed when called
# could be a global scope function, a class method, a local function returned by a decorator, or lambda,
# or torch script, etc.
register(key: str, func: Callable) -> None
# deregister an exposed service, the key must exist, otherwise an exception must be thrown
deregister(key: str) -> None
# query whether a service has been registered:
is_registered(key: str) -> bool
# call a service
registered_sync(key: str, args=None, kwargs=None)
registered_async(key: str, args=None, kwargs=None)
registered_remote(key: str, args=None, kwargs=None)
# destroy the group, global rpc does not have this function, since it has "shutdown"
# also deregister the group along with values, services from the global discovery manager
destroy()
# info accessors
# returns a list of member names
get_members() -> List[str]
# judge whether the target process is a member of this group, by default it is the current process
is_member(name: str=None) -> bool
# group name
get_group_name() -> str
# number of group members
size() -> int"><pre class="notranslate"><code class="notranslate"># pair a value to this group, the same key cannot be used twice, otherwise an exception must be thrown
pair(key: str, Value: Any) -> None
# unpair a value from this group, the key must exist, otherwise an exception must be thrown
unpair(key: str) -> None
# query whether a key has been used to pair
is_paired(key: str) -> bool
# get a paired value, if it exist, otherwise an exception must be thrown
get_paired(key: str) -> Any
# expose a service, the service function will be executed when called
# could be a global scope function, a class method, a local function returned by a decorator, or lambda,
# or torch script, etc.
register(key: str, func: Callable) -> None
# deregister an exposed service, the key must exist, otherwise an exception must be thrown
deregister(key: str) -> None
# query whether a service has been registered:
is_registered(key: str) -> bool
# call a service
registered_sync(key: str, args=None, kwargs=None)
registered_async(key: str, args=None, kwargs=None)
registered_remote(key: str, args=None, kwargs=None)
# destroy the group, global rpc does not have this function, since it has "shutdown"
# also deregister the group along with values, services from the global discovery manager
destroy()
# info accessors
# returns a list of member names
get_members() -> List[str]
# judge whether the target process is a member of this group, by default it is the current process
is_member(name: str=None) -> bool
# group name
get_group_name() -> str
# number of group members
size() -> int
</code></pre></div>
<p dir="auto">the pair/register process happens with two stages:</p>
<ol dir="auto">
<li>register to local map</li>
<li>push the result to a global discovery manager</li>
</ol>
<p dir="auto">the unpair/deregister process happens with two stages:</p>
<ol dir="auto">
<li>degister from local map</li>
<li>push the result to a global discovery manager</li>
</ol>
<p dir="auto">the get_paired/registered call process happens with two stages:</p>
<ol dir="auto">
<li>look up the local discovery cache (every process has it)</li>
<li>if cache does not contain the address: (group, process name, key, query_type), query the global discovery manager</li>
<li>otherwise go to the target address</li>
<li>if the target group has been destroyed / target value deregistered, return look up failed exception</li>
<li>otherwise go on as normal, return the result or execute the service</li>
</ol>
<p dir="auto">In order to discover a shared value / an exposed service, a register thread / process must be started once <code class="notranslate">rpc.init_rpc</code> or <code class="notranslate">rpc.init_auto</code> has been called, since torchelastic tears down and restart all processes when at least one processes becomes unhealthy, it is reasonable to regard the period in between as stable.<br>
Therefore, we can create a register service on a fixed process such as the process with rank=0, or use a more sophisticated service management infrastructure such as zookeeper, we should allow users to choose the discovery backend by specifying it in the <code class="notranslate">ProcessGroupRpcBackendOptions</code> passed to <code class="notranslate">rpc.init_rpc</code> and <code class="notranslate">rpc.init_auto</code>.<br>
To prevent the explosion of discovery queries, a local query cache should be placed on each process and store looked up values, outdated address values (caused by <code class="notranslate">unpair</code> or <code class="notranslate">deregister</code>) will be cleared when <code class="notranslate">get_paired</code> or <code class="notranslate">registered_sync</code> etc. returns a lookup-failed signal.</p>
<h3 dir="auto">RPC Info Accessors</h3>
<p dir="auto">Some times users may want to dive deeper and see the actual mapping relation. <code class="notranslate">rpc.get_role_map()</code> will return a dictionary mapping role name to global process rank.<br>
<strong>This part is open to discussion</strong></p>
<h3 dir="auto">Launching utilities</h3>
<p dir="auto">Since torchelastic currently is not included in the default pytorch installation, a new launching utility similar to <code class="notranslate">torch.distributed.launch</code> should be included, its name could be <code class="notranslate">torch.distributed.launch_roles</code>, or it could be merged into <code class="notranslate">torch.distributed.launch</code>. this utility should be able to takein a list of roles and spawn subprocesses, allocating roles to global ranks like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="worker:0 -> Process 0, Node 0
worker:1 -> Process 1, Node 0
worker:2 -> Process 2, Node 0
worker:3 -> Process 0, Node 1
manager:0 -> Process 1, Node 1
manager:1 -> Process 2, Node 1"><pre class="notranslate"><code class="notranslate">worker:0 -> Process 0, Node 0
worker:1 -> Process 1, Node 0
worker:2 -> Process 2, Node 0
worker:3 -> Process 0, Node 1
manager:0 -> Process 1, Node 1
manager:1 -> Process 2, Node 1
</code></pre></div>
<p dir="auto">when invoked with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Node 0:
python -m torch.distributed.launch --nproc_per_node=3 --role=worker:4 --role=manager:2
--nnodes=2 --node_rank=0 --master_addr="192.168.1.1"
--master_port=1234 YOUR_TRAINING_SCRIPT.py (--arg1 --arg2 --arg3
and all other arguments of your training script)
Node 1:
python -m torch.distributed.launch --nproc_per_node=3 --role=worker:4 --role=manager:2
--nnodes=2 --node_rank=1 --master_addr="192.168.1.1"
--master_port=1234 YOUR_TRAINING_SCRIPT.py (--arg1 --arg2 --arg3
and all other arguments of your training script)
"><pre class="notranslate"><code class="notranslate">Node 0:
python -m torch.distributed.launch --nproc_per_node=3 --role=worker:4 --role=manager:2
--nnodes=2 --node_rank=0 --master_addr="192.168.1.1"
--master_port=1234 YOUR_TRAINING_SCRIPT.py (--arg1 --arg2 --arg3
and all other arguments of your training script)
Node 1:
python -m torch.distributed.launch --nproc_per_node=3 --role=worker:4 --role=manager:2
--nnodes=2 --node_rank=1 --master_addr="192.168.1.1"
--master_port=1234 YOUR_TRAINING_SCRIPT.py (--arg1 --arg2 --arg3
and all other arguments of your training script)
</code></pre></div>
<p dir="auto">and <code class="notranslate">nproc_per_node * nnodes >= num of all roles</code>, otherwise an exception must be thrown.</p>
<h3 dir="auto">Failure Handling Behaviors (naive launching tool)</h3>
<p dir="auto">No failure could be dealt with, one process fails, all processes fail.</p>
<h3 dir="auto">Failure Handling Behaviors (torchelastic)</h3>
<p dir="auto">This section describes the types of failures and who/how those failures are handled, when users are launching the application with torchelastic.</p>
<p dir="auto">We focus on worker process(es) failure since a node failure can be viewed as multiple worker failures. In general TorchElastic views failures as two scaling events: scale-down + scale-up. In TorchElastic the world size is fixed between "rounds" of quorum where "rounds" is defined as the state of the world between two rendezvous versions. Between rounds ALL existing workers are shut down and restarted, hence TorchElastic follows a "all-or-nothing" model when it comes to dealing with faults.</p>
<p dir="auto">There are three types of torch applications that we care about:</p>
<p dir="auto">RPC only (no process groups)<br>
RPC + DDP<br>
RPC + DDP + Pipelining<br>
In all three cases the following behavior on failures is guaranteed by TorchElastic:</p>
<ol dir="auto">
<li>Worker process(es) fail</li>
<li>elastic agent detects the failure</li>
<li>elastic agent tears down all other workers on the same host</li>
<li>elastic agent enters a re-rendezvous</li>
<li>other elastic agents are notified of the re-rendezvous event</li>
<li>other elastic agents tear down all their respective local workers</li>
<li>all elastic agents re-rendezvous (e.g. next round) and get assigned a rank</li>
<li>each elastic agent computes the worker ranks based on the agent ranks</li>
<li>all elastic agents restart the worker processes<br>
Note: This implies that work between checkpoints are lost.</li>
</ol>
<p dir="auto">Note on node failure: TorchElastic is NOT a scheduler hence it cannot deal with replacement of NODES. We rely on the scheduler to replace failed nodes (or containers). Assuming the scheduler replaces the failed node the following behavior is observed on node failures:</p>
<ol dir="auto">
<li>Node(s) fail and are replaced by the scheduler</li>
<li>Elastic agents are started on the replaced nodes and attempt to join the rendezvous</li>
<li>The surviving agents are notified of such event and they all tear down their local workers and re-rendezvous</li>
<li>A new version of rendezvous (e.g. round) is created and the worker processes are started again.</li>
</ol>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pietern/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pietern">@pietern</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mrshenli/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mrshenli">@mrshenli</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kiukchung/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kiukchung">@kiukchung</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pritamdamania87/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pritamdamania87">@pritamdamania87</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zhaojuanmao/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zhaojuanmao">@zhaojuanmao</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/satgera/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/satgera">@satgera</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gqchen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gqchen">@gqchen</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aazzolini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aazzolini">@aazzolini</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rohan-varma/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rohan-varma">@rohan-varma</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/xush6528/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/xush6528">@xush6528</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jjlilley/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jjlilley">@jjlilley</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/osalpekar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/osalpekar">@osalpekar</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jiayisuse/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jiayisuse">@jiayisuse</a></p> | 0 |
<p dir="auto">If we're in for the openess and effectiveness of the whole thing...</p>
<p dir="auto">(1) Why not using gitter.im ?</p>
<p dir="auto">I also believe we should have a discourse forums, which I'm more than willing to help / set up if you really need (just can't pay for it or move people from the mailing list without being official).</p>
<p dir="auto">(2) Yes, discourse would be a <strong>perfect</strong> replacement for the mailing list <strong>and</strong> to this Issue tracker. :)</p> | <h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: No</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Windows 10</li>
<li><strong>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device</strong>:</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: source</li>
<li><strong>TensorFlow version (use command below)</strong>: master</li>
<li><strong>Python version</strong>: 3.5.4</li>
<li><strong>Bazel version (if compiling from source)</strong>: 1.18.0</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>: Visual C++ Build Tools 2015</li>
<li><strong>CUDA/cuDNN version</strong>: CUDA 9.2, cuDNN 7.2.1</li>
<li><strong>GPU model and memory</strong>: NVIDIA 1080 GTX</li>
<li><strong>Exact command to reproduce</strong>: bazel build --config=opt --config=cuda --copt=-nvcc_options=disable-warnings --define=no_tensorflow_py_deps=true //tensorflow/tools/pip_package:build_pip_package</li>
</ul>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">I am trying to build tensorflow from source.<br>
Build fail if compiling with compute capability 6.1 (but build fine with compute capability 3.7).<br>
I am getting the following error when I run bazel build command.</p>
<h3 dir="auto">Source code / logs</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: C:/tensorflow/tensorflow/core/kernels/BUILD:4714:1: C++ compilation of rule '//tensorflow/core/kernels:multinomial_op_gpu' failed (Exit 1): msvc_wrapper_for_nvcc.bat failed: error executing command
cd C:/users/em/_bazel_em/xv6zejqw/execroot/org_tensorflow
SET CUDA_TOOLKIT_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.2
SET CUDNN_INSTALL_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.2
SET INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE;C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt;C:\Program Files (x86)\Windows Kits\8.1\include\shared;C:\Program Files (x86)\Windows Kits\8.1\include\um;C:\Program Files (x86)\Windows Kits\8.1\include\winrt;
SET LIB=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64;
SET PATH=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64;C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319;C:\WINDOWS\Microsoft.NET\Framework64\;C:\Program Files (x86)\Windows Kits\8.1\bin\x64;C:\Program Files (x86)\Windows Kits\8.1\bin\x86;;C:\WINDOWS\system32
SET PWD=/proc/self/cwd
SET PYTHON_BIN_PATH=C:/Users/em/AppData/Local/Programs/Python/Python35/python.exe
SET PYTHON_LIB_PATH=C:/Users/em/AppData/Local/Programs/Python/Python35/lib/site-packages
SET TEMP=C:\Users\em\AppData\Local\Temp
SET TF_CUDA_CLANG=0
SET TF_CUDA_COMPUTE_CAPABILITIES=6.1
SET TF_CUDA_VERSION=9.2
SET TF_CUDNN_VERSION=7
SET TF_NEED_CUDA=1
SET TF_NEED_OPENCL_SYCL=0
SET TF_NEED_ROCM=0
SET TMP=C:\Users\em\AppData\Local\Temp
external/local_config_cuda/crosstool/windows/msvc_wrapper_for_nvcc.bat /nologo /DCOMPILER_MSVC /DNOMINMAX /D_WIN32_WINNT=0x0600 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS /D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS /bigobj /Zm500 /J /Gy /GF /EHsc /wd4351 /wd4291 /wd4250 /wd4996 /I. /Ibazel-out/x64_windows-opt/genfiles /Ibazel-out/x64_windows-opt/bin /Iexternal/com_google_absl /Ibazel-out/x64_windows-opt/genfiles/external/com_google_absl /Ibazel-out/x64_windows-opt/bin/external/com_google_absl /Iexternal/bazel_tools /Ibazel-out/x64_windows-opt/genfiles/external/bazel_tools /Ibazel-out/x64_windows-opt/bin/external/bazel_tools /Iexternal/eigen_archive /Ibazel-out/x64_windows-opt/genfiles/external/eigen_archive /Ibazel-out/x64_windows-opt/bin/external/eigen_archive /Iexternal/local_config_sycl /Ibazel-out/x64_windows-opt/genfiles/external/local_config_sycl /Ibazel-out/x64_windows-opt/bin/external/local_config_sycl /Iexternal/nsync /Ibazel-out/x64_windows-opt/genfiles/external/nsync /Ibazel-out/x64_windows-opt/bin/external/nsync /Iexternal/gif_archive /Ibazel-out/x64_windows-opt/genfiles/external/gif_archive /Ibazel-out/x64_windows-opt/bin/external/gif_archive /Iexternal/jpeg /Ibazel-out/x64_windows-opt/genfiles/external/jpeg /Ibazel-out/x64_windows-opt/bin/external/jpeg /Iexternal/protobuf_archive /Ibazel-out/x64_windows-opt/genfiles/external/protobuf_archive /Ibazel-out/x64_windows-opt/bin/external/protobuf_archive /Iexternal/com_googlesource_code_re2 /Ibazel-out/x64_windows-opt/genfiles/external/com_googlesource_code_re2 /Ibazel-out/x64_windows-opt/bin/external/com_googlesource_code_re2 /Iexternal/farmhash_archive /Ibazel-out/x64_windows-opt/genfiles/external/farmhash_archive /Ibazel-out/x64_windows-opt/bin/external/farmhash_archive /Iexternal/fft2d /Ibazel-out/x64_windows-opt/genfiles/external/fft2d /Ibazel-out/x64_windows-opt/bin/external/fft2d /Iexternal/highwayhash /Ibazel-out/x64_windows-opt/genfiles/external/highwayhash /Ibazel-out/x64_windows-opt/bin/external/highwayhash /Iexternal/zlib_archive /Ibazel-out/x64_windows-opt/genfiles/external/zlib_archive /Ibazel-out/x64_windows-opt/bin/external/zlib_archive /Iexternal/double_conversion /Ibazel-out/x64_windows-opt/genfiles/external/double_conversion /Ibazel-out/x64_windows-opt/bin/external/double_conversion /Iexternal/snappy /Ibazel-out/x64_windows-opt/genfiles/external/snappy /Ibazel-out/x64_windows-opt/bin/external/snappy /Iexternal/local_config_cuda /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda /Iexternal/eigen_archive /Ibazel-out/x64_windows-opt/genfiles/external/eigen_archive /Ibazel-out/x64_windows-opt/bin/external/eigen_archive /Iexternal/nsync/public /Ibazel-out/x64_windows-opt/genfiles/external/nsync/public /Ibazel-out/x64_windows-opt/bin/external/nsync/public /Iexternal/gif_archive/lib /Ibazel-out/x64_windows-opt/genfiles/external/gif_archive/lib /Ibazel-out/x64_windows-opt/bin/external/gif_archive/lib /Iexternal/gif_archive/windows /Ibazel-out/x64_windows-opt/genfiles/external/gif_archive/windows /Ibazel-out/x64_windows-opt/bin/external/gif_archive/windows /Iexternal/protobuf_archive/src /Ibazel-out/x64_windows-opt/genfiles/external/protobuf_archive/src /Ibazel-out/x64_windows-opt/bin/external/protobuf_archive/src /Iexternal/farmhash_archive/src /Ibazel-out/x64_windows-opt/genfiles/external/farmhash_archive/src /Ibazel-out/x64_windows-opt/bin/external/farmhash_archive/src /Iexternal/zlib_archive /Ibazel-out/x64_windows-opt/genfiles/external/zlib_archive /Ibazel-out/x64_windows-opt/bin/external/zlib_archive /Iexternal/double_conversion /Ibazel-out/x64_windows-opt/genfiles/external/double_conversion /Ibazel-out/x64_windows-opt/bin/external/double_conversion /Iexternal/local_config_cuda/cuda /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda/cuda /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda /Iexternal/local_config_cuda/cuda/cuda/include /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda/cuda/cuda/include /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda/cuda/include /Iexternal/local_config_cuda/cuda/cuda/include/crt /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda/cuda/cuda/include/crt /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda/cuda/include/crt /D__CLANG_SUPPORT_DYN_ANNOTATION__ /DEIGEN_MPL2_ONLY /DEIGEN_MAX_ALIGN_BYTES=64 /DTF_USE_SNAPPY /showIncludes /MD /O2 /DNDEBUG -w /arch:AVX2 -nvcc_options=disable-warnings -DGOOGLE_CUDA=1 -DTENSORFLOW_MONOLITHIC_BUILD /DPLATFORM_WINDOWS /DEIGEN_HAS_C99_MATH /DTENSORFLOW_USE_EIGEN_THREADPOOL /DEIGEN_AVOID_STL_ARRAY /Iexternal/gemmlowp /wd4018 /wd4577 /DNOGDI /DTF_COMPILE_LIBRARY -x cuda -DGOOGLE_CUDA=1 -nvcc_options=relaxed-constexpr -nvcc_options=ftz=true /Fobazel-out/x64_windows-opt/bin/tensorflow/core/kernels/_objs/multinomial_op_gpu/multinomial_op_gpu.cu.o /c tensorflow/core/kernels/multinomial_op_gpu.cu.cc
c:\users\em\_bazel_em\xv6zejqw\execroot\org_tensorflow\external\eigen_archive\eigen\src/Core/arch/CUDA/Half.h(212): error: more than one instance of overloaded function "__hadd" matches the argument list:
function "__hadd(int, int)"
function "__hadd(__half, __half)"
argument types are: (const Eigen::half, const Eigen::half)
1 error detected in the compilation of "C:/Users/em/AppData/Local/Temp/nvcc_inter_files_tmp_dir/multinomial_op_gpu.cu.cpp1.ii".
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 772.580s, Critical Path: 147.05s
INFO: 1931 processes: 1931 local.
FAILED: Build did NOT complete successfully"><pre class="notranslate"><code class="notranslate">ERROR: C:/tensorflow/tensorflow/core/kernels/BUILD:4714:1: C++ compilation of rule '//tensorflow/core/kernels:multinomial_op_gpu' failed (Exit 1): msvc_wrapper_for_nvcc.bat failed: error executing command
cd C:/users/em/_bazel_em/xv6zejqw/execroot/org_tensorflow
SET CUDA_TOOLKIT_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.2
SET CUDNN_INSTALL_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.2
SET INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE;C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt;C:\Program Files (x86)\Windows Kits\8.1\include\shared;C:\Program Files (x86)\Windows Kits\8.1\include\um;C:\Program Files (x86)\Windows Kits\8.1\include\winrt;
SET LIB=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64;
SET PATH=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64;C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319;C:\WINDOWS\Microsoft.NET\Framework64\;C:\Program Files (x86)\Windows Kits\8.1\bin\x64;C:\Program Files (x86)\Windows Kits\8.1\bin\x86;;C:\WINDOWS\system32
SET PWD=/proc/self/cwd
SET PYTHON_BIN_PATH=C:/Users/em/AppData/Local/Programs/Python/Python35/python.exe
SET PYTHON_LIB_PATH=C:/Users/em/AppData/Local/Programs/Python/Python35/lib/site-packages
SET TEMP=C:\Users\em\AppData\Local\Temp
SET TF_CUDA_CLANG=0
SET TF_CUDA_COMPUTE_CAPABILITIES=6.1
SET TF_CUDA_VERSION=9.2
SET TF_CUDNN_VERSION=7
SET TF_NEED_CUDA=1
SET TF_NEED_OPENCL_SYCL=0
SET TF_NEED_ROCM=0
SET TMP=C:\Users\em\AppData\Local\Temp
external/local_config_cuda/crosstool/windows/msvc_wrapper_for_nvcc.bat /nologo /DCOMPILER_MSVC /DNOMINMAX /D_WIN32_WINNT=0x0600 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS /D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS /bigobj /Zm500 /J /Gy /GF /EHsc /wd4351 /wd4291 /wd4250 /wd4996 /I. /Ibazel-out/x64_windows-opt/genfiles /Ibazel-out/x64_windows-opt/bin /Iexternal/com_google_absl /Ibazel-out/x64_windows-opt/genfiles/external/com_google_absl /Ibazel-out/x64_windows-opt/bin/external/com_google_absl /Iexternal/bazel_tools /Ibazel-out/x64_windows-opt/genfiles/external/bazel_tools /Ibazel-out/x64_windows-opt/bin/external/bazel_tools /Iexternal/eigen_archive /Ibazel-out/x64_windows-opt/genfiles/external/eigen_archive /Ibazel-out/x64_windows-opt/bin/external/eigen_archive /Iexternal/local_config_sycl /Ibazel-out/x64_windows-opt/genfiles/external/local_config_sycl /Ibazel-out/x64_windows-opt/bin/external/local_config_sycl /Iexternal/nsync /Ibazel-out/x64_windows-opt/genfiles/external/nsync /Ibazel-out/x64_windows-opt/bin/external/nsync /Iexternal/gif_archive /Ibazel-out/x64_windows-opt/genfiles/external/gif_archive /Ibazel-out/x64_windows-opt/bin/external/gif_archive /Iexternal/jpeg /Ibazel-out/x64_windows-opt/genfiles/external/jpeg /Ibazel-out/x64_windows-opt/bin/external/jpeg /Iexternal/protobuf_archive /Ibazel-out/x64_windows-opt/genfiles/external/protobuf_archive /Ibazel-out/x64_windows-opt/bin/external/protobuf_archive /Iexternal/com_googlesource_code_re2 /Ibazel-out/x64_windows-opt/genfiles/external/com_googlesource_code_re2 /Ibazel-out/x64_windows-opt/bin/external/com_googlesource_code_re2 /Iexternal/farmhash_archive /Ibazel-out/x64_windows-opt/genfiles/external/farmhash_archive /Ibazel-out/x64_windows-opt/bin/external/farmhash_archive /Iexternal/fft2d /Ibazel-out/x64_windows-opt/genfiles/external/fft2d /Ibazel-out/x64_windows-opt/bin/external/fft2d /Iexternal/highwayhash /Ibazel-out/x64_windows-opt/genfiles/external/highwayhash /Ibazel-out/x64_windows-opt/bin/external/highwayhash /Iexternal/zlib_archive /Ibazel-out/x64_windows-opt/genfiles/external/zlib_archive /Ibazel-out/x64_windows-opt/bin/external/zlib_archive /Iexternal/double_conversion /Ibazel-out/x64_windows-opt/genfiles/external/double_conversion /Ibazel-out/x64_windows-opt/bin/external/double_conversion /Iexternal/snappy /Ibazel-out/x64_windows-opt/genfiles/external/snappy /Ibazel-out/x64_windows-opt/bin/external/snappy /Iexternal/local_config_cuda /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda /Iexternal/eigen_archive /Ibazel-out/x64_windows-opt/genfiles/external/eigen_archive /Ibazel-out/x64_windows-opt/bin/external/eigen_archive /Iexternal/nsync/public /Ibazel-out/x64_windows-opt/genfiles/external/nsync/public /Ibazel-out/x64_windows-opt/bin/external/nsync/public /Iexternal/gif_archive/lib /Ibazel-out/x64_windows-opt/genfiles/external/gif_archive/lib /Ibazel-out/x64_windows-opt/bin/external/gif_archive/lib /Iexternal/gif_archive/windows /Ibazel-out/x64_windows-opt/genfiles/external/gif_archive/windows /Ibazel-out/x64_windows-opt/bin/external/gif_archive/windows /Iexternal/protobuf_archive/src /Ibazel-out/x64_windows-opt/genfiles/external/protobuf_archive/src /Ibazel-out/x64_windows-opt/bin/external/protobuf_archive/src /Iexternal/farmhash_archive/src /Ibazel-out/x64_windows-opt/genfiles/external/farmhash_archive/src /Ibazel-out/x64_windows-opt/bin/external/farmhash_archive/src /Iexternal/zlib_archive /Ibazel-out/x64_windows-opt/genfiles/external/zlib_archive /Ibazel-out/x64_windows-opt/bin/external/zlib_archive /Iexternal/double_conversion /Ibazel-out/x64_windows-opt/genfiles/external/double_conversion /Ibazel-out/x64_windows-opt/bin/external/double_conversion /Iexternal/local_config_cuda/cuda /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda/cuda /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda /Iexternal/local_config_cuda/cuda/cuda/include /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda/cuda/cuda/include /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda/cuda/include /Iexternal/local_config_cuda/cuda/cuda/include/crt /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda/cuda/cuda/include/crt /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda/cuda/include/crt /D__CLANG_SUPPORT_DYN_ANNOTATION__ /DEIGEN_MPL2_ONLY /DEIGEN_MAX_ALIGN_BYTES=64 /DTF_USE_SNAPPY /showIncludes /MD /O2 /DNDEBUG -w /arch:AVX2 -nvcc_options=disable-warnings -DGOOGLE_CUDA=1 -DTENSORFLOW_MONOLITHIC_BUILD /DPLATFORM_WINDOWS /DEIGEN_HAS_C99_MATH /DTENSORFLOW_USE_EIGEN_THREADPOOL /DEIGEN_AVOID_STL_ARRAY /Iexternal/gemmlowp /wd4018 /wd4577 /DNOGDI /DTF_COMPILE_LIBRARY -x cuda -DGOOGLE_CUDA=1 -nvcc_options=relaxed-constexpr -nvcc_options=ftz=true /Fobazel-out/x64_windows-opt/bin/tensorflow/core/kernels/_objs/multinomial_op_gpu/multinomial_op_gpu.cu.o /c tensorflow/core/kernels/multinomial_op_gpu.cu.cc
c:\users\em\_bazel_em\xv6zejqw\execroot\org_tensorflow\external\eigen_archive\eigen\src/Core/arch/CUDA/Half.h(212): error: more than one instance of overloaded function "__hadd" matches the argument list:
function "__hadd(int, int)"
function "__hadd(__half, __half)"
argument types are: (const Eigen::half, const Eigen::half)
1 error detected in the compilation of "C:/Users/em/AppData/Local/Temp/nvcc_inter_files_tmp_dir/multinomial_op_gpu.cu.cpp1.ii".
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 772.580s, Critical Path: 147.05s
INFO: 1931 processes: 1931 local.
FAILED: Build did NOT complete successfully
</code></pre></div> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/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 should be able to edit the values of inputs inside of a modal.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">The input receives focus however, I am unable to edit the contents</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">Demo: <a href="https://codesandbox.io/s/73rov1z63j" rel="nofollow">https://codesandbox.io/s/73rov1z63j</a></p>
<ol dir="auto">
<li>Add an Input to a Modal</li>
<li>Open the Modal and try to edit the contents of said Input...</li>
</ol>
<h2 dir="auto">Context</h2>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>1.0.0-beta.27</td>
</tr>
<tr>
<td>React</td>
<td>16.2.0</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome 63.0.3239.132</td>
</tr>
</tbody>
</table> | <p dir="auto">We discussed this already in chat with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nathanmarks/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nathanmarks">@nathanmarks</a>. I thought it would be good to have a public discussion on this. My idea is to have a component property <code class="notranslate">variant</code> which can be used to define a styling variation.</p>
<p dir="auto">In case of a Button, raised or primary state can be implemented over a variant internally (and stay backwards compatible) as well.</p>
<p dir="auto">This opens a door for different use cases, where you have a button but slightly changed, for e.g. with a different color or without a border or anything else. Using a theme user can define a custom variation and pass the variant over the props.</p>
<p dir="auto">Example</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const theme = createMuiTheme({
Button: {
variants: {
special: {
root: {
borderRadius: 0
}
}
}
}
})
<ThemeProvider theme={theme}>
<Button variant="special">Special Button</Button>
</themeProvider>
"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">theme</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">Button</span>: <span class="pl-kos">{</span>
<span class="pl-c1">variants</span>: <span class="pl-kos">{</span>
<span class="pl-c1">special</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-kos">)</span>
<span class="pl-c1"><</span><span class="pl-v">ThemeProvider</span> <span class="pl-s1">theme</span><span class="pl-c1">=</span><span class="pl-kos">{</span>theme<span class="pl-kos">}</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">Button</span> <span class="pl-c1">variant</span><span class="pl-c1">=</span><span class="pl-s">"special"</span><span class="pl-c1">></span>Special Button<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">Button</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span>themeProvider></pre></div> | 0 |
<p dir="auto">see SO <a href="https://stackoverflow.com/questions/46074372/fastest-method-of-filtering-a-pandas-data-frame-by-category/46085920#46085920" rel="nofollow">here</a></p>
<p dir="auto">These are naturally duplicated indexes. These are handled in the underyling code using a pretty inefficient method of indexing.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd
import numpy as np
import string
np.random.seed(1234)
df = pd.DataFrame({'categories': np.tile(np.random.choice(list(string.ascii_letters), 100000), 100),
'values': np.tile(np.random.choice([0,1], 100000), 100)})
df['categories'] = df['categories'].astype('category')
# using the group indexer
In [63]: %timeit -n 3 -r 1 df.take(np.sort(np.concatenate([v for k, v in df.groupby('categories').indices.items() if k in string.ascii_lowercase])))
361 ms +- 0 ns per loop (mean +- std. dev. of 1 run, 3 loops each)
# direct map
In [51]: %timeit -n 3 -r 1 df[df.categories.map(lambda x: x in string.ascii_lowercase)]
625 ms +- 0 ns per loop (mean +- std. dev. of 1 run, 3 loops each)
# isin
In [52]: %timeit -n 3 -r 1 df[df['categories'].isin(list(string.ascii_lowercase))]
456 ms +- 0 ns per loop (mean +- std. dev. of 1 run, 3 loops each)
# groupby with filter
In [53]: %timeit -n 3 -r 1 df.groupby('categories', as_index=False).filter(lambda x: x.name in string.ascii_lowercase)
1.1 s +- 0 ns per loop (mean +- std. dev. of 1 run, 3 loops each)
# loc (fixme!)
In [54]: %timeit -n 3 -r 1 df.set_index('categories').reindex(list(string.ascii_lowercase)).reset_index()
15.4 s +- 0 ns per loop (mean +- std. dev. of 1 run, 3 loops each)"><pre class="notranslate"><code class="notranslate">import pandas as pd
import numpy as np
import string
np.random.seed(1234)
df = pd.DataFrame({'categories': np.tile(np.random.choice(list(string.ascii_letters), 100000), 100),
'values': np.tile(np.random.choice([0,1], 100000), 100)})
df['categories'] = df['categories'].astype('category')
# using the group indexer
In [63]: %timeit -n 3 -r 1 df.take(np.sort(np.concatenate([v for k, v in df.groupby('categories').indices.items() if k in string.ascii_lowercase])))
361 ms +- 0 ns per loop (mean +- std. dev. of 1 run, 3 loops each)
# direct map
In [51]: %timeit -n 3 -r 1 df[df.categories.map(lambda x: x in string.ascii_lowercase)]
625 ms +- 0 ns per loop (mean +- std. dev. of 1 run, 3 loops each)
# isin
In [52]: %timeit -n 3 -r 1 df[df['categories'].isin(list(string.ascii_lowercase))]
456 ms +- 0 ns per loop (mean +- std. dev. of 1 run, 3 loops each)
# groupby with filter
In [53]: %timeit -n 3 -r 1 df.groupby('categories', as_index=False).filter(lambda x: x.name in string.ascii_lowercase)
1.1 s +- 0 ns per loop (mean +- std. dev. of 1 run, 3 loops each)
# loc (fixme!)
In [54]: %timeit -n 3 -r 1 df.set_index('categories').reindex(list(string.ascii_lowercase)).reset_index()
15.4 s +- 0 ns per loop (mean +- std. dev. of 1 run, 3 loops each)
</code></pre></div> | <p dir="auto">there’s no way to drop rows with duplicated index using <code class="notranslate">drop_duplicates</code>.</p>
<p dir="auto">we’d have to add a copy of the index as column, or do this:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="df[np.logical_not(df.index.duplicated(take_last=True).values)]"><pre class="notranslate"><span class="pl-s1">df</span>[<span class="pl-s1">np</span>.<span class="pl-en">logical_not</span>(<span class="pl-s1">df</span>.<span class="pl-s1">index</span>.<span class="pl-en">duplicated</span>(<span class="pl-s1">take_last</span><span class="pl-c1">=</span><span class="pl-c1">True</span>).<span class="pl-s1">values</span>)]</pre></div> | 0 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=schlaufuchs" rel="nofollow">Kai Hackemesser</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8583?redirect=false" rel="nofollow">SPR-8583</a></strong> and commented</p>
<p dir="auto">I have the web application context and the servlet context converted from xml to java config. The web.xml is updated according to the online documentation example. I use <code class="notranslate">@Autowire</code> annotation in the servlet config to get the beans required for the form controllers. I have autowired the web application context config class, too, as I want to retrieve some fields from there that I have <code class="notranslate">@Value</code> annotated, by calling some type converting methods. The autowiring seems to fail as I get Nullpointer exceptions on lines where the webapp config class method is called. I was debugging the server: the web application context has been built using the config class and the fields I want to call methods on are filled properly. The <code class="notranslate">@Autowired</code> config field is null when the <code class="notranslate">@Bean</code> annotated method wants to use it.</p>
<p dir="auto">Here some short example lines from our project:</p>
<p dir="auto">web.xml:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
...
<servlet>
...
<init-param>
<param-name>contextClass</param-name>
<param-value>org.springframework.web.context.support.AnnotationConfigWebApplicationContext</param-value>
</init-param>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>com.ourcompany.ServletConfig</param-value>
</init-param>
...
</servlet>
...
<context-param>
<param-name>contextClass</param-name>
<param-value>
org.springframework.web.context.support.AnnotationConfigWebApplicationContext
</param-value>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
com.ourcompany.ApplicationConfig
</param-value>
</context-param>
...
</web-app>"><pre class="notranslate"><code class="notranslate"><?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
...
<servlet>
...
<init-param>
<param-name>contextClass</param-name>
<param-value>org.springframework.web.context.support.AnnotationConfigWebApplicationContext</param-value>
</init-param>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>com.ourcompany.ServletConfig</param-value>
</init-param>
...
</servlet>
...
<context-param>
<param-name>contextClass</param-name>
<param-value>
org.springframework.web.context.support.AnnotationConfigWebApplicationContext
</param-value>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
com.ourcompany.ApplicationConfig
</param-value>
</context-param>
...
</web-app>
</code></pre></div>
<p dir="auto">ServletConfig.java:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="...
@Configuration
@ImportResource("classpath:/META-INF/iem/servletPropertyConfigurer.xml")
public class ServletConfig
{
...
@Autowired
private ApplicationConfig applicationConfig;
...
@Bean
public DbStatsController dbStatsController()
{
DbStatsController controller = new DbStatsController();
controller.setManageUrl(applicationConfig.getDatabaseManageUrl());
...
return controller;
}
..."><pre class="notranslate"><code class="notranslate">...
@Configuration
@ImportResource("classpath:/META-INF/iem/servletPropertyConfigurer.xml")
public class ServletConfig
{
...
@Autowired
private ApplicationConfig applicationConfig;
...
@Bean
public DbStatsController dbStatsController()
{
DbStatsController controller = new DbStatsController();
controller.setManageUrl(applicationConfig.getDatabaseManageUrl());
...
return controller;
}
...
</code></pre></div>
<p dir="auto">ApplicationConfig.java:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Configuration("applicationConfig")
@ImportResource({
"classpath:/META-INF/..." })
public class ApplicationConfig
{
...
@Value("$[database.manage.url]")
private String databaseManageUrl;
...
public String getDatabaseManageUrl()
{
return databaseManageUrl;
}
"><pre class="notranslate"><code class="notranslate">@Configuration("applicationConfig")
@ImportResource({
"classpath:/META-INF/..." })
public class ApplicationConfig
{
...
@Value("$[database.manage.url]")
private String databaseManageUrl;
...
public String getDatabaseManageUrl()
{
return databaseManageUrl;
}
</code></pre></div>
<p dir="auto">Following the documentation a Config class can be autowired like any other bean, but it doesn't work here. and I don't get a BeanNotFound or similar exception, it just fails with a NullpointerException when trying to access the autowired field.</p>
<hr>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398113839" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13226" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13226/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13226">#13226</a> unresolvable circular reference when bean defined in xml config refers to bean defined in outer java config (<em><strong>"duplicates"</strong></em>)</li>
</ul> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=schlaufuchs" rel="nofollow">Kai Hackemesser</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8583?redirect=false" rel="nofollow">SPR-8583</a></strong> and commented</p>
<p dir="auto">I have the web application context and the servlet context converted from xml to java config. The web.xml is updated according to the online documentation example. I use <code class="notranslate">@Autowire</code> annotation in the servlet config to get the beans required for the form controllers. I have autowired the web application context config class, too, as I want to retrieve some fields from there that I have <code class="notranslate">@Value</code> annotated, by calling some type converting methods. The autowiring seems to fail as I get Nullpointer exceptions on lines where the webapp config class method is called. I was debugging the server: the web application context has been built using the config class and the fields I want to call methods on are filled properly. The <code class="notranslate">@Autowired</code> config field is null when the <code class="notranslate">@Bean</code> annotated method wants to use it.</p>
<p dir="auto">Here some short example lines from our project:</p>
<p dir="auto">web.xml:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
...
<servlet>
...
<init-param>
<param-name>contextClass</param-name>
<param-value>org.springframework.web.context.support.AnnotationConfigWebApplicationContext</param-value>
</init-param>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>com.ourcompany.ServletConfig</param-value>
</init-param>
...
</servlet>
...
<context-param>
<param-name>contextClass</param-name>
<param-value>
org.springframework.web.context.support.AnnotationConfigWebApplicationContext
</param-value>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
com.ourcompany.ApplicationConfig
</param-value>
</context-param>
...
</web-app>"><pre class="notranslate"><code class="notranslate"><?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
...
<servlet>
...
<init-param>
<param-name>contextClass</param-name>
<param-value>org.springframework.web.context.support.AnnotationConfigWebApplicationContext</param-value>
</init-param>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>com.ourcompany.ServletConfig</param-value>
</init-param>
...
</servlet>
...
<context-param>
<param-name>contextClass</param-name>
<param-value>
org.springframework.web.context.support.AnnotationConfigWebApplicationContext
</param-value>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
com.ourcompany.ApplicationConfig
</param-value>
</context-param>
...
</web-app>
</code></pre></div>
<p dir="auto">ServletConfig.java:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="...
@Configuration
@ImportResource("classpath:/META-INF/iem/servletPropertyConfigurer.xml")
public class ServletConfig
{
...
@Autowired
private ApplicationConfig applicationConfig;
...
@Bean
public DbStatsController dbStatsController()
{
DbStatsController controller = new DbStatsController();
controller.setManageUrl(applicationConfig.getDatabaseManageUrl());
...
return controller;
}
..."><pre class="notranslate"><code class="notranslate">...
@Configuration
@ImportResource("classpath:/META-INF/iem/servletPropertyConfigurer.xml")
public class ServletConfig
{
...
@Autowired
private ApplicationConfig applicationConfig;
...
@Bean
public DbStatsController dbStatsController()
{
DbStatsController controller = new DbStatsController();
controller.setManageUrl(applicationConfig.getDatabaseManageUrl());
...
return controller;
}
...
</code></pre></div>
<p dir="auto">ApplicationConfig.java:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Configuration("applicationConfig")
@ImportResource({
"classpath:/META-INF/..." })
public class ApplicationConfig
{
...
@Value("$[database.manage.url]")
private String databaseManageUrl;
...
public String getDatabaseManageUrl()
{
return databaseManageUrl;
}
"><pre class="notranslate"><code class="notranslate">@Configuration("applicationConfig")
@ImportResource({
"classpath:/META-INF/..." })
public class ApplicationConfig
{
...
@Value("$[database.manage.url]")
private String databaseManageUrl;
...
public String getDatabaseManageUrl()
{
return databaseManageUrl;
}
</code></pre></div>
<p dir="auto">Following the documentation a Config class can be autowired like any other bean, but it doesn't work here. and I don't get a BeanNotFound or similar exception, it just fails with a NullpointerException when trying to access the autowired field.</p>
<hr>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398113839" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13226" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13226/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13226">#13226</a> unresolvable circular reference when bean defined in xml config refers to bean defined in outer java config (<em><strong>"duplicates"</strong></em>)</li>
</ul> | 1 |
<p dir="auto">I want to reuse the previous version image for place holder how can i achieve this?</p> | <p dir="auto">I have one ImageView and a button which, when pressed, loads new image (from disk, not from network) into the same ImageView. Unfortunately it causes the first image to disappear for a second (showing white background) and then it loads the new image. How can I avoid that?<br>
I tried:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Glide.with(this).load(photoToLoad.getPath()).dontAnimate().dontTransform().into(imageView);"><pre class="notranslate"><code class="notranslate">Glide.with(this).load(photoToLoad.getPath()).dontAnimate().dontTransform().into(imageView);
</code></pre></div>
<p dir="auto">But the "blinking" still exists.<br>
The only solution I can think of is using two ImageViews with load listeners and showing/hiding them once the new image is loaded.</p>
<p dir="auto">Is there any better way to do this?</p> | 1 |
<p dir="auto">Repro script:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# run in npm/cli repo
set -x
rm -rf node_modules package-lock.json
git checkout node_modules
rm node_modules/.gitignore node_modules/.package-lock.json
node . i --no-audit --ignore-scripts
node . ls @babel/core # apparently ok, only bundled under tap
rm node_modules/.package-lock.json # remove the hidden lockfile
node . ls @babel/core # ohno! babel cores all over the place!"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> run in npm/cli repo</span>
<span class="pl-c1">set</span> -x
rm -rf node_modules package-lock.json
git checkout node_modules
rm node_modules/.gitignore node_modules/.package-lock.json
node <span class="pl-c1">.</span> i --no-audit --ignore-scripts
node <span class="pl-c1">.</span> ls @babel/core <span class="pl-c"><span class="pl-c">#</span> apparently ok, only bundled under tap</span>
rm node_modules/.package-lock.json <span class="pl-c"><span class="pl-c">#</span> remove the hidden lockfile</span>
node <span class="pl-c1">.</span> ls @babel/core <span class="pl-c"><span class="pl-c">#</span> ohno! babel cores all over the place!</span></pre></div>
<ol dir="auto">
<li>Why is the hidden lockfile being respected, when there are clearly package folders not found in its list?</li>
<li>Why is Arborist installing <code class="notranslate">@babel/core</code> v7.11 when the only thing depending on it has a copy from the bundle?</li>
</ol> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Original bug ticket: [https://npm.community/t/9499](https://npm.community/t/9499)
Originally filed: 2019-08-15T18:59:34.080Z"><pre class="notranslate"><code class="notranslate"> Original bug ticket: [https://npm.community/t/9499](https://npm.community/t/9499)
Originally filed: 2019-08-15T18:59:34.080Z
</code></pre></div>
<hr>
<p dir="auto">From original issue: <a href="https://npm.community/t/9499" rel="nofollow">https://npm.community/t/9499</a><br>
Debug log: n/a<br>
Action triggered: <code class="notranslate">npm install</code></p>
<p dir="auto">Platform Info:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ npm --versions
{
npm: '6.10.2',
ares: '1.15.0',
brotli: '1.0.7',
cldr: '35.1',
http_parser: '2.8.0',
icu: '64.2',
llhttp: '1.1.4',
modules: '72',
napi: '4',
nghttp2: '1.39.1',
node: '12.8.0',
openssl: '1.1.1c',
tz: '2019a',
unicode: '12.1',
uv: '1.30.1',
v8: '7.5.288.22-node.16',
zlib: '1.2.11'
}
$ node -p process.platform
win32"><pre class="notranslate"><code class="notranslate">$ npm --versions
{
npm: '6.10.2',
ares: '1.15.0',
brotli: '1.0.7',
cldr: '35.1',
http_parser: '2.8.0',
icu: '64.2',
llhttp: '1.1.4',
modules: '72',
napi: '4',
nghttp2: '1.39.1',
node: '12.8.0',
openssl: '1.1.1c',
tz: '2019a',
unicode: '12.1',
uv: '1.30.1',
v8: '7.5.288.22-node.16',
zlib: '1.2.11'
}
$ node -p process.platform
win32
</code></pre></div>
<p dir="auto">Additional information:<br>
Seems related, but signs of integrity error are present (which could be root cause)</p> | 0 |
<p dir="auto">Toastr is a simple but powerfull javascript library for displaying "Toast" message</p>
<p dir="auto">See here: <a href="http://codeseven.github.com/toastr/">http://codeseven.github.com/toastr/</a></p>
<p dir="auto">I'm not related in any way with toastr development, but actually it's not simple to use it while using bootstrap :(</p> | <p dir="auto">I know this is in the roadmap so just wanted to share some working code here even though it's not really in a point where I could commit a pull request as we are actively developing this functionality:</p>
<p dir="auto">bootstrap.growl.js</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="!function( $ ) {
$.fn.growl = function ( flash, params ) {
var growl = this
, params = params || {}
, type = params.text ? 'text' : 'html'
, text = growl.children('p').find('.text')
, label = growl.children('p').find('.label')
, timeout = params.timeout || 5000
;
function set_msg(severity,css,msg){
label[type](severity);
label.removeClass('important notice warning new');
label.addClass(css);
text[type](msg);
}
if(flash.error || flash.notice || flash.warning) {
if (flash.error) { set_msg('Error', 'important', flash.error); }
else if (flash.warning) { set_msg('Warning', 'warning', flash.warning); }
else if (flash.info) { set_msg('Info', 'notice', flash.notice); }
else if (flash.ok) { set_msg('Ok', 'new', flash.ok); }
growl.show('fast');
setTimeout(function() {
growl.hide('slow');
}, timeout);
}
};
}( window.jQuery || window.ender );"><pre class="notranslate"><span class="pl-c1">!</span><span class="pl-k">function</span><span class="pl-kos">(</span> <span class="pl-s1">$</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">$</span><span class="pl-kos">.</span><span class="pl-c1">fn</span><span class="pl-kos">.</span><span class="pl-en">growl</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span> <span class="pl-s1">flash</span><span class="pl-kos">,</span> <span class="pl-s1">params</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">growl</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span>
<span class="pl-kos">,</span> <span class="pl-s1">params</span> <span class="pl-c1">=</span> <span class="pl-s1">params</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">type</span> <span class="pl-c1">=</span> <span class="pl-s1">params</span><span class="pl-kos">.</span><span class="pl-c1">text</span> ? <span class="pl-s">'text'</span> : <span class="pl-s">'html'</span>
<span class="pl-kos">,</span> <span class="pl-s1">text</span> <span class="pl-c1">=</span> <span class="pl-s1">growl</span><span class="pl-kos">.</span><span class="pl-en">children</span><span class="pl-kos">(</span><span class="pl-s">'p'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">find</span><span class="pl-kos">(</span><span class="pl-s">'.text'</span><span class="pl-kos">)</span>
<span class="pl-kos">,</span> <span class="pl-s1">label</span> <span class="pl-c1">=</span> <span class="pl-s1">growl</span><span class="pl-kos">.</span><span class="pl-en">children</span><span class="pl-kos">(</span><span class="pl-s">'p'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">find</span><span class="pl-kos">(</span><span class="pl-s">'.label'</span><span class="pl-kos">)</span>
<span class="pl-kos">,</span> <span class="pl-s1">timeout</span> <span class="pl-c1">=</span> <span class="pl-s1">params</span><span class="pl-kos">.</span><span class="pl-c1">timeout</span> <span class="pl-c1">||</span> <span class="pl-c1">5000</span>
<span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-en">set_msg</span><span class="pl-kos">(</span><span class="pl-s1">severity</span><span class="pl-kos">,</span><span class="pl-s1">css</span><span class="pl-kos">,</span><span class="pl-s1">msg</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
<span class="pl-s1">label</span><span class="pl-kos">[</span><span class="pl-s1">type</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-s1">severity</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">label</span><span class="pl-kos">.</span><span class="pl-en">removeClass</span><span class="pl-kos">(</span><span class="pl-s">'important notice warning new'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">label</span><span class="pl-kos">.</span><span class="pl-en">addClass</span><span class="pl-kos">(</span><span class="pl-s1">css</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">text</span><span class="pl-kos">[</span><span class="pl-s1">type</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-s1">msg</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-s1">flash</span><span class="pl-kos">.</span><span class="pl-c1">error</span> <span class="pl-c1">||</span> <span class="pl-s1">flash</span><span class="pl-kos">.</span><span class="pl-c1">notice</span> <span class="pl-c1">||</span> <span class="pl-s1">flash</span><span class="pl-kos">.</span><span class="pl-c1">warning</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">flash</span><span class="pl-kos">.</span><span class="pl-c1">error</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">set_msg</span><span class="pl-kos">(</span><span class="pl-s">'Error'</span><span class="pl-kos">,</span> <span class="pl-s">'important'</span><span class="pl-kos">,</span> <span class="pl-s1">flash</span><span class="pl-kos">.</span><span class="pl-c1">error</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-k">else</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">flash</span><span class="pl-kos">.</span><span class="pl-c1">warning</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">set_msg</span><span class="pl-kos">(</span><span class="pl-s">'Warning'</span><span class="pl-kos">,</span> <span class="pl-s">'warning'</span><span class="pl-kos">,</span> <span class="pl-s1">flash</span><span class="pl-kos">.</span><span class="pl-c1">warning</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-k">else</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">flash</span><span class="pl-kos">.</span><span class="pl-c1">info</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">set_msg</span><span class="pl-kos">(</span><span class="pl-s">'Info'</span><span class="pl-kos">,</span> <span class="pl-s">'notice'</span><span class="pl-kos">,</span> <span class="pl-s1">flash</span><span class="pl-kos">.</span><span class="pl-c1">notice</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-k">else</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">flash</span><span class="pl-kos">.</span><span class="pl-c1">ok</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">set_msg</span><span class="pl-kos">(</span><span class="pl-s">'Ok'</span><span class="pl-kos">,</span> <span class="pl-s">'new'</span><span class="pl-kos">,</span> <span class="pl-s1">flash</span><span class="pl-kos">.</span><span class="pl-c1">ok</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-s1">growl</span><span class="pl-kos">.</span><span class="pl-en">show</span><span class="pl-kos">(</span><span class="pl-s">'fast'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">setTimeout</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">growl</span><span class="pl-kos">.</span><span class="pl-en">hide</span><span class="pl-kos">(</span><span class="pl-s">'slow'</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">timeout</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-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">jQuery</span> <span class="pl-c1">||</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">ender</span> <span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Sample CSS</p>
<div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=".growl { padding: 10px; position: fixed; top: 5px; left: 50%;
margin-left: -70px; background-color: rgba(0,0,0,0.5); z-index: 10; }
.growl p { color: #fff; margin: 0px;}"><pre class="notranslate">.<span class="pl-c1">growl</span> { <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; <span class="pl-c1">position</span><span class="pl-kos">:</span> fixed; <span class="pl-c1">top</span><span class="pl-kos">:</span> <span class="pl-c1">5<span class="pl-smi">px</span></span>; <span class="pl-c1">left</span><span class="pl-kos">:</span> <span class="pl-c1">50<span class="pl-smi">%</span></span>;
<span class="pl-c1">margin-left</span><span class="pl-kos">:</span> <span class="pl-c1">-70<span class="pl-smi">px</span></span>; <span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-en">rgba</span>(<span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0.5</span>); <span class="pl-c1">z-index</span><span class="pl-kos">:</span> <span class="pl-c1">10</span>; }
.<span class="pl-c1">growl</span> <span class="pl-ent">p</span> { <span class="pl-c1">color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>fff</span>; <span class="pl-c1">margin</span><span class="pl-kos">:</span> <span class="pl-c1">0<span class="pl-smi">px</span></span>;}</pre></div>
<p dir="auto">Sample HTML</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<div id="growl" class="growl round hero-shadow hide">
<p>
<span class="label important">Error</span>
<span class="text">hey</span>
</p>
</div>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">id</span>="<span class="pl-s">growl</span>" <span class="pl-c1">class</span>="<span class="pl-s">growl round hero-shadow hide</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">span</span> <span class="pl-c1">class</span>="<span class="pl-s">label important</span>"<span class="pl-kos">></span>Error<span class="pl-kos"></</span><span class="pl-ent">span</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">span</span> <span class="pl-c1">class</span>="<span class="pl-s">text</span>"<span class="pl-kos">></span>hey<span class="pl-kos"></</span><span class="pl-ent">span</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div>
<p dir="auto">Sample Invocation:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$('#growl').growl({error: 'hey'}, {})"><pre class="notranslate"><span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">'#growl'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">growl</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">error</span>: <span class="pl-s">'hey'</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">Code and stuff is super lame but as said before we are trying to ship product and can't really focus on this right now. But still one could adapt this easily and make it into bootstrap with a decent quality.</p> | 1 |
<p dir="auto"><em>(This seems to have some things in common with <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="121849248" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/6080" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/6080/hovercard" href="https://github.com/microsoft/TypeScript/issues/6080">#6080</a> and is strongly related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="50384290" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/1295" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/1295/hovercard" href="https://github.com/microsoft/TypeScript/issues/1295">#1295</a> as <a href="https://github.com/Microsoft/TypeScript/issues/1295#issuecomment-202388214" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/1295/hovercard">it can be used to provide an alternative solution to it</a> but l opened this separately since I did not feel it was appropriate to continue discussing it there and wanted to approach it in a more generalized way)</em></p>
<p dir="auto">This would provide improved type safety for cases where an interface property is referenced through a string having a value that's known at compile time:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="type MyType = { "ABC": number };
let x: MyType = { ABC: 42 };
const propName = "ABC"; // 'propName' received the literal type "ABC" (not string)
let y = x[propName]; // 'y' received the type MyType["ABC"] which resolved to 'number'"><pre class="notranslate"><span class="pl-k">type</span> <span class="pl-smi">MyType</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-s">"ABC"</span>: <span class="pl-smi">number</span> <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">x</span>: <span class="pl-smi">MyType</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">ABC</span>: <span class="pl-c1">42</span> <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">propName</span> <span class="pl-c1">=</span> <span class="pl-s">"ABC"</span><span class="pl-kos">;</span> <span class="pl-c">// 'propName' received the literal type "ABC" (not string)</span>
<span class="pl-k">let</span> <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span><span class="pl-kos">[</span><span class="pl-s1">propName</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-c">// 'y' received the type MyType["ABC"] which resolved to 'number'</span></pre></div>
<p dir="auto">And with support for generic types added, this could work similarly, but resolve to an intermediate type of the form <code class="notranslate">T[S]</code> where <code class="notranslate">T</code> is an object type and <code class="notranslate">S</code> is a string literal type:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function func<T extends object>() {
let x: T;
const propName = "ABC"; // 'propName' received the literal type "ABC"
let y = x[propName]; // 'y' would receive the type T["ABC"]
}"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">func</span><span class="pl-c1"><</span><span class="pl-smi">T</span> <span class="pl-k">extends</span> <span class="pl-smi">object</span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> <span class="pl-s1">x</span>: <span class="pl-smi">T</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">propName</span> <span class="pl-c1">=</span> <span class="pl-s">"ABC"</span><span class="pl-kos">;</span> <span class="pl-c">// 'propName' received the literal type "ABC"</span>
<span class="pl-k">let</span> <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span><span class="pl-kos">[</span><span class="pl-s1">propName</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-c">// 'y' would receive the type T["ABC"]</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">This could combine with <code class="notranslate">readonly</code> function parameters to provide an alternative solution for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="50384290" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/1295" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/1295/hovercard" href="https://github.com/microsoft/TypeScript/issues/1295">#1295</a> (which was actually <a href="https://github.com/Microsoft/TypeScript/issues/1295#issuecomment-202388214" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/1295/hovercard">where the idea was initially proposed</a>):</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function getProperty<T extends object, S extends string>(obj: T, readonly propName: S): T[S] {
return obj[propName];
}
// Here T resolves to { ABC: number }, S resolves to the literal type "ABC",
// and T[S] resolves to number
let x = getProperty({ABC: 42}, "ABC"); // Type of 'x' is number
// Here T resolves to { ABC: number }, S resolves to the literal type "CBA"
// and T[S] resolves to any
let x = getProperty({ABC: 42}, "CBA"); // Type of 'x' is any
// Here T resolves to { ABC: number }, S resolves to string
// and T[S] resolves to any
let x = getProperty({ABC: 42}, getRandomString()); // Type of 'x' is any"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">getProperty</span><span class="pl-c1"><</span><span class="pl-smi">T</span> <span class="pl-k">extends</span> <span class="pl-smi">object</span><span class="pl-kos">,</span> <span class="pl-smi">S</span> <span class="pl-k">extends</span> <span class="pl-smi">string</span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-s1">obj</span>: <span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-k">readonly</span> <span class="pl-s1">propName</span>: <span class="pl-smi">S</span><span class="pl-kos">)</span>: <span class="pl-smi">T</span><span class="pl-kos">[</span><span class="pl-smi">S</span><span class="pl-kos">]</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">obj</span><span class="pl-kos">[</span><span class="pl-s1">propName</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-c">// Here T resolves to { ABC: number }, S resolves to the literal type "ABC", </span>
<span class="pl-c">// and T[S] resolves to number</span>
<span class="pl-k">let</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-en">getProperty</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">ABC</span>: <span class="pl-c1">42</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"ABC"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Type of 'x' is number</span>
<span class="pl-c">// Here T resolves to { ABC: number }, S resolves to the literal type "CBA" </span>
<span class="pl-c">// and T[S] resolves to any</span>
<span class="pl-k">let</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-en">getProperty</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">ABC</span>: <span class="pl-c1">42</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"CBA"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Type of 'x' is any</span>
<span class="pl-c">// Here T resolves to { ABC: number }, S resolves to string</span>
<span class="pl-c">// and T[S] resolves to any</span>
<span class="pl-k">let</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-en">getProperty</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">ABC</span>: <span class="pl-c1">42</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">getRandomString</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Type of 'x' is any</span></pre></div>
<p dir="auto">This may similarly extend to <a href="https://github.com/Microsoft/TypeScript/pull/7480" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/TypeScript/pull/7480/hovercard">numeric literal types</a>, for tuples:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="type MyTupleType = [number, string, boolean];
let x: MyTupleType;
const index = 1; // 'index' received the literal type 1;
let y = x[index]; // 'y' received the type MyTupleType[1] which resolved to 'string'"><pre class="notranslate"><span class="pl-k">type</span> <span class="pl-smi">MyTupleType</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-smi">boolean</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">x</span>: <span class="pl-smi">MyTupleType</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">index</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-c">// 'index' received the literal type 1;</span>
<span class="pl-k">let</span> <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span><span class="pl-kos">[</span><span class="pl-s1">index</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-c">// 'y' received the type MyTupleType[1] which resolved to 'string'</span></pre></div>
<p dir="auto">And work with generic tuples as well:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function getTupleElement<T extends Array<any>, N extends number>(tuple: T, readonly index: N): T[N] {
return tuple[index];
}"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">getTupleElement</span><span class="pl-c1"><</span><span class="pl-smi">T</span> <span class="pl-k">extends</span> <span class="pl-smi">Array</span><span class="pl-kos"><</span><span class="pl-smi">any</span><span class="pl-kos">></span><span class="pl-kos">,</span> <span class="pl-smi">N</span> <span class="pl-k">extends</span> <span class="pl-smi">number</span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-s1">tuple</span>: <span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-k">readonly</span> <span class="pl-s1">index</span>: <span class="pl-smi">N</span><span class="pl-kos">)</span>: <span class="pl-smi">T</span><span class="pl-kos">[</span><span class="pl-smi">N</span><span class="pl-kos">]</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">tuple</span><span class="pl-kos">[</span><span class="pl-s1">index</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Same can be done with symbol literal types (haven't thought about that much though):</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function getSymbolProperty<T extends object, S extends symbol>(obj: T, readonly sym: S): T[S] {
return obj[sym];
}"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">getSymbolProperty</span><span class="pl-c1"><</span><span class="pl-smi">T</span> <span class="pl-k">extends</span> <span class="pl-smi">object</span><span class="pl-kos">,</span> <span class="pl-smi">S</span> <span class="pl-k">extends</span> <span class="pl-smi">symbol</span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-s1">obj</span>: <span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-k">readonly</span> <span class="pl-s1">sym</span>: <span class="pl-smi">S</span><span class="pl-kos">)</span>: <span class="pl-smi">T</span><span class="pl-kos">[</span><span class="pl-smi">S</span><span class="pl-kos">]</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">obj</span><span class="pl-kos">[</span><span class="pl-s1">sym</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div> | <p dir="auto">Hi,</p>
<p dir="auto">Constants aren't evaluate to access and cast properly union types values:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const ID = 0;
const NAME = 1;
let data: [number, string] = [0, "bob"];
// This need cast to compile
let id: number = data[ID];
let name: string = data[NAME];"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-smi">ID</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-smi">NAME</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">data</span>: <span class="pl-kos">[</span><span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-smi">string</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s">"bob"</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-c">// This need cast to compile</span>
<span class="pl-k">let</span> <span class="pl-s1">id</span>: <span class="pl-smi">number</span> <span class="pl-c1">=</span> <span class="pl-s1">data</span><span class="pl-kos">[</span><span class="pl-smi">ID</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">name</span>: <span class="pl-smi">string</span> <span class="pl-c1">=</span> <span class="pl-s1">data</span><span class="pl-kos">[</span><span class="pl-smi">NAME</span><span class="pl-kos">]</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Is there a reason why it's not supported ?</p>
<p dir="auto">Regards,<br>
Sébastien</p> | 1 |
<p dir="auto">As we were planning to add <code class="notranslate">--max_train_samples --max_val_samples --max_test_samples</code> to all examples <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="817565907" data-permission-text="Title is private" data-url="https://github.com/huggingface/transformers/issues/10423" data-hovercard-type="issue" data-hovercard-url="/huggingface/transformers/issues/10423/hovercard" href="https://github.com/huggingface/transformers/issues/10423">#10423</a>, I thought is there any reason why we don't expand the Trainer to handle that?</p>
<p dir="auto">It surely would be useful to be able to truncate the dataset at the point of Trainer to enable quick testing.</p>
<p dir="auto">Another plus is that the metrics can then automatically include the actual number of samples run, rather than how it is done at the moment in examples.</p>
<p dir="auto">That way this functionality would be built-in and examples will get it for free.</p>
<p dir="auto">TODO:</p>
<ol class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> port <code class="notranslate">--max_train_samples --max_val_samples --max_test_samples</code> to Trainer and remove the then unneeded code in <code class="notranslate">run_seq2seq.py</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> extend metrics to report the number of samples as it's done now in:</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/huggingface/transformers/blob/aca6288ff42cebded5421020f0ff088adeb446dd/examples/seq2seq/run_seq2seq.py#L590">transformers/examples/seq2seq/run_seq2seq.py</a>
</p>
<p class="mb-0 color-fg-muted">
Line 590
in
<a data-pjax="true" class="commit-tease-sha" href="/huggingface/transformers/commit/aca6288ff42cebded5421020f0ff088adeb446dd">aca6288</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="L590" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="590"></td>
<td id="LC590" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">metrics</span>[<span class="pl-s">"train_samples"</span>] <span class="pl-c1">=</span> <span class="pl-en">min</span>(<span class="pl-s1">max_train_samples</span>, <span class="pl-en">len</span>(<span class="pl-s1">train_dataset</span>)) </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto">so that all scripts automatically get this metric reported. Most likely it should be done here:</p>
<p dir="auto"></p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/huggingface/transformers/blob/aca6288ff42cebded5421020f0ff088adeb446dd/src/transformers/trainer_utils.py#L224">transformers/src/transformers/trainer_utils.py</a>
</p>
<p class="mb-0 color-fg-muted">
Line 224
in
<a data-pjax="true" class="commit-tease-sha" href="/huggingface/transformers/commit/aca6288ff42cebded5421020f0ff088adeb446dd">aca6288</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="L224" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="224"></td>
<td id="LC224" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">def</span> <span class="pl-en">speed_metrics</span>(<span class="pl-s1">split</span>, <span class="pl-s1">start_time</span>, <span class="pl-s1">num_samples</span><span class="pl-c1">=</span><span class="pl-c1">None</span>): </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sgugger/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sgugger">@sgugger</a></p> | <h2 dir="auto">Environment info</h2>
<ul dir="auto">
<li><code class="notranslate">transformers</code> version: 4.6.1</li>
<li>Platform: Linux Mint Tricia 19.3 (ubuntu 18.04)</li>
<li>Python version: 3.8.8</li>
<li>PyTorch version (GPU?): 1.7.0, gpu yes</li>
<li>Tensorflow version (GPU?):</li>
<li>Using GPU in script?: yes</li>
<li>Using distributed or parallel set-up in script?: no</li>
</ul>
<h3 dir="auto">Who can help</h3>
<p dir="auto">tokenizer: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/LysandreJik/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/LysandreJik">@LysandreJik</a></p>
<h2 dir="auto">Information</h2>
<p dir="auto">Model I am using (Bert, XLNet ...): GPT2</p>
<p dir="auto">The problem arises when using:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> my own modified scripts: (give details below)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> my own task or dataset: (give details below) text generation</li>
</ul>
<p dir="auto">After upgrade to 4.6.1 (same error in 4.6.0), I have an error when I load tokenizer.</p>
<h3 dir="auto">What I have tried</h3>
<p dir="auto">I searched for a similar issue and thought that this is a possible duplicate of <a href="https://github.com/huggingface/transformers/issues/11713" data-hovercard-type="issue" data-hovercard-url="/huggingface/transformers/issues/11713/hovercard">this issue</a>, but there was no change after I apply the solution.</p>
<p dir="auto">I uninstalled transformers and tokenizers package, reinstall those, and still there is the same issue.</p>
<h2 dir="auto">To reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>Import tokenizer (like below)</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from transformers import (PreTrainedTokenizerFast,
GPT2Tokenizer,)
"><pre class="notranslate"><code class="notranslate">from transformers import (PreTrainedTokenizerFast,
GPT2Tokenizer,)
</code></pre></div>
<p dir="auto">Error message</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-5-dc540cd053e1> in <module>
----> 1 from transformers import (PreTrainedTokenizerFast,
2 PreTrainedTokenizer,
3 AutoTokenizer,
4 GPT2Tokenizer,)
5
/opt/conda/lib/python3.8/site-packages/transformers/__init__.py in <module>
41
42 # Check the dependencies satisfy the minimal versions required.
---> 43 from . import dependency_versions_check
44 from .file_utils import (
45 _BaseLazyModule,
/opt/conda/lib/python3.8/site-packages/transformers/dependency_versions_check.py in <module>
39 continue # not required, check version only if installed
40
---> 41 require_version_core(deps[pkg])
42 else:
43 raise ValueError(f"can't find {pkg} in {deps.keys()}, check dependency_versions_table.py")
/opt/conda/lib/python3.8/site-packages/transformers/utils/versions.py in require_version_core(requirement)
118 """require_version wrapper which emits a core-specific hint on failure"""
119 hint = "Try: pip install transformers -U or pip install -e '.[dev]' if you're working with git master"
--> 120 return require_version(requirement, hint)
121
122
/opt/conda/lib/python3.8/site-packages/transformers/utils/versions.py in require_version(requirement, hint)
112 if want_ver is not None:
113 for op, want_ver in wanted.items():
--> 114 _compare_versions(op, got_ver, want_ver, requirement, pkg, hint)
115
116
/opt/conda/lib/python3.8/site-packages/transformers/utils/versions.py in _compare_versions(op, got_ver, want_ver, requirement, pkg, hint)
47 raise ValueError("want_ver is None")
48 if not ops[op](version.parse(got_ver), version.parse(want_ver)):
---> 49 raise ImportError(
50 f"{requirement} is required for a normal functioning of this module, but found {pkg}=={got_ver}.{hint}"
51 )
ImportError: tokenizers>=0.10.1,<0.11 is required for a normal functioning of this module, but found tokenizers==0.8.1rc1.
Try: pip install transformers -U or pip install -e '.[dev]' if you're working with git master"><pre class="notranslate"><code class="notranslate">---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-5-dc540cd053e1> in <module>
----> 1 from transformers import (PreTrainedTokenizerFast,
2 PreTrainedTokenizer,
3 AutoTokenizer,
4 GPT2Tokenizer,)
5
/opt/conda/lib/python3.8/site-packages/transformers/__init__.py in <module>
41
42 # Check the dependencies satisfy the minimal versions required.
---> 43 from . import dependency_versions_check
44 from .file_utils import (
45 _BaseLazyModule,
/opt/conda/lib/python3.8/site-packages/transformers/dependency_versions_check.py in <module>
39 continue # not required, check version only if installed
40
---> 41 require_version_core(deps[pkg])
42 else:
43 raise ValueError(f"can't find {pkg} in {deps.keys()}, check dependency_versions_table.py")
/opt/conda/lib/python3.8/site-packages/transformers/utils/versions.py in require_version_core(requirement)
118 """require_version wrapper which emits a core-specific hint on failure"""
119 hint = "Try: pip install transformers -U or pip install -e '.[dev]' if you're working with git master"
--> 120 return require_version(requirement, hint)
121
122
/opt/conda/lib/python3.8/site-packages/transformers/utils/versions.py in require_version(requirement, hint)
112 if want_ver is not None:
113 for op, want_ver in wanted.items():
--> 114 _compare_versions(op, got_ver, want_ver, requirement, pkg, hint)
115
116
/opt/conda/lib/python3.8/site-packages/transformers/utils/versions.py in _compare_versions(op, got_ver, want_ver, requirement, pkg, hint)
47 raise ValueError("want_ver is None")
48 if not ops[op](version.parse(got_ver), version.parse(want_ver)):
---> 49 raise ImportError(
50 f"{requirement} is required for a normal functioning of this module, but found {pkg}=={got_ver}.{hint}"
51 )
ImportError: tokenizers>=0.10.1,<0.11 is required for a normal functioning of this module, but found tokenizers==0.8.1rc1.
Try: pip install transformers -U or pip install -e '.[dev]' if you're working with git master
</code></pre></div>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">Just work like before!</p> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/angular</code> with <code class="notranslate">@types/angular-mocks</code> package and had problems.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li>
</ul>
<table role="table">
<thead>
<tr>
<th>Package</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td><code class="notranslate">typescript</code></td>
<td>2.4.2</td>
</tr>
<tr>
<td><code class="notranslate">@types/angular</code></td>
<td>1.6.28</td>
</tr>
<tr>
<td><code class="notranslate">@types/angular-mocks</code></td>
<td>1.5.10</td>
</tr>
</tbody>
</table>
<p dir="auto">Hello,</p>
<p dir="auto">Since I upgraded <code class="notranslate">@types/angular</code> package I have a problem with compilation. I'm getting following error when I try to run the test:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error TS2339: Property 'mock' does not exist on type 'IAngularStatic'."><pre class="notranslate"><code class="notranslate">error TS2339: Property 'mock' does not exist on type 'IAngularStatic'.
</code></pre></div>
<p dir="auto">The problem exists not only with <code class="notranslate">@types/angular-mock</code> but also angular-bootstrap, angular-growl-v2, etc. In short, everything that has an <code class="notranslate">angular.</code> prefix in definition files.</p>
<p dir="auto">I've found similar issues within this repo's page but none of the solutions or workarounds works.</p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/requirejs</code> package and had problems.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>.
<ul dir="auto">
<li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/andy-ms/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/andy-ms">@andy-ms</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wald-tq/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wald-tq">@wald-tq</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jens-duttke/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jens-duttke">@jens-duttke</a></li>
</ul>
</li>
</ul>
<p dir="auto">My index.ts file has following structure after the main code</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if( typeof exports === 'object' ) {
module.exports = xyz;
} else if( define.amd ) {
define('a',callback);
}"><pre class="notranslate"><code class="notranslate">if( typeof exports === 'object' ) {
module.exports = xyz;
} else if( define.amd ) {
define('a',callback);
}
</code></pre></div>
<p dir="auto">I need both @ types/requirejs for AMD module and 'define' & also @ types/node otherwise it says cannot find name 'module'. Using both @ types/requirejs and @ types/node gives following errors.</p>
<p dir="auto"><code class="notranslate">@ types/requirejs Variable 'require' must be of type 'NodeRequire'</code> (Will this be resolved by renaming 'require' in one of them).<br>
<code class="notranslate">Duplicate identifier 'export='</code> (How do I resolve this ? )</p>
<p dir="auto">I want to use both types together, so I don't want to use --types tag when compiling, I have also excluded "node_modules" in tsconfig file. I am a newbie in typeScript so this might be a silly question. Please suggest a simple way to solve this.</p> | 0 |
<p dir="auto"><strong>Describe the bug</strong><br>
The HTTP adapter does not use caseless comparison before overriding the <code class="notranslate">User-Agent</code> header or deleting the <code class="notranslate">Authorization</code> header.</p>
<p dir="auto">It also overwrites any provided <code class="notranslate">Content-Length</code> header.</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="axios({
method: 'post',
url: 'https://postman-echo.com/post',
auth: {
username: 'janedoe',
password: 's00pers3cret'
},
headers: {
authorization: 'foo',
'Content-Length': 10,
'User-agent': 'bar'
},
data: {
firstName: 'Fred',
lastName: 'Flintstone'
}
})
.then(function (response) {
console.log(response.data);
})
.catch(function (error) {
console.log(error);
});
> { args: {},
data: { firstName: 'Fred', lastName: 'Flintstone' },
files: {},
form: {},
headers:
{ 'x-forwarded-proto': 'https',
host: 'postman-echo.com',
'content-length': '44',
accept: 'application/json, text/plain, */*',
authorization: 'foo',
'content-type': 'application/json;charset=utf-8',
'user-agent': 'axios/0.18.1',
'x-forwarded-port': '443' },
json: { firstName: 'Fred', lastName: 'Flintstone' },
url: 'https://postman-echo.com/post' }"><pre class="notranslate"><span class="pl-en">axios</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">method</span>: <span class="pl-s">'post'</span><span class="pl-kos">,</span>
<span class="pl-c1">url</span>: <span class="pl-s">'https://postman-echo.com/post'</span><span class="pl-kos">,</span>
<span class="pl-c1">auth</span>: <span class="pl-kos">{</span>
<span class="pl-c1">username</span>: <span class="pl-s">'janedoe'</span><span class="pl-kos">,</span>
<span class="pl-c1">password</span>: <span class="pl-s">'s00pers3cret'</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">authorization</span>: <span class="pl-s">'foo'</span><span class="pl-kos">,</span>
<span class="pl-s">'Content-Length'</span>: <span class="pl-c1">10</span><span class="pl-kos">,</span>
<span class="pl-s">'User-agent'</span>: <span class="pl-s">'bar'</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">data</span>: <span class="pl-kos">{</span>
<span class="pl-c1">firstName</span>: <span class="pl-s">'Fred'</span><span class="pl-kos">,</span>
<span class="pl-c1">lastName</span>: <span class="pl-s">'Flintstone'</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-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-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-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">error</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">error</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c1">></span> <span class="pl-kos">{</span> <span class="pl-c1">args</span>: <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">data</span>: <span class="pl-kos">{</span> <span class="pl-c1">firstName</span>: <span class="pl-s">'Fred'</span><span class="pl-kos">,</span> <span class="pl-c1">lastName</span>: <span class="pl-s">'Flintstone'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">files</span>: <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">form</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-s">'x-forwarded-proto'</span>: <span class="pl-s">'https'</span><span class="pl-kos">,</span>
<span class="pl-c1">host</span>: <span class="pl-s">'postman-echo.com'</span><span class="pl-kos">,</span>
<span class="pl-s">'content-length'</span>: <span class="pl-s">'44'</span><span class="pl-kos">,</span>
<span class="pl-c1">accept</span>: <span class="pl-s">'application/json, text/plain, */*'</span><span class="pl-kos">,</span>
<span class="pl-c1">authorization</span>: <span class="pl-s">'foo'</span><span class="pl-kos">,</span>
<span class="pl-s">'content-type'</span>: <span class="pl-s">'application/json;charset=utf-8'</span><span class="pl-kos">,</span>
<span class="pl-s">'user-agent'</span>: <span class="pl-s">'axios/0.18.1'</span><span class="pl-kos">,</span>
<span class="pl-s">'x-forwarded-port'</span>: <span class="pl-s">'443'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">json</span>: <span class="pl-kos">{</span> <span class="pl-c1">firstName</span>: <span class="pl-s">'Fred'</span><span class="pl-kos">,</span> <span class="pl-c1">lastName</span>: <span class="pl-s">'Flintstone'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">url</span>: <span class="pl-s">'https://postman-echo.com/post'</span> <span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Expected behavior</strong><br>
The server should have received the following headers</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" 'x-forwarded-proto': 'https',
host: 'postman-echo.com',
'content-length': '10', // not '44'
accept: 'application/json, text/plain, */*',
authorization: 'Basic amFuZWRvZTpzMDBwZXJzM2NyZXQ=', // not 'foo'
'content-type': 'application/json;charset=utf-8',
'user-agent': 'bar', // not 'axios/0.18.1'
'x-forwarded-port': '443'"><pre class="notranslate"> <span class="pl-s">'x-forwarded-proto'</span>: <span class="pl-s">'https'</span><span class="pl-kos">,</span>
<span class="pl-s1">host</span>: <span class="pl-s">'postman-echo.com'</span><span class="pl-kos">,</span>
<span class="pl-s">'content-length'</span>: <span class="pl-s">'10'</span><span class="pl-kos">,</span> <span class="pl-c">// not '44'</span>
<span class="pl-s1">accept</span>: <span class="pl-s">'application/json, text/plain, */*'</span><span class="pl-kos">,</span>
<span class="pl-s1">authorization</span>: <span class="pl-s">'Basic amFuZWRvZTpzMDBwZXJzM2NyZXQ='</span><span class="pl-kos">,</span> <span class="pl-c">// not 'foo'</span>
<span class="pl-s">'content-type'</span>: <span class="pl-s">'application/json;charset=utf-8'</span><span class="pl-kos">,</span>
<span class="pl-s">'user-agent'</span>: <span class="pl-s">'bar'</span><span class="pl-kos">,</span> <span class="pl-c">// not 'axios/0.18.1'</span>
<span class="pl-s">'x-forwarded-port'</span>: <span class="pl-s">'443'</span></pre></div>
<p dir="auto">I have a PR ready, but saw you prefer an issue be created first.</p> | <p dir="auto"><strong>Summary</strong></p>
<p dir="auto">Headers provided in config are merged with defaults without checking for existing value that can be in different case</p>
<p dir="auto">i.e. when doing below request we can't predict which value will be set from defaults <code class="notranslate">Accept</code> or from config <code class="notranslate">accept</code></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="axios.request(url, {
headers: {
accept: 'some-accept-value'
}
});"><pre class="notranslate"><span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-en">request</span><span class="pl-kos">(</span><span class="pl-s1">url</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">headers</span>: <span class="pl-kos">{</span>
<span class="pl-c1">accept</span>: <span class="pl-s">'some-accept-value'</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">Chrome will set <code class="notranslate">Accept</code>, which is not expected</p>
<p dir="auto"><strong>Context</strong></p>
<ul dir="auto">
<li>axios version: 0.17.0</li>
<li>Environment: node v9.2.1, chrome 63, macOS</li>
</ul> | 1 |
<p dir="auto">Currently, rand(1,1e7) fails:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> rand(1,1e7)
ERROR: no method rand(Int64,Float64)"><pre class="notranslate"><code class="notranslate">julia> rand(1,1e7)
ERROR: no method rand(Int64,Float64)
</code></pre></div>
<p dir="auto">Should using FloatingPoints be allowed? Shall it throw InexactError() if round(m)!=m?</p> | <p dir="auto">Currently, all matrix constructors only accept integer valued inputs. It should be possible, for example, to do the following:</p>
<p dir="auto">julia> ones(1e3,1e3)</p> | 1 |
<p dir="auto"><strong>I'm submitting a feature request</strong></p>
<p dir="auto"><strong>Webpack version:</strong><br>
2 (and maybe 1 if feasible)</p>
<p dir="auto">It would be a nice feature for there to be an official API which would enable support for web workers and could be used in a plugin such as <a href="https://github.com/borisirota/webworkify-webpack">webworkify-webpack</a>.</p>
<p dir="auto">At the moment it looks like webworkify-webpack has to rely on webpack internals which may change in the future.</p>
<p dir="auto">There is an <a href="https://github.com/webpack/worker-loader">official webpack loader</a> for web workers but this will result in duplicate code as the webworker code is compiled separately. The webworkify-webpack plugin is nicer because it passes the module code that the webworker entry point needs at runtime, as well as the webpack internals so that the worker can require the modules it needs. This means if the worker code uses moduleA, moduleB and moduleC, and the main application javascript also uses these modules they will only be in the build once. With the official plugin they will be in the build twice (afaik).</p> | <h3 dir="auto">duplicate code in multi chunks and sooooo big common chunk file</h3>
<p dir="auto">Suppose I have a SPA website. And I have a file <code class="notranslate">main.js</code> in which I config the route.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="define(function(){
// suppose I define route here
route.when('#/aaa', function(){
// a code split point
require([
'services/A',
'style/a',
'module/a'
])
}).when('#/bbb', function(){
// a code split point
require([
'services/A',
'services/B',
'style/b',
'module/b'
])
}).when('#/ccc', function(){
// a code split point
require([
'services/B',
'serivces/C',
'style/c',
'module/c'
])
}).when('#/ddd', function(){
// a code split point
require([
'services/A',
'serivces/C',
'style/d',
'module/d'
])
})// and has many route configs like this
});"><pre class="notranslate"><span class="pl-en">define</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
<span class="pl-c">// suppose I define route here</span>
<span class="pl-s1">route</span><span class="pl-kos">.</span><span class="pl-en">when</span><span class="pl-kos">(</span><span class="pl-s">'#/aaa'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
<span class="pl-c">// a code split point</span>
<span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-kos">[</span>
<span class="pl-s">'services/A'</span><span class="pl-kos">,</span>
<span class="pl-s">'style/a'</span><span class="pl-kos">,</span>
<span class="pl-s">'module/a'</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">when</span><span class="pl-kos">(</span><span class="pl-s">'#/bbb'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
<span class="pl-c">// a code split point</span>
<span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-kos">[</span>
<span class="pl-s">'services/A'</span><span class="pl-kos">,</span>
<span class="pl-s">'services/B'</span><span class="pl-kos">,</span>
<span class="pl-s">'style/b'</span><span class="pl-kos">,</span>
<span class="pl-s">'module/b'</span>
<span class="pl-kos">]</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">when</span><span class="pl-kos">(</span><span class="pl-s">'#/ccc'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
<span class="pl-c">// a code split point</span>
<span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-kos">[</span>
<span class="pl-s">'services/B'</span><span class="pl-kos">,</span>
<span class="pl-s">'serivces/C'</span><span class="pl-kos">,</span>
<span class="pl-s">'style/c'</span><span class="pl-kos">,</span>
<span class="pl-s">'module/c'</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">when</span><span class="pl-kos">(</span><span class="pl-s">'#/ddd'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
<span class="pl-c">// a code split point</span>
<span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-kos">[</span>
<span class="pl-s">'services/A'</span><span class="pl-kos">,</span>
<span class="pl-s">'serivces/C'</span><span class="pl-kos">,</span>
<span class="pl-s">'style/d'</span><span class="pl-kos">,</span>
<span class="pl-s">'module/d'</span>
<span class="pl-kos">]</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-c">// and has many route configs like this</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">I use webpack to bundle code. My <code class="notranslate">webpack.config.js</code> like this</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module.exports = {
entry: {
main: path.resolve(__dirname, 'main.js')
},
output: {
path: path.resolve(__dirname),
filename: 'bundle.js'
},
plugins: [
new webpack.optimize.CommonsChunkPlugin({
name: 'main',
async: true
})
]
}"><pre class="notranslate"><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">entry</span>: <span class="pl-kos">{</span>
<span class="pl-c1">main</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-s">'main.js'</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">output</span>: <span class="pl-kos">{</span>
<span class="pl-c1">path</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">filename</span>: <span class="pl-s">'bundle.js'</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">plugins</span>: <span class="pl-kos">[</span>
<span class="pl-k">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">optimize</span><span class="pl-kos">.</span><span class="pl-c1">CommonsChunkPlugin</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">name</span>: <span class="pl-s">'main'</span><span class="pl-kos">,</span>
<span class="pl-c1">async</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-kos">]</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">When I run webpack, various chunks have duplicate <code class="notranslate">services/A</code> <code class="notranslate">services/B</code> etc. code.<br>
This is not I want.</p>
<p dir="auto">I read webpack docs, and then I add <code class="notranslate">minChunks: 2</code> option to CommonsChunkPlugin.</p>
<p dir="auto">Then I run webpack again.</p>
<p dir="auto">Now, every chunk only have its own code. But I also get a <strong>big</strong> common chunk file, which include<br>
<code class="notranslate">services/A</code>, <code class="notranslate">services/B</code>, <code class="notranslate">services/C</code> and other shared code between various page file.</p>
<p dir="auto">When I run these code, in page <code class="notranslate">/aaa</code>, the <code class="notranslate">/aaa</code>'s files loaded, and also the big common chunk file.</p>
<p dir="auto">Now the big problem is, page <code class="notranslate">/aaa</code> doesn't need <code class="notranslate">services/B</code> and <code class="notranslate">services/C</code> code at all, But the common chunk files contains all shared code between various page files. So the common chunk file is so big, and have many unused code.</p>
<p dir="auto">I know I can set <code class="notranslate">minChunks</code> to bigger number, but in this way, every page file may agagin have duplicate code.</p>
<h2 dir="auto"><strong>HELP!</strong></h2>
<p dir="auto">Can I have other methods to only load necessary common chunks when route to different page?</p> | 0 |
<h4 dir="auto">Describe the bug</h4>
<p dir="auto">Not sure if this is a bug but shouldn't RFECV accept a pipeline?</p>
<h4 dir="auto">Steps/Code to Reproduce</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from imblearn.pipeline import make_pipeline
from imblearn.over_sampling import RandomOverSampler
from sklearn.datasets import load_breast_cancer
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import StratifiedKFold
from sklearn.feature_selection import RFECV
from sklearn.preprocessing import StandardScaler
data = load_breast_cancer()
X = data['data']
y = data['target']
fold = StratifiedKFold()
lr = LogisticRegression()
oversample = RandomOverSampler()
scale = StandardScaler()
pipeline = make_pipeline(oversample, scale, lr)
rfecv = RFECV(estimator=pipeline, step=1, cv=fold, scoring='recall')
rfecv.fit(X, y)"><pre class="notranslate"><code class="notranslate">from imblearn.pipeline import make_pipeline
from imblearn.over_sampling import RandomOverSampler
from sklearn.datasets import load_breast_cancer
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import StratifiedKFold
from sklearn.feature_selection import RFECV
from sklearn.preprocessing import StandardScaler
data = load_breast_cancer()
X = data['data']
y = data['target']
fold = StratifiedKFold()
lr = LogisticRegression()
oversample = RandomOverSampler()
scale = StandardScaler()
pipeline = make_pipeline(oversample, scale, lr)
rfecv = RFECV(estimator=pipeline, step=1, cv=fold, scoring='recall')
rfecv.fit(X, y)
</code></pre></div>
<h4 dir="auto">Expected Results</h4>
<p dir="auto">No error is thrown</p>
<h4 dir="auto">Actual Results</h4>
<p dir="auto">RuntimeError: The classifier does not expose "coef_" or "feature_importances_" attributes</p>
<h4 dir="auto">Versions</h4>
<p dir="auto">Scikit-Learn 0.22<br>
Imbalanced-Learn 0.5.0</p> | <h4 dir="auto">Description</h4>
<p dir="auto">Based on <a href="https://stackoverflow.com/questions/58155778/target-transformation-and-feature-selection-in-scikit-learn/58274933#58274933" rel="nofollow">this </a> SO post.</p>
<p dir="auto"><code class="notranslate">TransformedTargetRegressor</code> is not working with <code class="notranslate">RFECV</code> because <code class="notranslate">coef</code> or <code class="notranslate">feature_importance</code> is not exposed directly in <code class="notranslate">TransformedTargetRegressor</code>.</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="from sklearn.datasets import make_friedman1
from sklearn.feature_selection import RFECV
from sklearn.linear_model import LinearRegression
from sklearn.compose import TransformedTargetRegressor
X, y = make_friedman1(n_samples=50, n_features=10, random_state=0)
log_estimator = TransformedTargetRegressor(regressor=LinearRegression(),
func=np.log,
inverse_func=np.exp)
log_selector = RFECV(log_estimator, step=1, cv=5, scoring='r2')
log_seletor = log_selector.fit(X,y)"><pre class="notranslate"><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">make_friedman1</span>
<span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">feature_selection</span> <span class="pl-k">import</span> <span class="pl-v">RFECV</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">LinearRegression</span>
<span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">compose</span> <span class="pl-k">import</span> <span class="pl-v">TransformedTargetRegressor</span>
<span class="pl-v">X</span>, <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-en">make_friedman1</span>(<span class="pl-s1">n_samples</span><span class="pl-c1">=</span><span class="pl-c1">50</span>, <span class="pl-s1">n_features</span><span class="pl-c1">=</span><span class="pl-c1">10</span>, <span class="pl-s1">random_state</span><span class="pl-c1">=</span><span class="pl-c1">0</span>)
<span class="pl-s1">log_estimator</span> <span class="pl-c1">=</span> <span class="pl-v">TransformedTargetRegressor</span>(<span class="pl-s1">regressor</span><span class="pl-c1">=</span><span class="pl-v">LinearRegression</span>(),
<span class="pl-s1">func</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">log</span>,
<span class="pl-s1">inverse_func</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">exp</span>)
<span class="pl-s1">log_selector</span> <span class="pl-c1">=</span> <span class="pl-v">RFECV</span>(<span class="pl-s1">log_estimator</span>, <span class="pl-s1">step</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">cv</span><span class="pl-c1">=</span><span class="pl-c1">5</span>, <span class="pl-s1">scoring</span><span class="pl-c1">=</span><span class="pl-s">'r2'</span>)
<span class="pl-s1">log_seletor</span> <span class="pl-c1">=</span> <span class="pl-s1">log_selector</span>.<span class="pl-en">fit</span>(<span class="pl-v">X</span>,<span class="pl-s1">y</span>)</pre></div>
<h4 dir="auto">Expected Results</h4>
<p dir="auto">No error is thrown</p>
<h4 dir="auto">Actual Results</h4>
<p dir="auto">RuntimeError: The classifier does not expose "coef_" or "feature_importances_" attributes</p> | 1 |
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9929523/8391177/ce97d620-1cea-11e5-8f62-33720df89b92.png"><img src="https://cloud.githubusercontent.com/assets/9929523/8391177/ce97d620-1cea-11e5-8f62-33720df89b92.png" alt="snip20150627_4" style="max-width: 100%;"></a></p>
<p dir="auto">I cannot uninstall or enable this package.</p> | <p dir="auto">I just have a problem that when i click disable button and then click the uninstall button on the package and then I think that this package is remove because I can't see it in the package list in the setting.but it not because when i try to reinstall it by searching the package name again ,the uninstall and enable button still show on the package and i can't install it because no install button.Nothing happen when I click that uninstall or enable button.<br>
Thx for help and sorry for my English. :(<br>
I use Windows 8.1</p> | 1 |
<p dir="auto">Since I'm using androidx, I can't implement Glide library and get this error:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/23734963/62952542-16e71b00-be01-11e9-856e-1a5255ef4e4c.png"><img src="https://user-images.githubusercontent.com/23734963/62952542-16e71b00-be01-11e9-856e-1a5255ef4e4c.png" alt="error" style="max-width: 100%;"></a></p> | <p dir="auto">bug如下(bug E.g):文件大小有300M(File size is 300M)<br>
W/Glide: Load failed for <a href="http://192.168.1.2/SD/AMBA/190305000/094223AA.MP4" rel="nofollow">http://192.168.1.2/SD/AMBA/190305000/094223AA.MP4</a> with size [203x130]<br>
class com.bumptech.glide.load.engine.GlideException: Failed to load resource<br>
There was 1 cause:<br>
java.io.FileNotFoundException(No content provider: <a href="http://192.168.1.2/SD/AMBA/190305000/094223AA.MP4" rel="nofollow">http://192.168.1.2/SD/AMBA/190305000/094223AA.MP4</a>)<br>
call GlideException#logRootCauses(String) for more detail<br>
Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Fetching data failed, class android.content.res.AssetFileDescriptor, LOCAL, DataCacheKey{sourceKey=<a href="http://192.168.1.2/SD/AMBA/190305000/094223AA.MP4" rel="nofollow">http://192.168.1.2/SD/AMBA/190305000/094223AA.MP4</a>, signature=EmptySignature}<br>
There was 1 cause:<br>
java.io.FileNotFoundException(No content provider: <a href="http://192.168.1.2/SD/AMBA/190305000/094223AA.MP4" rel="nofollow">http://192.168.1.2/SD/AMBA/190305000/094223AA.MP4</a>)<br>
call GlideException#logRootCauses(String) for more detail<br>
Cause (1 of 1): class java.io.FileNotFoundException: No content provider: <a href="http://192.168.1.2/SD/AMBA/190305000/094223AA.MP4" rel="nofollow">http://192.168.1.2/SD/AMBA/190305000/094223AA.MP4</a><br>
谁能帮助我解决这个问题?谢谢(Can anyone help me solve this problem? Thank you!)</p> | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.