text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto"><strong>System information</strong>.</p> <ul dir="auto"> <li>Have I written custom code (as opposed to using a stock example script provided in Keras): No</li> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): glinux 5.17.11-1rodete2-amd64</li> <li>TensorFlow installed from (source or binary): binary</li> <li>TensorFlow version (use command below): 2.9.1</li> <li>Python version: 3.10.0</li> <li>Bazel version (if compiling from source): n/a</li> <li>GPU model and memory: n/a</li> <li>Exact command to reproduce:</li> </ul> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="gzip_path = &quot;https://storage.googleapis.com/tf_model_garden/nlp/bert/v3/uncased_L-12_H-768_A-12.tar.gz&quot; # `/content/bert_base_uncased` is still a `tar.gz` file ungzip_file = keras.utils.get_file( &quot;/content/bert_base_uncased&quot;, gzip_path, extract=True, archive_format=&quot;tar&quot;, # bug occurs whether this arg is specified )"><pre class="notranslate"><span class="pl-s1">gzip_path</span> <span class="pl-c1">=</span> <span class="pl-s">"https://storage.googleapis.com/tf_model_garden/nlp/bert/v3/uncased_L-12_H-768_A-12.tar.gz"</span> <span class="pl-c"># `/content/bert_base_uncased` is still a `tar.gz` file</span> <span class="pl-s1">ungzip_file</span> <span class="pl-c1">=</span> <span class="pl-s1">keras</span>.<span class="pl-s1">utils</span>.<span class="pl-en">get_file</span>( <span class="pl-s">"/content/bert_base_uncased"</span>, <span class="pl-s1">gzip_path</span>, <span class="pl-s1">extract</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">archive_format</span><span class="pl-c1">=</span><span class="pl-s">"tar"</span>, <span class="pl-c"># bug occurs whether this arg is specified</span> )</pre></div> <p dir="auto"><strong>Describe the problem</strong>.</p> <p dir="auto"><code class="notranslate">get_file</code> documentation claims to support <code class="notranslate">gzip</code> in the <code class="notranslate">archive_format</code> argument docstring (see <a href="https://www.tensorflow.org/api_docs/python/tf/keras/utils/get_file" rel="nofollow">https://www.tensorflow.org/api_docs/python/tf/keras/utils/get_file</a>). However, I have tried several <code class="notranslate">tar.gz</code> files like the example above and they are not extracted.</p> <p dir="auto"><strong>Describe the current behavior</strong>.<br> <code class="notranslate">tar.gz</code> files are downloaded but not extracted.</p> <p dir="auto"><strong>Describe the expected behavior</strong>.<br> <code class="notranslate">tar.gz</code> files are downloaded and extracted. <code class="notranslate">bert_base_uncased</code> should be a folder with the following files:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tmp/temp_dir/raw/ tmp/temp_dir/raw/vocab.txt tmp/temp_dir/raw/bert_model.ckpt.index tmp/temp_dir/raw/bert_model.ckpt.data-00000-of-00001 tmp/temp_dir/raw/bert_config.json"><pre class="notranslate"><code class="notranslate">tmp/temp_dir/raw/ tmp/temp_dir/raw/vocab.txt tmp/temp_dir/raw/bert_model.ckpt.index tmp/temp_dir/raw/bert_model.ckpt.data-00000-of-00001 tmp/temp_dir/raw/bert_config.json </code></pre></div> <p dir="auto"><strong><a href="https://github.com/keras-team/keras/blob/master/CONTRIBUTING.md">Contributing</a></strong>.</p> <ul dir="auto"> <li>Do you want to contribute a PR? (yes/no):<br> No</li> </ul> <p dir="auto"><strong>Standalone code to reproduce the issue</strong>.<br> Please see <a href="https://colab.research.google.com/drive/1OcIuIcii7CFhNudp9rIvNWNqU-VZg9SI?usp=sharing" rel="nofollow">https://colab.research.google.com/drive/1OcIuIcii7CFhNudp9rIvNWNqU-VZg9SI?usp=sharing</a></p> <p dir="auto"><strong>Source code / logs</strong>.<br> n/a see colab</p>
<p dir="auto"><strong>System information</strong>.</p> <ul dir="auto"> <li>Have I written custom code (as opposed to using a stock example script provided in Keras): No</li> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): glinux 5.17.11-1rodete2-amd64</li> <li>TensorFlow installed from (source or binary): binary</li> <li>TensorFlow version (use command below): 2.9.1</li> <li>Python version: 3.10.0</li> <li>Bazel version (if compiling from source): n/a</li> <li>GPU model and memory: n/a</li> <li>Exact command to reproduce:</li> </ul> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="gzip_path = &quot;https://storage.googleapis.com/tf_model_garden/nlp/bert/v3/uncased_L-12_H-768_A-12.tar.gz&quot; # `/content/bert_base_uncased` is still a `tar.gz` file ungzip_file = keras.utils.get_file( &quot;/content/bert_base_uncased&quot;, gzip_path, extract=True, archive_format=&quot;tar&quot;, # bug occurs whether this arg is specified )"><pre class="notranslate"><span class="pl-s1">gzip_path</span> <span class="pl-c1">=</span> <span class="pl-s">"https://storage.googleapis.com/tf_model_garden/nlp/bert/v3/uncased_L-12_H-768_A-12.tar.gz"</span> <span class="pl-c"># `/content/bert_base_uncased` is still a `tar.gz` file</span> <span class="pl-s1">ungzip_file</span> <span class="pl-c1">=</span> <span class="pl-s1">keras</span>.<span class="pl-s1">utils</span>.<span class="pl-en">get_file</span>( <span class="pl-s">"/content/bert_base_uncased"</span>, <span class="pl-s1">gzip_path</span>, <span class="pl-s1">extract</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">archive_format</span><span class="pl-c1">=</span><span class="pl-s">"tar"</span>, <span class="pl-c"># bug occurs whether this arg is specified</span> )</pre></div> <p dir="auto"><strong>Describe the problem</strong>.</p> <p dir="auto"><code class="notranslate">get_file</code> documentation claims to support <code class="notranslate">gzip</code> in the <code class="notranslate">archive_format</code> argument docstring (see <a href="https://www.tensorflow.org/api_docs/python/tf/keras/utils/get_file" rel="nofollow">https://www.tensorflow.org/api_docs/python/tf/keras/utils/get_file</a>). However, I have tried several <code class="notranslate">tar.gz</code> files like the example above and they are not extracted.</p> <p dir="auto"><strong>Describe the current behavior</strong>.<br> <code class="notranslate">tar.gz</code> files are downloaded but not extracted.</p> <p dir="auto"><strong>Describe the expected behavior</strong>.<br> <code class="notranslate">tar.gz</code> files are downloaded and extracted. <code class="notranslate">bert_base_uncased</code> should be a folder with the following files:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tmp/temp_dir/raw/ tmp/temp_dir/raw/vocab.txt tmp/temp_dir/raw/bert_model.ckpt.index tmp/temp_dir/raw/bert_model.ckpt.data-00000-of-00001 tmp/temp_dir/raw/bert_config.json"><pre class="notranslate"><code class="notranslate">tmp/temp_dir/raw/ tmp/temp_dir/raw/vocab.txt tmp/temp_dir/raw/bert_model.ckpt.index tmp/temp_dir/raw/bert_model.ckpt.data-00000-of-00001 tmp/temp_dir/raw/bert_config.json </code></pre></div> <p dir="auto"><strong><a href="https://github.com/keras-team/keras/blob/master/CONTRIBUTING.md">Contributing</a></strong>.</p> <ul dir="auto"> <li>Do you want to contribute a PR? (yes/no):<br> No</li> </ul> <p dir="auto"><strong>Standalone code to reproduce the issue</strong>.<br> Please see <a href="https://colab.research.google.com/drive/1OcIuIcii7CFhNudp9rIvNWNqU-VZg9SI?usp=sharing" rel="nofollow">https://colab.research.google.com/drive/1OcIuIcii7CFhNudp9rIvNWNqU-VZg9SI?usp=sharing</a></p> <p dir="auto"><strong>Source code / logs</strong>.<br> n/a see colab</p>
1
<p dir="auto">testSanity(io.druid.curator.announcement.AnnouncerTest) Time elapsed: 61.107 sec &lt;&lt;&lt; ERROR!<br> java.lang.Exception: test timed out after 60000 milliseconds<br> at sun.misc.Unsafe.park(Native Method)<br> at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)<br> at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1037)<br> at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1328)<br> at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:277)<br> at org.apache.curator.test.Timing.awaitLatch(Timing.java:120)<br> at io.druid.curator.announcement.AnnouncerTest.testSanity(AnnouncerTest.java:101)</p>
<p dir="auto"><a href="https://travis-ci.org/druid-io/druid/jobs/101730020" rel="nofollow">https://travis-ci.org/druid-io/druid/jobs/101730020</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="testSanity(io.druid.curator.announcement.AnnouncerTest) Time elapsed: 61.019 sec &lt;&lt;&lt; ERROR! java.lang.Exception: test timed out after 60000 milliseconds at sun.misc.Unsafe.park(Native Method) at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1037) at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1328) at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:277) at org.apache.curator.test.Timing.awaitLatch(Timing.java:120) at io.druid.curator.announcement.AnnouncerTest.testSanity(AnnouncerTest.java:101)"><pre class="notranslate"><code class="notranslate">testSanity(io.druid.curator.announcement.AnnouncerTest) Time elapsed: 61.019 sec &lt;&lt;&lt; ERROR! java.lang.Exception: test timed out after 60000 milliseconds at sun.misc.Unsafe.park(Native Method) at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1037) at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1328) at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:277) at org.apache.curator.test.Timing.awaitLatch(Timing.java:120) at io.druid.curator.announcement.AnnouncerTest.testSanity(AnnouncerTest.java:101) </code></pre></div>
1
<p dir="auto">seaborn 0.9.0, installed via pip.</p> <p dir="auto">I have 10 rows, trying to create pairplot. The plot works fine until I set the hue to a string (object) column that has 4 categories with the breakdown of (4, 3, 2, 1).<br> Stack trace below:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ValueError Traceback (most recent call last) &lt;ipython-input-62-cc1e7428015b&gt; in &lt;module&gt;() 8 # ds.dtypes 9 # ds ---&gt; 10 sns.pairplot(ds, vars=['mark', 'days', 'hours', 'refs'], hue='topic') 11 # dataset.iloc[0:10,[8,19]] 12 /Users/piglet/Library/Python/2.7/lib/python/site-packages/seaborn/axisgrid.pyc in pairplot(data, hue, hue_order, palette, vars, x_vars, y_vars, kind, diag_kind, markers, height, aspect, dropna, plot_kws, diag_kws, grid_kws, size) 2109 diag_kws.setdefault(&quot;shade&quot;, True) 2110 diag_kws[&quot;legend&quot;] = False -&gt; 2111 grid.map_diag(kdeplot, **diag_kws) 2112 2113 # Maybe plot on the off-diagonals /Users/piglet/Library/Python/2.7/lib/python/site-packages/seaborn/axisgrid.pyc in map_diag(self, func, **kwargs) 1397 color = fixed_color 1398 -&gt; 1399 func(data_k, label=label_k, color=color, **kwargs) 1400 1401 self._clean_axis(ax) /Users/piglet/Library/Python/2.7/lib/python/site-packages/seaborn/distributions.pyc in kdeplot(data, data2, shade, vertical, kernel, bw, gridsize, cut, clip, legend, cumulative, shade_lowest, cbar, cbar_ax, cbar_kws, ax, **kwargs) 689 ax = _univariate_kdeplot(data, shade, vertical, kernel, bw, 690 gridsize, cut, clip, legend, ax, --&gt; 691 cumulative=cumulative, **kwargs) 692 693 return ax /Users/piglet/Library/Python/2.7/lib/python/site-packages/seaborn/distributions.pyc in _univariate_kdeplot(data, shade, vertical, kernel, bw, gridsize, cut, clip, legend, ax, cumulative, **kwargs) 292 &quot;only implemented in statsmodels.&quot; 293 &quot;Please install statsmodels.&quot;) --&gt; 294 x, y = _scipy_univariate_kde(data, bw, gridsize, cut, clip) 295 296 # Make sure the density is nonnegative /Users/piglet/Library/Python/2.7/lib/python/site-packages/seaborn/distributions.pyc in _scipy_univariate_kde(data, bw, gridsize, cut, clip) 364 &quot;&quot;&quot;Compute a univariate kernel density estimate using scipy.&quot;&quot;&quot; 365 try: --&gt; 366 kde = stats.gaussian_kde(data, bw_method=bw) 367 except TypeError: 368 kde = stats.gaussian_kde(data) /Users/piglet/Library/Python/2.7/lib/python/site-packages/scipy/stats/kde.pyc in __init__(self, dataset, bw_method) 167 self.dataset = atleast_2d(dataset) 168 if not self.dataset.size &gt; 1: --&gt; 169 raise ValueError(&quot;`dataset` input should have multiple elements.&quot;) 170 171 self.d, self.n = self.dataset.shape ValueError: `dataset` input should have multiple elements."><pre class="notranslate"><code class="notranslate">ValueError Traceback (most recent call last) &lt;ipython-input-62-cc1e7428015b&gt; in &lt;module&gt;() 8 # ds.dtypes 9 # ds ---&gt; 10 sns.pairplot(ds, vars=['mark', 'days', 'hours', 'refs'], hue='topic') 11 # dataset.iloc[0:10,[8,19]] 12 /Users/piglet/Library/Python/2.7/lib/python/site-packages/seaborn/axisgrid.pyc in pairplot(data, hue, hue_order, palette, vars, x_vars, y_vars, kind, diag_kind, markers, height, aspect, dropna, plot_kws, diag_kws, grid_kws, size) 2109 diag_kws.setdefault("shade", True) 2110 diag_kws["legend"] = False -&gt; 2111 grid.map_diag(kdeplot, **diag_kws) 2112 2113 # Maybe plot on the off-diagonals /Users/piglet/Library/Python/2.7/lib/python/site-packages/seaborn/axisgrid.pyc in map_diag(self, func, **kwargs) 1397 color = fixed_color 1398 -&gt; 1399 func(data_k, label=label_k, color=color, **kwargs) 1400 1401 self._clean_axis(ax) /Users/piglet/Library/Python/2.7/lib/python/site-packages/seaborn/distributions.pyc in kdeplot(data, data2, shade, vertical, kernel, bw, gridsize, cut, clip, legend, cumulative, shade_lowest, cbar, cbar_ax, cbar_kws, ax, **kwargs) 689 ax = _univariate_kdeplot(data, shade, vertical, kernel, bw, 690 gridsize, cut, clip, legend, ax, --&gt; 691 cumulative=cumulative, **kwargs) 692 693 return ax /Users/piglet/Library/Python/2.7/lib/python/site-packages/seaborn/distributions.pyc in _univariate_kdeplot(data, shade, vertical, kernel, bw, gridsize, cut, clip, legend, ax, cumulative, **kwargs) 292 "only implemented in statsmodels." 293 "Please install statsmodels.") --&gt; 294 x, y = _scipy_univariate_kde(data, bw, gridsize, cut, clip) 295 296 # Make sure the density is nonnegative /Users/piglet/Library/Python/2.7/lib/python/site-packages/seaborn/distributions.pyc in _scipy_univariate_kde(data, bw, gridsize, cut, clip) 364 """Compute a univariate kernel density estimate using scipy.""" 365 try: --&gt; 366 kde = stats.gaussian_kde(data, bw_method=bw) 367 except TypeError: 368 kde = stats.gaussian_kde(data) /Users/piglet/Library/Python/2.7/lib/python/site-packages/scipy/stats/kde.pyc in __init__(self, dataset, bw_method) 167 self.dataset = atleast_2d(dataset) 168 if not self.dataset.size &gt; 1: --&gt; 169 raise ValueError("`dataset` input should have multiple elements.") 170 171 self.d, self.n = self.dataset.shape ValueError: `dataset` input should have multiple elements. </code></pre></div>
<p dir="auto">Update of matplotlib from 3.6.0 to 3.6.1 breaks pairplot</p> <p dir="auto"><strong>Versions</strong><br> seaborn 0.12.0<br> matplotlib 3.6.1</p> <p dir="auto">I tested the code with matplotlib 3.6.0 and it works with this version. I assume that this PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1352765736" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/23751" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/23751/hovercard" href="https://github.com/matplotlib/matplotlib/pull/23751">matplotlib/matplotlib#23751</a><br> breaks this workaround:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 138 # bar() needs masked, not empty data, to generate a patch --&gt; 139 scout, = method([np.nan], [np.nan], **kws)"><pre class="notranslate"><code class="notranslate"> 138 # bar() needs masked, not empty data, to generate a patch --&gt; 139 scout, = method([np.nan], [np.nan], **kws) </code></pre></div> <p dir="auto"><strong>Reproducible code example</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import seaborn as sns penguins = sns.load_dataset(&quot;penguins&quot;) sns.pairplot(penguins)"><pre class="notranslate"><code class="notranslate">import seaborn as sns penguins = sns.load_dataset("penguins") sns.pairplot(penguins) </code></pre></div> <p dir="auto"><strong>Output</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--------------------------------------------------------------------------- StopIteration Traceback (most recent call last) Cell In [3], line 2 1 penguins = sns.load_dataset(&quot;penguins&quot;) ----&gt; 2 sns.pairplot(penguins) File /usr/local/lib/python3.9/site-packages/seaborn/axisgrid.py:2144, in pairplot(data, hue, hue_order, palette, vars, x_vars, y_vars, kind, diag_kind, markers, height, aspect, corner, dropna, plot_kws, diag_kws, grid_kws, size) 2142 diag_kws.setdefault(&quot;legend&quot;, False) 2143 if diag_kind == &quot;hist&quot;: -&gt; 2144 grid.map_diag(histplot, **diag_kws) 2145 elif diag_kind == &quot;kde&quot;: 2146 diag_kws.setdefault(&quot;fill&quot;, True) File /usr/local/lib/python3.9/site-packages/seaborn/axisgrid.py:1507, in PairGrid.map_diag(self, func, **kwargs) 1505 plot_kwargs.setdefault(&quot;hue_order&quot;, self._hue_order) 1506 plot_kwargs.setdefault(&quot;palette&quot;, self._orig_palette) -&gt; 1507 func(x=vector, **plot_kwargs) 1508 ax.legend_ = None 1510 self._add_axis_labels() File /usr/local/lib/python3.9/site-packages/seaborn/distributions.py:1418, in histplot(data, x, y, hue, weights, stat, bins, binwidth, binrange, discrete, cumulative, common_bins, common_norm, multiple, element, fill, shrink, kde, kde_kws, line_kws, thresh, pthresh, pmax, cbar, cbar_ax, cbar_kws, palette, hue_order, hue_norm, color, log_scale, legend, ax, **kwargs) 1416 else: 1417 method = ax.plot -&gt; 1418 color = _default_color(method, hue, color, kwargs) 1420 if not p.has_xy_data: 1421 return ax File /usr/local/lib/python3.9/site-packages/seaborn/utils.py:139, in _default_color(method, hue, color, kws) 134 scout.remove() 136 elif method.__name__ == &quot;bar&quot;: 137 138 # bar() needs masked, not empty data, to generate a patch --&gt; 139 scout, = method([np.nan], [np.nan], **kws) 140 color = to_rgb(scout.get_facecolor()) 141 scout.remove() File /usr/local/lib/python3.9/site-packages/matplotlib/__init__.py:1423, in _preprocess_data.&lt;locals&gt;.inner(ax, data, *args, **kwargs) 1420 @functools.wraps(func) 1421 def inner(ax, *args, data=None, **kwargs): 1422 if data is None: -&gt; 1423 return func(ax, *map(sanitize_sequence, args), **kwargs) 1425 bound = new_sig.bind(ax, *args, **kwargs) 1426 auto_label = (bound.arguments.get(label_namer) 1427 or bound.kwargs.get(label_namer)) File /usr/local/lib/python3.9/site-packages/matplotlib/axes/_axes.py:2373, in Axes.bar(self, x, height, width, bottom, align, **kwargs) 2371 x0 = x 2372 x = np.asarray(self.convert_xunits(x)) -&gt; 2373 width = self._convert_dx(width, x0, x, self.convert_xunits) 2374 if xerr is not None: 2375 xerr = self._convert_dx(xerr, x0, x, self.convert_xunits) File /usr/local/lib/python3.9/site-packages/matplotlib/axes/_axes.py:2182, in Axes._convert_dx(dx, x0, xconv, convert) 2170 try: 2171 # attempt to add the width to x0; this works for 2172 # datetime+timedelta, for instance (...) 2179 # removes the units from unit packages like `pint` that 2180 # wrap numpy arrays. 2181 try: -&gt; 2182 x0 = cbook._safe_first_finite(x0) 2183 except (TypeError, IndexError, KeyError): 2184 pass File /usr/local/lib/python3.9/site-packages/matplotlib/cbook/__init__.py:1749, in _safe_first_finite(obj, skip_nonfinite) 1746 raise RuntimeError(&quot;matplotlib does not &quot; 1747 &quot;support generators as input&quot;) 1748 else: -&gt; 1749 return next(val for val in obj if safe_isfinite(val)) StopIteration: "><pre class="notranslate"><code class="notranslate">--------------------------------------------------------------------------- StopIteration Traceback (most recent call last) Cell In [3], line 2 1 penguins = sns.load_dataset("penguins") ----&gt; 2 sns.pairplot(penguins) File /usr/local/lib/python3.9/site-packages/seaborn/axisgrid.py:2144, in pairplot(data, hue, hue_order, palette, vars, x_vars, y_vars, kind, diag_kind, markers, height, aspect, corner, dropna, plot_kws, diag_kws, grid_kws, size) 2142 diag_kws.setdefault("legend", False) 2143 if diag_kind == "hist": -&gt; 2144 grid.map_diag(histplot, **diag_kws) 2145 elif diag_kind == "kde": 2146 diag_kws.setdefault("fill", True) File /usr/local/lib/python3.9/site-packages/seaborn/axisgrid.py:1507, in PairGrid.map_diag(self, func, **kwargs) 1505 plot_kwargs.setdefault("hue_order", self._hue_order) 1506 plot_kwargs.setdefault("palette", self._orig_palette) -&gt; 1507 func(x=vector, **plot_kwargs) 1508 ax.legend_ = None 1510 self._add_axis_labels() File /usr/local/lib/python3.9/site-packages/seaborn/distributions.py:1418, in histplot(data, x, y, hue, weights, stat, bins, binwidth, binrange, discrete, cumulative, common_bins, common_norm, multiple, element, fill, shrink, kde, kde_kws, line_kws, thresh, pthresh, pmax, cbar, cbar_ax, cbar_kws, palette, hue_order, hue_norm, color, log_scale, legend, ax, **kwargs) 1416 else: 1417 method = ax.plot -&gt; 1418 color = _default_color(method, hue, color, kwargs) 1420 if not p.has_xy_data: 1421 return ax File /usr/local/lib/python3.9/site-packages/seaborn/utils.py:139, in _default_color(method, hue, color, kws) 134 scout.remove() 136 elif method.__name__ == "bar": 137 138 # bar() needs masked, not empty data, to generate a patch --&gt; 139 scout, = method([np.nan], [np.nan], **kws) 140 color = to_rgb(scout.get_facecolor()) 141 scout.remove() File /usr/local/lib/python3.9/site-packages/matplotlib/__init__.py:1423, in _preprocess_data.&lt;locals&gt;.inner(ax, data, *args, **kwargs) 1420 @functools.wraps(func) 1421 def inner(ax, *args, data=None, **kwargs): 1422 if data is None: -&gt; 1423 return func(ax, *map(sanitize_sequence, args), **kwargs) 1425 bound = new_sig.bind(ax, *args, **kwargs) 1426 auto_label = (bound.arguments.get(label_namer) 1427 or bound.kwargs.get(label_namer)) File /usr/local/lib/python3.9/site-packages/matplotlib/axes/_axes.py:2373, in Axes.bar(self, x, height, width, bottom, align, **kwargs) 2371 x0 = x 2372 x = np.asarray(self.convert_xunits(x)) -&gt; 2373 width = self._convert_dx(width, x0, x, self.convert_xunits) 2374 if xerr is not None: 2375 xerr = self._convert_dx(xerr, x0, x, self.convert_xunits) File /usr/local/lib/python3.9/site-packages/matplotlib/axes/_axes.py:2182, in Axes._convert_dx(dx, x0, xconv, convert) 2170 try: 2171 # attempt to add the width to x0; this works for 2172 # datetime+timedelta, for instance (...) 2179 # removes the units from unit packages like `pint` that 2180 # wrap numpy arrays. 2181 try: -&gt; 2182 x0 = cbook._safe_first_finite(x0) 2183 except (TypeError, IndexError, KeyError): 2184 pass File /usr/local/lib/python3.9/site-packages/matplotlib/cbook/__init__.py:1749, in _safe_first_finite(obj, skip_nonfinite) 1746 raise RuntimeError("matplotlib does not " 1747 "support generators as input") 1748 else: -&gt; 1749 return next(val for val in obj if safe_isfinite(val)) StopIteration: </code></pre></div> <p dir="auto">Visualization:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8720575/194966339-c4fae135-1074-45c4-bebe-7a8f6bffd653.png"><img width="836" alt="image" src="https://user-images.githubusercontent.com/8720575/194966339-c4fae135-1074-45c4-bebe-7a8f6bffd653.png" style="max-width: 100%;"></a></p>
0
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { firefox, chromium } from &quot;playwright&quot; async function main() { let browser = await firefox.launch({ headless: false }) let context = await browser.newContext() let page = await context.newPage() let page1 = await context.newPage() await page.goto(&quot;https://microsoft.com&quot;) await page1.goto(&quot;https://microsoft.com&quot;) } async function main2() { let browser = await chromium.launch({ headless: false }) let context = await browser.newContext() let page = await context.newPage() let page1 = await context.newPage() await page.goto(&quot;https://microsoft.com&quot;) await page1.goto(&quot;https://microsoft.com&quot;) } main().catch((e) =&gt; { console.error(e) }) main2().catch((e) =&gt; { console.error(e) }) "><pre class="notranslate"><code class="notranslate">import { firefox, chromium } from "playwright" async function main() { let browser = await firefox.launch({ headless: false }) let context = await browser.newContext() let page = await context.newPage() let page1 = await context.newPage() await page.goto("https://microsoft.com") await page1.goto("https://microsoft.com") } async function main2() { let browser = await chromium.launch({ headless: false }) let context = await browser.newContext() let page = await context.newPage() let page1 = await context.newPage() await page.goto("https://microsoft.com") await page1.goto("https://microsoft.com") } main().catch((e) =&gt; { console.error(e) }) main2().catch((e) =&gt; { console.error(e) }) </code></pre></div> <p dir="auto">Here is screenshot . Clearly code is nearly same with firefox and chromium replaced. But the behavior is weird firefox spawns window which is supposed to be tab. And Chrome behaves properly.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8097377/95857685-faf34800-0d29-11eb-86d8-c920345750b9.png"><img width="1550" alt="image" src="https://user-images.githubusercontent.com/8097377/95857685-faf34800-0d29-11eb-86d8-c920345750b9.png" style="max-width: 100%;"></a></p> <p dir="auto">Plus this following code shows 2 window now in past it used to show 1 window with 2 tabs.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" let browser = await chromium.launch({ headless: false }) let page = await context.newPage() let page1 = await context.newPage()"><pre class="notranslate"><code class="notranslate"> let browser = await chromium.launch({ headless: false }) let page = await context.newPage() let page1 = await context.newPage() </code></pre></div> <p dir="auto">Discovered while upgrading the plugin.</p> <p dir="auto">Thanks.</p>
<p dir="auto">Was expecting a new tab<br> I am not sure if I've seen this before when using puppeteer</p>
1
<p dir="auto">Putting</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="struct Foo end struct Bar end for t in (Foo, Bar) @eval (::$t)(x) = 1 end"><pre class="notranslate"><code class="notranslate">struct Foo end struct Bar end for t in (Foo, Bar) @eval (::$t)(x) = 1 end </code></pre></div> <p dir="auto">in a a package and using the <code class="notranslate">--warn-overwrite=yes</code> option, Julia will warn with</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARNING: Method definition Any(Any) in module Dup at /Users/kristoffercarlsson/julia/Dup/src/Dup.jl:9 overwritten on the same line (check for duplicate calls to `include`). WARNING: Method definition Any(Any) in module Dup at /Users/kristoffercarlsson/julia/Dup/src/Dup.jl:9 overwritten on the same line (check for duplicate calls to `include`)."><pre class="notranslate"><code class="notranslate">WARNING: Method definition Any(Any) in module Dup at /Users/kristoffercarlsson/julia/Dup/src/Dup.jl:9 overwritten on the same line (check for duplicate calls to `include`). WARNING: Method definition Any(Any) in module Dup at /Users/kristoffercarlsson/julia/Dup/src/Dup.jl:9 overwritten on the same line (check for duplicate calls to `include`). </code></pre></div> <p dir="auto">I'm guessing this if from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="654927319" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/36609" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/36609/hovercard" href="https://github.com/JuliaLang/julia/pull/36609">#36609</a>.</p> <p dir="auto">Looking at some random PkgEval log there are thousands of these warnings, e.g. <a href="https://s3.amazonaws.com/julialang-reports/nanosoldier/pkgeval/by_hash/aa3a19f_vs_dd12291/ADCME.1.7.0-beta1-ef3861cb06.log" rel="nofollow">https://s3.amazonaws.com/julialang-reports/nanosoldier/pkgeval/by_hash/aa3a19f_vs_dd12291/ADCME.1.7.0-beta1-ef3861cb06.log</a>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:81 overwritten on the same line (check for duplicate calls to `include`). ** incremental compilation may be fatally broken for this module ** WARNING: Method definition Any(Any, Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:98 overwritten on the same line (check for duplicate calls to `include`). ** incremental compilation may be fatally broken for this module ** WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:98 overwritten on the same line (check for duplicate calls to `include`). ** incremental compilation may be fatally broken for this module ** WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:103 overwritten on the same line (check for duplicate calls to `include`). ** incremental compilation may be fatally broken for this module ** WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:110 overwritten on the same line (check for duplicate calls to `include`). ** incremental compilation may be fatally broken for this module ** WARNING: Method definition Any(Any, Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:114 overwritten on the same line (check for duplicate calls to `include`). ** incremental compilation may be fatally broken for this module ** WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:95 overwritten on the same line (check for duplicate calls to `include`). ** incremental compilation may be fatally broken for this module ** WARNING: Method definition Any(Any...) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/pyfncall.jl:86 overwritten on the same line (check for duplicate calls to `include`). ** incremental compilation may be fatally broken for this module ** WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:82 overwritten on the same line (check for duplicate calls to `include`). ** incremental compilation may be fatally broken for this module ** WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:94 overwritten on the same line (check for duplicate calls to `include`). ** incremental compilation may be fatally broken for this module **"><pre class="notranslate"><code class="notranslate">WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:81 overwritten on the same line (check for duplicate calls to `include`). ** incremental compilation may be fatally broken for this module ** WARNING: Method definition Any(Any, Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:98 overwritten on the same line (check for duplicate calls to `include`). ** incremental compilation may be fatally broken for this module ** WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:98 overwritten on the same line (check for duplicate calls to `include`). ** incremental compilation may be fatally broken for this module ** WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:103 overwritten on the same line (check for duplicate calls to `include`). ** incremental compilation may be fatally broken for this module ** WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:110 overwritten on the same line (check for duplicate calls to `include`). ** incremental compilation may be fatally broken for this module ** WARNING: Method definition Any(Any, Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:114 overwritten on the same line (check for duplicate calls to `include`). ** incremental compilation may be fatally broken for this module ** WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:95 overwritten on the same line (check for duplicate calls to `include`). ** incremental compilation may be fatally broken for this module ** WARNING: Method definition Any(Any...) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/pyfncall.jl:86 overwritten on the same line (check for duplicate calls to `include`). ** incremental compilation may be fatally broken for this module ** WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:82 overwritten on the same line (check for duplicate calls to `include`). ** incremental compilation may be fatally broken for this module ** WARNING: Method definition Any(Any) in module PyCall at /home/pkgeval/.julia/packages/PyCall/BD546/src/io.jl:94 overwritten on the same line (check for duplicate calls to `include`). ** incremental compilation may be fatally broken for this module ** </code></pre></div> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vtjnash/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vtjnash">@vtjnash</a></p>
<p dir="auto"><code class="notranslate">atstart()</code> function (or <code class="notranslate">atinit()</code>)<br> similar to <code class="notranslate">atexit()</code>, but it runs the functions from Main just after reloading the system image or just after finishing the definition of a module</p> <p dir="auto">The existing functions<br> <code class="notranslate">reinit_stdio()</code> and <code class="notranslate">librandom_init()</code><br> would be switch to being registered this way.</p>
0
<p dir="auto">I have to admit that I don't understand the formal properties of the type system well enough to tell whether this could cause trouble, and also not clear whether this could be done in a 1.x release at all. With those caveats:</p> <p dir="auto">The current behavior, that any subtype check with <code class="notranslate">Union{}</code> on the left hand side will return <code class="notranslate">true</code> (no matter what) was surprising to me and makes it kind of cumbersome to write code that really does what at least I want it to do when I'm checking for a subtype relationship. I've always assumed that if I write say <code class="notranslate">T &lt;: AbstractString</code>, that I really only can get a <code class="notranslate">true</code> if <code class="notranslate">T</code> is some sort of string, but it turns out that if I want that behavior I need to write <code class="notranslate">T &lt;: AbstractString &amp;&amp; T !== Union{}</code>.</p> <p dir="auto">This came up in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="702498559" data-permission-text="Title is private" data-url="https://github.com/queryverse/TableTraits.jl/issues/21" data-hovercard-type="pull_request" data-hovercard-url="/queryverse/TableTraits.jl/pull/21/hovercard" href="https://github.com/queryverse/TableTraits.jl/pull/21">queryverse/TableTraits.jl#21</a>.</p>
<p dir="auto">I found that there is a pitfall with dispatching on custom parameterized types due to <code class="notranslate">Type{Union{}} &lt;: Type{&lt;:MyType}</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="518317940" data-permission-text="Title is private" data-url="https://github.com/JuliaArrays/StaticArrays.jl/issues/685" data-hovercard-type="pull_request" data-hovercard-url="/JuliaArrays/StaticArrays.jl/pull/685/hovercard" href="https://github.com/JuliaArrays/StaticArrays.jl/pull/685">JuliaArrays/StaticArrays.jl#685</a>). Borrowing <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/c42f/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/c42f">@c42f</a>'s <a href="https://github.com/JuliaArrays/StaticArrays.jl/pull/685#discussion_r343056774" data-hovercard-type="pull_request" data-hovercard-url="/JuliaArrays/StaticArrays.jl/pull/685/hovercard">example</a>, the problem is that:</p> <blockquote> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; foo(::Type{T}) where {T} = &quot;generic&quot; julia&gt; foo(::Type{&lt;:Int}) = &quot;special&quot; julia&gt; foo(Union{}) &quot;special&quot;"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-en">foo</span>(<span class="pl-k">::</span><span class="pl-c1">Type{T}</span>) <span class="pl-k">where</span> {T} <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">"</span>generic<span class="pl-pds">"</span></span> julia<span class="pl-k">&gt;</span> <span class="pl-en">foo</span>(<span class="pl-k">::</span><span class="pl-c1">Type{&lt;:Int}</span>) <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">"</span>special<span class="pl-pds">"</span></span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">foo</span>(Union{}) <span class="pl-s"><span class="pl-pds">"</span>special<span class="pl-pds">"</span></span></pre></div> </blockquote> <p dir="auto">For a concrete type like <code class="notranslate">Int</code>, the solution is to write <code class="notranslate">Type{Int}</code>. However, it is tricky for parameterized types. Possible workarounds are:</p> <ol dir="auto"> <li> <p dir="auto">Use <code class="notranslate">foo(::Type{T}) where {P, MyType{P} &lt;: T &lt;: MyType}</code>: However, this interferes with the inliner <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="518317940" data-permission-text="Title is private" data-url="https://github.com/JuliaArrays/StaticArrays.jl/issues/685" data-hovercard-type="pull_request" data-hovercard-url="/JuliaArrays/StaticArrays.jl/pull/685/hovercard?comment_id=550497302&amp;comment_type=issue_comment" href="https://github.com/JuliaArrays/StaticArrays.jl/pull/685#issuecomment-550497302">JuliaArrays/StaticArrays.jl#685 (comment)</a> possibly due to unbound type parameters (see also <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="499666237" data-permission-text="Title is private" data-url="https://github.com/JuliaArrays/StaticArrays.jl/issues/665" data-hovercard-type="pull_request" data-hovercard-url="/JuliaArrays/StaticArrays.jl/pull/665/hovercard" href="https://github.com/JuliaArrays/StaticArrays.jl/pull/665">JuliaArrays/StaticArrays.jl#665</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398808003" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/30713" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/30713/hovercard" href="https://github.com/JuliaLang/julia/issues/30713">#30713</a>).</p> </li> <li> <p dir="auto">Separate dispatches as in <code class="notranslate">foo(::Type{MyType})</code> and <code class="notranslate">foo(::Type{MyType{P}}) where P</code>. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="518317940" data-permission-text="Title is private" data-url="https://github.com/JuliaArrays/StaticArrays.jl/issues/685" data-hovercard-type="pull_request" data-hovercard-url="/JuliaArrays/StaticArrays.jl/pull/685/hovercard" href="https://github.com/JuliaArrays/StaticArrays.jl/pull/685">JuliaArrays/StaticArrays.jl#685</a> uses this solution.</p> </li> <li> <p dir="auto">Write a helper function like <code class="notranslate">Type₁(U) = Type{T} where {P, U{P} &lt;: T &lt;: U}</code> and then define <code class="notranslate">foo(::Type₁(MyType))</code>.</p> </li> </ol> <p dir="auto">However, none of the above solutions works well when there are many parameters. It may be useful to have a generalization of approach 3 (say) <code class="notranslate">Type₊(U::UnionAll)</code> that works with an arbitrary number of parameters. Or maybe there is a better solution?</p>
1
<h1 dir="auto">Description of the new feature/enhancement</h1> <p dir="auto">As far as I can see, there is no option to make the cursor see through, like in Mintty, for example. There is the "emptyBox" cursor shape, but that one feels very unfamiliar when editing text.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">Either allow rgba (like in css) in "cursorColor" or add a "cursorOpacity" option.</p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">When <code class="notranslate">cursorShape</code> is set to <code class="notranslate">filledBox</code>, it hides the character under it:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/652769/59292879-c271c480-8c32-11e9-8a58-5d151e6886b0.png"><img src="https://user-images.githubusercontent.com/652769/59292879-c271c480-8c32-11e9-8a58-5d151e6886b0.png" alt="image" style="max-width: 100%;"></a><br> (The command is <code class="notranslate">cat /etc/os-release</code>)</p> <p dir="auto">This is a bit annoying. It will be helpful if the character can still be visible when the cursor is moved to its position.</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.6.5</li> <li>Operating System version: win10</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>com.alibaba.dubbo.common.extension.ExtensionLoader#addExtension</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public void addExtension(String name, Class&lt;?&gt; clazz) { getExtensionClasses(); // load classes ... if (!clazz.isAnnotationPresent(Adaptive.class)) { ... cachedNames.put(clazz, name); cachedClasses.get().put(name, clazz); } ... }"><pre class="notranslate"><code class="notranslate">public void addExtension(String name, Class&lt;?&gt; clazz) { getExtensionClasses(); // load classes ... if (!clazz.isAnnotationPresent(Adaptive.class)) { ... cachedNames.put(clazz, name); cachedClasses.get().put(name, clazz); } ... } </code></pre></div> <ol start="2" dir="auto"> <li></li> </ol> <p dir="auto">I wan't to load xXXFilter when dubbo init,when call this method , ExtensionLoader#cachedActivates will load system extension,but xXXFilter I call this method manually don't load in ExtensionLoader#cachedActivates.This will lead ExtensionLoader#getActivateExtension() don't have xXXFilter.<br> Did I use it incorrectly?<br> Did I misunderstood the purpose of this method?</p>
<ul dir="auto"> <li>[*] I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li>[*] I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.5</li> <li>Operating System version: CentOS 7.6</li> <li>Java version: 1.8.0</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>wget <a href="https://github.com/apache/dubbo/archive/dubbo-2.7.5.tar.gz">https://github.com/apache/dubbo/archive/dubbo-2.7.5.tar.gz</a></li> <li>tar xvf dubbo-2.7.5.tar.gz</li> <li>cd dubbo-dubbo-2.7.5/dubbo-config/dubbo-config-api<br> 4.mvn install</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">BUILD SUCCESS</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">[ERROR] Tests run: 6, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 9.451 s &lt;&lt;&lt; FAILURE! - in org.apache.dubbo.config.utils.ReferenceConfigCacheTest<br> [ERROR] testGetCacheSameReference Time elapsed: 0.103 s &lt;&lt;&lt; ERROR!<br> java.lang.IllegalStateException: No application config found or it's not a valid config! Please add &lt;dubbo:application name="..." /&gt; to your spring config.<br> at org.apache.dubbo.config.utils.ReferenceConfigCacheTest.testGetCacheSameReference(ReferenceConfigCacheTest.java:43)</p> <p dir="auto">[INFO] Results:<br> [INFO]<br> [ERROR] Errors:<br> [ERROR] ReferenceConfigCacheTest.testGetCacheSameReference:43 » IllegalState No applic...<br> [INFO]<br> [ERROR] Tests run: 557, Failures: 0, Errors: 1, Skipped: 2<br> [INFO]<br> [INFO] ------------------------------------------------------------------------<br> [INFO] BUILD FAILURE<br> [INFO] ------------------------------------------------------------------------<br> [INFO] Total time: 22.801 s<br> [INFO] Finished at: 2020-05-08T06:23:56+08:00<br> [INFO] ------------------------------------------------------------------------<br> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project dubbo-config-api: There are test failures.<br> [ERROR]<br> [ERROR] Please refer to /home/Dubbo/dubbo-dubbo-2.7.5/dubbo-config/dubbo-config-api/target/surefire-reports for the individual test results.<br> [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.</p>
0
<p dir="auto">why not update the <code class="notranslate">default_filters</code> when <code class="notranslate">copy_dash</code> with <code class="notranslate">duplicate_slices</code>?just update the <code class="notranslate">positions</code>?<br> Is this a feature or bug?</p>
<p dir="auto">Users have requested the ability to custom order the bars on a bar chart. Seems like a reasonable request.</p> <p dir="auto">Airbnb Jira: <a href="https://jira.airbnb.biz/browse/PRODUCT-19523" rel="nofollow">https://jira.airbnb.biz/browse/PRODUCT-19523</a></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">copy module</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.0.0 config file = configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.2.0.0 config file = configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[defaults] gathering = smart gather_subset = !virtual,!facter,!ohai hash_behaviour = merge host_key_checking = False log_path = /var/log/ansible.log [ssh_connection] pipelining = False"><pre class="notranslate"><code class="notranslate">[defaults] gathering = smart gather_subset = !virtual,!facter,!ohai hash_behaviour = merge host_key_checking = False log_path = /var/log/ansible.log [ssh_connection] pipelining = False </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">RHEL 7.3</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Copy task errors out and outputs a stacktrace when trying to copy a file to a disk that is full.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <ol dir="auto"> <li>Pick a destination disk on the target machine, and create a file that will almost fill up the disk (ie to fill up 2G on /tmp: <code class="notranslate">dd if=/dev/zero of=/tmp/filler.dat bs=2G count=1</code></li> <li>Create a file that we will use as the source of the copy task that doesn't fit on the target disk, for example if there is 50M left, generate a 70M file somewhere <code class="notranslate">dd if=/dev/zero of=/opt/test.dat bs=70M count=1</code></li> <li>Run a sample playbook that attempts to copy the file to a disk that is full</li> </ol> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hosts: all remote_user: root tasks: - copy: src=&quot;/opt/test.dat&quot; dest=&quot;/tmp/test.dat&quot;"><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">all</span> <span class="pl-ent">remote_user</span>: <span class="pl-s">root</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">copy</span>: <span class="pl-s">src="/opt/test.dat" dest="/tmp/test.dat"</span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">Copy should fail with an exception showing the result of the copy command (disk full, couldn't copy, etc...</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">Stack trace is output (global name 'exception' is not defined):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [all] ********************************************************************* TASK [setup] ******************************************************************* ok: [10.0.0.97] TASK [copy] ******************************************************************** fatal: [10.0.0.97]: FAILED! =&gt; {&quot;changed&quot;: false, &quot;checksum&quot;: &quot;e1e0abec2de9ed580fcd89c1b50d4b60e49f979e&quot;, &quot;failed&quot;: true, &quot;module_stderr&quot;: &quot;Shared connection to 10.0.0.97 closed.\r\n&quot;, &quot;module_stdout&quot;: &quot;Traceback (most recent call last):\r\n File \&quot;/tmp/ansible_sNI2Il/ansible_module_copy.py\&quot;, line 364, in &lt;module&gt;\r\n main()\r\n File \&quot;/tmp/ansible_sNI2Il/ansible_module_copy.py\&quot;, line 343, in main\r\n module.atomic_move(b_mysrc, dest, unsafe_writes=module.params['unsafe_writes'])\r\n File \&quot;/tmp/ansible_sNI2Il/ansible_modlib.zip/ansible/module_utils/basic.py\&quot;, line 2003, in atomic_move\r\nNameError: global name 'exception' is not defined\r\n&quot;, &quot;msg&quot;: &quot;MODULE FAILURE&quot;} to retry, use: --limit @/opt/build/test/test.retry PLAY RECAP ********************************************************************* 10.0.0.97 : ok=1 changed=0 unreachable=0 failed=1 "><pre class="notranslate"><code class="notranslate">PLAY [all] ********************************************************************* TASK [setup] ******************************************************************* ok: [10.0.0.97] TASK [copy] ******************************************************************** fatal: [10.0.0.97]: FAILED! =&gt; {"changed": false, "checksum": "e1e0abec2de9ed580fcd89c1b50d4b60e49f979e", "failed": true, "module_stderr": "Shared connection to 10.0.0.97 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_sNI2Il/ansible_module_copy.py\", line 364, in &lt;module&gt;\r\n main()\r\n File \"/tmp/ansible_sNI2Il/ansible_module_copy.py\", line 343, in main\r\n module.atomic_move(b_mysrc, dest, unsafe_writes=module.params['unsafe_writes'])\r\n File \"/tmp/ansible_sNI2Il/ansible_modlib.zip/ansible/module_utils/basic.py\", line 2003, in atomic_move\r\nNameError: global name 'exception' is not defined\r\n", "msg": "MODULE FAILURE"} to retry, use: --limit @/opt/build/test/test.retry PLAY RECAP ********************************************************************* 10.0.0.97 : ok=1 changed=0 unreachable=0 failed=1 </code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Feature Idea</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">module_utils/junos</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2.5"><pre class="notranslate"><code class="notranslate">2.5 </code></pre></div> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Refactor junos modules common library to use CLIconf plugin</p>
0
<p dir="auto">Hi there,</p> <p dir="auto">There is many discusses about babel v6 and customElements v1, see:</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="175750992" data-permission-text="Title is private" data-url="https://github.com/babel/babel/issues/4480" data-hovercard-type="issue" data-hovercard-url="/babel/babel/issues/4480/hovercard" href="https://github.com/babel/babel/issues/4480">#4480</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="138909268" data-permission-text="Title is private" data-url="https://github.com/WICG/webcomponents/issues/423" data-hovercard-type="issue" data-hovercard-url="/WICG/webcomponents/issues/423/hovercard" href="https://github.com/WICG/webcomponents/issues/423">WICG/webcomponents#423</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="183214087" data-permission-text="Title is private" data-url="https://github.com/WICG/webcomponents/issues/587" data-hovercard-type="issue" data-hovercard-url="/WICG/webcomponents/issues/587/hovercard" href="https://github.com/WICG/webcomponents/issues/587">WICG/webcomponents#587</a></li> <li><a href="http://stackoverflow.com/questions/41414034/transpiling-class-based-web-components-with-babel" rel="nofollow">http://stackoverflow.com/questions/41414034/transpiling-class-based-web-components-with-babel</a></li> </ul> <p dir="auto">... and there is some solution out there:</p> <ul dir="auto"> <li><a href="https://github.com/WebReflection/classtrophobic">https://github.com/WebReflection/classtrophobic</a></li> <li><a href="https://github.com/github/babel-plugin-transform-custom-element-classes">https://github.com/github/babel-plugin-transform-custom-element-classes</a></li> </ul> <p dir="auto">So, it will be nice when this issue/problem will be resolved with babel v7</p>
<p dir="auto">The <a href="https://github.com/esperantojs/esperanto">Esperanto</a> module transpiler seems so far to be the module transpiler with the best spec compliance for tricky edge cases like live binding (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="65061341" data-permission-text="Title is private" data-url="https://github.com/babel/babel/issues/1117" data-hovercard-type="issue" data-hovercard-url="/babel/babel/issues/1117/hovercard" href="https://github.com/babel/babel/issues/1117">#1117</a>) and circular imports. We're using it in Ember CLI, and it works great in practice.</p> <p dir="auto">Perhaps there are, conversely, some nice things in the Babel module code that Esperanto doesn't handle correctly yet.</p> <p dir="auto">May I suggest that you all get on a hangout some time to explore the possibility of joining forces?</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Rich-Harris/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Rich-Harris">@Rich-Harris</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eventualbuddha/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eventualbuddha">@eventualbuddha</a></p>
0
<p dir="auto">Full paths such as <code class="notranslate">c:\Users\Foobar\Desktop\baz.txt</code><br> The convention in windows is to have drive names in uppercase (<code class="notranslate">C:\</code>)</p>
<p dir="auto">A really small nitpick, but I feel like the drive letter should be capitalized.<br> Explorer capitalizes it (<code class="notranslate">C:\Servers\[...]</code>) and so does Notepad++.<br> It's been lowercase since I started trying out Atom (before 0.100.0). Also replicated in safe mode (kinda, since I didn't have any packages at the very beginning).</p>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [Version 10.0.18362.836] PowerToys version: v0.18.1 PowerToys: PowerToys Run"><pre class="notranslate"><code class="notranslate">Windows build number: [Version 10.0.18362.836] PowerToys version: v0.18.1 PowerToys: PowerToys Run </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">With PowerToys installed and running, press <kbd>Alt</kbd> + <kbd>Space</kbd> from any screen.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">PowerToys Run popup shows up to start typing a command or a search term</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">window menu (Restore / Move / Size / Minimize / Maximize / Close) shows up in the top left corner of the focused window if the focus is on a window or nothing at all if the focus is on the desktop.</p> <h1 dir="auto">Screenshots</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7889660/82753718-c1905f00-9dbf-11ea-9c59-00d439b9aece.png"><img src="https://user-images.githubusercontent.com/7889660/82753718-c1905f00-9dbf-11ea-9c59-00d439b9aece.png" alt="capture" style="max-width: 100%;"></a></p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <ol dir="auto"> <li>keeping selected windows always on top</li> <li>allowing user easily editing their right click content menu(files, folders, backgound)<br> content menu in windows are too long, softwares can easily add their shortcuts into it but hard to delete. is there any way that can make it concise and organized? more specifically, functions such as reorganizing content menu as group or something like that, adding new shortcuts into it, deleting or hiding existing shortcut will be a great help</li> </ol> <p dir="auto">thank you for the great job that you have done</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1>
0
<p dir="auto">Please add support for custom non-standard DOM events, ideally through a public API but if that's a "no go" at least some way that would not require forking the code base.</p> <p dir="auto">Here is my attempt of exposing non-standard events after getting some insights on IRC, unfortunately it still does not work (as event listeners are not registered) and I am not sure if there is more whitelists somewhere that skips those custom events:<br> <a href="https://gist.github.com/Gozala/a977973957fcee9c5671">https://gist.github.com/Gozala/a977973957fcee9c5671</a></p> <p dir="auto">P.S.: Any help in changing this snippet to make it work is also greatly appreciated</p>
<p dir="auto">Describe what you were doing when the bug occurred:<br> I couldn't reproduce it.</p> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.8.2-fed4ae024</p> <p dir="auto">Call stack: at getChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:18061:32)<br> at ProfilingCache.getFlamegraphChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:18301:14)<br> at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:31722:32)<br> at vh (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11067:7)<br> at fi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11733:7)<br> at ck (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:14430:86)<br> at bk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13779:11)<br> at ak (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13768:5)<br> at Sj (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13750:7)<br> at Mj (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13351:105)</p> <p dir="auto">Component stack: at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:31701:48)<br> at div<br> at div<br> at div<br> at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:26139:23)<br> at Profiler_Profiler (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:33363:48)<br> at ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:27172:5)<br> at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:27303:32)<br> at div<br> at div<br> at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30463:23)<br> at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22538:23)<br> at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:23040:27)<br> at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28328:23)<br> at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:33797:21)</p>
0
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> Bug</p> <p dir="auto"><strong>What is the current behavior?</strong><br> When using splitChunks, if dealing with a simple project it's working but in more complexe project with multiples inclusions, some dependencies are created for entry points that are not needed. The old commonChunk plugin was behaving correctly.<br> Exemple :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const groupsOptions = {chunks: &quot;all&quot;, minSize:0, minChunks: 1, reuseExistingChunk: true, enforce: true}; const reactConfig = { entry: { &quot;react&quot;: [&quot;react&quot;, &quot;react-dom&quot;], &quot;pageA&quot;: &quot;./src/A.jsx&quot;, &quot;pageB&quot;: &quot;./src/B.jsx&quot;, &quot;pageC&quot;: &quot;./src/C.jsx&quot;, &quot;pageD&quot;: &quot;./src/D.jsx&quot;, &quot;commonAB&quot;: [ &quot;./src/ab_a.js&quot;, &quot;./src/ab_b.js&quot;], &quot;commonCD&quot;: [&quot;./src/cd_c.js&quot;, &quot;./src/cd_d.js&quot;] }, output: { path: __dirname + '/build/', filename: PROD ? &quot;[name].min.js&quot; : &quot;[name].js&quot; }, module: { rules: [ { test: /\.jsx$/, use: { loader: &quot;babel-loader&quot;, options: { presets: [&quot;es2015&quot;, &quot;react&quot;] } } } ] }, optimization: { splitChunks: { cacheGroups:{ react: {test:'react', name: &quot;react&quot;, ...groupsOptions}, AB: {test:'commonAB', name: &quot;commonAB&quot;, ...groupsOptions}, CD: {test:'commonCD', name: &quot;commonCD&quot;, ...groupsOptions} } } }, plugins: [ ] }; module.exports = reactConfig;"><pre class="notranslate"><code class="notranslate">const groupsOptions = {chunks: "all", minSize:0, minChunks: 1, reuseExistingChunk: true, enforce: true}; const reactConfig = { entry: { "react": ["react", "react-dom"], "pageA": "./src/A.jsx", "pageB": "./src/B.jsx", "pageC": "./src/C.jsx", "pageD": "./src/D.jsx", "commonAB": [ "./src/ab_a.js", "./src/ab_b.js"], "commonCD": ["./src/cd_c.js", "./src/cd_d.js"] }, output: { path: __dirname + '/build/', filename: PROD ? "[name].min.js" : "[name].js" }, module: { rules: [ { test: /\.jsx$/, use: { loader: "babel-loader", options: { presets: ["es2015", "react"] } } } ] }, optimization: { splitChunks: { cacheGroups:{ react: {test:'react', name: "react", ...groupsOptions}, AB: {test:'commonAB', name: "commonAB", ...groupsOptions}, CD: {test:'commonCD', name: "commonCD", ...groupsOptions} } } }, plugins: [ ] }; module.exports = reactConfig; </code></pre></div> <p dir="auto">This produce :<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16226590/38137465-04162fc8-3425-11e8-9eb0-ade205bed7c4.png"><img src="https://user-images.githubusercontent.com/16226590/38137465-04162fc8-3425-11e8-9eb0-ade205bed7c4.png" alt="image" style="max-width: 100%;"></a><br> This exemple is very simple and everything is OK !</p> <ul dir="auto"> <li>pageA depends from pageA, react and commonAB -&gt; OK</li> <li>pageB depends from pageB, react and commonAB -&gt; OK</li> <li>pageC depends from pageC, react and commonCD -&gt; OK</li> <li>pageD depends from pageD, react and commonCD -&gt; OK</li> </ul> <p dir="auto">But then, when i modified the code of ab_a.js and add</p> <p dir="auto"><code class="notranslate">import React from 'react';</code></p> <p dir="auto">the output is :</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16226590/38137548-861455c2-3425-11e8-8bc1-1e4bfd98fd45.png"><img src="https://user-images.githubusercontent.com/16226590/38137548-861455c2-3425-11e8-8bc1-1e4bfd98fd45.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">As you can see pageC and pageD depends of commonAB.js that is not the case (again with commonChunks plugin it was behaving correctly) !</p> <ul dir="auto"> <li>pageA depends from pageA, react and commonAB -&gt; OK</li> <li>pageB depends from pageB, react and commonAB -&gt; OK</li> <li>pageC depends from pageC, react and commonAB AND commonCD -&gt; Wrong</li> <li>pageD depends from pageD, react and commonAB AND commonCD -&gt; Wrong</li> </ul> <p dir="auto">Same result when i modified the code of cd_d.js and add <code class="notranslate">import React from 'react';</code> the output is :<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16226590/38137622-052c6d90-3426-11e8-9afd-9f60db78227f.png"><img src="https://user-images.githubusercontent.com/16226590/38137622-052c6d90-3426-11e8-9afd-9f60db78227f.png" alt="image" style="max-width: 100%;"></a></p> <ul dir="auto"> <li>pageA depends from pageA, react and commonAB AND commonCD -&gt; Wrong</li> <li>pageB depends from pageB, react and commonAB AND commonCD -&gt; Wrong</li> <li>pageC depends from pageC, react and commonCD AND commonAB -&gt; Wrong</li> <li>pageD depends from pageD, react and commonCD AND commonAB -&gt; Wrong</li> </ul> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br> Here sources to reproduce the bug :<br> <a href="https://github.com/webpack/webpack/files/1863545/testCommon.zip">testCommon.zip</a></p> <p dir="auto"><strong>What is the expected behavior?</strong><br> With <code class="notranslate">import React from 'react';</code> in ab_a.js, ab_b.js, cd_c.js and cd_d.js dependencies should be :</p> <ul dir="auto"> <li>pageA depends from pageA, react and commonAB</li> <li>pageB depends from pageB, react and commonAB</li> <li>pageC depends from pageC, react and commonCD</li> <li>pageD depends from pageD, react and commonCD</li> </ul> <p dir="auto"><strong>If this is a feature request, what is motivation or use case for changing the behavior?</strong></p> <p dir="auto"><strong>Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.</strong><br> OS : Window 10<br> Webpack : 4.4.1<br> Node : 8.9.4</p>
<p dir="auto">I need to make two versions of a bundle using different loaders.</p> <p dir="auto">Is there a way to define bundle specific loaders?</p> <p dir="auto">The only way I can think of that this can be done at the moment is two have two separate webpack configurations and run webpack build twice. This is far from ideal since this duplicates compilation of all assets.</p>
0
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] bug report [x] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ ] bug report [x] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> There doesn't seem to be a good way to interact with global and per-route query parameters.</p> <p dir="auto">Let's say you have a search page and would like to apply filters that will be reflected in the url e.g. /search?fizz=buzz&amp;foo=bar or /search;fizz=buzz;type=bar. I would like to be able to delete my "fizz" filter and remove this from the url for a result of /search?foo=bar or /search;foo=bar.</p> <p dir="auto">Currently,</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="this._router.navigate(['../', this._route.snapshot.url[0].path , {type: 'bar'}], {relativeTo: this._route});"><pre class="notranslate"><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">_router</span><span class="pl-kos">.</span><span class="pl-en">navigate</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s">'../'</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">_route</span><span class="pl-kos">.</span><span class="pl-c1">snapshot</span><span class="pl-kos">.</span><span class="pl-c1">url</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-c1">path</span> <span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-c1">type</span>: <span class="pl-s">'bar'</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">relativeTo</span>: <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">_route</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">will get me this behavior for per-route parameters or similarly for their global counterparts, but I have to retrieve the parameter object and play with it myself. Specifically with per-route parameters, there isn't a way to only change the queryParams without using ['../', '', ] followed by the parameters since in the current version trying something like ['./', ] will throw an error (though it looks to be explicitly checked and disallowed in <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/angular/angular/commit/34b3c534e73ab9ec06106b12717ae058a5ed86b2/hovercard" href="https://github.com/angular/angular/commit/34b3c534e73ab9ec06106b12717ae058a5ed86b2"><tt>34b3c53</tt></a>).</p> <p dir="auto"><strong>Expected/desired behavior</strong><br> I would like to be able to easily manipulate the local and global query parameters. It looks like this will be easier to do with global query params after <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/angular/angular/commit/23ee29b6a2ae396f6ec13f71c9552e3e0a983c3c/hovercard" href="https://github.com/angular/angular/commit/23ee29b6a2ae396f6ec13f71c9552e3e0a983c3c"><tt>23ee29b</tt></a> though I would also like to be able to do this for local query params. Additionally, the current need to reach into the route.snapshot object to get the current path in order to manipulate the query parameters feels unnecessary and not robust.</p> <p dir="auto"><strong>Reproduction of the problem</strong><br> see "Current behavior"</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> Other frameworks will allow me to easily perform this sort of manipulation and I would be able to like to do this the proper "Angular" way</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0-rc.4</li> <li><strong>Browser:</strong> [Chrome 51]</li> <li><strong>Language:</strong> [TypeScript 1.8.10]</li> </ul>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] bug report [x] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ ] bug report [x] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">When navigating via the router service, a string path is required even if navigating within the same route, but only changing route parameters</p> <p dir="auto"><strong>Expected/desired behavior</strong></p> <p dir="auto">If only providing an object with route params, the router should take the current route path and navigate with the updated parameters.</p> <p dir="auto"><strong>Reproduction of the problem</strong><br> If the current behavior is a bug or you can illustrate your feature request better with an example, please provide the steps to reproduce and if possible a minimal demo of the problem via <a href="https://plnkr.co" rel="nofollow">https://plnkr.co</a> or similar (you can use this template as a starting point: <a href="http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5" rel="nofollow">http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5</a>).</p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">Given the following routes</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const projectsRoutes: RouterConfig = [ { path: &quot;projects&quot;, component: ProjectsComponent, children: [ { path: &quot;all&quot;, component: ProjectListComponent } ] } ];"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">projectsRoutes</span>: <span class="pl-v">RouterConfig</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">"projects"</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-v">ProjectsComponent</span><span class="pl-kos">,</span> <span class="pl-c1">children</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">"all"</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-v">ProjectListComponent</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">From within the <code class="notranslate">ProjectListComponent</code> I should be able to use</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="this.router.navigate([ { query: 'test' } ], { relativeTo: this.activatedRoute });"><pre class="notranslate"><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">router</span><span class="pl-kos">.</span><span class="pl-en">navigate</span><span class="pl-kos">(</span><span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">query</span>: <span class="pl-s">'test'</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">relativeTo</span>: <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">activatedRoute</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">and the router navigate to</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/projects/all;query=test"><pre class="notranslate">/projects/all;query=test</pre></div> <p dir="auto">Currently an error is thrown: <code class="notranslate">TypeError: Cannot read property 'path' of undefined</code></p> <p dir="auto">To make this work I have to traverse upwards to come back to the same route.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="this.router.navigate([ &quot;../all&quot;, { query: 'test' } ], { relativeTo: this.activatedRoute });"><pre class="notranslate"><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">router</span><span class="pl-kos">.</span><span class="pl-en">navigate</span><span class="pl-kos">(</span><span class="pl-kos">[</span> <span class="pl-s">"../all"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">query</span>: <span class="pl-s">'test'</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">relativeTo</span>: <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">activatedRoute</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 motivation / use case for changing the behavior?</strong></p> <p dir="auto">Navigating relatively within the current route</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0-rc.X</li> <li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</li> <li><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5 | Dart]</li> </ul> <p dir="auto">cc: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bennadel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bennadel">@bennadel</a> <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/wardbell/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wardbell">@wardbell</a></p>
1
<h1 dir="auto">Environment</h1> <p dir="auto">Microsoft Windows [Version 10.0.18362.239]<br> Windows Terminal (Preview)<br> Version: 0.3.2171.0</p> <p dir="auto">WSL Ubuntu 16.04.6<br> tmux 2.1 or htop 2.0.1 or vim</p> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Launch WSL session in Windows Terminal</li> <li>Hit enter a few times to generate few lines of output</li> <li>Select the lines with mouse and right click to copy to clipboard:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1515124/62839560-54507a80-bc40-11e9-8eb6-17913a48b65d.png"><img src="https://user-images.githubusercontent.com/1515124/62839560-54507a80-bc40-11e9-8eb6-17913a48b65d.png" alt="image" style="max-width: 100%;"></a></li> <li>Paste the lines into a different program, note that 4 distinct lines are pasted, this is expected behavior.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1515124/62839568-6d592b80-bc40-11e9-84b3-40708d098324.png"><img src="https://user-images.githubusercontent.com/1515124/62839568-6d592b80-bc40-11e9-84b3-40708d098324.png" alt="image" style="max-width: 100%;"></a></li> <li>Launch vim (or other full screen application) inside the WSL window:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1515124/62839599-9d083380-bc40-11e9-9e1e-1eb74821009f.png"><img src="https://user-images.githubusercontent.com/1515124/62839599-9d083380-bc40-11e9-9e1e-1eb74821009f.png" alt="image" style="max-width: 100%;"></a></li> <li>Close vim using esc q! enter</li> <li>Highlight and copy the lines again using mouse and right click:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1515124/62839620-d9d42a80-bc40-11e9-91ff-b7025f3348cb.png"><img src="https://user-images.githubusercontent.com/1515124/62839620-d9d42a80-bc40-11e9-91ff-b7025f3348cb.png" alt="image" style="max-width: 100%;"></a></li> <li>Paste clipboard into different program, note that output is now on one line:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1515124/62839622-f4a69f00-bc40-11e9-91a3-906258bae33c.png"><img src="https://user-images.githubusercontent.com/1515124/62839622-f4a69f00-bc40-11e9-91a3-906258bae33c.png" alt="image" style="max-width: 100%;"></a></li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Launching programs inside the terminal should not impact how/when newlines are preserved.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Newlines are preserved when copying multi-line output. After certain (fullscreen?) applications are launched they no longer are preserved and pasted output ends up on a single line.</p> <h1 dir="auto">Isolation notes</h1> <p dir="auto">Vim isn't the only program this happens with. At first I noticed copy inside tmux wasn't working the way I expected but then I noticed it happens just by launching and closing programs like vim and htop. I did a quick scan over the other copy paste newline bugs and none of them described this behavior but I might have missed one; sorry if this is a duplicate but I don't think it is.</p>
<p dir="auto">Your Windows build number: 10.0.18890.1000</p> <p dir="auto">What you're doing and what's happening: Acrylic transparency is turned on in config and working when window is active. But as soon as the window becomes inactive the acrylic transparency turns off. Turns back on when window becomes active.</p> <p dir="auto">What's wrong / what should be happening instead: Acrylic transparency should likely remain on. Especially in multiple monitor instances, where the window may remain at the front of the stack used for monitoring. Transparency is typically used to show when something is inactive or disabled. So transparency on when active and transparency off when inactive is the opposite of what is expected.</p>
0
<p dir="auto">Now twisted supports only HTTP/0 or HTTP/1, Is there any way we can add hyper to integrate <strong>scrapy</strong><br> with HTTP/2.</p>
<p dir="auto">I peeked at the docs, at the issues but couldn't find any info about HTTP 2 support.</p> <p dir="auto">Does <code class="notranslate">scrapy</code> support it?</p>
1
<p dir="auto">This module looks vaguelly like</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pub mod os { pub mod consts { ... various reexports ... pub mod android { ... } pub mod linux { .... } } }"><pre class="notranslate"><code class="notranslate">pub mod os { pub mod consts { ... various reexports ... pub mod android { ... } pub mod linux { .... } } } </code></pre></div> <p dir="auto">All constants for all platforms are available to all platforms. There is no bound to the number of public modules that must be added here over time, and doubtless different implementations of Rust must support different platforms. In other words, as designed this module will never stop changing. This is a mess waiting to happen. I suggest only exposing the current arch and moving any necessary cross-arch capability into rustc directly. Nominating.</p>
<p dir="auto">Range has a type bound on ToPrimitive so that it can have a size_hint. It does not need this to function, and the size_hint is just an optional nicety.</p> <p dir="auto">It'd be nice if there were some way to express this with the type system; this "optional" type bound makes the interface less generic (though it's not that big of a deal).</p>
0
<h3 dir="auto">Describe your issue.</h3> <p dir="auto">Hi,</p> <p dir="auto">Not sure what's going on here:</p> <div class="highlight highlight-source-batchfile notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt; python -c &quot;import scipy.stats; print('PASS')&quot; PASS &gt; python -c &quot;from scipy.stats import F_onewayResult; print('PASS')&quot; Traceback (most recent call last): File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt; ImportError: cannot import name 'F_onewayResult' from 'scipy.stats' (C:\Users\runner\anaconda3\envs\...\lib\site-packages\scipy\stats\__init__.py)"><pre class="notranslate"><span class="pl-k">&gt;</span> python -c <span class="pl-s"><span class="pl-pds">"</span>import scipy.stats; print('PASS')<span class="pl-pds">"</span></span> PASS <span class="pl-k">&gt;</span> python -c <span class="pl-s"><span class="pl-pds">"</span>from scipy.stats import F_onewayResult; print('PASS')<span class="pl-pds">"</span></span> Traceback (most recent <span class="pl-k">call</span> last): File <span class="pl-s"><span class="pl-pds">"</span>&lt;string&gt;<span class="pl-pds">"</span></span>, line 1, in <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> ImportError: cannot import name 'F_onewayResult' from 'scipy.stats' (C:\Users\runner\anaconda3\envs\...\lib\site-packages\scipy\stats\__init__.py)</pre></div> <p dir="auto">However, if I modify </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/scipy/scipy/blob/63472fd76eadf2c97b9aaf6f55ffc6ddce4b39b6/scipy/stats/__init__.py#L453">scipy/scipy/stats/__init__.py</a> </p> <p class="mb-0 color-fg-muted"> Line 453 in <a data-pjax="true" class="commit-tease-sha" href="/scipy/scipy/commit/63472fd76eadf2c97b9aaf6f55ffc6ddce4b39b6">63472fd</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="L453" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="453"></td> <td id="LC453" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">from</span> .<span class="pl-s1">_stats_py</span> <span class="pl-k">import</span> <span class="pl-c1">*</span> </td> </tr> </tbody></table> </div> </div> <br> by adding the line:<p></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from ._stats_py import F_onewayResult from ._stats_py import *"><pre class="notranslate"><span class="pl-k">from</span> .<span class="pl-s1">_stats_py</span> <span class="pl-k">import</span> <span class="pl-v">F_onewayResult</span> <span class="pl-k">from</span> .<span class="pl-s1">_stats_py</span> <span class="pl-k">import</span> <span class="pl-c1">*</span></pre></div> <p dir="auto">I get a pass for both commands:</p> <div class="highlight highlight-source-batchfile notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt; python -c &quot;import scipy.stats; print('PASS')&quot; PASS &gt; python -c &quot;from scipy.stats import F_onewayResult; print('PASS')&quot; PASS"><pre class="notranslate"><span class="pl-k">&gt;</span> python -c <span class="pl-s"><span class="pl-pds">"</span>import scipy.stats; print('PASS')<span class="pl-pds">"</span></span> PASS <span class="pl-k">&gt;</span> python -c <span class="pl-s"><span class="pl-pds">"</span>from scipy.stats import F_onewayResult; print('PASS')<span class="pl-pds">"</span></span> PASS</pre></div> <p dir="auto">Thanks in advance for your help!</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="from scipy.stats import F_onewayResult print('PASS')"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">scipy</span>.<span class="pl-s1">stats</span> <span class="pl-k">import</span> <span class="pl-v">F_onewayResult</span> <span class="pl-en">print</span>(<span class="pl-s">'PASS'</span>)</pre></div> <h3 dir="auto">Error message</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt; ImportError: cannot import name 'F_onewayResult' from 'scipy.stats' (C:\Users\runner\anaconda3\envs\...\lib\site-packages\scipy\stats\__init__.py)"><pre class="notranslate">Traceback (most recent call last): File <span class="pl-s"><span class="pl-pds">"</span>&lt;string&gt;<span class="pl-pds">"</span></span>, line 1, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> ImportError: cannot import name <span class="pl-s"><span class="pl-pds">'</span>F_onewayResult<span class="pl-pds">'</span></span> from <span class="pl-s"><span class="pl-pds">'</span>scipy.stats<span class="pl-pds">'</span></span> (C:<span class="pl-cce">\U</span>sers<span class="pl-cce">\r</span>unner<span class="pl-cce">\a</span>naconda3<span class="pl-cce">\e</span>nvs<span class="pl-cce">\.</span>..<span class="pl-cce">\l</span>ib<span class="pl-cce">\s</span>ite-packages<span class="pl-cce">\s</span>cipy<span class="pl-cce">\s</span>tats<span class="pl-cce">\_</span>_init__.py)</pre></div> <h3 dir="auto">SciPy/NumPy/Python version information</h3> <p dir="auto">1.8.0 1.20.2 sys.version_info(major=3, minor=9, micro=10, releaselevel='final', serial=0)</p>
<p dir="auto">I have a fast Cython implementation of a Sobol low-discrepancy quasi-random number generator using Owen scrambling. On top of that I have some transformations (inverse transform, Box-Muller) that make it easy to draw quasi-MC samples from, say, a multivariate normal distribution. This code has been used successfully in an industry setting.</p> <p dir="auto">Before I go through the effort of creating a PR, I wanted to see whether this is something that people would like to see in scipy.</p> <p dir="auto">The api could look something like the following:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from scipy.qmc import Sobol sobol = Sobol(dimen=d, seed=1234) samples = sobol.rvs(n)"><pre class="notranslate"><code class="notranslate">from scipy.qmc import Sobol sobol = Sobol(dimen=d, seed=1234) samples = sobol.rvs(n) </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from scipy.qmc import MultivariateNormalQMC mvn = MultivariateNormalQMC(mean=np.zeros(2), cov=np.array([[1, 0.1], [0.1, 1]])) samples = mvn.rvs(n)"><pre class="notranslate"><code class="notranslate">from scipy.qmc import MultivariateNormalQMC mvn = MultivariateNormalQMC(mean=np.zeros(2), cov=np.array([[1, 0.1], [0.1, 1]])) samples = mvn.rvs(n) </code></pre></div>
0
<p dir="auto">Getting this ICE:<br> error: internal compiler error: trying to take the sizing type of A, an unsized type</p> <p dir="auto">when compiling this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="enum A { B(char), C([Box&lt;A&gt;]), } fn c(c:char) -&gt; A { return B(c) } pub fn main() { }"><pre class="notranslate"><code class="notranslate">enum A { B(char), C([Box&lt;A&gt;]), } fn c(c:char) -&gt; A { return B(c) } pub fn main() { } </code></pre></div> <p dir="auto">Heard on IRC that pinging <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nick29581/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nick29581">@nick29581</a> may be good on this issue</p>
<p dir="auto">Hello,</p> <p dir="auto">I don't know if this is related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="41406143" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/16822" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/16822/hovercard" href="https://github.com/rust-lang/rust/issues/16822">#16822</a> or not. I was following the example here <a href="http://doc.rust-lang.org/getopts/" rel="nofollow">http://doc.rust-lang.org/getopts/</a> and wanted to tweak it so the <code class="notranslate">program</code> is only the filename, not the whole path to it. So I started hacking around and extracted it into a function, which resulted into this error.</p> <p dir="auto">I'm new to Rust, so… I'm doing silly things probably. :) Feel free to tell me.<br> Anyway this is not the "getopts" code, I wanted to isolate the problem. I also made the types explicit for illustration.</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() { let filename: &amp;str = &amp;filename_of_foo(); // `filename` should be &amp;&quot;foo&quot; println!(&quot;The filename is {}&quot;, filename); } fn filename_of_foo() -&gt; str { let path: Path = Path::new(&quot;./bar/foo&quot;); let filename: &amp;str = path.filename_str().unwrap(); *filename }"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> filename<span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-smi">str</span> = <span class="pl-c1">&amp;</span><span class="pl-en">filename_of_foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// `filename` should be &amp;"foo"</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"The filename is {}"</span>, filename<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">filename_of_foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">str</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> path<span class="pl-kos">:</span> <span class="pl-smi">Path</span> = <span class="pl-smi">Path</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-s">"./bar/foo"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> filename<span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-smi">str</span> = path<span class="pl-kos">.</span><span class="pl-en">filename_str</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">unwrap</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c1">*</span>filename <span class="pl-kos">}</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ RUST_BACKTRACE=1 rustc main.rs error: internal compiler error: trying to take the sizing type of str, an unsized type note: the compiler hit an unexpected failure path. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace task 'rustc' failed at 'Box&lt;Any&gt;', /Users/olda/Code/rust/rust-lang/src/libsyntax/ast_util.rs:776 stack backtrace: 1: 0x10e7ea9b5 - rt::backtrace::imp::write::hbe93ad1ca3375f7ai9q 2: 0x10e7edd33 - failure::on_fail::ha008d924473a588cbqr 3: 0x10eab3d23 - unwind::begin_unwind_inner::h53af0f566031f9f14fe 4: 0x10c7b643a - unwind::begin_unwind::h3612296561932415380 5: 0x10c7b6e40 - diagnostic::Handler::bug::h6cd4a0f0829e2050shF 6: 0x10b3a5c58 - driver::session::Session::bug::hba3620fae1af216dkXz 7: 0x10b75c121 - middle::trans::type_of::sizing_type_of::h7963730f82cd4b33Ma9 8: 0x10b78aeac - middle::trans::expr::trans_unadjusted::he74a35bd5ea421c1Fh3 9: 0x10b748380 - middle::trans::expr::trans::hd79efa6056358d2dEw2 10: 0x10b798ca1 - middle::trans::expr::trans_addr_of::hff42e1cdb8b6828bfI4 11: 0x10b78b4f8 - middle::trans::expr::trans_unadjusted::he74a35bd5ea421c1Fh3 12: 0x10b748380 - middle::trans::expr::trans::hd79efa6056358d2dEw2 13: 0x10b746b48 - middle::trans::expr::trans_into::h4adfb7ed4c8e4c8eIs2 14: 0x10b82a54f - middle::trans::_match::store_local::closure.119296 15: 0x10b82a321 - middle::trans::_match::mk_binding_alloca::h11723812663586266914 16: 0x10b7f2233 - middle::trans::_match::store_local::h15ef2e60d6b94e5cA2h 17: 0x10b7463b2 - middle::trans::base::init_local::hf1089f76e4fd41bdWFd 18: 0x10b7458ea - middle::trans::controlflow::trans_stmt::h2ab88f6dc40905eblhY 19: 0x10b74701c - middle::trans::controlflow::trans_block::hee6f69106b0dfacewmY 20: 0x10b7fd0e2 - middle::trans::base::trans_closure::h9bdf3049defa1b73vye 21: 0x10b7382a0 - middle::trans::base::trans_fn::hf0c57f353c923cd3iKe 22: 0x10b73361f - middle::trans::base::trans_item::hbe3f225a458737f5i2e 23: 0x10b8060bc - middle::trans::base::trans_crate::h430604ba8b62ae67JWf 24: 0x10bbc0811 - driver::driver::phase_4_translate_to_llvm::h3758d3df9e2a7401pzy 25: 0x10bbb9d3d - driver::driver::compile_input::hf84c86c09fa7f085Qby 26: 0x10bc43dc7 - driver::run_compiler::hd0616be9c11c6733JIB 27: 0x10bc42506 - driver::main_args::closure.138223 28: 0x10bc53dbb - task::TaskBuilder&lt;S&gt;::try_future::closure.139341 29: 0x10bc53cc3 - task::TaskBuilder&lt;S&gt;::spawn_internal::closure.139318 30: 0x10e71e2ec - task::spawn_opts::closure.8459 31: 0x10eb18b0c - rust_try_inner 32: 0x10eb18af6 - rust_try 33: 0x10eab1177 - unwind::try::h5bbc3fdef4df0c47k4d 34: 0x10eab0f3b - task::Task::run::h3fd23eb8e2343898bbd 35: 0x10e71e132 - task::spawn_opts::closure.8404 36: 0x10eab2cb6 - thread::thread_start::hb6d4d41faea4249bXzd 37: 0x7fff8ce03899 - _pthread_body 38: 0x7fff8ce0372a - _pthread_struct_init"><pre class="notranslate"><code class="notranslate">$ RUST_BACKTRACE=1 rustc main.rs error: internal compiler error: trying to take the sizing type of str, an unsized type note: the compiler hit an unexpected failure path. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace task 'rustc' failed at 'Box&lt;Any&gt;', /Users/olda/Code/rust/rust-lang/src/libsyntax/ast_util.rs:776 stack backtrace: 1: 0x10e7ea9b5 - rt::backtrace::imp::write::hbe93ad1ca3375f7ai9q 2: 0x10e7edd33 - failure::on_fail::ha008d924473a588cbqr 3: 0x10eab3d23 - unwind::begin_unwind_inner::h53af0f566031f9f14fe 4: 0x10c7b643a - unwind::begin_unwind::h3612296561932415380 5: 0x10c7b6e40 - diagnostic::Handler::bug::h6cd4a0f0829e2050shF 6: 0x10b3a5c58 - driver::session::Session::bug::hba3620fae1af216dkXz 7: 0x10b75c121 - middle::trans::type_of::sizing_type_of::h7963730f82cd4b33Ma9 8: 0x10b78aeac - middle::trans::expr::trans_unadjusted::he74a35bd5ea421c1Fh3 9: 0x10b748380 - middle::trans::expr::trans::hd79efa6056358d2dEw2 10: 0x10b798ca1 - middle::trans::expr::trans_addr_of::hff42e1cdb8b6828bfI4 11: 0x10b78b4f8 - middle::trans::expr::trans_unadjusted::he74a35bd5ea421c1Fh3 12: 0x10b748380 - middle::trans::expr::trans::hd79efa6056358d2dEw2 13: 0x10b746b48 - middle::trans::expr::trans_into::h4adfb7ed4c8e4c8eIs2 14: 0x10b82a54f - middle::trans::_match::store_local::closure.119296 15: 0x10b82a321 - middle::trans::_match::mk_binding_alloca::h11723812663586266914 16: 0x10b7f2233 - middle::trans::_match::store_local::h15ef2e60d6b94e5cA2h 17: 0x10b7463b2 - middle::trans::base::init_local::hf1089f76e4fd41bdWFd 18: 0x10b7458ea - middle::trans::controlflow::trans_stmt::h2ab88f6dc40905eblhY 19: 0x10b74701c - middle::trans::controlflow::trans_block::hee6f69106b0dfacewmY 20: 0x10b7fd0e2 - middle::trans::base::trans_closure::h9bdf3049defa1b73vye 21: 0x10b7382a0 - middle::trans::base::trans_fn::hf0c57f353c923cd3iKe 22: 0x10b73361f - middle::trans::base::trans_item::hbe3f225a458737f5i2e 23: 0x10b8060bc - middle::trans::base::trans_crate::h430604ba8b62ae67JWf 24: 0x10bbc0811 - driver::driver::phase_4_translate_to_llvm::h3758d3df9e2a7401pzy 25: 0x10bbb9d3d - driver::driver::compile_input::hf84c86c09fa7f085Qby 26: 0x10bc43dc7 - driver::run_compiler::hd0616be9c11c6733JIB 27: 0x10bc42506 - driver::main_args::closure.138223 28: 0x10bc53dbb - task::TaskBuilder&lt;S&gt;::try_future::closure.139341 29: 0x10bc53cc3 - task::TaskBuilder&lt;S&gt;::spawn_internal::closure.139318 30: 0x10e71e2ec - task::spawn_opts::closure.8459 31: 0x10eb18b0c - rust_try_inner 32: 0x10eb18af6 - rust_try 33: 0x10eab1177 - unwind::try::h5bbc3fdef4df0c47k4d 34: 0x10eab0f3b - task::Task::run::h3fd23eb8e2343898bbd 35: 0x10e71e132 - task::spawn_opts::closure.8404 36: 0x10eab2cb6 - thread::thread_start::hb6d4d41faea4249bXzd 37: 0x7fff8ce03899 - _pthread_body 38: 0x7fff8ce0372a - _pthread_struct_init </code></pre></div> <p dir="auto">My system:<br> OS X 10.9.4</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ uname -v Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 $ rustc --version rustc 0.12.0-pre (0d3bd7720 2014-08-27 21:31:13 +0000) $ cargo --version cargo 0.0.1-pre (89259f1 2014-08-28 18:28:57 +0000)"><pre class="notranslate"><code class="notranslate">$ uname -v Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 $ rustc --version rustc 0.12.0-pre (0d3bd7720 2014-08-27 21:31:13 +0000) $ cargo --version cargo 0.0.1-pre (89259f1 2014-08-28 18:28:57 +0000) </code></pre></div> <p dir="auto">Thanks,<br> Ollie</p>
1
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting </code></pre></div> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">If you have a lot of form controls in template and compile with AOT, webpack build will hang for a long time or seemingly never complete.</p> <p dir="auto">In the below demo of the bug, I have 20 form controls on a template, it will take about 2 minutes to build after compile. If you delete 5 of them, it only take 12 seconds to compile.<br> If you have 30 controls in total, it will hang for an extremely long time or never complete.</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">It should be able to compile in a reasonable amount of time regardless of how many form controls used.</p> <p dir="auto"><strong>Reproduction of the problem</strong></p> <p dir="auto">As this is something that can't be reproduced on plunker, I've created a minimal repo that demonstrates the bug:</p> <p dir="auto"><a href="https://github.com/qdouble/aot-form-controls-build-bug">https://github.com/qdouble/aot-form-controls-build-bug</a></p> <p dir="auto">To demo the bug, just clone the github repo and run <code class="notranslate">npm i</code> to install.<br> To compile and build files, run <code class="notranslate">npm run compile</code>.<br> To create a normal build without ngc, just use <code class="notranslate">npm run build</code>.<br> To start server, use <code class="notranslate">npm run prodserver</code>.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0-angular-builds</li> <li><strong>Language:</strong> [TypeScript X.X]</li> <li><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = 6.5.0</li> </ul>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[X ] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[X ] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> AOT compilation fails with "Error at .../src/apps/appv1/aot/main.ts:3:36: Cannot find module '../../../ngfactory/src/apps/appv1/app.module.ngfactory'". ie codegen fails foor my code but not node_modules.</p> <p dir="auto"><strong>Specifically an exception is being thrown in tsc-wrapped/src/main.js at the line:<br> tsc_1.tsc.typeCheck(host_1, programWithCodegen);<br> The exception is "_nativeError"</strong></p> <p dir="auto"><strong>Expected behavior</strong><br> That the AOT compiler will codegen code for my modules as well as for items in node_modules</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> Run AOT with this tsconfig:<br> {<br> "compilerOptions": {<br> "allowSyntheticDefaultImports": true,<br> "target": "es5",<br> "module": "es2015",<br> "moduleResolution": "node",<br> "sourceMap": true,<br> "emitDecoratorMetadata": true,<br> "experimentalDecorators": true,<br> "noImplicitAny": false,<br> "removeComments": true,<br> "skipLibCheck": true,<br> "strictNullChecks": true,<br> "diagnostics": true,<br> "noUnusedLocals": false,<br> "noUnusedParameters": false,<br> "allowUnreachableCode": false,<br> "outDir": "build",<br> "typeRoots": [<br> "node_modules/<a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/types/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/types">@types</a>"<br> ],<br> "types": [<br> "core-js"<br> ]<br> },<br> "exclude": [<br> "node_modules",<br> "3P",<br> "config",<br> "./src/apps/appv1/jit",<br> "./src/apps/appv2/"<br> ],<br> "angularCompilerOptions": {<br> "genDir": "./src/ngfactory",<br> "skipMetadataEmit": true,<br> "debug": true<br> }<br> }</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> AOT Compilation was working before upgrading to 2.3.0/0.4.2</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> W10 NPM3.10.8 Node: 7.0.0</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 2.0.X<br> 2.3.0</p> </li> <li> <p dir="auto"><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web<br> ALL</p> </li> <li> <p dir="auto"><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br> Typescript 2.1.4</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =<br> compiler-cli: 2.3.0<br> tsc-wrapped: 0.4.2</p> </li> </ul>
0
<h1 dir="auto">What / Why</h1> <p dir="auto">For better or for worse the content within package.json has been growing with greater and greater complexity. In the nascent days of npm, the file was simply just some metadata on the dependencies that a project/package depended on. Projects grew in complexity and now testing, frameworks, other libraries are all dependencies that would appear sitting together. There was some separation with <code class="notranslate">dependencies</code> and <code class="notranslate">devDependencies</code>, but that is a rough categorization. We have tools now contributing and taking residence within the package.json with greater complexity... monorepo configurations, lint configurations, commit configurations, git hooks, nodemon, jest, the list goes on...</p> <p dir="auto">Comments offer a way to explain all the complexity.</p> <p dir="auto">I still think that library maintainers should still be using pure JSON for backwards compatibility, but at least offering this moving forward will allow project creators (the vast majority of users) the ability to document their package.json. Granted, json allows for duplicate keys to serve as comments, but this feels too much like a hack.</p> <h2 dir="auto">How</h2> <h3 dir="auto">Current Behavior</h3> <p dir="auto">A redacted and contrived example:</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;name&quot;: &quot;my-project&quot;, &quot;version&quot;: &quot;0.0.1&quot;, &quot;license&quot;: &quot;MIT&quot;, &quot;scripts&quot;: { &quot;build&quot;: &quot;a bunch of scripts&quot;, &quot;ci&quot;: &quot;a bunch of scripts&quot;, &quot;ci:local&quot;: &quot;a bunch of scripts&quot;, &quot;docsite&quot;: &quot;a bunch of scripts&quot;, &quot;docsite:combiner&quot;: &quot;a bunch of scripts&quot;, &quot;docsite:sassdoc&quot;: &quot;a bunch of scripts&quot;, &quot;docsite:tsdoc&quot;: &quot;a bunch of scripts&quot;, &quot;e2e&quot;: &quot;a bunch of scripts&quot;, &quot;html-sketchapp-install&quot;: &quot;a bunch of scripts&quot;, &quot;html-sketchapp&quot;: &quot;a bunch of scripts&quot;, &quot;lint&quot;: &quot;a bunch of scripts&quot;, &quot;sassdoc&quot;: &quot;a bunch of scripts&quot;, &quot;sassdoc:comp&quot;: &quot;a bunch of scripts&quot;, &quot;sassdoc:core&quot;: &quot;a bunch of scripts&quot;, &quot;start&quot;: &quot;a bunch of scripts&quot;, &quot;start:hmr&quot;: &quot;a bunch of scripts&quot;, &quot;start:qa&quot;: &quot;a bunch of scripts&quot;, &quot;start:dev&quot;: &quot;a bunch of scripts&quot;, &quot;generate-examples&quot;: &quot;a bunch of scripts&quot;, &quot;rebuild-markdown&quot;: &quot;a bunch of scripts&quot;, &quot;watch-examples&quot;: &quot;a bunch of scripts&quot;, &quot;test:cov&quot;: &quot;a bunch of scripts&quot;, &quot;test&quot;: &quot;jest&quot;, &quot;test:watch&quot;: &quot;jest --watch&quot;, &quot;test:cc&quot;: &quot;jest --coverage&quot; }, &quot;config&quot;: { &quot;commitizen&quot;: { &quot;path&quot;: &quot;./node_modules/cz-conventional-changelog&quot; } }, &quot;dependencies&quot;: { &quot;@angular-devkit/build-angular&quot;: &quot;~0.900.1&quot;, &quot;@angular-devkit/build-ng-packagr&quot;: &quot;~0.900.1&quot;, &quot;@angular-devkit/core&quot;: &quot;~9.0.0&quot;, &quot;@angular-devkit/schematics&quot;: &quot;~9.0.0&quot;, &quot;@angular/animations&quot;: &quot;~9.0.0&quot;, &quot;@angular/cdk&quot;: &quot;~9.0.0&quot;, &quot;@angular/cli&quot;: &quot;~9.0.1&quot;, &quot;@angular/common&quot;: &quot;~9.0.0&quot;, &quot;@angular/compiler&quot;: &quot;~9.0.0&quot;, &quot;@angular/compiler-cli&quot;: &quot;~9.0.0&quot;, &quot;@angular/core&quot;: &quot;~9.0.0&quot;, &quot;@angular/forms&quot;: &quot;~9.0.0&quot;, &quot;@angular/language-service&quot;: &quot;~9.0.0&quot;, &quot;@angular/platform-browser&quot;: &quot;~9.0.0&quot;, &quot;@angular/platform-browser-dynamic&quot;: &quot;~9.0.0&quot;, &quot;@angular/router&quot;: &quot;~9.0.0&quot;, &quot;@angular/service-worker&quot;: &quot;~9.0.0&quot;, &quot;@angularclass/hmr&quot;: &quot;2.1.3&quot;, &quot;@ngrx/effects&quot;: &quot;~8.6.0&quot;, &quot;@ngrx/entity&quot;: &quot;~8.6.0&quot;, &quot;@ngrx/router-store&quot;: &quot;~8.6.0&quot;, &quot;@ngrx/schematics&quot;: &quot;~8.6.0&quot;, &quot;@ngrx/store&quot;: &quot;~8.6.0&quot;, &quot;@ngrx/store-devtools&quot;: &quot;~8.6.0&quot;, &quot;@types/jasmine&quot;: &quot;~3.5.0&quot;, &quot;@types/jasminewd2&quot;: &quot;~2.0.3&quot;, &quot;@types/lodash-es&quot;: &quot;^4.17.3&quot;, &quot;@types/node&quot;: &quot;^12.11.1&quot;, &quot;classlist.js&quot;: &quot;1.1.20150312&quot;, &quot;codelyzer&quot;: &quot;^5.1.2&quot;, &quot;console-polyfill&quot;: &quot;0.3.0&quot;, &quot;core-js&quot;: &quot;^2.5.4&quot;, &quot;cz-conventional-changelog&quot;: &quot;1.2.0&quot;, &quot;date-fns&quot;: &quot;1.30.1&quot;, &quot;highcharts&quot;: &quot;^7.2.1&quot;, &quot;highcharts-angular&quot;: &quot;^2.4.0&quot;, &quot;html2canvas&quot;: &quot;^1.0.0-rc.5&quot;, &quot;jasmine-core&quot;: &quot;~3.5.0&quot;, &quot;jasmine-spec-reporter&quot;: &quot;~4.2.1&quot;, &quot;karma&quot;: &quot;~4.3.0&quot;, &quot;karma-chrome-launcher&quot;: &quot;~3.1.0&quot;, &quot;karma-coverage-istanbul-reporter&quot;: &quot;~2.1.0&quot;, &quot;karma-jasmine&quot;: &quot;~2.0.1&quot;, &quot;karma-jasmine-html-reporter&quot;: &quot;^1.4.2&quot;, &quot;lodash-es&quot;: &quot;^4.17.11&quot;, &quot;mime&quot;: &quot;~2.4.2&quot;, &quot;ngrx-store-freeze&quot;: &quot;0.2.4&quot;, &quot;ngx-monaco-editor&quot;: &quot;~8.0.0&quot;, &quot;ngx-quill&quot;: &quot;^7.3.12&quot;, &quot;pdfmake&quot;: &quot;^0.1.64&quot;, &quot;prettier&quot;: &quot;1.19.1&quot;, &quot;protractor&quot;: &quot;~5.4.3&quot;, &quot;quill&quot;: &quot;^1.3.7&quot;, &quot;rxjs&quot;: &quot;~6.5.4&quot;, &quot;rxjs-compat&quot;: &quot;^6.0.0&quot;, &quot;standard-changelog&quot;: &quot;1.0.19&quot;, &quot;svgxuse&quot;: &quot;1.2.6&quot;, &quot;ts-node&quot;: &quot;~8.3.0&quot;, &quot;tsickle&quot;: &quot;^0.35.0&quot;, &quot;tslib&quot;: &quot;^1.10.0&quot;, &quot;tslint&quot;: &quot;~5.18.0&quot;, &quot;typescript&quot;: &quot;~3.7.5&quot;, &quot;web-animations-js&quot;: &quot;~2.3.1&quot;, &quot;zone.js&quot;: &quot;~0.10.2&quot; }, &quot;devDependencies&quot;: { &quot;@types/jest&quot;: &quot;^24.0.6&quot;, &quot;jest&quot;: &quot;^24.1.0&quot;, &quot;jest-preset-angular&quot;: &quot;^6.0.2&quot;, &quot;ts-node&quot;: &quot;~7.0.1&quot;, &quot;typescript&quot;: &quot;3.2.4&quot; }, &quot;jest&quot;: { &quot;preset&quot;: &quot;jest-preset-angular&quot;, &quot;setupTestFrameworkScriptFile&quot;: &quot;&lt;rootDir&gt;/setupJest.ts&quot; }, &quot;nodemonConfig&quot;: { &quot;ignore&quot;: [ &quot;**/example-module.ts&quot; ], &quot;watch&quot;: [ &quot;./a/bunch/of/stuff&quot; ], &quot;ext&quot;: &quot;js ts md html&quot; }, &quot;workspaces&quot;: { &quot;packages&quot;: [ &quot;packages/*&quot; ], &quot;nohoist&quot;: [ &quot;**&quot; ] } }"><pre class="notranslate">{ <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>my-project<span class="pl-pds">"</span></span>, <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>0.0.1<span class="pl-pds">"</span></span>, <span class="pl-ent">"license"</span>: <span class="pl-s"><span class="pl-pds">"</span>MIT<span class="pl-pds">"</span></span>, <span class="pl-ent">"scripts"</span>: { <span class="pl-ent">"build"</span>: <span class="pl-s"><span class="pl-pds">"</span>a bunch of scripts<span class="pl-pds">"</span></span>, <span class="pl-ent">"ci"</span>: <span class="pl-s"><span class="pl-pds">"</span>a bunch of scripts<span class="pl-pds">"</span></span>, <span class="pl-ent">"ci:local"</span>: <span class="pl-s"><span class="pl-pds">"</span>a bunch of scripts<span class="pl-pds">"</span></span>, <span class="pl-ent">"docsite"</span>: <span class="pl-s"><span class="pl-pds">"</span>a bunch of scripts<span class="pl-pds">"</span></span>, <span class="pl-ent">"docsite:combiner"</span>: <span class="pl-s"><span class="pl-pds">"</span>a bunch of scripts<span class="pl-pds">"</span></span>, <span class="pl-ent">"docsite:sassdoc"</span>: <span class="pl-s"><span class="pl-pds">"</span>a bunch of scripts<span class="pl-pds">"</span></span>, <span class="pl-ent">"docsite:tsdoc"</span>: <span class="pl-s"><span class="pl-pds">"</span>a bunch of scripts<span class="pl-pds">"</span></span>, <span class="pl-ent">"e2e"</span>: <span class="pl-s"><span class="pl-pds">"</span>a bunch of scripts<span class="pl-pds">"</span></span>, <span class="pl-ent">"html-sketchapp-install"</span>: <span class="pl-s"><span class="pl-pds">"</span>a bunch of scripts<span class="pl-pds">"</span></span>, <span class="pl-ent">"html-sketchapp"</span>: <span class="pl-s"><span class="pl-pds">"</span>a bunch of scripts<span class="pl-pds">"</span></span>, <span class="pl-ent">"lint"</span>: <span class="pl-s"><span class="pl-pds">"</span>a bunch of scripts<span class="pl-pds">"</span></span>, <span class="pl-ent">"sassdoc"</span>: <span class="pl-s"><span class="pl-pds">"</span>a bunch of scripts<span class="pl-pds">"</span></span>, <span class="pl-ent">"sassdoc:comp"</span>: <span class="pl-s"><span class="pl-pds">"</span>a bunch of scripts<span class="pl-pds">"</span></span>, <span class="pl-ent">"sassdoc:core"</span>: <span class="pl-s"><span class="pl-pds">"</span>a bunch of scripts<span class="pl-pds">"</span></span>, <span class="pl-ent">"start"</span>: <span class="pl-s"><span class="pl-pds">"</span>a bunch of scripts<span class="pl-pds">"</span></span>, <span class="pl-ent">"start:hmr"</span>: <span class="pl-s"><span class="pl-pds">"</span>a bunch of scripts<span class="pl-pds">"</span></span>, <span class="pl-ent">"start:qa"</span>: <span class="pl-s"><span class="pl-pds">"</span>a bunch of scripts<span class="pl-pds">"</span></span>, <span class="pl-ent">"start:dev"</span>: <span class="pl-s"><span class="pl-pds">"</span>a bunch of scripts<span class="pl-pds">"</span></span>, <span class="pl-ent">"generate-examples"</span>: <span class="pl-s"><span class="pl-pds">"</span>a bunch of scripts<span class="pl-pds">"</span></span>, <span class="pl-ent">"rebuild-markdown"</span>: <span class="pl-s"><span class="pl-pds">"</span>a bunch of scripts<span class="pl-pds">"</span></span>, <span class="pl-ent">"watch-examples"</span>: <span class="pl-s"><span class="pl-pds">"</span>a bunch of scripts<span class="pl-pds">"</span></span>, <span class="pl-ent">"test:cov"</span>: <span class="pl-s"><span class="pl-pds">"</span>a bunch of scripts<span class="pl-pds">"</span></span>, <span class="pl-ent">"test"</span>: <span class="pl-s"><span class="pl-pds">"</span>jest<span class="pl-pds">"</span></span>, <span class="pl-ent">"test:watch"</span>: <span class="pl-s"><span class="pl-pds">"</span>jest --watch<span class="pl-pds">"</span></span>, <span class="pl-ent">"test:cc"</span>: <span class="pl-s"><span class="pl-pds">"</span>jest --coverage<span class="pl-pds">"</span></span> }, <span class="pl-ent">"config"</span>: { <span class="pl-ent">"commitizen"</span>: { <span class="pl-ent">"path"</span>: <span class="pl-s"><span class="pl-pds">"</span>./node_modules/cz-conventional-changelog<span class="pl-pds">"</span></span> } }, <span class="pl-ent">"dependencies"</span>: { <span class="pl-ent">"@angular-devkit/build-angular"</span>: <span class="pl-s"><span class="pl-pds">"</span>~0.900.1<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular-devkit/build-ng-packagr"</span>: <span class="pl-s"><span class="pl-pds">"</span>~0.900.1<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular-devkit/core"</span>: <span class="pl-s"><span class="pl-pds">"</span>~9.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular-devkit/schematics"</span>: <span class="pl-s"><span class="pl-pds">"</span>~9.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular/animations"</span>: <span class="pl-s"><span class="pl-pds">"</span>~9.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular/cdk"</span>: <span class="pl-s"><span class="pl-pds">"</span>~9.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular/cli"</span>: <span class="pl-s"><span class="pl-pds">"</span>~9.0.1<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular/common"</span>: <span class="pl-s"><span class="pl-pds">"</span>~9.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular/compiler"</span>: <span class="pl-s"><span class="pl-pds">"</span>~9.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular/compiler-cli"</span>: <span class="pl-s"><span class="pl-pds">"</span>~9.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular/core"</span>: <span class="pl-s"><span class="pl-pds">"</span>~9.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular/forms"</span>: <span class="pl-s"><span class="pl-pds">"</span>~9.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular/language-service"</span>: <span class="pl-s"><span class="pl-pds">"</span>~9.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular/platform-browser"</span>: <span class="pl-s"><span class="pl-pds">"</span>~9.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular/platform-browser-dynamic"</span>: <span class="pl-s"><span class="pl-pds">"</span>~9.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular/router"</span>: <span class="pl-s"><span class="pl-pds">"</span>~9.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angular/service-worker"</span>: <span class="pl-s"><span class="pl-pds">"</span>~9.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@angularclass/hmr"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.1.3<span class="pl-pds">"</span></span>, <span class="pl-ent">"@ngrx/effects"</span>: <span class="pl-s"><span class="pl-pds">"</span>~8.6.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@ngrx/entity"</span>: <span class="pl-s"><span class="pl-pds">"</span>~8.6.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@ngrx/router-store"</span>: <span class="pl-s"><span class="pl-pds">"</span>~8.6.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@ngrx/schematics"</span>: <span class="pl-s"><span class="pl-pds">"</span>~8.6.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@ngrx/store"</span>: <span class="pl-s"><span class="pl-pds">"</span>~8.6.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@ngrx/store-devtools"</span>: <span class="pl-s"><span class="pl-pds">"</span>~8.6.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@types/jasmine"</span>: <span class="pl-s"><span class="pl-pds">"</span>~3.5.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@types/jasminewd2"</span>: <span class="pl-s"><span class="pl-pds">"</span>~2.0.3<span class="pl-pds">"</span></span>, <span class="pl-ent">"@types/lodash-es"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.17.3<span class="pl-pds">"</span></span>, <span class="pl-ent">"@types/node"</span>: <span class="pl-s"><span class="pl-pds">"</span>^12.11.1<span class="pl-pds">"</span></span>, <span class="pl-ent">"classlist.js"</span>: <span class="pl-s"><span class="pl-pds">"</span>1.1.20150312<span class="pl-pds">"</span></span>, <span class="pl-ent">"codelyzer"</span>: <span class="pl-s"><span class="pl-pds">"</span>^5.1.2<span class="pl-pds">"</span></span>, <span class="pl-ent">"console-polyfill"</span>: <span class="pl-s"><span class="pl-pds">"</span>0.3.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"core-js"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.5.4<span class="pl-pds">"</span></span>, <span class="pl-ent">"cz-conventional-changelog"</span>: <span class="pl-s"><span class="pl-pds">"</span>1.2.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"date-fns"</span>: <span class="pl-s"><span class="pl-pds">"</span>1.30.1<span class="pl-pds">"</span></span>, <span class="pl-ent">"highcharts"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.2.1<span class="pl-pds">"</span></span>, <span class="pl-ent">"highcharts-angular"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.4.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"html2canvas"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.0.0-rc.5<span class="pl-pds">"</span></span>, <span class="pl-ent">"jasmine-core"</span>: <span class="pl-s"><span class="pl-pds">"</span>~3.5.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"jasmine-spec-reporter"</span>: <span class="pl-s"><span class="pl-pds">"</span>~4.2.1<span class="pl-pds">"</span></span>, <span class="pl-ent">"karma"</span>: <span class="pl-s"><span class="pl-pds">"</span>~4.3.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"karma-chrome-launcher"</span>: <span class="pl-s"><span class="pl-pds">"</span>~3.1.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"karma-coverage-istanbul-reporter"</span>: <span class="pl-s"><span class="pl-pds">"</span>~2.1.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"karma-jasmine"</span>: <span class="pl-s"><span class="pl-pds">"</span>~2.0.1<span class="pl-pds">"</span></span>, <span class="pl-ent">"karma-jasmine-html-reporter"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.4.2<span class="pl-pds">"</span></span>, <span class="pl-ent">"lodash-es"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.17.11<span class="pl-pds">"</span></span>, <span class="pl-ent">"mime"</span>: <span class="pl-s"><span class="pl-pds">"</span>~2.4.2<span class="pl-pds">"</span></span>, <span class="pl-ent">"ngrx-store-freeze"</span>: <span class="pl-s"><span class="pl-pds">"</span>0.2.4<span class="pl-pds">"</span></span>, <span class="pl-ent">"ngx-monaco-editor"</span>: <span class="pl-s"><span class="pl-pds">"</span>~8.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"ngx-quill"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.3.12<span class="pl-pds">"</span></span>, <span class="pl-ent">"pdfmake"</span>: <span class="pl-s"><span class="pl-pds">"</span>^0.1.64<span class="pl-pds">"</span></span>, <span class="pl-ent">"prettier"</span>: <span class="pl-s"><span class="pl-pds">"</span>1.19.1<span class="pl-pds">"</span></span>, <span class="pl-ent">"protractor"</span>: <span class="pl-s"><span class="pl-pds">"</span>~5.4.3<span class="pl-pds">"</span></span>, <span class="pl-ent">"quill"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.3.7<span class="pl-pds">"</span></span>, <span class="pl-ent">"rxjs"</span>: <span class="pl-s"><span class="pl-pds">"</span>~6.5.4<span class="pl-pds">"</span></span>, <span class="pl-ent">"rxjs-compat"</span>: <span class="pl-s"><span class="pl-pds">"</span>^6.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"standard-changelog"</span>: <span class="pl-s"><span class="pl-pds">"</span>1.0.19<span class="pl-pds">"</span></span>, <span class="pl-ent">"svgxuse"</span>: <span class="pl-s"><span class="pl-pds">"</span>1.2.6<span class="pl-pds">"</span></span>, <span class="pl-ent">"ts-node"</span>: <span class="pl-s"><span class="pl-pds">"</span>~8.3.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"tsickle"</span>: <span class="pl-s"><span class="pl-pds">"</span>^0.35.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"tslib"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.10.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"tslint"</span>: <span class="pl-s"><span class="pl-pds">"</span>~5.18.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"typescript"</span>: <span class="pl-s"><span class="pl-pds">"</span>~3.7.5<span class="pl-pds">"</span></span>, <span class="pl-ent">"web-animations-js"</span>: <span class="pl-s"><span class="pl-pds">"</span>~2.3.1<span class="pl-pds">"</span></span>, <span class="pl-ent">"zone.js"</span>: <span class="pl-s"><span class="pl-pds">"</span>~0.10.2<span class="pl-pds">"</span></span> }, <span class="pl-ent">"devDependencies"</span>: { <span class="pl-ent">"@types/jest"</span>: <span class="pl-s"><span class="pl-pds">"</span>^24.0.6<span class="pl-pds">"</span></span>, <span class="pl-ent">"jest"</span>: <span class="pl-s"><span class="pl-pds">"</span>^24.1.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"jest-preset-angular"</span>: <span class="pl-s"><span class="pl-pds">"</span>^6.0.2<span class="pl-pds">"</span></span>, <span class="pl-ent">"ts-node"</span>: <span class="pl-s"><span class="pl-pds">"</span>~7.0.1<span class="pl-pds">"</span></span>, <span class="pl-ent">"typescript"</span>: <span class="pl-s"><span class="pl-pds">"</span>3.2.4<span class="pl-pds">"</span></span> }, <span class="pl-ent">"jest"</span>: { <span class="pl-ent">"preset"</span>: <span class="pl-s"><span class="pl-pds">"</span>jest-preset-angular<span class="pl-pds">"</span></span>, <span class="pl-ent">"setupTestFrameworkScriptFile"</span>: <span class="pl-s"><span class="pl-pds">"</span>&lt;rootDir&gt;/setupJest.ts<span class="pl-pds">"</span></span> }, <span class="pl-ent">"nodemonConfig"</span>: { <span class="pl-ent">"ignore"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>**/example-module.ts<span class="pl-pds">"</span></span> ], <span class="pl-ent">"watch"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>./a/bunch/of/stuff<span class="pl-pds">"</span></span> ], <span class="pl-ent">"ext"</span>: <span class="pl-s"><span class="pl-pds">"</span>js ts md html<span class="pl-pds">"</span></span> }, <span class="pl-ent">"workspaces"</span>: { <span class="pl-ent">"packages"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>packages/*<span class="pl-pds">"</span></span> ], <span class="pl-ent">"nohoist"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>**<span class="pl-pds">"</span></span> ] } }</pre></div> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">An example of a package.json with comments.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;name&quot;: &quot;my-project&quot;, &quot;version&quot;: &quot;0.0.1&quot;, &quot;license&quot;: &quot;MIT&quot;, &quot;scripts&quot;: { &quot;build&quot;: &quot;a bunch of scripts&quot;, &quot;ci&quot;: &quot;a bunch of scripts&quot;, &quot;ci:local&quot;: &quot;a bunch of scripts&quot;, // for building our documentation site &quot;docsite&quot;: &quot;a bunch of scripts&quot;, &quot;docsite:combiner&quot;: &quot;a bunch of scripts&quot;, &quot;docsite:sassdoc&quot;: &quot;a bunch of scripts&quot;, &quot;docsite:tsdoc&quot;: &quot;a bunch of scripts&quot;, &quot;e2e&quot;: &quot;a bunch of scripts&quot;, &quot;lint&quot;: &quot;a bunch of scripts&quot;, &quot;sassdoc&quot;: &quot;a bunch of scripts&quot;, &quot;sassdoc:comp&quot;: &quot;a bunch of scripts&quot;, &quot;sassdoc:core&quot;: &quot;a bunch of scripts&quot;, &quot;start&quot;: &quot;a bunch of scripts&quot;, &quot;start:hmr&quot;: &quot;a bunch of scripts&quot;, &quot;start:qa&quot;: &quot;a bunch of scripts&quot;, &quot;start:dev&quot;: &quot;a bunch of scripts&quot;, &quot;generate-examples&quot;: &quot;a bunch of scripts&quot;, &quot;rebuild-markdown&quot;: &quot;a bunch of scripts&quot;, &quot;watch-examples&quot;: &quot;a bunch of scripts&quot;, &quot;test:cov&quot;: &quot;a bunch of scripts&quot;, &quot;test&quot;: &quot;jest&quot;, &quot;test:watch&quot;: &quot;jest --watch&quot;, &quot;test:cc&quot;: &quot;jest --coverage&quot; }, &quot;config&quot;: { &quot;commitizen&quot;: { &quot;path&quot;: &quot;./node_modules/cz-conventional-changelog&quot; } }, &quot;dependencies&quot;: { // ANGULAR &quot;@angular-devkit/build-angular&quot;: &quot;~0.900.1&quot;, &quot;@angular-devkit/build-ng-packagr&quot;: &quot;~0.900.1&quot;, &quot;@angular-devkit/core&quot;: &quot;~9.0.0&quot;, &quot;@angular-devkit/schematics&quot;: &quot;~9.0.0&quot;, &quot;@angular/animations&quot;: &quot;~9.0.0&quot;, &quot;@angular/cdk&quot;: &quot;~9.0.0&quot;, &quot;@angular/cli&quot;: &quot;~9.0.1&quot;, &quot;@angular/common&quot;: &quot;~9.0.0&quot;, &quot;@angular/compiler&quot;: &quot;~9.0.0&quot;, &quot;@angular/compiler-cli&quot;: &quot;~9.0.0&quot;, &quot;@angular/core&quot;: &quot;~9.0.0&quot;, &quot;@angular/forms&quot;: &quot;~9.0.0&quot;, &quot;@angular/language-service&quot;: &quot;~9.0.0&quot;, &quot;@angular/platform-browser&quot;: &quot;~9.0.0&quot;, &quot;@angular/platform-browser-dynamic&quot;: &quot;~9.0.0&quot;, &quot;@angular/router&quot;: &quot;~9.0.0&quot;, &quot;@angular/service-worker&quot;: &quot;~9.0.0&quot;, &quot;@angularclass/hmr&quot;: &quot;2.1.3&quot;, &quot;zone.js&quot;: &quot;~0.10.2&quot;, &quot;rxjs&quot;: &quot;~6.5.4&quot;, &quot;rxjs-compat&quot;: &quot;^6.0.0&quot;, // polyfills for angular &quot;console-polyfill&quot;: &quot;0.3.0&quot;, &quot;core-js&quot;: &quot;^2.5.4&quot;, &quot;classlist.js&quot;: &quot;1.1.20150312&quot;, &quot;svgxuse&quot;: &quot;1.2.6&quot;, &quot;web-animations-js&quot;: &quot;~2.3.1&quot;, // lint management &quot;codelyzer&quot;: &quot;^5.1.2&quot;, &quot;prettier&quot;: &quot;1.19.1&quot;, &quot;tslint&quot;: &quot;~5.18.0&quot;, // changelog creation &quot;cz-conventional-changelog&quot;: &quot;1.2.0&quot;, &quot;standard-changelog&quot;: &quot;1.0.19&quot;, // ngrx state management &quot;@ngrx/effects&quot;: &quot;~8.6.0&quot;, &quot;@ngrx/entity&quot;: &quot;~8.6.0&quot;, &quot;@ngrx/router-store&quot;: &quot;~8.6.0&quot;, &quot;@ngrx/schematics&quot;: &quot;~8.6.0&quot;, &quot;@ngrx/store&quot;: &quot;~8.6.0&quot;, &quot;@ngrx/store-devtools&quot;: &quot;~8.6.0&quot;, &quot;ngrx-store-freeze&quot;: &quot;0.2.4&quot;, // library deps // Graphs support &quot;highcharts&quot;: &quot;^7.2.1&quot;, &quot;highcharts-angular&quot;: &quot;^2.4.0&quot;, // for creating pdfs &quot;html2canvas&quot;: &quot;^1.0.0-rc.5&quot;, &quot;pdfmake&quot;: &quot;^0.1.64&quot;, // rich text support &quot;ngx-quill&quot;: &quot;^7.3.12&quot;, &quot;quill&quot;: &quot;^1.3.7&quot;, // testing &quot;jasmine-core&quot;: &quot;~3.5.0&quot;, &quot;jasmine-spec-reporter&quot;: &quot;~4.2.1&quot;, &quot;karma&quot;: &quot;~4.3.0&quot;, &quot;karma-chrome-launcher&quot;: &quot;~3.1.0&quot;, &quot;karma-coverage-istanbul-reporter&quot;: &quot;~2.1.0&quot;, &quot;karma-jasmine&quot;: &quot;~2.0.1&quot;, &quot;karma-jasmine-html-reporter&quot;: &quot;^1.4.2&quot;, // e2e testing &quot;protractor&quot;: &quot;~5.4.3&quot;, // typscript and compilation &quot;ts-node&quot;: &quot;~8.3.0&quot;, &quot;tsickle&quot;: &quot;^0.35.0&quot;, &quot;tslib&quot;: &quot;^1.10.0&quot;, &quot;typescript&quot;: &quot;~3.7.5&quot;, // misc deps &quot;date-fns&quot;: &quot;1.30.1&quot;, &quot;lodash-es&quot;: &quot;^4.17.11&quot;, &quot;mime&quot;: &quot;~2.4.2&quot; }, &quot;devDependencies&quot;: { &quot;@types/jasmine&quot;: &quot;~3.5.0&quot;, &quot;@types/jasminewd2&quot;: &quot;~2.0.3&quot;, &quot;@types/lodash-es&quot;: &quot;^4.17.3&quot;, &quot;@types/node&quot;: &quot;^12.11.1&quot;, &quot;@types/jest&quot;: &quot;^24.0.6&quot;, &quot;jest&quot;: &quot;^24.1.0&quot;, &quot;jest-preset-angular&quot;: &quot;^6.0.2&quot;, &quot;ts-node&quot;: &quot;~7.0.1&quot;, &quot;typescript&quot;: &quot;3.2.4&quot; }, // complicated jest configuration here &quot;jest&quot;: { &quot;preset&quot;: &quot;jest-preset-angular&quot;, &quot;setupTestFrameworkScriptFile&quot;: &quot;&lt;rootDir&gt;/setupJest.ts&quot; }, // use nodemon to trigger stuff &quot;nodemonConfig&quot;: { &quot;ignore&quot;: [ &quot;**/example-module.ts&quot; ], &quot;watch&quot;: [ &quot;./a/bunch/of/stuff&quot; ], &quot;ext&quot;: &quot;js ts md html&quot; }, // extra libraries we are creating internally &quot;workspaces&quot;: { &quot;packages&quot;: [ &quot;packages/*&quot; ], &quot;nohoist&quot;: [ &quot;**&quot; ] } }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"name"</span>: <span class="pl-s">"my-project"</span><span class="pl-kos">,</span> <span class="pl-s">"version"</span>: <span class="pl-s">"0.0.1"</span><span class="pl-kos">,</span> <span class="pl-s">"license"</span>: <span class="pl-s">"MIT"</span><span class="pl-kos">,</span> <span class="pl-s">"scripts"</span>: <span class="pl-kos">{</span> <span class="pl-s">"build"</span>: <span class="pl-s">"a bunch of scripts"</span><span class="pl-kos">,</span> <span class="pl-s">"ci"</span>: <span class="pl-s">"a bunch of scripts"</span><span class="pl-kos">,</span> <span class="pl-s">"ci:local"</span>: <span class="pl-s">"a bunch of scripts"</span><span class="pl-kos">,</span> <span class="pl-c">// for building our documentation site</span> <span class="pl-s">"docsite"</span>: <span class="pl-s">"a bunch of scripts"</span><span class="pl-kos">,</span> <span class="pl-s">"docsite:combiner"</span>: <span class="pl-s">"a bunch of scripts"</span><span class="pl-kos">,</span> <span class="pl-s">"docsite:sassdoc"</span>: <span class="pl-s">"a bunch of scripts"</span><span class="pl-kos">,</span> <span class="pl-s">"docsite:tsdoc"</span>: <span class="pl-s">"a bunch of scripts"</span><span class="pl-kos">,</span> <span class="pl-s">"e2e"</span>: <span class="pl-s">"a bunch of scripts"</span><span class="pl-kos">,</span> <span class="pl-s">"lint"</span>: <span class="pl-s">"a bunch of scripts"</span><span class="pl-kos">,</span> <span class="pl-s">"sassdoc"</span>: <span class="pl-s">"a bunch of scripts"</span><span class="pl-kos">,</span> <span class="pl-s">"sassdoc:comp"</span>: <span class="pl-s">"a bunch of scripts"</span><span class="pl-kos">,</span> <span class="pl-s">"sassdoc:core"</span>: <span class="pl-s">"a bunch of scripts"</span><span class="pl-kos">,</span> <span class="pl-s">"start"</span>: <span class="pl-s">"a bunch of scripts"</span><span class="pl-kos">,</span> <span class="pl-s">"start:hmr"</span>: <span class="pl-s">"a bunch of scripts"</span><span class="pl-kos">,</span> <span class="pl-s">"start:qa"</span>: <span class="pl-s">"a bunch of scripts"</span><span class="pl-kos">,</span> <span class="pl-s">"start:dev"</span>: <span class="pl-s">"a bunch of scripts"</span><span class="pl-kos">,</span> <span class="pl-s">"generate-examples"</span>: <span class="pl-s">"a bunch of scripts"</span><span class="pl-kos">,</span> <span class="pl-s">"rebuild-markdown"</span>: <span class="pl-s">"a bunch of scripts"</span><span class="pl-kos">,</span> <span class="pl-s">"watch-examples"</span>: <span class="pl-s">"a bunch of scripts"</span><span class="pl-kos">,</span> <span class="pl-s">"test:cov"</span>: <span class="pl-s">"a bunch of scripts"</span><span class="pl-kos">,</span> <span class="pl-s">"test"</span>: <span class="pl-s">"jest"</span><span class="pl-kos">,</span> <span class="pl-s">"test:watch"</span>: <span class="pl-s">"jest --watch"</span><span class="pl-kos">,</span> <span class="pl-s">"test:cc"</span>: <span class="pl-s">"jest --coverage"</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"config"</span>: <span class="pl-kos">{</span> <span class="pl-s">"commitizen"</span>: <span class="pl-kos">{</span> <span class="pl-s">"path"</span>: <span class="pl-s">"./node_modules/cz-conventional-changelog"</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"dependencies"</span>: <span class="pl-kos">{</span> <span class="pl-c">// ANGULAR</span> <span class="pl-s">"@angular-devkit/build-angular"</span>: <span class="pl-s">"~0.900.1"</span><span class="pl-kos">,</span> <span class="pl-s">"@angular-devkit/build-ng-packagr"</span>: <span class="pl-s">"~0.900.1"</span><span class="pl-kos">,</span> <span class="pl-s">"@angular-devkit/core"</span>: <span class="pl-s">"~9.0.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@angular-devkit/schematics"</span>: <span class="pl-s">"~9.0.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@angular/animations"</span>: <span class="pl-s">"~9.0.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@angular/cdk"</span>: <span class="pl-s">"~9.0.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@angular/cli"</span>: <span class="pl-s">"~9.0.1"</span><span class="pl-kos">,</span> <span class="pl-s">"@angular/common"</span>: <span class="pl-s">"~9.0.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@angular/compiler"</span>: <span class="pl-s">"~9.0.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@angular/compiler-cli"</span>: <span class="pl-s">"~9.0.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@angular/core"</span>: <span class="pl-s">"~9.0.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@angular/forms"</span>: <span class="pl-s">"~9.0.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@angular/language-service"</span>: <span class="pl-s">"~9.0.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@angular/platform-browser"</span>: <span class="pl-s">"~9.0.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@angular/platform-browser-dynamic"</span>: <span class="pl-s">"~9.0.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@angular/router"</span>: <span class="pl-s">"~9.0.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@angular/service-worker"</span>: <span class="pl-s">"~9.0.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@angularclass/hmr"</span>: <span class="pl-s">"2.1.3"</span><span class="pl-kos">,</span> <span class="pl-s">"zone.js"</span>: <span class="pl-s">"~0.10.2"</span><span class="pl-kos">,</span> <span class="pl-s">"rxjs"</span>: <span class="pl-s">"~6.5.4"</span><span class="pl-kos">,</span> <span class="pl-s">"rxjs-compat"</span>: <span class="pl-s">"^6.0.0"</span><span class="pl-kos">,</span> <span class="pl-c">// polyfills for angular </span> <span class="pl-s">"console-polyfill"</span>: <span class="pl-s">"0.3.0"</span><span class="pl-kos">,</span> <span class="pl-s">"core-js"</span>: <span class="pl-s">"^2.5.4"</span><span class="pl-kos">,</span> <span class="pl-s">"classlist.js"</span>: <span class="pl-s">"1.1.20150312"</span><span class="pl-kos">,</span> <span class="pl-s">"svgxuse"</span>: <span class="pl-s">"1.2.6"</span><span class="pl-kos">,</span> <span class="pl-s">"web-animations-js"</span>: <span class="pl-s">"~2.3.1"</span><span class="pl-kos">,</span> <span class="pl-c">// lint management</span> <span class="pl-s">"codelyzer"</span>: <span class="pl-s">"^5.1.2"</span><span class="pl-kos">,</span> <span class="pl-s">"prettier"</span>: <span class="pl-s">"1.19.1"</span><span class="pl-kos">,</span> <span class="pl-s">"tslint"</span>: <span class="pl-s">"~5.18.0"</span><span class="pl-kos">,</span> <span class="pl-c">// changelog creation</span> <span class="pl-s">"cz-conventional-changelog"</span>: <span class="pl-s">"1.2.0"</span><span class="pl-kos">,</span> <span class="pl-s">"standard-changelog"</span>: <span class="pl-s">"1.0.19"</span><span class="pl-kos">,</span> <span class="pl-c">// ngrx state management </span> <span class="pl-s">"@ngrx/effects"</span>: <span class="pl-s">"~8.6.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@ngrx/entity"</span>: <span class="pl-s">"~8.6.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@ngrx/router-store"</span>: <span class="pl-s">"~8.6.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@ngrx/schematics"</span>: <span class="pl-s">"~8.6.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@ngrx/store"</span>: <span class="pl-s">"~8.6.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@ngrx/store-devtools"</span>: <span class="pl-s">"~8.6.0"</span><span class="pl-kos">,</span> <span class="pl-s">"ngrx-store-freeze"</span>: <span class="pl-s">"0.2.4"</span><span class="pl-kos">,</span> <span class="pl-c">// library deps</span> <span class="pl-c">// Graphs support</span> <span class="pl-s">"highcharts"</span>: <span class="pl-s">"^7.2.1"</span><span class="pl-kos">,</span> <span class="pl-s">"highcharts-angular"</span>: <span class="pl-s">"^2.4.0"</span><span class="pl-kos">,</span> <span class="pl-c">// for creating pdfs</span> <span class="pl-s">"html2canvas"</span>: <span class="pl-s">"^1.0.0-rc.5"</span><span class="pl-kos">,</span> <span class="pl-s">"pdfmake"</span>: <span class="pl-s">"^0.1.64"</span><span class="pl-kos">,</span> <span class="pl-c">// rich text support</span> <span class="pl-s">"ngx-quill"</span>: <span class="pl-s">"^7.3.12"</span><span class="pl-kos">,</span> <span class="pl-s">"quill"</span>: <span class="pl-s">"^1.3.7"</span><span class="pl-kos">,</span> <span class="pl-c">// testing</span> <span class="pl-s">"jasmine-core"</span>: <span class="pl-s">"~3.5.0"</span><span class="pl-kos">,</span> <span class="pl-s">"jasmine-spec-reporter"</span>: <span class="pl-s">"~4.2.1"</span><span class="pl-kos">,</span> <span class="pl-s">"karma"</span>: <span class="pl-s">"~4.3.0"</span><span class="pl-kos">,</span> <span class="pl-s">"karma-chrome-launcher"</span>: <span class="pl-s">"~3.1.0"</span><span class="pl-kos">,</span> <span class="pl-s">"karma-coverage-istanbul-reporter"</span>: <span class="pl-s">"~2.1.0"</span><span class="pl-kos">,</span> <span class="pl-s">"karma-jasmine"</span>: <span class="pl-s">"~2.0.1"</span><span class="pl-kos">,</span> <span class="pl-s">"karma-jasmine-html-reporter"</span>: <span class="pl-s">"^1.4.2"</span><span class="pl-kos">,</span> <span class="pl-c">// e2e testing</span> <span class="pl-s">"protractor"</span>: <span class="pl-s">"~5.4.3"</span><span class="pl-kos">,</span> <span class="pl-c">// typscript and compilation</span> <span class="pl-s">"ts-node"</span>: <span class="pl-s">"~8.3.0"</span><span class="pl-kos">,</span> <span class="pl-s">"tsickle"</span>: <span class="pl-s">"^0.35.0"</span><span class="pl-kos">,</span> <span class="pl-s">"tslib"</span>: <span class="pl-s">"^1.10.0"</span><span class="pl-kos">,</span> <span class="pl-s">"typescript"</span>: <span class="pl-s">"~3.7.5"</span><span class="pl-kos">,</span> <span class="pl-c">// misc deps</span> <span class="pl-s">"date-fns"</span>: <span class="pl-s">"1.30.1"</span><span class="pl-kos">,</span> <span class="pl-s">"lodash-es"</span>: <span class="pl-s">"^4.17.11"</span><span class="pl-kos">,</span> <span class="pl-s">"mime"</span>: <span class="pl-s">"~2.4.2"</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"devDependencies"</span>: <span class="pl-kos">{</span> <span class="pl-s">"@types/jasmine"</span>: <span class="pl-s">"~3.5.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@types/jasminewd2"</span>: <span class="pl-s">"~2.0.3"</span><span class="pl-kos">,</span> <span class="pl-s">"@types/lodash-es"</span>: <span class="pl-s">"^4.17.3"</span><span class="pl-kos">,</span> <span class="pl-s">"@types/node"</span>: <span class="pl-s">"^12.11.1"</span><span class="pl-kos">,</span> <span class="pl-s">"@types/jest"</span>: <span class="pl-s">"^24.0.6"</span><span class="pl-kos">,</span> <span class="pl-s">"jest"</span>: <span class="pl-s">"^24.1.0"</span><span class="pl-kos">,</span> <span class="pl-s">"jest-preset-angular"</span>: <span class="pl-s">"^6.0.2"</span><span class="pl-kos">,</span> <span class="pl-s">"ts-node"</span>: <span class="pl-s">"~7.0.1"</span><span class="pl-kos">,</span> <span class="pl-s">"typescript"</span>: <span class="pl-s">"3.2.4"</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c">// complicated jest configuration here</span> <span class="pl-s">"jest"</span>: <span class="pl-kos">{</span> <span class="pl-s">"preset"</span>: <span class="pl-s">"jest-preset-angular"</span><span class="pl-kos">,</span> <span class="pl-s">"setupTestFrameworkScriptFile"</span>: <span class="pl-s">"&lt;rootDir&gt;/setupJest.ts"</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c">// use nodemon to trigger stuff</span> <span class="pl-s">"nodemonConfig"</span>: <span class="pl-kos">{</span> <span class="pl-s">"ignore"</span>: <span class="pl-kos">[</span> <span class="pl-s">"**/example-module.ts"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s">"watch"</span>: <span class="pl-kos">[</span> <span class="pl-s">"./a/bunch/of/stuff"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s">"ext"</span>: <span class="pl-s">"js ts md html"</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c">// extra libraries we are creating internally</span> <span class="pl-s">"workspaces"</span>: <span class="pl-kos">{</span> <span class="pl-s">"packages"</span>: <span class="pl-kos">[</span> <span class="pl-s">"packages/*"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s">"nohoist"</span>: <span class="pl-kos">[</span> <span class="pl-s">"**"</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <h2 dir="auto">References</h2> <p dir="auto"><a href="https://github.com/microsoft/node-jsonc-parser">https://github.com/microsoft/node-jsonc-parser</a></p> <p dir="auto">Typescript uses comments in their tsconfig.json files.</p>
<p dir="auto">#</p> <blockquote> <p dir="auto">n/a</p> </blockquote> <p dir="auto">the contents of the associated log file are</p> <p dir="auto">0 info it worked if it ends with ok<br> 1 verbose cli [<br> 1 verbose cli 'C:\Program Files\nodejs\node.exe',<br> 1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',<br> 1 verbose cli 'info',<br> 1 verbose cli 'cordova'<br> 1 verbose cli ]<br> 2 info using [email protected]<br> 3 info using [email protected]<br> 4 verbose npm-session 8885ffcd267498aa<br> 5 timing npm Completed in 3432ms<br> 6 error cb() never called!<br> 7 error This is an error with npm itself. Please report this error at:<br> 8 error <a href="https://npm.community" rel="nofollow">https://npm.community</a></p>
0
<p dir="auto">Hi folks,</p> <p dir="auto">I'm getting an ICE from the following code fragment:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let xy: Vec&lt;u8&gt; = vec![0,1,2,3]; let slice = xy.as_ptr() as *const [u8];"><pre class="notranslate"><span class="pl-k">let</span> xy<span class="pl-kos">:</span> <span class="pl-smi">Vec</span><span class="pl-kos">&lt;</span><span class="pl-smi">u8</span><span class="pl-kos">&gt;</span> = <span class="pl-en">vec</span><span class="pl-en">!</span><span class="pl-kos">[</span><span class="pl-c1">0</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-k">let</span> slice = xy<span class="pl-kos">.</span><span class="pl-en">as_ptr</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-k">as</span> <span class="pl-c1">*</span><span class="pl-k">const</span> <span class="pl-kos">[</span><span class="pl-smi">u8</span><span class="pl-kos">]</span><span class="pl-kos">;</span></pre></div> <p dir="auto">rustc version is</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="workstation:~# rustc --version rustc 1.0.0-nightly (2baf34825 2015-04-21) (built 2015-04-22)"><pre class="notranslate"><code class="notranslate">workstation:~# rustc --version rustc 1.0.0-nightly (2baf34825 2015-04-21) (built 2015-04-22) </code></pre></div> <p dir="auto">backtrace results:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="arena_tests.rs:49 let slice = xy.as_ptr() as *const [u8]; ^~~~~ error: internal compiler error: translating unsupported cast: *const u8 (cast_pointer) -&gt; *const [u8] (cast_other) note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'Box&lt;Any&gt;', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:209 stack backtrace: 1: 0x7f5a17169bb9 - sys::backtrace::write::he1173a406c2335a83JC 2: 0x7f5a1718e4b7 - panicking::on_panic::hfd4f10113591c07f9aJ 3: 0x7f5a170d8322 - rt::unwind::begin_unwind_inner::h5dd2f870d997f851hQI 4: 0x7f5a1466f8ad - rt::unwind::begin_unwind::h11948444363592342521 5: 0x7f5a1466ff6b - diagnostic::Handler::bug::h8b610b99ced770c3AtB 6: 0x7f5a1504ae6b - session::Session::bug::h9b57e3cf31a5ccf02Sq 7: 0x7f5a168c5b37 - trans::expr::trans_imm_cast::hcc8d7dfc4709cde4XCC 8: 0x7f5a168b9897 - trans::expr::trans_unadjusted::hf7cee925729ae17cJQA 9: 0x7f5a1688f088 - trans::expr::trans_into::h6ab0ed2ab3f50b9a67z 10: 0x7f5a1691005a - trans::_match::mk_binding_alloca::h7975878531167784623 11: 0x7f5a167fd05e - trans::base::init_local::h091fe6ffe939a1f5VWg 12: 0x7f5a1680d8ee - trans::controlflow::trans_block::h4cc709c0c234a1a9f5u 13: 0x7f5a1680c6b1 - trans::base::trans_closure::hca42661a4cb8808aYDh 14: 0x7f5a1680e1da - trans::base::trans_fn::h8c8ad1cfb018c3d1IOh 15: 0x7f5a16811267 - trans::base::trans_item::h5f366b9cf5915577Yci 16: 0x7f5a1681fadd - trans::base::trans_crate::h4d51da86e796d34d31i 17: 0x7f5a177e20fa - driver::phase_4_translate_to_llvm::hb8e4f02386630e0djOa 18: 0x7f5a177b9f4a - driver::compile_input::h7fb56cda9a0f227dQba 19: 0x7f5a17878711 - run_compiler::hbdd9b2c4cacce291L4b 20: 0x7f5a17876362 - boxed::F.FnBox&lt;A&gt;::call_box::h9433597520612747 21: 0x7f5a17875899 - rt::unwind::try::try_fn::h10263588931191114294 22: 0x7f5a17204348 - rust_try_inner 23: 0x7f5a17204335 - rust_try 24: 0x7f5a17875b48 - boxed::F.FnBox&lt;A&gt;::call_box::h17081069488870149893 25: 0x7f5a1717be41 - sys::thread::create::thread_start::hb84d91b7ff5c0ddcrLH 26: 0x7f5a111580a4 - start_thread 27: 0x7f5a16d42cfc - __clone 28: 0x0 - &lt;unknown&gt; "><pre class="notranslate"><code class="notranslate">arena_tests.rs:49 let slice = xy.as_ptr() as *const [u8]; ^~~~~ error: internal compiler error: translating unsupported cast: *const u8 (cast_pointer) -&gt; *const [u8] (cast_other) note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'Box&lt;Any&gt;', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:209 stack backtrace: 1: 0x7f5a17169bb9 - sys::backtrace::write::he1173a406c2335a83JC 2: 0x7f5a1718e4b7 - panicking::on_panic::hfd4f10113591c07f9aJ 3: 0x7f5a170d8322 - rt::unwind::begin_unwind_inner::h5dd2f870d997f851hQI 4: 0x7f5a1466f8ad - rt::unwind::begin_unwind::h11948444363592342521 5: 0x7f5a1466ff6b - diagnostic::Handler::bug::h8b610b99ced770c3AtB 6: 0x7f5a1504ae6b - session::Session::bug::h9b57e3cf31a5ccf02Sq 7: 0x7f5a168c5b37 - trans::expr::trans_imm_cast::hcc8d7dfc4709cde4XCC 8: 0x7f5a168b9897 - trans::expr::trans_unadjusted::hf7cee925729ae17cJQA 9: 0x7f5a1688f088 - trans::expr::trans_into::h6ab0ed2ab3f50b9a67z 10: 0x7f5a1691005a - trans::_match::mk_binding_alloca::h7975878531167784623 11: 0x7f5a167fd05e - trans::base::init_local::h091fe6ffe939a1f5VWg 12: 0x7f5a1680d8ee - trans::controlflow::trans_block::h4cc709c0c234a1a9f5u 13: 0x7f5a1680c6b1 - trans::base::trans_closure::hca42661a4cb8808aYDh 14: 0x7f5a1680e1da - trans::base::trans_fn::h8c8ad1cfb018c3d1IOh 15: 0x7f5a16811267 - trans::base::trans_item::h5f366b9cf5915577Yci 16: 0x7f5a1681fadd - trans::base::trans_crate::h4d51da86e796d34d31i 17: 0x7f5a177e20fa - driver::phase_4_translate_to_llvm::hb8e4f02386630e0djOa 18: 0x7f5a177b9f4a - driver::compile_input::h7fb56cda9a0f227dQba 19: 0x7f5a17878711 - run_compiler::hbdd9b2c4cacce291L4b 20: 0x7f5a17876362 - boxed::F.FnBox&lt;A&gt;::call_box::h9433597520612747 21: 0x7f5a17875899 - rt::unwind::try::try_fn::h10263588931191114294 22: 0x7f5a17204348 - rust_try_inner 23: 0x7f5a17204335 - rust_try 24: 0x7f5a17875b48 - boxed::F.FnBox&lt;A&gt;::call_box::h17081069488870149893 25: 0x7f5a1717be41 - sys::thread::create::thread_start::hb84d91b7ff5c0ddcrLH 26: 0x7f5a111580a4 - start_thread 27: 0x7f5a16d42cfc - __clone 28: 0x0 - &lt;unknown&gt; </code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="extern crate libc; fn main() { unsafe { let data = libc::malloc(100); let data_vec = data as *mut [u8]; } }"><pre class="notranslate"><code class="notranslate">extern crate libc; fn main() { unsafe { let data = libc::malloc(100); let data_vec = data as *mut [u8]; } } </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc --version rustc 1.0.0-nightly (890293655 2015-02-28) (built 2015-03-01)"><pre class="notranslate"><code class="notranslate">$ rustc --version rustc 1.0.0-nightly (890293655 2015-02-28) (built 2015-03-01) </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ RUST_BACKTRACE=1 rustc 1.rs 1.rs:1:1: 1:19 warning: use of unstable library feature 'libc' 1.rs:1 extern crate libc; ^~~~~~~~~~~~~~~~~~ 1.rs:1:1: 1:19 help: add #![feature(libc)] to the crate attributes to silence this warning 1.rs:1 extern crate libc; ^~~~~~~~~~~~~~~~~~ 1.rs:5:20: 5:32 warning: use of unstable library feature 'libc' 1.rs:5 let data = libc::malloc(100); ^~~~~~~~~~~~ 1.rs:5:20: 5:32 help: add #![feature(libc)] to the crate attributes to silence this warning 1.rs:5 let data = libc::malloc(100); ^~~~~~~~~~~~ 1.rs:6:13: 6:21 warning: unused variable: `data_vec`, #[warn(unused_variables)] on by default 1.rs:6 let data_vec = data as *mut [u8]; ^~~~~~~~ error: internal compiler error: translating unsupported cast: *mut libc::types::common::c95::c_void (cast_pointer) -&gt; *mut [u8] (cast_other) note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'Box&lt;Any&gt;', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:189 stack backtrace: 1: 0x61ef7c4f - sys::backtrace::write::hb08af03691eab78a5kA 2: 0x61f20782 - panicking::on_panic::h37164609ca1c02afBnJ 3: 0x61e6063a - rt::unwind::begin_unwind_inner::h24d5e7492198457b43I 4: 0x5f189a8d - rt::unwind::begin_unwind::h9113908695753286194 5: 0x5f18a2c5 - diagnostic::Handler::bug::h35ee8d5e5a4a01aeCHD 6: 0x5fcaa9fb - session::Session::bug::hf545afa75e911993uwp 7: 0x615e1650 - trans::expr::trans_imm_cast::h267a0afdb72de17aLPj 8: 0x615cc199 - trans::expr::trans_unadjusted::h195794326d4a3453m4h 9: 0x615835bf - trans::expr::trans_into::h4bccf2ad56ca2eb8mnh 10: 0x6168307e - trans::_match::mk_binding_alloca::h11720668362277363266 11: 0x6158281d - trans::base::init_local::h445e388f28d5f2ddMps 12: 0x61583fe2 - trans::controlflow::trans_block::hac110643148141f4T4d 13: 0x615cd7ae - trans::expr::trans_rvalue_dps_unadjusted::h98f8f68155d4ea21Rzi 14: 0x6158359e - trans::expr::trans_into::h4bccf2ad56ca2eb8mnh 15: 0x61584307 - trans::controlflow::trans_block::hac110643148141f4T4d 16: 0x6164f7ef - trans::base::trans_closure::hf74692cb2d4d8ab8wct 17: 0x61570538 - trans::base::trans_fn::hd3b302f8da4ef8d2pnt 18: 0x6156c107 - trans::base::trans_item::h43df28c38e89c2c1hLt 19: 0x616562fc - trans::base::trans_crate::h6e541e412696da41RGu 20: 0x62581fd2 - driver::phase_4_translate_to_llvm::h39966ab909496f1crNa 21: 0x6255d5c8 - driver::compile_input::hee81c045ab46c74fIba 22: 0x62627e6e - run_compiler::h875c1e123fe4ae2cF5b 23: 0x62625a1c - thunk::F.Invoke&lt;A, R&gt;::invoke::h12424714292252424185 24: 0x62624770 - rt::unwind::try::try_fn::h4021821266450575721 25: 0x61f8bfe8 - rust_try_inner 26: 0x61f8bfd5 - rust_try 27: 0x62624e5c - thunk::F.Invoke&lt;A, R&gt;::invoke::h8199562432922027576 28: 0x61f0c2d5 - sys::thread::thread_start::h1b1bb1e7ac08d3a6yRE 29: 0x5bc420a3 - start_thread 30: 0x61adfccc - __clone 31: 0xffffffff - &lt;unknown&gt;"><pre class="notranslate"><code class="notranslate">$ RUST_BACKTRACE=1 rustc 1.rs 1.rs:1:1: 1:19 warning: use of unstable library feature 'libc' 1.rs:1 extern crate libc; ^~~~~~~~~~~~~~~~~~ 1.rs:1:1: 1:19 help: add #![feature(libc)] to the crate attributes to silence this warning 1.rs:1 extern crate libc; ^~~~~~~~~~~~~~~~~~ 1.rs:5:20: 5:32 warning: use of unstable library feature 'libc' 1.rs:5 let data = libc::malloc(100); ^~~~~~~~~~~~ 1.rs:5:20: 5:32 help: add #![feature(libc)] to the crate attributes to silence this warning 1.rs:5 let data = libc::malloc(100); ^~~~~~~~~~~~ 1.rs:6:13: 6:21 warning: unused variable: `data_vec`, #[warn(unused_variables)] on by default 1.rs:6 let data_vec = data as *mut [u8]; ^~~~~~~~ error: internal compiler error: translating unsupported cast: *mut libc::types::common::c95::c_void (cast_pointer) -&gt; *mut [u8] (cast_other) note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'Box&lt;Any&gt;', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:189 stack backtrace: 1: 0x61ef7c4f - sys::backtrace::write::hb08af03691eab78a5kA 2: 0x61f20782 - panicking::on_panic::h37164609ca1c02afBnJ 3: 0x61e6063a - rt::unwind::begin_unwind_inner::h24d5e7492198457b43I 4: 0x5f189a8d - rt::unwind::begin_unwind::h9113908695753286194 5: 0x5f18a2c5 - diagnostic::Handler::bug::h35ee8d5e5a4a01aeCHD 6: 0x5fcaa9fb - session::Session::bug::hf545afa75e911993uwp 7: 0x615e1650 - trans::expr::trans_imm_cast::h267a0afdb72de17aLPj 8: 0x615cc199 - trans::expr::trans_unadjusted::h195794326d4a3453m4h 9: 0x615835bf - trans::expr::trans_into::h4bccf2ad56ca2eb8mnh 10: 0x6168307e - trans::_match::mk_binding_alloca::h11720668362277363266 11: 0x6158281d - trans::base::init_local::h445e388f28d5f2ddMps 12: 0x61583fe2 - trans::controlflow::trans_block::hac110643148141f4T4d 13: 0x615cd7ae - trans::expr::trans_rvalue_dps_unadjusted::h98f8f68155d4ea21Rzi 14: 0x6158359e - trans::expr::trans_into::h4bccf2ad56ca2eb8mnh 15: 0x61584307 - trans::controlflow::trans_block::hac110643148141f4T4d 16: 0x6164f7ef - trans::base::trans_closure::hf74692cb2d4d8ab8wct 17: 0x61570538 - trans::base::trans_fn::hd3b302f8da4ef8d2pnt 18: 0x6156c107 - trans::base::trans_item::h43df28c38e89c2c1hLt 19: 0x616562fc - trans::base::trans_crate::h6e541e412696da41RGu 20: 0x62581fd2 - driver::phase_4_translate_to_llvm::h39966ab909496f1crNa 21: 0x6255d5c8 - driver::compile_input::hee81c045ab46c74fIba 22: 0x62627e6e - run_compiler::h875c1e123fe4ae2cF5b 23: 0x62625a1c - thunk::F.Invoke&lt;A, R&gt;::invoke::h12424714292252424185 24: 0x62624770 - rt::unwind::try::try_fn::h4021821266450575721 25: 0x61f8bfe8 - rust_try_inner 26: 0x61f8bfd5 - rust_try 27: 0x62624e5c - thunk::F.Invoke&lt;A, R&gt;::invoke::h8199562432922027576 28: 0x61f0c2d5 - sys::thread::thread_start::h1b1bb1e7ac08d3a6yRE 29: 0x5bc420a3 - start_thread 30: 0x61adfccc - __clone 31: 0xffffffff - &lt;unknown&gt; </code></pre></div>
1
<p dir="auto"><a href="https://app.circleci.com/pipelines/github/pytorch/pytorch/217203/workflows/9228f0bf-ed03-47fe-9a3d-dc736b8e14c3/jobs/7653966/steps" rel="nofollow">https://app.circleci.com/pipelines/github/pytorch/pytorch/217203/workflows/9228f0bf-ed03-47fe-9a3d-dc736b8e14c3/jobs/7653966/steps</a></p> <p dir="auto">Same as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="643908803" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/40434" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/40434/hovercard" href="https://github.com/pytorch/pytorch/issues/40434">#40434</a>, but for TensorPipe backend</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Sep 21 23:53:07 ERROR:root:Caught exception: Sep 21 23:53:07 Traceback (most recent call last): Sep 21 23:53:07 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/common_distributed.py&quot;, line 246, in wrapper Sep 21 23:53:07 fn() Sep 21 23:53:07 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/dist_utils.py&quot;, line 70, in new_test_method Sep 21 23:53:07 return_value = old_test_method(self, *arg, **kwargs) Sep 21 23:53:07 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py&quot;, line 481, in test_backward_ddp_inside Sep 21 23:53:07 self._do_test(DdpMode.INSIDE) Sep 21 23:53:07 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py&quot;, line 455, in _do_test Sep 21 23:53:07 self._master_process(ddp_mode, simulate_uneven_inputs) Sep 21 23:53:07 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py&quot;, line 377, in _master_process Sep 21 23:53:07 ddp_mode, simulate_uneven_inputs, remote_em_rref, remote_net_rref Sep 21 23:53:07 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py&quot;, line 423, in do_test_on_master Sep 21 23:53:07 ddp_grads, non_ddp_grads = future.wait() Sep 21 23:53:07 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py&quot;, line 177, in _handle_exception Sep 21 23:53:07 raise result.exception_type(result.msg) Sep 21 23:53:07 AssertionError: On WorkerInfo(id=0, name=worker0): Sep 21 23:53:07 AssertionError('On WorkerInfo(id=0, name=worker0):\nAssertionError(\'Default process group is not initialized\')\nTraceback (most recent call last):\n File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py&quot;, line 164, in _run_function\n result = python_udf.func(*python_udf.args, **python_udf.kwargs)\n File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py&quot;, line 186, in __init__\n if ddp_mode in (DdpMode.INSIDE, DdpMode.OUTSIDE)\n File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py&quot;, line 1979, in new_group\n _check_default_pg()\n File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py&quot;, line 211, in _check_default_pg\n &quot;Default process group is not initialized&quot;\nAssertionError: Default process group is not initialized\n') Sep 21 23:53:07 Traceback (most recent call last): Sep 21 23:53:07 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py&quot;, line 164, in _run_function Sep 21 23:53:07 result = python_udf.func(*python_udf.args, **python_udf.kwargs) Sep 21 23:53:07 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py&quot;, line 78, in _call_method Sep 21 23:53:07 return method(rref.local_value(), *args, **kwargs) Sep 21 23:53:07 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py&quot;, line 177, in _handle_exception Sep 21 23:53:07 raise result.exception_type(result.msg) Sep 21 23:53:07 AssertionError: On WorkerInfo(id=0, name=worker0): Sep 21 23:53:07 AssertionError('Default process group is not initialized') Sep 21 23:53:07 Traceback (most recent call last): Sep 21 23:53:07 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py&quot;, line 164, in _run_function Sep 21 23:53:07 result = python_udf.func(*python_udf.args, **python_udf.kwargs) Sep 21 23:53:07 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py&quot;, line 186, in __init__ Sep 21 23:53:07 if ddp_mode in (DdpMode.INSIDE, DdpMode.OUTSIDE) Sep 21 23:53:07 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py&quot;, line 1979, in new_group Sep 21 23:53:07 _check_default_pg() Sep 21 23:53:07 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py&quot;, line 211, in _check_default_pg Sep 21 23:53:07 &quot;Default process group is not initialized&quot; Sep 21 23:53:07 AssertionError: Default process group is not initialized"><pre class="notranslate"><code class="notranslate">Sep 21 23:53:07 ERROR:root:Caught exception: Sep 21 23:53:07 Traceback (most recent call last): Sep 21 23:53:07 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/common_distributed.py", line 246, in wrapper Sep 21 23:53:07 fn() Sep 21 23:53:07 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/dist_utils.py", line 70, in new_test_method Sep 21 23:53:07 return_value = old_test_method(self, *arg, **kwargs) Sep 21 23:53:07 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py", line 481, in test_backward_ddp_inside Sep 21 23:53:07 self._do_test(DdpMode.INSIDE) Sep 21 23:53:07 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py", line 455, in _do_test Sep 21 23:53:07 self._master_process(ddp_mode, simulate_uneven_inputs) Sep 21 23:53:07 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py", line 377, in _master_process Sep 21 23:53:07 ddp_mode, simulate_uneven_inputs, remote_em_rref, remote_net_rref Sep 21 23:53:07 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py", line 423, in do_test_on_master Sep 21 23:53:07 ddp_grads, non_ddp_grads = future.wait() Sep 21 23:53:07 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py", line 177, in _handle_exception Sep 21 23:53:07 raise result.exception_type(result.msg) Sep 21 23:53:07 AssertionError: On WorkerInfo(id=0, name=worker0): Sep 21 23:53:07 AssertionError('On WorkerInfo(id=0, name=worker0):\nAssertionError(\'Default process group is not initialized\')\nTraceback (most recent call last):\n File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py", line 164, in _run_function\n result = python_udf.func(*python_udf.args, **python_udf.kwargs)\n File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py", line 186, in __init__\n if ddp_mode in (DdpMode.INSIDE, DdpMode.OUTSIDE)\n File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py", line 1979, in new_group\n _check_default_pg()\n File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py", line 211, in _check_default_pg\n "Default process group is not initialized"\nAssertionError: Default process group is not initialized\n') Sep 21 23:53:07 Traceback (most recent call last): Sep 21 23:53:07 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py", line 164, in _run_function Sep 21 23:53:07 result = python_udf.func(*python_udf.args, **python_udf.kwargs) Sep 21 23:53:07 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py", line 78, in _call_method Sep 21 23:53:07 return method(rref.local_value(), *args, **kwargs) Sep 21 23:53:07 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py", line 177, in _handle_exception Sep 21 23:53:07 raise result.exception_type(result.msg) Sep 21 23:53:07 AssertionError: On WorkerInfo(id=0, name=worker0): Sep 21 23:53:07 AssertionError('Default process group is not initialized') Sep 21 23:53:07 Traceback (most recent call last): Sep 21 23:53:07 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py", line 164, in _run_function Sep 21 23:53:07 result = python_udf.func(*python_udf.args, **python_udf.kwargs) Sep 21 23:53:07 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py", line 186, in __init__ Sep 21 23:53:07 if ddp_mode in (DdpMode.INSIDE, DdpMode.OUTSIDE) Sep 21 23:53:07 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py", line 1979, in new_group Sep 21 23:53:07 _check_default_pg() Sep 21 23:53:07 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py", line 211, in _check_default_pg Sep 21 23:53:07 "Default process group is not initialized" Sep 21 23:53:07 AssertionError: Default process group is not initialized </code></pre></div> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/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/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> <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/beauby/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/beauby">@beauby</a></p>
<p dir="auto"><a href="https://app.circleci.com/pipelines/github/pytorch/pytorch/217196/workflows/15141629-1343-446c-a9cf-230f9c6b4527/jobs/7655526/steps" rel="nofollow">https://app.circleci.com/pipelines/github/pytorch/pytorch/217196/workflows/15141629-1343-446c-a9cf-230f9c6b4527/jobs/7655526/steps</a></p> <p dir="auto">Probably same issue as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="643908803" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/40434" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/40434/hovercard" href="https://github.com/pytorch/pytorch/issues/40434">#40434</a>, which affects ProcessGroup.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Sep 22 01:48:29 test_backward_ddp_inside (__main__.TensorPipeDdpUnderDistAutogradTestWithSpawn) ... 2020-09-22 01:48:29,011 ddp_under_dist_autograd_test.py:342 INFO p:process 0 t:MainThread: Running the trainer #0... Sep 22 01:48:29 2020-09-22 01:48:29,012 ddp_under_dist_autograd_test.py:344 INFO p:process 0 t:MainThread: Initing trainer process group by trainer #0 with ranks [0, 1, 2, 3] Sep 22 01:48:29 2020-09-22 01:48:29,012 ddp_under_dist_autograd_test.py:342 INFO p:process 1 t:MainThread: Running the trainer #1... Sep 22 01:48:29 2020-09-22 01:48:29,012 ddp_under_dist_autograd_test.py:342 INFO p:process 2 t:MainThread: Running the trainer #2... Sep 22 01:48:29 2020-09-22 01:48:29,012 ddp_under_dist_autograd_test.py:344 INFO p:process 1 t:MainThread: Initing trainer process group by trainer #1 with ranks [0, 1, 2, 3] Sep 22 01:48:29 2020-09-22 01:48:29,012 ddp_under_dist_autograd_test.py:344 INFO p:process 2 t:MainThread: Initing trainer process group by trainer #2 with ranks [0, 1, 2, 3] Sep 22 01:48:29 2020-09-22 01:48:29,012 ddp_under_dist_autograd_test.py:342 INFO p:process 3 t:MainThread: Running the trainer #3... Sep 22 01:48:29 2020-09-22 01:48:29,013 ddp_under_dist_autograd_test.py:344 INFO p:process 3 t:MainThread: Initing trainer process group by trainer #3 with ranks [0, 1, 2, 3] Sep 22 01:48:29 2020-09-22 01:48:29,013 ddp_under_dist_autograd_test.py:328 INFO p:process 4 t:MainThread: The remote worker is running. Sep 22 01:48:29 2020-09-22 01:48:29,013 ddp_under_dist_autograd_test.py:362 INFO p:process 5 t:MainThread: Running the master process... Sep 22 01:48:29 2020-09-22 01:48:29,016 ddp_under_dist_autograd_test.py:353 INFO p:process 1 t:MainThread: Waiting for shutdown signal on trainer #1... Sep 22 01:48:29 2020-09-22 01:48:29,017 ddp_under_dist_autograd_test.py:353 INFO p:process 2 t:MainThread: Waiting for shutdown signal on trainer #2... Sep 22 01:48:29 2020-09-22 01:48:29,017 ddp_under_dist_autograd_test.py:353 INFO p:process 3 t:MainThread: Waiting for shutdown signal on trainer #3... Sep 22 01:48:29 2020-09-22 01:48:29,018 ddp_under_dist_autograd_test.py:375 INFO p:process 5 t:MainThread: Created remote rrefs on master Sep 22 01:48:29 2020-09-22 01:48:29,019 ddp_under_dist_autograd_test.py:93 INFO p:process 4 t:Dummy-1: Initing RemoteEM with 2 3 Sep 22 01:48:29 2020-09-22 01:48:29,020 ddp_under_dist_autograd_test.py:119 INFO p:process 4 t:Dummy-1: Initing RemoteNet with 5 3 Sep 22 01:48:29 2020-09-22 01:48:29,032 ddp_under_dist_autograd_test.py:353 INFO p:process 0 t:MainThread: Waiting for shutdown signal on trainer #0... Sep 22 01:48:29 ERROR:root:Caught exception: Sep 22 01:48:29 Traceback (most recent call last): Sep 22 01:48:29 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/common_distributed.py&quot;, line 246, in wrapper Sep 22 01:48:29 fn() Sep 22 01:48:29 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/dist_utils.py&quot;, line 70, in new_test_method Sep 22 01:48:29 return_value = old_test_method(self, *arg, **kwargs) Sep 22 01:48:29 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py&quot;, line 481, in test_backward_ddp_inside Sep 22 01:48:29 self._do_test(DdpMode.INSIDE) Sep 22 01:48:29 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py&quot;, line 455, in _do_test Sep 22 01:48:29 self._master_process(ddp_mode, simulate_uneven_inputs) Sep 22 01:48:29 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py&quot;, line 377, in _master_process Sep 22 01:48:29 ddp_mode, simulate_uneven_inputs, remote_em_rref, remote_net_rref Sep 22 01:48:29 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py&quot;, line 423, in do_test_on_master Sep 22 01:48:29 ddp_grads, non_ddp_grads = future.wait() Sep 22 01:48:29 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py&quot;, line 177, in _handle_exception Sep 22 01:48:29 raise result.exception_type(result.msg) Sep 22 01:48:29 AssertionError: On WorkerInfo(id=0, name=worker0): Sep 22 01:48:29 AssertionError('On WorkerInfo(id=0, name=worker0):\nAssertionError(\'Default process group is not initialized\')\nTraceback (most recent call last):\n File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py&quot;, line 164, in _run_function\n result = python_udf.func(*python_udf.args, **python_udf.kwargs)\n File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py&quot;, line 186, in __init__\n if ddp_mode in (DdpMode.INSIDE, DdpMode.OUTSIDE)\n File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py&quot;, line 1979, in new_group\n _check_default_pg()\n File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py&quot;, line 211, in _check_default_pg\n &quot;Default process group is not initialized&quot;\nAssertionError: Default process group is not initialized\n') Sep 22 01:48:29 Traceback (most recent call last): Sep 22 01:48:29 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py&quot;, line 164, in _run_function Sep 22 01:48:29 result = python_udf.func(*python_udf.args, **python_udf.kwargs) Sep 22 01:48:29 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py&quot;, line 78, in _call_method Sep 22 01:48:29 return method(rref.local_value(), *args, **kwargs) Sep 22 01:48:29 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py&quot;, line 177, in _handle_exception Sep 22 01:48:29 raise result.exception_type(result.msg) Sep 22 01:48:29 AssertionError: On WorkerInfo(id=0, name=worker0): Sep 22 01:48:29 AssertionError('Default process group is not initialized') Sep 22 01:48:29 Traceback (most recent call last): Sep 22 01:48:29 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py&quot;, line 164, in _run_function Sep 22 01:48:29 result = python_udf.func(*python_udf.args, **python_udf.kwargs) Sep 22 01:48:29 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py&quot;, line 186, in __init__ Sep 22 01:48:29 if ddp_mode in (DdpMode.INSIDE, DdpMode.OUTSIDE) Sep 22 01:48:29 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py&quot;, line 1979, in new_group Sep 22 01:48:29 _check_default_pg() Sep 22 01:48:29 File &quot;/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py&quot;, line 211, in _check_default_pg Sep 22 01:48:29 &quot;Default process group is not initialized&quot; Sep 22 01:48:29 AssertionError: Default process group is not initialized Sep 22 01:48:29 Sep 22 01:48:29 Sep 22 01:48:29 exiting process with exit code: 10 Sep 22 01:48:29 [W tensorpipe_agent.cpp:577] RPC agent for worker3 encountered error when reading incoming request from worker5: EOF: end of file (this is expected to happen during shutdown) Sep 22 01:48:29 [W tensorpipe_agent.cpp:577] RPC agent for worker2 encountered error when reading incoming request from worker5: EOF: end of file (this is expected to happen during shutdown) Sep 22 01:48:29 [W tensorpipe_agent.cpp:577] RPC agent for worker4 encountered error when reading incoming request from worker5: EOF: end of file (this is expected to happen during shutdown) Sep 22 01:48:29 [W tensorpipe_agent.cpp:577] RPC agent for worker1 encountered error when reading incoming request from worker5: EOF: end of file (this is expected to happen during shutdown) Sep 22 01:48:29 [W tensorpipe_agent.cpp:577] RPC agent for worker0 encountered error when reading incoming request from worker5: EOF: end of file (this is expected to happen during shutdown) Sep 22 01:48:29 Process 5 terminated with exit code 10, terminating remaining processes. Sep 22 01:48:29 ERROR (2.361s)"><pre class="notranslate"><code class="notranslate">Sep 22 01:48:29 test_backward_ddp_inside (__main__.TensorPipeDdpUnderDistAutogradTestWithSpawn) ... 2020-09-22 01:48:29,011 ddp_under_dist_autograd_test.py:342 INFO p:process 0 t:MainThread: Running the trainer #0... Sep 22 01:48:29 2020-09-22 01:48:29,012 ddp_under_dist_autograd_test.py:344 INFO p:process 0 t:MainThread: Initing trainer process group by trainer #0 with ranks [0, 1, 2, 3] Sep 22 01:48:29 2020-09-22 01:48:29,012 ddp_under_dist_autograd_test.py:342 INFO p:process 1 t:MainThread: Running the trainer #1... Sep 22 01:48:29 2020-09-22 01:48:29,012 ddp_under_dist_autograd_test.py:342 INFO p:process 2 t:MainThread: Running the trainer #2... Sep 22 01:48:29 2020-09-22 01:48:29,012 ddp_under_dist_autograd_test.py:344 INFO p:process 1 t:MainThread: Initing trainer process group by trainer #1 with ranks [0, 1, 2, 3] Sep 22 01:48:29 2020-09-22 01:48:29,012 ddp_under_dist_autograd_test.py:344 INFO p:process 2 t:MainThread: Initing trainer process group by trainer #2 with ranks [0, 1, 2, 3] Sep 22 01:48:29 2020-09-22 01:48:29,012 ddp_under_dist_autograd_test.py:342 INFO p:process 3 t:MainThread: Running the trainer #3... Sep 22 01:48:29 2020-09-22 01:48:29,013 ddp_under_dist_autograd_test.py:344 INFO p:process 3 t:MainThread: Initing trainer process group by trainer #3 with ranks [0, 1, 2, 3] Sep 22 01:48:29 2020-09-22 01:48:29,013 ddp_under_dist_autograd_test.py:328 INFO p:process 4 t:MainThread: The remote worker is running. Sep 22 01:48:29 2020-09-22 01:48:29,013 ddp_under_dist_autograd_test.py:362 INFO p:process 5 t:MainThread: Running the master process... Sep 22 01:48:29 2020-09-22 01:48:29,016 ddp_under_dist_autograd_test.py:353 INFO p:process 1 t:MainThread: Waiting for shutdown signal on trainer #1... Sep 22 01:48:29 2020-09-22 01:48:29,017 ddp_under_dist_autograd_test.py:353 INFO p:process 2 t:MainThread: Waiting for shutdown signal on trainer #2... Sep 22 01:48:29 2020-09-22 01:48:29,017 ddp_under_dist_autograd_test.py:353 INFO p:process 3 t:MainThread: Waiting for shutdown signal on trainer #3... Sep 22 01:48:29 2020-09-22 01:48:29,018 ddp_under_dist_autograd_test.py:375 INFO p:process 5 t:MainThread: Created remote rrefs on master Sep 22 01:48:29 2020-09-22 01:48:29,019 ddp_under_dist_autograd_test.py:93 INFO p:process 4 t:Dummy-1: Initing RemoteEM with 2 3 Sep 22 01:48:29 2020-09-22 01:48:29,020 ddp_under_dist_autograd_test.py:119 INFO p:process 4 t:Dummy-1: Initing RemoteNet with 5 3 Sep 22 01:48:29 2020-09-22 01:48:29,032 ddp_under_dist_autograd_test.py:353 INFO p:process 0 t:MainThread: Waiting for shutdown signal on trainer #0... Sep 22 01:48:29 ERROR:root:Caught exception: Sep 22 01:48:29 Traceback (most recent call last): Sep 22 01:48:29 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/common_distributed.py", line 246, in wrapper Sep 22 01:48:29 fn() Sep 22 01:48:29 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/dist_utils.py", line 70, in new_test_method Sep 22 01:48:29 return_value = old_test_method(self, *arg, **kwargs) Sep 22 01:48:29 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py", line 481, in test_backward_ddp_inside Sep 22 01:48:29 self._do_test(DdpMode.INSIDE) Sep 22 01:48:29 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py", line 455, in _do_test Sep 22 01:48:29 self._master_process(ddp_mode, simulate_uneven_inputs) Sep 22 01:48:29 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py", line 377, in _master_process Sep 22 01:48:29 ddp_mode, simulate_uneven_inputs, remote_em_rref, remote_net_rref Sep 22 01:48:29 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py", line 423, in do_test_on_master Sep 22 01:48:29 ddp_grads, non_ddp_grads = future.wait() Sep 22 01:48:29 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py", line 177, in _handle_exception Sep 22 01:48:29 raise result.exception_type(result.msg) Sep 22 01:48:29 AssertionError: On WorkerInfo(id=0, name=worker0): Sep 22 01:48:29 AssertionError('On WorkerInfo(id=0, name=worker0):\nAssertionError(\'Default process group is not initialized\')\nTraceback (most recent call last):\n File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py", line 164, in _run_function\n result = python_udf.func(*python_udf.args, **python_udf.kwargs)\n File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py", line 186, in __init__\n if ddp_mode in (DdpMode.INSIDE, DdpMode.OUTSIDE)\n File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py", line 1979, in new_group\n _check_default_pg()\n File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py", line 211, in _check_default_pg\n "Default process group is not initialized"\nAssertionError: Default process group is not initialized\n') Sep 22 01:48:29 Traceback (most recent call last): Sep 22 01:48:29 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py", line 164, in _run_function Sep 22 01:48:29 result = python_udf.func(*python_udf.args, **python_udf.kwargs) Sep 22 01:48:29 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py", line 78, in _call_method Sep 22 01:48:29 return method(rref.local_value(), *args, **kwargs) Sep 22 01:48:29 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py", line 177, in _handle_exception Sep 22 01:48:29 raise result.exception_type(result.msg) Sep 22 01:48:29 AssertionError: On WorkerInfo(id=0, name=worker0): Sep 22 01:48:29 AssertionError('Default process group is not initialized') Sep 22 01:48:29 Traceback (most recent call last): Sep 22 01:48:29 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py", line 164, in _run_function Sep 22 01:48:29 result = python_udf.func(*python_udf.args, **python_udf.kwargs) Sep 22 01:48:29 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/distributed/ddp_under_dist_autograd_test.py", line 186, in __init__ Sep 22 01:48:29 if ddp_mode in (DdpMode.INSIDE, DdpMode.OUTSIDE) Sep 22 01:48:29 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py", line 1979, in new_group Sep 22 01:48:29 _check_default_pg() Sep 22 01:48:29 File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py", line 211, in _check_default_pg Sep 22 01:48:29 "Default process group is not initialized" Sep 22 01:48:29 AssertionError: Default process group is not initialized Sep 22 01:48:29 Sep 22 01:48:29 Sep 22 01:48:29 exiting process with exit code: 10 Sep 22 01:48:29 [W tensorpipe_agent.cpp:577] RPC agent for worker3 encountered error when reading incoming request from worker5: EOF: end of file (this is expected to happen during shutdown) Sep 22 01:48:29 [W tensorpipe_agent.cpp:577] RPC agent for worker2 encountered error when reading incoming request from worker5: EOF: end of file (this is expected to happen during shutdown) Sep 22 01:48:29 [W tensorpipe_agent.cpp:577] RPC agent for worker4 encountered error when reading incoming request from worker5: EOF: end of file (this is expected to happen during shutdown) Sep 22 01:48:29 [W tensorpipe_agent.cpp:577] RPC agent for worker1 encountered error when reading incoming request from worker5: EOF: end of file (this is expected to happen during shutdown) Sep 22 01:48:29 [W tensorpipe_agent.cpp:577] RPC agent for worker0 encountered error when reading incoming request from worker5: EOF: end of file (this is expected to happen during shutdown) Sep 22 01:48:29 Process 5 terminated with exit code 10, terminating remaining processes. Sep 22 01:48:29 ERROR (2.361s) </code></pre></div> <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/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/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/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/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/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> <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/jjlilley/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jjlilley">@jjlilley</a></p>
1
<ol dir="auto"> <li> <p dir="auto">There are ofter errors relating to the addition of nodes to the store. Could this failure be more silent, and not completely hide the display?</p> </li> <li> <p dir="auto">When opening the react dev tools in a separate window, it does not respond to clicks or hover in the tree section. I can still click a component in the "rendered by" section. Note that this does not happen when the dev tools are opened in the same window. Update: it also didn't happen when I tried to put the two windows side by side in the same screen for a recording...</p> </li> </ol> <p dir="auto">Please see the attached screen capture for both issues.</p> <details open="" class="details-reset border rounded-2"> <summary class="px-3 py-2"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-device-camera-video"> <path d="M16 3.75v8.5a.75.75 0 0 1-1.136.643L11 10.575v.675A1.75 1.75 0 0 1 9.25 13h-7.5A1.75 1.75 0 0 1 0 11.25v-6.5C0 3.784.784 3 1.75 3h7.5c.966 0 1.75.784 1.75 1.75v.675l3.864-2.318A.75.75 0 0 1 16 3.75Zm-6.5 1a.25.25 0 0 0-.25-.25h-7.5a.25.25 0 0 0-.25.25v6.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-6.5ZM11 8.825l3.5 2.1v-5.85l-3.5 2.1Z"></path> </svg> <span aria-label="Video description rect_dev_tool_issues.mov" class="m-1">rect_dev_tool_issues.mov</span> <span class="dropdown-caret"></span> </summary> <video src="https://user-images.githubusercontent.com/10762244/170987263-73f45c4d-485a-4431-b01a-21de1fd4fbbf.mov" data-canonical-src="https://user-images.githubusercontent.com/10762244/170987263-73f45c4d-485a-4431-b01a-21de1fd4fbbf.mov" controls="controls" muted="muted" class="d-block rounded-bottom-2 border-top width-fit" style="max-height:640px; min-height: 200px"> </video> </details> <p dir="auto">Thanks</p>
<h3 dir="auto">Website or app</h3> <p dir="auto">Multiple; but you can check at <a href="https://react-bootstrap.github.io/" rel="nofollow">https://react-bootstrap.github.io/</a></p> <h3 dir="auto">Repro steps</h3> <ol dir="auto"> <li>Access a website in Chrome that uses React.</li> <li>Open Chrome Developer Tools</li> <li>Open the React Developer Tools Components tab/panel</li> <li>Click on 5 - 10 components in the component tree individually to inspect them</li> </ol> <p dir="auto">Notes:</p> <ul dir="auto"> <li>This started happening on all React-based websites after updating to Chrome Version 102.0.5005.61 on my work MacBook (x86_64) and my personal MacBook (arm64). Reverting back to Chrome 100 seems to help.</li> <li>I had a co-worker test as well, with the same result.</li> <li>You can still select individual components using the picker, even after the panel locks up.</li> <li>The lock-up seems to happen quicker when <code class="notranslate">Expand component tree by default</code> is selected in the <code class="notranslate">Components</code> tab in the panel settings, but will still lock up if you manually expand enough components.</li> </ul> <h3 dir="auto">How often does this bug happen?</h3> <p dir="auto">Every time</p> <h3 dir="auto">DevTools package (automated)</h3> <p dir="auto">react-devtools-extensions</p> <h3 dir="auto">DevTools version (automated)</h3> <p dir="auto">4.24.6 (5/12/2022)</p> <h3 dir="auto">Error message (automated)</h3> <p dir="auto">None</p> <h3 dir="auto">Error call stack (automated)</h3> <p dir="auto">N/A</p> <h3 dir="auto">Error component stack (automated)</h3> <p dir="auto">N/A</p> <h3 dir="auto">GitHub query string (automated)</h3> <p dir="auto">N/A</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=skaffman" rel="nofollow">Kenny MacLeod</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4567?redirect=false" rel="nofollow">SPR-4567</a></strong> and commented</p> <p dir="auto">The exposeContextBeansAsAttributes property of InternalResourceView, while useful, is often a bit too wide-ranging in its effects. Sometimes you get a clash between bean names and JSP scoped variables which can be very hard to track down.</p> <p dir="auto">Could InternalResourceView be modified so that a specific collection of beans could be explicitly exposed as JSP attributes, rather than every one of them? These would be injected into the InternalResourceViewResolver by name or reference.</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.5.2</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="398110817" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12719" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12719/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12719">#12719</a> UrlBasedViewResolver should implement setExposedContextBeanNames (not InternalResourceViewResolver)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=mdeinum" rel="nofollow">Marten Deinum</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4661?redirect=false" rel="nofollow">SPR-4661</a></strong> and commented</p> <p dir="auto">I was replacing our current PropertiesPlaceHolderConfigurer with a &lt;context:property-placeholder but couldn't do that (whilst recommended by STS).</p> <p dir="auto">I need the 'ignoreResourceNotFound' property to be settable from the tag. Maybe some more options also depending on the tag (property-placholder or property-override).</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.5.2</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/14021/AbstractPropertyLoadingBeanDefinitionParser.java" rel="nofollow">AbstractPropertyLoadingBeanDefinitionParser.java</a> (<em>2.55 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/15186/patch-20090309.txt" rel="nofollow">patch-20090309.txt</a> (<em>7.45 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/14504/SPR-4661.2.patch" rel="nofollow">SPR-4661.2.patch</a> (<em>7.64 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/14139/SPR-4661.patch" rel="nofollow">SPR-4661.patch</a> (<em>3.00 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/14022/spring-context-2.5.xsd" rel="nofollow">spring-context-2.5.xsd</a> (<em>14.84 kB</em>)</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398089824" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9691" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9691/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9691">#9691</a> Add more properties to context:property-placeholder/ (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/a29253f2ca81375707734b89f279b3270aba1544/hovercard" href="https://github.com/spring-projects/spring-framework/commit/a29253f2ca81375707734b89f279b3270aba1544"><tt>a29253f</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/1a9599c81550154600d8af49471f862e10694e58/hovercard" href="https://github.com/spring-projects/spring-framework/commit/1a9599c81550154600d8af49471f862e10694e58"><tt>1a9599c</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/b250c65c45d965f93f995f191494839a81031e24/hovercard" href="https://github.com/spring-projects/spring-framework/commit/b250c65c45d965f93f995f191494839a81031e24"><tt>b250c65</tt></a></p> <p dir="auto">12 votes, 8 watchers</p>
0
<ul dir="auto"> <li>Electron version: 1.2.6</li> <li>node: 6.2.0</li> <li>npm: 3.10.3</li> <li>Operating system: OS X 10.10.5</li> </ul> <p dir="auto">The following does not work with Electron but it works fine with vanilla Node.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="require('node-sass').renderSync({ data: 's { a: ss }' })"><pre class="notranslate"><span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'node-sass'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">renderSync</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">data</span>: <span class="pl-s">'s { a: ss }'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <hr> <p dir="auto">I've made a repo to reproduce this issue here: <a href="https://github.com/davej/electron-with-node-sass-test">https://github.com/davej/electron-with-node-sass-test</a></p> <p dir="auto">Simply run:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm install npm start"><pre class="notranslate"><code class="notranslate">npm install npm start </code></pre></div> <p dir="auto">You should see the following error when you run the app (you will also get the same error if you try to use <code class="notranslate">node-sass</code> in the renderer process):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="App threw an error during load SyntaxError: Unexpected token u in JSON at position 0 at Object.parse (native) at Object.module.exports.renderSync (/Users/dave/code/test/electron-with-node-sass/node_modules/node-sass/lib/index.js:420:40) at Object.&lt;anonymous&gt; (/Users/dave/code/test/electron-with-node-sass/index.js:5:18) at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:456:32) at tryModuleLoad (module.js:415:12) at Function.Module._load (module.js:407:3) at loadApplicationPackage (/Users/dave/code/test/electron-with-node-sass/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/default_app.asar/main.js:259:12) at Object.&lt;anonymous&gt; (/Users/dave/code/test/electron-with-node-sass/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/default_app.asar/main.js:301:5)"><pre class="notranslate"><code class="notranslate">App threw an error during load SyntaxError: Unexpected token u in JSON at position 0 at Object.parse (native) at Object.module.exports.renderSync (/Users/dave/code/test/electron-with-node-sass/node_modules/node-sass/lib/index.js:420:40) at Object.&lt;anonymous&gt; (/Users/dave/code/test/electron-with-node-sass/index.js:5:18) at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:456:32) at tryModuleLoad (module.js:415:12) at Function.Module._load (module.js:407:3) at loadApplicationPackage (/Users/dave/code/test/electron-with-node-sass/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/default_app.asar/main.js:259:12) at Object.&lt;anonymous&gt; (/Users/dave/code/test/electron-with-node-sass/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/default_app.asar/main.js:301:5) </code></pre></div> <p dir="auto">However when you run the code directly with node (<code class="notranslate">node index.js</code>) it runs ok with no issues. The error above occurs both when the code is run</p> <p dir="auto"><a href="https://github.com/sass/node-sass/issues/1628" data-hovercard-type="issue" data-hovercard-url="/sass/node-sass/issues/1628/hovercard">Cross referencing with <code class="notranslate">node-sass</code> issue</a>.</p>
<ul dir="auto"> <li>Electron version: 1.2.6</li> <li>node: 6.2.0</li> <li>npm: 3.10.3</li> <li>Operating system: OS X 10.10.5</li> </ul> <p dir="auto">The following does not work with Electron but it works fine with vanilla Node.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="require('node-sass').renderSync({ data: 's { a: ss }' })"><pre class="notranslate"><span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'node-sass'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">renderSync</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">data</span>: <span class="pl-s">'s { a: ss }'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <hr> <p dir="auto">I've made a repo to reproduce this issue here: <a href="https://github.com/davej/electron-with-node-sass-test">https://github.com/davej/electron-with-node-sass-test</a></p> <p dir="auto">Simply run:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm install npm start"><pre class="notranslate"><code class="notranslate">npm install npm start </code></pre></div> <p dir="auto">You should see the following error when you run the app (you will also get the same error if you try to use <code class="notranslate">node-sass</code> in the renderer process):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="App threw an error during load SyntaxError: Unexpected token u in JSON at position 0 at Object.parse (native) at Object.module.exports.renderSync (/Users/dave/code/test/electron-with-node-sass/node_modules/node-sass/lib/index.js:420:40) at Object.&lt;anonymous&gt; (/Users/dave/code/test/electron-with-node-sass/index.js:5:18) at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:456:32) at tryModuleLoad (module.js:415:12) at Function.Module._load (module.js:407:3) at loadApplicationPackage (/Users/dave/code/test/electron-with-node-sass/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/default_app.asar/main.js:259:12) at Object.&lt;anonymous&gt; (/Users/dave/code/test/electron-with-node-sass/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/default_app.asar/main.js:301:5)"><pre class="notranslate"><code class="notranslate">App threw an error during load SyntaxError: Unexpected token u in JSON at position 0 at Object.parse (native) at Object.module.exports.renderSync (/Users/dave/code/test/electron-with-node-sass/node_modules/node-sass/lib/index.js:420:40) at Object.&lt;anonymous&gt; (/Users/dave/code/test/electron-with-node-sass/index.js:5:18) at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:456:32) at tryModuleLoad (module.js:415:12) at Function.Module._load (module.js:407:3) at loadApplicationPackage (/Users/dave/code/test/electron-with-node-sass/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/default_app.asar/main.js:259:12) at Object.&lt;anonymous&gt; (/Users/dave/code/test/electron-with-node-sass/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/default_app.asar/main.js:301:5) </code></pre></div> <p dir="auto">However when you run the code directly with node (<code class="notranslate">node index.js</code>) it runs ok with no issues.</p> <p dir="auto"><a href="https://github.com/sass/node-sass/issues/1628" data-hovercard-type="issue" data-hovercard-url="/sass/node-sass/issues/1628/hovercard">Cross referencing with <code class="notranslate">node-sass</code> issue</a>.</p>
1
<p dir="auto"><em>Please make sure that this is a build/installation issue. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template</em></p> <p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10</li> <li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A</li> <li>TensorFlow installed from (source or binary): source, both nightly and 1.12 tried</li> <li>TensorFlow version: 1.12 and nightly</li> <li>Python version: 3.6</li> <li>Installed using virtualenv? pip? conda?: conda environment</li> <li>Bazel version (if compiling from source): 0.19.1</li> <li>GCC/Compiler version (if compiling from source):</li> <li>CUDA/cuDNN version: 9.0 and 7.4</li> <li>GPU model and memory: Geforce 770 4gb</li> </ul> <p dir="auto"><strong>Describe the problem</strong><br> I'm trying to compile from source and I keep running into the same problem regardless of what release i try to build.</p> <p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong><br> I followed the guide <a href="https://www.tensorflow.org/install/source_windows" rel="nofollow">https://www.tensorflow.org/install/source_windows</a> promptly. Below is what i get when i try to make the package builder by running 'bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package'</p> <p dir="auto"><strong>Any other info / logs</strong></p> <p dir="auto">(venv) B:\tensorflow&gt;python ./configure.py<br> WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:<br> b:\tensorflow/tools/bazel.rc<br> nul<br> WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".<br> You have bazel 0.19.1 installed.<br> Please specify the location of python. [Default is B:\Program Files\Anaconda\envs\venv\python.exe]:</p> <p dir="auto">Found possible Python library paths:<br> B:\Program Files\Anaconda\envs\venv\lib\site-packages<br> Please input the desired Python library path to use. Default is [B:\Program Files\Anaconda\envs\venv\lib\site-packages]</p> <p dir="auto">Do you wish to build TensorFlow with XLA JIT support? [y/N]:<br> No XLA JIT support will be enabled for TensorFlow.</p> <p dir="auto">Do you wish to build TensorFlow with ROCm support? [y/N]:<br> No ROCm support will be enabled for TensorFlow.</p> <p dir="auto">Do you wish to build TensorFlow with CUDA support? [y/N]: y<br> CUDA support will be enabled for TensorFlow.</p> <p dir="auto">Please specify the CUDA SDK version you want to use. [Leave empty to default to CUDA 9.0]:</p> <p dir="auto">Please specify the location where CUDA 9.0 toolkit is installed. Refer to README.md for more details. [Default is C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.0]:</p> <p dir="auto">Please specify the cuDNN version you want to use. [Leave empty to default to cuDNN 7]:</p> <p dir="auto">Please specify the location where cuDNN 7 library is installed. Refer to README.md for more details. [Default is C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.0]:</p> <p dir="auto">Please specify a list of comma-separated Cuda compute capabilities you want to build with.<br> You can find the compute capability of your device at: <a href="https://developer.nvidia.com/cuda-gpus" rel="nofollow">https://developer.nvidia.com/cuda-gpus</a>.<br> Please note that each additional compute capability significantly increases your build time and binary size. [Default is: 3.5,7.0]: 3.0</p> <p dir="auto">Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is /arch:AVX]:</p> <p dir="auto">Would you like to override eigen strong inline for some C++ compilation to reduce the compilation time? [Y/n]:<br> Eigen strong inline overridden.</p> <p dir="auto">Preconfigured Bazel build configs. You can use any of the below by adding "--config=&lt;&gt;" to your build command. See .bazelrc for more details.<br> --config=mkl # Build with MKL support.<br> --config=monolithic # Config for mostly static monolithic build.<br> --config=gdr # Build with GDR support.<br> --config=verbs # Build with libverbs support.<br> --config=ngraph # Build with Intel nGraph support.<br> --config=dynamic_kernels # (Experimental) Build kernels into separate shared objects.<br> Preconfigured Bazel build configs to DISABLE default on features:<br> --config=noaws # Disable AWS S3 filesystem support.<br> --config=nogcp # Disable GCP support.<br> --config=nohdfs # Disable HDFS support.<br> --config=noignite # Disable Apacha Ignite support.<br> --config=nokafka # Disable Apache Kafka support.</p> <p dir="auto">(venv) B:\tensorflow&gt;bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package<br> WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:<br> b:\tensorflow/.bazelrc<br> b:\tensorflow/tools/bazel.rc<br> Starting local Bazel server and connecting to it...<br> WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.<br> WARNING: Option 'experimental_shortened_obj_file_path' is deprecated<br> DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:<br> Auto-Configuration Warning: 'BAZEL_VC' is not set, start looking for the latest Visual C++ installed.<br> DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:<br> Auto-Configuration Warning: Looking for VS%VERSION%COMNTOOLS environment variables, eg. VS140COMNTOOLS<br> DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:<br> Auto-Configuration Warning: Visual C++ build tools found at C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC<br> DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:<br> Auto-Configuration Warning: 'BAZEL_VC' is not set, start looking for the latest Visual C++ installed.<br> DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:<br> Auto-Configuration Warning: Looking for VS%VERSION%COMNTOOLS environment variables, eg. VS140COMNTOOLS<br> DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:<br> Auto-Configuration Warning: Visual C++ build tools found at C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC<br> DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:<br> Auto-Configuration Warning: 'BAZEL_VC' is not set, start looking for the latest Visual C++ installed.<br> DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:<br> Auto-Configuration Warning: Looking for VS%VERSION%COMNTOOLS environment variables, eg. VS140COMNTOOLS<br> DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:<br> Auto-Configuration Warning: Visual C++ build tools found at C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC<br> ERROR: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/local_config_cc/BUILD:106:1: in cc_toolchain rule @local_config_cc//:cc-compiler-x64_windows: Error while selecting cc_toolchain: Toolchain identifier 'msvc_x64' was not found, valid identifiers are [local_linux, local_darwin, local_windows]<br> ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: Analysis of target '@local_config_cc//:cc-compiler-x64_windows' failed; build aborted<br> INFO: Elapsed time: 29.408s<br> INFO: 0 processes.<br> FAILED: Build did NOT complete successfully (24 packages loaded, 55 targets configured)<br> currently loading: tensorflow/python</p>
<p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>OS Platform and Distribution : windows10</li> <li>TensorFlow installed from : source</li> <li>TensorFlow version: 1.11.0</li> <li>Python version: Python 3.6.3 :: Anaconda custom (64-bit)</li> <li>Installed using virtualenv? pip? conda?: conda</li> <li>Bazel version (if compiling from source): 0.19.0 not from source</li> </ul> <p dir="auto">only cpu version.</p> <p dir="auto">I followed the instruction from <a href="https://tensorflow.google.cn/install/source_windows#bazel_build" rel="nofollow">tensorflow official site.</a></p> <p dir="auto">When I entered <code class="notranslate">bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package</code><br> An error occurred</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files: d:\tensorflow-1.11.0/.bazelrc d:\tensorflow-1.11.0/tools/bazel.rc ERROR: SymlinkDirectories(C:\Users\Administrator/_bazel_Administrator/install/46e308c2aba33f6ef6ad7b7f2c018098, c:\users\administrator\_bazel_administrator\buk4ctdf/install): CreateJunction: FATAL: failed to create installation symlink 'c:\users\administrator\_bazel_administrator\buk4ctdf/install': success"><pre class="notranslate"><code class="notranslate">WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files: d:\tensorflow-1.11.0/.bazelrc d:\tensorflow-1.11.0/tools/bazel.rc ERROR: SymlinkDirectories(C:\Users\Administrator/_bazel_Administrator/install/46e308c2aba33f6ef6ad7b7f2c018098, c:\users\administrator\_bazel_administrator\buk4ctdf/install): CreateJunction: FATAL: failed to create installation symlink 'c:\users\administrator\_bazel_administrator\buk4ctdf/install': success </code></pre></div>
1
<p dir="auto">I have few questions regarding celery. Please help me with that.</p> <p dir="auto"><strong>Sorry for posting this here</strong>. I asked the same in stackoverflow (<a href="https://stackoverflow.com/questions/56681692/queries-regarding-celery-scalability" rel="nofollow">https://stackoverflow.com/questions/56681692/queries-regarding-celery-scalability</a>) but no reply.</p> <ol dir="auto"> <li> <p dir="auto">Do we need to put the project code in every celery worker? If yes, if I am increasing the number of workers and also I am updating my code, what is the best way to update the code in all the worker instances (without manually pushing code to every instance everytime)?</p> </li> <li> <p dir="auto">Using <code class="notranslate">-Ofair</code> in celery worker as argument disable prefetching in workers even if have set <code class="notranslate">PREFETCH_LIMIT=8 or so</code>?</p> </li> <li> <p dir="auto">IMPORTANT: Does rabbitmq broker assign the task to the workers or do workers pull the task from the broker?</p> </li> <li> <p dir="auto">Does it make sense to have more than one celery worker (with as many subprocesses as number of cores) in a system? I see few people run multiple celery workers in a single system.</p> </li> <li> <p dir="auto">To add to the previous question, whats the performance difference between the two scenarios: single worker (8 cores) in a system or two workers (with concurrency 4)</p> </li> </ol>
<p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5486201" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/845" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/845/hovercard" href="https://github.com/celery/celery/issues/845">#845</a>. Sorry for creating duplicate issue, but I'm unable to reopen <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5486201" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/845" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/845/hovercard" href="https://github.com/celery/celery/issues/845">#845</a>.</p>
0
<p dir="auto">Pass a URL to <code class="notranslate">shell.openExternal()</code> freezes the application in GNU/Linux, and the URL is not opened at all.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2192773/14295014/d120bf20-fb41-11e5-867b-bf37a1264e6e.png"><img src="https://cloud.githubusercontent.com/assets/2192773/14295014/d120bf20-fb41-11e5-867b-bf37a1264e6e.png" alt="screenshot from 2016-04-05 15 16 06" style="max-width: 100%;"></a></p> <p dir="auto">See the following Gist: <a href="https://gist.github.com/jviotti/84a69e6d11097187059b6b584ff5e86f">https://gist.github.com/jviotti/84a69e6d11097187059b6b584ff5e86f</a></p> <p dir="auto">Instructions:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="cd path/to/gist npm install sudo npm start"><pre class="notranslate"><span class="pl-c1">cd</span> path/to/gist npm install sudo npm start</pre></div> <p dir="auto">No error is thrown, the app just hangs forever.</p> <hr> <ul dir="auto"> <li>Electron version: 0.37.4</li> <li>Operating system: Ubuntu 14.04 x64</li> </ul>
<ul dir="auto"> <li>Electron version: 0.34.5 in Atom</li> <li>Electron version: [unknown] in the <a href="https://slack.com/downloads" rel="nofollow">v2.0.1 version of Slack</a></li> <li>Operating system: Ubuntu 15.10</li> </ul> <p dir="auto">Under Linux <code class="notranslate">shell.openExternal</code> uses <code class="notranslate">xdg-open</code>. If your default browser is Firefox and it's already open then <code class="notranslate">xdg-open</code> only runs long enough to open the new tab then exits. But if you didn't have Firefox open <code class="notranslate">xdg-open</code> lives for the life of Firefox and the electron app hangs until you close the browser.</p> <p dir="auto">I don't know if the same thing happens with Chrome.</p>
1
<p dir="auto"><a href="http://www.reddit.com/r/rust/comments/2e47xy/duplication_in_the_standard_library/" rel="nofollow">Reddit thread</a>:</p> <blockquote> <p dir="auto">Why are data structures generally duplicated in the rust standard library, or at least apparently so in the API documentation?</p> <p dir="auto">e.g. std::string::String vs. collections::string::String, std:fmt::String vs. core::fmt::String, std::vec::Vec vs. collections::vec::Vec?</p> </blockquote> <p dir="auto">I'm not certain which of these the user was referring to but both could be possibly weird at first appearance:</p> <ul dir="auto"> <li>Why is <code class="notranslate">String</code> in <code class="notranslate">std::string</code> and <code class="notranslate">collections::string</code> and others</li> <li>Why is <code class="notranslate">String</code> in <code class="notranslate">string</code> and <code class="notranslate">Vec</code> in <code class="notranslate">vec</code></li> </ul> <p dir="auto">It was suggested that this be included in a <strong>How to read this documentation</strong> somewhere. If it was written, I would imagine it should be automatically included in the rust std documentation system so that it is included in all rust derived projects like <strong>gfx-rs</strong> and <strong>piston</strong> documentation.</p> <p dir="auto">cc: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/steveklabnik/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/steveklabnik">@steveklabnik</a></p>
<p dir="auto">Saw this: <a href="https://mail.mozilla.org/pipermail/rust-dev/2012-October/002397.html" rel="nofollow">https://mail.mozilla.org/pipermail/rust-dev/2012-October/002397.html</a><br> downloaded exe, ran install in windows 7 (running 64 bit) opened my default command prompt, ran 'rustc' got "The program can't start because libgcc_s_dw2-1.dll is missing from your computer.</p>
0
<p dir="auto">We need an e2e test that sets up a cluster using "standard" means and ensures that some users can do an action and other users cannot.</p>
<p dir="auto">Once authentication and authorization are firmly in place, we'll need to make sure that some later change does not inadvertently disable it. Ideally, that would be an e2e test for GCE and maybe some other cloud providers that uses the actual binaries and network settings and defaults and salt config and all that jazz. Exhaustive testing should go in unit tests and test/integration/auth_test.go But a basic "alice can GET/PUT a pod and Bob can't" e2e test is needed.</p>
1
<p dir="auto">I am trying to cmake a C++ project as follows: cmake .. -G Xcode -DCMAKE_PREFIX_PATH=/pathto/libtorch</p> <p dir="auto">where libtorch was downloaded from here: <a href="https://download.pytorch.org/libtorch/nighlty/cpu/libtorch-macos-1.3.0.zip" rel="nofollow">https://download.pytorch.org/libtorch/nighlty/cpu/libtorch-macos-1.3.0.zip</a></p> <p dir="auto">however, I get the following error:<br> mported target "torch" includes non-existent path</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;MKL_INCLUDE_DIR-NOTFOUND&quot;"><pre class="notranslate"><code class="notranslate">"MKL_INCLUDE_DIR-NOTFOUND" </code></pre></div> <p dir="auto">I have installed mkl-dnnl through homebrew, and I suspect the problem is that libtorch has not updated the name to dnnl? because dnnl.h exists in my /usr/local/include.</p>
<p dir="auto">Hi,</p> <p dir="auto">I try to run the following example from here, but run into some issues:<br> <a href="https://pytorch.org/cppdocs/installing.html" rel="nofollow">https://pytorch.org/cppdocs/installing.html</a></p> <p dir="auto">ld: warning: ignoring file libtorch/lib/libtorch.so, file was built for unsupported file format ( 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x03 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ) which is not the architecture being linked (x86_64): libtorch/lib/libtorch.so<br> ld: warning: ignoring file libtorch/lib/libcaffe2.so, file was built for unsupported file format ( 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x03 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ) which is not the architecture being linked (x86_64): libtorch/lib/libcaffe2.so<br> ld: warning: ignoring file libtorch/lib/libc10.so, file was built for unsupported file format ( 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x03 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ) which is not the architecture being linked (x86_64): libtorch/lib/libc10.so</p> <p dir="auto">full error log: <a href="https://ideone.com/wqgzzy" rel="nofollow">https://ideone.com/wqgzzy</a></p> <p dir="auto">i installed pytorch:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pip3 install torch_nightly -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html Looking in links: https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html Collecting torch_nightly Downloading https://download.pytorch.org/whl/nightly/cpu/torch_nightly-1.0.0.dev20181203-cp36-none-macosx_10_7_x86_64.whl (61.3MB) 100% |████████████████████████████████| 61.3MB 33kB/s Installing collected packages: torch-nightly Successfully installed torch-nightly-1.0.0.dev20181203"><pre class="notranslate"><code class="notranslate">pip3 install torch_nightly -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html Looking in links: https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html Collecting torch_nightly Downloading https://download.pytorch.org/whl/nightly/cpu/torch_nightly-1.0.0.dev20181203-cp36-none-macosx_10_7_x86_64.whl (61.3MB) 100% |████████████████████████████████| 61.3MB 33kB/s Installing collected packages: torch-nightly Successfully installed torch-nightly-1.0.0.dev20181203 </code></pre></div> <p dir="auto">im running pytorch on:<br> osx 10.11.6</p> <p dir="auto">i installed libtorch following these steps:<br> <a href="https://pytorch.org/cppdocs/installing.html" rel="nofollow">https://pytorch.org/cppdocs/installing.html</a></p> <p dir="auto">here the cmake output:<br> <a href="https://ideone.com/go44HN" rel="nofollow">https://ideone.com/go44HN</a></p>
1
<p dir="auto">More often these days (I have seen this before) my problems/warnings status bar shows 99+ and clicking on it shows all are coming from /Applications/Visual Studio Code - Alpha.app/Contents/Resources/app/extensions/typescript/server/typescript/lib/lib.d.ts</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/900690/13567077/6337ffe0-e459-11e5-98e7-04f1983d07db.png"><img src="https://cloud.githubusercontent.com/assets/900690/13567077/6337ffe0-e459-11e5-98e7-04f1983d07db.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">In addition the console prints this:</p> <p dir="auto">[Extension Host] diagnostics for file:///Applications/Visual%20Studio%20Code%20-%20Alpha.app/Contents/Resources/app/extensions/typescript/server/typescript/lib/lib.d.ts will be capped to 250 (actually is 588)</p>
<ul dir="auto"> <li>VSCode Version: 1.0</li> <li>OS Version: Windows 10</li> </ul> <p dir="auto">All commands are in Chinese when using Chinese UI, when I type something like "ext install", it says "没有匹配的命令(no matched command)" and don't allow me to run the command.</p> <p dir="auto">BTW: how to switch to English UI?</p> <p dir="auto">Steps to Reproduce:<br> 1.<br> 2.</p>
0
<pre class="notranslate">What steps will reproduce the problem? gob.Register(errors.New("")) returns gob: type errors.errorString has no exported fields Please provide any additional information below. <a href="https://groups.google.com/forum/?fromgroups#" rel="nofollow">https://groups.google.com/forum/?fromgroups#</a>!topic/golang-dev/Cua1Av1J8Nc</pre>
<p dir="auto">Errors created by the errors package are not registered with <code class="notranslate">encoding/gob</code> which is necessary in order to send them as results of remote procedure calls.</p> <p dir="auto">By now, returning an error from the standard library through an RPC method will cause that the receiver get an <code class="notranslate">EOF error</code> and the transmitter a <code class="notranslate">gob: type not registered for interface: errors.errorString</code></p> <p dir="auto">My proposal is add an <code class="notranslate">init()</code> function in the errors package to register the struct <code class="notranslate">errorString</code> so then, developers will avoid create its own errors implementation when using RPCs.</p>
1
<p dir="auto">this is with in a library module, so it should not use the generated API</p> <p dir="auto">upgrade to Glide 4.9.0</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="versions.glide = &quot;4.9.0&quot; implementation &quot;com.github.bumptech.glide:glide:$versions.glide&quot; kapt &quot;com.github.bumptech.glide:compiler:$versions.glide&quot; implementation &quot;com.github.bumptech.glide:annotations:$versions.glide&quot;"><pre class="notranslate"><code class="notranslate">versions.glide = "4.9.0" implementation "com.github.bumptech.glide:glide:$versions.glide" kapt "com.github.bumptech.glide:compiler:$versions.glide" implementation "com.github.bumptech.glide:annotations:$versions.glide" </code></pre></div> <p dir="auto">updated the code, no place is using GlideApp</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fun ImageView.loadImg(imageUrl: String) { // 3.8.0 // if (!TextUtils.isEmpty(imageUrl)) { // Glide.clear(this) // // Glide.with(context).load(imageUrl) // .diskCacheStrategy(DiskCacheStrategy.ALL) // .placeholder(ColorDrawable(Color.LTGRAY)) // .into(this) // } /// // 4.+ code var requestOptions : RequestOptions = RequestOptions() .placeholder(ColorDrawable(Color.LTGRAY)) .diskCacheStrategy(DiskCacheStrategy.ALL) if (!TextUtils.isEmpty(imageUrl)) { Glide.with(context) .setDefaultRequestOptions(requestOptions) .asBitmap() .load(imageUrl) .into(this) } } fun ImageView.clear() { Glide.with(this.context).clear(this) }"><pre class="notranslate"><code class="notranslate">fun ImageView.loadImg(imageUrl: String) { // 3.8.0 // if (!TextUtils.isEmpty(imageUrl)) { // Glide.clear(this) // // Glide.with(context).load(imageUrl) // .diskCacheStrategy(DiskCacheStrategy.ALL) // .placeholder(ColorDrawable(Color.LTGRAY)) // .into(this) // } /// // 4.+ code var requestOptions : RequestOptions = RequestOptions() .placeholder(ColorDrawable(Color.LTGRAY)) .diskCacheStrategy(DiskCacheStrategy.ALL) if (!TextUtils.isEmpty(imageUrl)) { Glide.with(context) .setDefaultRequestOptions(requestOptions) .asBitmap() .load(imageUrl) .into(this) } } fun ImageView.clear() { Glide.with(this.context).clear(this) } </code></pre></div> <p dir="auto">got crash at Glide.with()</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.lang.AbstractMethodError: abstract method &quot;void com.bumptech.glide.module.RegistersComponents.registerComponents(android.content.Context, com.bumptech.glide.Glide, com.bumptech.glide.Registry)&quot; at com.bumptech.glide.Glide.initializeGlide(Glide.java:270) at com.bumptech.glide.Glide.initializeGlide(Glide.java:223) at com.bumptech.glide.Glide.checkAndInitializeGlide(Glide.java:184) at com.bumptech.glide.Glide.get(Glide.java:168) at com.bumptech.glide.Glide.getRetriever(Glide.java:689) at com.bumptech.glide.Glide.with(Glide.java:716)"><pre class="notranslate"><code class="notranslate">java.lang.AbstractMethodError: abstract method "void com.bumptech.glide.module.RegistersComponents.registerComponents(android.content.Context, com.bumptech.glide.Glide, com.bumptech.glide.Registry)" at com.bumptech.glide.Glide.initializeGlide(Glide.java:270) at com.bumptech.glide.Glide.initializeGlide(Glide.java:223) at com.bumptech.glide.Glide.checkAndInitializeGlide(Glide.java:184) at com.bumptech.glide.Glide.get(Glide.java:168) at com.bumptech.glide.Glide.getRetriever(Glide.java:689) at com.bumptech.glide.Glide.with(Glide.java:716) </code></pre></div> <p dir="auto">if adding the</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@GlideModule class DPAppGlideModule : AppGlideModule() { override fun isManifestParsingEnabled(): Boolean { return false } }"><pre class="notranslate"><code class="notranslate">@GlideModule class DPAppGlideModule : AppGlideModule() { override fun isManifestParsingEnabled(): Boolean { return false } } </code></pre></div> <p dir="auto">it will work, but since this is a library module so it should not have this one.</p> <p dir="auto">what might be the cause of AbstractMethodError: abstract method "void com.bumptech.glide.module.RegistersComponents.registerComponents(android.content.Context, com.bumptech.glide.Glide, com.bumptech.glide.Registry)"?</p> <p dir="auto">anything besides GlideApp should also be avoid?</p>
<p dir="auto">Hello,When I compile the program,I meet a trouble.</p> <p dir="auto">The compiler remind me of:</p> <p dir="auto">Error:Execution failed for task ':app:transformClassesWithJarMergingFor_DebugDebug'.</p> <blockquote> <p dir="auto">com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/bumptech/glide/gifdecoder/GifDecoder$BitmapProvider.class</p> </blockquote> <p dir="auto"><strong>Glide Version</strong>: 3.7.0</p> <p dir="auto">I hope you can reply me ,Thank you very much.</p>
0
<p dir="auto">When trying to load a package I built, my REPL gets filled up with an absurd number of messages like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARNING: Method definition Any(Integer, Static.StaticInt{U}) where {U} in module ArrayInterface at /home/lime/.julia/packages/ArrayInterface/CYf5x/src/ranges.jl:226 overwritten on the same line (check for duplicate calls to `include`). ** incremental compilation may be fatally broken for this module **"><pre class="notranslate"><code class="notranslate">WARNING: Method definition Any(Integer, Static.StaticInt{U}) where {U} in module ArrayInterface at /home/lime/.julia/packages/ArrayInterface/CYf5x/src/ranges.jl:226 overwritten on the same line (check for duplicate calls to `include`). ** incremental compilation may be fatally broken for this module ** </code></pre></div> <p dir="auto">I definitely don't have any duplicate calls to include; moreover, the error messages only appear when using v1.7, while 1.6.1 works perfectly fine. I'm using <a href="https://aur.archlinux.org/packages/julia-beta-bin/" rel="nofollow">this</a> version.</p>
<p dir="auto">I thought I had filed an issue for this already, but I can't find it. There's a big problem with the DWARF we generated for inlined code. Right now what we're describing is a function inlined into itself, but at a different location and a different file. We need to clean up the scopes we use when generating the debug info.</p>
0
<ul dir="auto"> <li>Electron version: 2.0.0-beta.5</li> <li>Operating system: Ubuntu 17</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">It should not freeze the window.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">Window freezes right on startup.</p> <h3 dir="auto">How to reproduce</h3> <ul dir="auto"> <li><code class="notranslate">export ELECTRON_ENABLE_LOGGING=1</code></li> <li><code class="notranslate">./electron</code></li> </ul> <p dir="auto">results in:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/900690/37697140-604a81be-2cdb-11e8-8ceb-7bdc4710e9d7.png"><img src="https://user-images.githubusercontent.com/900690/37697140-604a81be-2cdb-11e8-8ceb-7bdc4710e9d7.png" alt="image" style="max-width: 100%;"></a></p>
<ul dir="auto"> <li>Electron Version: 2.0.4</li> <li>Operating System (Platform and Version): Ubuntu 14.04 64bits (on WMware)</li> <li>Last known working Electron version: 1.8.7</li> </ul> <p dir="auto"><strong>Expected Behavior</strong><br> The sample Electron app should run and display a window<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2278117/42581339-d0a03766-852c-11e8-90fc-52c0a6b75caa.png"><img src="https://user-images.githubusercontent.com/2278117/42581339-d0a03766-852c-11e8-90fc-52c0a6b75caa.png" alt="1 8 7" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Actual behavior</strong><br> With Electron 2.x and 3.x the window loading hangs. Enabling debugging, the following error is showed when the process is terminated:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process."><pre class="notranslate"><code class="notranslate">ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process. </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2278117/42581512-2beaab88-852d-11e8-8ba4-da82c6b16a48.png"><img src="https://user-images.githubusercontent.com/2278117/42581512-2beaab88-852d-11e8-8ba4-da82c6b16a48.png" alt="2 0 4" style="max-width: 100%;"></a></p> <p dir="auto"><strong>To Reproduce</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm install --save-dev [email protected] ./node_modules/.bin/electron"><pre class="notranslate"><code class="notranslate">npm install --save-dev [email protected] ./node_modules/.bin/electron </code></pre></div> <p dir="auto"><strong>Additional Information</strong><br> Interestingly, the problem appears running<code class="notranslate"> ./node_modules/.bin/electron</code> but not running <code class="notranslate">./node_modules/.bin/electron &gt; /dev/null</code></p>
1
<h5 dir="auto">Description of the problem</h5> <p dir="auto">The examples for <a href="https://threejs.org/examples/?q=phong#webgl_materials_variations_phong" rel="nofollow">phong</a> and <a href="https://threejs.org/examples/?q=standard#webgl_materials_variations_standard" rel="nofollow">standard</a> materials are broken on Adreno 308 phones.<br> <del>I'm gonna try other GPUs as well.</del> did it, results below</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7824814/81801624-a9af1480-954f-11ea-9592-29db9c763c21.jpg"><img src="https://user-images.githubusercontent.com/7824814/81801624-a9af1480-954f-11ea-9592-29db9c763c21.jpg" alt="Android%20One%20S2_20200513_192627" style="max-width: 100%;"></a></p> <h5 dir="auto">Three.js version</h5> <p dir="auto">r116</p> <h5 dir="auto">Environments</h5> <ul dir="auto"> <li> <p dir="auto">Adreno 308</p> <ul dir="auto"> <li>Android One S2, Android 8.0.0, Chrome 81</li> <li>it LGV36, Android 8.1.0, Chrome 81</li> <li>Galaxy J4+ SM-J415N, Android 8.1.1, Chrome 81</li> </ul> </li> <li> <p dir="auto">DID NOT repro @ Adreno 306</p> <ul dir="auto"> <li>Galaxy J5(2016) SM-J510S, Android 6.0.1, Chrome 81</li> </ul> </li> <li> <p dir="auto">DID NOT repro @ Adreno 430</p> <ul dir="auto"> <li>Xperia Z5 SO-01H, Android 7.0, Chrome 81</li> </ul> </li> </ul>
<h5 dir="auto">Description of the problem</h5> <p dir="auto">Three.js Standard Material textures are rendered as solid black. eg <a href="https://threejs.org/docs/scenes/material-browser.html#MeshStandardMaterial" rel="nofollow">https://threejs.org/docs/scenes/material-browser.html#MeshStandardMaterial</a> doesn't work with the inital settings (appears all black).</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/493968/40514334-96971cf0-5f5d-11e8-8837-1e57a1b3a80f.png"><img src="https://user-images.githubusercontent.com/493968/40514334-96971cf0-5f5d-11e8-8837-1e57a1b3a80f.png" alt="screenshot from 2018-05-24 14 19 45" style="max-width: 100%;"></a></p> <p dir="auto">Changing background color to something other than black reveals the object as a black silhouette (despite it's initial material being set to a non-black color).</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/493968/40514423-f1a6f8cc-5f5d-11e8-9aac-7abf12bcb430.png"><img src="https://user-images.githubusercontent.com/493968/40514423-f1a6f8cc-5f5d-11e8-9aac-7abf12bcb430.png" alt="screenshot from 2018-05-24 14 21 43" style="max-width: 100%;"></a></p> <p dir="auto">Interesting, changing the material to have an emissive color seems to work fine</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/493968/40514442-fee523e2-5f5d-11e8-9555-8ad5b951ef77.png"><img src="https://user-images.githubusercontent.com/493968/40514442-fee523e2-5f5d-11e8-9555-8ad5b951ef77.png" alt="screenshot from 2018-05-24 14 22 31" style="max-width: 100%;"></a></p> <p dir="auto">Not sure if this is problem caused by one of the two texture warnings I'm seeing? (visible in those screenshots' consoles)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="three.min.js:35 THREE.WebGLRenderer: WEBGL_depth_texture extension not supported. three.min.js:35 THREE.WebGLRenderer: OES_texture_float_linear extension not supported."><pre class="notranslate"><code class="notranslate">three.min.js:35 THREE.WebGLRenderer: WEBGL_depth_texture extension not supported. three.min.js:35 THREE.WebGLRenderer: OES_texture_float_linear extension not supported. </code></pre></div> <p dir="auto">This doesn't appear to be a problem with all WebGL texturing, though -- <a href="https://fltr.world/" rel="nofollow">https://fltr.world/</a> (simple texture demo implemented with three.js shaders) works fine, as does <a href="https://webglsamples.org/aquarium/aquarium.html" rel="nofollow">https://webglsamples.org/aquarium/aquarium.html</a></p> <p dir="auto">I'm seeing this using Chrome 66.0.3359.158 with LG's stock Android 7.0 (version M21010v; January 1, 2018 security update) with on both my LG Aristo (LG-M210) and my LG Fiesta (LG L63BL)</p> <p dir="auto">Also reported in A-frame here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="311502297" data-permission-text="Title is private" data-url="https://github.com/aframevr/aframe/issues/3523" data-hovercard-type="issue" data-hovercard-url="/aframevr/aframe/issues/3523/hovercard" href="https://github.com/aframevr/aframe/issues/3523">aframevr/aframe#3523</a><br> And here: <a href="https://stackoverflow.com/questions/40010080/scene-rendering-black-when-entering-vr-mode-in-a-frame" rel="nofollow">https://stackoverflow.com/questions/40010080/scene-rendering-black-when-entering-vr-mode-in-a-frame</a></p> <h5 dir="auto">Browser</h5> <p dir="auto">I've only tested on Android's Chrome, but it has also been reported on (the Android version of) Firefox and the default Android browser: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="311502297" data-permission-text="Title is private" data-url="https://github.com/aframevr/aframe/issues/3523" data-hovercard-type="issue" data-hovercard-url="/aframevr/aframe/issues/3523/hovercard?comment_id=391611976&amp;comment_type=issue_comment" href="https://github.com/aframevr/aframe/issues/3523#issuecomment-391611976">aframevr/aframe#3523 (comment)</a></p> <h5 dir="auto">OS</h5> <p dir="auto">Android <em>7+</em></p> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5> <p dir="auto">Relevant Android device running Android 7+. Reported to be reproducible on:</p> <ul dir="auto"> <li>LG Aristo (LG-M210) (by me)</li> <li>LG Fiesta (LG L63BL) (by me)</li> <li><a href="https://stackoverflow.com/questions/48156560/all-shapes-entities-showing-up-as-black-in-a-frame-scenes#comment83332908_48156560" rel="nofollow">Motorolla Moto G3</a></li> <li><a href="https://stackoverflow.com/questions/48156560/all-shapes-entities-showing-up-as-black-in-a-frame-scenes#comment83332908_48156560" rel="nofollow">Samsung Galaxy J3 Mission (SM-J327VPP)</a></li> </ul> <p dir="auto"><em>Edit</em>: if this is indeed the same issue as that reported in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="274623432" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/12679" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/12679/hovercard" href="https://github.com/mrdoob/three.js/issues/12679">#12679</a>, then the following devices also exhibit the problem:</p> <ul dir="auto"> <li><a href="">Huaweï MediaPad T3 10 (AGS-L09) - Androïd 7 / EMUI 5.1 / Snapdragon 425 / 2Go RAM / 800x1280</a></li> <li><a href="https://github.com/mrdoob/three.js/issues/12679#issuecomment-375877692" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/12679/hovercard">Samsung SM-T555 (Galaxy A)</a><br> [- Xiaomi Redmi 4A, Android 7.1.2, MIUI 9.2.6.0</li> <li>Acer Predator 8 (GT-810 rolex), Android 7.1</li> <li>LG K20 Plus (lv517), Android 7.0</li> <li>Galaxy Tab A 9.7 (gt510wifi), Android 7.1</li> <li>Moto G4 Play (harpia), Android 7.1</li> <li>Galaxy Tab E 9.6 (gtelwifiue), Android 7.1</li> <li>Galaxy J5(2016) (j5xnlte), Android 7.1</li> <li>Galaxy Tab A 9.7 (gt510wifi), Android 7.1</li> <li>HM NOTE 1LTETD (dior), Android 4.4](<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="274623432" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/12679" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/12679/hovercard?comment_id=375980801&amp;comment_type=issue_comment" href="https://github.com/mrdoob/three.js/issues/12679#issuecomment-375980801">#12679 (comment)</a>)</li> </ul> <p dir="auto">And the following do not:</p> <ul dir="auto"> <li>Huaweï P8 Lite (Android 6 + EMUI 5.1)</li> <li>Huaweï P9</li> <li>HTC Nexus 9 (Android 7.1.1)</li> <li>Galaxy Tab A 2016 ( Android 7)</li> </ul> <p dir="auto">However the issue does <em>not</em> seem to appear on:</p> <ul dir="auto"> <li><a href="https://stackoverflow.com/questions/48156560/all-shapes-entities-showing-up-as-black-in-a-frame-scenes#comment83332908_48156560" rel="nofollow">Samsung Galaxy J3 (SM-J327T) also running Android 7.0</a></li> <li><a href="https://stackoverflow.com/questions/48156560/all-shapes-entities-showing-up-as-black-in-a-frame-scenes#comment83292249_48156560" rel="nofollow">Pixel 2</a></li> </ul> <p dir="auto">I have several devices that exhibit the failure. Happy to either run test cases or supply one to test if someone wants to work on this who is located in the SF Bay area.</p> <p dir="auto">In searching, also found this issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="260866221" data-permission-text="Title is private" data-url="https://github.com/rnc-archive/react-native-webgl/issues/21" data-hovercard-type="issue" data-hovercard-url="/rnc-archive/react-native-webgl/issues/21/hovercard" href="https://github.com/rnc-archive/react-native-webgl/issues/21">rnc-archive/react-native-webgl#21</a> It has similar symptoms (black textures on Android), but pretty sure it's a different root problem</p>
1
<ul class="contains-task-list"> <li><strong>I'm submitting a ...</strong></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> bug report</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> feature request</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> support request =&gt; Please do not submit support request here, see note at the top of this template.</li> </ul> <p dir="auto">I'm using the following to update the document title when views change:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;nav&gt; &lt;h1&gt;Preamble BDD&lt;/h1&gt; &lt;ul&gt; &lt;li&gt;&lt;a (click)=&quot;setTitle('Preamble BDD')&quot; [routerLink]=&quot;['/']&quot;&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a (click)=&quot;setTitle('Preamble BDD Changelog')&quot; [routerLink]=&quot;['/changelog']&quot;&gt;Changelog&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a (click)=&quot;setTitle('Preamble BDD API')&quot; [routerLink]= &quot;['/api']&quot;&gt;API&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/nav&gt; &lt;router-outlet&gt;&lt;/router-outlet&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">nav</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h1</span><span class="pl-kos">&gt;</span>Preamble BDD<span class="pl-kos">&lt;/</span><span class="pl-ent">h1</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">(click)</span>="<span class="pl-s">setTitle('Preamble BDD')</span>" <span class="pl-c1">[routerLink]</span>="<span class="pl-s">['/']</span>"<span class="pl-kos">&gt;</span>Home<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">(click)</span>="<span class="pl-s">setTitle('Preamble BDD Changelog')</span>" <span class="pl-c1">[routerLink]</span>="<span class="pl-s">['/changelog']</span>"<span class="pl-kos">&gt;</span>Changelog<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">(click)</span>="<span class="pl-s">setTitle('Preamble BDD API')</span>" <span class="pl-c1">[routerLink]</span>= "<span class="pl-s">['/api']</span>"<span class="pl-kos">&gt;</span>API<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">nav</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">router-outlet</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">router-outlet</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">It works but only when the user actually clicks on one of the links. However, when navigating via history (i.e. the browser's nav buttons) the document title remains unchanged and doesn't accurately reflect the current view. I am currently using the following in my views to get around this issue but it feels like something the Title service should be able to do if it was watching push and pop state events:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {Component} from &quot;@angular/core&quot;; import {Title} from &quot;@angular/platform-browser&quot;; @Component({ templateUrl: &quot;app/home.component.html&quot; }) export class HomeComponent { constructor(private titleService: Title) { } ngOnInit() { this.titleService.setTitle(&quot;Preamble BDD&quot;); console.log(&quot;ngOnInit called&quot;); } }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-smi">Component</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"@angular/core"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-smi">Title</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"@angular/platform-browser"</span><span class="pl-kos">;</span> @<span class="pl-smi">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">templateUrl</span>: <span class="pl-s">"app/home.component.html"</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">HomeComponent</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-k">private</span> <span class="pl-s1">titleService</span>: <span class="pl-smi">Title</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-en">ngOnInit</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">titleService</span><span class="pl-kos">.</span><span class="pl-en">setTitle</span><span class="pl-kos">(</span><span class="pl-s">"Preamble BDD"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"ngOnInit called"</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">Notice the implementation for ngOnInit in the component class. As I stated above, I think the Title service should be able to do this by listening to push and popstaate events.</p> <p dir="auto">Please consider adding this feature to the Title service.</p>
<p dir="auto"><strong>I'm submitting a ...</strong><br> [ ] bug report<br> [x] feature request<br> [ ] support request.</p> <p dir="auto">No obvious way to influence the history title (see <a href="https://css-tricks.com/using-the-html5-history-api/" rel="nofollow">this background</a>) that appears when you press-and-hold a browser's back/forward buttons.</p> <p dir="auto">We either need this as a router feature or have some reasonable technique available for devs to implement themselves.</p> <p dir="auto">This title should be dynamic as the displayed value is often constructed on the fly by the component (e.g, "Hero Detail: Magneta"). I'd like to see this option be part of the link parameters array and somehow involved in the <code class="notranslate">navigateTo</code> methods.</p> <p dir="auto">The A1 routers could do it. So can routers for other frameworks. We need it.</p>
1
<h4 dir="auto">Description</h4> <p dir="auto">This maybe a possible bug or my assumption is wrong regarding the Incremental PCA's fit / partial_fit methods. For valid parameters, the error thrown is <em>ValueError: Number of input features has changed from 10 to 100 between calls to partial_fit! Try setting n_components to a fixed value.</em></p> <h4 dir="auto">Steps/Code to Reproduce</h4> <p dir="auto">Example:<br> I want to perform the pca on the below matrix with dimensions (n_samples, n_features) = (100, 1000).<br> I want to reduce it to a 100 dimension feature space and hence, I am setting the number of components to 100.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np input_matrix = np.random.randn(100, 1000) ipca = IncrementalPCA(n_components=100, batch_size=10) ipca.fit(input_matrix) # Error at this line reduced_matrix = ipca.transform(input_matrix)"><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">input_matrix</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randn</span>(<span class="pl-c1">100</span>, <span class="pl-c1">1000</span>) <span class="pl-s1">ipca</span> <span class="pl-c1">=</span> <span class="pl-v">IncrementalPCA</span>(<span class="pl-s1">n_components</span><span class="pl-c1">=</span><span class="pl-c1">100</span>, <span class="pl-s1">batch_size</span><span class="pl-c1">=</span><span class="pl-c1">10</span>) <span class="pl-s1">ipca</span>.<span class="pl-en">fit</span>(<span class="pl-s1">input_matrix</span>) <span class="pl-c"># Error at this line</span> <span class="pl-s1">reduced_matrix</span> <span class="pl-c1">=</span> <span class="pl-s1">ipca</span>.<span class="pl-en">transform</span>(<span class="pl-s1">input_matrix</span>)</pre></div> <h4 dir="auto">Expected Results</h4> <p dir="auto">No error is thrown and the reduced matrix shape must be (n_samples, n_features) = (100, 100)</p> <h4 dir="auto">Actual Results</h4> <p dir="auto">ValueError: Number of input features has changed from 10 to 100 between calls to partial_fit! Try setting n_components to a fixed value. Commenting out the condition check produces expected result.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if (self.components_ is not None) and (self.components_.shape[0] != self.n_components_): raise ValueError(&quot;Number of input features has changed from %i &quot; &quot;to %i between calls to partial_fit! Try &quot; &quot;setting n_components to a fixed value.&quot; % (self.components_.shape[0], self.n_components_))"><pre class="notranslate"><code class="notranslate">if (self.components_ is not None) and (self.components_.shape[0] != self.n_components_): raise ValueError("Number of input features has changed from %i " "to %i between calls to partial_fit! Try " "setting n_components to a fixed value." % (self.components_.shape[0], self.n_components_)) </code></pre></div> <h4 dir="auto">Versions</h4> <p dir="auto">Linux-3.10.0-514.26.2.el7.x86_64-x86_64-with-centos-7.3.1611-Core<br> ('Python', '2.7.5 (default, Nov 6 2016, 00:28:07) \n[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]')<br> ('NumPy', '1.13.0')<br> ('SciPy', '0.18.1')<br> ('Scikit-Learn', '0.18.1')</p>
<p dir="auto"><code class="notranslate">IncrementalPCA.partial_fit</code> raises the following error when the number of samples is smaller than <code class="notranslate">n_components</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" File &quot;___/sklearn/decomposition/incremental_pca.py&quot;, line 218, in partial_fit (self.components_.shape[0], self.n_components_)) ValueError: Number of input features has changed from 10 to 20 between calls to partial_fit! Try setting n_components to a fixed value."><pre class="notranslate"><code class="notranslate"> File "___/sklearn/decomposition/incremental_pca.py", line 218, in partial_fit (self.components_.shape[0], self.n_components_)) ValueError: Number of input features has changed from 10 to 20 between calls to partial_fit! Try setting n_components to a fixed value. </code></pre></div> <p dir="auto">This error can be generated via the following snippet as long as <code class="notranslate">n_samples &lt; n_components</code>:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np from sklearn.decomposition import IncrementalPCA n_samples, n_features = 10, 50 ipca = IncrementalPCA(n_components=20) for i in range(5): ipca.partial_fit(np.random.rand(n_samples, n_features))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">decomposition</span> <span class="pl-k">import</span> <span class="pl-v">IncrementalPCA</span> <span class="pl-s1">n_samples</span>, <span class="pl-s1">n_features</span> <span class="pl-c1">=</span> <span class="pl-c1">10</span>, <span class="pl-c1">50</span> <span class="pl-s1">ipca</span> <span class="pl-c1">=</span> <span class="pl-v">IncrementalPCA</span>(<span class="pl-s1">n_components</span><span class="pl-c1">=</span><span class="pl-c1">20</span>) <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">5</span>): <span class="pl-s1">ipca</span>.<span class="pl-en">partial_fit</span>(<span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">rand</span>(<span class="pl-s1">n_samples</span>, <span class="pl-s1">n_features</span>))</pre></div> <p dir="auto">The error message is not informative because the number of input features is constant (i.e., 50)<br> and <code class="notranslate">n_components</code> is fixed anyways.</p> <p dir="auto">Also, I don't see any fundamental reason why this shouldn't work. In regular PCA, number of components after transformation can be larger than the number of samples.<br> Is this a limitation of the incremental PCA algorithm or the implementation?</p>
1
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>yes</td> </tr> <tr> <td>Feature request?</td> <td>no</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>3.3.3 / 3.3.2</td> </tr> </tbody> </table> <p dir="auto">Since this morning, we can't use the command :</p> <p dir="auto">php symfony.phar new Symfony</p> <p dir="auto">to create a project. It generates the error UndefinedMethodException (see the 2 first attached files)</p> <p dir="auto">The only way to make it works is to type :</p> <p dir="auto">php symfony.phar new Symfony 3.3.2</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22826746/27832265-67aa5c6a-60ce-11e7-8ed1-caa246eb2096.png"><img src="https://user-images.githubusercontent.com/22826746/27832265-67aa5c6a-60ce-11e7-8ed1-caa246eb2096.png" alt="symfony - 1" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22826746/27832266-67b119e2-60ce-11e7-8d12-ac2af7dd5693.png"><img src="https://user-images.githubusercontent.com/22826746/27832266-67b119e2-60ce-11e7-8d12-ac2af7dd5693.png" alt="symfony - 2" style="max-width: 100%;"></a></p> <p dir="auto">With the command</p> <p dir="auto">php symfony.phar new Symfony 3.3.3</p> <p dir="auto">we have these error : RunTimeException and ContextErrorException (see the 2 others attached files)</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22826746/27832632-ac21312e-60cf-11e7-8186-f3ed5755dea8.png"><img src="https://user-images.githubusercontent.com/22826746/27832632-ac21312e-60cf-11e7-8186-f3ed5755dea8.png" alt="symfony - 3" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22826746/27832633-ac22f8b0-60cf-11e7-815a-d9f192b1c4b6.png"><img src="https://user-images.githubusercontent.com/22826746/27832633-ac22f8b0-60cf-11e7-815a-d9f192b1c4b6.png" alt="symfony - 4" style="max-width: 100%;"></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>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>3.3.3</td> </tr> </tbody> </table> <p dir="auto">I have this error when scaffolding new symfony project (3.3.3):</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11293401/27829243-8dcc680e-60b8-11e7-82d3-4a31e684120c.png"><img src="https://user-images.githubusercontent.com/11293401/27829243-8dcc680e-60b8-11e7-82d3-4a31e684120c.png" alt="screenshot from 2017-07-04 12-58-45" style="max-width: 100%;"></a></p> <p dir="auto">Thank you for help !</p>
1
<p dir="auto">This is a very useful feature provided by Kate editor which I miss when I open I file on Atom.<br> Any chance it could be implemented?</p> <p dir="auto">Here is an example of how it works on Kate: suppose a file contains this</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo bar baz baz foo bar bar baz foo"><pre class="notranslate"><code class="notranslate">foo bar baz baz foo bar bar baz foo </code></pre></div> <p dir="auto">If I double click on "foo", it gets selected and then all 3 occurrences of "foo" are highlighted. If I unselect "foo", the highlight disappears. If then I select "bar baz", its two occurrences (on lines 1 and 3) get selected.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/078c56d6cae52279504947954f8162102cb1bff3a34f70a1745103898abca38c/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3530363132392f323330303038302f30316238356663632d613064662d313165332d383838632d3838343837643933663361382e676966"><img src="https://camo.githubusercontent.com/078c56d6cae52279504947954f8162102cb1bff3a34f70a1745103898abca38c/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3530363132392f323330303038302f30316238356663632d613064662d313165332d383838632d3838343837643933663361382e676966" alt="sublime-text-word-highligting" data-animated-image="" data-canonical-src="https://f.cloud.github.com/assets/506129/2300080/01b85fcc-a0df-11e3-888c-88487d93f3a8.gif" style="max-width: 100%;"></a></p> <p dir="auto">Yet another Sublime Text feature (YASTF).</p> <p dir="auto">This should act as a preview of what <kbd>Cmd</kbd>-<kbd>d</kbd> will select.</p> <p dir="auto"><a href="http://discuss.atom.io/t/highlight-occurrences-of-selected-word/2080" rel="nofollow">http://discuss.atom.io/t/highlight-occurrences-of-selected-word/2080</a></p>
1
<h2 dir="auto"><g-emoji class="g-emoji" alias="information_source" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2139.png">ℹ</g-emoji> Computer information</h2> <p dir="auto">Windows 10 Pro version 2004</p> <h2 dir="auto">Repro</h2> <ol dir="auto"> <li>Run app</li> </ol> <h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3> <h3 dir="auto">❌ Actual result</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Version: 1.0.0 OS Version: Microsoft Windows NT 10.0.19041.0 IntPtr Length: 8 x64: True Date: 08/01/2020 10:51:23 Exception: System.ObjectDisposedException: Cannot access a disposed object. Object name: 'Timer'. at System.Timers.Timer.set_Enabled(Boolean value) at System.Timers.Timer.Start() at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e) at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.UpdateIsVisibleCache() at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot) at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value) at System.Windows.Interop.HwndSource.set_RootVisual(Visual value) at System.Windows.Window.SetRootVisual() at System.Windows.Window.SetRootVisualAndUpdateSTC() at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight) at System.Windows.Window.CreateSourceWindow(Boolean duringShow) at System.Windows.Window.CreateSourceWindowDuringShow() at System.Windows.Window.SafeCreateWindowDuringShow() at System.Windows.Window.ShowHelper(Object booleanBox) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)"><pre lang="text" class="notranslate"><code class="notranslate">Version: 1.0.0 OS Version: Microsoft Windows NT 10.0.19041.0 IntPtr Length: 8 x64: True Date: 08/01/2020 10:51:23 Exception: System.ObjectDisposedException: Cannot access a disposed object. Object name: 'Timer'. at System.Timers.Timer.set_Enabled(Boolean value) at System.Timers.Timer.Start() at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e) at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.UIElement.UpdateIsVisibleCache() at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot) at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value) at System.Windows.Interop.HwndSource.set_RootVisual(Visual value) at System.Windows.Window.SetRootVisual() at System.Windows.Window.SetRootVisualAndUpdateSTC() at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight) at System.Windows.Window.CreateSourceWindow(Boolean duringShow) at System.Windows.Window.CreateSourceWindowDuringShow() at System.Windows.Window.SafeCreateWindowDuringShow() at System.Windows.Window.ShowHelper(Object booleanBox) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) </code></pre></div> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5010954/2020-08-01.txt">2020-08-01.txt</a></p>
<p dir="auto">Popup tells me to give y'all this.</p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 07/31/2020 17:29:59<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
1
<h3 dir="auto">Version</h3> <p dir="auto">2.6.11</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://jsfiddle.net/n8bkg4pw/" rel="nofollow">https://jsfiddle.net/n8bkg4pw/</a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">When clicking on the <code class="notranslate">inc</code> button, the displays of <code class="notranslate">nb_foo.value</code> will change of value but one out of the three won't change of value because of the bug.</p> <h3 dir="auto">What is expected?</h3> <p dir="auto">All of the display of <code class="notranslate">nb_foo.value</code> to change of value</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">One out of the three display of <code class="notranslate">nb_foo.value</code> won't change of value because of the bug.</p> <hr> <p dir="auto">It's only happening when in a <code class="notranslate">v-else</code> itself in the slot of the <code class="notranslate">fake</code> component. When inverting the condition (putting the second <code class="notranslate">fake</code> in a <code class="notranslate">v-if</code> instead of a <code class="notranslate">v-else</code>) it's properly working.</p> <p dir="auto">I encountered this error with a much more complex example with two components nested in a similar way.</p>
<h3 dir="auto">Version</h3> <p dir="auto">2.6.11</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://codepen.io/mesqueeb/pen/eYZGode" rel="nofollow">https://codepen.io/mesqueeb/pen/eYZGode</a></p> <h3 dir="auto">Steps to reproduce</h3> <div class="highlight highlight-text-html-vue notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;h6&gt;works with v-model&lt;/h6&gt; &lt;input v-model=&quot;message&quot; /&gt; &lt;h6&gt;does not work with v-model&lt;/h6&gt; &lt;component :is=&quot;'input'&quot; v-model=&quot;message&quot; /&gt;"><pre class="notranslate">&lt;<span class="pl-ent">h6</span>&gt;works with v-model&lt;/<span class="pl-ent">h6</span>&gt; &lt;<span class="pl-ent">input</span> <span class="pl-e">v-model</span>=<span class="pl-s1"><span class="pl-pds">"</span>message<span class="pl-pds">"</span></span> /&gt; &lt;<span class="pl-ent">h6</span>&gt;does not work with v-model&lt;/<span class="pl-ent">h6</span>&gt; &lt;<span class="pl-ent">component</span> :<span class="pl-e">is</span>=<span class="pl-s1"><span class="pl-pds">"</span><span class="pl-s"><span class="pl-pds">'</span>input<span class="pl-pds">'</span></span><span class="pl-pds">"</span></span> <span class="pl-e">v-model</span>=<span class="pl-s1"><span class="pl-pds">"</span>message<span class="pl-pds">"</span></span> /&gt;</pre></div> <h3 dir="auto">What is expected?</h3> <ul dir="auto"> <li><code class="notranslate">&lt;component :is="'input'" /&gt;</code></li> </ul> <p dir="auto">should give the same result as</p> <ul dir="auto"> <li><code class="notranslate">&lt;input /&gt;</code> and it does.</li> </ul> <p dir="auto">They render the same, they also each emit the same events you can capture with <code class="notranslate">@input</code>.</p> <p dir="auto">Yet somehow, the one with <code class="notranslate">component is="input"</code> does not work with v-model.</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">the one with <code class="notranslate">component is="input"</code> does not work with v-model.</p>
0
<p dir="auto">Issue Id: <b>70b9c65b-9ccd-16b5-73e0-508ddd36a5cc</b><br><br><em>Versions</em> <br>- 0.10.9<br>- <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/vscode/commit/db71ac615ddf9f33b133ff2536f5d33a77d4774e/hovercard" href="https://github.com/microsoft/vscode/commit/db71ac615ddf9f33b133ff2536f5d33a77d4774e"><tt>db71ac6</tt></a><br><em>Stack</em> <br>TypeError: Cannot read property 'detail' of undefined<br> at t.e.onErrorEvent (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/pluginHostProcess.js:12:31088) <br> at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/pluginHostProcess.js:7:11352 <br> at Array.forEach (native)<br> at e.emit (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/pluginHostProcess.js:7:11332) <br> at e.onUnexpectedError (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/pluginHostProcess.js:7:11696) <br> at Object.u [as onUnexpectedError](/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/pluginHostProcess.js:7:9137) <br> at null._onTimeout (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/pluginHostProcess.js:20:26789) <br> at Timer.listOnTimeout (timers.js:89:15)<br></p>
<p dir="auto">Issue Id: <b>70b9c65b-9ccd-16b5-73e0-508ddd36a5cc</b><br><br><em>Versions</em> <br>- 0.10.9<br>- <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/vscode/commit/db71ac615ddf9f33b133ff2536f5d33a77d4774e/hovercard" href="https://github.com/microsoft/vscode/commit/db71ac615ddf9f33b133ff2536f5d33a77d4774e"><tt>db71ac6</tt></a><br><em>Stack</em></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/vs/platform/telemetry/common/abstractTelemetryService.ts#73:7 (AbstractTelemetryService.onErrorEvent) /vs/base/common/errors.ts#55:3 (ErrorHandler.emit) /vs/base/common/errors.ts#54:17 (ErrorHandler.emit) /vs/base/common/errors.ts#73:7 (ErrorHandler.onUnexpectedError) /vs/base/common/errors.ts#87:15 (onUnexpectedError) /vs/workbench/node/pluginHostProcess.ts#56:6 (connectToRenderer) "><pre class="notranslate"><code class="notranslate">/vs/platform/telemetry/common/abstractTelemetryService.ts#73:7 (AbstractTelemetryService.onErrorEvent) /vs/base/common/errors.ts#55:3 (ErrorHandler.emit) /vs/base/common/errors.ts#54:17 (ErrorHandler.emit) /vs/base/common/errors.ts#73:7 (ErrorHandler.onUnexpectedError) /vs/base/common/errors.ts#87:15 (onUnexpectedError) /vs/workbench/node/pluginHostProcess.ts#56:6 (connectToRenderer) </code></pre></div>
1
<h1 dir="auto">Environment</h1> <p dir="auto">Microsoft Windows [Version 10.0.18362.388]<br> Windows Terminal (Preview) Version: 0.5.2762.0<br> <a href="https://github.com/ms-iot/iot-adk-addonkit/">https://github.com/ms-iot/iot-adk-addonkit/</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd] Windows Terminal version (if applicable): Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd] Windows Terminal version (if applicable): Any other software? </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Clone IoT Core ADK Add-ons to local machine</li> <li>Create IOT ADK entry in settings:<br> {<br> "guid": "{255BF760-7EE8-4346-B260-494BBBE234A6}",<br> "name": "IOT ADK",<br> "commandline": "C:\Users\Tony\source\repos\iot-adk-addonkit\IoTCorePShell.cmd",<br> "hidden": false<br> },</li> <li>Select "IOT ADK" from new window drop down</li> <li>Click yes on elevation prompt</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">IoTPShell script/window opens as part of Terminal</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">IoTPShell script/window opens a new PShell window on the desktop</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Platform ServicePack Version VersionString -------- ----------- ------- ------------- Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0"><pre lang="none" class="notranslate"><code class="notranslate">Platform ServicePack Version VersionString -------- ----------- ------- ------------- Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">if i run the command: <code class="notranslate">colortool SolarizedDarkHigherContrast &gt; $null</code> ,it does not work.</p> <p dir="auto">but the command <code class="notranslate">colortool SolarizedDarkHigherContrast</code> works well,i dont want to print the theme information</p> <h1 dir="auto">Expected behavior</h1> <h1 dir="auto">Actual behavior</h1>
0
<p dir="auto">Currently (TS v.1.5.2) the compiler does not do inference correctly for certain cases:</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="73346636" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/3038" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/3038/hovercard" href="https://github.com/microsoft/TypeScript/issues/3038">#3038</a></p> <p dir="auto">Although it is by design, reflected in the spec and there is no viable way for doing it correctly, I think the compiler has to be honest to the developer and instead of generating faulty code, it has to break with an error message that would say that the inferred types cannot be resolved.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export function keyOf&lt;a&gt;(value: { key: a; }): a { return value.key; } export interface Data { key: number; value: Date; } var data: Data[] = []; export function toKeys&lt;a&gt;(values: a[], toKey: (value: a) =&gt; string): string[] { return undefined; } toKeys(data, keyOf); // &lt;-- actual ok, expected error, since `keyOf` should be inferred as `number` rather than `string`"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">function</span> <span class="pl-en">keyOf</span><span class="pl-c1">&lt;</span><span class="pl-smi">a</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">value</span>: <span class="pl-kos">{</span> <span class="pl-c1">key</span>: <span class="pl-smi">a</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span>: <span class="pl-smi">a</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">value</span><span class="pl-kos">.</span><span class="pl-c1">key</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-k">interface</span> <span class="pl-smi">Data</span> <span class="pl-kos">{</span> <span class="pl-c1">key</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span> <span class="pl-c1">value</span>: <span class="pl-smi">Date</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">var</span> <span class="pl-s1">data</span>: <span class="pl-smi">Data</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-k">export</span> <span class="pl-k">function</span> <span class="pl-en">toKeys</span><span class="pl-c1">&lt;</span><span class="pl-smi">a</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">values</span>: <span class="pl-smi">a</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s1">toKey</span>: <span class="pl-kos">(</span><span class="pl-s1">value</span>: <span class="pl-smi">a</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">string</span><span class="pl-kos">)</span>: <span class="pl-smi">string</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-c1">undefined</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">toKeys</span><span class="pl-kos">(</span><span class="pl-s1">data</span><span class="pl-kos">,</span> <span class="pl-s1">keyOf</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// &lt;-- actual ok, expected error, since `keyOf` should be inferred as `number` rather than `string`</span></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/937933/7476191/fbf81788-f319-11e4-9a34-82812c01f6e0.png"><img src="https://cloud.githubusercontent.com/assets/937933/7476191/fbf81788-f319-11e4-9a34-82812c01f6e0.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Reproduced at playground: <a href="http://www.typescriptlang.org/Playground#src=export%20function%20keyOf%3Ca%3E(value%3A%20%7B%20key%3A%20a%3B%20%7D)%3A%20a%20%7B%0A%09return%20value.key%3B%0A%7D%0Aexport%20interface%20Data%20%7B%0A%09key%3A%20number%3B%0A%09value%3A%20Date%3B%0A%7D%0A%0Avar%20data%3A%20Data%5B%5D%20%3D%20%5B%5D%3B%0A%0Aexport%20function%20toKeys%3Ca%3E(values%3A%20a%5B%5D%2C%20toKey%3A%20(value%3A%20a)%20%3D%3E%20string)%3A%20string%5B%5D%20%7B%0A%09return%20undefined%3B%0A%7D%0A%0AtoKeys(data%2C%20keyOf)%3B%20%2F%2F%20%3C--%20expected%20compile%20error%2C%20since%20keyOf%20should%20have%20inferred%20a%20as%20%60number%60%20rather%20than%20%60string%60%0A" rel="nofollow">http://www.typescriptlang.org/Playground#src=export%20function%20keyOf%3Ca%3E(value%3A%20%7B%20key%3A%20a%3B%20%7D)%3A%20a%20%7B%0A%09return%20value.key%3B%0A%7D%0Aexport%20interface%20Data%20%7B%0A%09key%3A%20number%3B%0A%09value%3A%20Date%3B%0A%7D%0A%0Avar%20data%3A%20Data%5B%5D%20%3D%20%5B%5D%3B%0A%0Aexport%20function%20toKeys%3Ca%3E(values%3A%20a%5B%5D%2C%20toKey%3A%20(value%3A%20a)%20%3D%3E%20string)%3A%20string%5B%5D%20%7B%0A%09return%20undefined%3B%0A%7D%0A%0AtoKeys(data%2C%20keyOf)%3B%20%2F%2F%20%3C--%20expected%20compile%20error%2C%20since%20keyOf%20should%20have%20inferred%20a%20as%20%60number%60%20rather%20than%20%60string%60%0A</a></p>
1
<p dir="auto">I always wondered why the route name itself is not stored as part of the route object ... This would make it easier in some places.</p> <p dir="auto">Would you be open for a PR to add this?</p>
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>yes</td> </tr> <tr> <td>Feature request?</td> <td>no</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>4.0.6</td> </tr> </tbody> </table> <p dir="auto">Hi, guys</p> <p dir="auto">I have a problem following.<br> Could you please give me an advice?</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="###&gt; symfony/framework-bundle ### APP_ENV=prod $ composer install --no-dev --optimize-autoloader Loading composer repositories with package information Installing dependencies from lock file Nothing to install or update Generating optimized autoload files ocramius/package-versions: Generating version class... ocramius/package-versions: ...done generating version class Executing script cache:clear [KO] [KO] Script cache:clear returned with error code 255 !! PHP Fatal error: Uncaught Error: Class 'Symfony\Bundle\TwigBundle\TwigBundle' not found in C:\Users\xsunt\PhpstormProjects\xsun\tv\4.0\src\Ker nel.php:32 !! Stack trace: !! #0 C:\Users\xsunt\PhpstormProjects\xsun\tv\4.0\vendor\symfony\http-kernel\Kernel.php(403): App\Kernel-&gt;registerBundles() !! #1 C:\Users\xsunt\PhpstormProjects\xsun\tv\4.0\vendor\symfony\http-kernel\Kernel.php(122): Symfony\Component\HttpKernel\Kernel-&gt;initializeBundl es() !! #2 C:\Users\xsunt\PhpstormProjects\xsun\tv\4.0\vendor\symfony\framework-bundle\Console\Application.php(64): Symfony\Component\HttpKernel\Kernel -&gt;boot() !! #3 C:\Users\xsunt\PhpstormProjects\xsun\tv\4.0\vendor\symfony\console\Application.php(143): Symfony\Bundle\FrameworkBundle\Console\Application- &gt;doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) !! #4 C:\Users\xsunt\PhpstormProjects\xsun\tv\4.0\bin\console(39): Symfony\Component\Console\Application-&gt;run(Object(Symfony\Component\Console\Inp ut\ArgvInput)) !! #5 {main} !! thrown in C:\Users\xsunt\PhpstormProjects\xsun\tv\4.0\src\Kernel.php on line 32 !!"><pre class="notranslate"><code class="notranslate">###&gt; symfony/framework-bundle ### APP_ENV=prod $ composer install --no-dev --optimize-autoloader Loading composer repositories with package information Installing dependencies from lock file Nothing to install or update Generating optimized autoload files ocramius/package-versions: Generating version class... ocramius/package-versions: ...done generating version class Executing script cache:clear [KO] [KO] Script cache:clear returned with error code 255 !! PHP Fatal error: Uncaught Error: Class 'Symfony\Bundle\TwigBundle\TwigBundle' not found in C:\Users\xsunt\PhpstormProjects\xsun\tv\4.0\src\Ker nel.php:32 !! Stack trace: !! #0 C:\Users\xsunt\PhpstormProjects\xsun\tv\4.0\vendor\symfony\http-kernel\Kernel.php(403): App\Kernel-&gt;registerBundles() !! #1 C:\Users\xsunt\PhpstormProjects\xsun\tv\4.0\vendor\symfony\http-kernel\Kernel.php(122): Symfony\Component\HttpKernel\Kernel-&gt;initializeBundl es() !! #2 C:\Users\xsunt\PhpstormProjects\xsun\tv\4.0\vendor\symfony\framework-bundle\Console\Application.php(64): Symfony\Component\HttpKernel\Kernel -&gt;boot() !! #3 C:\Users\xsunt\PhpstormProjects\xsun\tv\4.0\vendor\symfony\console\Application.php(143): Symfony\Bundle\FrameworkBundle\Console\Application- &gt;doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) !! #4 C:\Users\xsunt\PhpstormProjects\xsun\tv\4.0\bin\console(39): Symfony\Component\Console\Application-&gt;run(Object(Symfony\Component\Console\Inp ut\ArgvInput)) !! #5 {main} !! thrown in C:\Users\xsunt\PhpstormProjects\xsun\tv\4.0\src\Kernel.php on line 32 !! </code></pre></div>
0
<p dir="auto">In my humble opinion, atom &gt; sublime.</p> <p dir="auto">Though, in sublime a view only stays open if you make edits. Otherwise, it disappears. Simple UI, but this is immensely helpful keeping the tab bar uncluttered.</p> <p dir="auto">Thanks!</p>
<p dir="auto">Support sublime-like preview mode when opening files from the tree view, fuzzy finder, find and replace, etc.</p> <p dir="auto">The main issue being tracked is here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18326255" data-permission-text="Title is private" data-url="https://github.com/atom/tree-view/issues/3" data-hovercard-type="issue" data-hovercard-url="/atom/tree-view/issues/3/hovercard" href="https://github.com/atom/tree-view/issues/3">atom/tree-view#3</a></p>
1
<p dir="auto">by <strong><a href="mailto:[email protected]">[email protected]</a></strong>:</p> <pre class="notranslate">Similar to issue #6258, but not the same. What steps will reproduce the problem? Try to read a CSV file where the fields are unquoted and one of them begins in something that would need lazy quotes, e.g. Field1,Field2,"LazyQuotes" Field3,Field4,Field5 What is the expected output? ["Field1", "Field2", "\"LazyQuotes\" Field3", "Field4", "Field5"] Length 5 What do you see instead? ["Field1", "Field2", "LazyQuotes\" Field3,Field4,Field5"] Length 3 Which compiler are you using (5g, 6g, 8g, gccgo)? Whatever the default is from <a href="https://code.google.com/p/go/downloads/list" rel="nofollow">https://code.google.com/p/go/downloads/list</a> Which operating system are you using? Mac OS X 10.8 Which version are you using? (run 'go version') go version go1.1.2 darwin/amd64</pre>
<pre class="notranslate">What steps will reproduce the problem? 1. export GOARM=5 2. cd go/src;./all.bash 3. compilation went fine but test step failed and hang the console. 4. Looks like a memory issue. 5. How do I build without "testing" step ? What is the expected output? test completed What do you see instead? # Testing packages. ok cmd/api 0.256s ? cmd/cgo [no test files] ok cmd/fix 28.627s ok cmd/go 0.340s ? cmd/godoc [no test files] ok cmd/gofmt 1.066s ? cmd/vet [no test files] ? cmd/yacc [no test files] ok archive/tar 0.130s ok archive/zip 1.061s ok bufio 3.589s ok bytes 1.719s ok compress/bzip2 1.250s ok compress/flate 14.258s ok compress/gzip 0.328s ok compress/lzw 2.137s ok compress/zlib 26.907s ok container/heap 0.119s ok container/list 0.115s ok container/ring 0.376s ? crypto [no test files] ok crypto/aes 0.325s ok crypto/cipher 0.126s ok crypto/des 0.655s ok crypto/dsa 0.447s ok crypto/ecdsa 0.681s ok crypto/elliptic 0.297s ok crypto/hmac 0.142s ok crypto/md5 0.163s ok crypto/rand 0.534s ok crypto/rc4 0.113s ok crypto/rsa 6.847s ok crypto/sha1 0.164s ok crypto/sha256 0.178s ok crypto/sha512 0.202s ok crypto/subtle 0.277s ok crypto/tls 5.551s ok crypto/x509 30.485s ? crypto/x509/pkix [no test files] ok database/sql 0.322s ok database/sql/driver 0.113s ok debug/dwarf 0.281s ok debug/elf 0.306s ok debug/gosym 0.122s ok debug/macho 0.151s ok debug/pe 0.139s ok encoding/ascii85 0.168s ok encoding/asn1 0.163s ok encoding/base32 0.163s ok encoding/base64 0.163s ok encoding/binary 0.172s ok encoding/csv 0.164s throw: runtime: out of memory goroutine 25 [running]: encoding/gob.(*Decoder).readMessage(0x107b2820, 0x1000cf66, 0x1078f3f0) /usbpub/home/gobuild/go/src/pkg/encoding/gob/decoder.go:92 +0x70 encoding/gob.(*Decoder).recvMessage(0x107b2820, 0x2527c, 0x10757000) /usbpub/home/gobuild/go/src/pkg/encoding/gob/decoder.go:84 +0x130 encoding/gob.(*Decoder).decodeTypeSequence(0x107b2820, 0x107a1300, 0x160, 0x0) /usbpub/home/gobuild/go/src/pkg/encoding/gob/decoder.go:142 +0x68 encoding/gob.(*Decoder).DecodeValue(0x107b2820, 0x113028, 0x107a13a0, 0x160, 0x0, ...) /usbpub/home/gobuild/go/src/pkg/encoding/gob/decoder.go:206 +0x174 encoding/gob.(*Decoder).Decode(0x107b2820, 0x113020, 0x107a13a0, 0x107a13a0, 0x107afba0, ...) /usbpub/home/gobuild/go/src/pkg/encoding/gob/decoder.go:185 +0x27c encoding/gob.encFuzzDec(0x10799fb0, 0x112d60, 0x10799f88, 0x107273e0, 0x107331b0, ...) /usbpub/home/gobuild/go/src/pkg/encoding/gob/codec_test.go:1429 +0x358 encoding/gob.testFuzz(0x1079f140, 0x994c53f0, 0x126fc084, 0x64, 0x40047fa4, ...) /usbpub/home/gobuild/go/src/pkg/encoding/gob/codec_test.go:1468 +0x294 encoding/gob.TestFuzzRegressions(0x1079f140, 0xe) /usbpub/home/gobuild/go/src/pkg/encoding/gob/codec_test.go:1457 +0xd4 testing.tRunner(0x1079f140, 0x1ffb2c, 0x0) /usbpub/home/gobuild/go/src/pkg/testing/testing.go:273 +0xac created by testing.RunTests /usbpub/home/gobuild/go/src/pkg/testing/testing.go:349 +0x764 goroutine 1 [chan receive]: testing.RunTests(0x10c00, 0x1ffa30, 0x4a, 0x4a, 0x31501, ...) /usbpub/home/gobuild/go/src/pkg/testing/testing.go:350 +0x784 testing.Main(0x10c00, 0x1ffa30, 0x4a, 0x4a, 0x1fc5e0, ...) /usbpub/home/gobuild/go/src/pkg/testing/testing.go:285 +0x70 main.main() /tmp/go-build294647749/encoding/gob/_test/_testmain.go:193 +0x88 goroutine 2 [syscall]: created by runtime.main /usbpub/home/gobuild/go/src/pkg/runtime/proc.c:221 goroutine 3 [syscall]: created by addtimer /usbpub/home/gobuild/go/src/pkg/runtime/ztime_linux_arm.c:72 FAIL encoding/gob 0.389s ok encoding/hex 0.119s ok encoding/json 2.598s ok encoding/pem 0.196s ok encoding/xml 0.404s ok errors 0.117s ok exp/ebnf 0.121s ok exp/ebnflint 0.258s ok exp/gotype 10.777s ok exp/html 4.590s ok exp/html/atom 0.113s ok exp/inotify 1.154s ok exp/locale/collate 0.669s ok exp/locale/collate/build 0.190s ok exp/norm 26.455s ok exp/proxy 0.144s ok exp/types 4.242s ok exp/utf8string 0.121s ok expvar 0.193s ok flag 0.121s ok fmt 0.907s ok go/ast 0.164s ok go/build 6.339s ok go/doc 1.732s ok go/parser 1.066s ok go/printer 8.551s ok go/scanner 0.186s ok go/token 1.327s ? hash [no test files] ok hash/adler32 0.633s ok hash/crc32 0.221s ok hash/crc64 0.111s ok hash/fnv 0.114s ok html 0.122s ok html/template 1.119s ok image 1.830s ok image/color 0.203s ok image/draw 0.890s ? image/gif [no test files] ok image/jpeg 1.386s ok image/png 1.234s ok index/suffixarray 0.346s ok io 0.173s ok io/ioutil 0.121s ok log 0.174s ok log/syslog 0.353s ok math 0.991s ok math/big 5.878s ok math/cmplx 0.253s panic: test timed out goroutine 7 [running]: testing.alarm() /usbpub/home/gobuild/go/src/pkg/testing/testing.go:436 +0x5c created by time.goFunc /usbpub/home/gobuild/go/src/pkg/time/sleep.go:94 +0x5c goroutine 1 [chan receive]: testing.RunTests(0x10c00, 0x17a850, 0x6, 0x6, 0x31001, ...) /usbpub/home/gobuild/go/src/pkg/testing/testing.go:350 +0x784 testing.Main(0x10c00, 0x17a850, 0x6, 0x6, 0x17a790, ...) /usbpub/home/gobuild/go/src/pkg/testing/testing.go:285 +0x70 main.main() /tmp/go-build294647749/math/rand/_test/_testmain.go:63 +0x88 goroutine 2 [syscall]: created by runtime.main /usbpub/home/gobuild/go/src/pkg/runtime/proc.c:221 goroutine 3 [timer goroutine (idle)]: created by addtimer /usbpub/home/gobuild/go/src/pkg/runtime/ztime_linux_arm.c:72 goroutine 8 [runnable]: testing.tRunner(0x10632f40, 0x17a874, 0x0) /usbpub/home/gobuild/go/src/pkg/testing/testing.go:256 created by testing.RunTests /usbpub/home/gobuild/go/src/pkg/testing/testing.go:349 +0x764 FAIL math/rand 130.702s ok mime 0.130s ok mime/multipart 1.993s Which compiler are you using (5g, 6g, 8g, gccgo)? gobuild@raspberrypi:~/go/bin$ gcc -v Using built-in specs. Target: arm-linux-gnueabi Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --disable-sjlj-exceptions --enable-checking=release --build=arm-linux-gnueabi --host=arm-linux-gnueabi --target=arm-linux-gnueabi Thread model: posix gcc version 4.4.5 (Debian 4.4.5-8) gobuild@raspberrypi:~/go/bin$ Which operating system are you using? gobuild@raspberrypi:~/go/bin$ uname -a Linux raspberrypi 3.1.9+ #90 Wed Apr 18 18:23:05 BST 2012 armv6l GNU/Linux gobuild@raspberrypi:~/go/bin$ Which version are you using? (run 'go version') gobuild@raspberrypi:~/go/bin$ ./go version go version weekly.2012-03-27 +7021c8a8a25a gobuild@raspberrypi:~/go/bin$ Please provide any additional information below. gobuild@raspberrypi:~/go/bin$ hg id 7021c8a8a25a tip gobuild@raspberrypi:~/go/bin$ gobuild@raspberrypi:~/go/bin$ head -1 /proc/meminfo MemTotal: 190836 kB gobuild@raspberrypi:~/go/bin$</pre>
0
<p dir="auto">We've built jaxlib 0.3.7 on conda-forge with cuda: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1234482537" data-permission-text="Title is private" data-url="https://github.com/conda-forge/jaxlib-feedstock/issues/97" data-hovercard-type="pull_request" data-hovercard-url="/conda-forge/jaxlib-feedstock/pull/97/hovercard" href="https://github.com/conda-forge/jaxlib-feedstock/pull/97">conda-forge/jaxlib-feedstock#97</a></p> <p dir="auto">I am opening this issue for viz but also for testing/confirmation all is good. Could someone from the team here have a look with us? Easy things to check, we get something like ~11000 actions/cycles of bazel compilation (compared to ~7500 for non-cuda) and the size of our artifact is similar to that of the official jaxlib ~200 mb. I tested it locally and it seems to put the arrays on the GPU by default. So it is working, but more confirmation is always good!</p> <p dir="auto"><em>Note</em> that we build for 10.2, 11.0, 11.1, and 11.2 on conda-forge by default, though we we can adjust this if requested, and do <em>note</em> the forward compatibility of 11.2, it is really "11.2+" meaning that it compiles for 11.2 and above (if someone installs that the 11.2 compiled version, it will in fact install cudatoolkit 11.6 with it and the latest cudnn)</p> <p dir="auto">People interested in checking this out, should head to the:</p> <ul dir="auto"> <li>PR: link above</li> <li>logs: <a href="https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=506049" rel="nofollow">https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=506049</a></li> <li>artifacts: <a href="https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=506049&amp;view=artifacts&amp;pathAsName=false&amp;type=publishedArtifacts" rel="nofollow">https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=506049&amp;view=artifacts&amp;pathAsName=false&amp;type=publishedArtifacts</a></li> </ul> <p dir="auto">You will see we still have a few problems (lost connections + timeouts mainly) due to the strict 6-hour time limit (it is tricky because we are very close to the limit, but hopefully we will manage to get all of them by rerunning the CI a few times)</p> <p dir="auto">Tagging <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/hawkinsp/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/hawkinsp">@hawkinsp</a> again who's been involved in issues related to the builds before + <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jakevdp/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jakevdp">@jakevdp</a> who's been very helpful and engaging.</p> <hr> <p dir="auto">Please:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check for duplicate requests.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Describe your goal, and if possible provide a code snippet with a motivating example.</li> </ul>
<ul dir="auto"> <li> <p dir="auto">Duplicate issues: <a href="https://github.com/google/jax/issues/788" data-hovercard-type="issue" data-hovercard-url="/google/jax/issues/788/hovercard">#788</a> and <a href="https://github.com/google/jax/issues/4528" data-hovercard-type="issue" data-hovercard-url="/google/jax/issues/4528/hovercard">#4528</a> are not suitable for this case.</p> </li> <li> <p dir="auto">How to reproduce the bug:<br> [1] Just run <a href="https://github.com/google-research/google-research/blob/master/muNet/mu2Net.ipynb">mu2Net</a> on 8gpus A100, use BENCHMARK = 'ViT large / Chars benchmark'<br> [2] OOM error will occur when train_step function compiled by jax.jit is executed.<br> [3] The A100 have sufficent 80GiB memory.</p> </li> <li> <p dir="auto">Core code:</p> </li> </ul> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@partial(jax.jit, static_argnames=['model', 'optimizer'], donate_argnums=[0, 2]) def train_step(params, fixed_params, opt_state, images, labels, model, optimizer): def loss_fn(params, fixed_params, images, labels): logits = model.apply({'params': format_params(params, fixed_params)}, images, train=USE_DROPOUT) labels = jax.nn.one_hot(labels, logits.shape[-1]) return -jnp.mean(jnp.sum(labels * nn.log_softmax(logits), axis=-1)) grads = jax.grad(loss_fn)(params, fixed_params, images, labels) updates, opt_state = optimizer.update(grads, opt_state, params=params) params = optax.apply_updates(params, updates) return params, opt_state def train_loop(paths, ds_train, ds_validation, devices, exp_config): global LOOP_START global TRAIN_PARAMS_TRANSFER global TRAIN timing = {'start_time': time.time(), 'start_time_loop': LOOP_START} task = paths[0].task # The following values should be shared by all paths in this generation batch. for path in paths: assert task == path.task assert paths[0].hparams['ds_image_size'] == path.hparams['ds_image_size'] gc.collect() # Compile. compile_train_batches_arr = jax.device_put_replicated( get_sample_batch( paths[0].hparams['ds_image_size'], task.train_batch_size), devices) compile_eval_batches_arr = jax.device_put_replicated( get_sample_batch( paths[0].hparams['ds_image_size'], task.validation_batch_size), devices) for p_id, path in enumerate(paths): if VERBOSE: print('Parent') print(prp(path.parent)) print(prp(path)) path.device_id = p_id % len(devices) path.device = devices[path.device_id] print(&quot;path:&quot;, p_id, &quot;device:&quot;, path.device) path.optimizer = path.get_optimizer() path.optimizer_init_fn = jax.jit(path.optimizer.init, device=path.device) path.best_params_local = None path.best_opt_state_local = None path.best_quality = None path.best_score = path.parent.score() if path.task is path.parent.task else -np.inf path.evals = [] # Launch parallel compilation of eval and train step functions. params_local = path.get_trainable_params() check_is_local(params_local) path.compile_params_device = jax.device_put(params_local, path.device) path.compile_fixed_params_device = jax.device_put( path.get_fixed_params(), path.device) path.compile_train = Thread( target=train_step, args=(path.compile_params_device, path.compile_fixed_params_device, path.optimizer_init_fn(params_local), compile_train_batches_arr['image'][path.device_id], compile_train_batches_arr['label'][path.device_id], path.model, path.optimizer)) path.compile_eval = Thread( target=eval_step, args=(format_params( path.compile_params_device, path.compile_fixed_params_device), compile_eval_batches_arr['image'][path.device_id], compile_eval_batches_arr['label'][path.device_id], path.model)) path.compile_eval.start() for path in paths: path.compile_eval.join() del path.compile_eval timing['end_compile_eval'] = time.time() path.compile_train.start() del compile_eval_batches_arr for path in paths: path.compile_train.join() del path.compile_train del path.compile_params_device del path.compile_fixed_params_device timing['end_compile'] = time.time() del compile_train_batches_arr gc.collect() # Parameter transfer. transfer_start = time.time() for path in paths: path.params_device = jax.device_put( path.get_trainable_params(), path.device) path.fixed_params_device = jax.device_put( path.get_fixed_params(), path.device) path.opt_state_device = path.optimizer_init_fn(path.params_device) # Set opt state. for c in path.components: if c.is_trainable(): assert c.name in path.opt_state_device[1][0].trace.keys() if c.opt_state is not None: path.opt_state_device = ( path.opt_state_device[0], (optax.TraceState( trace=path.opt_state_device[1][0].trace.copy( {c.name: jax.device_put(c.opt_state, path.device)})), path.opt_state_device[1][1] ) ) check_is_on_device(path.opt_state_device, path.device) TRAIN_PARAMS_TRANSFER += time.time() - transfer_start iter_ds_validation = iter(ds_validation) # TRAIN for t_step, train_batch in zip( range(exp_config.num_validations_per_path_training * task.num_train_batches_between_validations), ds_train, ): replicated_start = time.time() train_batch_arr = jax.device_put_replicated(train_batch, devices) TRAIN_PARAMS_TRANSFER += time.time() - replicated_start for p_id, path in enumerate(paths): if t_step == 0: timing['end_prep'] = time.time() t_step_0_time = time.time() train_step_start = time.time() path.params_device, path.opt_state_device = train_step( path.params_device, path.fixed_params_device, path.opt_state_device, train_batch_arr['image'][path.device_id], train_batch_arr['label'][path.device_id], path.model, path.optimizer) TRAIN += time.time() - train_step_start if t_step == 0 and time.time() - t_step_0_time &gt; 1: print(f'WARNING: First train step took: {time.time()-t_step_0_time:.2f} s') del train_batch, train_batch_arr # EVAL # ..."><pre class="notranslate"><span class="pl-en">@<span class="pl-en">partial</span>(<span class="pl-s1">jax</span>.<span class="pl-s1">jit</span>, <span class="pl-s1">static_argnames</span><span class="pl-c1">=</span>[<span class="pl-s">'model'</span>, <span class="pl-s">'optimizer'</span>], <span class="pl-s1">donate_argnums</span><span class="pl-c1">=</span>[<span class="pl-c1">0</span>, <span class="pl-c1">2</span>])</span> <span class="pl-k">def</span> <span class="pl-en">train_step</span>(<span class="pl-s1">params</span>, <span class="pl-s1">fixed_params</span>, <span class="pl-s1">opt_state</span>, <span class="pl-s1">images</span>, <span class="pl-s1">labels</span>, <span class="pl-s1">model</span>, <span class="pl-s1">optimizer</span>): <span class="pl-k">def</span> <span class="pl-en">loss_fn</span>(<span class="pl-s1">params</span>, <span class="pl-s1">fixed_params</span>, <span class="pl-s1">images</span>, <span class="pl-s1">labels</span>): <span class="pl-s1">logits</span> <span class="pl-c1">=</span> <span class="pl-s1">model</span>.<span class="pl-en">apply</span>({<span class="pl-s">'params'</span>: <span class="pl-en">format_params</span>(<span class="pl-s1">params</span>, <span class="pl-s1">fixed_params</span>)}, <span class="pl-s1">images</span>, <span class="pl-s1">train</span><span class="pl-c1">=</span><span class="pl-v">USE_DROPOUT</span>) <span class="pl-s1">labels</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-s1">nn</span>.<span class="pl-en">one_hot</span>(<span class="pl-s1">labels</span>, <span class="pl-s1">logits</span>.<span class="pl-s1">shape</span>[<span class="pl-c1">-</span><span class="pl-c1">1</span>]) <span class="pl-k">return</span> <span class="pl-c1">-</span><span class="pl-s1">jnp</span>.<span class="pl-en">mean</span>(<span class="pl-s1">jnp</span>.<span class="pl-en">sum</span>(<span class="pl-s1">labels</span> <span class="pl-c1">*</span> <span class="pl-s1">nn</span>.<span class="pl-en">log_softmax</span>(<span class="pl-s1">logits</span>), <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">-</span><span class="pl-c1">1</span>)) <span class="pl-s1">grads</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-en">grad</span>(<span class="pl-s1">loss_fn</span>)(<span class="pl-s1">params</span>, <span class="pl-s1">fixed_params</span>, <span class="pl-s1">images</span>, <span class="pl-s1">labels</span>) <span class="pl-s1">updates</span>, <span class="pl-s1">opt_state</span> <span class="pl-c1">=</span> <span class="pl-s1">optimizer</span>.<span class="pl-en">update</span>(<span class="pl-s1">grads</span>, <span class="pl-s1">opt_state</span>, <span class="pl-s1">params</span><span class="pl-c1">=</span><span class="pl-s1">params</span>) <span class="pl-s1">params</span> <span class="pl-c1">=</span> <span class="pl-s1">optax</span>.<span class="pl-en">apply_updates</span>(<span class="pl-s1">params</span>, <span class="pl-s1">updates</span>) <span class="pl-k">return</span> <span class="pl-s1">params</span>, <span class="pl-s1">opt_state</span> <span class="pl-k">def</span> <span class="pl-en">train_loop</span>(<span class="pl-s1">paths</span>, <span class="pl-s1">ds_train</span>, <span class="pl-s1">ds_validation</span>, <span class="pl-s1">devices</span>, <span class="pl-s1">exp_config</span>): <span class="pl-k">global</span> <span class="pl-v">LOOP_START</span> <span class="pl-k">global</span> <span class="pl-v">TRAIN_PARAMS_TRANSFER</span> <span class="pl-k">global</span> <span class="pl-v">TRAIN</span> <span class="pl-s1">timing</span> <span class="pl-c1">=</span> {<span class="pl-s">'start_time'</span>: <span class="pl-s1">time</span>.<span class="pl-en">time</span>(), <span class="pl-s">'start_time_loop'</span>: <span class="pl-v">LOOP_START</span>} <span class="pl-s1">task</span> <span class="pl-c1">=</span> <span class="pl-s1">paths</span>[<span class="pl-c1">0</span>].<span class="pl-s1">task</span> <span class="pl-c"># The following values should be shared by all paths in this generation batch.</span> <span class="pl-k">for</span> <span class="pl-s1">path</span> <span class="pl-c1">in</span> <span class="pl-s1">paths</span>: <span class="pl-k">assert</span> <span class="pl-s1">task</span> <span class="pl-c1">==</span> <span class="pl-s1">path</span>.<span class="pl-s1">task</span> <span class="pl-k">assert</span> <span class="pl-s1">paths</span>[<span class="pl-c1">0</span>].<span class="pl-s1">hparams</span>[<span class="pl-s">'ds_image_size'</span>] <span class="pl-c1">==</span> <span class="pl-s1">path</span>.<span class="pl-s1">hparams</span>[<span class="pl-s">'ds_image_size'</span>] <span class="pl-s1">gc</span>.<span class="pl-en">collect</span>() <span class="pl-c"># Compile.</span> <span class="pl-s1">compile_train_batches_arr</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-en">device_put_replicated</span>( <span class="pl-en">get_sample_batch</span>( <span class="pl-s1">paths</span>[<span class="pl-c1">0</span>].<span class="pl-s1">hparams</span>[<span class="pl-s">'ds_image_size'</span>], <span class="pl-s1">task</span>.<span class="pl-s1">train_batch_size</span>), <span class="pl-s1">devices</span>) <span class="pl-s1">compile_eval_batches_arr</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-en">device_put_replicated</span>( <span class="pl-en">get_sample_batch</span>( <span class="pl-s1">paths</span>[<span class="pl-c1">0</span>].<span class="pl-s1">hparams</span>[<span class="pl-s">'ds_image_size'</span>], <span class="pl-s1">task</span>.<span class="pl-s1">validation_batch_size</span>), <span class="pl-s1">devices</span>) <span class="pl-k">for</span> <span class="pl-s1">p_id</span>, <span class="pl-s1">path</span> <span class="pl-c1">in</span> <span class="pl-en">enumerate</span>(<span class="pl-s1">paths</span>): <span class="pl-k">if</span> <span class="pl-v">VERBOSE</span>: <span class="pl-en">print</span>(<span class="pl-s">'Parent'</span>) <span class="pl-en">print</span>(<span class="pl-en">prp</span>(<span class="pl-s1">path</span>.<span class="pl-s1">parent</span>)) <span class="pl-en">print</span>(<span class="pl-en">prp</span>(<span class="pl-s1">path</span>)) <span class="pl-s1">path</span>.<span class="pl-s1">device_id</span> <span class="pl-c1">=</span> <span class="pl-s1">p_id</span> <span class="pl-c1">%</span> <span class="pl-en">len</span>(<span class="pl-s1">devices</span>) <span class="pl-s1">path</span>.<span class="pl-s1">device</span> <span class="pl-c1">=</span> <span class="pl-s1">devices</span>[<span class="pl-s1">path</span>.<span class="pl-s1">device_id</span>] <span class="pl-en">print</span>(<span class="pl-s">"path:"</span>, <span class="pl-s1">p_id</span>, <span class="pl-s">"device:"</span>, <span class="pl-s1">path</span>.<span class="pl-s1">device</span>) <span class="pl-s1">path</span>.<span class="pl-s1">optimizer</span> <span class="pl-c1">=</span> <span class="pl-s1">path</span>.<span class="pl-en">get_optimizer</span>() <span class="pl-s1">path</span>.<span class="pl-s1">optimizer_init_fn</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-en">jit</span>(<span class="pl-s1">path</span>.<span class="pl-s1">optimizer</span>.<span class="pl-s1">init</span>, <span class="pl-s1">device</span><span class="pl-c1">=</span><span class="pl-s1">path</span>.<span class="pl-s1">device</span>) <span class="pl-s1">path</span>.<span class="pl-s1">best_params_local</span> <span class="pl-c1">=</span> <span class="pl-c1">None</span> <span class="pl-s1">path</span>.<span class="pl-s1">best_opt_state_local</span> <span class="pl-c1">=</span> <span class="pl-c1">None</span> <span class="pl-s1">path</span>.<span class="pl-s1">best_quality</span> <span class="pl-c1">=</span> <span class="pl-c1">None</span> <span class="pl-s1">path</span>.<span class="pl-s1">best_score</span> <span class="pl-c1">=</span> <span class="pl-s1">path</span>.<span class="pl-s1">parent</span>.<span class="pl-en">score</span>() <span class="pl-k">if</span> <span class="pl-s1">path</span>.<span class="pl-s1">task</span> <span class="pl-c1">is</span> <span class="pl-s1">path</span>.<span class="pl-s1">parent</span>.<span class="pl-s1">task</span> <span class="pl-k">else</span> <span class="pl-c1">-</span><span class="pl-s1">np</span>.<span class="pl-s1">inf</span> <span class="pl-s1">path</span>.<span class="pl-s1">evals</span> <span class="pl-c1">=</span> [] <span class="pl-c"># Launch parallel compilation of eval and train step functions.</span> <span class="pl-s1">params_local</span> <span class="pl-c1">=</span> <span class="pl-s1">path</span>.<span class="pl-en">get_trainable_params</span>() <span class="pl-en">check_is_local</span>(<span class="pl-s1">params_local</span>) <span class="pl-s1">path</span>.<span class="pl-s1">compile_params_device</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-en">device_put</span>(<span class="pl-s1">params_local</span>, <span class="pl-s1">path</span>.<span class="pl-s1">device</span>) <span class="pl-s1">path</span>.<span class="pl-s1">compile_fixed_params_device</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-en">device_put</span>( <span class="pl-s1">path</span>.<span class="pl-en">get_fixed_params</span>(), <span class="pl-s1">path</span>.<span class="pl-s1">device</span>) <span class="pl-s1">path</span>.<span class="pl-s1">compile_train</span> <span class="pl-c1">=</span> <span class="pl-v">Thread</span>( <span class="pl-s1">target</span><span class="pl-c1">=</span><span class="pl-s1">train_step</span>, <span class="pl-s1">args</span><span class="pl-c1">=</span>(<span class="pl-s1">path</span>.<span class="pl-s1">compile_params_device</span>, <span class="pl-s1">path</span>.<span class="pl-s1">compile_fixed_params_device</span>, <span class="pl-s1">path</span>.<span class="pl-en">optimizer_init_fn</span>(<span class="pl-s1">params_local</span>), <span class="pl-s1">compile_train_batches_arr</span>[<span class="pl-s">'image'</span>][<span class="pl-s1">path</span>.<span class="pl-s1">device_id</span>], <span class="pl-s1">compile_train_batches_arr</span>[<span class="pl-s">'label'</span>][<span class="pl-s1">path</span>.<span class="pl-s1">device_id</span>], <span class="pl-s1">path</span>.<span class="pl-s1">model</span>, <span class="pl-s1">path</span>.<span class="pl-s1">optimizer</span>)) <span class="pl-s1">path</span>.<span class="pl-s1">compile_eval</span> <span class="pl-c1">=</span> <span class="pl-v">Thread</span>( <span class="pl-s1">target</span><span class="pl-c1">=</span><span class="pl-s1">eval_step</span>, <span class="pl-s1">args</span><span class="pl-c1">=</span>(<span class="pl-en">format_params</span>( <span class="pl-s1">path</span>.<span class="pl-s1">compile_params_device</span>, <span class="pl-s1">path</span>.<span class="pl-s1">compile_fixed_params_device</span>), <span class="pl-s1">compile_eval_batches_arr</span>[<span class="pl-s">'image'</span>][<span class="pl-s1">path</span>.<span class="pl-s1">device_id</span>], <span class="pl-s1">compile_eval_batches_arr</span>[<span class="pl-s">'label'</span>][<span class="pl-s1">path</span>.<span class="pl-s1">device_id</span>], <span class="pl-s1">path</span>.<span class="pl-s1">model</span>)) <span class="pl-s1">path</span>.<span class="pl-s1">compile_eval</span>.<span class="pl-en">start</span>() <span class="pl-k">for</span> <span class="pl-s1">path</span> <span class="pl-c1">in</span> <span class="pl-s1">paths</span>: <span class="pl-s1">path</span>.<span class="pl-s1">compile_eval</span>.<span class="pl-en">join</span>() <span class="pl-k">del</span> <span class="pl-s1">path</span>.<span class="pl-s1">compile_eval</span> <span class="pl-s1">timing</span>[<span class="pl-s">'end_compile_eval'</span>] <span class="pl-c1">=</span> <span class="pl-s1">time</span>.<span class="pl-en">time</span>() <span class="pl-s1">path</span>.<span class="pl-s1">compile_train</span>.<span class="pl-en">start</span>() <span class="pl-k">del</span> <span class="pl-s1">compile_eval_batches_arr</span> <span class="pl-k">for</span> <span class="pl-s1">path</span> <span class="pl-c1">in</span> <span class="pl-s1">paths</span>: <span class="pl-s1">path</span>.<span class="pl-s1">compile_train</span>.<span class="pl-en">join</span>() <span class="pl-k">del</span> <span class="pl-s1">path</span>.<span class="pl-s1">compile_train</span> <span class="pl-k">del</span> <span class="pl-s1">path</span>.<span class="pl-s1">compile_params_device</span> <span class="pl-k">del</span> <span class="pl-s1">path</span>.<span class="pl-s1">compile_fixed_params_device</span> <span class="pl-s1">timing</span>[<span class="pl-s">'end_compile'</span>] <span class="pl-c1">=</span> <span class="pl-s1">time</span>.<span class="pl-en">time</span>() <span class="pl-k">del</span> <span class="pl-s1">compile_train_batches_arr</span> <span class="pl-s1">gc</span>.<span class="pl-en">collect</span>() <span class="pl-c"># Parameter transfer.</span> <span class="pl-s1">transfer_start</span> <span class="pl-c1">=</span> <span class="pl-s1">time</span>.<span class="pl-en">time</span>() <span class="pl-k">for</span> <span class="pl-s1">path</span> <span class="pl-c1">in</span> <span class="pl-s1">paths</span>: <span class="pl-s1">path</span>.<span class="pl-s1">params_device</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-en">device_put</span>( <span class="pl-s1">path</span>.<span class="pl-en">get_trainable_params</span>(), <span class="pl-s1">path</span>.<span class="pl-s1">device</span>) <span class="pl-s1">path</span>.<span class="pl-s1">fixed_params_device</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-en">device_put</span>( <span class="pl-s1">path</span>.<span class="pl-en">get_fixed_params</span>(), <span class="pl-s1">path</span>.<span class="pl-s1">device</span>) <span class="pl-s1">path</span>.<span class="pl-s1">opt_state_device</span> <span class="pl-c1">=</span> <span class="pl-s1">path</span>.<span class="pl-en">optimizer_init_fn</span>(<span class="pl-s1">path</span>.<span class="pl-s1">params_device</span>) <span class="pl-c"># Set opt state.</span> <span class="pl-k">for</span> <span class="pl-s1">c</span> <span class="pl-c1">in</span> <span class="pl-s1">path</span>.<span class="pl-s1">components</span>: <span class="pl-k">if</span> <span class="pl-s1">c</span>.<span class="pl-en">is_trainable</span>(): <span class="pl-k">assert</span> <span class="pl-s1">c</span>.<span class="pl-s1">name</span> <span class="pl-c1">in</span> <span class="pl-s1">path</span>.<span class="pl-s1">opt_state_device</span>[<span class="pl-c1">1</span>][<span class="pl-c1">0</span>].<span class="pl-s1">trace</span>.<span class="pl-en">keys</span>() <span class="pl-k">if</span> <span class="pl-s1">c</span>.<span class="pl-s1">opt_state</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>: <span class="pl-s1">path</span>.<span class="pl-s1">opt_state_device</span> <span class="pl-c1">=</span> ( <span class="pl-s1">path</span>.<span class="pl-s1">opt_state_device</span>[<span class="pl-c1">0</span>], (<span class="pl-s1">optax</span>.<span class="pl-v">TraceState</span>( <span class="pl-s1">trace</span><span class="pl-c1">=</span><span class="pl-s1">path</span>.<span class="pl-s1">opt_state_device</span>[<span class="pl-c1">1</span>][<span class="pl-c1">0</span>].<span class="pl-s1">trace</span>.<span class="pl-en">copy</span>( {<span class="pl-s1">c</span>.<span class="pl-s1">name</span>: <span class="pl-s1">jax</span>.<span class="pl-en">device_put</span>(<span class="pl-s1">c</span>.<span class="pl-s1">opt_state</span>, <span class="pl-s1">path</span>.<span class="pl-s1">device</span>)})), <span class="pl-s1">path</span>.<span class="pl-s1">opt_state_device</span>[<span class="pl-c1">1</span>][<span class="pl-c1">1</span>] ) ) <span class="pl-en">check_is_on_device</span>(<span class="pl-s1">path</span>.<span class="pl-s1">opt_state_device</span>, <span class="pl-s1">path</span>.<span class="pl-s1">device</span>) <span class="pl-v">TRAIN_PARAMS_TRANSFER</span> <span class="pl-c1">+=</span> <span class="pl-s1">time</span>.<span class="pl-en">time</span>() <span class="pl-c1">-</span> <span class="pl-s1">transfer_start</span> <span class="pl-s1">iter_ds_validation</span> <span class="pl-c1">=</span> <span class="pl-en">iter</span>(<span class="pl-s1">ds_validation</span>) <span class="pl-c"># TRAIN</span> <span class="pl-k">for</span> <span class="pl-s1">t_step</span>, <span class="pl-s1">train_batch</span> <span class="pl-c1">in</span> <span class="pl-en">zip</span>( <span class="pl-en">range</span>(<span class="pl-s1">exp_config</span>.<span class="pl-s1">num_validations_per_path_training</span> <span class="pl-c1">*</span> <span class="pl-s1">task</span>.<span class="pl-s1">num_train_batches_between_validations</span>), <span class="pl-s1">ds_train</span>, ): <span class="pl-s1">replicated_start</span> <span class="pl-c1">=</span> <span class="pl-s1">time</span>.<span class="pl-en">time</span>() <span class="pl-s1">train_batch_arr</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-en">device_put_replicated</span>(<span class="pl-s1">train_batch</span>, <span class="pl-s1">devices</span>) <span class="pl-v">TRAIN_PARAMS_TRANSFER</span> <span class="pl-c1">+=</span> <span class="pl-s1">time</span>.<span class="pl-en">time</span>() <span class="pl-c1">-</span> <span class="pl-s1">replicated_start</span> <span class="pl-k">for</span> <span class="pl-s1">p_id</span>, <span class="pl-s1">path</span> <span class="pl-c1">in</span> <span class="pl-en">enumerate</span>(<span class="pl-s1">paths</span>): <span class="pl-k">if</span> <span class="pl-s1">t_step</span> <span class="pl-c1">==</span> <span class="pl-c1">0</span>: <span class="pl-s1">timing</span>[<span class="pl-s">'end_prep'</span>] <span class="pl-c1">=</span> <span class="pl-s1">time</span>.<span class="pl-en">time</span>() <span class="pl-s1">t_step_0_time</span> <span class="pl-c1">=</span> <span class="pl-s1">time</span>.<span class="pl-en">time</span>() <span class="pl-s1">train_step_start</span> <span class="pl-c1">=</span> <span class="pl-s1">time</span>.<span class="pl-en">time</span>() <span class="pl-s1">path</span>.<span class="pl-s1">params_device</span>, <span class="pl-s1">path</span>.<span class="pl-s1">opt_state_device</span> <span class="pl-c1">=</span> <span class="pl-en">train_step</span>( <span class="pl-s1">path</span>.<span class="pl-s1">params_device</span>, <span class="pl-s1">path</span>.<span class="pl-s1">fixed_params_device</span>, <span class="pl-s1">path</span>.<span class="pl-s1">opt_state_device</span>, <span class="pl-s1">train_batch_arr</span>[<span class="pl-s">'image'</span>][<span class="pl-s1">path</span>.<span class="pl-s1">device_id</span>], <span class="pl-s1">train_batch_arr</span>[<span class="pl-s">'label'</span>][<span class="pl-s1">path</span>.<span class="pl-s1">device_id</span>], <span class="pl-s1">path</span>.<span class="pl-s1">model</span>, <span class="pl-s1">path</span>.<span class="pl-s1">optimizer</span>) <span class="pl-v">TRAIN</span> <span class="pl-c1">+=</span> <span class="pl-s1">time</span>.<span class="pl-en">time</span>() <span class="pl-c1">-</span> <span class="pl-s1">train_step_start</span> <span class="pl-k">if</span> <span class="pl-s1">t_step</span> <span class="pl-c1">==</span> <span class="pl-c1">0</span> <span class="pl-c1">and</span> <span class="pl-s1">time</span>.<span class="pl-en">time</span>() <span class="pl-c1">-</span> <span class="pl-s1">t_step_0_time</span> <span class="pl-c1">&gt;</span> <span class="pl-c1">1</span>: <span class="pl-en">print</span>(<span class="pl-s">f'WARNING: First train step took: <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">time</span>.<span class="pl-en">time</span>()<span class="pl-c1">-</span><span class="pl-s1">t_step_0_time</span>:.2f<span class="pl-kos">}</span></span> s'</span>) <span class="pl-k">del</span> <span class="pl-s1">train_batch</span>, <span class="pl-s1">train_batch_arr</span> <span class="pl-c"># EVAL</span> <span class="pl-c"># ...</span></pre></div> <ul dir="auto"> <li>Full error messages/tracebacks:</li> </ul> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Exception in thread Thread-14: Traceback (most recent call last): File &quot;/mnt/lustre/liujun1/.conda/envs/muNet/lib/python3.7/threading.py&quot;, line 890, in _bootstrap self._bootstrap_inner() File &quot;/mnt/lustre/liujun1/.conda/envs/muNet/lib/python3.7/threading.py&quot;, line 926, in _bootstrap_inner self.run() File &quot;/mnt/lustre/liujun1/.conda/envs/muNet/lib/python3.7/threading.py&quot;, line 870, in run self._target(*self._args, **self._kwargs) File &quot;/mnt/lustre/liujun1/.conda/envs/muNet/lib/python3.7/site-packages/jax/_src/traceback_util.py&quot;, line 162, in reraise_with_filtered_traceback return fun(*args, **kwargs) File &quot;/mnt/lustre/liujun1/.conda/envs/muNet/lib/python3.7/site-packages/jax/_src/api.py&quot;, line 476, in cache_miss donated_invars=donated_invars, inline=inline, keep_unused=keep_unused) File &quot;/mnt/lustre/liujun1/.conda/envs/muNet/lib/python3.7/site-packages/jax/core.py&quot;, line 1765, in bind return call_bind(self, fun, *args, **params) File &quot;/mnt/lustre/liujun1/.conda/envs/muNet/lib/python3.7/site-packages/jax/core.py&quot;, line 1781, in call_bind outs = top_trace.process_call(primitive, fun_, tracers, params) File &quot;/mnt/lustre/liujun1/.conda/envs/muNet/lib/python3.7/site-packages/jax/core.py&quot;, line 678, in process_call return primitive.impl(f, *tracers, **params) File &quot;/mnt/lustre/liujun1/.conda/envs/muNet/lib/python3.7/site-packages/jax/_src/dispatch.py&quot;, line 185, in _xla_call_impl return compiled_fun(*args) File &quot;/mnt/lustre/liujun1/.conda/envs/muNet/lib/python3.7/site-packages/jax/_src/dispatch.py&quot;, line 615, in _execute_compiled out_bufs_flat = compiled.execute(input_bufs_flat) jax._src.traceback_util.UnfilteredStackTrace: jaxlib.xla_extension.XlaRuntimeError: RESOURCE_EXHAUSTED: Out of memory while trying to allocate 122875791936 bytes. BufferAssignment OOM Debugging. BufferAssignment stats: parameter allocation: 1.43GiB constant allocation: 8B maybe_live_out allocation: 581.19MiB preallocated temp allocation: 114.44GiB preallocated temp fragmentation: 146.50MiB (0.13%) total allocation: 115.86GiB total fragmentation: 146.53MiB (0.12%) Peak buffers: Buffer 1: Size: 1.27GiB XLA Label: custom-call Shape: f32[64,16,577,577] ========================== Buffer 2: Size: 1.27GiB XLA Label: custom-call Shape: f32[64,16,577,577] ========================== Buffer 3: Size: 1.27GiB XLA Label: custom-call Shape: f32[64,16,577,577] ========================== Buffer 4: Size: 1.27GiB XLA Label: custom-call Shape: f32[64,16,577,577] ========================== Buffer 5: Size: 1.27GiB XLA Label: custom-call Shape: f32[64,16,577,577] ========================== Buffer 6: Size: 1.27GiB XLA Label: custom-call Shape: f32[64,16,577,577] ========================== "><pre class="notranslate">Exception <span class="pl-k">in</span> thread Thread-14: Traceback (most recent call last): File <span class="pl-s"><span class="pl-pds">"</span>/mnt/lustre/liujun1/.conda/envs/muNet/lib/python3.7/threading.py<span class="pl-pds">"</span></span>, line 890, <span class="pl-k">in</span> _bootstrap <span class="pl-en">self._bootstrap_inner</span>() File <span class="pl-s"><span class="pl-pds">"</span>/mnt/lustre/liujun1/.conda/envs/muNet/lib/python3.7/threading.py<span class="pl-pds">"</span></span>, line 926, <span class="pl-k">in</span> _bootstrap_inner <span class="pl-en">self.run</span>() File <span class="pl-s"><span class="pl-pds">"</span>/mnt/lustre/liujun1/.conda/envs/muNet/lib/python3.7/threading.py<span class="pl-pds">"</span></span>, line 870, <span class="pl-k">in</span> run self._target(<span class="pl-k">*</span>self._args, <span class="pl-k">**</span>self._kwargs) File <span class="pl-s"><span class="pl-pds">"</span>/mnt/lustre/liujun1/.conda/envs/muNet/lib/python3.7/site-packages/jax/_src/traceback_util.py<span class="pl-pds">"</span></span>, line 162, <span class="pl-k">in</span> reraise_with_filtered_traceback <span class="pl-k">return</span> fun(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs) File <span class="pl-s"><span class="pl-pds">"</span>/mnt/lustre/liujun1/.conda/envs/muNet/lib/python3.7/site-packages/jax/_src/api.py<span class="pl-pds">"</span></span>, line 476, <span class="pl-k">in</span> cache_miss donated_invars=donated_invars, inline=inline, keep_unused=keep_unused) File <span class="pl-s"><span class="pl-pds">"</span>/mnt/lustre/liujun1/.conda/envs/muNet/lib/python3.7/site-packages/jax/core.py<span class="pl-pds">"</span></span>, line 1765, <span class="pl-k">in</span> <span class="pl-c1">bind</span> <span class="pl-k">return</span> call_bind(self, fun, <span class="pl-k">*</span>args, <span class="pl-k">**</span>params) File <span class="pl-s"><span class="pl-pds">"</span>/mnt/lustre/liujun1/.conda/envs/muNet/lib/python3.7/site-packages/jax/core.py<span class="pl-pds">"</span></span>, line 1781, <span class="pl-k">in</span> call_bind outs = top_trace.process_call(primitive, fun_, tracers, params) File <span class="pl-s"><span class="pl-pds">"</span>/mnt/lustre/liujun1/.conda/envs/muNet/lib/python3.7/site-packages/jax/core.py<span class="pl-pds">"</span></span>, line 678, <span class="pl-k">in</span> process_call <span class="pl-k">return</span> primitive.impl(f, <span class="pl-k">*</span>tracers, <span class="pl-k">**</span>params) File <span class="pl-s"><span class="pl-pds">"</span>/mnt/lustre/liujun1/.conda/envs/muNet/lib/python3.7/site-packages/jax/_src/dispatch.py<span class="pl-pds">"</span></span>, line 185, <span class="pl-k">in</span> _xla_call_impl <span class="pl-k">return</span> compiled_fun(<span class="pl-k">*</span>args) File <span class="pl-s"><span class="pl-pds">"</span>/mnt/lustre/liujun1/.conda/envs/muNet/lib/python3.7/site-packages/jax/_src/dispatch.py<span class="pl-pds">"</span></span>, line 615, <span class="pl-k">in</span> _execute_compiled out_bufs_flat = compiled.execute(input_bufs_flat) jax._src.traceback_util.UnfilteredStackTrace: jaxlib.xla_extension.XlaRuntimeError: RESOURCE_EXHAUSTED: Out of memory <span class="pl-k">while</span> trying to allocate 122875791936 bytes. BufferAssignment OOM Debugging. BufferAssignment stats: parameter allocation: 1.43GiB constant allocation: 8B maybe_live_out allocation: 581.19MiB preallocated temp allocation: 114.44GiB preallocated temp fragmentation: 146.50MiB (0.13%) total allocation: 115.86GiB total fragmentation: 146.53MiB (0.12%) Peak buffers: Buffer 1: Size: 1.27GiB XLA Label: custom-call Shape: f32[64,16,577,577] ========================== Buffer 2: Size: 1.27GiB XLA Label: custom-call Shape: f32[64,16,577,577] ========================== Buffer 3: Size: 1.27GiB XLA Label: custom-call Shape: f32[64,16,577,577] ========================== Buffer 4: Size: 1.27GiB XLA Label: custom-call Shape: f32[64,16,577,577] ========================== Buffer 5: Size: 1.27GiB XLA Label: custom-call Shape: f32[64,16,577,577] ========================== Buffer 6: Size: 1.27GiB XLA Label: custom-call Shape: f32[64,16,577,577] ========================== </pre></div> <ul dir="auto"> <li>environment:<br> python: 3.7.13<br> jax: 0.3.14<br> jaxlib: 0.3.14+cuda11.cudnn82</li> </ul>
0
<p dir="auto">This is from a fresh checkout of commit-id <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/40d28e24df77130792dc20408e45dda3154b9bc2/hovercard" href="https://github.com/tensorflow/tensorflow/commit/40d28e24df77130792dc20408e45dda3154b9bc2"><tt>40d28e2</tt></a>, the current r0.11 branch.</p> <p dir="auto">On Mac OS 10.11.6 and Xcode 8.0, building the iOS library with build_ios_all.sh completes without errors, but attempting to actually build the Xcode projects in contrib/ios_examples or use the resulting libtensorflow-core.a in my own project fails with a linker error.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="duplicate symbol __Z14tf_git_versionv in: /Users/avalys/Desktop/tensorflow.build_ios/tensorflow/contrib/ios_examples/simple/../../makefile/gen/lib/libtensorflow-core.a(version_info.o) duplicate symbol __Z19tf_compiler_versionv in: /Users/avalys/Desktop/tensorflow.build_ios/tensorflow/contrib/ios_examples/simple/../../makefile/gen/lib/libtensorflow-core.a(version_info.o) ld: 2 duplicate symbols for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)"><pre class="notranslate"><code class="notranslate">duplicate symbol __Z14tf_git_versionv in: /Users/avalys/Desktop/tensorflow.build_ios/tensorflow/contrib/ios_examples/simple/../../makefile/gen/lib/libtensorflow-core.a(version_info.o) duplicate symbol __Z19tf_compiler_versionv in: /Users/avalys/Desktop/tensorflow.build_ios/tensorflow/contrib/ios_examples/simple/../../makefile/gen/lib/libtensorflow-core.a(version_info.o) ld: 2 duplicate symbols for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) </code></pre></div> <p dir="auto">And indeed, nm -a libtensorflow-core.a | grep git_version gives:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0000000000000000 T __Z14tf_git_versionv 0000000000000000 T __Z14tf_git_versionv"><pre class="notranslate"><code class="notranslate">0000000000000000 T __Z14tf_git_versionv 0000000000000000 T __Z14tf_git_versionv </code></pre></div>
<p dir="auto">Hi all,</p> <p dir="auto">just tried to start the script from here: <a href="https://www.tensorflow.org/get_started/tflearn" rel="nofollow">https://www.tensorflow.org/get_started/tflearn</a></p> <p dir="auto">found one issue for python3 users:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import urllib raw = urllib.urlopen(IRIS_TRAINING_URL).read() "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">urllib</span> <span class="pl-s1">raw</span> <span class="pl-c1">=</span> <span class="pl-s1">urllib</span>.<span class="pl-en">urlopen</span>(<span class="pl-v">IRIS_TRAINING_URL</span>).<span class="pl-en">read</span>()</pre></div> <p dir="auto">this returns:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) &lt;ipython-input-32-2005abd64a8b&gt; in &lt;module&gt;() ----&gt; 1 raw = urllib.urlopen(IRIS_TRAINING_URL).read() AttributeError: module 'urllib' has no attribute 'urlopen' "><pre class="notranslate">--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <span class="pl-k">&lt;</span>ipython-input-32-2005abd64a8b<span class="pl-k">&gt;</span> <span class="pl-k">in</span> <span class="pl-en">&lt;module&gt;</span>() ----<span class="pl-k">&gt;</span> 1 raw = <span class="pl-en">urllib.urlopen(IRIS_TRAINING_URL).read</span>() AttributeError: module <span class="pl-s"><span class="pl-pds">'</span>urllib<span class="pl-pds">'</span></span> has no attribute <span class="pl-s"><span class="pl-pds">'</span>urlopen<span class="pl-pds">'</span></span> </pre></div> <p dir="auto">the solution:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import urllib.request as ur raw = ur.urlopen(IRIS_TRAINING_URL).read()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">urllib</span>.<span class="pl-s1">request</span> <span class="pl-k">as</span> <span class="pl-s1">ur</span> <span class="pl-s1">raw</span> <span class="pl-c1">=</span> <span class="pl-s1">ur</span>.<span class="pl-en">urlopen</span>(<span class="pl-v">IRIS_TRAINING_URL</span>).<span class="pl-en">read</span>()</pre></div> <p dir="auto">But, the main reason for this issue-ticket is <strong>warning messages</strong> like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARNING:tensorflow:From /Users/vadimborisov/anaconda/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/head.py:1362: scalar_summary (from tensorflow.python.ops.logging_ops) is deprecated and will be removed after 2016-11-30. Instructions for updating: Please switch to tf.summary.scalar. Note that tf.summary.scalar uses the node name instead of the tag. This means that TensorFlow will automatically de-duplicate summary names based on the scope they are created in. Also, passing a tensor or list of tags to a scalar summary op is no longer supported. "><pre class="notranslate"><code class="notranslate">WARNING:tensorflow:From /Users/vadimborisov/anaconda/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/head.py:1362: scalar_summary (from tensorflow.python.ops.logging_ops) is deprecated and will be removed after 2016-11-30. Instructions for updating: Please switch to tf.summary.scalar. Note that tf.summary.scalar uses the node name instead of the tag. This means that TensorFlow will automatically de-duplicate summary names based on the scope they are created in. Also, passing a tensor or list of tags to a scalar summary op is no longer supported. </code></pre></div> <p dir="auto">or this</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARNING:tensorflow:From &lt;ipython-input-28-221e14b2595e&gt;:1: calling BaseEstimator.fit (from tensorflow.contrib.learn.python.learn.estimators.estimator) with x is deprecated and will be removed after 2016-12-01. Instructions for updating: Estimator is decoupled from Scikit Learn interface by moving into separate class SKCompat. Arguments x, y and batch_size are only available in the SKCompat class, Estimator will only accept input_fn. Example conversion: est = Estimator(...) -&gt; est = SKCompat(Estimator(...)) WARNING:tensorflow:From &lt;ipython-input-28-221e14b2595e&gt;:1: calling BaseEstimator.fit (from tensorflow.contrib.learn.python.learn.estimators.estimator) with y is deprecated and will be removed after 2016-12-01. Instructions for updating: Estimator is decoupled from Scikit Learn interface by moving into separate class SKCompat. Arguments x, y and batch_size are only available in the SKCompat class, Estimator will only accept input_fn. Example conversion: est = Estimator(...) -&gt; est = SKCompat(Estimator(...))"><pre class="notranslate"><code class="notranslate">WARNING:tensorflow:From &lt;ipython-input-28-221e14b2595e&gt;:1: calling BaseEstimator.fit (from tensorflow.contrib.learn.python.learn.estimators.estimator) with x is deprecated and will be removed after 2016-12-01. Instructions for updating: Estimator is decoupled from Scikit Learn interface by moving into separate class SKCompat. Arguments x, y and batch_size are only available in the SKCompat class, Estimator will only accept input_fn. Example conversion: est = Estimator(...) -&gt; est = SKCompat(Estimator(...)) WARNING:tensorflow:From &lt;ipython-input-28-221e14b2595e&gt;:1: calling BaseEstimator.fit (from tensorflow.contrib.learn.python.learn.estimators.estimator) with y is deprecated and will be removed after 2016-12-01. Instructions for updating: Estimator is decoupled from Scikit Learn interface by moving into separate class SKCompat. Arguments x, y and batch_size are only available in the SKCompat class, Estimator will only accept input_fn. Example conversion: est = Estimator(...) -&gt; est = SKCompat(Estimator(...)) </code></pre></div> <p dir="auto">or like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARNING:tensorflow:From /Users/vadimborisov/anaconda/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/head.py:1362: scalar_summary (from tensorflow.python.ops.logging_ops) is deprecated and will be removed after 2016-11-30. Instructions for updating: Please switch to tf.summary.scalar. Note that tf.summary.scalar uses the node name instead of the tag. This means that TensorFlow will automatically de-duplicate summary names based on the scope they are created in. Also, passing a tensor or list of tags to a scalar summary op is no longer supported. INFO:tensorflow:Starting evaluation at 2017-03-29-15:28:31 INFO:tensorflow:Evaluation [1/1] INFO:tensorflow:Finished evaluation at 2017-03-29-15:28:32 INFO:tensorflow:Saving dict for global step 4000: accuracy = 0.966667, auc = 0.998333, global_step = 4000, loss = 0.0793921 WARNING:tensorflow:Skipping summary for global_step, must be a float or np.float32."><pre class="notranslate"><code class="notranslate">WARNING:tensorflow:From /Users/vadimborisov/anaconda/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/head.py:1362: scalar_summary (from tensorflow.python.ops.logging_ops) is deprecated and will be removed after 2016-11-30. Instructions for updating: Please switch to tf.summary.scalar. Note that tf.summary.scalar uses the node name instead of the tag. This means that TensorFlow will automatically de-duplicate summary names based on the scope they are created in. Also, passing a tensor or list of tags to a scalar summary op is no longer supported. INFO:tensorflow:Starting evaluation at 2017-03-29-15:28:31 INFO:tensorflow:Evaluation [1/1] INFO:tensorflow:Finished evaluation at 2017-03-29-15:28:32 INFO:tensorflow:Saving dict for global step 4000: accuracy = 0.966667, auc = 0.998333, global_step = 4000, loss = 0.0793921 WARNING:tensorflow:Skipping summary for global_step, must be a float or np.float32. </code></pre></div> <p dir="auto">So, I believe, the introduction tutorials should be free from warnings.</p> <p dir="auto">I can try to fix the warnings, if someone is interesting.</p> <p dir="auto">I'm using Python 3.5.2 |Anaconda 4.3.1 (x86_64)| (default, Jul 2 2016, 17:52:12) .</p>
0
<p dir="auto">Hello,</p> <p dir="auto">There is an issue with printing using bootstrap.min.css. The form auto resizes to the smallest resolution which causes all of the controls to be full screen (like it would look on a small screen). Is there a way to set the size for printing to a larger resolution so more controls fit on the same line?</p> <p dir="auto">Here is a screeshot:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/16277664b078b515cc603f467abaff424843cfd966281715a73a0f699434c71b/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f363332313639362f313834363234302f64653461343035652d373564382d313165332d386437332d3330626138666465333737642e706e67"><img src="https://camo.githubusercontent.com/16277664b078b515cc603f467abaff424843cfd966281715a73a0f699434c71b/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f363332313639362f313834363234302f64653461343035652d373564382d313165332d386437332d3330626138666465333737642e706e67" alt="image" data-canonical-src="https://f.cloud.github.com/assets/6321696/1846240/de4a405e-75d8-11e3-8d73-30ba8fde377d.png" style="max-width: 100%;"></a></p> <p dir="auto">Here is my HTML:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/285e9d88d04e5ff28eaf7d7ac381a7455399e8ae2fbc5131cdb68e16717a1a80/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f363332313639362f313834363235362f38383837303830382d373564612d313165332d393034362d3139626564346630366438362e706e67"><img src="https://camo.githubusercontent.com/285e9d88d04e5ff28eaf7d7ac381a7455399e8ae2fbc5131cdb68e16717a1a80/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f363332313639362f313834363235362f38383837303830382d373564612d313165332d393034362d3139626564346630366438362e706e67" alt="image" data-canonical-src="https://f.cloud.github.com/assets/6321696/1846256/88870808-75da-11e3-9046-19bed4f06d86.png" style="max-width: 100%;"></a></p> <p dir="auto">Gord</p>
<p dir="auto">When printing in Safari 7 and Firefox 25 the grid carries over to the print style, but in Chrome 34 and IE 11 everything stacks when printed. Any insights here?</p>
1
<p dir="auto">Rust code on SO right now looks pretty nasty. Most egregiously it interprets the lifetime syntax as the start of a string, yielding hilarious results.</p> <p dir="auto">Here's the project that SO uses to highlight code:</p> <p dir="auto"><a href="https://code.google.com/p/google-code-prettify/" rel="nofollow">https://code.google.com/p/google-code-prettify/</a></p> <p dir="auto">It has no "Rust" option, so I have no idea what language SO is currently using to highlight our code. Implement proper Rust support, and once it's accepted into Prettify we'll try to contact SO to get them to update their version.</p>
<p dir="auto">Hi, I'm trying to make a really really simple hello world program in Rust using a custom library through Cargo, and I'm getting the error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Compiling rstestlib v0.0.1 (file:///Users/benanderson/Desktop/rstest) Compiling rstest v0.0.1 (file:///Users/benanderson/Desktop/rstest) error: linking with `cc` failed: exit code: 1 note: cc '-m64' '-L' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib' '-o' '/Users/benanderson/Desktop/rstest/target/rstest' '/Users/benanderson/Desktop/rstest/target/rstest.o' '-Wl,-force_load,/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libmorestack.a' '-nodefaultlibs' '-fno-lto' '-Wl,-dead_strip' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libnative-4e7c5e5c.rlib' '/Users/benanderson/Desktop/rstest/target/deps/librstestlib-1806f5315b450877.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libstd-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/librand-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libsync-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/librustrt-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libcollections-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libunicode-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/liballoc-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/liblibc-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libcore-4e7c5e5c.rlib' '-L' '/Users/benanderson/Desktop/rstest/target' '-L' '/Users/benanderson/Desktop/rstest/target/deps' '-L' '/Users/benanderson/Desktop/rstest/.rust' '-L' '/Users/benanderson/Desktop/rstest' '-lSystem' '-lpthread' '-lc' '-lm' '-lcompiler-rt' note: ld: warning: directory not found for option '-L/Users/benanderson/Desktop/rstest/.rust' ld: archive has no table of contents file '/Users/benanderson/Desktop/rstest/target/deps/librstestlib-1806f5315b450877.rlib' for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) error: aborting due to previous error Could not compile `rstest`."><pre class="notranslate"><code class="notranslate"> Compiling rstestlib v0.0.1 (file:///Users/benanderson/Desktop/rstest) Compiling rstest v0.0.1 (file:///Users/benanderson/Desktop/rstest) error: linking with `cc` failed: exit code: 1 note: cc '-m64' '-L' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib' '-o' '/Users/benanderson/Desktop/rstest/target/rstest' '/Users/benanderson/Desktop/rstest/target/rstest.o' '-Wl,-force_load,/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libmorestack.a' '-nodefaultlibs' '-fno-lto' '-Wl,-dead_strip' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libnative-4e7c5e5c.rlib' '/Users/benanderson/Desktop/rstest/target/deps/librstestlib-1806f5315b450877.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libstd-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/librand-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libsync-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/librustrt-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libcollections-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libunicode-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/liballoc-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/liblibc-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libcore-4e7c5e5c.rlib' '-L' '/Users/benanderson/Desktop/rstest/target' '-L' '/Users/benanderson/Desktop/rstest/target/deps' '-L' '/Users/benanderson/Desktop/rstest/.rust' '-L' '/Users/benanderson/Desktop/rstest' '-lSystem' '-lpthread' '-lc' '-lm' '-lcompiler-rt' note: ld: warning: directory not found for option '-L/Users/benanderson/Desktop/rstest/.rust' ld: archive has no table of contents file '/Users/benanderson/Desktop/rstest/target/deps/librstestlib-1806f5315b450877.rlib' for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) error: aborting due to previous error Could not compile `rstest`. </code></pre></div> <p dir="auto">I have a lib rstestlib, containing a lib.rs with this inside it:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pub fn test() { println!(&quot;Test&quot;); }"><pre class="notranslate"><span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"Test"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">And the rstest program has a main.rs with:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="extern crate rstestlib; fn main() { rstestlib::test(); }"><pre class="notranslate"><span class="pl-k">extern</span> <span class="pl-k">crate</span> rstestlib<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> rstestlib<span class="pl-kos">::</span><span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">The rstest program has this as a Cargo.toml file:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[package] name = &quot;rstest&quot; version = &quot;0.0.1&quot; authors = [&quot;GravityScore &lt;[email protected]&gt;&quot;] [dependencies.rstestlib] path = &quot;../rstestlib&quot;"><pre class="notranslate"><code class="notranslate">[package] name = "rstest" version = "0.0.1" authors = ["GravityScore &lt;[email protected]&gt;"] [dependencies.rstestlib] path = "../rstestlib" </code></pre></div> <p dir="auto">And the rstestlib program has this as a Cargo.toml:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[package] name = &quot;rstestlib&quot; version = &quot;0.0.1&quot; authors = [&quot;GravityScore &lt;[email protected]&gt;&quot;]"><pre class="notranslate"><code class="notranslate">[package] name = "rstestlib" version = "0.0.1" authors = ["GravityScore &lt;[email protected]&gt;"] </code></pre></div> <p dir="auto">I've just reinstalled rust using the 1 line console command from the Cargo website. The output of rustc -v is <code class="notranslate">rustc 0.13.0-nightly (0a5e7f359 2014-11-03 23:16:55 +0000)</code>. I've had this problem for a while now, and it's really disappointing because I love rust so much, but I can't use it at all anymore.</p> <p dir="auto">I've tried running <code class="notranslate">ranlib target/deps/librstestlib*</code> as some internet sources (eg. <a href="http://stackoverflow.com/questions/4445735/why-do-i-get-ld-in-libunittest-a-archive-has-no-table-of-contents-when-bui" rel="nofollow">here</a>) suggest, but when I do this I get a bunch of undefined symbols for architecture, and a note saying the .rlib file was not built for the current architecture I'm trying to build for (which is x86_64):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Bens-MacBook-Pro-4:rstest benanderson$ ranlib target/deps/librstestlib* Bens-MacBook-Pro-4:rstest benanderson$ cargo build Compiling rstest v0.0.1 (file:///Users/benanderson/Desktop/rstest) error: linking with `cc` failed: exit code: 1 note: cc '-m64' '-L' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib' '-o' '/Users/benanderson/Desktop/rstest/target/rstest' '/Users/benanderson/Desktop/rstest/target/rstest.o' '-Wl,-force_load,/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libmorestack.a' '-nodefaultlibs' '-fno-lto' '-Wl,-dead_strip' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libnative-4e7c5e5c.rlib' '/Users/benanderson/Desktop/rstest/target/deps/librstestlib-1806f5315b450877.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libstd-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libsync-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/librustrt-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libcollections-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libunicode-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/liballoc-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/liblibc-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/librand-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libcore-4e7c5e5c.rlib' '-L' '/Users/benanderson/Desktop/rstest/target' '-L' '/Users/benanderson/Desktop/rstest/target/deps' '-L' '/Users/benanderson/Desktop/rstest/.rust' '-L' '/Users/benanderson/Desktop/rstest' '-lSystem' '-lpthread' '-lc' '-lm' '-lcompiler-rt' note: ld: warning: directory not found for option '-L/Users/benanderson/Desktop/rstest/.rust' ld: warning: ignoring file /Users/benanderson/Desktop/rstest/target/deps/librstestlib-1806f5315b450877.rlib, file was built for archive which is not the architecture being linked (x86_64): /Users/benanderson/Desktop/rstest/target/deps/librstestlib-1806f5315b450877.rlib Undefined symbols for architecture x86_64: &quot;test::hb3734900dfb5a78ddaa&quot;, referenced from: main::h7d8e0789b2179c99faa in rstest.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) error: aborting due to previous error Could not compile `rstest`."><pre class="notranslate"><code class="notranslate">Bens-MacBook-Pro-4:rstest benanderson$ ranlib target/deps/librstestlib* Bens-MacBook-Pro-4:rstest benanderson$ cargo build Compiling rstest v0.0.1 (file:///Users/benanderson/Desktop/rstest) error: linking with `cc` failed: exit code: 1 note: cc '-m64' '-L' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib' '-o' '/Users/benanderson/Desktop/rstest/target/rstest' '/Users/benanderson/Desktop/rstest/target/rstest.o' '-Wl,-force_load,/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libmorestack.a' '-nodefaultlibs' '-fno-lto' '-Wl,-dead_strip' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libnative-4e7c5e5c.rlib' '/Users/benanderson/Desktop/rstest/target/deps/librstestlib-1806f5315b450877.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libstd-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libsync-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/librustrt-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libcollections-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libunicode-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/liballoc-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/liblibc-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/librand-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libcore-4e7c5e5c.rlib' '-L' '/Users/benanderson/Desktop/rstest/target' '-L' '/Users/benanderson/Desktop/rstest/target/deps' '-L' '/Users/benanderson/Desktop/rstest/.rust' '-L' '/Users/benanderson/Desktop/rstest' '-lSystem' '-lpthread' '-lc' '-lm' '-lcompiler-rt' note: ld: warning: directory not found for option '-L/Users/benanderson/Desktop/rstest/.rust' ld: warning: ignoring file /Users/benanderson/Desktop/rstest/target/deps/librstestlib-1806f5315b450877.rlib, file was built for archive which is not the architecture being linked (x86_64): /Users/benanderson/Desktop/rstest/target/deps/librstestlib-1806f5315b450877.rlib Undefined symbols for architecture x86_64: "test::hb3734900dfb5a78ddaa", referenced from: main::h7d8e0789b2179c99faa in rstest.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) error: aborting due to previous error Could not compile `rstest`. </code></pre></div> <p dir="auto">But, if I run <code class="notranslate">lipo -info target/deps/librstestlib*</code>, it says the archive file was built for x86_64:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="input file target/deps/librstestlib-1806f5315b450877.rlib is not a fat file Non-fat file: target/deps/librstestlib-1806f5315b450877.rlib is architecture: x86_64"><pre class="notranslate"><code class="notranslate">input file target/deps/librstestlib-1806f5315b450877.rlib is not a fat file Non-fat file: target/deps/librstestlib-1806f5315b450877.rlib is architecture: x86_64 </code></pre></div> <p dir="auto">This happens with any library I try and link, ones from GitHub or locally. I'm running OSX Yosemite (10.10), with the latest Xcode (6.1) and OSX SDKs installed. I get the same problem if I bypass Cargo and compile using rustc directly as well, so it's not a Cargo problem. I used the command <code class="notranslate">rustc -L"../rstestlib/target" src/main.rs</code>.</p> <p dir="auto">Does someone know what's going on here? I'm really stuck and can't figure out why this is happening. I really love Rust and really appreciate all the hard work that's gone into making it - it is fantastic. But it's not working at the moment, which is really disappointing and very limiting if I can't link against libraries.</p>
0
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.1.0</li> <li>Operating System / Platform =&gt; Windows 64 Bit</li> <li>Compiler =&gt; Visual Studio 2017 (15.9)</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">The build of <code class="notranslate">opencv_highgui</code> fails with several errors of the form <code class="notranslate">X already defined in window.obj</code>. The other projects compile successfully.</p> <h5 dir="auto">Steps to reproduce</h5> <ol dir="auto"> <li>Clone the <code class="notranslate">opencv</code> and <code class="notranslate">opencv_contrib</code> repos, checkout <code class="notranslate">4.1.0</code> in both.</li> <li>Run CMake, enable <code class="notranslate">WITH_CUDA</code>, <code class="notranslate">OPENCV_ENABLE_NONFREE</code> and set <code class="notranslate">OPENCV_EXTRA_MODULES_PATH</code> to the <code class="notranslate">opencv_contrib\modules</code> directory.</li> <li>Generate the solution.</li> <li>Open the solution in Visual Studio 2017 and launch the build.</li> </ol> <p dir="auto">The build runs smoothly and all projects except one succeed. The one that fails is <code class="notranslate">opencv_highgui</code>, with these errors:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="60&gt;opencv_highgui_main.cpp 60&gt;c:\opencv\opencv\modules\highgui\src\window.cpp(250): warning C4702: unreachable code 60&gt;c:\opencv\opencv\modules\highgui\src\window.cpp(252): warning C4702: unreachable code 60&gt;c:\opencv\opencv\modules\highgui\src\window.cpp(254): warning C4702: unreachable code 60&gt;c:\opencv\opencv\modules\highgui\src\window.cpp(255): warning C4702: unreachable code 60&gt;c:\opencv\opencv\modules\highgui\src\window.cpp(257): warning C4702: unreachable code 60&gt;window_w32.obj : error LNK2005: &quot;void __cdecl cv::setWindowTitle(class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; const &amp;,class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; const &amp;)&quot; (?setWindowTitle@cv@@YAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z) already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvCreateTrackbar already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvCreateTrackbar2 already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvDestroyAllWindows already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvDestroyWindow already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvGetTrackbarPos already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvGetWindowHandle already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvGetWindowName already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvInitSystem already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvMoveWindow already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvNamedWindow already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvResizeWindow already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvSetMouseCallback already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvSetTrackbarMax already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvSetTrackbarMin already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvSetTrackbarPos already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvShowImage already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvStartWindowThread already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvWaitKey already defined in window.obj 60&gt; Creating library C:/OpenCV/opencv/build/lib/Release/opencv_highgui410.lib and object C:/OpenCV/opencv/build/lib/Release/opencv_highgui410.exp 60&gt;C:\OpenCV\opencv\build\bin\Release\opencv_highgui410.dll : fatal error LNK1169: one or more multiply defined symbols found 60&gt;Done building project &quot;opencv_highgui.vcxproj&quot; -- FAILED."><pre class="notranslate"><code class="notranslate">60&gt;opencv_highgui_main.cpp 60&gt;c:\opencv\opencv\modules\highgui\src\window.cpp(250): warning C4702: unreachable code 60&gt;c:\opencv\opencv\modules\highgui\src\window.cpp(252): warning C4702: unreachable code 60&gt;c:\opencv\opencv\modules\highgui\src\window.cpp(254): warning C4702: unreachable code 60&gt;c:\opencv\opencv\modules\highgui\src\window.cpp(255): warning C4702: unreachable code 60&gt;c:\opencv\opencv\modules\highgui\src\window.cpp(257): warning C4702: unreachable code 60&gt;window_w32.obj : error LNK2005: "void __cdecl cv::setWindowTitle(class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; const &amp;,class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; const &amp;)" (?setWindowTitle@cv@@YAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z) already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvCreateTrackbar already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvCreateTrackbar2 already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvDestroyAllWindows already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvDestroyWindow already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvGetTrackbarPos already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvGetWindowHandle already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvGetWindowName already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvInitSystem already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvMoveWindow already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvNamedWindow already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvResizeWindow already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvSetMouseCallback already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvSetTrackbarMax already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvSetTrackbarMin already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvSetTrackbarPos already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvShowImage already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvStartWindowThread already defined in window.obj 60&gt;window_w32.obj : error LNK2005: cvWaitKey already defined in window.obj 60&gt; Creating library C:/OpenCV/opencv/build/lib/Release/opencv_highgui410.lib and object C:/OpenCV/opencv/build/lib/Release/opencv_highgui410.exp 60&gt;C:\OpenCV\opencv\build\bin\Release\opencv_highgui410.dll : fatal error LNK1169: one or more multiply defined symbols found 60&gt;Done building project "opencv_highgui.vcxproj" -- FAILED. </code></pre></div>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; : 4.1.1.26</li> <li>Operating System / Platform =&gt; Ubuntu 18.04</li> <li>Compiler =&gt; ython3.5</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">Hello I am having the following issue. I am trying to freeze <a href="https://github.com/qubvel/efficientnet/blob/master/efficientnet/model.py">EfficientNet</a> taken from this repo and use the <code class="notranslate">protobuf</code> file for using it with OpenCV <strong>dnn</strong> module.</p> <p dir="auto">The model is a simple classification network. Right after the the Feature Extractor specified in the link, I just try add an extra dense &amp; and an extra classification layer of <code class="notranslate">num_classes</code>.</p> <p dir="auto">I have frozen several networks and used them with the dnn library before and I know all the issues that can arise, which I have already tried.</p> <p dir="auto">Example code in python (also seen in attached script below):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="net = cv2.dnn.readNetFromTensorflow('frozen.pb') x_cv = np.random.random((224, 224, 3)).astype(np.uint8) blob = cv2.dnn.blobFromImage(x_cv, 1.0, (224, 224), (0, 0, 0)) net.setInput(blob) # (1 x 200) s = net.forward().shape print(s)"><pre class="notranslate"><code class="notranslate">net = cv2.dnn.readNetFromTensorflow('frozen.pb') x_cv = np.random.random((224, 224, 3)).astype(np.uint8) blob = cv2.dnn.blobFromImage(x_cv, 1.0, (224, 224), (0, 0, 0)) net.setInput(blob) # (1 x 200) s = net.forward().shape print(s) </code></pre></div> <p dir="auto">However life is not that easy. This is the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: OpenCV(4.1.1) /io/opencv/modules/dnn/src/layers/eltwise_layer.cpp:116: error: (-215:Assertion failed) inputs[0] == inputs[i] in function 'getMemoryShapes'"><pre class="notranslate"><code class="notranslate">error: OpenCV(4.1.1) /io/opencv/modules/dnn/src/layers/eltwise_layer.cpp:116: error: (-215:Assertion failed) inputs[0] == inputs[i] in function 'getMemoryShapes' </code></pre></div> <p dir="auto">Eventually I Found out that the problem is caused when using the <a href="https://github.com/qubvel/efficientnet/blob/master/efficientnet/model.py#L238">Squeeze and excitation module</a> <strong>(SE module for short)</strong>. If I disable the flag &amp; remove those modules from the network, the forward pass works.</p> <p dir="auto">In my opinion is the <strong>flow of the graph of the SE Module</strong> that is not acceptable from OpenCV from going to an average pooling to 1x1 convs and finally multiplying the features.</p> <h5 dir="auto">Some remarks:</h5> <p dir="auto">I had this issue with SE modules in the past, with the difference that the model was using more basic operations such as:</p> <ul dir="auto"> <li> <p dir="auto"><code class="notranslate">reduce_mean</code> across the features instead of average pooling</p> </li> <li> <p dir="auto"><code class="notranslate">fully connected</code> layers instead of 1x1 Convolutions, since they result in the same number of features.</p> </li> </ul> <p dir="auto">Additionally:</p> <ul dir="auto"> <li> <p dir="auto">I used the <code class="notranslate">optimize_for_inference_lib</code> tool with no success.</p> </li> <li> <p dir="auto">Using the following command: <code class="notranslate">net.getUnconnectedOutLayersNames()</code> gave me the following results:</p> <p dir="auto"><code class="notranslate">['block1a_se_squeeze/Mean/flatten', 'block2a_se_squeeze/Mean/flatten', 'block2b_se_squeeze/Mean/flatten', 'block3a_se_squeeze/Mean/flatten', 'block3b_se_squeeze/Mean/flatten', 'block4a_se_squeeze/Mean/flatten', 'block4b_se_squeeze/Mean/flatten', 'block4c_se_squeeze/Mean/flatten', 'block5a_se_squeeze/Mean/flatten', 'block5b_se_squeeze/Mean/flatten', 'block5c_se_squeeze/Mean/flatten', 'block6a_se_squeeze/Mean/flatten', 'block6b_se_squeeze/Mean/flatten', 'block6c_se_squeeze/Mean/flatten', 'block6d_se_squeeze/Mean/flatten', 'block7a_se_squeeze/Mean/flatten', 'avg_pool/Mean/flatten', 'dense_1/Softmax']</code></p> </li> </ul> <h5 dir="auto">Follow up</h5> <p dir="auto">I would like to know if there is a possible way to add the SE Module either by</p> <ul dir="auto"> <li>reshaping the network in a compatible manner</li> <li>transforming the graph and using a <code class="notranslate">.pbtxt</code> file additionally</li> <li>register the module as custom &amp; override the <code class="notranslate">getMemoryShapes()</code></li> </ul> <p dir="auto">Of course the easiest solution would be preferrable :)</p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">Running the attached <code class="notranslate">.py</code> (extension currently txt) file, will follow the pipeline:</p> <ul dir="auto"> <li>Initialize EfficientnetB0 (smallest) with SE modules.</li> <li>Create a dummy training set and run keras training <code class="notranslate">fit()</code> function.</li> <li>Save the model as keras extension and reset graph</li> <li>Load &amp; freeze model with standard keras freezing method. You should see <code class="notranslate">344 variables</code> frozen in the terminal.</li> <li>Load model for OpenCV, create dummy blob &amp; run <code class="notranslate">net.forward()</code>. It will crash with the aforementioned error.</li> </ul> <p dir="auto"><a href="https://github.com/opencv/opencv/files/3624944/opencv_efficientnet.txt">opencv_efficientnet.txt</a></p> <h5 dir="auto">Making the model <code class="notranslate">freezable</code>.</h5> <p dir="auto">If you jump to <strong>line 254</strong> of the attached script, you can override the <code class="notranslate">has_se=True</code> to <code class="notranslate">False</code>. This will make the model compatible with OpenCV, proving the detailed description above that this is the factor that makes it show the assertion error.</p>
0
<p dir="auto">Hello,<br> in order to duplicate an object with all its children, I had to use a jQuery function, please is there a better way in Vue? I am using Vue 0.12.1</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="duplicateThis: function (field) { var currentField = this.fields[field.index]; var insertField = { name: currentField.name, type: currentField.type, description: currentField.description, options: $.extend(true, {}, currentField.options), required: currentField.required }; this.fields.splice(field.index + 1, 0, insertField); }"><pre class="notranslate"><code class="notranslate">duplicateThis: function (field) { var currentField = this.fields[field.index]; var insertField = { name: currentField.name, type: currentField.type, description: currentField.description, options: $.extend(true, {}, currentField.options), required: currentField.required }; this.fields.splice(field.index + 1, 0, insertField); } </code></pre></div> <p dir="auto">Thank you</p>
<h3 dir="auto">Version</h3> <p dir="auto">2.6.11</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://jsfiddle.net/yrqt02kj/1/" rel="nofollow">https://jsfiddle.net/yrqt02kj/1/</a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto"><code class="notranslate">transition-group</code> renders the component twice (and the second rendering is done without parsed "{{variable}}").<br> If we just remove <code class="notranslate">transition-group</code> parent at all, it works as expected and there is no duplicated content.</p> <h3 dir="auto">What is expected?</h3> <p dir="auto">there should not be the duplicated content (with unrendered variable tag)</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">it shows the content twice</p>
0
<p dir="auto">Hey there,<br> I recommend to add a new size "extra large" (xl) for desktops larger than 1600px. The reason is, the number of people using very large monitors (24", 26", TV) is strongly increasing.<br> Maybe because of TVs an xxl-design would be also good :D</p>
<p dir="auto">Hi everybody. I use so much bootstrap that I have few problems at few moments.</p> <p dir="auto">In this moment, I work on a dashboard for my client. I use all of my screen because I have many informations to show. So, I use col-xs, col-sm, col-md and col-lg for a responsive design. It's awesome except that my dashboard own few items which are too fat when my screen is superior at 1500/1600px.</p> <p dir="auto">I would can develop a new custom col-xlg class for my app but I don't know if other people have this problem.</p> <p dir="auto">In the future, our displays will be most large and I ask me if that it's necessary to develope a feature like this.</p> <p dir="auto">Thanks for your response.</p>
1
<p dir="auto">Basically the idea here is to support shuffling for SIMD types in a way that can be easily lowered to IR (LLVM's <code class="notranslate">shufflevector</code> requires the mask be a vector of constants, so an intrinsic function is out of the question), however I image this sugar could extend to tuples with multiple types.</p> <p dir="auto">Some examples:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let vec = (1.0f32, 2.0f32, 3.0f32, 4.0f32); let all_x = vec -&gt; (0, 0, 0, 0); assert_eq!(all_x, (1.0f32, 1.0f32, 1.0f32, 1.0f32)); let single_x = vec -&gt; (0); assert_eq!(single_x, (1.0f32)); let mut vec = vec; vec &lt;- (0) = 5.0f32; // set x only vec &lt;- (1, 2) = (6.0f32, 7.0f32) // set y &amp; z assert_eq!(vec, (5.0f32, 6.0f32, 7.0f32, 4.0f32)); let vec = vec; // the mask may be arbitrarily long: assert_eq!(vec -&gt; (0, 1, 2, 3, 0), (5.0f32, 6.0f32, 7.0f32, 4.0f32, 5.0f32)); // leaves vec unchanged let functional_update = vec -&gt; (0, 1, 3) .. (0.5f32, 1.0f32, 10.0f32); // functional_update would take it's type from vec assert_eq!(vec, (5.0f32, 6.0f32, 7.0f32, 4.0f32)); assert_eq!(functional_update, (0.5f32, 1.0f32, 7.0f32, 10.0f32));"><pre class="notranslate"><span class="pl-k">let</span> vec = <span class="pl-kos">(</span><span class="pl-c1">1.0f32</span><span class="pl-kos">,</span> <span class="pl-c1">2.0f32</span><span class="pl-kos">,</span> <span class="pl-c1">3.0f32</span><span class="pl-kos">,</span> <span class="pl-c1">4.0f32</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> all_x = <span class="pl-en">vec</span> -&gt; <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</span><span class="pl-kos">,</span> <span class="pl-c1">0</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">assert_eq</span><span class="pl-en">!</span><span class="pl-kos">(</span>all_x, <span class="pl-kos">(</span><span class="pl-c1">1.0f32</span>, <span class="pl-c1">1.0f32</span>, <span class="pl-c1">1.0f32</span>, <span class="pl-c1">1.0f32</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> single_x = <span class="pl-en">vec</span> -&gt; <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">assert_eq</span><span class="pl-en">!</span><span class="pl-kos">(</span>single_x, <span class="pl-kos">(</span><span class="pl-c1">1.0f32</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-k">mut</span> vec = vec<span class="pl-kos">;</span> vec &lt;- <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">)</span> = <span class="pl-c1">5.0f32</span><span class="pl-kos">;</span> <span class="pl-c">// set x only</span> vec &lt;- <span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">)</span> = <span class="pl-kos">(</span><span class="pl-c1">6.0f32</span><span class="pl-kos">,</span> <span class="pl-c1">7.0f32</span><span class="pl-kos">)</span> <span class="pl-c">// set y &amp; z</span> <span class="pl-en">assert_eq</span><span class="pl-en">!</span><span class="pl-kos">(</span>vec, <span class="pl-kos">(</span><span class="pl-c1">5.0f32</span>, <span class="pl-c1">6.0f32</span>, <span class="pl-c1">7.0f32</span>, <span class="pl-c1">4.0f32</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> vec = vec<span class="pl-kos">;</span> <span class="pl-c">// the mask may be arbitrarily long:</span> <span class="pl-en">assert_eq</span><span class="pl-en">!</span><span class="pl-kos">(</span>vec -&gt; <span class="pl-kos">(</span><span class="pl-c1">0</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">0</span><span class="pl-kos">)</span>, <span class="pl-kos">(</span><span class="pl-c1">5.0f32</span>, <span class="pl-c1">6.0f32</span>, <span class="pl-c1">7.0f32</span>, <span class="pl-c1">4.0f32</span>, <span class="pl-c1">5.0f32</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// leaves vec unchanged</span> <span class="pl-k">let</span> functional_update = <span class="pl-en">vec</span> -&gt; <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">3</span><span class="pl-kos">)</span> .. <span class="pl-kos">(</span><span class="pl-c1">0.5f32</span><span class="pl-kos">,</span> <span class="pl-c1">1.0f32</span><span class="pl-kos">,</span> <span class="pl-c1">10.0f32</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// functional_update would take it's type from vec</span> <span class="pl-en">assert_eq</span><span class="pl-en">!</span><span class="pl-kos">(</span>vec, <span class="pl-kos">(</span><span class="pl-c1">5.0f32</span>, <span class="pl-c1">6.0f32</span>, <span class="pl-c1">7.0f32</span>, <span class="pl-c1">4.0f32</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">assert_eq</span><span class="pl-en">!</span><span class="pl-kos">(</span>functional_update, <span class="pl-kos">(</span><span class="pl-c1">0.5f32</span>, <span class="pl-c1">1.0f32</span>, <span class="pl-c1">7.0f32</span>, <span class="pl-c1">10.0f32</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">A couple of things would need to be disallowed, however:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// continuing from above let mut vec = vec; // 1. no duplicate assignments/functional updates: vec &lt;- (0, 0) = (..); let _ = vec -&gt; (0, 1, 2, 3, 0) .. (..); // 2. no out-of-bounds: vec &lt;- (5, 9000) = (..); let _ = vec -&gt; (5, 9001); let _ = vec -&gt; (5, 9002) .. (..); let _ = vec -&gt; (0, 1, 2, 3, 4) .. (..); // 3. all mask values must be a const expr: let mut non_const_expr = 15; vec &lt;- (non_const_expr) = (..); let _ = vec -&gt; (non_const_expr) .. (..); let _ = vec -&gt; (non_const_expr); // 4. mismatched tuple sizes: vec &lt;- (0, 1) = (0.0f32, 0.0f32, 0.0f32); let _ = vec -&gt; (0) .. (0.0f32, 0.0f32);"><pre class="notranslate"><span class="pl-c">// continuing from above</span> <span class="pl-k">let</span> <span class="pl-k">mut</span> vec = vec<span class="pl-kos">;</span> <span class="pl-c">// 1. no duplicate assignments/functional updates:</span> vec &lt;- <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-kos">(</span>..<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> _ = <span class="pl-en">vec</span> -&gt; <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-c1">3</span><span class="pl-kos">,</span> <span class="pl-c1">0</span><span class="pl-kos">)</span> .. <span class="pl-kos">(</span>..<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// 2. no out-of-bounds:</span> vec &lt;- <span class="pl-kos">(</span><span class="pl-c1">5</span><span class="pl-kos">,</span> <span class="pl-c1">9000</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-en">vec</span> -&gt; <span class="pl-kos">(</span><span class="pl-c1">5</span><span class="pl-kos">,</span> <span class="pl-c1">9001</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> _ = <span class="pl-en">vec</span> -&gt; <span class="pl-kos">(</span><span class="pl-c1">5</span><span class="pl-kos">,</span> <span class="pl-c1">9002</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-en">vec</span> -&gt; <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-c1">3</span><span class="pl-kos">,</span> <span class="pl-c1">4</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">// 3. all mask values must be a const expr:</span> <span class="pl-k">let</span> <span class="pl-k">mut</span> non_const_expr = <span class="pl-c1">15</span><span class="pl-kos">;</span> vec &lt;- <span class="pl-kos">(</span>non_const_expr<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-en">vec</span> -&gt; <span class="pl-kos">(</span>non_const_expr<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-en">vec</span> -&gt; <span class="pl-kos">(</span>non_const_expr<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// 4. mismatched tuple sizes:</span> vec &lt;- <span class="pl-kos">(</span><span class="pl-c1">0</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-c1">0.0f32</span><span class="pl-kos">,</span> <span class="pl-c1">0.0f32</span><span class="pl-kos">,</span> <span class="pl-c1">0.0f32</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> _ = <span class="pl-en">vec</span> -&gt; <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">)</span> .. <span class="pl-kos">(</span><span class="pl-c1">0.0f32</span><span class="pl-kos">,</span> <span class="pl-c1">0.0f32</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">AIUI, the notation would be:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tuple_mask : '(' integer [ ',' integer ] * ')' ; tuple_expr : '(' expr [ ',' expr ] * ')' | tuple_expr &quot;-&gt;&quot; tuple_mask [ &quot;..&quot; tuple_expr ] ? ;"><pre class="notranslate"><code class="notranslate">tuple_mask : '(' integer [ ',' integer ] * ')' ; tuple_expr : '(' expr [ ',' expr ] * ')' | tuple_expr "-&gt;" tuple_mask [ ".." tuple_expr ] ? ; </code></pre></div> <p dir="auto">I'm willing to write this myself, but I'd like some consensus/feedback regarding ze sugar I've used.</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alexcrichton/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alexcrichton">@alexcrichton</a>. It looks like we have a lot of duplicated code with <a href="https://github.com/rust-lang/rust/blob/master/src/libcore/fmt/float.rs">libcore/fmt/float.rs</a> and <a href="https://github.com/rust-lang/rust/blob/master/src/libstd/num/strconv.rs#L261">std::num::strconv::float_to_str_bytes_common</a>. Can this code be merged?</p>
0
<h3 dir="auto">1. Problem</h3> <p dir="auto">I implenmented a layer with reference to the <a href="tutorial_dnn_custom_layers">tutorial_dnn_custom_layers</a>, I want to get the type of output is <code class="notranslate">np.long</code>, but the default type is <code class="notranslate">np.float32</code>, <strong>Can I set the output type?</strong></p> <h3 dir="auto">2. some key code</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class ALayer(object): def __init__(self, params, blobs): ... # Our layer receives one inputs. We need to find the max def getMemoryShapes(self, inputs): ... def forward(self, inputs): data = inputs[0] # find max ids on axis res = np.argmax(data, axis=self.axis).astype(np.float32) print(res, res.shape, res.dtype) return [res]"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">ALayer</span>(<span class="pl-s1">object</span>): <span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">params</span>, <span class="pl-s1">blobs</span>): ... <span class="pl-c"># Our layer receives one inputs. We need to find the max</span> <span class="pl-k">def</span> <span class="pl-en">getMemoryShapes</span>(<span class="pl-s1">self</span>, <span class="pl-s1">inputs</span>): ... <span class="pl-k">def</span> <span class="pl-en">forward</span>(<span class="pl-s1">self</span>, <span class="pl-s1">inputs</span>): <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">inputs</span>[<span class="pl-c1">0</span>] <span class="pl-c"># find max ids on axis</span> <span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">argmax</span>(<span class="pl-s1">data</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">axis</span>).<span class="pl-en">astype</span>(<span class="pl-s1">np</span>.<span class="pl-s1">float32</span>) <span class="pl-en">print</span>(<span class="pl-s1">res</span>, <span class="pl-s1">res</span>.<span class="pl-s1">shape</span>, <span class="pl-s1">res</span>.<span class="pl-s1">dtype</span>) <span class="pl-k">return</span> [<span class="pl-s1">res</span>]</pre></div> <p dir="auto">This code is run after registered the ALayer.</p> <ul dir="auto"> <li>type error<br> I droped the <code class="notranslate">astype(np.float32)</code> in <code class="notranslate">forward</code> function, I got the type error like below after registered the ALayer.</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pyopencv_dnn.hpp:175: error: (-215:Assertion failed) pyOutputs[i].type() == outputs[i].type() in function 'pycvLayer::forward'"><pre class="notranslate"><code class="notranslate">pyopencv_dnn.hpp:175: error: (-215:Assertion failed) pyOutputs[i].type() == outputs[i].type() in function 'pycvLayer::forward' </code></pre></div>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.2.0</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">The CUDA backend can support mixed-precision inference with various types: FP32, FP16, INT32, (U)INT8 and possibly INT4 and INT1. It's fairly easy to implement as cuDNN already has convolution primitives for many of these types and the existing CUDA backend codebase is fully template-based.</p> <p dir="auto">Before this can be implemented, some issues need to be sorted out:</p> <ol dir="auto"> <li>Is it required?</li> <li>APIs to configure mixed-precision <ul dir="auto"> <li>APIs to allow the user to control the mixed-precision configuration</li> <li>ability to import quantized models and use the quantized weights during inference</li> </ul> </li> </ol> <p dir="auto">Other ideas:</p> <ol dir="auto"> <li>Default Mixed-precision policies <ul dir="auto"> <li>example: fp16 for convolutions and fp32 for the rest?</li> </ul> </li> <li>Automatic Mixed-Precision <ul dir="auto"> <li>the user provides a representative dataset and the AMP system automatically figures out a good configuration <ul dir="auto"> <li>a similar thing would be required to implement in-house quantization</li> </ul> </li> </ul> </li> </ol> <p dir="auto">IE supports mixed-precision inference. A generic <code class="notranslate">cv::dnn</code> API for mixed-precision could be used for all the backends that support it.</p>
1
<h2 dir="auto">🐛 Bug</h2> <p dir="auto">torch.max seems to be acting differently on CPU/GPU for tensors with equal elements, for example, with all 0 elements.</p> <p dir="auto">torch.max on CPU will return the last index while on GPU the first index.</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import torch print (torch.max(torch.zeros([1, 2001]).to(torch.device('cpu')), 1)[1]) print (torch.max(torch.zeros([1, 2001]).to(torch.device('cuda:0')), 1)[1])"><pre class="notranslate"><code class="notranslate">import torch print (torch.max(torch.zeros([1, 2001]).to(torch.device('cpu')), 1)[1]) print (torch.max(torch.zeros([1, 2001]).to(torch.device('cuda:0')), 1)[1]) </code></pre></div> <p dir="auto">The result will be:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tensor([2000]) tensor([0], device='cuda:0')"><pre class="notranslate"><code class="notranslate">tensor([2000]) tensor([0], device='cuda:0') </code></pre></div> <p dir="auto">On CPU it returns the index 2000, while on GPU 0.</p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Expected to return the same index on CPU/GPU, all last index or all first index.</p> <h2 dir="auto">Environment</h2> <p dir="auto">The output of <a href="https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py" rel="nofollow">environment collection script</a>:</p> <p dir="auto">PyTorch version: 1.4.0<br> Is debug build: No<br> CUDA used to build PyTorch: 10.1</p> <p dir="auto">OS: Ubuntu 18.04.4 LTS<br> GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0<br> CMake version: version 3.13.3</p> <p dir="auto">Python version: 3.6<br> Is CUDA available: Yes<br> CUDA runtime version: 10.0.130<br> GPU models and configuration: GPU 0: Tesla V100-SXM2-16GB<br> Nvidia driver version: 440.33.01<br> cuDNN version: Probably one of the following:<br> /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcudnn.so.7.6.5<br> /usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn.so.7.6.5</p> <p dir="auto">Versions of relevant libraries:<br> [pip3] numpy==1.15.4<br> [conda] blas 1.0 mkl<br> [conda] cudatoolkit 10.1.243 h6bb024c_0<br> [conda] mkl 2020.0 166<br> [conda] mkl-service 2.3.0 py36he904b0f_0<br> [conda] mkl_fft 1.0.15 py36ha843d7b_0<br> [conda] mkl_random 1.1.0 py36hd6b4f25_0<br> [conda] numpy 1.18.1 py36h4f9e942_0<br> [conda] numpy-base 1.18.1 py36hde5b4d6_1<br> [conda] numpydoc 0.9.2 py_0<br> [conda] pytorch 1.4.0 py3.6_cuda10.1.243_cudnn7.6.3_0 pytorch<br> [conda] torchvision 0.5.0 py36_cu101 pytorch</p>
<h2 dir="auto">🐛 Bug</h2> <h2 dir="auto">To Reproduce</h2> <p dir="auto">This code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" import time import torch import numpy as np data = [np.random.rand(8, 800, 1333) &gt; 0.5 for _ in range(2)] dtype_np = np.bool dtype_pt = torch.bool def f1(): return np.asarray(data, dtype=dtype_np) def f2(): return np.stack(data) def f3(): return torch.as_tensor(data, dtype=dtype_pt) def f4(): return torch.stack([torch.from_numpy(x) for x in data]) def benchmark(f, iter, warmup): for k in range(warmup): f() start = time.perf_counter() for k in range(iter): f() torch.cuda.synchronize() return time.perf_counter() - start print(benchmark(f1, 10, 1)) print(benchmark(f2, 10, 1)) print(benchmark(f3, 10, 1)) print(benchmark(f4, 10, 1))"><pre class="notranslate"><code class="notranslate"> import time import torch import numpy as np data = [np.random.rand(8, 800, 1333) &gt; 0.5 for _ in range(2)] dtype_np = np.bool dtype_pt = torch.bool def f1(): return np.asarray(data, dtype=dtype_np) def f2(): return np.stack(data) def f3(): return torch.as_tensor(data, dtype=dtype_pt) def f4(): return torch.stack([torch.from_numpy(x) for x in data]) def benchmark(f, iter, warmup): for k in range(warmup): f() start = time.perf_counter() for k in range(iter): f() torch.cuda.synchronize() return time.perf_counter() - start print(benchmark(f1, 10, 1)) print(benchmark(f2, 10, 1)) print(benchmark(f3, 10, 1)) print(benchmark(f4, 10, 1)) </code></pre></div> <p dir="auto">prints</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0.2839105408638716 0.013459203764796257 20.43221192806959 0.012655530124902725"><pre class="notranslate"><code class="notranslate">0.2839105408638716 0.013459203764796257 20.43221192806959 0.012655530124902725 </code></pre></div> <p dir="auto">I don't expect <code class="notranslate">torch.as_tensor</code> to be 100x slower than <code class="notranslate">np.asarray()</code>.</p> <h2 dir="auto">Environment</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PyTorch version: 1.2.0.dev20190805 Is debug build: No CUDA used to build PyTorch: 10.0.130 OS: Ubuntu 18.04.2 LTS GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04) 7.4.0 CMake version: version 3.12.2 Python version: 3.6 Is CUDA available: Yes CUDA runtime version: 10.0.130 GPU models and configuration: GPU 0: Quadro GP100 GPU 1: Quadro GP100 Nvidia driver version: 410.79 cuDNN version: Could not collect Versions of relevant libraries: [pip3] msgpack-numpy==0.4.4.3 [pip3] numpy==1.16.4 [pip3] numpydoc==0.7.0 [pip3] torch-nightly==1.2.0.dev20190805 [pip3] torchvision==0.4.0a0+6c7189f [conda] blas 1.0 mkl [conda] mkl 2019.1 144 [conda] mkl-include 2019.1 144 [conda] mkl-service 1.1.2 py36he904b0f_5 [conda] mkl_fft 1.0.6 py36hd81dba3_0 [conda] mkl_random 1.0.2 py36hd81dba3_0"><pre class="notranslate"><code class="notranslate">PyTorch version: 1.2.0.dev20190805 Is debug build: No CUDA used to build PyTorch: 10.0.130 OS: Ubuntu 18.04.2 LTS GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04) 7.4.0 CMake version: version 3.12.2 Python version: 3.6 Is CUDA available: Yes CUDA runtime version: 10.0.130 GPU models and configuration: GPU 0: Quadro GP100 GPU 1: Quadro GP100 Nvidia driver version: 410.79 cuDNN version: Could not collect Versions of relevant libraries: [pip3] msgpack-numpy==0.4.4.3 [pip3] numpy==1.16.4 [pip3] numpydoc==0.7.0 [pip3] torch-nightly==1.2.0.dev20190805 [pip3] torchvision==0.4.0a0+6c7189f [conda] blas 1.0 mkl [conda] mkl 2019.1 144 [conda] mkl-include 2019.1 144 [conda] mkl-service 1.1.2 py36he904b0f_5 [conda] mkl_fft 1.0.6 py36hd81dba3_0 [conda] mkl_random 1.0.2 py36hd81dba3_0 </code></pre></div>
0
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2> <p dir="auto">Training with nn.DataParallel in v1.1(v1.2 or v1.3) is much slower than v1.0.1.</p> <p dir="auto">Such as run_squad.py in transformers library as its README<br> <a href="url">https://github.com/huggingface/transformers/blob/master/examples/run_squad.py</a></p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">export SQUAD_DIR=/path/to/SQUAD</p> <p dir="auto">python run_squad.py <br> --model_type bert <br> --model_name_or_path bert-base-cased <br> --do_train <br> --do_eval <br> --do_lower_case <br> --train_file $SQUAD_DIR/train-v1.1.json <br> --predict_file $SQUAD_DIR/dev-v1.1.json <br> --per_gpu_train_batch_size 5 <br> --learning_rate 3e-5 <br> --num_train_epochs 2.0 <br> --max_seq_length 384 <br> --doc_stride 128 <br> --output_dir /tmp/debug_squad/</p> <p dir="auto">The smaller batch size the speed is more distinct.</p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">They should have almost the same speed.</p> <h2 dir="auto">Environment</h2> <p dir="auto">For v1.0.1<br> PyTorch version: 1.0.1<br> Is debug build: No<br> CUDA used to build PyTorch: 10.0.130</p> <p dir="auto">OS: Ubuntu 18.04.3 LTS<br> GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0<br> CMake version: version 3.10.2</p> <p dir="auto">Python version: 3.7<br> Is CUDA available: Yes<br> CUDA runtime version: Could not collect<br> GPU models and configuration:<br> GPU 0: GeForce GTX 1080 Ti<br> GPU 1: GeForce GTX 1080 Ti<br> GPU 2: GeForce GTX 1080 Ti<br> GPU 3: GeForce GTX 1080 Ti<br> GPU 4: GeForce GTX 1080 Ti<br> GPU 5: GeForce GTX 1080 Ti<br> GPU 6: GeForce GTX 1080 Ti<br> GPU 7: GeForce GTX 1080 Ti</p> <p dir="auto">Nvidia driver version: 410.104<br> cuDNN version: Could not collect</p> <p dir="auto">Versions of relevant libraries:<br> [pip] numpy==1.16.2<br> [pip] numpydoc==0.9.1<br> [pip] torch==1.0.1<br> [conda] blas 1.0 mkl defaults<br> [conda] mkl 2019.4 243 defaults<br> [conda] mkl-service 2.0.2 py37h7b6447c_0 defaults<br> [conda] mkl_fft 1.0.14 py37ha843d7b_0 defaults<br> [conda] mkl_random 1.0.2 py37hd81dba3_0 defaults<br> [conda] pytorch 1.0.1 cuda100py37he554f03_0 defaults</p> <p dir="auto">For v1.3<br> PyTorch version: 1.3.0<br> Is debug build: No<br> CUDA used to build PyTorch: 10.0.130</p> <p dir="auto">OS: Ubuntu 18.04.3 LTS<br> GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0<br> CMake version: version 3.10.2</p> <p dir="auto">Python version: 3.7<br> Is CUDA available: Yes<br> CUDA runtime version: Could not collect<br> GPU models and configuration:<br> GPU 0: GeForce GTX 1080 Ti<br> GPU 1: GeForce GTX 1080 Ti<br> GPU 2: GeForce GTX 1080 Ti<br> GPU 3: GeForce GTX 1080 Ti<br> GPU 4: GeForce GTX 1080 Ti<br> GPU 5: GeForce GTX 1080 Ti<br> GPU 6: GeForce GTX 1080 Ti<br> GPU 7: GeForce GTX 1080 Ti</p> <p dir="auto">Nvidia driver version: 410.104<br> cuDNN version: Could not collect</p> <p dir="auto">Versions of relevant libraries:<br> [pip] numpy==1.16.2<br> [pip] numpydoc==0.9.1<br> [pip] torch==1.3.0<br> [conda] blas 1.0 mkl defaults<br> [conda] mkl 2019.4 243 defaults<br> [conda] mkl-service 2.3.0 py37he904b0f_0 defaults<br> [conda] mkl_fft 1.0.14 py37ha843d7b_0 defaults<br> [conda] mkl_random 1.1.0 py37hd6b4f25_0 defaults<br> [conda] pytorch 1.3.0 py3.7_cuda10.0.130_cudnn7.6.3_0 pytorch</p>
<p dir="auto">Hi,<br> I'm working with Pytorch 0.4, I got the FileNotFoundError Exception in functional.py when it invokes the binary_cross_entropy loss. Here is the stack trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="loss += torch.mean(F.binary_cross_entropy(F.sigmoid(out0), all0) +"><pre class="notranslate"><code class="notranslate">loss += torch.mean(F.binary_cross_entropy(F.sigmoid(out0), all0) + </code></pre></div> <p dir="auto">File "/home/local/.../anaconda2/envs/py27/lib/python2.7/site-packages/torch/nn/functional.py", line 1483, in binary_cross_entropy<br> return torch._C._nn.binary_cross_entropy(input, target, weight, size_average, reduce)<br> RuntimeError: cudaEventSynchronize in future::wait: device-side assert triggered</p> <p dir="auto">I'm aware of this type of issues like <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="317476438" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/6932" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/6932/hovercard" href="https://github.com/pytorch/pytorch/issues/6932">#6932</a>. I added the fix in the locations suggested by the users in threads, however, the exception still occurs. I'd be happy for any help.<br> Best,<br> S.</p>
0
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">When choosing 'Edit selected layout' there should be an option to change the zone spacing - ie the buffer between the zones which when not zero includes a transparent grid around a window locked to the zone. This option only appears when creating a new layout.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1>
<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.535] PowerToys version: 0.14.1.0 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.535] PowerToys version: 0.14.1.0 PowerToy module for which you are reporting the bug (if applicable): FancyZones </code></pre></div> <h1 dir="auto">Description</h1> <p dir="auto">When creating a new Zone in FancyZones, the editor initially seems to suggest that Space (margins) are part of the zone itself.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5230670/72100177-c1e3fe00-32e7-11ea-98d6-821440178eac.png"><img src="https://user-images.githubusercontent.com/5230670/72100177-c1e3fe00-32e7-11ea-98d6-821440178eac.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">However, once the Zone is created there is no place to edit the Space settings again.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5230670/72100215-d627fb00-32e7-11ea-8b84-ac020174a092.png"><img src="https://user-images.githubusercontent.com/5230670/72100215-d627fb00-32e7-11ea-8b84-ac020174a092.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">More importantly, these settings are stored in the registry in a way that is tied to both the Display and one single Virtual Desktop.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5230670/72100278-f5268d00-32e7-11ea-8591-f229222ec9d2.png"><img src="https://user-images.githubusercontent.com/5230670/72100278-f5268d00-32e7-11ea-8591-f229222ec9d2.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">The moment the same Zone is used on another Display or another Virtual Desktop, the Space settings are lost.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5230670/72100329-0b344d80-32e8-11ea-8f80-df1f8921d670.png"><img src="https://user-images.githubusercontent.com/5230670/72100329-0b344d80-32e8-11ea-8f80-df1f8921d670.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Please consider fixing this as part of the move to .json (Issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="493177449" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/368" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/368/hovercard" href="https://github.com/microsoft/PowerToys/issues/368">#368</a>).</p> <p dir="auto">Here are other issues that are likely related to this one:</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="530439708" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/807" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/807/hovercard" href="https://github.com/microsoft/PowerToys/issues/807">#807</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="526709043" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/752" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/752/hovercard" href="https://github.com/microsoft/PowerToys/issues/752">#752</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="493177449" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/368" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/368/hovercard" href="https://github.com/microsoft/PowerToys/issues/368">#368</a></li> </ul>
1
<p dir="auto"><strong>Context:</strong></p> <ul dir="auto"> <li>Playwright Version: [1.10.0]</li> <li>Operating System: [Windows]</li> <li>Node.js version: [v14.15.3]</li> <li>Browser: [All]</li> </ul> <p dir="auto"><strong>Code Snippet</strong></p> <p dir="auto">Help us help you! Put down a short code snippet that illustrates your bug and<br> that we can run and debug locally. For example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npx playwright codegen wikipedia.org"><pre class="notranslate"><code class="notranslate">npx playwright codegen wikipedia.org </code></pre></div> <p dir="auto"><strong>Describe the bug</strong><br> Playwright inspector is not opening. I see a new tab in the tool bar at the bottom but when I click and try to open it, it does not do anything. Also the ode generated cannot be viewed. So in a nutshell cannot open, view the PW inspector.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/83778331/118494540-e358c380-b73f-11eb-8f62-bc9df88d315c.jpg"><img src="https://user-images.githubusercontent.com/83778331/118494540-e358c380-b73f-11eb-8f62-bc9df88d315c.jpg" alt="PW inspector" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Context:</strong></p> <ul dir="auto"> <li>Playwright Version: 1.9.0</li> <li>Operating System: Windows10</li> <li>Node.js version: v12.18.2</li> <li>Browser: Chromium</li> <li>Extra: laptop with 13,3" screen, 1920 x 1080 (FullHD) resolution, scaled to 150%, setup with external monitor placed above laptop screen</li> </ul> <p dir="auto">Example script</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { chromium } = require('playwright'); (async () =&gt; { const browser = await chromium.launch(); const page = await browser.newPage(); })().then(() =&gt; console.log('finished'));"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> chromium <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'playwright'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">browser</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">chromium</span><span class="pl-kos">.</span><span class="pl-en">launch</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">newPage</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'finished'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">When trying to debug script (set PWDEBUG=1) Playwright Inspector window is opened by Playwright outside of visible screen space - it is opened past the right border of the screen.</p> <p dir="auto">in<br> src\server\supplements\recorder\recorderApp.ts RecorderApp.open<br> there is a definitions of arguments for opening the window<br> const args = [<br> '--app=data:text/html,',<br> '--window-size=600,600',<br> '--window-position=1280,10',<br> ];<br> when 1280 is changed to say 700 then Playwright Inspector windows is visible after it is first opened by Playwright.</p>
1
<p dir="auto">I have the following setup:<br> sources<br> -- main.ts<br> ---- library<br> -------- config\base.ts<br> -------- test\spec.ts<br> -------- typings<br> -------------- tsd.d.ts<br> -------------- lodash\lodash.ts<br> main.ts:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import config = require(&quot;./library/config/base&quot;) class main{}"><pre class="notranslate"><code class="notranslate">import config = require("./library/config/base") class main{} </code></pre></div> <p dir="auto">base.ts:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/// &lt;reference path=&quot;../typings/tsd.d.ts&quot; /&gt; import _ = require(&quot;lodash&quot;) import Promise = require(&quot;bluebird&quot;) class ConfigBase{}"><pre class="notranslate"><code class="notranslate">/// &lt;reference path="../typings/tsd.d.ts" /&gt; import _ = require("lodash") import Promise = require("bluebird") class ConfigBase{} </code></pre></div> <p dir="auto">spec.ts:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import config = require(&quot;../config/base&quot;) import server = require(&quot;../../main&quot;) class testspec{}"><pre class="notranslate"><code class="notranslate">import config = require("../config/base") import server = require("../../main") class testspec{} </code></pre></div> <p dir="auto">config/base.ts and main.ts compile just fine. However, on compiling test/spec.ts, tsc.cmd errors out including all the .d.ts files from typings directory. Note, that this issue doesn't occur if main.ts is inside the library directory. Errors:<br> ../../library/typings/bluebird/bluebird.d.ts(19,15): error TS2300: Duplicate identifier 'Promise'.<br> ../../library/typings/bluebird/bluebird.d.ts(604,16): error TS2300: Duplicate identifier 'Promise'.<br> ../../library/typings/bluebird/bluebird.d.ts(709,2): error TS2308: A module cannot have more than one export assignment.<br> ../../library/typings/lodash/lodash.d.ts(51,9): error TS2300: Duplicate identifier 'VERSION'.<br> ../../library/typings/lodash/lodash.d.ts(56,9): error TS2300: Duplicate identifier 'support'.<br> ../../library/typings/lodash/lodash.d.ts(62,9): error TS2300: Duplicate identifier 'templateSettings'.<br> ../../library/typings/lodash/lodash.d.ts(73,9): error TS2300: Duplicate identifier 'escape'.<br> ../../library/typings/lodash/lodash.d.ts(78,9): error TS2300: Duplicate identifier 'evaluate'.<br> ../../library/typings/lodash/lodash.d.ts(83,9): error TS2300: Duplicate identifier 'imports'.<br> ../../library/typings/lodash/lodash.d.ts(88,9): error TS2300: Duplicate identifier 'interpolate'.<br> ../../library/typings/lodash/lodash.d.ts(93,9): error TS2300: Duplicate identifier 'variable'.<br> ../../library/typings/lodash/lodash.d.ts(103,9): error TS2300: Duplicate identifier 'argsClass'.<br> ../../library/typings/lodash/lodash.d.ts(108,9): error TS2300: Duplicate identifier 'argsObject'.<br> ../../library/typings/lodash/lodash.d.ts(114,9): error TS2300: Duplicate identifier 'enumErrorProps'.<br> ../../library/typings/lodash/lodash.d.ts(119,9): error TS2300: Duplicate identifier 'fastBind'.<br> ../../library/typings/lodash/lodash.d.ts(125,9): error TS2300: Duplicate identifier 'funcDecomp'.<br> ../../library/typings/lodash/lodash.d.ts(130,9): error TS2300: Duplicate identifier 'funcNames'.<br> ../../library/typings/lodash/lodash.d.ts(136,9): error TS2300: Duplicate identifier 'nonEnumArgs'.<br> ../../library/typings/lodash/lodash.d.ts(144,9): error TS2300: Duplicate identifier 'nonEnumShadows'.<br> ../../library/typings/lodash/lodash.d.ts(149,9): error TS2300: Duplicate identifier 'ownLast'.<br> ../../library/typings/lodash/lodash.d.ts(160,9): error TS2300: Duplicate identifier 'spliceObjects'.<br> ../../library/typings/lodash/lodash.d.ts(168,9): error TS2300: Duplicate identifier 'unindexedChars'.<br> ../../library/typings/lodash/lodash.d.ts(4976,9): error TS2300: Duplicate identifier 'leading'.<br> ../../library/typings/lodash/lodash.d.ts(4981,9): error TS2300: Duplicate identifier 'maxWait'.<br> ../../library/typings/lodash/lodash.d.ts(4986,9): error TS2300: Duplicate identifier 'trailing'.<br> ../../library/typings/lodash/lodash.d.ts(5121,9): error TS2300: Duplicate identifier 'leading'.<br> ../../library/typings/lodash/lodash.d.ts(5126,9): error TS2300: Duplicate identifier 'trailing'.<br> ../../library/typings/lodash/lodash.d.ts(6279,9): error TS2300: Duplicate identifier 'source'.<br> ../../library/typings/lodash/lodash.d.ts(6372,9): error TS2375: Duplicate number index signature.<br> ../../library/typings/lodash/lodash.d.ts(6373,9): error TS2300: Duplicate identifier 'length'.<br> ../../library/typings/lodash/lodash.d.ts(6377,9): error TS2374: Duplicate string index signature.<br> ../../library/typings/lodash/lodash.d.ts(6382,5): error TS2308: A module cannot have more than one export assignment.<br> ../typings/bluebird/bluebird.d.ts(709,2): error TS2308: A module cannot have more than one export assignment.<br> ../typings/lodash/lodash.d.ts(6382,5): error TS2308: A module cannot have more than one export assignment.</p>
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.8.10</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="// A self-contained demonstration of the problem follows... const ViolationsList = ({ violations: IViolation[] }) =&gt; (&lt;div&gt;&lt;/div&gt;); "><pre class="notranslate"><span class="pl-c">// A self-contained demonstration of the problem follows...</span> <span class="pl-k">const</span> <span class="pl-smi">ViolationsList</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">violations</span>: <span class="pl-smi">IViolation</span><span class="pl-kos">[</span><span class="pl-s1"></span><span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span><span class="pl-kos">&lt;</span><span class="pl-smi">div</span><span class="pl-kos">&gt;</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-smi">div</span><span class="pl-c1">&gt;</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong><br> This code should compile fine.</p> <p dir="auto"><strong>Actual behavior:</strong><br> Error msg printed on line containing <code class="notranslate">violations: IViolation[]</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error TS1005: '=' expected."><pre class="notranslate"><code class="notranslate">error TS1005: '=' expected. </code></pre></div> <p dir="auto">If i change the code to not take an array, it compiles fine:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const ViolationsList = ({ violations: IViolation }) =&gt; (&lt;div&gt;&lt;/div&gt;);"><pre class="notranslate"><code class="notranslate">const ViolationsList = ({ violations: IViolation }) =&gt; (&lt;div&gt;&lt;/div&gt;); </code></pre></div> <p dir="auto">This is a serious bug in typescript.</p>
0
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">Detect URLs and make them clickable (open the URL in the default browser). This is a convenience feature present in many other terminals.</p> <p dir="auto">I believe the value is self-evident, but here's a concrete use case example regardless: when I run <code class="notranslate">yarn outdated</code> (Yarn is a package manager) it outputs a repository/homepage URL for every listed package. I want to be able to click one of those URLs to open the page quickly/easily and have a look at what has changed in the new version of the package.</p> <h1 dir="auto">Implementation details</h1> <ul dir="auto"> <li>Probably don't need to support anything more than text starting with <code class="notranslate">http://</code> or <code class="notranslate">https://</code>.</li> <li>URLs that span multiple lines (due to being truncated by the window width) should be handled correctly.</li> <li>There should probably be an indication that the URL is clickable, e.g. cursor change + underline on mouse hover.</li> <li>Most other terminals require an alt or ctrl click, I presume to guard against accidental clicks when copying and so forth.</li> </ul> <p dir="auto">You can look at something like VS Code's terminal for inspiration. Again this is all probably self-evident.</p> <p dir="auto"><a href="https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda">Stretch goal</a> (covered in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="329179268" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/204" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/204/hovercard" href="https://github.com/microsoft/terminal/issues/204">#204</a>)</p>
<p dir="auto">The <a href="https://youtu.be/8gw0rXPMMPE?t=26" rel="nofollow">marketing video</a> for Terminal included a part where they show links previewing on hover. Is this functionality currently available?</p>
1
<p dir="auto"><strong>Webpack version:</strong><br> 1.10.x and 2.x</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> OSX 10.x / Linux / Windows 10 [all]</p> <p dir="auto"><strong>Expected/desired behavior:</strong></p> <p dir="auto">Highlight at build-time any JavaScript chunks or bundles that are over a size threshold and can negatively impact web performance load times, parse/compile and interactivity. A default performance budget could indicate if <strong>total chunk sizes</strong> for a page are over a limit (e.g 250KB).</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/110953/19857345/90d6681e-9f3a-11e6-8e0a-be9f2742483a.png"><img src="https://cloud.githubusercontent.com/assets/110953/19857345/90d6681e-9f3a-11e6-8e0a-be9f2742483a.png" alt="main-proposal" style="max-width: 100%;"></a></p> <p dir="auto">I'd love to see if we could make this a <strong>default</strong> and offer a config option for opting out <g-emoji class="g-emoji" alias="running_woman" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f3c3-2640.png">🏃‍♀️</g-emoji> Concern with an opt-in is the folks with the worst perf issues may not know to enable it or use this via a plugin if this suggestion was deferred to one. These folks may also not be testing on mobile devices.</p> <p dir="auto">Optionally, highlight where better performance patterns might be helpful:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/110953/19857355/9a34b82a-9f3a-11e6-9820-85846141593f.png"><img src="https://cloud.githubusercontent.com/assets/110953/19857355/9a34b82a-9f3a-11e6-9820-85846141593f.png" alt="second-proposal" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Current behaviour:</strong></p> <p dir="auto">Many of the apps bundled with Webpack that we trace ship a large, single bundle that ends up pegging the main thread and taking longer that it should for webapps to be interactive:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/110953/19858610/5aaeea68-9f3f-11e6-8a14-d4ee64b92f66.jpg"><img src="https://cloud.githubusercontent.com/assets/110953/19858610/5aaeea68-9f3f-11e6-8a14-d4ee64b92f66.jpg" alt="screen shot 2016-10-28 at 1 38 32 pm" style="max-width: 100%;"></a></p> <p dir="auto">This isn't Webpack's fault, just the culture around shipping large monolithic bundles. This situation gets particularly bad on mobile when trying these apps out on real devices.</p> <p dir="auto">If we could fix this, it would also make it way more feasible for the Webpack + React (or Angular) stacks to be good candidates for building fast web apps and Progressive Web Apps <g-emoji class="g-emoji" alias="fire" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f525.png">🔥</g-emoji></p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">I recently dove into profiling a large set (180+) React apps in the wild, based on 470 responses we got from a developer <a href="https://twitter.com/addyosmani/status/788819042777739264" rel="nofollow">survey</a>. This included a mix of small to large scale apps.</p> <p dir="auto">I noted a few common characteristics:</p> <ul dir="auto"> <li>83+% of them use Webpack for module bundling (17% are on Webpack 2)</li> <li>Many ship large monolithic JS bundles down to their users (0.5-1MB+). <strong>In most cases, this makes apps <a href="https://github.com/tdresser/time-to-interactive">interactive</a> in well over 12.4 seconds</strong> on real mobile devices (see table 1) compared to the 4 seconds we see for apps properly using code-splitting and keeping their chunks small. They’re also far slower on desktop than they should be - more JS = more parse/execution time spent at a JS engine level.</li> <li>Developers either don’t use code-splitting or use it while still shipping down large chunks of JS in many cases. More on this soon.</li> </ul> <p dir="auto"><em>Table 1: Summary of time-to-interactive scoring (individual TTI was computed by <a href="https://github.com/googlechrome/lighthouse">Lighthouse</a>)</em></p> <table role="table"> <thead> <tr> <th>Condition</th> <th>Network latency</th> <th>Download Throughput</th> <th>Upload Throughput</th> <th>TTI average React+Webpack app</th> <th>TTI smaller bundles + code-splitting</th> </tr> </thead> <tbody> <tr> <td>Regular 2G</td> <td>150ms</td> <td>450kbps</td> <td>150kbps</td> <td>14.7s</td> <td>5.1s</td> </tr> <tr> <td>Regular 3G</td> <td>150ms</td> <td>1.6MBPs</td> <td>750kbps</td> <td>12.4s</td> <td>4s</td> </tr> <tr> <td>Regular 4G</td> <td>20ms</td> <td>4MBPs</td> <td>3MBPs</td> <td>8.8s</td> <td>3.8s</td> </tr> <tr> <td>Wifi</td> <td>2ms</td> <td>30MBPs</td> <td>15MBPs</td> <td>6s</td> <td>3.4s</td> </tr> </tbody> </table> <p dir="auto">We generally believe that splitting up your work into smaller chunks can get you closer to being interactive sooner, in particular when using HTTP/2. Only serving down the code a user needs for a route is just one pattern here (e.g <a href="http://bit.ly/prpl-pattern" rel="nofollow">PRPL</a>) that we’ve seen helps a great deal.</p> <p dir="auto">Examples of this include the great work done by <a href="https://housing.com" rel="nofollow">Housing.com</a> and <a href="https://flipkart.com" rel="nofollow">Flipkart.com</a>. They use Webpack and are getting those real nice numbers in the last column thanks to diligence with perf budgets and code-splitting 👍.</p> <h2 dir="auto">What impacts a user's ability to interact with an app?</h2> <p dir="auto">A slow time to being interactive can be attributed to a few things:</p> <ol dir="auto"> <li><strong>Client is slow</strong> i.e keeping the main thread busy <g-emoji class="g-emoji" alias="sweat" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f613.png">😓</g-emoji> Large JS bundles will take longer to compile and run. There may be other issues at play, but large JS bundles will definitely peg the main thread. Staying fast by shipping the smallest amount of JS needed to get a route/page interactive is a good pattern, especially on mobile where large bundles will take even longer to load/parse/execute/run <g-emoji class="g-emoji" alias="hourglass_flowing_sand" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/23f3.png">⏳</g-emoji></li> <li>Server/backend may be slow to respond</li> <li>Suboptimal back and forth between the server and client (lots of waterfall requests) that are a sequence of network busy -&gt; CPU idle -&gt; CPU busy -&gt; network idle and so on.</li> </ol> <p dir="auto">If we looked at tools like <a href="https://performancebudget.io" rel="nofollow">performancebudget.io</a>, targeting loading in <a href="https://developers.google.com/web/fundamentals/performance/rail" rel="nofollow">RAIL</a>’s &lt;3s on 3G would place our total JS budget at a far more conservative 106KB once you factor in other resources a typical page might include (like stylesheets and images). The less conservative number of 250KB is an upper bound estimate.</p> <h2 dir="auto">Code-splitting and confusion</h2> <p dir="auto">A surprising 58%+ of responders <strong>said</strong> they were using code-splitting. We also profiled just this subset and found that their average time to being interactive was 12.3 seconds (remember that overall, the average TTI we saw was 12.4 with or without splitting). So, what happened?</p> <p dir="auto">Digging into this data further, we discovered two things.</p> <ul dir="auto"> <li>Either folks that thought they were code-splitting actually weren't and there was a terminology break-down somewhere (e.g maybe they thought using <code class="notranslate">CommonsChunkPlugin</code> to 'split' vendor code from main chunks was code-splitting?) <g-emoji class="g-emoji" alias="thinking" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f914.png">🤔</g-emoji></li> <li>Folks that definitely were code-splitting had <strong>zero</strong> insight into chunk size impact on web performance. We saw lots of people with chunk sizes of 400, 500...all the way up to 1200KB of script who were then also lazy-loading in even more script <g-emoji class="g-emoji" alias="cry" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f622.png">😢</g-emoji></li> </ul> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/110953/19859619/2be126f2-9f43-11e6-9b8e-7fa82eab3be6.png"><img src="https://cloud.githubusercontent.com/assets/110953/19859619/2be126f2-9f43-11e6-9b8e-7fa82eab3be6.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Keep in mind: it's entirely possible to ship fast apps using JS that are interactive quickly with Webpack - if Flipkart can hit it in under 5 seconds, we can definitely bring this number down for the average Webpack user too.</p> <p dir="auto">Note: if you absolutely need a large bundle of JS for a route/page to be useful at all, our advice is to just serve it in one bundle rather than code-split. At an engine level this is cheaper to parse. In most cases, devs aren't going to need all that JS for just one page/view/route so splitting helps.</p> <h2 dir="auto">What device was used in our lab profiling?</h2> <p dir="auto">A Nexus 5X with a real network connection. We also ran tests on emulated setups with throttled CPU and network (2G, 3G, 4G, Wifi). One key thing to note is if this proposal was implemented, it could benefit load times for webapps on all hardware, regardless of whether it's Android or iOS. Fewer bytes shipped down the line = a little more ❤️ for users data plans.</p> <p dir="auto">The time-to-interactive definition we use in Lighthouse is the moment after <code class="notranslate">DOMContentLoaded</code> where the main thread is available enough to handle user input <g-emoji class="g-emoji" alias="hand" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/270b.png">✋</g-emoji>. We look for the first 500ms window where estimated input latency is &lt;50ms at the 90th percentile.</p> <h2 dir="auto">Suppressing the feature</h2> <p dir="auto">Users could opt-out of the feature through their Webpack configuration (we can <g-emoji class="g-emoji" alias="bike" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f6b2.png">🚲</g-emoji> <g-emoji class="g-emoji" alias="house" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f3e0.png">🏠</g-emoji> over that). If a problem is that most devs don't run their dev configs optimized for production, it may be worth considering this feature be enabled when the -p production flag is enabled, however I'm unsure how often that is used. Right now it's unclear if we just want to define a top-level <code class="notranslate">performanceHints</code> config vs a <code class="notranslate">performance</code> object:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="performance: { hints: true, maxBundleSize: 250, warnAtPercent: 80 }"><pre class="notranslate">performance: <span class="pl-kos">{</span> <span class="pl-c1">hints</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">maxBundleSize</span>: <span class="pl-c1">250</span><span class="pl-kos">,</span> <span class="pl-c1">warnAtPercent</span>: <span class="pl-c1">80</span> <span class="pl-kos">}</span></pre></div> <h2 dir="auto">Optional additions to proposal</h2> <p dir="auto">Going further, we could also consider informing you if:</p> <ul dir="auto"> <li>You weren’t taking advantage of patterns like code-splitting (e.g not using <code class="notranslate">require.ensure()</code> or <code class="notranslate">System.import()</code>). This could be expanded to also provide suggestions on other perf plugins (like <code class="notranslate">CommonChunksPlugin</code>)</li> <li>What if Webpack opted for code-splitting by default as long as you were using <code class="notranslate">System.import()</code> or <code class="notranslate">require.ensure()</code>? The minimum config is just the minimum requirements aka the entry ouput today.</li> <li>What if it could guide you through setting up code-splitting and patterns like <a href="https://bit.ly/prpl-pattern" rel="nofollow">PRPL</a> if it detected perf issues? i.e at least install the right Webpack plugins and get your config setup or point you to the docs to finish getting setup?</li> </ul> <p dir="auto"><em>Thanks to Sean Larkin, Shubhie Panicker, Gray Norton and Rob Wormald for reviewing this RFC before I submitted it.</em></p>
<h1 dir="auto">Bug report</h1> <p dir="auto"><strong>What is the current behavior?</strong><br> Installing webpack on a fresh project causes npm to fail reporting "Maximum call stack size exceeded."</p> <p dir="auto">Installation of other packages is working as expected. The problem may be in some other downstream dependency, but I don't know where to begin on that. The attached log looks like it's failing when installing the package <code class="notranslate">long</code>, but I'm able to install that package manually.</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br> <code class="notranslate">md test</code><br> <code class="notranslate">cd test</code><br> <code class="notranslate">npm init -y</code><br> <code class="notranslate">npm install --save-dev webpack</code></p> <p dir="auto"><strong>What is the expected behavior?</strong><br> webpack installation should succeed.</p> <p dir="auto"><strong>Other relevant information:</strong><br> webpack version: latest<br> Node.js version: latest<br> Operating System: Windows 10</p> <p dir="auto">Additional tools:</p> <p dir="auto"><a href="https://github.com/webpack/webpack/files/2870060/2019-02-15T16_55_58_135Z-debug.log">2019-02-15T16_55_58_135Z-debug.log</a></p>
0
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <p dir="auto">I use mongo broker and mongo backend.<br> There is a decoding error while try to get task result with AsyncResult</p> <p dir="auto"><code class="notranslate">File "task_result.py", line 9, in &lt;module&gt; print(res.result) ...... \python37-32\Lib\json\__init__.py", line 341, in loads raise TypeError(f'the JSON object must be str, bytes or bytearray, ' kombu.exceptions.DecodeError: the JSON object must be str, bytes or bytearray, not dict</code></p> <p dir="auto">tasks.py</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; @celery.task(name='web.add', bind=True) &gt; def add_test(self, x): &gt; time.sleep(6) &gt; message = 'IN WORKER' &gt; self.update_state(state='PROGRESS', meta={ 'current': 50, 'total': 100, 'status': message}) &gt; time.sleep(10) &gt; message = 'END' &gt; return { 'current': 100, 'total': 100, 'status': message, 'result': { 'video_url': 42, 'video_player_url' : 'https://invidza.com' } }"><pre class="notranslate"><code class="notranslate">&gt; @celery.task(name='web.add', bind=True) &gt; def add_test(self, x): &gt; time.sleep(6) &gt; message = 'IN WORKER' &gt; self.update_state(state='PROGRESS', meta={ 'current': 50, 'total': 100, 'status': message}) &gt; time.sleep(10) &gt; message = 'END' &gt; return { 'current': 100, 'total': 100, 'status': message, 'result': { 'video_url': 42, 'video_player_url' : 'https://invidza.com' } } </code></pre></div> <p dir="auto">task_result.py</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;res = add.AsyncResult('d6605146-9296-463f-9463-9795d6b87f37') &gt;print(res) &gt;print(res.result)"><pre class="notranslate"><code class="notranslate">&gt;res = add.AsyncResult('d6605146-9296-463f-9463-9795d6b87f37') &gt;print(res) &gt;print(res.result) </code></pre></div> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>:</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: N/A or Unknown</li> <li><strong>Minimal Celery Version</strong>: N/A or Unknown</li> <li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">result = {'current': 50, 'total': 100, 'status': 'IN WORKER'}</p> <h1 dir="auto">Actual Behavior</h1>
<h1 dir="auto">Checklist</h1> <ul dir="auto"> <li>[x ] I have checked the <a href="https://github.com/celery/celery/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+label%3A%22Category%3A+Documentation%22+">issues list</a><br> for similar or identical bug reports.</li> <li>[ x] I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li>[x ] I have checked the <a href="https://github.com/celery/celery/commits/main">commit log</a><br> to find out if the bug was already fixed in the main branch.</li> <li>[ x] I have included all related issues and possible duplicate issues in this issue<br> (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h1 dir="auto">Description</h1> <p dir="auto">I have couple of questions about the <a href="https://docs.celeryq.dev/en/stable/getting-started/backends-and-brokers/index.html" rel="nofollow">backends-and-brokers</a> page.</p> <ol dir="auto"> <li>I see under <a href="https://docs.celeryq.dev/en/stable/getting-started/backends-and-brokers/index.html#rabbitmq" rel="nofollow">RabbitMQ note</a>, it is written,</li> </ol> <p dir="auto"><code class="notranslate">If more guaranteed long-term persistence is needed from the result store, consider using PostgreSQL or MySQL (through SQLAlchemy).</code></p> <p dir="auto">Whereas under <a href="https://docs.celeryq.dev/en/stable/getting-started/backends-and-brokers/index.html#sqlalchemy" rel="nofollow">SQLAlchemy</a> it is written,</p> <p dir="auto"><code class="notranslate">Historically, SQLAlchemy has not been the most stable result backend so if chosen one should proceed with caution.</code></p> <p dir="auto">IMO, these are either two conflicting statements. IMO, The second statement is inaccurate &amp; misleading considering the fact that SQLAlchemy ORM has developed a lot and is very stable. We have been using Airflow + Celery + MySQL as a result backend for more than four years without a single issue. We have been using the open-source tool Apache Superset which is totally dependent on SQLAlchemy and there are no major or consistent issues reported with SQLAlchemy in that project as well.</p> <p dir="auto">IMO, SQLAlchemy should not be considered a non-stable result backend.</p> <ol start="2" dir="auto"> <li>There is no configuration reference URL for SQLAlchemy like it is present for other backends. I think we can add a reference to this <a href="https://docs.celeryq.dev/en/latest/userguide/configuration.html#database-backend-settings" rel="nofollow">configuration page section</a>.</li> </ol> <h1 dir="auto">Suggestions</h1> <p dir="auto">If you agree then I am happy to raise a PR to remove this line from the doc.</p> <p dir="auto"><code class="notranslate">Historically, SQLAlchemy has not been the most stable result backend so if chosen one should proceed with caution.</code></p> <p dir="auto">and add the above-said configuration doc reference for SQLAlchemy.</p> <p dir="auto">You just have to let me know which GitHub file in this repo I have to update.</p>
0
<p dir="auto">React team recently announced hooks: <a href="https://medium.com/@dan_abramov/making-sense-of-react-hooks-fdbde8803889" rel="nofollow">https://medium.com/@dan_abramov/making-sense-of-react-hooks-fdbde8803889</a>. Due to how similar Flutter is with React, it would probably be interesting to see if these fits to Flutter too.</p> <h3 dir="auto">The definition:</h3> <p dir="auto">Hooks are very similar to the <code class="notranslate">State</code> of <code class="notranslate">StatefulWidget</code> with one main difference: We can have as many hooks as we like on a widget.<br> Hooks have access to all the life-cycles that a <code class="notranslate">State</code> have (or a modified version).</p> <p dir="auto">Hooks can be used on any given widget. Contrarily to <code class="notranslate">State</code> which can be used only for one specific widget type.</p> <p dir="auto">Hooks are different from super mixins because they cannot generate conflicts. Hooks are <em>entirely</em> independent and unrelated to the widget.<br> This means that a Hook can be used to store values and publicly expose it without fear of conflicts. It also means that we can reuse the same Hook multiple times, contrarily to mixins.</p> <h3 dir="auto">The principle:</h3> <p dir="auto">Hooks are basically stored within the <code class="notranslate">Element</code> in an Array. They are accessible only from within the <code class="notranslate">build</code> method of a widget. And hooks should be accessed unconditionally, example:</p> <p dir="auto">DO:</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Widget build(BuildContext context) { Hook.use(MyHook()); }"><pre class="notranslate"><span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-c1">Hook</span>.<span class="pl-en">use</span>(<span class="pl-c1">MyHook</span>()); }</pre></div> <p dir="auto">DON'T:</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Widget build(BuildContext context) { if (condition) { Hook.use(MyHook()); } }"><pre class="notranslate"><span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-k">if</span> (condition) { <span class="pl-c1">Hook</span>.<span class="pl-en">use</span>(<span class="pl-c1">MyHook</span>()); } }</pre></div> <p dir="auto">This restriction may seem very limiting, but it is because hooks are stored by their index. Not their type nor name.<br> This allows reusing the same hook as many time as desired, without any collision.</p> <h3 dir="auto">The use case</h3> <p dir="auto">The most useful part of Hooks is that they allow extracting life-cycle logic into a reusable component.</p> <p dir="auto">One typical issue with Flutter widgets is disposable objects such as <code class="notranslate">AnimationController</code>.<br> They usually require both an <code class="notranslate">initState</code> and a <code class="notranslate">dispose</code> override. But at the same time cannot be extracted into a mixin for maintainability reasons.</p> <p dir="auto">This leads to a common code-snipper: <code class="notranslate">stanim</code></p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Example extends StatefulWidget { @override ExampleState createState() =&gt; ExampleState(); } class ExampleState extends State&lt;Example&gt; with SingleTickerProviderStateMixin { AnimationController _controller; @override void initState() { super.initState(); _controller = AnimationController(vsync: this, duration: const Duration(seconds: 1)); } @override void dispose() { super.dispose(); _controller.dispose(); } @override Widget build(BuildContext context) { return Container( ); } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-c1">Example</span> <span class="pl-k">extends</span> <span class="pl-c1">StatefulWidget</span> { <span class="pl-k">@override</span> <span class="pl-c1">ExampleState</span> <span class="pl-en">createState</span>() <span class="pl-k">=&gt;</span> <span class="pl-c1">ExampleState</span>(); } <span class="pl-k">class</span> <span class="pl-c1">ExampleState</span> <span class="pl-k">extends</span> <span class="pl-c1">State</span>&lt;<span class="pl-c1">Example</span>&gt; <span class="pl-k">with</span> <span class="pl-c1">SingleTickerProviderStateMixin</span> { <span class="pl-c1">AnimationController</span> _controller; <span class="pl-k">@override</span> <span class="pl-k">void</span> <span class="pl-en">initState</span>() { <span class="pl-c1">super</span>.<span class="pl-en">initState</span>(); _controller <span class="pl-k">=</span> <span class="pl-c1">AnimationController</span>(vsync<span class="pl-k">:</span> <span class="pl-c1">this</span>, duration<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">Duration</span>(seconds<span class="pl-k">:</span> <span class="pl-c1">1</span>)); } <span class="pl-k">@override</span> <span class="pl-k">void</span> <span class="pl-en">dispose</span>() { <span class="pl-c1">super</span>.<span class="pl-en">dispose</span>(); _controller.<span class="pl-en">dispose</span>(); } <span class="pl-k">@override</span> <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-k">return</span> <span class="pl-c1">Container</span>( ); } }</pre></div> <hr> <p dir="auto">Hooks solves this issue by extracting the life-cycle logic. This leads to a potentially <em>much</em> smaller code:</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Example extends StatelessWidget { @override Widget build(BuildContext context) { AnimationController controller = useAnimationController(duration: const Duration(seconds: 1)); return Container( ); } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-c1">Example</span> <span class="pl-k">extends</span> <span class="pl-c1">StatelessWidget</span> { <span class="pl-k">@override</span> <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-c1">AnimationController</span> controller <span class="pl-k">=</span> <span class="pl-en">useAnimationController</span>(duration<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">Duration</span>(seconds<span class="pl-k">:</span> <span class="pl-c1">1</span>)); <span class="pl-k">return</span> <span class="pl-c1">Container</span>( ); } }</pre></div> <p dir="auto">A naive implementation of such hook could be the following function:</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="AnimationController useAnimationController({Duration duration}) { // use another hook to obtain a TickerProvider final tickerProvider = useTickerProvider(); // create an AnimationController once final animationController = useMemoized&lt;AnimationController&gt;( () =&gt; AnimationController(vsync: tickerProvider, duration: duration) ); // register `dispose` method to be closed on widget removal useEffect(() =&gt; animationController.dispose, [animationController]), // synchronize the arguments useValueChanged(duration, (_, __) { animationController.duration = duration; }); return animationController; }"><pre class="notranslate"><span class="pl-c1">AnimationController</span> <span class="pl-en">useAnimationController</span>({<span class="pl-c1">Duration</span> duration}) { <span class="pl-c">// use another hook to obtain a TickerProvider</span> <span class="pl-k">final</span> tickerProvider <span class="pl-k">=</span> <span class="pl-en">useTickerProvider</span>(); <span class="pl-c">// create an AnimationController once</span> <span class="pl-k">final</span> animationController <span class="pl-k">=</span> <span class="pl-en">useMemoized</span>&lt;<span class="pl-c1">AnimationController</span>&gt;( () <span class="pl-k">=&gt;</span> <span class="pl-c1">AnimationController</span>(vsync<span class="pl-k">:</span> tickerProvider, duration<span class="pl-k">:</span> duration) ); <span class="pl-c">// register `dispose` method to be closed on widget removal</span> <span class="pl-en">useEffect</span>(() <span class="pl-k">=&gt;</span> animationController.dispose, [animationController]), <span class="pl-c">// synchronize the arguments</span> <span class="pl-en">useValueChanged</span>(duration, (_, __) { animationController.duration <span class="pl-k">=</span> duration; }); <span class="pl-k">return</span> animationController; }</pre></div> <p dir="auto"><code class="notranslate">useAnimationController</code> is one of those "Hook".</p> <p dir="auto">Where a naive implementation of such hook would be the following:</p> <p dir="auto">That code should look similar to somebody used to <code class="notranslate">State</code> class. But this has a few interesting points:</p> <ul dir="auto"> <li>The hook entirely takes care of the <code class="notranslate">AnimationController</code>, from creation to disposal. But also updates.</li> <li>It can easily be extracted into a reusable package</li> <li>It also takes care of <code class="notranslate">duration</code> updating on hot-reload as opposed to creating an <code class="notranslate">AnimationController</code> in the <code class="notranslate">initState</code> .</li> <li>Hooks can use other hooks to build more complex logic</li> </ul> <h3 dir="auto">Drawbacks</h3> <p dir="auto">Hooks comes with a cost. The access to a value has an overhead similar to an <code class="notranslate">InheritedElement</code>. And they also require to create a new set of short-lived objects such as closures or "Widget" like.</p> <p dir="auto">I have yet to run a benchmark to see the real difference though</p> <hr> <p dir="auto">Another issue is about hot-reload.</p> <p dir="auto">Adding hooks at the end of the list if fine. But since hooks work based on their order, adding hooks in the middle of existing hooks will cause a partial state reset. Example:</p> <p dir="auto">Going from <code class="notranslate">A, B</code> to <code class="notranslate">A, C, B</code> will reset the state of <code class="notranslate">B</code> (calling both <code class="notranslate">dispose</code> and <code class="notranslate">initHook</code> again).</p> <h3 dir="auto">Conclusion</h3> <p dir="auto">Hooks simplifies <em>a lot</em> the widgets world by allowing a bigger code reuse. Especially on the very common scenarios such as dispose, memoize and watching a value.</p> <p dir="auto"><strong>They can be used to entirely replace a StatefulWidget.</strong></p> <p dir="auto">But they require a mind shift though, and the partial state reset on refactoring may be bothersome.</p> <p dir="auto">It is possible to extract hooks outside of Flutter by creating custom Elements. There's no need to modify the sources as of now.</p> <p dir="auto">But due to the specificity of hooks, it would benefit <em>a lot</em> from a custom linter. Which external packages cannot provide at the moment.</p> <h4 dir="auto">Bonus</h4> <p dir="auto"><del>A work in progress implementation is available here: <a href="https://github.com/rrousselGit/flutter_hooks">https://github.com/rrousselGit/flutter_hooks</a> (latest features are on <code class="notranslate">prod-ready</code> branch).</del></p> <p dir="auto"><del>A release is planned soon as alpha. But the current implementation works to some extents.</del></p> <p dir="auto">Available here <a href="https://pub.dartlang.org/packages/flutter_hooks#-readme-tab-" rel="nofollow">https://pub.dartlang.org/packages/flutter_hooks#-readme-tab-</a></p>
<p dir="auto">1 : Two TextField . For Login Page<br> 2. First TextField KeyBoard IS SimpleChinese ,not click done then I focus PassWordField ,Crash</p> <p dir="auto">Doctor summary (to see all details, run flutter doctor -v):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel unknown, v0.10.1, on Mac OS X 10.14 18A391, locale zh-Hans-CN) [!] Android toolchain - develop for Android devices (Android SDK 28.0.1) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses [!] iOS toolchain - develop for iOS devices (Xcode 10.0) ! CocoaPods out of date (1.5.0 is recommended). CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart side. Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS. For more info, see https://flutter.io/platform-plugins To upgrade: brew upgrade &gt; cocoapods pod setup [✓] Android Studio (version 3.1) [✓] Connected device (3 available) ! Doctor found issues in 2 categories."><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel unknown, v0.10.1, on Mac OS X 10.14 18A391, locale zh-Hans-CN) [!] Android toolchain - develop for Android devices (Android SDK 28.0.1) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses [!] iOS toolchain - develop for iOS devices (Xcode 10.0) ! CocoaPods out of date (1.5.0 is recommended). CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart side. Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS. For more info, see https://flutter.io/platform-plugins To upgrade: brew upgrade &gt; cocoapods pod setup [✓] Android Studio (version 3.1) [✓] Connected device (3 available) ! Doctor found issues in 2 categories. </code></pre></div>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/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: xxx</li> <li>Operating System version: xxx</li> <li>Java version: xxx</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>xxx</li> <li>xxx</li> <li>xxx</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
<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: v2.7.3</li> <li>Java version: 1.8</li> <li>Maven version: 3.6.1</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">here is an project that reproduces this issue.<br> <a href="https://github.com/spawpaw/dubbo-duplicate-dep-demo">https://github.com/spawpaw/dubbo-duplicate-dep-demo</a></p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">this is my error log:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2019-12-16 14:43:06.210 ERROR 3220 --- [ restartedMain] o.a.d.c.Version : [DUBBO] Duplicate class org/apache/dubbo/common/Version.class in 2 jar [file:/C:/var/repository/org/apache/dubbo/dubbo-common/2.7.3/dubbo-common-2.7.3.jar!/org/apache/dubbo/common/Version.class, file:/C:/var/repository/org/apache/dubbo/dubbo/2.7.3/dubbo-2.7.3.jar!/org/apache/dubbo/common/Version.class], dubbo version: 2.7.3, current host: 169.254.227.5 14:43:21.307 ERROR 3220 --- [ restartedMain] o.a.d.c.Version :236 : [DUBBO] Duplicate class org/apache/dubbo/remoting/exchange/Exchangers.class in 2 jar [file:/C:/var/repository/org/apache/dubbo/dubbo-remoting-api/2.7.3/dubbo-remoting-api-2.7.3.jar!/org/apache/dubbo/remoting/exchange/Exchangers.class, file:/C:/var/repository/org/apache/dubbo/dubbo/2.7.3/dubbo-2.7.3.jar!/org/apache/dubbo/remoting/exchange/Exchangers.class], dubbo version: 2.7.3, current host: 169.254.227.5 14:43:21.319 ERROR 3220 --- [ restartedMain] o.a.d.c.Version :236 : [DUBBO] Duplicate class org/apache/dubbo/remoting/Transporters.class in 2 jar [file:/C:/var/repository/org/apache/dubbo/dubbo-remoting-api/2.7.3/dubbo-remoting-api-2.7.3.jar!/org/apache/dubbo/remoting/Transporters.class, file:/C:/var/repository/org/apache/dubbo/dubbo/2.7.3/dubbo-2.7.3.jar!/org/apache/dubbo/remoting/Transporters.class], dubbo version: 2.7.3, current host: 169.254.227.5 14:43:21.320 ERROR 3220 --- [ restartedMain] o.a.d.c.Version :236 : [DUBBO] Duplicate class org/apache/dubbo/remoting/RemotingException.class in 2 jar [file:/C:/var/repository/org/apache/dubbo/dubbo/2.7.3/dubbo-2.7.3.jar!/org/apache/dubbo/remoting/RemotingException.class, file:/C:/var/repository/org/apache/dubbo/dubbo-remoting-api/2.7.3/dubbo-remoting-api-2.7.3.jar!/org/apache/dubbo/remoting/RemotingException.class], dubbo version: 2.7.3, current host: 169.254.227.5 "><pre class="notranslate"><code class="notranslate">2019-12-16 14:43:06.210 ERROR 3220 --- [ restartedMain] o.a.d.c.Version : [DUBBO] Duplicate class org/apache/dubbo/common/Version.class in 2 jar [file:/C:/var/repository/org/apache/dubbo/dubbo-common/2.7.3/dubbo-common-2.7.3.jar!/org/apache/dubbo/common/Version.class, file:/C:/var/repository/org/apache/dubbo/dubbo/2.7.3/dubbo-2.7.3.jar!/org/apache/dubbo/common/Version.class], dubbo version: 2.7.3, current host: 169.254.227.5 14:43:21.307 ERROR 3220 --- [ restartedMain] o.a.d.c.Version :236 : [DUBBO] Duplicate class org/apache/dubbo/remoting/exchange/Exchangers.class in 2 jar [file:/C:/var/repository/org/apache/dubbo/dubbo-remoting-api/2.7.3/dubbo-remoting-api-2.7.3.jar!/org/apache/dubbo/remoting/exchange/Exchangers.class, file:/C:/var/repository/org/apache/dubbo/dubbo/2.7.3/dubbo-2.7.3.jar!/org/apache/dubbo/remoting/exchange/Exchangers.class], dubbo version: 2.7.3, current host: 169.254.227.5 14:43:21.319 ERROR 3220 --- [ restartedMain] o.a.d.c.Version :236 : [DUBBO] Duplicate class org/apache/dubbo/remoting/Transporters.class in 2 jar [file:/C:/var/repository/org/apache/dubbo/dubbo-remoting-api/2.7.3/dubbo-remoting-api-2.7.3.jar!/org/apache/dubbo/remoting/Transporters.class, file:/C:/var/repository/org/apache/dubbo/dubbo/2.7.3/dubbo-2.7.3.jar!/org/apache/dubbo/remoting/Transporters.class], dubbo version: 2.7.3, current host: 169.254.227.5 14:43:21.320 ERROR 3220 --- [ restartedMain] o.a.d.c.Version :236 : [DUBBO] Duplicate class org/apache/dubbo/remoting/RemotingException.class in 2 jar [file:/C:/var/repository/org/apache/dubbo/dubbo/2.7.3/dubbo-2.7.3.jar!/org/apache/dubbo/remoting/RemotingException.class, file:/C:/var/repository/org/apache/dubbo/dubbo-remoting-api/2.7.3/dubbo-remoting-api-2.7.3.jar!/org/apache/dubbo/remoting/RemotingException.class], dubbo version: 2.7.3, current host: 169.254.227.5 </code></pre></div> <p dir="auto">lets inspect the artifact <code class="notranslate">org.apache.dubbo:dubbo-common </code> and <code class="notranslate">org.apache.dubbo:dubbo</code>:</p> <p dir="auto">dubbo-common:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18007922/70884353-c41caa80-2010-11ea-84ec-63d0cc268987.png"><img src="https://user-images.githubusercontent.com/18007922/70884353-c41caa80-2010-11ea-84ec-63d0cc268987.png" alt="图片" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18007922/70884364-ce3ea900-2010-11ea-8cba-283486f12775.png"><img src="https://user-images.githubusercontent.com/18007922/70884364-ce3ea900-2010-11ea-8cba-283486f12775.png" alt="图片" style="max-width: 100%;"></a></p> <p dir="auto">dubbo-remoting:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18007922/70884919-478acb80-2012-11ea-855f-de523dc3ecdb.png"><img src="https://user-images.githubusercontent.com/18007922/70884919-478acb80-2012-11ea-855f-de523dc3ecdb.png" alt="图片" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18007922/70884974-6f7a2f00-2012-11ea-8327-6043ebf221e7.png"><img src="https://user-images.githubusercontent.com/18007922/70884974-6f7a2f00-2012-11ea-8327-6043ebf221e7.png" alt="图片" style="max-width: 100%;"></a></p> <p dir="auto">It seems that <code class="notranslate">org.apache.dubbo:dubbo </code> packages all classes in all modules into one artifact, so when other framework wants to depend a single dubbo module, the duplicate class error occurs.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">decompose <code class="notranslate">org.apache.dubbo:dubbo</code></p> <h3 dir="auto">See also</h3> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="462304704" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/4427" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/4427/hovercard" href="https://github.com/apache/dubbo/issues/4427">#4427</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="351479637" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/2314" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/2314/hovercard" href="https://github.com/apache/dubbo/issues/2314">#2314</a></p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=pakin" rel="nofollow">Angel</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8684?redirect=false" rel="nofollow">SPR-8684</a></strong> and commented</p> <p dir="auto">Rossen,</p> <p dir="auto">in order to have this functionality available and be backward compatible at the same time could be having two additional paramters in the form tag:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;form:form method=&quot;post&quot; action=&quot;/registration/submit&quot; commandName=&quot;registrationForm&quot; resolveContext=&quot;true&quot; resolveMapping=&quot;true&quot;&gt; ... &lt;/form:form&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">form:form</span> <span class="pl-c1">method</span>="<span class="pl-s">post</span>" <span class="pl-c1">action</span>="<span class="pl-s">/registration/submit</span>" <span class="pl-c1">commandName</span>="<span class="pl-s">registrationForm</span>" <span class="pl-c1">resolveContext</span>="<span class="pl-s">true</span>" <span class="pl-c1">resolveMapping</span>="<span class="pl-s">true</span>"<span class="pl-kos">&gt;</span> ... <span class="pl-kos">&lt;/</span><span class="pl-ent">form:form</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">If you agree I am happy to implement :-)</p> <p dir="auto">Cheers.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1 M2</p> <p dir="auto"><strong>Reference URL:</strong> <a href="https://jira.springsource.org/browse/SPR-8638" rel="nofollow">https://jira.springsource.org/browse/SPR-8638</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="398103552" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11609" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11609/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11609">#11609</a> Prepend contextPath in form tag (<em><strong>"duplicates"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398095218" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10449" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10449/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10449">#10449</a> Allow links to <code class="notranslate">@Controller</code> methods from views without hardcoding URLs</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398157923" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/15015" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/15015/hovercard" href="https://github.com/spring-projects/spring-framework/issues/15015">#15015</a> Form tag prepending context/servlet path breaks use for portlets</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/ad025b59c5e933fb7181c76f530e1f4ecc8f7c50/hovercard" href="https://github.com/spring-projects/spring-framework/commit/ad025b59c5e933fb7181c76f530e1f4ecc8f7c50"><tt>ad025b5</tt></a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=reinhard" rel="nofollow">Reinhard Pötz</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4081?redirect=false" rel="nofollow">SPR-4081</a></strong> and commented</p> <p dir="auto">The return type of o.s.b.f.x.XmlBeanDefinitionReader#getReader() has changed from</p> <p dir="auto">org.springframework.beans.factory.xml.XmlBeanDefinitionReader</p> <p dir="auto">to</p> <p dir="auto">org.springframework.beans.factory.support.BeanDefinitionReader</p> <p dir="auto">If you use this method you have to recompile your code, otherwise you get following exception:</p> <p dir="auto">org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.XmlReaderContext.getReader()Lorg/springframework/beans/factory/xml/XmlBeanDefinitionReader;<br> at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:385)<br> at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:313)<br> at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:290)<br> at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)<br> at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:158)<br> at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)<br> at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)<br> at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:97)<br> at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:411)<br> at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:338)<br> at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:245)<br> at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:188)<br> at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)</p> <p dir="auto">Since this change prevents you from just dropping in the new Spring libs into your application, I marked this report as "blocker".</p> <p dir="auto">BTW, I'm not the only one who run into this problem: See also <a href="https://issues.apache.org/jira/browse/XBEAN-88" rel="nofollow">https://issues.apache.org/jira/browse/XBEAN-88</a></p> <hr> <p dir="auto"><strong>Affects:</strong> 2.5 RC1</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398082535" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8768" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8768/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8768">#8768</a> Issue with apache xbean when upgrading spring from 2.0 to 2.1-rc or 2.5-rc1 (<em><strong>"is duplicated by"</strong></em>)</li> </ul>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">core / vars expansion</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.0.0 config file = configured module search path = Default w/o overrides```"><pre class="notranslate"><code class="notranslate">ansible 2.2.0.0 config file = configured module search path = Default w/o overrides``` </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">N/A</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Ubuntu 16.04</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">A variable assignment can pass through a simple numeric value, but not a numeric value from a member of an object - in that case it gets silently converted to a string.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hosts: localhost vars: five: 5 nested: five: 5 tasks: - set_fact: a: 5 b: '{{ five }}' c: '{{ nested.five }}' - debug: msg=&quot;a0={{a}}&quot; - debug: msg=&quot;a1={{a+1}}&quot; - debug: msg=&quot;b0={{b}}&quot; - debug: msg=&quot;b1={{b+1}}&quot; - debug: msg=&quot;c0={{c}}&quot; - debug: msg=&quot;c1={{c+1}}&quot;"><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">localhost</span> <span class="pl-ent">vars</span>: <span class="pl-ent">five</span>: <span class="pl-c1">5</span> <span class="pl-ent">nested</span>: <span class="pl-ent">five</span>: <span class="pl-c1">5</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">set_fact</span>: <span class="pl-ent">a</span>: <span class="pl-c1">5</span> <span class="pl-ent">b</span>: <span class="pl-s"><span class="pl-pds">'</span>{{ five }}<span class="pl-pds">'</span></span> <span class="pl-ent">c</span>: <span class="pl-s"><span class="pl-pds">'</span>{{ nested.five }}<span class="pl-pds">'</span></span> - <span class="pl-ent">debug</span>: <span class="pl-s">msg="a0={{a}}"</span> - <span class="pl-ent">debug</span>: <span class="pl-s">msg="a1={{a+1}}"</span> - <span class="pl-ent">debug</span>: <span class="pl-s">msg="b0={{b}}"</span> - <span class="pl-ent">debug</span>: <span class="pl-s">msg="b1={{b+1}}"</span> - <span class="pl-ent">debug</span>: <span class="pl-s">msg="c0={{c}}"</span> - <span class="pl-ent">debug</span>: <span class="pl-s">msg="c1={{c+1}}"</span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">a, b and c are the number 5; the values of a+1, b+1 and c+1 are 6.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [localhost] *************************************************************** TASK [setup] ******************************************************************* ok: [localhost] TASK [set_fact] **************************************************************** ok: [localhost] TASK [debug] ******************************************************************* ok: [localhost] =&gt; { &quot;msg&quot;: &quot;a0=5&quot; } TASK [debug] ******************************************************************* ok: [localhost] =&gt; { &quot;msg&quot;: &quot;a1=6&quot; } TASK [debug] ******************************************************************* ok: [localhost] =&gt; { &quot;msg&quot;: &quot;b0=5&quot; } TASK [debug] ******************************************************************* ok: [localhost] =&gt; { &quot;msg&quot;: &quot;b1=6&quot; } TASK [debug] ******************************************************************* ok: [localhost] =&gt; { &quot;msg&quot;: &quot;c0=5&quot; } TASK [debug] ******************************************************************* fatal: [localhost]: FAILED! =&gt; {&quot;failed&quot;: true, &quot;msg&quot;: &quot;Unexpected templating type error occurred on (c1={{c+1}}): coercing to Unicode: need string or buffer, int found&quot;} to retry, use: --limit @/home/ubuntu/vtp/ansible/bar.retry"><pre class="notranslate"><code class="notranslate">PLAY [localhost] *************************************************************** TASK [setup] ******************************************************************* ok: [localhost] TASK [set_fact] **************************************************************** ok: [localhost] TASK [debug] ******************************************************************* ok: [localhost] =&gt; { "msg": "a0=5" } TASK [debug] ******************************************************************* ok: [localhost] =&gt; { "msg": "a1=6" } TASK [debug] ******************************************************************* ok: [localhost] =&gt; { "msg": "b0=5" } TASK [debug] ******************************************************************* ok: [localhost] =&gt; { "msg": "b1=6" } TASK [debug] ******************************************************************* ok: [localhost] =&gt; { "msg": "c0=5" } TASK [debug] ******************************************************************* fatal: [localhost]: FAILED! =&gt; {"failed": true, "msg": "Unexpected templating type error occurred on (c1={{c+1}}): coercing to Unicode: need string or buffer, int found"} to retry, use: --limit @/home/ubuntu/vtp/ansible/bar.retry </code></pre></div> <p dir="auto">That is, the value of c is a string not a number.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Here is another example, this time using the <code class="notranslate">vars</code> option to the <code class="notranslate">template</code> module. The final test case, using with_items, is the actual use case which bit me.</p> <p dir="auto">templates/test.j2</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{% for i in range(num) %} {{ i }} {% endfor %}"><pre class="notranslate"><code class="notranslate">{% for i in range(num) %} {{ i }} {% endfor %} </code></pre></div> <p dir="auto">foo.yml</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hosts: localhost tasks: - name: test with direct var template: src: test.j2 dest: /tmp/f1 vars: num: 5 - name: test with item var template: src: test.j2 dest: '{{ item.filename }}' vars: num: '{{ item.count }}' with_items: - { filename: '/tmp/f2', count: 5 }"><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">localhost</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">name</span>: <span class="pl-s">test with direct var</span> <span class="pl-ent">template</span>: <span class="pl-ent">src</span>: <span class="pl-s">test.j2</span> <span class="pl-ent">dest</span>: <span class="pl-s">/tmp/f1</span> <span class="pl-ent">vars</span>: <span class="pl-ent">num</span>: <span class="pl-c1">5</span> - <span class="pl-ent">name</span>: <span class="pl-s">test with item var</span> <span class="pl-ent">template</span>: <span class="pl-ent">src</span>: <span class="pl-s">test.j2</span> <span class="pl-ent">dest</span>: <span class="pl-s"><span class="pl-pds">'</span>{{ item.filename }}<span class="pl-pds">'</span></span> <span class="pl-ent">vars</span>: <span class="pl-ent">num</span>: <span class="pl-s"><span class="pl-pds">'</span>{{ item.count }}<span class="pl-pds">'</span></span> <span class="pl-ent">with_items</span>: - <span class="pl-s">{ filename: '/tmp/f2', count: 5 }</span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">In both cases, the template would be expanded with <code class="notranslate">num</code> equal to the number 5.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [localhost] *************************************************************** TASK [setup] ******************************************************************* ok: [localhost] TASK [test with direct var] **************************************************** ok: [localhost] TASK [test with item var] ****************************************************** failed: [localhost] (item={u'count': 5, u'filename': u'/tmp/f2'}) =&gt; {&quot;failed&quot;: true, &quot;item&quot;: {&quot;count&quot;: 5, &quot;filename&quot;: &quot;/tmp/f2&quot;}, &quot;msg&quot;: &quot;AnsibleError: Unexpected templating type error occurred on ({% for i in range(num) %}\n{{ i }}\n{% endfor %}\n): an integer is required&quot;} to retry, use: --limit @/home/ubuntu/vtp/ansible/foo.retry"><pre class="notranslate"><code class="notranslate">PLAY [localhost] *************************************************************** TASK [setup] ******************************************************************* ok: [localhost] TASK [test with direct var] **************************************************** ok: [localhost] TASK [test with item var] ****************************************************** failed: [localhost] (item={u'count': 5, u'filename': u'/tmp/f2'}) =&gt; {"failed": true, "item": {"count": 5, "filename": "/tmp/f2"}, "msg": "AnsibleError: Unexpected templating type error occurred on ({% for i in range(num) %}\n{{ i }}\n{% endfor %}\n): an integer is required"} to retry, use: --limit @/home/ubuntu/vtp/ansible/foo.retry </code></pre></div> <p dir="auto">That is, in the with_items case, the value is string "5" rather than number 5.</p> <h5 dir="auto">WORKAROUND</h5> <p dir="auto">Change the template so it says:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{% for i in range(num | int) %} {{ i }} {% endfor %}"><pre class="notranslate"><code class="notranslate">{% for i in range(num | int) %} {{ i }} {% endfor %} </code></pre></div> <p dir="auto">But this seems very arbitrary. Surely an integer value is always an integer value?</p>
<p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/my2ndhead/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/my2ndhead">@my2ndhead</a> on 2016-02-08T19:49:03Z</p> <h5 dir="auto">ISSUE TYPE</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">ini_file module</p> <h5 dir="auto">ANSIBLE VERSION</h5> <p dir="auto">2.0.0.2</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Compared to 1.9.x the version 2.0.0.2 does not add an empty line between sections. This makes ini-files hard to read.</p> <p dir="auto">1.9.x</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[section1] key=value [section2] key=value"><pre class="notranslate"><code class="notranslate">[section1] key=value [section2] key=value </code></pre></div> <p dir="auto">2.0.0.2</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[section1] key=value [section2] key=value"><pre class="notranslate"><code class="notranslate">[section1] key=value [section2] key=value </code></pre></div> <p dir="auto">Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="132239837" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/2988" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/2988/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/2988">ansible/ansible-modules-core#2988</a></p>
0
<p dir="auto">The image below compares the code as it exists at the end of waypoint 18 on a 333px wide Chrome window, a 255px wide Firefox window and the simulator. To get the first two images I copied the code and added the necessary bootstrap / fontawesome files, and I added links above the &lt;style&gt; block as follows.<br> <br> </p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;script type=&quot;text/javascript&quot; src=&quot;jquery.min.js&quot;&gt;&lt;/script&gt; &lt;script type=&quot;text/javascript&quot; src=&quot;bootstrap.min.js&quot;&gt;&lt;/script&gt; "><pre class="notranslate"><code class="notranslate">&lt;script type="text/javascript" src="jquery.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="bootstrap.min.js"&gt;&lt;/script&gt; </code></pre></div> <p dir="auto">A partial work around would be to use shorter button and label names. The delete button would still be chopped off, but at least things would line up. On Glitter, the advice I got was to get used to narrow phones. :) The last smart phone I had that was less than 333px wide was the original Galaxy Ace at 320px. So I'm thinking that a 350px wide simulation would cover most phones in use these days.</p> <p dir="auto">I have a lot of development experience, but I'm just getting started when it comes to web development, so I may have missed something obvious. In any case, I like what you're doing here. It is just what I was looking for.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6283463/12073249/ce9b6982-b0da-11e5-95b9-6e2103038b6f.jpg"><img src="https://cloud.githubusercontent.com/assets/6283463/12073249/ce9b6982-b0da-11e5-95b9-6e2103038b6f.jpg" alt="fcc-cat-site" style="max-width: 100%;"></a></p>
<p dir="auto">Hmm, I don't know why, but I am getting issues with the preview layout in the bootstrap section.<br> First in the buttons section : <a href="http://prntscr.com/89uesz" rel="nofollow">http://prntscr.com/89uesz</a></p> <p dir="auto">Then in the check box section: <a href="http://prntscr.com/89ujcq" rel="nofollow">http://prntscr.com/89ujcq</a></p> <p dir="auto">I am sure there is no error with my code, but still I am pasting the code for it here</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;link href=&quot;http://fonts.googleapis.com/css?family=Lobster&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt; &lt;style&gt; h2 { font-family: Lobster, Monospace; } .thick-green-border { border-color: green; border-width: 10px; border-style: solid; border-radius: 50%; } &lt;/style&gt; &lt;div class=&quot;container-fluid&quot;&gt; &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-xs-8&quot;&gt; &lt;h2 class=&quot;text-primary text-center&quot;&gt;CatPhotoApp&lt;/h2&gt; &lt;/div&gt; &lt;div class=&quot;col-xs-4&quot;&gt; &lt;a href=&quot;#&quot;&gt;&lt;img class=&quot;img-responsive thick-green-border&quot; src=&quot;https://bit.ly/fcc-relaxing-cat&quot;&gt;&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;img src=&quot;http://bit.ly/fcc-running-cats&quot; class=&quot;img-responsive&quot;&gt; &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-xs-4&quot;&gt; &lt;button class=&quot;btn btn-block btn-primary&quot;&gt;&lt;i class=&quot;fa fa-thumbs-up&quot;&gt;&lt;/i&gt; Like&lt;/button&gt; &lt;/div&gt; &lt;div class=&quot;col-xs-4&quot;&gt; &lt;button class=&quot;btn btn-block btn-info&quot;&gt;&lt;i class=&quot;fa fa-info-circle&quot;&gt;&lt;/i&gt; Info&lt;/button&gt; &lt;/div&gt; &lt;div class=&quot;col-xs-4&quot;&gt; &lt;button class=&quot;btn btn-block btn-danger&quot;&gt;&lt;i class=&quot;fa fa-trash&quot;&gt;&lt;/i&gt; Delete&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt;Things cats &lt;span class=&quot;text-danger&quot;&gt;love:&lt;/span&gt;&lt;/p&gt; &lt;ul&gt; &lt;li&gt;cat nip&lt;/li&gt; &lt;li&gt;laser pointers&lt;/li&gt; &lt;li&gt;lasagna&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Top 3 things cats hate:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;flea treatment&lt;/li&gt; &lt;li&gt;thunder&lt;/li&gt; &lt;li&gt;other cats&lt;/li&gt; &lt;/ol&gt; &lt;form action=&quot;/submit-cat-photo&quot;&gt; &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;label&gt;&lt;input type=&quot;radio&quot; name=&quot;indoor-outdoor&quot;&gt; Indoor&lt;/label&gt; &lt;/div&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;label&gt;&lt;input type=&quot;radio&quot; name=&quot;indoor-outdoor&quot;&gt; Outdoor&lt;/label&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-xs-4&quot;&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot;&gt; Loving&lt;/label&gt; &lt;/div&gt; &lt;div class=&quot;col-xs-4&quot;&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot;&gt; Lazy&lt;/label&gt; &lt;/div&gt; &lt;div class=&quot;col-xs-4&quot;&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot;&gt; Crazy&lt;/label&gt; &lt;/div&gt; &lt;/div&gt; &lt;input type=&quot;text&quot; placeholder=&quot;cat photo URL&quot; required&gt; &lt;button type=&quot;submit&quot;&gt;Submit&lt;/button&gt; &lt;/form&gt; &lt;/div&gt;"><pre class="notranslate"><code class="notranslate">&lt;link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css"&gt; &lt;style&gt; h2 { font-family: Lobster, Monospace; } .thick-green-border { border-color: green; border-width: 10px; border-style: solid; border-radius: 50%; } &lt;/style&gt; &lt;div class="container-fluid"&gt; &lt;div class="row"&gt; &lt;div class="col-xs-8"&gt; &lt;h2 class="text-primary text-center"&gt;CatPhotoApp&lt;/h2&gt; &lt;/div&gt; &lt;div class="col-xs-4"&gt; &lt;a href="#"&gt;&lt;img class="img-responsive thick-green-border" src="https://bit.ly/fcc-relaxing-cat"&gt;&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;img src="http://bit.ly/fcc-running-cats" class="img-responsive"&gt; &lt;div class="row"&gt; &lt;div class="col-xs-4"&gt; &lt;button class="btn btn-block btn-primary"&gt;&lt;i class="fa fa-thumbs-up"&gt;&lt;/i&gt; Like&lt;/button&gt; &lt;/div&gt; &lt;div class="col-xs-4"&gt; &lt;button class="btn btn-block btn-info"&gt;&lt;i class="fa fa-info-circle"&gt;&lt;/i&gt; Info&lt;/button&gt; &lt;/div&gt; &lt;div class="col-xs-4"&gt; &lt;button class="btn btn-block btn-danger"&gt;&lt;i class="fa fa-trash"&gt;&lt;/i&gt; Delete&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt;Things cats &lt;span class="text-danger"&gt;love:&lt;/span&gt;&lt;/p&gt; &lt;ul&gt; &lt;li&gt;cat nip&lt;/li&gt; &lt;li&gt;laser pointers&lt;/li&gt; &lt;li&gt;lasagna&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Top 3 things cats hate:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;flea treatment&lt;/li&gt; &lt;li&gt;thunder&lt;/li&gt; &lt;li&gt;other cats&lt;/li&gt; &lt;/ol&gt; &lt;form action="/submit-cat-photo"&gt; &lt;div class="row"&gt; &lt;div class="col-xs-6"&gt; &lt;label&gt;&lt;input type="radio" name="indoor-outdoor"&gt; Indoor&lt;/label&gt; &lt;/div&gt; &lt;div class="col-xs-6"&gt; &lt;label&gt;&lt;input type="radio" name="indoor-outdoor"&gt; Outdoor&lt;/label&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="row"&gt; &lt;div class="col-xs-4"&gt; &lt;label&gt;&lt;input type="checkbox" name="personality"&gt; Loving&lt;/label&gt; &lt;/div&gt; &lt;div class="col-xs-4"&gt; &lt;label&gt;&lt;input type="checkbox" name="personality"&gt; Lazy&lt;/label&gt; &lt;/div&gt; &lt;div class="col-xs-4"&gt; &lt;label&gt;&lt;input type="checkbox" name="personality"&gt; Crazy&lt;/label&gt; &lt;/div&gt; &lt;/div&gt; &lt;input type="text" placeholder="cat photo URL" required&gt; &lt;button type="submit"&gt;Submit&lt;/button&gt; &lt;/form&gt; &lt;/div&gt; </code></pre></div>
1
<p dir="auto">Test is simple to wait for an element to be visible and then click on it. During the debugging of the test, I found out that after the <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="524783024" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/1" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/playwright/pull/1/hovercard" href="https://github.com/microsoft/playwright/pull/1">#1</a> retry, the click action is successful, but during a normal run, this click is very flaky and only happens like 1-2 times in 5 executions, and the next step fails.</p> <h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.30]</li> <li>Operating System: [All, Windows 11, Ubuntu 20, macOS 13.2, etc.]</li> <li>Browser: [All, Chromium, Firefox, WebKit]</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <ul dir="auto"> <li>[ await this.next.waitFor({ state: 'visible' });<br> await Promise.all([this.next.click(), this.page.waitForNavigation(), this.page.waitForResponse(testReg)]);] I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Config file</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// playwright.config.ts const config: PlaywrightTestConfig = { fullyParallel: true, use: { actionTimeout: ACTION_TIMEOUT, navigationTimeout: NAVIGATION_TIMEOUT, screenshot: 'only-on-failure', ignoreHTTPSErrors: true, }, };"><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span> <span class="pl-k">const</span> <span class="pl-s1">config</span>: <span class="pl-v">PlaywrightTestConfig</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">fullyParallel</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> <span class="pl-c1">actionTimeout</span>: <span class="pl-c1">ACTION_TIMEOUT</span><span class="pl-kos">,</span> <span class="pl-c1">navigationTimeout</span>: <span class="pl-c1">NAVIGATION_TIMEOUT</span><span class="pl-kos">,</span> <span class="pl-c1">screenshot</span>: <span class="pl-s">'only-on-failure'</span><span class="pl-kos">,</span> <span class="pl-c1">ignoreHTTPSErrors</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></pre></div> <p dir="auto"><strong>Test file (self-contained)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="await this.next.waitFor({ state: 'visible' }); await Promise.all([this.next.click(), this.page.waitForNavigation(), this.page.waitForResponse(testReg)]);"><pre class="notranslate"><span class="pl-k">await</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">next</span><span class="pl-kos">.</span><span class="pl-en">waitFor</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">state</span>: <span class="pl-s">'visible'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-v">Promise</span><span class="pl-kos">.</span><span class="pl-en">all</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">next</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">page</span><span class="pl-kos">.</span><span class="pl-en">waitForNavigation</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">page</span><span class="pl-kos">.</span><span class="pl-en">waitForResponse</span><span class="pl-kos">(</span><span class="pl-s1">testReg</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>Expected</strong></p> <p dir="auto">locator.click() action should happen each time without flakiness.</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">locator.click() action is not happening each time and showing flaky.</p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.XX]</li> <li>Operating System: [All, Windows 11, Ubuntu 20, macOS 13.2, etc.]</li> <li>Browser: [All, Chromium, Firefox, WebKit]</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/133706/250482404-8cc661bf-b20d-4e0a-9161-b08781a51fc3.png"><img src="https://user-images.githubusercontent.com/133706/250482404-8cc661bf-b20d-4e0a-9161-b08781a51fc3.png" alt="image" style="max-width: 100%;"></a></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" await this.page .getByRole('row', { name: new RegExp(`\b${escapeRegExp(skill)}\b`, 'u'), }) .locator('span') .click()"><pre class="notranslate"> <span class="pl-k">await</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">page</span> <span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'row'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-k">new</span> <span class="pl-smi">RegExp</span><span class="pl-kos">(</span><span class="pl-s">`\b<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-en">escapeRegExp</span><span class="pl-kos">(</span><span class="pl-s1">skill</span><span class="pl-kos">)</span><span class="pl-kos">}</span></span>\b`</span><span class="pl-kos">,</span> <span class="pl-s">'u'</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">locator</span><span class="pl-kos">(</span><span class="pl-s">'span'</span><span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span></pre></div> <p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p> <p dir="auto">[https://github.com/your_profile/playwright_issue_title]</p> <p dir="auto">or</p> <p dir="auto"><strong>Config file</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// playwright.config.ts import { defineConfig, devices } from '@playwright/test'; export default defineConfig({ projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'], }, }, });"><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">defineConfig</span><span class="pl-kos">,</span> <span class="pl-s1">devices</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-en">defineConfig</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">projects</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'chromium'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Desktop Chrome'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos"></span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Test file (self-contained)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="it('should check the box using setChecked', async ({ page }) =&gt; { await page.setContent(`&lt;input id='checkbox' type='checkbox'&gt;&lt;/input&gt;`); await page.getByRole('checkbox').check(); await expect(page.getByRole('checkbox')).toBeChecked(); });"><pre class="notranslate"><span class="pl-en">it</span><span class="pl-kos">(</span><span class="pl-s">'should check the box using setChecked'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">setContent</span><span class="pl-kos">(</span><span class="pl-s">`&lt;input id='checkbox' type='checkbox'&gt;&lt;/input&gt;`</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'checkbox'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">check</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'checkbox'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeChecked</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>[Run the test]</li> <li>[...]</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">Selector <code class="notranslate">getByRole('row', { name: /�cabce�/u }).locator('span')</code> works</p> <p dir="auto">[Describe expected behavior]</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">Selector <code class="notranslate">getByRole('row', { name: /�cabce�/u }).locator('span')</code> doesn't work, but <code class="notranslate">getByRole('row', { name: /\bcabce\b/u }).locator('span')</code> does work.</p> <p dir="auto">one of the <code class="notranslate">playwright</code> generated:</p> <div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt; playwright.generateLocator($0) &lt; getByRole('row', { name: 'Ca# cabce ' }).locator('label')"><pre class="notranslate">&gt; <span class="pl-s1">playwright.generateLocator(<span class="pl-smi">$0</span>)</span> <span class="pl-c1">&lt; getByRole('row', { name: 'Ca# cabce ' }).locator('label')</span></pre></div> <p dir="auto"><em>So my code looks correct</em></p> <p dir="auto">[Describe actual behavior]</p>
0
<p dir="auto">parse_qs and then urlencode, things will changed.</p> <p dir="auto"><a href="http://min.us/ldLJUS" rel="nofollow">test code and result</a></p> <p dir="auto">Thank you for this great lib,</p> <p dir="auto">the result of parse_qs is something like {'oauth': ['sig'], 'status': ['hanzi ok']}<br> urlencode can't handle list as dictionary value without doseq<br> doseq does three things,</p> <ol dir="auto"> <li>if value is not list or unicode, behave like doseq=False</li> <li>if value is unicode, decode unicode</li> <li>if value is list, handle list as dict value</li> </ol> <p dir="auto">it will fall to decode if the unicode value is not encoded in ascii, Chinese for example.<br> but _encode_params already made sure that no unicode will pass to urlencode,<br> so I think it's safe to add doseq.</p> <p dir="auto">snippet from Python2.7/Lib/urllib.py</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" if not doseq: # preserve old behavior for k, v in query: k = quote_plus(str(k)) v = quote_plus(str(v)) l.append(k + '=' + v) else: for k, v in query: k = quote_plus(str(k)) if isinstance(v, str): v = quote_plus(v) l.append(k + '=' + v) elif _is_unicode(v): # is there a reasonable way to convert to ASCII? # encode generates a string, but &quot;replace&quot; or &quot;ignore&quot; # lose information and &quot;strict&quot; can raise UnicodeError v = quote_plus(v.encode(&quot;ASCII&quot;,&quot;replace&quot;)) l.append(k + '=' + v) else: try: # is this a sufficient test for sequence-ness? len(v) except TypeError: # not a sequence v = quote_plus(str(v)) l.append(k + '=' + v) else: # loop over the sequence for elt in v: l.append(k + '=' + quote_plus(str(elt)))"><pre class="notranslate"> <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">doseq</span>: <span class="pl-c"># preserve old behavior</span> <span class="pl-k">for</span> <span class="pl-s1">k</span>, <span class="pl-s1">v</span> <span class="pl-c1">in</span> <span class="pl-s1">query</span>: <span class="pl-s1">k</span> <span class="pl-c1">=</span> <span class="pl-en">quote_plus</span>(<span class="pl-en">str</span>(<span class="pl-s1">k</span>)) <span class="pl-s1">v</span> <span class="pl-c1">=</span> <span class="pl-en">quote_plus</span>(<span class="pl-en">str</span>(<span class="pl-s1">v</span>)) <span class="pl-s1">l</span>.<span class="pl-en">append</span>(<span class="pl-s1">k</span> <span class="pl-c1">+</span> <span class="pl-s">'='</span> <span class="pl-c1">+</span> <span class="pl-s1">v</span>) <span class="pl-k">else</span>: <span class="pl-k">for</span> <span class="pl-s1">k</span>, <span class="pl-s1">v</span> <span class="pl-c1">in</span> <span class="pl-s1">query</span>: <span class="pl-s1">k</span> <span class="pl-c1">=</span> <span class="pl-en">quote_plus</span>(<span class="pl-en">str</span>(<span class="pl-s1">k</span>)) <span class="pl-k">if</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">v</span>, <span class="pl-s1">str</span>): <span class="pl-s1">v</span> <span class="pl-c1">=</span> <span class="pl-en">quote_plus</span>(<span class="pl-s1">v</span>) <span class="pl-s1">l</span>.<span class="pl-en">append</span>(<span class="pl-s1">k</span> <span class="pl-c1">+</span> <span class="pl-s">'='</span> <span class="pl-c1">+</span> <span class="pl-s1">v</span>) <span class="pl-k">elif</span> <span class="pl-en">_is_unicode</span>(<span class="pl-s1">v</span>): <span class="pl-c"># is there a reasonable way to convert to ASCII?</span> <span class="pl-c"># encode generates a string, but "replace" or "ignore"</span> <span class="pl-c"># lose information and "strict" can raise UnicodeError</span> <span class="pl-s1">v</span> <span class="pl-c1">=</span> <span class="pl-en">quote_plus</span>(<span class="pl-s1">v</span>.<span class="pl-en">encode</span>(<span class="pl-s">"ASCII"</span>,<span class="pl-s">"replace"</span>)) <span class="pl-s1">l</span>.<span class="pl-en">append</span>(<span class="pl-s1">k</span> <span class="pl-c1">+</span> <span class="pl-s">'='</span> <span class="pl-c1">+</span> <span class="pl-s1">v</span>) <span class="pl-k">else</span>: <span class="pl-k">try</span>: <span class="pl-c"># is this a sufficient test for sequence-ness?</span> <span class="pl-en">len</span>(<span class="pl-s1">v</span>) <span class="pl-k">except</span> <span class="pl-v">TypeError</span>: <span class="pl-c"># not a sequence</span> <span class="pl-s1">v</span> <span class="pl-c1">=</span> <span class="pl-en">quote_plus</span>(<span class="pl-en">str</span>(<span class="pl-s1">v</span>)) <span class="pl-s1">l</span>.<span class="pl-en">append</span>(<span class="pl-s1">k</span> <span class="pl-c1">+</span> <span class="pl-s">'='</span> <span class="pl-c1">+</span> <span class="pl-s1">v</span>) <span class="pl-k">else</span>: <span class="pl-c"># loop over the sequence</span> <span class="pl-k">for</span> <span class="pl-s1">elt</span> <span class="pl-c1">in</span> <span class="pl-s1">v</span>: <span class="pl-s1">l</span>.<span class="pl-en">append</span>(<span class="pl-s1">k</span> <span class="pl-c1">+</span> <span class="pl-s">'='</span> <span class="pl-c1">+</span> <span class="pl-en">quote_plus</span>(<span class="pl-en">str</span>(<span class="pl-s1">elt</span>)))</pre></div> <p dir="auto">it's the first time I use github, I'm sorry for the duplicated pull request<br> reallly appreciate for this great lib, it helps me a lot.<br> and I'm looking forward to oauth feature so I don't need to roll my own:)</p> <div class="highlight highlight-source-diff notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@@ -230,7 +230,7 @@ class Request(object): for (k, v) in data.items(): result[k.encode('utf-8') if isinstance(k, unicode) else k] \ = v.encode('utf-8') if isinstance(v, unicode) else v - return result, urllib.urlencode(result) + return result, urllib.urlencode(result, doseq=True) else: return data, data"><pre class="notranslate"><span class="pl-mdr">@@ -230,7 +230,7 @@</span> class Request(object): for (k, v) in data.items(): result[k.encode('utf-8') if isinstance(k, unicode) else k] \ = v.encode('utf-8') if isinstance(v, unicode) else v <span class="pl-md"><span class="pl-md">-</span> return result, urllib.urlencode(result)</span> <span class="pl-mi1"><span class="pl-mi1">+</span> return result, urllib.urlencode(result, doseq=True)</span> else: return data, data</pre></div>
<p dir="auto">We have a whole code branch that does chunked uploads that is not and has never been tested. That's a problem, because sometimes it breaks and we don't notice (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="115349215" data-permission-text="Title is private" data-url="https://github.com/psf/requests/issues/2861" data-hovercard-type="pull_request" data-hovercard-url="/psf/requests/pull/2861/hovercard" href="https://github.com/psf/requests/pull/2861">#2861</a>). I'd like to add more testing for chunked uploads.</p> <p dir="auto">However, we can't use httpbin to do this testing. This is because the WSGI spec staunchly refuses to let applications see chunked transfer encoding at the app layer. For this reason, to test chunked transfer encoding requires a new style of testing, one that doesn't involve running a WSGI server but instead running something that can see the bytes <em>as they hit the wire</em>. Basically, something like the socket level tests of urllib3.</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/leaflet</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>. (Please ask any appropriate questions there).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond. <ul dir="auto"> <li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alejo90/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alejo90">@alejo90</a></li> </ul> </li> </ul> <p dir="auto">Currently, only function style is supported by typings for GeoJSON style. Typings should be updated to support a simple object as styles as well.</p> <p dir="auto">See documentation: <a href="http://leafletjs.com/examples/geojson/" rel="nofollow">http://leafletjs.com/examples/geojson/</a></p> <blockquote> <p dir="auto">The style option can be used to style features two different ways. First, we can pass a simple object that styles all paths (polylines and polygons) the same way:</p> </blockquote> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var myLines = [{ &quot;type&quot;: &quot;LineString&quot;, &quot;coordinates&quot;: [[-100, 40], [-105, 45], [-110, 55]] }, { &quot;type&quot;: &quot;LineString&quot;, &quot;coordinates&quot;: [[-105, 40], [-110, 45], [-115, 55]] }]; var myStyle = { &quot;color&quot;: &quot;#ff7800&quot;, &quot;weight&quot;: 5, &quot;opacity&quot;: 0.65 }; L.geoJSON(myLines, { style: myStyle }).addTo(map);"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">myLines</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-kos">{</span> <span class="pl-s">"type"</span>: <span class="pl-s">"LineString"</span><span class="pl-kos">,</span> <span class="pl-s">"coordinates"</span>: <span class="pl-kos">[</span><span class="pl-kos">[</span><span class="pl-c1">-</span><span class="pl-c1">100</span><span class="pl-kos">,</span> <span class="pl-c1">40</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-c1">-</span><span class="pl-c1">105</span><span class="pl-kos">,</span> <span class="pl-c1">45</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-c1">-</span><span class="pl-c1">110</span><span class="pl-kos">,</span> <span class="pl-c1">55</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-s">"type"</span>: <span class="pl-s">"LineString"</span><span class="pl-kos">,</span> <span class="pl-s">"coordinates"</span>: <span class="pl-kos">[</span><span class="pl-kos">[</span><span class="pl-c1">-</span><span class="pl-c1">105</span><span class="pl-kos">,</span> <span class="pl-c1">40</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-c1">-</span><span class="pl-c1">110</span><span class="pl-kos">,</span> <span class="pl-c1">45</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-c1">-</span><span class="pl-c1">115</span><span class="pl-kos">,</span> <span class="pl-c1">55</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">var</span> <span class="pl-s1">myStyle</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-s">"color"</span>: <span class="pl-s">"#ff7800"</span><span class="pl-kos">,</span> <span class="pl-s">"weight"</span>: <span class="pl-c1">5</span><span class="pl-kos">,</span> <span class="pl-s">"opacity"</span>: <span class="pl-c1">0.65</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-v">L</span><span class="pl-kos">.</span><span class="pl-en">geoJSON</span><span class="pl-kos">(</span><span class="pl-s1">myLines</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">style</span>: <span class="pl-s1">myStyle</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">addTo</span><span class="pl-kos">(</span><span class="pl-s1">map</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <blockquote> <p dir="auto">Alternatively, we can pass a function that styles individual features based on their properties. In the example below we check the "party" property and style our polygons accordingly:</p> </blockquote> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var states = [{ &quot;type&quot;: &quot;Feature&quot;, &quot;properties&quot;: {&quot;party&quot;: &quot;Republican&quot;}, &quot;geometry&quot;: { &quot;type&quot;: &quot;Polygon&quot;, &quot;coordinates&quot;: [[ [-104.05, 48.99], [-97.22, 48.98], [-96.58, 45.94], [-104.03, 45.94], [-104.05, 48.99] ]] } }, { &quot;type&quot;: &quot;Feature&quot;, &quot;properties&quot;: {&quot;party&quot;: &quot;Democrat&quot;}, &quot;geometry&quot;: { &quot;type&quot;: &quot;Polygon&quot;, &quot;coordinates&quot;: [[ [-109.05, 41.00], [-102.06, 40.99], [-102.03, 36.99], [-109.04, 36.99], [-109.05, 41.00] ]] } }]; L.geoJSON(states, { style: function(feature) { switch (feature.properties.party) { case 'Republican': return {color: &quot;#ff0000&quot;}; case 'Democrat': return {color: &quot;#0000ff&quot;}; } } }).addTo(map);"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">states</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-kos">{</span> <span class="pl-s">"type"</span>: <span class="pl-s">"Feature"</span><span class="pl-kos">,</span> <span class="pl-s">"properties"</span>: <span class="pl-kos">{</span><span class="pl-s">"party"</span>: <span class="pl-s">"Republican"</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"geometry"</span>: <span class="pl-kos">{</span> <span class="pl-s">"type"</span>: <span class="pl-s">"Polygon"</span><span class="pl-kos">,</span> <span class="pl-s">"coordinates"</span>: <span class="pl-kos">[</span><span class="pl-kos">[</span> <span class="pl-kos">[</span><span class="pl-c1">-</span><span class="pl-c1">104.05</span><span class="pl-kos">,</span> <span class="pl-c1">48.99</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-c1">-</span><span class="pl-c1">97.22</span><span class="pl-kos">,</span> <span class="pl-c1">48.98</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-c1">-</span><span class="pl-c1">96.58</span><span class="pl-kos">,</span> <span class="pl-c1">45.94</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-c1">-</span><span class="pl-c1">104.03</span><span class="pl-kos">,</span> <span class="pl-c1">45.94</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-c1">-</span><span class="pl-c1">104.05</span><span class="pl-kos">,</span> <span class="pl-c1">48.99</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-s">"type"</span>: <span class="pl-s">"Feature"</span><span class="pl-kos">,</span> <span class="pl-s">"properties"</span>: <span class="pl-kos">{</span><span class="pl-s">"party"</span>: <span class="pl-s">"Democrat"</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"geometry"</span>: <span class="pl-kos">{</span> <span class="pl-s">"type"</span>: <span class="pl-s">"Polygon"</span><span class="pl-kos">,</span> <span class="pl-s">"coordinates"</span>: <span class="pl-kos">[</span><span class="pl-kos">[</span> <span class="pl-kos">[</span><span class="pl-c1">-</span><span class="pl-c1">109.05</span><span class="pl-kos">,</span> <span class="pl-c1">41.00</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-c1">-</span><span class="pl-c1">102.06</span><span class="pl-kos">,</span> <span class="pl-c1">40.99</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-c1">-</span><span class="pl-c1">102.03</span><span class="pl-kos">,</span> <span class="pl-c1">36.99</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-c1">-</span><span class="pl-c1">109.04</span><span class="pl-kos">,</span> <span class="pl-c1">36.99</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-c1">-</span><span class="pl-c1">109.05</span><span class="pl-kos">,</span> <span class="pl-c1">41.00</span><span class="pl-kos">]</span> <span class="pl-kos">]</span><span class="pl-kos">]</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-v">L</span><span class="pl-kos">.</span><span class="pl-en">geoJSON</span><span class="pl-kos">(</span><span class="pl-s1">states</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-en">style</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">feature</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">switch</span> <span class="pl-kos">(</span><span class="pl-s1">feature</span><span class="pl-kos">.</span><span class="pl-c1">properties</span><span class="pl-kos">.</span><span class="pl-c1">party</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">case</span> <span class="pl-s">'Republican'</span>: <span class="pl-k">return</span> <span class="pl-kos">{</span><span class="pl-c1">color</span>: <span class="pl-s">"#ff0000"</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">case</span> <span class="pl-s">'Democrat'</span>: <span class="pl-k">return</span> <span class="pl-kos">{</span><span class="pl-c1">color</span>: <span class="pl-s">"#0000ff"</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">addTo</span><span class="pl-kos">(</span><span class="pl-s1">map</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">The current style property of GeoJSONOptions is defined as a function returning style properties:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="style?: (featureData: any) =&gt; any;"><pre class="notranslate"><code class="notranslate">style?: (featureData: any) =&gt; any; </code></pre></div> <p dir="auto">However, the real definition is wider, as I am allowed to pass in a regular object like so:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var geoJson = L.geoJson(geoJsonRoute, { style: { &quot;color&quot;: &quot;#ff7800&quot;, &quot;weight&quot;: 5, &quot;opacity&quot;: 0.65 } });"><pre class="notranslate"><code class="notranslate">var geoJson = L.geoJson(geoJsonRoute, { style: { "color": "#ff7800", "weight": 5, "opacity": 0.65 } }); </code></pre></div> <p dir="auto">which gets rejected by the current typing. Can we widen the definition of style?<br> (see also <a href="http://leafletjs.com/examples/geojson.html" rel="nofollow">http://leafletjs.com/examples/geojson.html</a>)</p> <p dir="auto">(cc-ing <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rgripper/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rgripper">@rgripper</a> ?)</p>
1
<p dir="auto">Just did a clean <code class="notranslate">go get github.com/GoogleCloudPlatform/kubernetes/...</code>, and the build is broken in a few ways:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# github.com/GoogleCloudPlatform/kubernetes/pkg/version pkg/version/version.go:20: undefined: commitFromGit # github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet pkg/kubelet/kubelet.go:114: cannot assign *cadvisor.Client to kl.CadvisorClient (type CadvisorInterface) in multiple assignment: *cadvisor.Client does not implement CadvisorInterface (wrong type for ContainerInfo method) have ContainerInfo(string, *info.ContainerInfoRequest) (*info.ContainerInfo, error) want ContainerInfo(string) (*info.ContainerInfo, error) # github.com/GoogleCloudPlatform/kubernetes/third_party/src/github.com/google/cadvisor/container/docker third_party/src/github.com/google/cadvisor/container/docker/handler.go:144: config.Cgroups undefined (type *libcontainer.Container has no field or method Cgroups) third_party/src/github.com/google/cadvisor/container/docker/handler.go:145: config.Cgroups undefined (type *libcontainer.Container has no field or method Cgroups) third_party/src/github.com/google/cadvisor/container/docker/handler.go:147: config.Cgroups undefined (type *libcontainer.Container has no field or method Cgroups) third_party/src/github.com/google/cadvisor/container/docker/handler.go:148: config.Cgroups undefined (type *libcontainer.Container has no field or method Cgroups) third_party/src/github.com/google/cadvisor/container/docker/handler.go:154: config.Cgroups undefined (type *libcontainer.Container has no field or method Cgroups) third_party/src/github.com/google/cadvisor/container/docker/handler.go:155: config.Cgroups undefined (type *libcontainer.Container has no field or method Cgroups) # github.com/GoogleCloudPlatform/kubernetes/third_party/src/github.com/google/cadvisor/api third_party/src/github.com/google/cadvisor/api/handler.go:70: not enough arguments in call to m.GetContainerInfo # github.com/GoogleCloudPlatform/kubernetes/third_party/src/github.com/google/cadvisor/pages third_party/src/github.com/google/cadvisor/pages/containers.go:165: not enough arguments in call to m.GetContainerInfo # github.com/GoogleCloudPlatform/kubernetes/third_party/src/github.com/google/cadvisor third_party/src/github.com/google/cadvisor/cadvisor.go:72: cannot use r.URL (type *url.URL) as type *http.Request in argument to api.HandleRequest"><pre class="notranslate"><code class="notranslate"># github.com/GoogleCloudPlatform/kubernetes/pkg/version pkg/version/version.go:20: undefined: commitFromGit # github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet pkg/kubelet/kubelet.go:114: cannot assign *cadvisor.Client to kl.CadvisorClient (type CadvisorInterface) in multiple assignment: *cadvisor.Client does not implement CadvisorInterface (wrong type for ContainerInfo method) have ContainerInfo(string, *info.ContainerInfoRequest) (*info.ContainerInfo, error) want ContainerInfo(string) (*info.ContainerInfo, error) # github.com/GoogleCloudPlatform/kubernetes/third_party/src/github.com/google/cadvisor/container/docker third_party/src/github.com/google/cadvisor/container/docker/handler.go:144: config.Cgroups undefined (type *libcontainer.Container has no field or method Cgroups) third_party/src/github.com/google/cadvisor/container/docker/handler.go:145: config.Cgroups undefined (type *libcontainer.Container has no field or method Cgroups) third_party/src/github.com/google/cadvisor/container/docker/handler.go:147: config.Cgroups undefined (type *libcontainer.Container has no field or method Cgroups) third_party/src/github.com/google/cadvisor/container/docker/handler.go:148: config.Cgroups undefined (type *libcontainer.Container has no field or method Cgroups) third_party/src/github.com/google/cadvisor/container/docker/handler.go:154: config.Cgroups undefined (type *libcontainer.Container has no field or method Cgroups) third_party/src/github.com/google/cadvisor/container/docker/handler.go:155: config.Cgroups undefined (type *libcontainer.Container has no field or method Cgroups) # github.com/GoogleCloudPlatform/kubernetes/third_party/src/github.com/google/cadvisor/api third_party/src/github.com/google/cadvisor/api/handler.go:70: not enough arguments in call to m.GetContainerInfo # github.com/GoogleCloudPlatform/kubernetes/third_party/src/github.com/google/cadvisor/pages third_party/src/github.com/google/cadvisor/pages/containers.go:165: not enough arguments in call to m.GetContainerInfo # github.com/GoogleCloudPlatform/kubernetes/third_party/src/github.com/google/cadvisor third_party/src/github.com/google/cadvisor/cadvisor.go:72: cannot use r.URL (type *url.URL) as type *http.Request in argument to api.HandleRequest </code></pre></div>
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.): No</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): BUG REPORT</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>): 1.5 beta 2</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: GCE</li> <li><strong>OS</strong> (e.g. from /etc/os-release): CVM</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li> <li><strong>Install tools</strong>: kube-up.sh</li> </ul> <p dir="auto"><strong>What happened</strong>: Step 6 of <a href="https://docs.google.com/document/d/19Q4AzWLD5jd2FNaPyKy2xdTN4JIGUUpvwDwg0tcBkyc/edit#" rel="nofollow">https://docs.google.com/document/d/19Q4AzWLD5jd2FNaPyKy2xdTN4JIGUUpvwDwg0tcBkyc/edit#</a> fails</p> <p dir="auto"><strong>What you expected to happen</strong>: Node upgrade to succeed.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible): Follow the manual upgrade steps outlined in the linked document.</p> <p dir="auto"><strong>Anything else do we need to know</strong>: The error is because the metadata is too large for the new node instance template.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: (gcloud.compute.instance-templates.create) Some requests did not succeed: - Value for field 'resource.properties.metadata.items[2].value' is too large: maximum size 32768 character(s); actual size 33595."><pre class="notranslate"><code class="notranslate">ERROR: (gcloud.compute.instance-templates.create) Some requests did not succeed: - Value for field 'resource.properties.metadata.items[2].value' is too large: maximum size 32768 character(s); actual size 33595. </code></pre></div>
0
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Version 1909 (OS Build 18363.836) PowerToys version: 0.81.1 PowerToy module for which you are reporting the bug (if applicable): uninstall"><pre class="notranslate"><code class="notranslate">Windows build number: Version 1909 (OS Build 18363.836) PowerToys version: 0.81.1 PowerToy module for which you are reporting the bug (if applicable): uninstall </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Just prior to uninstall I uninstalled several old and new Microsoft programs including "Microsoft Mouse and Keyboard", "Microsoft Office Suite", and others. System bahavior was normal after these and I rebooted. Then...</p> <p dir="auto">uninstall via Control Panel<br> "/" Programs<br> "/" Programs and Features<br> "/" Uninstall or change a program<br> "-&gt;" PowerToys (Preview)<br> "-&gt;" uninstall</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">uninstall successful</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">First attempt:</p> <ol dir="auto"> <li>three exceptions thrown resulting in dialog w/ execution addresses<br> (sorry I did not capture these)</li> <li>continuing process, uninstall process crashed with no visible clue except associated windows all closed.</li> <li>PowerToys (Preview) still listed</li> </ol> <p dir="auto">Second attempt:</p> <ol dir="auto"> <li>uninstall process again crashed with no visible clue except associated windows all closed.</li> <li>Ran Task Manager and sorted processes according to CPU usage. There seemed to be about 5% extra overhead not seen before uninstall including system interrupts, churning of a few other normally quieter software... I have not idea if these are related to the uninstall or not.</li> </ol> <h1 dir="auto">Screenshots</h1> <p dir="auto">The screen shot is the state of the System after failed uninstall atempt<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/50278083/83203875-47cddd80-a0ff-11ea-9c9f-9b6daa3c80f5.png"><img src="https://user-images.githubusercontent.com/50278083/83203875-47cddd80-a0ff-11ea-9c9f-9b6daa3c80f5.png" alt="Windows10InstalledListRePowerToys" style="max-width: 100%;"></a></p>
<p dir="auto">We've seen multiple reports of 'uninstalling' fails and when we dive in, it is due to when a user does it in the old control panel.</p> <p dir="auto"><strong>Workaround</strong><br> <code class="notranslate"> Windows 10 Settings -&gt; Apps -&gt; Apps &amp; features</code></p> <p dir="auto"><strong>How are people hitting this</strong><br> This is how people are referencing the old dialog.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1462282/81605720-c2b89980-9386-11ea-80f2-432d1c291fa2.png"><img src="https://user-images.githubusercontent.com/1462282/81605720-c2b89980-9386-11ea-80f2-432d1c291fa2.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>...</li> <li>...</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.194.0<br> <strong>System</strong>: Microsoft Windows 7 Home Premium<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module './context-menu'<br> Error: Cannot find module './context-menu'<br> at Function.Module._resolveFilename (module.js:328:15)<br> at Function.Module._load (module.js:270:25)<br> at Module.require (module.js:357:17)<br> at require (module.js:376:17)<br> at BrowserWindow. (C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br> at emitMany (events.js:108:13)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46)"><pre class="notranslate"><code class="notranslate">At C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\avi.algaly\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -5:44.2.0 editor:newline (atom-text-editor.editor) -5:42.7.0 snippets:next-tab-stop (atom-text-editor.editor) -5:42.7.0 snippets:expand (atom-text-editor.editor) -5:42.7.0 editor:indent (atom-text-editor.editor) -5:42.1.0 snippets:next-tab-stop (atom-text-editor.editor) -5:42.1.0 snippets:expand (atom-text-editor.editor) -5:42.1.0 editor:indent (atom-text-editor.editor) -5:39 core:save (atom-text-editor.editor) -5:17.7.0 core:move-to-top (atom-text-editor.editor) -5:16.9.0 find-and-replace:show (atom-text-editor.editor) 4x -5:13.6.0 core:confirm (atom-text-editor.editor.mini) -5:09.6.0 project-find:show (atom-text-editor.editor.mini) -5:08.8.0 core:confirm (atom-text-editor.editor.mini) -4:48.9.0 core:cut (atom-text-editor.editor) 3x -4:47.1.0 core:save (atom-text-editor.editor) 4x -4:03.5.0 core:copy (atom-text-editor.editor)"><pre class="notranslate"><code class="notranslate"> -5:44.2.0 editor:newline (atom-text-editor.editor) -5:42.7.0 snippets:next-tab-stop (atom-text-editor.editor) -5:42.7.0 snippets:expand (atom-text-editor.editor) -5:42.7.0 editor:indent (atom-text-editor.editor) -5:42.1.0 snippets:next-tab-stop (atom-text-editor.editor) -5:42.1.0 snippets:expand (atom-text-editor.editor) -5:42.1.0 editor:indent (atom-text-editor.editor) -5:39 core:save (atom-text-editor.editor) -5:17.7.0 core:move-to-top (atom-text-editor.editor) -5:16.9.0 find-and-replace:show (atom-text-editor.editor) 4x -5:13.6.0 core:confirm (atom-text-editor.editor.mini) -5:09.6.0 project-find:show (atom-text-editor.editor.mini) -5:08.8.0 core:confirm (atom-text-editor.editor.mini) -4:48.9.0 core:cut (atom-text-editor.editor) 3x -4:47.1.0 core:save (atom-text-editor.editor) 4x -4:03.5.0 core:copy (atom-text-editor.editor) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;themes&quot;: [ &quot;atom-dark-ui&quot;, &quot;one-dark-syntax&quot; ] }, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;autoIndent&quot;: false } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>one-dark-syntax<span class="pl-pds">"</span></span> ] }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {}, <span class="pl-ent">"autoIndent"</span>: <span class="pl-c1">false</span> } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User atom-beautify, v0.24.0 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> atom<span class="pl-k">-</span>beautify, v0.<span class="pl-ii">24</span>.<span class="pl-ii">0</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
<p dir="auto">I right-clicked on a folder in the tree view</p> <p dir="auto"><strong>Atom Version</strong>: 0.194.0<br> <strong>System</strong>: Windows 7 Entreprise<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module './context-menu'<br> Error: Cannot find module './context-menu'<br> at Function.Module._resolveFilename (module.js:328:15)<br> at Function.Module._load (module.js:270:25)<br> at Module.require (module.js:357:17)<br> at require (module.js:376:17)<br> at BrowserWindow. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br> at emitMany (events.js:108:13)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) "><pre class="notranslate"><code class="notranslate">At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused) 2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor) -3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel) -2:47.4.0 editor:newline (atom-text-editor.editor.is-focused) -2:38.2.0 core:cut (atom-text-editor.editor) -2:36.5.0 core:paste (atom-text-editor.editor.is-focused) -2:26.6.0 core:save (atom-text-editor.editor.is-focused) -2:20.6.0 core:move-down (atom-text-editor.editor) -2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor) -2:15.8.0 core:save (atom-text-editor.editor) -2:08.7.0 core:copy (atom-text-editor.editor.is-focused) -2:01.2.0 core:paste (atom-text-editor.editor.is-focused) -1:59.7.0 core:save (atom-text-editor.editor.is-focused) -1:52.2.0 core:paste (atom-text-editor.editor.is-focused) -1:51.6.0 core:save (atom-text-editor.editor.is-focused) -1:30.6.0 core:backspace (atom-text-editor.editor)"><pre class="notranslate"><code class="notranslate"> -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused) 2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor) -3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel) -2:47.4.0 editor:newline (atom-text-editor.editor.is-focused) -2:38.2.0 core:cut (atom-text-editor.editor) -2:36.5.0 core:paste (atom-text-editor.editor.is-focused) -2:26.6.0 core:save (atom-text-editor.editor.is-focused) -2:20.6.0 core:move-down (atom-text-editor.editor) -2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor) -2:15.8.0 core:save (atom-text-editor.editor) -2:08.7.0 core:copy (atom-text-editor.editor.is-focused) -2:01.2.0 core:paste (atom-text-editor.editor.is-focused) -1:59.7.0 core:save (atom-text-editor.editor.is-focused) -1:52.2.0 core:paste (atom-text-editor.editor.is-focused) -1:51.6.0 core:save (atom-text-editor.editor.is-focused) -1:30.6.0 core:backspace (atom-text-editor.editor) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;ignoredNames&quot;: [ &quot;node_modules&quot; ], &quot;themes&quot;: [ &quot;atom-dark-ui&quot;, &quot;seti-syntax&quot; ], &quot;disabledPackages&quot;: [ &quot;Tern&quot; ], &quot;projectHome&quot;: &quot;Y:\\app-tfoumax&quot; }, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;softWrap&quot;: true, &quot;showIndentGuide&quot;: true } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"ignoredNames"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>node_modules<span class="pl-pds">"</span></span> ], <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>seti-syntax<span class="pl-pds">"</span></span> ], <span class="pl-ent">"disabledPackages"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>Tern<span class="pl-pds">"</span></span> ], <span class="pl-ent">"projectHome"</span>: <span class="pl-s"><span class="pl-pds">"</span>Y:<span class="pl-cce">\\</span>app-tfoumax<span class="pl-pds">"</span></span> }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {}, <span class="pl-ent">"softWrap"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"showIndentGuide"</span>: <span class="pl-c1">true</span> } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User autocomplete-plus, v2.12.0 autocomplete-snippets, v1.2.0 javascript-snippets, v1.0.0 jshint, v1.3.5 language-ejs, v0.1.0 linter, v0.12.1 pretty-json, v0.3.3 save-session, v0.14.0 Search, v0.4.0 seti-syntax, v0.4.0 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> autocomplete<span class="pl-k">-</span>plus, v2.<span class="pl-ii">12</span>.<span class="pl-ii">0</span> autocomplete<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> javascript<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span> jshint, v1.<span class="pl-ii">3</span>.<span class="pl-ii">5</span> language<span class="pl-k">-</span>ejs, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> linter, v0.<span class="pl-ii">12</span>.<span class="pl-ii">1</span> pretty<span class="pl-k">-</span>json, v0.<span class="pl-ii">3</span>.<span class="pl-ii">3</span> save<span class="pl-k">-</span>session, v0.<span class="pl-ii">14</span>.<span class="pl-ii">0</span> Search, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> seti<span class="pl-k">-</span>syntax, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
1
<p dir="auto">When I run any benchmark I get 0 for all metrics except renderTime:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="BENCHMARK ng2.tree.create.viewcache Description: - depth: 9 - forceGc: false - lang: js - regressionSlopeMetric: scriptTime - runId: 4bba7970-5100-11e5-a97c-1be2da562e8f - sampleSize: 20 - userAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36 - viewcache: true Metrics: - gcAmount: gc amount in kbytes - gcTime: gc time in ms - majorGcTime: time of major gcs in ms - pureScriptTime: script execution time in ms, without gc nor render - renderTime: render time in ms - scriptTime: script execution time in ms, including gc and render gcAmount | gcTime | majorGcTime | pureScriptTime | renderTime | scriptTime ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | ------------------ 0.00 | 0.00 | 0.00 | 0.00 | 0.75 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 1.48 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.37 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.56 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.69 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.70 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.86 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.66 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 2.51 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.51 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.46 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.38 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.89 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.41 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.44 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.45 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.51 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.66 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.74 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.61 | 0.00 ================== | ================== | ================== | ================== | ================== | ================== 0.00 | 0.00 | 0.00 | 0.00 | 0.73+-64% | 0.00"><pre class="notranslate"><code class="notranslate">BENCHMARK ng2.tree.create.viewcache Description: - depth: 9 - forceGc: false - lang: js - regressionSlopeMetric: scriptTime - runId: 4bba7970-5100-11e5-a97c-1be2da562e8f - sampleSize: 20 - userAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36 - viewcache: true Metrics: - gcAmount: gc amount in kbytes - gcTime: gc time in ms - majorGcTime: time of major gcs in ms - pureScriptTime: script execution time in ms, without gc nor render - renderTime: render time in ms - scriptTime: script execution time in ms, including gc and render gcAmount | gcTime | majorGcTime | pureScriptTime | renderTime | scriptTime ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | ------------------ 0.00 | 0.00 | 0.00 | 0.00 | 0.75 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 1.48 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.37 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.56 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.69 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.70 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.86 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.66 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 2.51 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.51 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.46 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.38 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.89 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.41 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.44 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.45 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.51 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.66 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.74 | 0.00 0.00 | 0.00 | 0.00 | 0.00 | 0.61 | 0.00 ================== | ================== | ================== | ================== | ================== | ================== 0.00 | 0.00 | 0.00 | 0.00 | 0.73+-64% | 0.00 </code></pre></div> <p dir="auto">This is for any benchmark, both JS and dart2js. cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tbosch/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tbosch">@tbosch</a></p>
<p dir="auto">Benchpress does not report script time or gc in the upcoming Chrome 45. Changes to their tracing events:</p> <p dir="auto">script time:<br> Is reported with category <code class="notranslate">devtools.timeline,v8</code> and name <code class="notranslate">FunctionCall</code> (used to be other category).</p> <p dir="auto">gc time:<br> Is reported via category <code class="notranslate">devtools.timeline,v8</code> and name <code class="notranslate">MinorGC</code> / <code class="notranslate">MajorGC</code> (used to be other category and different name). Also, the name <code class="notranslate">majorGC</code> is not reported for category <code class="notranslate">v8</code> any more.</p>
1
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>For English only</strong>, other languages will not accept.</p> <p dir="auto">Before report a bug, make sure you have:</p> <ul dir="auto"> <li>Searched open and closed <a href="https://github.com/apache/shardingsphere/issues">GitHub issues</a>.</li> <li>Read documentation: <a href="https://shardingsphere.apache.org/document/current/en/overview" rel="nofollow">ShardingSphere Doc</a>.</li> </ul> <p dir="auto">Please pay attention on issues you submitted, because we maybe need more details.<br> If no response anymore and we cannot reproduce it on current information, we will <strong>close it</strong>.</p> <p dir="auto">Please answer these questions before submitting your issue. Thanks!</p> <h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">shardingsphere-jdbc-core-spring-boot-starter 5.1.2</p> <h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3> <p dir="auto">ShardingSphere-JDBC</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">when use Druid to encript password,I use connec-properties,there are two method both named "setConnectProperties"<br> <br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24600271/199710434-73f6d186-cc3c-47e1-83c1-ae742a5e3151.png"><img src="https://user-images.githubusercontent.com/24600271/199710434-73f6d186-cc3c-47e1-83c1-ae742a5e3151.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24600271/199711412-66adb988-d70e-4b6d-abd0-84ca59232853.png"><img src="https://user-images.githubusercontent.com/24600271/199711412-66adb988-d70e-4b6d-abd0-84ca59232853.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">so when yaml use string to config connecProperties,it will throw "java.lang.String can't cast to java.util.Map",i think setter method should check fieldName and type,not only fieldName, in <code class="notranslate">org.apache.shardingsphere.infra.datasource.pool.creator.DataSourceReflection</code><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24600271/199711183-9b66cf9b-cc2a-46b8-9c9e-5eec2212547e.png"><img src="https://user-images.githubusercontent.com/24600271/199711183-9b66cf9b-cc2a-46b8-9c9e-5eec2212547e.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Actual behavior</h3> <h3 dir="auto">Reason analyze (If you can)</h3> <p dir="auto">org.apache.shardingsphere.infra.datasource.pool.creator.DataSourceReflection</p> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>
<h2 dir="auto">Bug Report</h2> <h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">v5.2.0</p> <h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3> <p dir="auto">ShardingSphere-JDBC</p> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <ol dir="auto"> <li>Create a druid datasource, and then add some filters.</li> </ol> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="DruidDataSource druidDataSource = new DruidDataSource(); // ... druidDataSource.setProxyFilters(buildFilters());"><pre class="notranslate"><span class="pl-smi">DruidDataSource</span> <span class="pl-s1">druidDataSource</span> = <span class="pl-k">new</span> <span class="pl-smi">DruidDataSource</span>(); <span class="pl-c">// ...</span> <span class="pl-s1">druidDataSource</span>.<span class="pl-en">setProxyFilters</span>(<span class="pl-en">buildFilters</span>());</pre></div> <ol start="2" dir="auto"> <li>Create a shardingsphere datasource by ShardingSphereDataSourceFactory</li> <li>Exception occurs: Can't construct a java object for tag:yaml.org,2002:com.alibaba.druid.filter.stat.StatFilter; exception=Class is not accepted: com.alibaba.druid.filter.stat.StatFilter.</li> </ol> <h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3> <p dir="auto"><a href="https://github.com/caol64/sharding-test">https://github.com/caol64/sharding-test</a></p>
1
<p dir="auto">As part of the stabilization process, we'd like our standard collection implementations to be <em>good</em>. Maybe even <em>great</em>. Wouldn't that be nice? The overall quality of each implementation is pretty varied, partially just because the language has dramatically shifted out from underneath them. Vec and HashMap are in a good place because they're The Big Dogs of data structuring, and have gotten substantial attention as a result. Other less-used collections are in worse shape, and need some serious attention.</p> <p dir="auto">If you're interested in working on a Rust project, or collections in particular, here's a big list of things to do experiment with on libcollections.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> DList's internal "safe" API is totally busted. It's not safe at all. Possibly simply because RawLink is Copyable. This allows a reference to a RawLink to be converted into a value, allowing mutation of an immutable DList.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Investigate implementing a proper bidirectional cursor on DList that can insert/remove values. It's borderline useless without this.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Full code review of BitV and BitVSet. They've had a lot of bugs because the code base has seen a lot of churn. Some legacy references to the bad-old-day of BitV being an enum still exist (such as a benchmark that just tests how fast bitshifting a uint is).</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="41020369" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/16736" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/16736/hovercard" href="https://github.com/rust-lang/rust/issues/16736">#16736</a> BitV's internal representation is a Vec of uints. It should almost certainly be a Vec of u32's, or some other non-machine-sized type.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> RingBuf <em>should not be</em> a Vec of Options.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Investigate whether accepting total unsafety in TreeMap and using RawPtrs everywhere is worth it. May be necessary in a future full of scoped allocators.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Replace the bulky triple of Vecs used in BTreeMap's Node struct with a single manually allocated<br> buffer, in the same vein as HashMap's RawTable.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Investigate a richer default B-selection algorithm for BTreeMap's default constructor than "6"</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Investigate alternative node-search schemes over trivial linear search for BTreeMap. Binary search? skip-k-at-a-time linear search? Dynamic (or static!) selection of these algorithms based on B/K/V?</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Seriously optimize BTreeMap <em>at all</em>. <em>At all</em>.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Investigate the possibility of replacing the heap-allocated <code class="notranslate">Vec&lt;*mut Node&lt;T&gt;&gt;</code>-based search-stacks of BTreeMap, TreeMap, and TrieMap with a stack-allocated <code class="notranslate">[*mut Node&lt;T&gt;, ..uint::BITS]</code> (TreeMap might need more, it's an AA-tree, dunno how tall they can get). Note that a preliminary experiment on BTree gave very poor results, though it has the least to gain from such a design from it's current design (tracks depth, can use <code class="notranslate">with_capacity</code>.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Investigate the possibility of reusing the SearchStack concept used in BTreeMap to more safely wrap the rawptr-based search stacks of TreeMap and TrieMap.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Investigate the possibility of making the iterators for TreeMap and TrieMap DoubleEnded, rather than having separate forward/backward iterators.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> At very least, get rid of the old-style internal backwards iterator on TrieMap.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Investigate the possibility of cutting out a lot of the macro-madness from TreeMap and TrieMap (BTreeMap has no macros and little-to-no code duplication, just hardcore generics). Possibly using the Deref/DerefMut trick in HashMap.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Investigate completely replacing the unsafe rawptr search-stacks in the iterators of TreeMap and TrieMap with safe stacks of iterators over the nodes themselves, like BTreeMap does.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Investigate arbitrary sub-range iterators for sorted sets/maps.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Investigate functionality augmentations to a lot of collections iterators. For instance DList's iterator provides <code class="notranslate">peek_next</code> and <code class="notranslate">remove_next</code> methods for soundly removing elements from the list during iteration. At <em>least</em> Vec, RingBuf, and HashMap could all support this soundly, I believe. Vec, RingBuf, and DList could also support <code class="notranslate">insert_next</code>. Special iterator-like objects dedicated to these tasks might be better ideas, though (cursors, zippers, etc).</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="42940833" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/17320" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/17320/hovercard" href="https://github.com/rust-lang/rust/issues/17320">#17320</a> Implement the new Entry API on TreeMap and TrieMap.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Investigate different hashing architectures and mechanisms for hash algorithm selection than the current one. For instance, our current stream-based architecture is poorly designed for small keys (e.g. u64's) which can and should be hashed in a single step.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="38641004" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/15947" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/15947/hovercard" href="https://github.com/rust-lang/rust/issues/15947">#15947</a> Investigate making ordering-based collections <em>comparator</em> based rather than directly <em>Ord</em>-based using unboxed closures. Ord types should be supported through some kind of "natural comparator" that is reversible (for supporting reverse orderings). PriorityQueue in particular would like this to simplify min-vs-max-heap.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Investigate optimizing PriorityQueue.extend with a modified heapify operation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Consider more slice utility methods. slice.rotate_left/right? slice.shift_and_replace_left/right?</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Consider providing <code class="notranslate">split(&amp;mut self, at: Index) -&gt; Self</code> on some collections.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Investigate tricks used in other languages to optimize for common/special access patterns.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Tests! Code coverage!</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Docs! Examples!</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Detailed discussions of what individual collections are good/bad for.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Performance comparison tables (probably just assymptoticss</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> There was only one other checked box and it looked lonely so I made it a friend. :D</li> </ul>
<p dir="auto">Tracking issue for the <code class="notranslate">fmt_flags_align</code> feature, which is <a href="https://doc.rust-lang.org/nightly/std/fmt/struct.Formatter.html#method.align" rel="nofollow"><code class="notranslate">fmt::Formatter::align</code></a> and the associated enum.</p>
0
<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>
<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>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=nurkiewicz" rel="nofollow">Tomasz Nurkiewicz</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8943?redirect=false" rel="nofollow">SPR-8943</a></strong> and commented</p> <p dir="auto">Spring 3.1 introduces several <code class="notranslate">@Enable*</code> annotations. However this code snippet:</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;context:mbean-export/&gt;"><pre class="notranslate">&lt;<span class="pl-ent">context</span><span class="pl-ent">:</span><span class="pl-ent">mbean-export</span>/&gt;</pre></div> <p dir="auto">cannot be expressed with annotations. There is a valid simple workaround:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Bean public AnnotationMBeanExporter annotationMBeanExporter() { return new AnnotationMBeanExporter(); }"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">Bean</span> <span class="pl-k">public</span> <span class="pl-smi">AnnotationMBeanExporter</span> <span class="pl-s1">annotationMBeanExporter</span>() { <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-smi">AnnotationMBeanExporter</span>(); }</pre></div> <p dir="auto">but it would be nice to have built-in <code class="notranslate">@Enable...</code> annotation. Note that in JavaConfig project there was <code class="notranslate">@MBeanExport</code> <a href="http://static.springsource.org/spring-javaconfig/docs/1.0.0.M4/javadoc-api/org/springframework/config/java/plugin/context/MBeanExport.html" rel="nofollow">annotation</a>.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1 GA</p> <p dir="auto"><strong>Sub-tasks:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398154317" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14552" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14552/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14552">#14552</a> Document <code class="notranslate">@EnableMBeanExport</code> in reference manual</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398112208" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12963" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12963/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12963">#12963</a> Provide <code class="notranslate">@Configuration</code> support for automatic MBean registration (<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="398180827" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/17728" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/17728/hovercard" href="https://github.com/spring-projects/spring-framework/issues/17728">#17728</a> Add an enum for MBeanExporter Autodetect Mode</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/0bd4dab4e3326be511d5a9e9cecdfa8279935993/hovercard" href="https://github.com/spring-projects/spring-framework/commit/0bd4dab4e3326be511d5a9e9cecdfa8279935993"><tt>0bd4dab</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/d52e86853026fa66cf9e7a8cfdc38791c80d93c4/hovercard" href="https://github.com/spring-projects/spring-framework/commit/d52e86853026fa66cf9e7a8cfdc38791c80d93c4"><tt>d52e868</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/5d4d1eaca4fa8af29f07e23b89bee8fd028820bd/hovercard" href="https://github.com/spring-projects/spring-framework/commit/5d4d1eaca4fa8af29f07e23b89bee8fd028820bd"><tt>5d4d1ea</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/cae08db6a9808bf9708d8bfd69417f792d4b06b6/hovercard" href="https://github.com/spring-projects/spring-framework/commit/cae08db6a9808bf9708d8bfd69417f792d4b06b6"><tt>cae08db</tt></a></p> <p dir="auto">5 votes, 3 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=ndemengel" rel="nofollow">Nicolas Demengel</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7589?redirect=false" rel="nofollow">SPR-7589</a></strong> and commented</p> <p dir="auto">Hi people,</p> <p dir="auto">I might have found an odd behavior in the AbstractUrlHandlerMapping class : given two controllers, one annotated with <code class="notranslate">@RequestMapping</code>("/**") and the another one annotated with <code class="notranslate">@RequestMapping</code>("/access/{resourceType}/{resourceSubType}/{resourceName}"), when the path "/access/document/text/sometextdocument" is evaluated I would expect the second controller to be chosen to handle the request but it is the first one that is taken.</p> <p dir="auto">Looking at the code of AbstractUrlHandlerMapping.lookupHandler() one can see that when several patterns are found that match the path, they are ordered using an AntPatternComparator to find the most pertinent one for it. Digging in further, this comparator orders patterns based on their level of incertitude, counting the occurrences of wildcards and brackets. In my opinion it should read patterns as we do (i.e. from left to right in our countries) to see if the pattern start makes it more suitable to handle the path that is evaluated.</p> <p dir="auto">I attached a JUnit test to illustrate my point.</p> <p dir="auto">Thanks</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.4</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/17132/AntPatternComparatorTest.java" rel="nofollow">AntPatternComparatorTest.java</a> (<em>1.45 kB</em>)</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398102244" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11407" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11407/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11407">#11407</a> RequestMapping with 3 PathVariable doesn't work (<em><strong>"duplicates"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398114462" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13325" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13325/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13325">#13325</a> AntPathMatcher.AntPatternComparator algorithm wrong for hierarchical matches</li> </ul> <p dir="auto">1 votes, 1 watchers</p>
0
<p dir="auto">I am using exporter from tensorflow.contrib.session_bundle to save out my model:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="x = tf.placeholder(tf.float32, (None,) + (100, 200) + (1,)) .... saver = tf_saver.Saver(sharded=True) model_exporter = exporter.Exporter(saver) model_exporter.init( sess.graph.as_graph_def(), named_graph_signatures={ 'inputs': exporter.generic_signature({'images': x}), 'outputs': exporter.generic_signature({'classes': y})})"><pre class="notranslate"><code class="notranslate">x = tf.placeholder(tf.float32, (None,) + (100, 200) + (1,)) .... saver = tf_saver.Saver(sharded=True) model_exporter = exporter.Exporter(saver) model_exporter.init( sess.graph.as_graph_def(), named_graph_signatures={ 'inputs': exporter.generic_signature({'images': x}), 'outputs': exporter.generic_signature({'classes': y})}) </code></pre></div> <p dir="auto">and then I load the model back in (session_bundle from tensorflow.contrib.session_bundle):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sess, meta_graph_def = session_bundle.load_session_bundle_from_path(input)"><pre class="notranslate"><code class="notranslate">sess, meta_graph_def = session_bundle.load_session_bundle_from_path(input) </code></pre></div> <p dir="auto">However when I inspect the Placeholder tensor corresponding to the input x, I see no shape information:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; sess.graph.get_tensor_by_name(input_name) &lt;tf.Tensor 'Placeholder:0' shape=&lt;unknown&gt; dtype=float32&gt;"><pre class="notranslate"><code class="notranslate">&gt; sess.graph.get_tensor_by_name(input_name) &lt;tf.Tensor 'Placeholder:0' shape=&lt;unknown&gt; dtype=float32&gt; </code></pre></div> <p dir="auto">Is this by design or is there some bug causing the shape to be lost?</p> <h3 dir="auto">What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?</h3> <p dir="auto">Report from SO: <a href="http://stackoverflow.com/questions/40733752/exported-tensorflow-model-not-preserving-placeholder-shape" rel="nofollow">http://stackoverflow.com/questions/40733752/exported-tensorflow-model-not-preserving-placeholder-shape</a></p> <h3 dir="auto">Environment info</h3> <p dir="auto">Operating System:<br> Using <code class="notranslate">gcr.io/tensorflow/tensorflow:latest-devel-gpu</code> docker iamge</p> <p dir="auto">Installed version of CUDA and cuDNN:<br> (please attach the output of <code class="notranslate">ls -l /path/to/cuda/lib/libcud*</code>):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# ls -al /usr/local/cuda/lib64/libcud* -rw-r--r-- 1 root root 558720 Sep 14 23:02 /usr/local/cuda/lib64/libcudadevrt.a lrwxrwxrwx 1 root root 16 Sep 14 23:05 /usr/local/cuda/lib64/libcudart.so -&gt; libcudart.so.8.0 lrwxrwxrwx 1 root root 19 Sep 14 23:05 /usr/local/cuda/lib64/libcudart.so.8.0 -&gt; libcudart.so.8.0.44 -rw-r--r-- 1 root root 415432 Sep 14 23:02 /usr/local/cuda/lib64/libcudart.so.8.0.44 -rw-r--r-- 1 root root 775162 Sep 14 23:02 /usr/local/cuda/lib64/libcudart_static.a lrwxrwxrwx 1 1000 users 13 Jul 27 05:55 /usr/local/cuda/lib64/libcudnn.so -&gt; libcudnn.so.5 lrwxrwxrwx 1 1000 users 17 Jul 27 05:55 /usr/local/cuda/lib64/libcudnn.so.5 -&gt; libcudnn.so.5.1.5 -rwxrwxr-x 1 1000 users 79337624 Jul 27 05:53 /usr/local/cuda/lib64/libcudnn.so.5.1.5 -rw-rw-r-- 1 1000 users 69756172 Jul 27 05:53 /usr/local/cuda/lib64/libcudnn_static.a"><pre class="notranslate"><code class="notranslate"># ls -al /usr/local/cuda/lib64/libcud* -rw-r--r-- 1 root root 558720 Sep 14 23:02 /usr/local/cuda/lib64/libcudadevrt.a lrwxrwxrwx 1 root root 16 Sep 14 23:05 /usr/local/cuda/lib64/libcudart.so -&gt; libcudart.so.8.0 lrwxrwxrwx 1 root root 19 Sep 14 23:05 /usr/local/cuda/lib64/libcudart.so.8.0 -&gt; libcudart.so.8.0.44 -rw-r--r-- 1 root root 415432 Sep 14 23:02 /usr/local/cuda/lib64/libcudart.so.8.0.44 -rw-r--r-- 1 root root 775162 Sep 14 23:02 /usr/local/cuda/lib64/libcudart_static.a lrwxrwxrwx 1 1000 users 13 Jul 27 05:55 /usr/local/cuda/lib64/libcudnn.so -&gt; libcudnn.so.5 lrwxrwxrwx 1 1000 users 17 Jul 27 05:55 /usr/local/cuda/lib64/libcudnn.so.5 -&gt; libcudnn.so.5.1.5 -rwxrwxr-x 1 1000 users 79337624 Jul 27 05:53 /usr/local/cuda/lib64/libcudnn.so.5.1.5 -rw-rw-r-- 1 1000 users 69756172 Jul 27 05:53 /usr/local/cuda/lib64/libcudnn_static.a </code></pre></div> <p dir="auto">If installed from source, provide</p> <ol dir="auto"> <li>The commit hash (<code class="notranslate">git rev-parse HEAD</code>)</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="4d924e796368163eff11a8151e8505715345f58d"><pre class="notranslate"><code class="notranslate">4d924e796368163eff11a8151e8505715345f58d </code></pre></div> <ol start="2" dir="auto"> <li>The output of <code class="notranslate">bazel version</code></li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# bazel version INFO: Reading 'startup' options from /root/.bazelrc: --batch Extracting Bazel installation... Build label: 0.3.2 Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar Build time: Fri Oct 7 17:25:10 2016 (1475861110) Build timestamp: 1475861110 Build timestamp as int: 1475861110"><pre class="notranslate"><code class="notranslate"># bazel version INFO: Reading 'startup' options from /root/.bazelrc: --batch Extracting Bazel installation... Build label: 0.3.2 Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar Build time: Fri Oct 7 17:25:10 2016 (1475861110) Build timestamp: 1475861110 Build timestamp as int: 1475861110 </code></pre></div>
<p dir="auto">I am following along from this point: <a href="https://www.tensorflow.org/get_started/get_started#basic_usage" rel="nofollow">https://www.tensorflow.org/get_started/get_started#basic_usage</a><br> It is a linear regression example.</p> <p dir="auto">I have approached this execution from two angles:</p> <p dir="auto">Angle 1: Running python and copying one line at a time.<br> When run this line: estimator = <code class="notranslate">tf.contrib.learn.LinearRegressor(feature_columns=features)</code></p> <p dir="auto">I get this issue: <code class="notranslate">WARNING:tensorflow:Using temporary folder as model directory: C:\Users\elavi\AppData\Local\Temp\tmprirdvmnn INFO:tensorflow:Using default config. INFO:tensorflow:Using config: {'_tf_config': gpu_options { per_process_gpu_memory_fraction: 1 } , '_task_type': None, '_save_checkpoints_steps': None, '_master': '', '_is_chief': True, '_cluster_spec': &lt;tensorflow.python.training.server_lib.ClusterSpec object at 0x0000021D2049C390&gt;, '_task_id': 0, '_save_checkpoints_secs': 600, '_save_summary_steps': 100, '_keep_checkpoint_max': 5, '_keep_checkpoint_every_n_hours': 10000, '_evaluation_master': '', '_tf_random_seed': None, '_environment': 'local', '_num_ps_replicas': 0}</code></p> <p dir="auto">Angle 2: It may be more helpful to see how I run it as a script as a whole. The output is:<br> <code class="notranslate">WARNING:tensorflow:Using temporary folder as model directory: C:\Users\elavi\AppData\Local\Temp\tmp41huenz5 WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change. WARNING:tensorflow:From C:\Users\elavi\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\head.py:521: scalar_summary (from tensorflow.python.ops.logging_ops) is deprecated and will be removed after 2016-11-30. Instructions for updating: Please switch to tf.summary.scalar. Note that tf.summary.scalar uses the node name instead of the tag. This means that TensorFlow will automatically de-duplicate summary names based on the scope they are created in. Also, passing a tensor or list of tags to a scalar summary op is no longer supported. 2017-02-24 00:02:36.386704: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE instructions, but these are available on your machine and could speed up CPU computations. 2017-02-24 00:02:36.388071: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE2 instructions, but these are available on your machine and could speed up CPU computations. 2017-02-24 00:02:36.389235: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE3 instructions, but these are available on your machine and could speed up CPU computations. 2017-02-24 00:02:36.389290: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations. 2017-02-24 00:02:36.390010: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations. 2017-02-24 00:02:36.390894: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations. 2017-02-24 00:02:36.391659: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations. 2017-02-24 00:02:36.392248: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations. WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change. WARNING:tensorflow:From C:\Users\elavi\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\head.py:521: scalar_summary (from tensorflow.python.ops.logging_ops) is deprecated and will be removed after 2016-11-30. Instructions for updating: Please switch to tf.summary.scalar. Note that tf.summary.scalar uses the node name instead of the tag. This means that TensorFlow will automatically de-duplicate summary names based on the scope they are created in. Also, passing a tensor or list of tags to a scalar summary op is no longer supported. WARNING:tensorflow:Skipping summary for global_step, must be a float or np.float32. </code></p> <p dir="auto">I am interested in what is going on but I really need things simplified. A list of steps to fix this would be great. Also, if there are any better ways I could pose my problems in the future, please let me know.</p> <h3 dir="auto">What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?</h3> <p dir="auto">Many. The issue is that I am very new. My ability to understand solutions is very small. I am not well versed with the required terminology. So I have seen this problem posed and closed but I just can't follow along.</p> <h3 dir="auto">Environment info</h3> <p dir="auto">Operating System: Windows 10</p> <p dir="auto">Installed version of CUDA and cuDNN: I have the latest version but I probably shouldn't because I do not have a dedicated graphics card. (I am doing initial development on Microsoft Surface Pro 4)</p> <p dir="auto">TF Version<br> 1.0.0-rc2</p>
0
<h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">master branch(5.0.0-RC1)</p> <h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3> <p dir="auto">ShardingSphere-Proxy</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">create CREDENTIAL table successfully, in actual table,this is four table on mysql server</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">o.a.s.p.f.c.CommandExecutorTask - Exception occur:com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Can't write; duplicate key in table 'credential_1'</p> <h3 dir="auto">Reason analyze (If you can)</h3> <p dir="auto">The foreign key name was not changed when the table was split</p> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="schemaName: test dataSources: ds_0: url: jdbc:mysql://db:3306/test?useSSL=false username: root password: root connectionTimeoutMilliseconds: 30000 idleTimeoutMilliseconds: 60000 maxLifetimeMilliseconds: 1800000 maxPoolSize: 50 minPoolSize: 1 rules: - !SHARDING tables: CREDENTIAL: actualDataNodes: ds_0.CREDENTIAL_${0..3} tableStrategy: standard: shardingColumn: ID shardingAlgorithmName: credential_inline defaultDatabaseStrategy: none: defaultTableStrategy: none: bindingTables: - CREDENTIAL shardingAlgorithms: credential_inline: type: INLINE props: algorithm-expression: CREDENTIAL_${Math.abs(ID.hashCode() % 4)} keyGenerators: snowflake: type: SNOWFLAKE props: worker-id: 123"><pre class="notranslate"><code class="notranslate">schemaName: test dataSources: ds_0: url: jdbc:mysql://db:3306/test?useSSL=false username: root password: root connectionTimeoutMilliseconds: 30000 idleTimeoutMilliseconds: 60000 maxLifetimeMilliseconds: 1800000 maxPoolSize: 50 minPoolSize: 1 rules: - !SHARDING tables: CREDENTIAL: actualDataNodes: ds_0.CREDENTIAL_${0..3} tableStrategy: standard: shardingColumn: ID shardingAlgorithmName: credential_inline defaultDatabaseStrategy: none: defaultTableStrategy: none: bindingTables: - CREDENTIAL shardingAlgorithms: credential_inline: type: INLINE props: algorithm-expression: CREDENTIAL_${Math.abs(ID.hashCode() % 4)} keyGenerators: snowflake: type: SNOWFLAKE props: worker-id: 123 </code></pre></div> <p dir="auto">Create database statement is<br> CREATE TABLE <code class="notranslate">CREDENTIAL</code> (<br> <code class="notranslate">ID</code> varchar(36) NOT NULL,<br> <code class="notranslate">SALT</code> tinyblob,<br> <code class="notranslate">TYPE</code> varchar(255) DEFAULT NULL,<br> <code class="notranslate">USER_ID</code> varchar(36) DEFAULT NULL,<br> <code class="notranslate">CREATED_DATE</code> bigint(20) DEFAULT NULL,<br> <code class="notranslate">USER_LABEL</code> varchar(255) DEFAULT NULL,<br> <code class="notranslate">SECRET_DATA</code> longtext,<br> <code class="notranslate">CREDENTIAL_DATA</code> longtext,<br> <code class="notranslate">PRIORITY</code> int(11) DEFAULT NULL,<br> PRIMARY KEY (<code class="notranslate">ID</code>),<br> KEY <code class="notranslate">IDX_USER_CREDENTIAL</code> (<code class="notranslate">USER_ID</code>),<br> CONSTRAINT <code class="notranslate">FK_PFYR0GLASQYL0DEI3KL69R6V0</code> FOREIGN KEY (<code class="notranslate">USER_ID</code>) REFERENCES <code class="notranslate">USER_ENTITY</code> (<code class="notranslate">ID</code>)<br> ) ENGINE=InnoDB DEFAULT CHARSET=utf8;</p>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">My version is ShardingSphere 5.3.1</p> <h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3> <p dir="auto">I use ShardingSphere-JDBC</p> <h3 dir="auto">Operation steps</h3> <p dir="auto">I imported ShardingSphere in the SpringBoot project and reported an error.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &lt;dependency&gt; &lt;groupId&gt;org.apache.shardingsphere&lt;/groupId&gt; &lt;artifactId&gt;shardingsphere&lt;/artifactId&gt; &lt;version&gt;5.3.1&lt;/version&gt; &lt;type&gt;pom&lt;/type&gt; &lt;scope&gt;import&lt;/scope&gt; &lt;/dependency&gt;"><pre class="notranslate"><code class="notranslate"> &lt;dependency&gt; &lt;groupId&gt;org.apache.shardingsphere&lt;/groupId&gt; &lt;artifactId&gt;shardingsphere&lt;/artifactId&gt; &lt;version&gt;5.3.1&lt;/version&gt; &lt;type&gt;pom&lt;/type&gt; &lt;scope&gt;import&lt;/scope&gt; &lt;/dependency&gt; </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Could not transfer artifact org.springframework:spring-jdbc:jar:${springframework.version} "><pre class="notranslate"><code class="notranslate">Could not transfer artifact org.springframework:spring-jdbc:jar:${springframework.version} </code></pre></div> <p dir="auto">After repeated debugging, the original pom.xml of the parent module does not define the &lt;springframework.version/&gt; variable.</p> <p dir="auto">I hope to solve this problem. Thank you very much.</p>
0
<p dir="auto">Here is a small test program to demonstrate the bug:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import requests url = &quot;http://lohas.pixnet.net/blog&quot; r = requests.get(url) iter_lines = [line for line in r.iter_lines(chunk_size=7, decode_unicode=False)] split_lines = r.content.splitlines() for index, (iline, sline) in enumerate(zip(iter_lines, split_lines)): if iline != sline: print(&quot;line {} is broken&quot;.format(index)) print(iline, len(iline)) print(sline, len(sline)) break"><pre class="notranslate"><code class="notranslate">import requests url = "http://lohas.pixnet.net/blog" r = requests.get(url) iter_lines = [line for line in r.iter_lines(chunk_size=7, decode_unicode=False)] split_lines = r.content.splitlines() for index, (iline, sline) in enumerate(zip(iter_lines, split_lines)): if iline != sline: print("line {} is broken".format(index)) print(iline, len(iline)) print(sline, len(sline)) break </code></pre></div> <p dir="auto">Expected behavior:<br> r.iter_lines() should give the same result as r.content.splitlines()</p> <p dir="auto">Actual behavior:<br> The test program generates the following output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="line 275 is broken b'' 0 b'\t\t\t&lt;tbody&gt;' 10"><pre class="notranslate"><code class="notranslate">line 275 is broken b'' 0 b'\t\t\t&lt;tbody&gt;' 10 </code></pre></div> <p dir="auto">Changing chunk_size can break different lines.</p>
<p dir="auto">I'm using a proxy that requires authentication to send request that receives 302 response with Location header. I would like python.requests to follow this redirect and make request via proxy with specified credentials. But it seems like this doesn't happen, if I provide credentials in HTTPProxyAuth they will work ok for 200 responses but will fail for 302. See below code sample:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" import requests from requests.auth import HTTPProxyAuth sess = requests.Session() url1 = 'http://httpbin.org/' url2 = 'http://httpbin.org/redirect/2' auth = HTTPProxyAuth('frank', 'hunter2') proxies = { &quot;http&quot;: &quot;http://localhost:9000&quot; } response1 = sess.get(url1, proxies=proxies, auth=auth) response1.raise_for_status() response2 = sess.get(url2, proxies=proxies, auth=auth) response2.raise_for_status()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">requests</span> <span class="pl-k">from</span> <span class="pl-s1">requests</span>.<span class="pl-s1">auth</span> <span class="pl-k">import</span> <span class="pl-v">HTTPProxyAuth</span> <span class="pl-s1">sess</span> <span class="pl-c1">=</span> <span class="pl-s1">requests</span>.<span class="pl-v">Session</span>() <span class="pl-s1">url1</span> <span class="pl-c1">=</span> <span class="pl-s">'http://httpbin.org/'</span> <span class="pl-s1">url2</span> <span class="pl-c1">=</span> <span class="pl-s">'http://httpbin.org/redirect/2'</span> <span class="pl-s1">auth</span> <span class="pl-c1">=</span> <span class="pl-v">HTTPProxyAuth</span>(<span class="pl-s">'frank'</span>, <span class="pl-s">'hunter2'</span>) <span class="pl-s1">proxies</span> <span class="pl-c1">=</span> { <span class="pl-s">"http"</span>: <span class="pl-s">"http://localhost:9000"</span> } <span class="pl-s1">response1</span> <span class="pl-c1">=</span> <span class="pl-s1">sess</span>.<span class="pl-en">get</span>(<span class="pl-s1">url1</span>, <span class="pl-s1">proxies</span><span class="pl-c1">=</span><span class="pl-s1">proxies</span>, <span class="pl-s1">auth</span><span class="pl-c1">=</span><span class="pl-s1">auth</span>) <span class="pl-s1">response1</span>.<span class="pl-en">raise_for_status</span>() <span class="pl-s1">response2</span> <span class="pl-c1">=</span> <span class="pl-s1">sess</span>.<span class="pl-en">get</span>(<span class="pl-s1">url2</span>, <span class="pl-s1">proxies</span><span class="pl-c1">=</span><span class="pl-s1">proxies</span>, <span class="pl-s1">auth</span><span class="pl-c1">=</span><span class="pl-s1">auth</span>) <span class="pl-s1">response2</span>.<span class="pl-en">raise_for_status</span>()</pre></div> <p dir="auto">Now launch MITM proxy on localhost</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; mitmproxy -p 9000 --singleuser=frank:hunter2"><pre class="notranslate"><code class="notranslate">&gt; mitmproxy -p 9000 --singleuser=frank:hunter2 </code></pre></div> <p dir="auto">This fails with 407 for me, and proxy logs only two requests</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" response2.raise_for_status() File &quot;----------&quot;, line 862, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 407 Client Error: Proxy Authentication Required for url: http://httpbin.org/relative-redirect/1"><pre class="notranslate"><code class="notranslate"> response2.raise_for_status() File "----------", line 862, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 407 Client Error: Proxy Authentication Required for url: http://httpbin.org/relative-redirect/1 </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt; GET http://httpbin.org/ ← 200 text/html 11.87kB 3.57MB/s GET http://httpbin.org/redirect/2 ← 302 text/html 247B 76.59kB/s "><pre class="notranslate"><code class="notranslate">&gt;&gt; GET http://httpbin.org/ ← 200 text/html 11.87kB 3.57MB/s GET http://httpbin.org/redirect/2 ← 302 text/html 247B 76.59kB/s </code></pre></div> <p dir="auto">it does not log request to <code class="notranslate">Location</code>.</p> <p dir="auto">I see that putting credentials in proxies dictionary somehow fixes this issue when I use MITM proxy but it doesn't fix it for my production proxy (can't share code or proxy details here, need to check closer why it doesn't work for my proxy). I guess some details in setup of proxies might vary.</p> <p dir="auto">Is this a bug? I see some issues for proxy auth but they are mostly about HTTPS, not sure if someone reported this thing I describe here. Should this be fixed?</p> <p dir="auto">EDIT:</p> <p dir="auto">It looks like this always fails if proxy password is empty string.</p> <p dir="auto">change auth to</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="auth = HTTPProxyAuth('frank', '') proxies = { &quot;http&quot;: &quot;http://frank:@localhost:9000&quot; }"><pre class="notranslate"><span class="pl-s1">auth</span> <span class="pl-c1">=</span> <span class="pl-v">HTTPProxyAuth</span>(<span class="pl-s">'frank'</span>, <span class="pl-s">''</span>) <span class="pl-s1">proxies</span> <span class="pl-c1">=</span> { <span class="pl-s">"http"</span>: <span class="pl-s">"http://frank:@localhost:9000"</span> }</pre></div> <p dir="auto">will now always fail on redirect.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="auth = HTTPProxyAuth('frank', 'hunter2') proxies = { &quot;http&quot;: &quot;http://frank:hunter2@localhost:9000&quot; }"><pre class="notranslate"><span class="pl-s1">auth</span> <span class="pl-c1">=</span> <span class="pl-v">HTTPProxyAuth</span>(<span class="pl-s">'frank'</span>, <span class="pl-s">'hunter2'</span>) <span class="pl-s1">proxies</span> <span class="pl-c1">=</span> { <span class="pl-s">"http"</span>: <span class="pl-s">"http://frank:hunter2@localhost:9000"</span> }</pre></div> <p dir="auto">works fine on redirects, but seems somewhat duplicated.</p> <p dir="auto">I noticed this on Ubuntu 14.04, requests 2.11.1, python 2.7.6, mitmproxy 0.10.1</p>
0
<p dir="auto">I'm playing with k8s by writing a go client to contact k8s api. However, when doing "go get k8s.io/kubernetes/pkg/api", there are too many errors:</p> <p dir="auto">$ go get k8s.io/kubernetes/pkg/api</p> <h1 dir="auto">k8s.io/kubernetes/pkg/api</h1> <p dir="auto">../../../k8s.io/kubernetes/pkg/api/types.generated.go:439: r.EncodeEnd undefined (type codec.encDriver has no field or method EncodeEnd)<br> ../../../k8s.io/kubernetes/pkg/api/types.generated.go:454: r.IsContainerType undefined (type codec.decDriver has no field or method IsContainerType)<br> ../../../k8s.io/kubernetes/pkg/api/types.generated.go:457: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)<br> ../../../k8s.io/kubernetes/pkg/api/types.generated.go:461: r.IsContainerType undefined (type codec.decDriver has no field or method IsContainerType)<br> ../../../k8s.io/kubernetes/pkg/api/types.generated.go:464: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)<br> ../../../k8s.io/kubernetes/pkg/api/types.generated.go:619: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)<br> ../../../k8s.io/kubernetes/pkg/api/types.generated.go:637: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)<br> ../../../k8s.io/kubernetes/pkg/api/types.generated.go:652: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)<br> ../../../k8s.io/kubernetes/pkg/api/types.generated.go:667: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)<br> ../../../k8s.io/kubernetes/pkg/api/types.generated.go:682: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)<br> ../../../k8s.io/kubernetes/pkg/api/types.generated.go:682: too many errors</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ # with an empty GOPATH $ go get k8s.io/kubernetes/pkg/api"><pre class="notranslate"><code class="notranslate">$ # with an empty GOPATH $ go get k8s.io/kubernetes/pkg/api </code></pre></div> <p dir="auto">What I expected to happen: the package is fetched, compiled, and made available for use.</p> <p dir="auto">What actually happened:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# k8s.io/kubernetes/pkg/api src/k8s.io/kubernetes/pkg/api/types.generated.go:439: r.EncodeEnd undefined (type codec.encDriver has no field or method EncodeEnd) src/k8s.io/kubernetes/pkg/api/types.generated.go:454: r.IsContainerType undefined (type codec.decDriver has no field or method IsContainerType) src/k8s.io/kubernetes/pkg/api/types.generated.go:457: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd) src/k8s.io/kubernetes/pkg/api/types.generated.go:461: r.IsContainerType undefined (type codec.decDriver has no field or method IsContainerType) src/k8s.io/kubernetes/pkg/api/types.generated.go:464: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd) src/k8s.io/kubernetes/pkg/api/types.generated.go:619: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd) src/k8s.io/kubernetes/pkg/api/types.generated.go:637: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd) src/k8s.io/kubernetes/pkg/api/types.generated.go:652: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd) src/k8s.io/kubernetes/pkg/api/types.generated.go:667: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd) src/k8s.io/kubernetes/pkg/api/types.generated.go:682: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd) src/k8s.io/kubernetes/pkg/api/types.generated.go:682: too many errors"><pre class="notranslate"><code class="notranslate"># k8s.io/kubernetes/pkg/api src/k8s.io/kubernetes/pkg/api/types.generated.go:439: r.EncodeEnd undefined (type codec.encDriver has no field or method EncodeEnd) src/k8s.io/kubernetes/pkg/api/types.generated.go:454: r.IsContainerType undefined (type codec.decDriver has no field or method IsContainerType) src/k8s.io/kubernetes/pkg/api/types.generated.go:457: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd) src/k8s.io/kubernetes/pkg/api/types.generated.go:461: r.IsContainerType undefined (type codec.decDriver has no field or method IsContainerType) src/k8s.io/kubernetes/pkg/api/types.generated.go:464: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd) src/k8s.io/kubernetes/pkg/api/types.generated.go:619: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd) src/k8s.io/kubernetes/pkg/api/types.generated.go:637: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd) src/k8s.io/kubernetes/pkg/api/types.generated.go:652: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd) src/k8s.io/kubernetes/pkg/api/types.generated.go:667: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd) src/k8s.io/kubernetes/pkg/api/types.generated.go:682: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd) src/k8s.io/kubernetes/pkg/api/types.generated.go:682: too many errors </code></pre></div> <p dir="auto">type.generated.go needs to be regenerated with the latest codec.</p> <p dir="auto">It is insufficient to say this is handled by Godeps, as third-party packages directly <code class="notranslate">import "k8s.io/kumernetes/pkg/api"</code>, and you don't rewrite your import paths.</p>
1
<p dir="auto">When I try to start program using command<br> <code class="notranslate">sudo npx react-devtools</code><br> I get error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/usr/local/lib/node_modules/react-devtools/node_modules/electron/index.js:14 throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again') ^ Error: Electron failed to install correctly, please delete node_modules/electron and try installing again at getElectronPath (/usr/local/lib/node_modules/react-devtools/node_modules/electron/index.js:14:11)"><pre class="notranslate"><code class="notranslate">/usr/local/lib/node_modules/react-devtools/node_modules/electron/index.js:14 throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again') ^ Error: Electron failed to install correctly, please delete node_modules/electron and try installing again at getElectronPath (/usr/local/lib/node_modules/react-devtools/node_modules/electron/index.js:14:11) </code></pre></div> <p dir="auto">Even I install react-devtools localy by <code class="notranslate">sudo npm install -g react-devtools</code> and after start program by <code class="notranslate">sudo react-devtools</code>, get the same error.</p> <p dir="auto">Any idea how to fix this?</p> <hr> <p dir="auto">Linux Mint 20 Cinnamon<br> react-devtools Version 4.8.2</p>
<p dir="auto">I use systemJs to load a system module in a react project, the module include some react function component use react hooks。<br> and react project get Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons</p> <p dir="auto">React version: 17.0.2</p> <h2 dir="auto">Steps To Reproduce</h2> <ol dir="auto"> <li>git clone <a href="mailto:[email protected]">[email protected]</a>:ytudt/react-systemjs.git</li> <li>cd base-components npm install &amp;&amp; npm run start</li> <li>cd base-projects npm install &amp;&amp; npm run start</li> <li>open <a href="http://localhost:3000/" rel="nofollow">http://localhost:3000/</a> in the default browser</li> </ol> <p dir="auto">Link to code example:</p> <p dir="auto"><a href="https://github.com/ytudt/react-systemjs">https://github.com/ytudt/react-systemjs</a></p> <h2 dir="auto">The current behavior</h2> <p dir="auto">Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:</p> <h2 dir="auto">The expected behavior</h2> <p dir="auto">expected run ok</p>
0
<p dir="auto">DoctrineAbstractBundle contains only the base DI extension used by all Doctrine_Bundles. It was a good idea when we had all bundles in the core but it seems wrong now that they are in different repos, updated at different time. A change in it is likely to break another Doctrine_Bundle as the testsuite does not check this for us to make us update them. So these bundles may easily become broken because of an internal change in DoctrineBundle (like what occurred in <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/symfony/symfony/commit/3ca1ccbf6764de5e2d48b2ddabdd2f1eb7075459/hovercard" href="https://github.com/symfony/symfony/commit/3ca1ccbf6764de5e2d48b2ddabdd2f1eb7075459"><tt>3ca1ccb</tt></a> for instance).<br> The bad thing about it would be some code duplication between the different bundles. <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fabpot/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fabpot">@fabpot</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jwage/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jwage">@jwage</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/beberlei/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/beberlei">@beberlei</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lsmith/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lsmith">@lsmith</a> what do you think about it ?</p> <p dir="auto">Btw, the DoctrineBundle DI extension should probably be refactored to use abstract service definitions instead of defining full services in PHP in the extension. It would make it smaller (but this feature was introduced in the DI component after writing DoctrineBundle). I will add it on my todo-list so it is the right time to choose whether we keep the DoctrineAbstractBundle or no (one refactoring is better than two).</p>
<p dir="auto">I think we should change <code class="notranslate">YamlExtension::dump</code> method to return <code class="notranslate">$this-&gt;encode($value);</code> in the end because it does not output boolean values as string. If a parameter attribute in the request contains the value <code class="notranslate">false</code> or <code class="notranslate">true</code> (for example <code class="notranslate">_template_streamable</code>) in the Profiler application, the result will be an empty string. Of course, we expect to have the string <code class="notranslate">false</code> or <code class="notranslate">true</code> displayed according to the value in the <code class="notranslate">_template_streamable</code> attribute (or whatever request boolean attribute).</p> <p dir="auto">If we force a string value containing special characters to be encoded in Yaml, the output in the Profiler will be appended and prepended with single quotes like this:</p> <p dir="auto">Before:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Acme\DemoBundle\Controller\DemoController::helloAction"><pre class="notranslate"><code class="notranslate">Acme\DemoBundle\Controller\DemoController::helloAction </code></pre></div> <p dir="auto">After:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'Acme\DemoBundle\Controller\DemoController::helloAction'"><pre class="notranslate"><code class="notranslate">'Acme\DemoBundle\Controller\DemoController::helloAction' </code></pre></div> <p dir="auto">Maybe we can also leave the return statement as is and add this at the beginning of the method:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if (is_bool($value)) { return (true === $value) ? 'true' : 'false'; }"><pre class="notranslate"><code class="notranslate">if (is_bool($value)) { return (true === $value) ? 'true' : 'false'; } </code></pre></div> <p dir="auto">But it's a duplication of code of what we have in the <code class="notranslate">Symfony\Component\Yaml\Inline::dump</code> method.</p> <p dir="auto">So my two questions are:</p> <ul dir="auto"> <li>Should we return <code class="notranslate">$this-&gt;encode($value)</code> at the end of the <code class="notranslate">YamlExtension::dump</code> method or should we simply add a test on boolean values at the top of this method to return the strings <code class="notranslate">false</code> or <code class="notranslate">true</code>?</li> <li>On which branch should we apply the patch?</li> </ul> <p dir="auto">Thanks.</p>
0
<h3 dir="auto">Version</h3> <p dir="auto">2.6.11</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://codesandbox.io/s/quirky-sid-198zy" rel="nofollow">https://codesandbox.io/s/quirky-sid-198zy</a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">change state in deactivated hook</p> <h3 dir="auto">What is expected?</h3> <p dir="auto">DOM should not be a re-rendered.</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">DOM is re-rendered.</p> <hr> <p dir="auto">When I change state in beforeDestroy hook, DOM is not re-rendered. However if I do the same thing in deactivate hook, DOM is re-rendered for a second, then move to the other route. I think It's definitely a bug.</p>
<h3 dir="auto">Version</h3> <p dir="auto">2.6.11</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://github.com/Robin-Hoodie/vue-test-project">https://github.com/Robin-Hoodie/vue-test-project</a></p> <h3 dir="auto">Steps to reproduce</h3> <ul dir="auto"> <li><code class="notranslate">vue create test-project</code> (choose default preset with babel/eslint)</li> <li>Add <code class="notranslate">src/index.js</code> file which exports generated HelloWorld component <code class="notranslate">export * from ./components/HelloWorld.vue</code></li> <li>Create <code class="notranslate">vue.config.js</code> file and add <code class="notranslate">webpack-bundle-analyzer</code> plugin to webpack config (this is just to inspect the bundle size)</li> <li>Change <code class="notranslate">build</code> command to <code class="notranslate">vue-cli-service build --target lib --name test-project src/index.js</code></li> <li>Run <code class="notranslate">yarn build</code></li> <li>Inspect generated <code class="notranslate">dist/report.html</code> file</li> <li>Notice <code class="notranslate">@vue/cli-service/lib/commands/build</code> is included in bundle</li> </ul> <h3 dir="auto">What is expected?</h3> <p dir="auto">Since <code class="notranslate">@vue/cli-service</code> is a <code class="notranslate">devDependency</code> I do not expect anything of this dependency to be included in the output bundle</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto"><code class="notranslate">@vue/cli-service/lib/commands/build</code> is included in the output bundle</p> <hr> <p dir="auto">I am developing a component library for internal use. I noticed the bundle was quite big and upon inspecting the output I noticed the <code class="notranslate">@vue/cli-service/lib/commands/build</code> was being included.</p> <p dir="auto">I had already added quite a lot of components, which may be the cause for that dependency taking in a lot more space than in the test project I created (34.63 KB gzipped vs 1.25 KB gzipped)</p>
0
<p dir="auto">The Ansible documentation for modules does not distinguish between modules that are pure modules and modules that have both a plugin and a module part.</p> <p dir="auto">After the new rewrite of the internals, where eg. plugins are derived from a base clase rather than being associated with a runner object, the situation can be confusing.</p> <p dir="auto">An action plugin will be derived from ActionBase, which has the function _execute_module().</p> <p dir="auto">This method will only call the module part of a "module" (terminology could be better), but not invoke the plugin part of the same.</p> <p dir="auto">This affects a few plugins. For example the unarchive plugin has a parameter called "copy=yes/no" to transfer files to a remote.</p> <p dir="auto">But copying files to a remote is in the plugin part, not in the module part.</p> <p dir="auto">So when this runs in a playbook it will do what the user is expecting, but when invoked from a plugin it won't and would fail with "file failed to transfer". This means code already present in unarchive have to be duplicated into the new plugin to action that part, which is illogical and frustrating.</p> <p dir="auto">Worse, there is also an issue with a much more basic module - the "stat" plugin.</p> <p dir="auto">The "stat" plugin has a parameter called "follow=yes/no" to follow symbolic links.</p> <p dir="auto">Again, the logic for that is in module_utils/basic.py, which does not get invoked from a plugin so that particular (and perhaps other parameters) do not function correctly within a plugin context.</p> <p dir="auto">In V1 this was solveable, because V1 had two different ways of executing a module. The same as exists now in V2, but there was also a self.runner._executor_internal_inner() which would invoke a module as a plugin, not as a pure remote module. This is now absent in V2 and I have not figured out how to work around that for now.</p> <p dir="auto">To conclude, if it is meant to be possible to program plugins for Ansible, then it needs to be clear from a developer perspective what functionality exists in a module which can be invoked from a plugin (this means the documentation needs to state parameters that won't have any effect when running _execute_module()) or there must be another function within eg. ActionBase to invoke other plugins (or some other documented way).</p> <p dir="auto">Keeping as it is now creates troubleshooting frustration and API paranoia: "will it do what it says it should or not?"</p>
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sdubrul/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sdubrul">@sdubrul</a> on December 8, 2016 10:49</em></p> <h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">os_security_group_rule</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.0.0"><pre class="notranslate"><code class="notranslate">ansible 2.2.0.0 </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">N/A</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">macOS 10.12.1</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">When logged in as admin and trying to update the default security group rules for this tenant the command fails as there are multiple security groups that are called default. Security group default is found in the admin and services tenant.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# clouds.yml clouds: mycloud: auth: auth_url: https://mycloud:5000/v2.0 username: admin password: password project_name: admin # task in playbook.yml - name: update default security group to allow ssh os_security_group_rule: cloud: mycloud security_group: default protocol: tcp direction: ingress remote_ip_prefix: 0.0.0.0/0 port_range_min: 22 port_range_max: 22 "><pre class="notranslate"><code class="notranslate"># clouds.yml clouds: mycloud: auth: auth_url: https://mycloud:5000/v2.0 username: admin password: password project_name: admin # task in playbook.yml - name: update default security group to allow ssh os_security_group_rule: cloud: mycloud security_group: default protocol: tcp direction: ingress remote_ip_prefix: 0.0.0.0/0 port_range_min: 22 port_range_max: 22 </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">Expecting the command to update the admin tenant default security group as project name is defined in clouds.yml .</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">Task fails with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fatal: [server]: FAILED! =&gt; {&quot;changed&quot;: false, &quot;failed&quot;: true, &quot;msg&quot;: &quot;Multiple matches found for default&quot;}"><pre class="notranslate"><code class="notranslate">fatal: [server]: FAILED! =&gt; {"changed": false, "failed": true, "msg": "Multiple matches found for default"} </code></pre></div> <p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="194303953" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/5862" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/5862/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/5862">ansible/ansible-modules-core#5862</a></em></p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">When a textfield is focused, only that and the one that got blurred (if any) should be repainted</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">When a textfield is focused, all following textfields on that page is repainted</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Have a page with multiple textfields, for example <a href="https://material-ui.com/demos/text-fields/" rel="nofollow">https://material-ui.com/demos/text-fields/</a></li> <li>Use dev tools to see which parts of the page is repainted. For example Chromes "paint flashing" or "layer boarders"</li> <li>Focus a textfield</li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">This is not a huge problem but it does add some extra cost and I have noticed a bit of slowdowns on a phone which would be nice to crush.<br> I have not tested but my theory is that the line<br> <a href="https://github.com/mui-org/material-ui/blob/e49ce4f7c2df242062fe46a2f3aeb30f78a01ef1/src/Input/Input.js#L453">https://github.com/mui-org/material-ui/blob/e49ce4f7c2df242062fe46a2f3aeb30f78a01ef1/src/Input/Input.js#L453</a> should be covered by an if-statement to only set state (and therefor rerender) if <code class="notranslate">focused</code> is already <code class="notranslate">false</code></p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.21</td> </tr> <tr> <td>React</td> <td>16</td> </tr> <tr> <td>browser</td> <td>Firefox, Chrome</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<h2 dir="auto">Style broken on selected date</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/929905/14303008/42ce407e-fbd9-11e5-98e8-be4fbfb456e6.png"><img width="384" alt="screen shot 2016-04-06 at 9 21 37 am" src="https://cloud.githubusercontent.com/assets/929905/14303008/42ce407e-fbd9-11e5-98e8-be4fbfb456e6.png" style="max-width: 100%;"></a></p> As the screenshot from Safari, i found that the top value of element is '10px' so the element rendered a wrong position ## Versions <ul dir="auto"> <li>Material-UI: v0.15.0-alpha.2</li> <li>React:</li> <li>Browser: Safari Version 9.1 (10601.5.17.4)</li> </ul>
0
<p dir="auto"><a href="http://getbootstrap.com/javascript/#modals" rel="nofollow">http://getbootstrap.com/javascript/#modals</a></p> <p dir="auto">Is there a way for scroll bar not to take the space of the page?</p> <p dir="auto">Just like the normal page</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
<p dir="auto">Hi all,</p> <p dir="auto">I have a strange issue with pandas 0.9, I think it's a bug. I'm trying to use dataframe.join() and it works well on a random dataframe, but not on a dataframe created from my simulation result. The code below shows that join() on the second dataframe blows up the index and the result is completely wrong.</p> <p dir="auto">To run this code you need this file: <a href="https://dl.dropbox.com/u/6200325/mydf.dataframe" rel="nofollow">https://dl.dropbox.com/u/6200325/mydf.dataframe</a> in your work folder. The script below can also be downloaded here: <a href="https://dl.dropbox.com/u/6200325/BugJoin.py" rel="nofollow">https://dl.dropbox.com/u/6200325/BugJoin.py</a></p> <p dir="auto">This is the result I get:</p> <p dir="auto">In [17]: run -i 'C:\Workspace\Python\Tests\BugJoin.py'</p> <p dir="auto">Before:<br> &lt;class 'pandas.core.frame.DataFrame'&gt;<br> DatetimeIndex: 100000 entries, 2012-01-01 00:00:00 to 2023-05-29 15:00:00<br> Freq: H<br> Empty DataFrame</p> <p dir="auto">&lt;class 'pandas.core.frame.DataFrame'&gt;<br> DatetimeIndex: 100000 entries, 2012-01-01 00:00:00 to 2023-05-29 15:00:00<br> Freq: H<br> Data columns:<br> 0 100000 non-null values<br> dtypes: float64(1)</p> <p dir="auto">After:<br> &lt;class 'pandas.core.frame.DataFrame'&gt;<br> DatetimeIndex: 100000 entries, 2012-01-01 00:00:00 to 2023-05-29 15:00:00<br> Freq: H<br> Data columns:<br> 0 100000 non-null values<br> dtypes: float64(1)</p> <p dir="auto">Before:<br> &lt;class 'pandas.core.frame.DataFrame'&gt;<br> DatetimeIndex: 108355 entries, 2010-01-01 00:00:00 to 2011-01-01 00:00:00<br> Empty DataFrame</p> <p dir="auto">&lt;class 'pandas.core.frame.DataFrame'&gt;<br> DatetimeIndex: 108355 entries, 2010-01-01 00:00:00 to 2011-01-01 00:00:00<br> Data columns:<br> SID0000 108355 non-null values<br> dtypes: float64(1)</p> <p dir="auto">After:<br> &lt;class 'pandas.core.frame.DataFrame'&gt;<br> DatetimeIndex: 4054807 entries, 2010-01-09 16:00:00 to 2010-05-17 15:55:42<br> Data columns:<br> SID0000 4054807 non-null values<br> dtypes: float64(1)</p> <p dir="auto">This is the code from the script:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np import pandas as pd from scipy.integrate import cumtrapz df1=pd.DataFrame(np.random.rand(1e5), index=pd.date_range('2012-01-01', freq='H', periods=1e5)) df2=pd.load('mydf.dataframe') for dataframe in [df1, df2]: cum = pd.DataFrame(index=dataframe.index) for c in dataframe.columns: # we need to remove the empty values for the cumtrapz function to work ts = dataframe[c].dropna() tscum = pd.DataFrame(data=cumtrapz(ts.values, ts.index.asi8/1e9, initial=0), index=ts.index, columns=[c]) print '\nBefore:' print cum, '\n' print tscum, '\n' cum=cum.join(tscum, how='left') print 'After:' print cum"><pre class="notranslate"><code class="notranslate">import numpy as np import pandas as pd from scipy.integrate import cumtrapz df1=pd.DataFrame(np.random.rand(1e5), index=pd.date_range('2012-01-01', freq='H', periods=1e5)) df2=pd.load('mydf.dataframe') for dataframe in [df1, df2]: cum = pd.DataFrame(index=dataframe.index) for c in dataframe.columns: # we need to remove the empty values for the cumtrapz function to work ts = dataframe[c].dropna() tscum = pd.DataFrame(data=cumtrapz(ts.values, ts.index.asi8/1e9, initial=0), index=ts.index, columns=[c]) print '\nBefore:' print cum, '\n' print tscum, '\n' cum=cum.join(tscum, how='left') print 'After:' print cum </code></pre></div>
<p dir="auto">I propose that <code class="notranslate">itertuples()</code> should return <code class="notranslate">collections.namedtuple</code> objects, a drop-in replacement for the standard tuple but with the benefit of having named fields. I have tested the following with Python 3.4 (only slight changes compared to the current implementation).</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def itertuples(self, index=True): arrays = [] if index: arrays.append(self.index) fields = [&quot;Index&quot;] + list(self.columns) else: fields = self.columns itertuple = collections.namedtuple(&quot;Itertuple&quot;, fields, rename=True) # use integer indexing because of possible duplicate column names arrays.extend(self.iloc[:, k] for k in range(len(self.columns))) return (itertuple(*row) for row in zip(*arrays))"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">itertuples</span>(<span class="pl-s1">self</span>, <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>): <span class="pl-s1">arrays</span> <span class="pl-c1">=</span> [] <span class="pl-k">if</span> <span class="pl-s1">index</span>: <span class="pl-s1">arrays</span>.<span class="pl-en">append</span>(<span class="pl-s1">self</span>.<span class="pl-s1">index</span>) <span class="pl-s1">fields</span> <span class="pl-c1">=</span> [<span class="pl-s">"Index"</span>] <span class="pl-c1">+</span> <span class="pl-en">list</span>(<span class="pl-s1">self</span>.<span class="pl-s1">columns</span>) <span class="pl-k">else</span>: <span class="pl-s1">fields</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">columns</span> <span class="pl-s1">itertuple</span> <span class="pl-c1">=</span> <span class="pl-s1">collections</span>.<span class="pl-en">namedtuple</span>(<span class="pl-s">"Itertuple"</span>, <span class="pl-s1">fields</span>, <span class="pl-s1">rename</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-c"># use integer indexing because of possible duplicate column names</span> <span class="pl-s1">arrays</span>.<span class="pl-en">extend</span>(<span class="pl-s1">self</span>.<span class="pl-s1">iloc</span>[:, <span class="pl-s1">k</span>] <span class="pl-k">for</span> <span class="pl-s1">k</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-en">len</span>(<span class="pl-s1">self</span>.<span class="pl-s1">columns</span>))) <span class="pl-k">return</span> (<span class="pl-en">itertuple</span>(<span class="pl-c1">*</span><span class="pl-s1">row</span>) <span class="pl-k">for</span> <span class="pl-s1">row</span> <span class="pl-c1">in</span> <span class="pl-en">zip</span>(<span class="pl-c1">*</span><span class="pl-s1">arrays</span>))</pre></div> <p dir="auto">Example</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [3]: df = pd.DataFrame({'col1': [1, 2], 'col2': [0.1, 0.2]}, index=['a', 'b']) In [4]: for row in df.itertuples(): ...: print(row) ...: Itertuple(Index='a', col1=1, col2=0.10000000000000001) Itertuple(Index='b', col1=2, col2=0.20000000000000001) In [5]: row.Index, row.col1, row.col2 Out[5]: ('b', 2, 0.20000000000000001)"><pre class="notranslate"><code class="notranslate">In [3]: df = pd.DataFrame({'col1': [1, 2], 'col2': [0.1, 0.2]}, index=['a', 'b']) In [4]: for row in df.itertuples(): ...: print(row) ...: Itertuple(Index='a', col1=1, col2=0.10000000000000001) Itertuple(Index='b', col1=2, col2=0.20000000000000001) In [5]: row.Index, row.col1, row.col2 Out[5]: ('b', 2, 0.20000000000000001) </code></pre></div> <p dir="auto">There is no performance overhead. I'm not sure about the compatibility for older versions of Python, though. The <code class="notranslate">rename</code> parameter is needed for renaming disallowed field names and duplicate identifiers to standard position-based identifiers, and this feature was added in Python 2.7/3.1.</p>
0
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.7.5 / 1.8.0-beta / nightly (1.9.0-dev.20160217)</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="class A{ public static get foo(){ return alert(&quot;should not execute getter, without accessing it !&quot;); } } class B extends A {} "><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">A</span><span class="pl-kos">{</span> <span class="pl-k">public</span> <span class="pl-k">static</span> <span class="pl-k">get</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-en">alert</span><span class="pl-kos">(</span><span class="pl-s">"should not execute getter, without accessing it !"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">B</span> <span class="pl-k">extends</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong></p> <p dir="auto">Should not alert message above</p> <p dir="auto"><strong>Actual behavior:</strong></p> <p dir="auto">Alerting message above</p> <p dir="auto">Link to <a href="http://www.typescriptlang.org/play/index.html#src=class%20A%7B%0D%0A%20%20%20%20public%20static%20get%20foo%28%29%7B%0D%0A%20%20%20%20%20%20%20%20return%20alert%28%22should%20not%20execute%20getter%2C%20without%20accessing%20it%20!%22%29%3B%0D%0A%20%20%20%20%7D%0D%0A%7D%0D%0Aclass%20B%20extends%20A%20%7B%7D" rel="nofollow">Playground</a></p>
<p dir="auto">The following code:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var i = 0, j = 0; class Base { get instanceAccessor() { return ++i; } static get staticAccessor() { return ++j; } toString = () =&gt; 'instance: ' + this.instanceAccessor + ' static: ' + Base.staticAccessor; } class Derived extends Base { toString = () =&gt; 'instance: ' + this.instanceAccessor + ' static: ' + Derived.staticAccessor; } console.log('Base:\n%s\n%s\n%s', new Base(), new Base(), new Base()); console.log('Derived:\n%s\n%s\n%s', new Derived(), new Derived(), new Derived());"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">j</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-k">class</span> <span class="pl-smi">Base</span> <span class="pl-kos">{</span> <span class="pl-k">get</span> <span class="pl-en">instanceAccessor</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-c1">++</span><span class="pl-s1">i</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">static</span> <span class="pl-k">get</span> <span class="pl-en">staticAccessor</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-c1">++</span><span class="pl-s1">j</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c1">toString</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s">'instance: '</span> <span class="pl-c1">+</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">instanceAccessor</span> <span class="pl-c1">+</span> <span class="pl-s">' static: '</span> <span class="pl-c1">+</span> <span class="pl-smi">Base</span><span class="pl-kos">.</span><span class="pl-c1">staticAccessor</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">Derived</span> <span class="pl-k">extends</span> <span class="pl-smi">Base</span> <span class="pl-kos">{</span> <span class="pl-c1">toString</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s">'instance: '</span> <span class="pl-c1">+</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">instanceAccessor</span> <span class="pl-c1">+</span> <span class="pl-s">' static: '</span> <span class="pl-c1">+</span> <span class="pl-smi">Derived</span><span class="pl-kos">.</span><span class="pl-c1">staticAccessor</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'Base:\n%s\n%s\n%s'</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-smi">Base</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-smi">Base</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-smi">Base</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'Derived:\n%s\n%s\n%s'</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-smi">Derived</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-smi">Derived</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-smi">Derived</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">generates the following output (with the v1.3 compiler):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Base: instance: 1 static: 2 instance: 2 static: 3 instance: 3 static: 4 Derived: instance: 4 static: 1 instance: 5 static: 1 instance: 6 static: 1"><pre class="notranslate"><code class="notranslate">Base: instance: 1 static: 2 instance: 2 static: 3 instance: 3 static: 4 Derived: instance: 4 static: 1 instance: 5 static: 1 instance: 6 static: 1 </code></pre></div> <p dir="auto">Clearly <code class="notranslate">Derived.staticAccessor</code> is no longer an accessor, but a 'snapshot' of the value of <code class="notranslate">Base.staticAccessor</code> when the <code class="notranslate">Derived</code> constructor function called <code class="notranslate">__extends</code>.</p> <p dir="auto">Just wondering if this is the expected/correct behaviour?</p> <p dir="auto">PS. I haven't run into this problem 'in the wild' as I rarely use classes or accessors, but merely came across a <a href="http://toshokelectric.com/blog/2013/04/04/why-im-ditching-coffeescript/" rel="nofollow">rant/blog post</a> about another compile-to-JS language doing something similar, and was curious how TypeScript handled it.</p>
1
<p dir="auto">Symfony Standard Edition v2.1.2</p> <p dir="auto">While looking at some of the form input options, I found an odd problem. When creating a birthday input using a range above 110 (such as the default of 120), any choices above (date('Y') - 110) aren't being displayed even though an option element is being created. Is anyone else having this problem?</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public function indexAction() { $form = $this-&gt;createFormBuilder() -&gt;add('birthday', 'birthday') -&gt;add('birthday_working', 'birthday', array( 'years' =&gt; range(date('Y') - 110, date('Y')), )) -&gt;getForm(); // Template is the basic form template from the book return $this-&gt;render('ABCDefaultBundle:Default:default.html.twig', array( 'form' =&gt; $form-&gt;createView(), )); }"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">indexAction</span>() { <span class="pl-s1"><span class="pl-c1">$</span>form</span> = <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">createFormBuilder</span>() -&gt;<span class="pl-en">add</span>(<span class="pl-s">'birthday'</span>, <span class="pl-s">'birthday'</span>) -&gt;<span class="pl-en">add</span>(<span class="pl-s">'birthday_working'</span>, <span class="pl-s">'birthday'</span>, <span class="pl-en">array</span>( <span class="pl-s">'years'</span> =&gt; range(date(<span class="pl-s">'Y'</span>) - <span class="pl-c1">110</span>, date(<span class="pl-s">'Y'</span>)), )) -&gt;<span class="pl-en">getForm</span>(); <span class="pl-c">// Template is the basic form template from the book</span> <span class="pl-k">return</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">render</span>(<span class="pl-s">'ABCDefaultBundle:Default:default.html.twig'</span>, <span class="pl-en">array</span>( <span class="pl-s">'form'</span> =&gt; <span class="pl-s1"><span class="pl-c1">$</span>form</span>-&gt;<span class="pl-en">createView</span>(), )); }</pre></div> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;div id=&quot;form_birthday&quot;&gt; &lt;select id=&quot;form_birthday_year&quot; name=&quot;form[birthday][year]&quot; required=&quot;required&quot;&gt; &lt;option value=&quot;1892&quot;&gt;&lt;/option&gt; &lt;option value=&quot;1893&quot;&gt;&lt;/option&gt; &lt;option value=&quot;1894&quot;&gt;&lt;/option&gt; &lt;option value=&quot;1895&quot;&gt;&lt;/option&gt; &lt;option value=&quot;1896&quot;&gt;&lt;/option&gt; &lt;option value=&quot;1897&quot;&gt;&lt;/option&gt; &lt;option value=&quot;1898&quot;&gt;&lt;/option&gt; &lt;option value=&quot;1899&quot;&gt;&lt;/option&gt; &lt;option value=&quot;1900&quot;&gt;&lt;/option&gt; &lt;option value=&quot;1901&quot;&gt;&lt;/option&gt; &lt;option value=&quot;1902&quot;&gt;1902&lt;/option&gt; &lt;option value=&quot;1903&quot;&gt;1903&lt;/option&gt; &lt;option value=&quot;1904&quot;&gt;1904&lt;/option&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">id</span>="<span class="pl-s">form_birthday</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">select</span> <span class="pl-c1">id</span>="<span class="pl-s">form_birthday_year</span>" <span class="pl-c1">name</span>="<span class="pl-s">form[birthday][year]</span>" <span class="pl-c1">required</span>="<span class="pl-s">required</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1892</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1893</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1894</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1895</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1896</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1897</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1898</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1899</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1900</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1901</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1902</span>"<span class="pl-kos">&gt;</span>1902<span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1903</span>"<span class="pl-kos">&gt;</span>1903<span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1904</span>"<span class="pl-kos">&gt;</span>1904<span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">... and so on.</p>
<p dir="auto">IntlDateFormatter have some issues in transformation of Date.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$fmt = new IntlDateFormatter('en_US', IntlDateFormatter::SHORT, IntlDateFormatter::SHORT, 'UTC', IntlDateFormatter::GREGORIAN, 'yyyy'); $value = new DateTime(); $value-&gt;setDate(1900, 1, 1); var_dump($fmt-&gt;format($value));"><pre class="notranslate"><code class="notranslate">$fmt = new IntlDateFormatter('en_US', IntlDateFormatter::SHORT, IntlDateFormatter::SHORT, 'UTC', IntlDateFormatter::GREGORIAN, 'yyyy'); $value = new DateTime(); $value-&gt;setDate(1900, 1, 1); var_dump($fmt-&gt;format($value)); </code></pre></div> <p dir="auto">Expected: string '1900'<br> Actual: boolean false</p> <p dir="auto">Since Date widget base on this formatter, by default it only display years in range 1902-2037.</p>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.267] Windows Terminal version (if applicable): Windows Terminal (Preview) Version: 0.3.2142.0 Any other software? None"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.267] Windows Terminal version (if applicable): Windows Terminal (Preview) Version: 0.3.2142.0 Any other software? None </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Start terminal. Resize. I pretty consistently get a crash when I get to about the point of the single tab going to zero width.</p> <p dir="auto">Start terminal. Add multiple tabs. Resize. I get crashes when the third tab starts to slide under the new tab UI.</p> <p dir="auto">Sometimes you can shrink all the way down and back. Sometimes you can shrink all the way down, and it'll crash as it is being expanded.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Window resizes without crash</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Here's one of the entries from my event log.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Faulting application name: WindowsTerminal.exe, version: 1.0.1908.2002, time stamp: 0x5d448424 Faulting module name: Windows.UI.Xaml.dll, version: 10.0.18362.267, time stamp: 0x3e916038 Exception code: 0xc000027b Fault offset: 0x00000000007126f0 Faulting process id: 0x2fa8 Faulting application start time: 0x01d54c269fed96bb Faulting application path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.3.2142.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe Faulting module path: C:\Windows\System32\Windows.UI.Xaml.dll Report Id: 985f1c17-14dc-45a2-9bf2-2e663574efa9 Faulting package full name: Microsoft.WindowsTerminal_0.3.2142.0_x64__8wekyb3d8bbwe Faulting package-relative application ID: App"><pre lang="none" class="notranslate"><code class="notranslate">Faulting application name: WindowsTerminal.exe, version: 1.0.1908.2002, time stamp: 0x5d448424 Faulting module name: Windows.UI.Xaml.dll, version: 10.0.18362.267, time stamp: 0x3e916038 Exception code: 0xc000027b Fault offset: 0x00000000007126f0 Faulting process id: 0x2fa8 Faulting application start time: 0x01d54c269fed96bb Faulting application path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.3.2142.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe Faulting module path: C:\Windows\System32\Windows.UI.Xaml.dll Report Id: 985f1c17-14dc-45a2-9bf2-2e663574efa9 Faulting package full name: Microsoft.WindowsTerminal_0.3.2142.0_x64__8wekyb3d8bbwe Faulting package-relative application ID: App </code></pre></div> <p dir="auto">Here's the feedback hub entry, which should have dx attached to it:</p> <p dir="auto"><a href="https://aka.ms/AA5roli" rel="nofollow">https://aka.ms/AA5roli</a></p>
<h1 dir="auto">Environment</h1> <p dir="auto"><a href="https://github.com/microsoft/terminal/issues">https://github.com/microsoft/terminal/issues</a></p> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Open Command Prompt - i.e. run cmd</li> <li>Open Properties | Options - remove check from 'Use Legacy console' - switch OFF</li> <li>Close Command Prompt</li> <li>Open Command Prompt - i.e. run cmd</li> <li>Open Properties | Options - add check from 'Use Legacy console' - switch ON</li> <li>Close Command Prompt</li> <li>Open Command Prompt - i.e. run cmd</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">All properties of the terminal should be the same as before step 2. That is to say restoring the 'Use Legacy console' property in step 5 should restore the state of the terminal to what it was before the property was changed.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">After restoring the 'Use Legacy console' to OFF the terminal window is blank because the terminal colours have not been correctly restored to their previous state - both foreground and background are black. Similarly the cursor color is black rather than inverse colour.</p>
0
<p dir="auto"><strong>I'm submitting a feature request</strong></p> <p dir="auto"><strong>Webpack version:</strong><br> 2.1</p> <p dir="auto"><strong>Expected/desired behavior:</strong><br> Currently it's possible to either load modules by their ID's (e.g. <code class="notranslate">__webpack_require__(123)</code> or create a custom context (<code class="notranslate">require.context(...)</code>) which maps paths to module IDs.</p> <p dir="auto">It would be great to have a way to create arbitrary "contexts" of modules which were <strong>previously</strong> in the bundle. What I mean by that is creating a simple mapping to resolve arbitrary names (set by the plugin) to actual module IDs, without adding any extra ones.</p> <p dir="auto">I've managed to hack together something based on the ContextReplacementPlugin, but it's not a good solution, because the modules need to be added manually, plus it duplicates the modules instead of referencing the ones which are already there. I want to add new modules, just be able to access them using an "alternative module ID", stored in the context map.</p> <p dir="auto">I'd be happy to implement this myself, as a plugin, but I'm not sure what's the best way - the <code class="notranslate">ContextModuleFactory</code> is quite complex. It seems to me, I'd need to duplicate that and just make it much simpler -- unless there's a better way?</p> <ul dir="auto"> <li><strong>What is the motivation / use case for changing the behavior?</strong><br> Some applications need to use arbitrary, dynamically generated names for importing modules. This would enable such use cases, given that the names are predictable (e.g. file-paths).</li> </ul> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const ctxRequire = require.customContext('my-context-name'); const someModule = ctxRequire('my-custom-reference'); const someOtherModule = ctxRequire(dynamicallyGeneratedName);"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">ctxRequire</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">.</span><span class="pl-en">customContext</span><span class="pl-kos">(</span><span class="pl-s">'my-context-name'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">someModule</span> <span class="pl-c1">=</span> <span class="pl-s1">ctxRequire</span><span class="pl-kos">(</span><span class="pl-s">'my-custom-reference'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">someOtherModule</span> <span class="pl-c1">=</span> <span class="pl-s1">ctxRequire</span><span class="pl-kos">(</span><span class="pl-s1">dynamicallyGeneratedName</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">In other words it's like alternative module IDs. I could just hook <code class="notranslate">'before-module-ids'</code> and change the <code class="notranslate">module.id</code> of each module and then use <code class="notranslate">__webpack_require__</code> directly, but that way I'm limiting ourselves to a single set of custom references, while it might make sense to keep multiple aliases for the same module, e.g. with and without the extension, similarly to how the <code class="notranslate">ContextReplacementPlugin</code> works:</p> <p dir="auto">Given the following Context Map:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;my-custom-reference&quot;: 123, &quot;my-custom-reference.js&quot;: 123 }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"my-custom-reference"</span>: <span class="pl-c1">123</span><span class="pl-kos">,</span> <span class="pl-s">"my-custom-reference.js"</span>: <span class="pl-c1">123</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Usage:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const ctxRequire = require.customContext('my-context-name'); const someModule = ctxRequire('my-custom-reference'); // without extension const sameModule = ctxRequire('my-custom-reference.js'); // with extension"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">ctxRequire</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">.</span><span class="pl-en">customContext</span><span class="pl-kos">(</span><span class="pl-s">'my-context-name'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">someModule</span> <span class="pl-c1">=</span> <span class="pl-s1">ctxRequire</span><span class="pl-kos">(</span><span class="pl-s">'my-custom-reference'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// without extension</span> <span class="pl-k">const</span> <span class="pl-s1">sameModule</span> <span class="pl-c1">=</span> <span class="pl-s1">ctxRequire</span><span class="pl-kos">(</span><span class="pl-s">'my-custom-reference.js'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// with extension</span></pre></div> <p dir="auto">For adding names I'd imagine the consumer of such plugin could either:</p> <ul dir="auto"> <li>create a simple loader that doesn't modify the source, but adds the array of aliases for a given context</li> <li>use a <code class="notranslate">Compilation</code> plugin hook like <code class="notranslate">'normal-module-loader'</code> to create and add the array of aliases given each module</li> </ul>
<h1 dir="auto">Bug report</h1> <p dir="auto"><strong>What is the current behavior?</strong><br> when i use <a href="mailto:[email protected]">[email protected]</a>, it work. but 2.0 is not work. it report error is _<em>webpack_require</em> is not defined</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br> compare the version of quill. webpack5 seems not support module:"es6"<br> the <a href="mailto:[email protected]">[email protected]</a> config is<br> <code class="notranslate">{ test: /\.ts$/, use: [{ loader: 'ts-loader', options: { compilerOptions: { declaration: false, target: 'es5', module: 'commonjs' }, transpileOnly: true } }] }</code><br> the quill@2 config<br> <code class="notranslate">test: /\.ts$/, use: [ { loader: 'ts-loader', options: { compilerOptions: { declaration: false, module: 'es6', sourceMap: true, target: 'es6', }, transpileOnly: true, }, }, ],</code></p> <p dir="auto"><strong>What is the expected behavior?</strong><br> it can work well</p> <p dir="auto"><strong>Other relevant information:</strong><br> webpack version:<br> Node.js version:<br> Operating System:<br> Additional tools:</p>
0