text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<p dir="auto">I've got 3 views that I'm loading random images into on a timer. I'm trying to crossfade the new image with the currently displayed image. I basically get a random image from a list of about 10 and call the method below 3 times (with different views) every 6 seconds.</p>
<p dir="auto">This works most of the time, but sometimes it crashes due to the exception included below. When I was using a button click to do the update I was able to have this exception happen pretty easily. I'm wondering if there is some sort of race condition internally on the fetch and render between the previous call and the new call?</p>
<p dir="auto">Is there a better way to do this or should this work as I'm currently using it?</p>
<p dir="auto">Using 3.6.1</p>
<p dir="auto">Here's the code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mDownloadedSize is the max of the screen width or height - I'm using this so rotations have immediate cache hit image loading.
private void loadImage(ImageView view, String photoUrl)
{
Drawable oldImage = view.getDrawable();
Glide.with(MyFragment.this)
.load(photoUrl)
.crossFade()
.placeholder(oldImage)
.override(mDownloadSize, mDownloadSize)
.centerCrop()
.into(view);
}"><pre class="notranslate"><code class="notranslate">mDownloadedSize is the max of the screen width or height - I'm using this so rotations have immediate cache hit image loading.
private void loadImage(ImageView view, String photoUrl)
{
Drawable oldImage = view.getDrawable();
Glide.with(MyFragment.this)
.load(photoUrl)
.crossFade()
.placeholder(oldImage)
.override(mDownloadSize, mDownloadSize)
.centerCrop()
.into(view);
}
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@20260fad
at android.graphics.Canvas.throwIfCannotDraw(Canvas.java:1282)
at android.view.GLES20Canvas.drawBitmap(GLES20Canvas.java:599)
at com.bumptech.glide.load.resource.bitmap.GlideBitmapDrawable.draw(GlideBitmapDrawable.java:101)
at com.bumptech.glide.request.target.SquaringDrawable.draw(SquaringDrawable.java:151)
at android.graphics.drawable.TransitionDrawable.draw(TransitionDrawable.java:198)
at android.widget.ImageView.onDraw(ImageView.java:1158)
at android.view.View.draw(View.java:15231)
at android.view.View.updateDisplayListIfDirty(View.java:14167)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
at android.view.View.updateDisplayListIfDirty(View.java:14127)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
at android.view.View.updateDisplayListIfDirty(View.java:14127)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
at android.view.View.updateDisplayListIfDirty(View.java:14127)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
at android.view.View.updateDisplayListIfDirty(View.java:14127)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
at android.view.View.updateDisplayListIfDirty(View.java:14127)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
at android.view.View.updateDisplayListIfDirty(View.java:14127)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
at android.view.View.updateDisplayListIfDirty(View.java:14127)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
at android.view.View.updateDisplayListIfDirty(View.java:14127)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
at android.view.View.updateDisplayListIfDirty(View.java:14127)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
at android.view.View.updateDisplayListIfDirty(View.java:14127)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
at android.view.View.updateDisplayListIfDirty(View.java:14127)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
at android.view.View.updateDisplayListIfDirty(View.java:14127)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewG"><pre class="notranslate"><code class="notranslate"> java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@20260fad
at android.graphics.Canvas.throwIfCannotDraw(Canvas.java:1282)
at android.view.GLES20Canvas.drawBitmap(GLES20Canvas.java:599)
at com.bumptech.glide.load.resource.bitmap.GlideBitmapDrawable.draw(GlideBitmapDrawable.java:101)
at com.bumptech.glide.request.target.SquaringDrawable.draw(SquaringDrawable.java:151)
at android.graphics.drawable.TransitionDrawable.draw(TransitionDrawable.java:198)
at android.widget.ImageView.onDraw(ImageView.java:1158)
at android.view.View.draw(View.java:15231)
at android.view.View.updateDisplayListIfDirty(View.java:14167)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
at android.view.View.updateDisplayListIfDirty(View.java:14127)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
at android.view.View.updateDisplayListIfDirty(View.java:14127)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
at android.view.View.updateDisplayListIfDirty(View.java:14127)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
at android.view.View.updateDisplayListIfDirty(View.java:14127)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
at android.view.View.updateDisplayListIfDirty(View.java:14127)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
at android.view.View.updateDisplayListIfDirty(View.java:14127)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
at android.view.View.updateDisplayListIfDirty(View.java:14127)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
at android.view.View.updateDisplayListIfDirty(View.java:14127)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
at android.view.View.updateDisplayListIfDirty(View.java:14127)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
at android.view.View.updateDisplayListIfDirty(View.java:14127)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
at android.view.View.updateDisplayListIfDirty(View.java:14127)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3368)
at android.view.View.updateDisplayListIfDirty(View.java:14127)
at android.view.View.getDisplayList(View.java:14189)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3389)
at android.view.ViewGroup.dispatchGetDisplayList(ViewG
</code></pre></div> | <p dir="auto">I'm using glide to load an image into the background of one of my activities. This background image changes very often and I use the crossfade() to animate between the image changes. This works all fine and dandy when the image is not in the cache.. the crossfade works as expected. However, it seems that if the image was already in the memory cache, the animation does not happen and the image just instantly loads.</p>
<p dir="auto">Is it currently possible to always animate regardless if its in the cache or not? If not, can this be added? The instant loading really messes with the fluidity of my app</p> | 1 |
<p dir="auto">I posted this report in the HuggingFace Forum at first, but <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/BramVanroy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/BramVanroy">@BramVanroy</a> kindly told me to post the report here instead of the forum.<br>
The link to the post in the forum: <a href="https://discuss.huggingface.co/t/some-unintended-things-happen-in-seq2seqtrainer-example/2361" rel="nofollow">https://discuss.huggingface.co/t/some-unintended-things-happen-in-seq2seqtrainer-example/2361</a></p>
<h2 dir="auto">Environment info</h2>
<ul dir="auto">
<li><code class="notranslate">transformers</code> version: 4.0.0-rc-1
<ul dir="auto">
<li>The latest commit: commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/huggingface/transformers/commit/5ced23dc845c76d5851e534234b47a5aa9180d40/hovercard" href="https://github.com/huggingface/transformers/commit/5ced23dc845c76d5851e534234b47a5aa9180d40"><tt>5ced23d</tt></a></li>
</ul>
</li>
<li>Platform: Linux-4.15.0-123-generic-x86_64-with-glibc2.10</li>
<li>Python version: 3.8.3</li>
<li>PyTorch version (GPU?): 1.7.0 (True)</li>
<li>Tensorflow version (GPU?): 2.3.1 (True)</li>
<li>Using GPU in script?: Yes</li>
<li>Using distributed or parallel set-up in script?: No</li>
</ul>
<h3 dir="auto">Who can help</h3>
<p dir="auto">Trainer: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sgugger/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sgugger">@sgugger</a><br>
examples/seq2seq: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/patil-suraj/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/patil-suraj">@patil-suraj</a></p>
<h2 dir="auto">Information</h2>
<p dir="auto">Model I am using (Bert, XLNet ...): facebook/bart-large</p>
<p dir="auto">The problem arises when using:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> the official example scripts: (give details below)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> my own modified scripts: (give details below)</li>
</ul>
<p dir="auto">The tasks I am working on is:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> an official GLUE/SQUaD task: (give the name)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> my own task or dataset: (give details below)</li>
</ul>
<p dir="auto">I used the XSum dataset following the README of <code class="notranslate">examples/seq2seq</code>.</p>
<h2 dir="auto">To reproduce</h2>
<h3 dir="auto">What seems strange</h3>
<ul dir="auto">
<li>The number of data pairs is not correctly recognized.</li>
<li>MLflow cannot treat the params (too long).</li>
</ul>
<p dir="auto">I wasn’t sure if I should divide these into two issues, but in the end, I decided on one.<br>
If it is better to divide them into two, I will modify it.</p>
<p dir="auto">I first noticed this strangeness when I use a different dataset than the those in the example.<br>
I again follow the README of <code class="notranslate">examples/seq2seq</code> to check if my modification causes the problem or not.</p>
<p dir="auto">Having checked <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="751327544" data-permission-text="Title is private" data-url="https://github.com/huggingface/transformers/issues/8792" data-hovercard-type="issue" data-hovercard-url="/huggingface/transformers/issues/8792/hovercard" href="https://github.com/huggingface/transformers/issues/8792">#8792</a>, I used <code class="notranslate">--evaluation_strategy epoch</code> instead of <code class="notranslate">--evaluate_during_training</code>.</p>
<h3 dir="auto">Run official example scripts</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ CUDA_VISIBLE_DEVICES=0 python finetune_trainer.py \
--data_dir $XSUM_DIR \
--learning_rate=3e-5 \
--fp16 \
--do_train --do_eval --do_predict \
--evaluation_strategy epoch \
--predict_with_generate \
--n_val 1000 \
--model_name_or_path facebook/bart-large \
--output_dir ./xsum_bart-large/ \
--save_total_limit 5 \
2>&1 | tee tmp.log"><pre class="notranslate"><code class="notranslate">$ CUDA_VISIBLE_DEVICES=0 python finetune_trainer.py \
--data_dir $XSUM_DIR \
--learning_rate=3e-5 \
--fp16 \
--do_train --do_eval --do_predict \
--evaluation_strategy epoch \
--predict_with_generate \
--n_val 1000 \
--model_name_or_path facebook/bart-large \
--output_dir ./xsum_bart-large/ \
--save_total_limit 5 \
2>&1 | tee tmp.log
</code></pre></div>
<h2 dir="auto">Expected behavior</h2>
<h3 dir="auto">Log</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[INFO|trainer.py:667] 2020-11-30 08:10:43,836 >> ***** Running training *****
[INFO|trainer.py:668] 2020-11-30 08:10:43,836 >> Num examples = 204016
[INFO|trainer.py:669] 2020-11-30 08:10:43,836 >> Num Epochs = 3
[INFO|trainer.py:670] 2020-11-30 08:10:43,836 >> Instantaneous batch size per device = 8
[INFO|trainer.py:671] 2020-11-30 08:10:43,836 >> Total train batch size (w. parallel, distributed & accumulation) = 8
[INFO|trainer.py:672] 2020-11-30 08:10:43,836 >> Gradient Accumulation steps = 1
[INFO|trainer.py:673] 2020-11-30 08:10:43,836 >> Total optimization steps = 76506
...
mlflow.exceptions.MlflowException: Param value '{'summarization': {'length_penalty': 1.0, 'max_length': 128, 'min_length': 12, 'num_beams': 4}, 'summarization_cnn': {'length_penalty': 2.0, 'max_length': 142, 'min_length': 56, 'num_beams': 4}, 'summarization_xsum': {'length_penalty': 1.0, 'max_leng' had length 293, which exceeded length limit of 250"><pre class="notranslate"><code class="notranslate">[INFO|trainer.py:667] 2020-11-30 08:10:43,836 >> ***** Running training *****
[INFO|trainer.py:668] 2020-11-30 08:10:43,836 >> Num examples = 204016
[INFO|trainer.py:669] 2020-11-30 08:10:43,836 >> Num Epochs = 3
[INFO|trainer.py:670] 2020-11-30 08:10:43,836 >> Instantaneous batch size per device = 8
[INFO|trainer.py:671] 2020-11-30 08:10:43,836 >> Total train batch size (w. parallel, distributed & accumulation) = 8
[INFO|trainer.py:672] 2020-11-30 08:10:43,836 >> Gradient Accumulation steps = 1
[INFO|trainer.py:673] 2020-11-30 08:10:43,836 >> Total optimization steps = 76506
...
mlflow.exceptions.MlflowException: Param value '{'summarization': {'length_penalty': 1.0, 'max_length': 128, 'min_length': 12, 'num_beams': 4}, 'summarization_cnn': {'length_penalty': 2.0, 'max_length': 142, 'min_length': 56, 'num_beams': 4}, 'summarization_xsum': {'length_penalty': 1.0, 'max_leng' had length 293, which exceeded length limit of 250
</code></pre></div>
<h3 dir="auto">(Reference) Dataset length</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ cd $XSUM_DIR/
$ wc -l *
11333 test.source
11333 test.target
204017 train.source
204017 train.target
11327 val.source
11327 val.target
453354 total"><pre class="notranslate">$ <span class="pl-c1">cd</span> <span class="pl-smi">$XSUM_DIR</span>/
$ wc -l <span class="pl-k">*</span>
11333 test.source
11333 test.target
204017 train.source
204017 train.target
11327 val.source
11327 val.target
453354 total</pre></div>
<h3 dir="auto">Details</h3>
<h4 dir="auto">The number of examples shown</h4>
<p dir="auto">At first, I tried to use the dataset with 40,000 pairs for training, but it was shown that <code class="notranslate">Num examples = 39999</code>.<br>
I don't know why, so I've checked the example with the XSum dataset.</p>
<p dir="auto">Checking the number of lengths, it seems the XSum train set used in the example has 204017 pairs, but it is shown <code class="notranslate">Num examples = 204016</code> as above.</p>
<p dir="auto">I thought the dataset was supposed to start with the first line, but am I mistaken? For example, is the first line treated as a header?</p>
<h4 dir="auto">MLflow can not treat params in this case</h4>
<p dir="auto">As shown above, the length of <code class="notranslate">param value</code> exceeds the limit that MLflow can handle.<br>
Do I just need to change the settings of MLflow? Or, should I add some modifications to <code class="notranslate">param value</code> to be used in MLflow?</p>
<p dir="auto">Thank you in advance.</p> | <h3 dir="auto">System Info</h3>
<ul dir="auto">
<li><code class="notranslate">transformers</code> version: 4.26.0.dev0</li>
<li>Platform: Linux-4.18.0-425.3.1.el8.x86_64-x86_64-with-glibc2.28</li>
<li>Python version: 3.9.16</li>
<li>Huggingface_hub version: 0.12.0</li>
<li>PyTorch version (GPU?): 1.13.1 (False)</li>
<li>Tensorflow version (GPU?): 2.11.0 (False)</li>
<li>Flax version (CPU?/GPU?/TPU?): 0.5.3 (cpu)</li>
<li>Jax version: 0.3.6</li>
<li>JaxLib version: 0.3.5</li>
<li>Using GPU in script?: False</li>
<li>Using distributed or parallel set-up in script?: False</li>
</ul>
<h3 dir="auto">Who can help?</h3>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sgugger/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sgugger">@sgugger</a></p>
<h3 dir="auto">Information</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> The official example scripts</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> My own modified scripts</li>
</ul>
<h3 dir="auto">Tasks</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> An officially supported task in the <code class="notranslate">examples</code> folder (such as GLUE/SQuAD, ...)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> My own task or dataset (give details below)</li>
</ul>
<h3 dir="auto">Reproduction</h3>
<p dir="auto">When I try to add a new model as per the tutorial <a href="https://huggingface.co/docs/transformers/add_new_model" rel="nofollow">here</a>, I get the following error with the given set of inputs:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ transformers-cli add-new-model-like
What is the model you would like to duplicate? Please provide the lowercase `model_type` (e.g. roberta): roberta
What is the name (with no special casing) for your new model in the paper (e.g. RoBERTa)? NewTransformer
What identifier would you like to use for the `model_type` of this model? [newtransformer]
What lowercase name would you like to use for the module (folder) of this model? [newtransformer]
What prefix (camel-cased) would you like to use for the model classes of this model (e.g. Roberta)? [NewTransformer]
What prefix (upper-cased) would you like to use for the constants relative to this model? [NEWTRANSFORMER]
What will be the name of the config class for this model? [NewTransformerConfig]
Please give a checkpoint identifier (on the model Hub) for this new model (e.g. facebook/roberta-base):
Will your new model use the same processing class as roberta (RobertaTokenizer) (yes/no)? no
What will be the name of the tokenizer class for this model? [NewTransformerTokenizer]
Traceback (most recent call last):
File "/home/stuli/.conda/envs/bin/transformers-cli", line 8, in <module>
sys.exit(main())
File "/scratch/gpfs/stuli/transformers/src/transformers/commands/transformers_cli.py", line 54, in main
service = args.func(args)
File "/scratch/gpfs/stuli/transformers/src/transformers/commands/add_new_model_like.py", line 1351, in add_new_model_like_command_factory
return AddNewModelLikeCommand(config_file=args.config_file, path_to_repo=args.path_to_repo)
File "/scratch/gpfs/stuli/transformers/src/transformers/commands/add_new_model_like.py", line 1382, in __init__
) = get_user_input()
File "/scratch/gpfs/stuli/transformers/src/transformers/commands/add_new_model_like.py", line 1583, in get_user_input
image_processor_class=image_processor_class,
UnboundLocalError: local variable 'image_processor_class' referenced before assignment"><pre class="notranslate"><code class="notranslate">$ transformers-cli add-new-model-like
What is the model you would like to duplicate? Please provide the lowercase `model_type` (e.g. roberta): roberta
What is the name (with no special casing) for your new model in the paper (e.g. RoBERTa)? NewTransformer
What identifier would you like to use for the `model_type` of this model? [newtransformer]
What lowercase name would you like to use for the module (folder) of this model? [newtransformer]
What prefix (camel-cased) would you like to use for the model classes of this model (e.g. Roberta)? [NewTransformer]
What prefix (upper-cased) would you like to use for the constants relative to this model? [NEWTRANSFORMER]
What will be the name of the config class for this model? [NewTransformerConfig]
Please give a checkpoint identifier (on the model Hub) for this new model (e.g. facebook/roberta-base):
Will your new model use the same processing class as roberta (RobertaTokenizer) (yes/no)? no
What will be the name of the tokenizer class for this model? [NewTransformerTokenizer]
Traceback (most recent call last):
File "/home/stuli/.conda/envs/bin/transformers-cli", line 8, in <module>
sys.exit(main())
File "/scratch/gpfs/stuli/transformers/src/transformers/commands/transformers_cli.py", line 54, in main
service = args.func(args)
File "/scratch/gpfs/stuli/transformers/src/transformers/commands/add_new_model_like.py", line 1351, in add_new_model_like_command_factory
return AddNewModelLikeCommand(config_file=args.config_file, path_to_repo=args.path_to_repo)
File "/scratch/gpfs/stuli/transformers/src/transformers/commands/add_new_model_like.py", line 1382, in __init__
) = get_user_input()
File "/scratch/gpfs/stuli/transformers/src/transformers/commands/add_new_model_like.py", line 1583, in get_user_input
image_processor_class=image_processor_class,
UnboundLocalError: local variable 'image_processor_class' referenced before assignment
</code></pre></div>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">There should be no error with the given sequence of inputs when creating a new model.</p> | 0 |
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.1.0"><pre class="notranslate"><code class="notranslate">ansible 2.2.1.0
</code></pre></div>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Hey,<br>
When i try to install an open source project Verteego Data suite using the Ansible Playbook command, the installation is failed with the following error message :</p>
<p dir="auto">TASK [Make boot disk] **********************************************************<br>
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "No CA Certificates were found in CA_CERTS_PATH. For information on how to get required certificate files, please visit <a href="https://libcloud.readthedocs.org/en/latest/other/ssl-certificate-validation.html%22%7D" rel="nofollow">https://libcloud.readthedocs.org/en/latest/other/ssl-certificate-validation.html"}</a><br>
to retry, use: --limit @/Users/derkrikorian/vds/deployment/ansible/setup_gc_instance.retry</p>
<p dir="auto">PLAY RECAP *********************************************************************<br>
localhost : ok=4 changed=1 unreachable=0 failed=1</p>
<p dir="auto">MacBook-Pro-de-Der:~ derkrikorian$ ansible-playbook -i vds/deployment/ansible/hosts --private-key=.ssh/google_compute_engine vds/deployment/ansible/setup_gc_instance.yml --limit @/Users/derkrikorian/vds/deployment/ansible/setup_gc_instance.retry<br>
ERROR! Specified --limit does not match any hosts</p>
<p dir="auto">I use a MacBook with MacOS Sierra and I try to run a google cloud instance</p>
<p dir="auto">thanks for your responses</p>
<p dir="auto">Lionel</p> | <p dir="auto">Seemingly not a thing in master yet if going by what <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bcoca/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bcoca">@bcoca</a> noted on IRC.</p>
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Feature Request</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">Ansible core</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<p dir="auto">2.2.2.0 (and most likely 2.3/master</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto"><code class="notranslate">allow_world_readable_tmpfiles</code> seems like a parameter that you might want to set per-host.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<ol dir="auto">
<li>You have your Ansible plays.</li>
<li>Suddenly a wild ZFS-utilizing node appears.</li>
<li><code class="notranslate">allow_world_readable_tmpfiles = True</code> is required for <code class="notranslate">become:yes</code> + <code class="notranslate">become_user: !root</code></li>
</ol>
<h5 dir="auto">EXPECTED RESULTS</h5>
<ol start="4" dir="auto">
<li>You can set <code class="notranslate">allow_world_readable_tmpfiles=yes</code> in an inventory or so.</li>
<li>Much happiness.</li>
</ol>
<h5 dir="auto">ACTUAL RESULTS</h5>
<ol start="4" dir="auto">
<li>Now you have to set <code class="notranslate">ANSIBLE_CONFIG</code> and have another cfg file on hand.</li>
<li>You are sad as you are now duplicating things.</li>
</ol>
<h5 dir="auto">SHORT IRC LOG</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="< JEEB> hmm, is there a way to set allow_world_readable_tmpfiles = True
in an inventory?
< JEEB> as currently I'd be forced to make a separate config file for
these hosts and that just gets not fun because everyone
deploying would have to know to set the env var :)
* JEEB just got a few nodes with ZFS
< agaffney> JEEB: it doesn't appear so
<@bcoca> ^ but we should add that
< JEEB> bcoca: do you want a feature request for that?
<@bcoca> JEEB: yep
< JEEB> alrighty"><pre class="notranslate"><code class="notranslate">< JEEB> hmm, is there a way to set allow_world_readable_tmpfiles = True
in an inventory?
< JEEB> as currently I'd be forced to make a separate config file for
these hosts and that just gets not fun because everyone
deploying would have to know to set the env var :)
* JEEB just got a few nodes with ZFS
< agaffney> JEEB: it doesn't appear so
<@bcoca> ^ but we should add that
< JEEB> bcoca: do you want a feature request for that?
<@bcoca> JEEB: yep
< JEEB> alrighty
</code></pre></div> | 0 |
<p dir="auto">I had this issue, but a friend of mine started FreeCodeCamp and had a similar issue. It wasn't browser specific to Chrome or Firefox (occurring in both), but what seems to happen is if you select something say 3/4 down the page (for reference my monitor is 1366x768, also happened in my 1920x1080 monitor) your cursor will be close to, but not where you selected. It's a minor issue but sufficiently annoying when you try to select something specific in a challenge and your cursor is jumping around, or you're typing not where you think you were, and then messing up your code.</p>
<p dir="auto">The coding window in the later challenges (I'm currently on Seek and Destroy) don't seem to have these same issues and I noticed it did go away. Since a friend of mine had the same issue I figured I should submit it.</p>
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/create-a-text-field" rel="nofollow">Create a Text Field</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My code:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}
h2 {
font-family: Lobster, Monospace;
}
p {
font-size: 16px;
font-family: Monospace;
}
.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}
.smaller-image {
width: 100px;
}
</style>
<h2 class="red-text">CatPhotoApp</h2>
<p>Click here for <a href="#">cat photos</a>.</p>
Te
<a href="#"><img class="smaller-image thick-green-border" alt="A cute orange cat lying on its back" src="https://bit.ly/fcc-relaxing-cat"></a>
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<input type="text">"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">link</span> <span class="pl-c1">href</span>="<span class="pl-s">https://fonts.googleapis.com/css?family=Lobster</span>" <span class="pl-c1">rel</span>="<span class="pl-s">stylesheet</span>" <span class="pl-c1">type</span>="<span class="pl-s">text/css</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">style</span><span class="pl-kos">></span>
.<span class="pl-c1">red-text</span> {
<span class="pl-c1">color</span><span class="pl-kos">:</span> red;
}
<span class="pl-ent">h2</span> {
<span class="pl-c1">font-family</span><span class="pl-kos">:</span> Lobster<span class="pl-kos">,</span> Monospace;
}
<span class="pl-ent">p</span> {
<span class="pl-c1">font-size</span><span class="pl-kos">:</span> <span class="pl-c1">16<span class="pl-smi">px</span></span>;
<span class="pl-c1">font-family</span><span class="pl-kos">:</span> Monospace;
}
.<span class="pl-c1">thick-green-border</span> {
<span class="pl-c1">border-color</span><span class="pl-kos">:</span> green;
<span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>;
<span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid;
<span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">50<span class="pl-smi">%</span></span>;
}
.<span class="pl-c1">smaller-image</span> {
<span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">100<span class="pl-smi">px</span></span>;
}
<span class="pl-kos"></</span><span class="pl-ent">style</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">></span>CatPhotoApp<span class="pl-kos"></</span><span class="pl-ent">h2</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Click here for <span class="pl-kos"><</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">></span>cat photos<span class="pl-kos"></</span><span class="pl-ent">a</span><span class="pl-kos">></span>.<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
Te
<span class="pl-kos"><</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">img</span> <span class="pl-c1">class</span>="<span class="pl-s">smaller-image thick-green-border</span>" <span class="pl-c1">alt</span>="<span class="pl-s">A cute orange cat lying on its back</span>" <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-relaxing-cat</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">a</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Things cats love:<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">ul</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>cat nip<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>laser pointers<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>lasagna<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">ul</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Top 3 things cats hate:<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">ol</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>flea treatment<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>thunder<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>other cats<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">ol</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>"<span class="pl-kos">></span></pre></div> | <p dir="auto">In all the exercises, we the users are forced to press the enter key before writing any code.</p>
<hr>
<h4 dir="auto">Update:</h4>
<p dir="auto">We have locked the conversation temporarily on this thread to collaborators only, this has been resolved in staging, and will be live soon.</p>
<p dir="auto">The fix can be confirmed on the beta website.</p>
<p dir="auto">The workaround currently on production website is:<br>
Press the <kbd>Enter</kbd> key on the challenge editor and then proceed with the challenge.</p>
<p dir="auto">Apologies for the inconvenience meanwhile.</p>
<p dir="auto">Reach us in the chat room if you need any assistance.</p> | 1 |
<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">Plotting negative values on a log scale is possible. However it changes the axis limits in a seemingly arbitrary way.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<p dir="auto">The following shows three scatter plots. The <code class="notranslate">x</code> values<br>
(1) are all positive<br>
(2) contain one negative value<br>
(3) have the negative value filtered out</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np; np.random.seed(1)
import matplotlib.pyplot as plt
x = np.random.rayleigh(100,400)
y = np.random.rand(len(x))
fig, (ax,ax2, ax3) = plt.subplots(nrows=3)
ax.scatter(x,y)
ax.set_xscale("log")
ax.set_title("Scatter of all-positive values")
ax2.scatter(x-2,y)
ax2.set_xscale("log")
ax2.set_title("Scatter with one negative value")
cond = x-2 > 0
ax3.scatter((x-2)[cond],y[cond])
ax3.set_xscale("log")
ax3.set_title("Expected scatter with one negative value")
plt.tight_layout()
plt.show()"><pre class="notranslate"><code class="notranslate">import numpy as np; np.random.seed(1)
import matplotlib.pyplot as plt
x = np.random.rayleigh(100,400)
y = np.random.rand(len(x))
fig, (ax,ax2, ax3) = plt.subplots(nrows=3)
ax.scatter(x,y)
ax.set_xscale("log")
ax.set_title("Scatter of all-positive values")
ax2.scatter(x-2,y)
ax2.set_xscale("log")
ax2.set_title("Scatter with one negative value")
cond = x-2 > 0
ax3.scatter((x-2)[cond],y[cond])
ax3.set_xscale("log")
ax3.set_title("Expected scatter with one negative value")
plt.tight_layout()
plt.show()
</code></pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<p dir="auto">The second subplot, where the data contains a negative value, shows only part of the valid data, because the axis is autoscaled to some seemingly arbitrary region.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/23121882/37407656-7a2ba57c-279a-11e8-8957-1f85be04d97e.png"><img src="https://user-images.githubusercontent.com/23121882/37407656-7a2ba57c-279a-11e8-8957-1f85be04d97e.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">The third subplot would be the expected outcome with the axis autoscaled to show all points.</p>
<p dir="auto">One could also argue that plotting negative data on a log scale should not be supported at all, and that it should be the user's responsibility to make sure the data is positive. In that case however it would make sense to issue a warning instead of just plotting something arbitrary.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: Windows 8.1</li>
<li>Matplotlib version: 2.2</li>
<li>Matplotlib backend: any</li>
<li>Python version: 2.7.10</li>
</ul> | <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt
fig, axs = plt.subplots(2, 1)
axs[0].scatter(range(0, 4), [0, 1, 2, 3])
axs[1].scatter(range(0, 4), [0, 1, 2, 3])
axs[0].set_yscale('log')
axs[1].set_yscale('log')
axs[1].set_ylim(bottom=0)
plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-s1">fig</span>, <span class="pl-s1">axs</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-c1">2</span>, <span class="pl-c1">1</span>)
<span class="pl-s1">axs</span>[<span class="pl-c1">0</span>].<span class="pl-en">scatter</span>(<span class="pl-en">range</span>(<span class="pl-c1">0</span>, <span class="pl-c1">4</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-s1">axs</span>[<span class="pl-c1">1</span>].<span class="pl-en">scatter</span>(<span class="pl-en">range</span>(<span class="pl-c1">0</span>, <span class="pl-c1">4</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-s1">axs</span>[<span class="pl-c1">0</span>].<span class="pl-en">set_yscale</span>(<span class="pl-s">'log'</span>)
<span class="pl-s1">axs</span>[<span class="pl-c1">1</span>].<span class="pl-en">set_yscale</span>(<span class="pl-s">'log'</span>)
<span class="pl-s1">axs</span>[<span class="pl-c1">1</span>].<span class="pl-en">set_ylim</span>(<span class="pl-s1">bottom</span><span class="pl-c1">=</span><span class="pl-c1">0</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto">This raises</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/home/dstansby/matplotlib/lib/matplotlib/axes/_base.py:3174: UserWarning: Attempted to set non-positive ylimits for log-scale axis; invalid limits will be ignored.
'Attempted to set non-positive ylimits for log-scale axis; '"><pre class="notranslate"><code class="notranslate">/home/dstansby/matplotlib/lib/matplotlib/axes/_base.py:3174: UserWarning: Attempted to set non-positive ylimits for log-scale axis; invalid limits will be ignored.
'Attempted to set non-positive ylimits for log-scale axis; '
</code></pre></div>
<p dir="auto">However, the 2nd plot <em>is</em> changed by the <code class="notranslate">set_ylim(bottom=0)</code> call, and no data is visible.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6197628/21616640/2654ac76-d1da-11e6-800a-96b2027e9947.png"><img src="https://cloud.githubusercontent.com/assets/6197628/21616640/2654ac76-d1da-11e6-800a-96b2027e9947.png" alt="figure_1" style="max-width: 100%;"></a></p>
<p dir="auto">This is present on master.</p> | 1 |
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [2]: mi = pd.MultiIndex.from_product([[True, False], range(1, 10)])
In [3]: mi.get_loc((False, 1))
Out[3]: 9
In [4]: mi = pd.MultiIndex.from_product([[True, False], range(1, 10000)])
In [5]: mi.get_loc((False, 1))
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-5-68f8698878ec> in <module>()
----> 1 mi.get_loc((False, 1))
/home/pietro/nobackup/repo/pandas/pandas/core/indexes/multi.py in get_loc(self, key, method)
2134 key = _values_from_object(key)
2135 key = tuple(map(_maybe_str_to_time_stamp, key, self.levels))
-> 2136 return self._engine.get_loc(key)
2137
2138 # -- partial selection or non-unique index
/home/pietro/nobackup/repo/pandas/pandas/_libs/index.pyx in pandas._libs.index.MultiIndexHashEngine.get_loc (pandas/_libs/index.c:15854)()
/home/pietro/nobackup/repo/pandas/pandas/_libs/index.pyx in pandas._libs.index.MultiIndexHashEngine.get_loc (pandas/_libs/index.c:15701)()
/home/pietro/nobackup/repo/pandas/pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.MultiIndexHashTable.get_item (pandas/_libs/hashtable.c:24621)()
/home/pietro/nobackup/repo/pandas/pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.MultiIndexHashTable.get_item (pandas/_libs/hashtable.c:24468)()
/home/pietro/nobackup/repo/pandas/pandas/core/indexes/multi.py in _hashed_indexing_key(self, key)
819 key = tuple([f(k, stringify)
820 for k, stringify in zip(key, self._have_mixed_levels)])
--> 821 return hash_tuple(key)
822
823 @Appender(base._shared_docs['duplicated'] % _index_doc_kwargs)
/home/pietro/nobackup/repo/pandas/pandas/core/util/hashing.py in hash_tuple(val, encoding, hash_key)
186 for v in val)
187
--> 188 h = _combine_hash_arrays(hashes, len(val))[0]
189
190 return h
/home/pietro/nobackup/repo/pandas/pandas/core/util/hashing.py in _combine_hash_arrays(arrays, num_items)
31 """
32 try:
---> 33 first = next(arrays)
34 except StopIteration:
35 return np.array([], dtype=np.uint64)
/home/pietro/nobackup/repo/pandas/pandas/core/util/hashing.py in <genexpr>(.0)
184 """
185 hashes = (_hash_scalar(v, encoding=encoding, hash_key=hash_key)
--> 186 for v in val)
187
188 h = _combine_hash_arrays(hashes, len(val))[0]
/home/pietro/nobackup/repo/pandas/pandas/core/util/hashing.py in _hash_scalar(val, encoding, hash_key)
330
331 return hash_array(vals, hash_key=hash_key, encoding=encoding,
--> 332 categorize=False)
/home/pietro/nobackup/repo/pandas/pandas/core/util/hashing.py in hash_array(vals, encoding, hash_key, categorize)
290
291 try:
--> 292 vals = hashing.hash_object_array(vals, hash_key, encoding)
293 except TypeError:
294 # we have mixed types
/home/pietro/nobackup/repo/pandas/pandas/_libs/hashing.pyx in pandas._libs.hashing.hash_object_array (pandas/_libs/hashing.c:1764)()
ValueError: Does not understand character buffer dtype format string ('?')
In [6]: mi = pd.MultiIndex.from_product([[1, 0], range(1, 10000)])
In [7]: mi.get_loc((1, 1))
Out[7]: 0
"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-s1">mi</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">MultiIndex</span>.<span class="pl-en">from_product</span>([[<span class="pl-c1">True</span>, <span class="pl-c1">False</span>], <span class="pl-en">range</span>(<span class="pl-c1">1</span>, <span class="pl-c1">10</span>)])
<span class="pl-v">In</span> [<span class="pl-c1">3</span>]: <span class="pl-s1">mi</span>.<span class="pl-en">get_loc</span>((<span class="pl-c1">False</span>, <span class="pl-c1">1</span>))
<span class="pl-v">Out</span>[<span class="pl-c1">3</span>]: <span class="pl-c1">9</span>
<span class="pl-v">In</span> [<span class="pl-c1">4</span>]: <span class="pl-s1">mi</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">MultiIndex</span>.<span class="pl-en">from_product</span>([[<span class="pl-c1">True</span>, <span class="pl-c1">False</span>], <span class="pl-en">range</span>(<span class="pl-c1">1</span>, <span class="pl-c1">10000</span>)])
<span class="pl-v">In</span> [<span class="pl-c1">5</span>]: <span class="pl-s1">mi</span>.<span class="pl-en">get_loc</span>((<span class="pl-c1">False</span>, <span class="pl-c1">1</span>))
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span>
<span class="pl-v">ValueError</span> <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>)
<span class="pl-c1"><</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">5</span><span class="pl-c1">-</span><span class="pl-c1">68</span><span class="pl-s1">f8698878ec</span><span class="pl-c1">></span> <span class="pl-s1">in</span> <span class="pl-c1"><</span><span class="pl-s1">module</span><span class="pl-c1">></span>()
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">></span> <span class="pl-c1">1</span> <span class="pl-s1">mi</span>.<span class="pl-en">get_loc</span>((<span class="pl-c1">False</span>, <span class="pl-c1">1</span>))
<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">pietro</span><span class="pl-c1">/</span><span class="pl-s1">nobackup</span><span class="pl-c1">/</span><span class="pl-s1">repo</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">indexes</span><span class="pl-c1">/</span><span class="pl-s1">multi</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">get_loc</span>(<span class="pl-s1">self</span>, <span class="pl-s1">key</span>, <span class="pl-s1">method</span>)
<span class="pl-c1">2134</span> <span class="pl-s1">key</span> <span class="pl-c1">=</span> <span class="pl-en">_values_from_object</span>(<span class="pl-s1">key</span>)
<span class="pl-c1">2135</span> <span class="pl-s1">key</span> <span class="pl-c1">=</span> <span class="pl-en">tuple</span>(<span class="pl-en">map</span>(<span class="pl-s1">_maybe_str_to_time_stamp</span>, <span class="pl-s1">key</span>, <span class="pl-s1">self</span>.<span class="pl-s1">levels</span>))
<span class="pl-c1">-</span><span class="pl-c1">></span> <span class="pl-c1">2136</span> <span class="pl-s1">return</span> <span class="pl-s1">self</span>.<span class="pl-s1">_engine</span>.<span class="pl-en">get_loc</span>(<span class="pl-s1">key</span>)
<span class="pl-c1">2137</span>
<span class="pl-c1">2138</span> <span class="pl-c"># -- partial selection or non-unique index</span>
<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">pietro</span><span class="pl-c1">/</span><span class="pl-s1">nobackup</span><span class="pl-c1">/</span><span class="pl-s1">repo</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">_libs</span><span class="pl-c1">/</span><span class="pl-s1">index</span>.<span class="pl-s1">pyx</span> <span class="pl-c1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">_libs</span>.<span class="pl-s1">index</span>.<span class="pl-v">MultiIndexHashEngine</span>.<span class="pl-en">get_loc</span> (<span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">_libs</span><span class="pl-c1">/</span><span class="pl-s1">index</span>.<span class="pl-s1">c</span>:<span class="pl-c1">15854</span>)()
<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">pietro</span><span class="pl-c1">/</span><span class="pl-s1">nobackup</span><span class="pl-c1">/</span><span class="pl-s1">repo</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">_libs</span><span class="pl-c1">/</span><span class="pl-s1">index</span>.<span class="pl-s1">pyx</span> <span class="pl-c1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">_libs</span>.<span class="pl-s1">index</span>.<span class="pl-v">MultiIndexHashEngine</span>.<span class="pl-en">get_loc</span> (<span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">_libs</span><span class="pl-c1">/</span><span class="pl-s1">index</span>.<span class="pl-s1">c</span>:<span class="pl-c1">15701</span>)()
<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">pietro</span><span class="pl-c1">/</span><span class="pl-s1">nobackup</span><span class="pl-c1">/</span><span class="pl-s1">repo</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">_libs</span><span class="pl-c1">/</span><span class="pl-s1">hashtable_class_helper</span>.<span class="pl-s1">pxi</span> <span class="pl-c1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">_libs</span>.<span class="pl-s1">hashtable</span>.<span class="pl-v">MultiIndexHashTable</span>.<span class="pl-en">get_item</span> (<span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">_libs</span><span class="pl-c1">/</span><span class="pl-s1">hashtable</span>.<span class="pl-s1">c</span>:<span class="pl-c1">24621</span>)()
<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">pietro</span><span class="pl-c1">/</span><span class="pl-s1">nobackup</span><span class="pl-c1">/</span><span class="pl-s1">repo</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">_libs</span><span class="pl-c1">/</span><span class="pl-s1">hashtable_class_helper</span>.<span class="pl-s1">pxi</span> <span class="pl-c1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">_libs</span>.<span class="pl-s1">hashtable</span>.<span class="pl-v">MultiIndexHashTable</span>.<span class="pl-en">get_item</span> (<span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">_libs</span><span class="pl-c1">/</span><span class="pl-s1">hashtable</span>.<span class="pl-s1">c</span>:<span class="pl-c1">24468</span>)()
<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">pietro</span><span class="pl-c1">/</span><span class="pl-s1">nobackup</span><span class="pl-c1">/</span><span class="pl-s1">repo</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">indexes</span><span class="pl-c1">/</span><span class="pl-s1">multi</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">_hashed_indexing_key</span>(<span class="pl-s1">self</span>, <span class="pl-s1">key</span>)
<span class="pl-c1">819</span> <span class="pl-s1">key</span> <span class="pl-c1">=</span> <span class="pl-en">tuple</span>([<span class="pl-en">f</span>(<span class="pl-s1">k</span>, <span class="pl-s1">stringify</span>)
<span class="pl-c1">820</span> <span class="pl-k">for</span> <span class="pl-s1">k</span>, <span class="pl-s1">stringify</span> <span class="pl-c1">in</span> <span class="pl-en">zip</span>(<span class="pl-s1">key</span>, <span class="pl-s1">self</span>.<span class="pl-s1">_have_mixed_levels</span>)])
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">></span> <span class="pl-c1">821</span> <span class="pl-s1">return</span> <span class="pl-en">hash_tuple</span>(<span class="pl-s1">key</span>)
<span class="pl-c1">822</span>
<span class="pl-c1">823</span> @<span class="pl-v">Appender</span>(<span class="pl-s1">base</span>.<span class="pl-s1">_shared_docs</span>[<span class="pl-s">'duplicated'</span>] <span class="pl-c1">%</span> <span class="pl-s1">_index_doc_kwargs</span>)
<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">pietro</span><span class="pl-c1">/</span><span class="pl-s1">nobackup</span><span class="pl-c1">/</span><span class="pl-s1">repo</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">util</span><span class="pl-c1">/</span><span class="pl-s1">hashing</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">hash_tuple</span>(<span class="pl-s1">val</span>, <span class="pl-s1">encoding</span>, <span class="pl-s1">hash_key</span>)
<span class="pl-c1">186</span> <span class="pl-k">for</span> <span class="pl-s1">v</span> <span class="pl-c1">in</span> <span class="pl-s1">val</span>)
<span class="pl-c1">187</span>
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">></span> <span class="pl-c1">188</span> <span class="pl-s1">h</span> <span class="pl-c1">=</span> <span class="pl-en">_combine_hash_arrays</span>(<span class="pl-s1">hashes</span>, <span class="pl-en">len</span>(<span class="pl-s1">val</span>))[<span class="pl-c1">0</span>]
<span class="pl-c1">189</span>
<span class="pl-c1">190</span> <span class="pl-s1">return</span> <span class="pl-s1">h</span>
<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">pietro</span><span class="pl-c1">/</span><span class="pl-s1">nobackup</span><span class="pl-c1">/</span><span class="pl-s1">repo</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">util</span><span class="pl-c1">/</span><span class="pl-s1">hashing</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">_combine_hash_arrays</span>(<span class="pl-s1">arrays</span>, <span class="pl-s1">num_items</span>)
<span class="pl-c1">31</span> <span class="pl-s">"""</span>
<span class="pl-s"> 32 try:</span>
<span class="pl-s">---> 33 first = next(arrays)</span>
<span class="pl-s"> 34 except StopIteration:</span>
<span class="pl-s"> 35 return np.array([], dtype=np.uint64)</span>
<span class="pl-s"></span>
<span class="pl-s">/home/pietro/nobackup/repo/pandas/pandas/core/util/hashing.py in <genexpr>(.0)</span>
<span class="pl-s"> 184 """</span>
<span class="pl-c1">185</span> <span class="pl-s1">hashes</span> <span class="pl-c1">=</span> (<span class="pl-en">_hash_scalar</span>(<span class="pl-s1">v</span>, <span class="pl-s1">encoding</span><span class="pl-c1">=</span><span class="pl-s1">encoding</span>, <span class="pl-s1">hash_key</span><span class="pl-c1">=</span><span class="pl-s1">hash_key</span>)
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">></span> <span class="pl-c1">186</span> <span class="pl-k">for</span> <span class="pl-s1">v</span> <span class="pl-c1">in</span> <span class="pl-s1">val</span>)
<span class="pl-c1">187</span>
<span class="pl-c1">188</span> <span class="pl-s1">h</span> <span class="pl-c1">=</span> <span class="pl-en">_combine_hash_arrays</span>(<span class="pl-s1">hashes</span>, <span class="pl-en">len</span>(<span class="pl-s1">val</span>))[<span class="pl-c1">0</span>]
<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">pietro</span><span class="pl-c1">/</span><span class="pl-s1">nobackup</span><span class="pl-c1">/</span><span class="pl-s1">repo</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">util</span><span class="pl-c1">/</span><span class="pl-s1">hashing</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">_hash_scalar</span>(<span class="pl-s1">val</span>, <span class="pl-s1">encoding</span>, <span class="pl-s1">hash_key</span>)
<span class="pl-c1">330</span>
<span class="pl-c1">331</span> <span class="pl-k">return</span> <span class="pl-s1">hash_array</span>(<span class="pl-s1">vals</span>, <span class="pl-s1">hash_key</span><span class="pl-c1">=</span><span class="pl-s1">hash_key</span>, <span class="pl-s1">encoding</span><span class="pl-c1">=</span><span class="pl-s1">encoding</span>,
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">></span> <span class="pl-c1">332</span> <span class="pl-s1">categorize</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">pietro</span><span class="pl-c1">/</span><span class="pl-s1">nobackup</span><span class="pl-c1">/</span><span class="pl-s1">repo</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">util</span><span class="pl-c1">/</span><span class="pl-s1">hashing</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">hash_array</span>(<span class="pl-s1">vals</span>, <span class="pl-s1">encoding</span>, <span class="pl-s1">hash_key</span>, <span class="pl-s1">categorize</span>)
<span class="pl-c1">290</span>
<span class="pl-c1">291</span> <span class="pl-k">try</span>:
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">></span> <span class="pl-c1">292</span> <span class="pl-s1">vals</span> <span class="pl-c1">=</span> <span class="pl-s1">hashing</span>.<span class="pl-en">hash_object_array</span>(<span class="pl-s1">vals</span>, <span class="pl-s1">hash_key</span>, <span class="pl-s1">encoding</span>)
<span class="pl-c1">293</span> <span class="pl-s1">except</span> <span class="pl-v">TypeError</span>:
<span class="pl-c1">294</span> <span class="pl-c"># we have mixed types</span>
<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">pietro</span><span class="pl-c1">/</span><span class="pl-s1">nobackup</span><span class="pl-c1">/</span><span class="pl-s1">repo</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">_libs</span><span class="pl-c1">/</span><span class="pl-s1">hashing</span>.<span class="pl-s1">pyx</span> <span class="pl-c1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">_libs</span>.<span class="pl-s1">hashing</span>.<span class="pl-en">hash_object_array</span> (<span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">_libs</span><span class="pl-c1">/</span><span class="pl-s1">hashing</span>.<span class="pl-s1">c</span>:<span class="pl-c1">1764</span>)()
<span class="pl-v">ValueError</span>: <span class="pl-v">Does</span> <span class="pl-c1">not</span> <span class="pl-s1">understand</span> <span class="pl-s1">character</span> <span class="pl-s1">buffer</span> <span class="pl-s1">dtype</span> <span class="pl-s1">format</span> <span class="pl-en">string</span> (<span class="pl-s">'?'</span>)
<span class="pl-v">In</span> [<span class="pl-c1">6</span>]: <span class="pl-s1">mi</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">MultiIndex</span>.<span class="pl-en">from_product</span>([[<span class="pl-c1">1</span>, <span class="pl-c1">0</span>], <span class="pl-en">range</span>(<span class="pl-c1">1</span>, <span class="pl-c1">10000</span>)])
<span class="pl-v">In</span> [<span class="pl-c1">7</span>]: <span class="pl-s1">mi</span>.<span class="pl-en">get_loc</span>((<span class="pl-c1">1</span>, <span class="pl-c1">1</span>))
<span class="pl-v">Out</span>[<span class="pl-c1">7</span>]: <span class="pl-c1">0</span></pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">The two engines should give the same result.</p>
<h4 dir="auto">Expected Output</h4>
<p dir="auto"><code class="notranslate">Out[3]:</code></p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<h2 dir="auto">INSTALLED VERSIONS</h2>
<p dir="auto">commit: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pandas-dev/pandas/commit/f745e52e168790bff06a55928c3491cdea389508/hovercard" href="https://github.com/pandas-dev/pandas/commit/f745e52e168790bff06a55928c3491cdea389508"><tt>f745e52</tt></a><br>
python: 3.5.3.final.0<br>
python-bits: 64<br>
OS: Linux<br>
OS-release: 4.9.0-3-amd64<br>
machine: x86_64<br>
processor:<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: it_IT.UTF-8<br>
LOCALE: it_IT.UTF-8</p>
<p dir="auto">pandas: 0.22.0.dev0+241.gf745e52e1.dirty<br>
pytest: 3.2.3<br>
pip: 9.0.1<br>
setuptools: 36.7.0<br>
Cython: 0.25.2<br>
numpy: 1.12.1<br>
scipy: 0.19.0<br>
pyarrow: None<br>
xarray: None<br>
IPython: 6.2.1<br>
sphinx: 1.5.6<br>
patsy: 0.4.1<br>
dateutil: 2.6.1<br>
pytz: 2017.2<br>
blosc: None<br>
bottleneck: 1.2.0dev<br>
tables: 3.3.0<br>
numexpr: 2.6.1<br>
feather: 0.3.1<br>
matplotlib: 2.0.0<br>
openpyxl: None<br>
xlrd: 1.0.0<br>
xlwt: 1.1.2<br>
xlsxwriter: 0.9.6<br>
lxml: None<br>
bs4: 4.5.3<br>
html5lib: 0.999999999<br>
sqlalchemy: 1.0.15<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.10<br>
s3fs: None<br>
fastparquet: None<br>
pandas_gbq: None<br>
pandas_datareader: 0.2.1</p>
</details> | <p dir="auto">Now that pip 19 is out, we can attempt to re-add pyproject.toml</p>
<hr>
<p dir="auto">The release of pip version 10 and the presence of a <code class="notranslate">pyproject.toml</code> in our latest released versions gives problems for installing pandas in the following cases:</p>
<p dir="auto"><strong>Problem with installing pandas for Python 3.4</strong></p>
<ul dir="auto">
<li>You get the error <em>"Double requirement given: numpy ..."</em></li>
<li>The reason for this error is that pandas 0.21-0.22 no longer supports Python 3.4, and thus no longer distributes binary wheels for Python 3.4. Therefore, pip tries to install pandas from source, and this is what now started to fail with Pip version 10.</li>
<li><strong>Solution</strong>:
<ul dir="auto">
<li>
<p dir="auto">Install an older version of pandas</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pip install pandas<0.21"><pre class="notranslate"><code class="notranslate">pip install pandas<0.21
</code></pre></div>
</li>
<li>
<p dir="auto">Workaround for package maintainers to specify the pandas version in <code class="notranslate">install_requires</code>: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="314359671" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/20697" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/20697/hovercard?comment_id=381372004&comment_type=issue_comment" href="https://github.com/pandas-dev/pandas/issues/20697#issuecomment-381372004">#20697 (comment)</a></p>
</li>
</ul>
</li>
<li>The fact that those version are downloaded for Python 3.4 (instead of an older compatible version) was a bug in our setup.py, and this will be fixed in future versions of pandas: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="314372081" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/20698" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/20698/hovercard" href="https://github.com/pandas-dev/pandas/pull/20698">#20698</a></li>
</ul>
<p dir="auto"><strong>Problem with installing pandas on "special" platforms (32bit, PyPy, ARM, ...) (building from source)</strong>:</p>
<ul dir="auto">
<li>You get the error <em>"No matching distribution found for Cython"</em></li>
<li>The reason for this error is that we do not provide wheels for such python versions or platforms. In such a case, <code class="notranslate">pip</code> will try to build pandas from source, but this started to fail with pip version 10. This is because their limited support for PEP518, and they require that all build dependencies of pandas are installed from wheels (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="314376984" data-permission-text="Title is private" data-url="https://github.com/pypa/pip/issues/5229" data-hovercard-type="issue" data-hovercard-url="/pypa/pip/issues/5229/hovercard" href="https://github.com/pypa/pip/issues/5229">pypa/pip#5229</a>), which are often also not available on those python versions / platforms.</li>
<li><strong>Solution</strong>
<ul dir="auto">
<li>Use an older version of pip</li>
<li>Use <code class="notranslate">pip install pandas --no-build-isolation</code></li>
</ul>
</li>
<li>See eg <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="313701198" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/20666" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/20666/hovercard" href="https://github.com/pandas-dev/pandas/issues/20666">#20666</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="316399092" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/20771" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/20771/hovercard" href="https://github.com/pandas-dev/pandas/issues/20771">#20771</a></li>
</ul> | 0 |
<p dir="auto">iOS doesn't show text controls like autocorrect, copy, paste, cut, etc.</p> | <h1 dir="auto">WELCOME to the Flutter Console.</h1>
<p dir="auto">Use the console below this message to interact with the "flutter" command.<br>
Run "flutter doctor" to check if your system is ready to run Flutter apps.<br>
Run "flutter create <app_name>" to create a new Flutter project.</p>
<p dir="auto">Run "flutter help" to see all available commands.</p>
<p dir="auto">Want to use an IDE to interact with Flutter? <a href="https://flutter.io/ide-setup/" rel="nofollow">https://flutter.io/ide-setup/</a></p>
<p dir="auto">Want to run the "flutter" command from any Command Prompt or PowerShell window?<br>
Add Flutter to your PATH: <a href="https://flutter.io/setup-windows/#update-your-path" rel="nofollow">https://flutter.io/setup-windows/#update-your-path</a></p>
<p dir="auto">================================================================================</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\Users\Nick>flutter doctor -v
[√] Flutter (Channel beta, v0.9.4, on Microsoft Windows [Version 10.0.17134.376], locale en-IN)
• Flutter version 0.9.4 at C:\Users\Nick\flutter
• Framework revision f37c235c32 (6 weeks ago), 2018-09-25 17:45:40 -0400
• Engine revision 74625aed32
• Dart version 2.1.0-dev.5.0.flutter-a2eb050044
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at C:\Users\Nick\AppData\Local\Android\Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = C:\Users\Nick\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[√] Android Studio (version 3.2)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 29.1.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[√] VS Code (version 1.28.2)
• VS Code at C:\Users\Nick\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 2.20.0
[√] Connected devices (1 available)
• Lenovo A7020a48 • BE65GAFM7H8HYTS4 • android-arm64 • Android 6.0 (API 23)
• No issues found!"><pre class="notranslate"><code class="notranslate">C:\Users\Nick>flutter doctor -v
[√] Flutter (Channel beta, v0.9.4, on Microsoft Windows [Version 10.0.17134.376], locale en-IN)
• Flutter version 0.9.4 at C:\Users\Nick\flutter
• Framework revision f37c235c32 (6 weeks ago), 2018-09-25 17:45:40 -0400
• Engine revision 74625aed32
• Dart version 2.1.0-dev.5.0.flutter-a2eb050044
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at C:\Users\Nick\AppData\Local\Android\Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = C:\Users\Nick\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[√] Android Studio (version 3.2)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 29.1.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[√] VS Code (version 1.28.2)
• VS Code at C:\Users\Nick\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 2.20.0
[√] Connected devices (1 available)
• Lenovo A7020a48 • BE65GAFM7H8HYTS4 • android-arm64 • Android 6.0 (API 23)
• No issues found!
</code></pre></div>
<p dir="auto">now when i run the demo app , console show me this error..</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Launching lib\main.dart on Lenovo A7020a48 in debug mode...
Launching lib\main.dart on Lenovo A7020a48 in debug mode...
Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
Compiler message:
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:243:24: Error: Expected an identifier, but got '{'.
ContainerTextt text, {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:244:5: Error: Expected ';' after this.
Key key,
^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:245:5: Error: Expected an identifier, but got 'this'.
this.alignment,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:245:5: Error: Expected ';' after this.
this.alignment,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:245:9: Error: Expected a class member, but got '.'.
this.alignment,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:245:10: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
this.alignment,
^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:246:5: Error: Expected an identifier, but got 'this'.
this.padding,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:246:5: Error: Expected ';' after this.
this.padding,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:246:5: Error: 'this' is already declared in this scope.
this.padding,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:245:5: Error: Previous declaration of 'this'.
this.alignment,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:246:9: Error: Expected a class member, but got '.'.
this.padding,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:246:10: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
this.padding,
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:247:5: Error: Expected ';' after this.
Color color,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:247:11: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
Color color,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:248:5: Error: Expected ';' after this.
Decoration decoration,
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:248:16: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
Decoration decoration,
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:249:5: Error: Expected an identifier, but got 'this'.
this.foregroundDecoration,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:249:5: Error: Expected ';' after this.
this.foregroundDecoration,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:249:5: Error: 'this' is already declared in this scope.
this.foregroundDecoration,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:246:5: Error: Previous declaration of 'this'.
this.padding,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:249:9: Error: Expected a class member, but got '.'.
this.foregroundDecoration,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:249:10: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
this.foregroundDecoration,
^^^^^^^^^^^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:250:5: Error: Expected ';' after this.
double width,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:250:12: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
double width,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:251:5: Error: Expected ';' after this.
double height,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:251:5: Error: 'double' is already declared in this scope.
double height,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:250:5: Error: Previous declaration of 'double'.
double width,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:251:12: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
double height,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:252:5: Error: Expected ';' after this.
BoxConstraints constraints,
^^^^^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:252:20: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
BoxConstraints constraints,
^^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:253:5: Error: Expected an identifier, but got 'this'.
this.margin,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:253:5: Error: Expected ';' after this.
this.margin,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:253:5: Error: 'this' is already declared in this scope.
this.margin,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:249:5: Error: Previous declaration of 'this'.
this.foregroundDecoration,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:253:9: Error: Expected a class member, but got '.'.
this.margin,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:253:10: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
this.margin,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:254:5: Error: Expected an identifier, but got 'this'.
this.transform,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:254:5: Error: Expected ';' after this.
this.transform,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:254:5: Error: 'this' is already declared in this scope.
this.transform,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:253:5: Error: Previous declaration of 'this'.
this.margin,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:254:9: Error: Expected a class member, but got '.'.
this.transform,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:254:10: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
this.transform,
^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:255:5: Error: Expected an identifier, but got 'this'.
this.child,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:255:5: Error: Expected ';' after this.
this.child,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:255:5: Error: 'this' is already declared in this scope.
this.child,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:254:5: Error: Previous declaration of 'this'.
this.transform,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:255:9: Error: Expected a class member, but got '.'.
this.child,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:255:10: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
this.child,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:256:3: Error: Expected an identifier, but got '}'.
}) : assert(margin == null || margin.isNonNegative),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:256:3: Error: Expected ';' after this.
}) : assert(margin == null || margin.isNonNegative),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:256:3: Error: '' is already declared in this scope.
}) : assert(margin == null || margin.isNonNegative),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:244:5: Error: Previous declaration of ''.
Key key,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:256:4: Error: Expected a declaration, but got ')'.
}) : assert(margin == null || margin.isNonNegative),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:256:6: Error: Expected a declaration, but got ':'.
}) : assert(margin == null || margin.isNonNegative),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:256:8: Error: Expected an identifier, but got 'assert'.
}) : assert(margin == null || margin.isNonNegative),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:256:22: Error: Expected ')' before this.
}) : assert(margin == null || margin.isNonNegative),
^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:256:54: Error: Expected '{' before this.
}) : assert(margin == null || margin.isNonNegative),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:256:54: Error: Expected a declaration, but got ','.
}) : assert(margin == null || margin.isNonNegative),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:257:8: Error: Expected an identifier, but got 'assert'.
assert(padding == null || padding.isNonNegative),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:257:23: Error: Expected ')' before this.
assert(padding == null || padding.isNonNegative),
^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:257:56: Error: Expected '{' before this.
assert(padding == null || padding.isNonNegative),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:257:8: Error: 'assert' is already declared in this scope.
assert(padding == null || padding.isNonNegative),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:256:8: Error: Previous declaration of 'assert'.
}) : assert(margin == null || margin.isNonNegative),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:257:56: Error: Expected a declaration, but got ','.
assert(padding == null || padding.isNonNegative),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:258:8: Error: Expected an identifier, but got 'assert'.
assert(decoration == null || decoration.debugAssertIsValid()),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:258:26: Error: Expected ')' before this.
assert(decoration == null || decoration.debugAssertIsValid()),
^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:258:69: Error: Expected '{' before this.
assert(decoration == null || decoration.debugAssertIsValid()),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:258:8: Error: 'assert' is already declared in this scope.
assert(decoration == null || decoration.debugAssertIsValid()),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:257:8: Error: Previous declaration of 'assert'.
assert(padding == null || padding.isNonNegative),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:258:69: Error: Expected a declaration, but got ','.
assert(decoration == null || decoration.debugAssertIsValid()),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:259:8: Error: Expected an identifier, but got 'assert'.
assert(constraints == null || constraints.debugAssertIsValid()),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:259:27: Error: Expected ')' before this.
assert(constraints == null || constraints.debugAssertIsValid()),
^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:259:71: Error: Expected '{' before this.
assert(constraints == null || constraints.debugAssertIsValid()),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:259:8: Error: 'assert' is already declared in this scope.
assert(constraints == null || constraints.debugAssertIsValid()),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:258:8: Error: Previous declaration of 'assert'.
assert(decoration == null || decoration.debugAssertIsValid()),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:259:71: Error: Expected a declaration, but got ','.
assert(constraints == null || constraints.debugAssertIsValid()),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:260:8: Error: Expected an identifier, but got 'assert'.
assert(color == null || decoration == null,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:260:21: Error: Expected ')' before this.
assert(color == null || decoration == null,
^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:263:9: Error: Expected '{' before this.
),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:260:8: Error: 'assert' is already declared in this scope.
assert(color == null || decoration == null,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:259:8: Error: Previous declaration of 'assert'.
assert(constraints == null || constraints.debugAssertIsValid()),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:263:9: Error: Expected a declaration, but got ','.
),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:264:8: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
decoration = decoration ?? (color != null ? BoxDecoration(color: color) : null),
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:270:8: Error: Expected an identifier, but got 'super'.
super(key: key);
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:270:8: Error: Expected ';' after this.
super(key: key);
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:270:13: Error: Expected a declaration, but got '('.
super(key: key);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:270:14: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
super(key: key);
^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:270:14: Error: Expected ';' after this.
super(key: key);
^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:270:17: Error: Expected a declaration, but got ':'.
super(key: key);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:270:19: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
super(key: key);
^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:270:19: Error: Expected ';' after this.
super(key: key);
^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:270:19: Error: 'key' is already declared in this scope.
super(key: key);
^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:270:14: Error: Previous declaration of 'key'.
super(key: key);
^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:270:22: Error: Expected a declaration, but got ')'.
super(key: key);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:270:23: Error: Unexpected token ';'.
super(key: key);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:280:16: Error: The final variable 'child' must be initialized.
Try adding an initializer ('= <expression>') to the declaration.
final Widget child;
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:296:27: Error: The final variable 'alignment' must be initialized.
Try adding an initializer ('= <expression>') to the declaration.
final AlignmentGeometry alignment;
^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:303:28: Error: The final variable 'padding' must be initialized.
Try adding an initializer ('= <expression>') to the declaration.
final EdgeInsetsGeometry padding;
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:310:20: Error: The final variable 'decoration' must be initialized.
Try adding an initializer ('= <expression>') to the declaration.
final Decoration decoration;
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:310:20: Error: 'decoration' is already declared in this scope.
final Decoration decoration;
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:264:8: Error: Previous declaration of 'decoration'.
decoration = decoration ?? (color != null ? BoxDecoration(color: color) : null),
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:313:20: Error: The final variable 'foregroundDecoration' must be initialized.
Try adding an initializer ('= <expression>') to the declaration.
final Decoration foregroundDecoration;
^^^^^^^^^^^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:321:24: Error: The final variable 'constraints' must be initialized.
Try adding an initializer ('= <expression>') to the declaration.
final BoxConstraints constraints;
^^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:321:24: Error: 'constraints' is already declared in this scope.
final BoxConstraints constraints;
^^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:265:8: Error: Previous declaration of 'constraints'.
constraints =
^^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:324:28: Error: The final variable 'margin' must be initialized.
Try adding an initializer ('= <expression>') to the declaration.
final EdgeInsetsGeometry margin;
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:327:17: Error: The final variable 'transform' must be initialized.
Try adding an initializer ('= <expression>') to the declaration.
final Matrix4 transform;
^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:391:1: Error: Expected a declaration, but got '}'.
}
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:243:3: Error: Type 'ContainerTextt' not found.
ContainerTextt text, {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:255:5: Error: Can't infer the type of 'this': overridden members must all have the same type.
Specify the type explicitly.
this.child,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:255:5: Error: The return type of the method 'Container::this' is dynamic, which does not match the return type of the overridden method (#lib1::Key).
Change to a subtype of #lib1::Key.
this.child,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:245:5: Error: This is the overridden method ('this').
this.alignment,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The non-abstract class 'Container' is missing implementations for these members:
'build'.
Try to either
- provide an implementation,
- inherit an implementation from a superclass or mixin,
- mark the class as abstract, or
- provide a 'noSuchMethod' implementation.
class Container extends StatelessWidget {
^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/framework.dart:597:10: Error: 'build' is defined here.
Widget build(BuildContext context);
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/about.dart:281:23: Error: No named parameter with the name 'height'.
Container(height: 18.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/about.dart:405:11: Error: No named parameter with the name 'decoration'.
decoration: const BoxDecoration(
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/about.dart:449:17: Error: No named parameter with the name 'height'.
Container(height: 18.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/about.dart:451:17: Error: No named parameter with the name 'height'.
Container(height: 18.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/about.dart:453:17: Error: No named parameter with the name 'height'.
Container(height: 24.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/bottom_navigation_bar.dart:182:9: Error: No named parameter with the name 'margin'.
margin: EdgeInsets.only(
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/bottom_navigation_bar.dart:204:9: Error: No named parameter with the name 'margin'.
margin: const EdgeInsets.only(bottom: _kBottomMargin),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/bottom_navigation_bar.dart:235:9: Error: No named parameter with the name 'margin'.
margin: EdgeInsets.only(
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:195:15: Error: No named parameter with the name 'padding'.
padding: widget.padding,
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:500:29: Error: The method 'getMinIntrinsicWidth' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing method, or defining a method named 'getMinIntrinsicWidth'.
return math.max(child.getMinIntrinsicWidth(height), minSize.width);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:507:29: Error: The method 'getMinIntrinsicHeight' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing method, or defining a method named 'getMinIntrinsicHeight'.
return math.max(child.getMinIntrinsicHeight(width), minSize.height);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:514:29: Error: The method 'getMaxIntrinsicWidth' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing method, or defining a method named 'getMaxIntrinsicWidth'.
return math.max(child.getMaxIntrinsicWidth(height), minSize.width);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:521:29: Error: The method 'getMaxIntrinsicHeight' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing method, or defining a method named 'getMaxIntrinsicHeight'.
return math.max(child.getMaxIntrinsicHeight(width), minSize.height);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:528:20: Error: Can't use 'constraints' because it is declared more than once.
child.layout(constraints, parentUsesSize: true);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:531:14: Error: Can't use 'constraints' because it is declared more than once.
size = constraints.constrain(Size(height, width));
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:528:13: Error: The method 'layout' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing method, or defining a method named 'layout'.
child.layout(constraints, parentUsesSize: true);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:529:44: Error: The getter 'size' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'size'.
final double height = math.max(child.size.width, minSize.width);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:530:43: Error: The getter 'size' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'size'.
final double width = math.max(child.size.height, minSize.height);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:532:51: Error: The getter 'parentData' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'parentData'.
final BoxParentData childParentData = child.parentData;
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:533:74: Error: The getter 'size' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'size'.
childParentData.offset = Alignment.center.alongOffset(size - child.size);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:542:13: Error: The method 'hitTest' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing method, or defining a method named 'hitTest'.
child.hitTest(result, position: child.size.center(Offset.zero));
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:542:45: Error: The getter 'size' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'size'.
child.hitTest(result, position: child.size.center(Offset.zero));
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button_bar.dart:74:11: Error: No named parameter with the name 'padding'.
padding: EdgeInsets.symmetric(horizontal: paddingUnit),
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/card.dart:134:9: Error: No named parameter with the name 'margin'.
margin: margin ?? const EdgeInsets.all(4.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/chip.dart:1452:15: Error: No named parameter with the name 'decoration'.
decoration: ShapeDecoration(
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/chip.dart:1561:18: Error: The method 'hitTest' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing method, or defining a method named 'hitTest'.
return child.hitTest(result, position: Offset(position.dx, size.height / 2));
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/chip.dart:1996:9: Error: Can't use 'constraints' because it is declared more than once.
if (constraints.maxWidth.isFinite) {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/chip.dart:2002:13: Error: Can't use 'constraints' because it is declared more than once.
constraints.maxWidth - iconSizes - theme.labelPadding.horizontal,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/chip.dart:1998:9: Error: Can't use 'constraints' because it is declared more than once.
constraints.copyWith(
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/chip.dart:2090:47: Error: Can't use 'constraints' because it is declared more than once.
final BoxConstraints contentConstraints = constraints.loosen();
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/chip.dart:2213:12: Error: Can't use 'constraints' because it is declared more than once.
size = constraints.constrain(paddedSize);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/chip.dart:2215:24: Error: Can't use 'constraints' because it is declared more than once.
size.height == constraints.constrainHeight(paddedSize.height),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/chip.dart:2217:12: Error: Can't use 'constraints' because it is declared more than once.
'${constraints.constrainWidth(paddedSize.height)}');
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/chip.dart:2219:23: Error: Can't use 'constraints' because it is declared more than once.
size.width == constraints.constrainWidth(paddedSize.width),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/chip.dart:2221:12: Error: Can't use 'constraints' because it is declared more than once.
'${constraints.constrainWidth(paddedSize.width)}');
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/data_table.dart:172:52: Error: No named parameter with the name 'width'.
static final DataCell empty = DataCell(Container(width: 0.0, height: 0.0));
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/data_table.dart:415:7: Error: No named parameter with the name 'padding'.
padding: padding,
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/data_table.dart:468:7: Error: No named parameter with the name 'padding'.
padding: padding,
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/date_picker.dart:155:7: Error: No named parameter with the name 'width'.
width: width,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/date_picker.dart:193:11: Error: No named parameter with the name 'padding'.
padding: const EdgeInsets.symmetric(horizontal: 8.0),
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/date_picker.dart:417:11: Error: No named parameter with the name 'decoration'.
decoration: decoration,
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/date_picker.dart:454:13: Error: No named parameter with the name 'height'.
height: _kDayPickerRowHeight,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/date_picker.dart:988:23: Error: No named parameter with the name 'color'.
color: theme.dialogBackgroundColor,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/date_picker.dart:1011:25: Error: No named parameter with the name 'width'.
width: _kMonthPickerLandscapeWidth,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/divider.dart:102:11: Error: No named parameter with the name 'height'.
height: 0.0,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/drawer.dart:387:28: Error: No named parameter with the name 'width'.
child: Container(width: _kEdgeDragWidth)
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/drawer.dart:409:23: Error: No named parameter with the name 'color'.
color: _color.evaluate(_controller),
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/drawer_header.dart:81:7: Error: No named parameter with the name 'height'.
height: statusBarHeight + _kDrawerHeaderHeight,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/dropdown.dart:160:13: Error: No named parameter with the name 'padding'.
padding: widget.padding,
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/dropdown.dart:419:7: Error: No named parameter with the name 'height'.
height: _kMenuItemHeight,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/dropdown.dart:667:9: Error: No named parameter with the name 'padding'.
padding: padding.resolve(Directionality.of(context)),
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/dropdown.dart:694:15: Error: No named parameter with the name 'height'.
height: 1.0,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/expansion_panel.dart:276:13: Error: No named parameter with the name 'margin'.
margin: const EdgeInsetsDirectional.only(end: 8.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/expansion_panel.dart:293:39: Error: No named parameter with the name 'height'.
firstChild: Container(height: 0.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/expansion_tile.dart:148:7: Error: No named parameter with the name 'decoration'.
decoration: BoxDecoration(
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/flexible_space_bar.dart:201:11: Error: No named parameter with the name 'padding'.
padding: EdgeInsetsDirectional.only(
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/floating_action_button.dart:330:18: Error: Can't use 'constraints' because it is declared more than once.
math.max(constraints.minWidth, math.min(constraints.maxWidth, child.size.width)),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/floating_action_button.dart:330:49: Error: Can't use 'constraints' because it is declared more than once.
math.max(constraints.minWidth, math.min(constraints.maxWidth, child.size.width)),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/floating_action_button.dart:331:18: Error: Can't use 'constraints' because it is declared more than once.
math.max(constraints.minHeight, math.min(constraints.maxHeight, child.size.height)),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/floating_action_button.dart:331:50: Error: Can't use 'constraints' because it is declared more than once.
math.max(constraints.minHeight, math.min(constraints.maxHeight, child.size.height)),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/floating_action_button.dart:335:14: Error: Can't use 'constraints' because it is declared more than once.
size = constraints.biggest;
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/floating_action_button.dart:328:13: Error: The method 'layout' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing method, or defining a method named 'layout'.
child.layout(const BoxConstraints(), parentUsesSize: true);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/floating_action_button.dart:330:77: Error: The getter 'size' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'size'.
math.max(constraints.minWidth, math.min(constraints.maxWidth, child.size.width)),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/floating_action_button.dart:331:79: Error: The getter 'size' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'size'.
math.max(constraints.minHeight, math.min(constraints.maxHeight, child.size.height)),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/grid_tile_bar.dart:120:7: Error: No named parameter with the name 'padding'.
padding: padding,
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/input_decorator.dart:832:45: Error: Can't use 'constraints' because it is declared more than once.
final double inputWidth = math.max(0.0, constraints.maxWidth - (
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/input_decorator.dart:976:52: Error: Can't use 'constraints' because it is declared more than once.
final _RenderDecorationLayout layout = _layout(constraints);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/input_decorator.dart:978:33: Error: Can't use 'constraints' because it is declared more than once.
final double overallWidth = constraints.maxWidth;
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/input_decorator.dart:1119:12: Error: Can't use 'constraints' because it is declared more than once.
size = constraints.constrain(Size(overallWidth, overallHeight));
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/input_decorator.dart:1120:26: Error: Can't use 'constraints' because it is declared more than once.
assert(size.width == constraints.constrainWidth(overallWidth));
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/input_decorator.dart:1121:27: Error: Can't use 'constraints' because it is declared more than once.
assert(size.height == constraints.constrainHeight(overallHeight));
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/list_tile.dart:907:45: Error: Can't use 'constraints' because it is declared more than once.
final BoxConstraints looseConstraints = constraints.loosen();
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/list_tile.dart:993:12: Error: Can't use 'constraints' because it is declared more than once.
size = constraints.constrain(Size(tileWidth, tileHeight));
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/list_tile.dart:994:26: Error: Can't use 'constraints' because it is declared more than once.
assert(size.width == constraints.constrainWidth(tileWidth));
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/list_tile.dart:995:27: Error: Can't use 'constraints' because it is declared more than once.
assert(size.height == constraints.constrainHeight(tileHeight));
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/mergeable_material.dart:54:34: Error: Can't use 'key' because it is declared more than once.
return 'MergeableSlice(key: $key, child: $child)';
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/mergeable_material.dart:75:31: Error: Can't use 'key' because it is declared more than once.
return 'MaterialGap(key: $key, child: $size)';
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/mergeable_material.dart:528:13: Error: No named parameter with the name 'decoration'.
decoration: BoxDecoration(
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/mergeable_material.dart:599:11: Error: No named parameter with the name 'decoration'.
decoration: BoxDecoration(
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/page_transitions_theme.dart:116:15: Error: No named parameter with the name 'color'.
color: Colors.black.withOpacity(opacityAnimation.value),
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/paginated_data_table.dart:338:19: Error: No named parameter with the name 'width'.
Container(width: 14.0), // to match trailing padding in case we overflow and end up scrolling
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/paginated_data_table.dart:358:17: Error: No named parameter with the name 'width'.
Container(width: 32.0),
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/paginated_data_table.dart:367:17: Error: No named parameter with the name 'width'.
Container(width: 32.0),
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/paginated_data_table.dart:374:17: Error: No named parameter with the name 'width'.
Container(width: 24.0),
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/paginated_data_table.dart:381:17: Error: No named parameter with the name 'width'.
Container(width: 14.0),
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/paginated_data_table.dart:436:17: Error: No named parameter with the name 'height'.
height: 56.0,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/popup_menu.dart:267:9: Error: No named parameter with the name 'height'.
height: widget.height,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/popup_menu.dart:441:11: Error: No named parameter with the name 'color'.
color: Theme.of(context).highlightColor,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/progress_indicator.dart:224:7: Error: No named parameter with the name 'constraints'.
constraints: const BoxConstraints.tightFor(
^^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/progress_indicator.dart:401:7: Error: No named parameter with the name 'constraints'.
constraints: const BoxConstraints(
^^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/progress_indicator.dart:551:7: Error: No named parameter with the name 'width'.
width: _indicatorSize,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/refresh_indicator.dart:425:15: Error: No named parameter with the name 'padding'.
padding: _isIndicatorAtTop
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/reorderable_list.dart:430:11: Error: No named parameter with the name 'alignment'.
alignment: Alignment.topLeft,
^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/scaffold.dart:1573:11: Error: No named parameter with the name 'decoration'.
decoration: BoxDecoration(
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/slider.dart:931:7: Error: Can't use 'constraints' because it is declared more than once.
constraints.hasBoundedWidth ? constraints.maxWidth : _preferredTotalWidth,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/slider.dart:931:37: Error: Can't use 'constraints' because it is declared more than once.
constraints.hasBoundedWidth ? constraints.maxWidth : _preferredTotalWidth,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/slider.dart:932:7: Error: Can't use 'constraints' because it is declared more than once.
constraints.hasBoundedHeight ? constraints.maxHeight : _overlayDiameter,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/slider.dart:932:38: Error: Can't use 'constraints' because it is declared more than once.
constraints.hasBoundedHeight ? constraints.maxHeight : _overlayDiameter,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/snack_bar.dart:205:11: Error: No named parameter with the name 'padding'.
padding: const EdgeInsets.symmetric(vertical: _kSingleLineVerticalPadding),
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/snack_bar.dart:289:12: Error: Can't use 'key' because it is declared more than once.
key: key ?? fallbackKey,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:224:7: Error: No named parameter with the name 'width'.
width: visible ? 1.0 : 0.0,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:270:7: Error: No named parameter with the name 'margin'.
margin: const EdgeInsets.symmetric(vertical: 8.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:289:7: Error: No named parameter with the name 'margin'.
margin: const EdgeInsets.symmetric(vertical: 8.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:360:15: Error: No named parameter with the name 'margin'.
margin: const EdgeInsetsDirectional.only(start: 8.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:347:7: Error: No named parameter with the name 'margin'.
margin: const EdgeInsets.only(top: 16.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:431:11: Error: No named parameter with the name 'margin'.
margin: const EdgeInsets.only(top: 2.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:463:13: Error: No named parameter with the name 'margin'.
margin: const EdgeInsetsDirectional.only(start: 12.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:450:7: Error: No named parameter with the name 'margin'.
margin: const EdgeInsets.symmetric(horizontal: 24.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:484:19: Error: No named parameter with the name 'color'.
color: Colors.grey.shade400,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:491:33: Error: No named parameter with the name 'height'.
firstChild: Container(height: 0.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:493:13: Error: No named parameter with the name 'margin'.
margin: const EdgeInsetsDirectional.only(
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:563:17: Error: No named parameter with the name 'height'.
height: 72.0,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:569:17: Error: No named parameter with the name 'margin'.
margin: const EdgeInsetsDirectional.only(start: 12.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:581:15: Error: No named parameter with the name 'margin'.
margin: const EdgeInsets.symmetric(horizontal: 8.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:595:13: Error: No named parameter with the name 'margin'.
margin: const EdgeInsets.symmetric(horizontal: 24.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/tabs.dart:106:13: Error: No named parameter with the name 'child'.
child: icon,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/tabs.dart:905:9: Error: No named parameter with the name 'height'.
height: _kTabHeight + widget.indicatorWeight,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/tabs.dart:1221:7: Error: No named parameter with the name 'width'.
width: size,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/text_selection.dart:52:9: Error: No named parameter with the name 'height'.
height: 44.0,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/time_picker.dart:769:7: Error: No named parameter with the name 'width'.
width: width,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/time_picker.dart:1571:13: Error: No named parameter with the name 'color'.
color: theme.dialogBackgroundColor,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/tooltip.dart:300:19: Error: No named parameter with the name 'decoration'.
decoration: BoxDecoration(
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/two_level_list.dart:199:7: Error: No named parameter with the name 'decoration'.
decoration: BoxDecoration(
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/user_accounts_drawer_header.dart:39:19: Error: No named parameter with the name 'padding'.
padding: const EdgeInsets.only(left: 8.0, bottom: 8.0),
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:243:3: Error: 'ContainerTextt' isn't a type.
ContainerTextt text, {
^^^^^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:256:8: Error: Duplicated name: assert
}) : assert(margin == null || margin.isNonNegative),
^
Compiler failed on C:\Users\Nick\Desktop\music\lib\main.dart
Gradle task assembleDebug failed with exit code 1
Exited (sigterm)"><pre class="notranslate"><code class="notranslate">Launching lib\main.dart on Lenovo A7020a48 in debug mode...
Launching lib\main.dart on Lenovo A7020a48 in debug mode...
Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
Compiler message:
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:243:24: Error: Expected an identifier, but got '{'.
ContainerTextt text, {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:244:5: Error: Expected ';' after this.
Key key,
^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:245:5: Error: Expected an identifier, but got 'this'.
this.alignment,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:245:5: Error: Expected ';' after this.
this.alignment,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:245:9: Error: Expected a class member, but got '.'.
this.alignment,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:245:10: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
this.alignment,
^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:246:5: Error: Expected an identifier, but got 'this'.
this.padding,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:246:5: Error: Expected ';' after this.
this.padding,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:246:5: Error: 'this' is already declared in this scope.
this.padding,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:245:5: Error: Previous declaration of 'this'.
this.alignment,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:246:9: Error: Expected a class member, but got '.'.
this.padding,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:246:10: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
this.padding,
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:247:5: Error: Expected ';' after this.
Color color,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:247:11: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
Color color,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:248:5: Error: Expected ';' after this.
Decoration decoration,
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:248:16: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
Decoration decoration,
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:249:5: Error: Expected an identifier, but got 'this'.
this.foregroundDecoration,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:249:5: Error: Expected ';' after this.
this.foregroundDecoration,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:249:5: Error: 'this' is already declared in this scope.
this.foregroundDecoration,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:246:5: Error: Previous declaration of 'this'.
this.padding,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:249:9: Error: Expected a class member, but got '.'.
this.foregroundDecoration,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:249:10: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
this.foregroundDecoration,
^^^^^^^^^^^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:250:5: Error: Expected ';' after this.
double width,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:250:12: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
double width,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:251:5: Error: Expected ';' after this.
double height,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:251:5: Error: 'double' is already declared in this scope.
double height,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:250:5: Error: Previous declaration of 'double'.
double width,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:251:12: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
double height,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:252:5: Error: Expected ';' after this.
BoxConstraints constraints,
^^^^^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:252:20: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
BoxConstraints constraints,
^^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:253:5: Error: Expected an identifier, but got 'this'.
this.margin,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:253:5: Error: Expected ';' after this.
this.margin,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:253:5: Error: 'this' is already declared in this scope.
this.margin,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:249:5: Error: Previous declaration of 'this'.
this.foregroundDecoration,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:253:9: Error: Expected a class member, but got '.'.
this.margin,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:253:10: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
this.margin,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:254:5: Error: Expected an identifier, but got 'this'.
this.transform,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:254:5: Error: Expected ';' after this.
this.transform,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:254:5: Error: 'this' is already declared in this scope.
this.transform,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:253:5: Error: Previous declaration of 'this'.
this.margin,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:254:9: Error: Expected a class member, but got '.'.
this.transform,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:254:10: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
this.transform,
^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:255:5: Error: Expected an identifier, but got 'this'.
this.child,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:255:5: Error: Expected ';' after this.
this.child,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:255:5: Error: 'this' is already declared in this scope.
this.child,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:254:5: Error: Previous declaration of 'this'.
this.transform,
^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:255:9: Error: Expected a class member, but got '.'.
this.child,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:255:10: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
this.child,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:256:3: Error: Expected an identifier, but got '}'.
}) : assert(margin == null || margin.isNonNegative),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:256:3: Error: Expected ';' after this.
}) : assert(margin == null || margin.isNonNegative),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:256:3: Error: '' is already declared in this scope.
}) : assert(margin == null || margin.isNonNegative),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:244:5: Error: Previous declaration of ''.
Key key,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:256:4: Error: Expected a declaration, but got ')'.
}) : assert(margin == null || margin.isNonNegative),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:256:6: Error: Expected a declaration, but got ':'.
}) : assert(margin == null || margin.isNonNegative),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:256:8: Error: Expected an identifier, but got 'assert'.
}) : assert(margin == null || margin.isNonNegative),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:256:22: Error: Expected ')' before this.
}) : assert(margin == null || margin.isNonNegative),
^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:256:54: Error: Expected '{' before this.
}) : assert(margin == null || margin.isNonNegative),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:256:54: Error: Expected a declaration, but got ','.
}) : assert(margin == null || margin.isNonNegative),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:257:8: Error: Expected an identifier, but got 'assert'.
assert(padding == null || padding.isNonNegative),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:257:23: Error: Expected ')' before this.
assert(padding == null || padding.isNonNegative),
^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:257:56: Error: Expected '{' before this.
assert(padding == null || padding.isNonNegative),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:257:8: Error: 'assert' is already declared in this scope.
assert(padding == null || padding.isNonNegative),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:256:8: Error: Previous declaration of 'assert'.
}) : assert(margin == null || margin.isNonNegative),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:257:56: Error: Expected a declaration, but got ','.
assert(padding == null || padding.isNonNegative),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:258:8: Error: Expected an identifier, but got 'assert'.
assert(decoration == null || decoration.debugAssertIsValid()),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:258:26: Error: Expected ')' before this.
assert(decoration == null || decoration.debugAssertIsValid()),
^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:258:69: Error: Expected '{' before this.
assert(decoration == null || decoration.debugAssertIsValid()),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:258:8: Error: 'assert' is already declared in this scope.
assert(decoration == null || decoration.debugAssertIsValid()),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:257:8: Error: Previous declaration of 'assert'.
assert(padding == null || padding.isNonNegative),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:258:69: Error: Expected a declaration, but got ','.
assert(decoration == null || decoration.debugAssertIsValid()),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:259:8: Error: Expected an identifier, but got 'assert'.
assert(constraints == null || constraints.debugAssertIsValid()),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:259:27: Error: Expected ')' before this.
assert(constraints == null || constraints.debugAssertIsValid()),
^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:259:71: Error: Expected '{' before this.
assert(constraints == null || constraints.debugAssertIsValid()),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:259:8: Error: 'assert' is already declared in this scope.
assert(constraints == null || constraints.debugAssertIsValid()),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:258:8: Error: Previous declaration of 'assert'.
assert(decoration == null || decoration.debugAssertIsValid()),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:259:71: Error: Expected a declaration, but got ','.
assert(constraints == null || constraints.debugAssertIsValid()),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:260:8: Error: Expected an identifier, but got 'assert'.
assert(color == null || decoration == null,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:260:21: Error: Expected ')' before this.
assert(color == null || decoration == null,
^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:263:9: Error: Expected '{' before this.
),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:260:8: Error: 'assert' is already declared in this scope.
assert(color == null || decoration == null,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:259:8: Error: Previous declaration of 'assert'.
assert(constraints == null || constraints.debugAssertIsValid()),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:263:9: Error: Expected a declaration, but got ','.
),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:264:8: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
decoration = decoration ?? (color != null ? BoxDecoration(color: color) : null),
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:270:8: Error: Expected an identifier, but got 'super'.
super(key: key);
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:270:8: Error: Expected ';' after this.
super(key: key);
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:270:13: Error: Expected a declaration, but got '('.
super(key: key);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:270:14: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
super(key: key);
^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:270:14: Error: Expected ';' after this.
super(key: key);
^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:270:17: Error: Expected a declaration, but got ':'.
super(key: key);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:270:19: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
super(key: key);
^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:270:19: Error: Expected ';' after this.
super(key: key);
^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:270:19: Error: 'key' is already declared in this scope.
super(key: key);
^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:270:14: Error: Previous declaration of 'key'.
super(key: key);
^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:270:22: Error: Expected a declaration, but got ')'.
super(key: key);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:270:23: Error: Unexpected token ';'.
super(key: key);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:280:16: Error: The final variable 'child' must be initialized.
Try adding an initializer ('= <expression>') to the declaration.
final Widget child;
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:296:27: Error: The final variable 'alignment' must be initialized.
Try adding an initializer ('= <expression>') to the declaration.
final AlignmentGeometry alignment;
^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:303:28: Error: The final variable 'padding' must be initialized.
Try adding an initializer ('= <expression>') to the declaration.
final EdgeInsetsGeometry padding;
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:310:20: Error: The final variable 'decoration' must be initialized.
Try adding an initializer ('= <expression>') to the declaration.
final Decoration decoration;
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:310:20: Error: 'decoration' is already declared in this scope.
final Decoration decoration;
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:264:8: Error: Previous declaration of 'decoration'.
decoration = decoration ?? (color != null ? BoxDecoration(color: color) : null),
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:313:20: Error: The final variable 'foregroundDecoration' must be initialized.
Try adding an initializer ('= <expression>') to the declaration.
final Decoration foregroundDecoration;
^^^^^^^^^^^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:321:24: Error: The final variable 'constraints' must be initialized.
Try adding an initializer ('= <expression>') to the declaration.
final BoxConstraints constraints;
^^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:321:24: Error: 'constraints' is already declared in this scope.
final BoxConstraints constraints;
^^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:265:8: Error: Previous declaration of 'constraints'.
constraints =
^^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:324:28: Error: The final variable 'margin' must be initialized.
Try adding an initializer ('= <expression>') to the declaration.
final EdgeInsetsGeometry margin;
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:327:17: Error: The final variable 'transform' must be initialized.
Try adding an initializer ('= <expression>') to the declaration.
final Matrix4 transform;
^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:391:1: Error: Expected a declaration, but got '}'.
}
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:243:3: Error: Type 'ContainerTextt' not found.
ContainerTextt text, {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:255:5: Error: Can't infer the type of 'this': overridden members must all have the same type.
Specify the type explicitly.
this.child,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:255:5: Error: The return type of the method 'Container::this' is dynamic, which does not match the return type of the overridden method (#lib1::Key).
Change to a subtype of #lib1::Key.
this.child,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:245:5: Error: This is the overridden method ('this').
this.alignment,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The non-abstract class 'Container' is missing implementations for these members:
'build'.
Try to either
- provide an implementation,
- inherit an implementation from a superclass or mixin,
- mark the class as abstract, or
- provide a 'noSuchMethod' implementation.
class Container extends StatelessWidget {
^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/framework.dart:597:10: Error: 'build' is defined here.
Widget build(BuildContext context);
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/about.dart:281:23: Error: No named parameter with the name 'height'.
Container(height: 18.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/about.dart:405:11: Error: No named parameter with the name 'decoration'.
decoration: const BoxDecoration(
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/about.dart:449:17: Error: No named parameter with the name 'height'.
Container(height: 18.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/about.dart:451:17: Error: No named parameter with the name 'height'.
Container(height: 18.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/about.dart:453:17: Error: No named parameter with the name 'height'.
Container(height: 24.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/bottom_navigation_bar.dart:182:9: Error: No named parameter with the name 'margin'.
margin: EdgeInsets.only(
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/bottom_navigation_bar.dart:204:9: Error: No named parameter with the name 'margin'.
margin: const EdgeInsets.only(bottom: _kBottomMargin),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/bottom_navigation_bar.dart:235:9: Error: No named parameter with the name 'margin'.
margin: EdgeInsets.only(
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:195:15: Error: No named parameter with the name 'padding'.
padding: widget.padding,
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:500:29: Error: The method 'getMinIntrinsicWidth' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing method, or defining a method named 'getMinIntrinsicWidth'.
return math.max(child.getMinIntrinsicWidth(height), minSize.width);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:507:29: Error: The method 'getMinIntrinsicHeight' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing method, or defining a method named 'getMinIntrinsicHeight'.
return math.max(child.getMinIntrinsicHeight(width), minSize.height);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:514:29: Error: The method 'getMaxIntrinsicWidth' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing method, or defining a method named 'getMaxIntrinsicWidth'.
return math.max(child.getMaxIntrinsicWidth(height), minSize.width);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:521:29: Error: The method 'getMaxIntrinsicHeight' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing method, or defining a method named 'getMaxIntrinsicHeight'.
return math.max(child.getMaxIntrinsicHeight(width), minSize.height);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:528:20: Error: Can't use 'constraints' because it is declared more than once.
child.layout(constraints, parentUsesSize: true);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:531:14: Error: Can't use 'constraints' because it is declared more than once.
size = constraints.constrain(Size(height, width));
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:528:13: Error: The method 'layout' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing method, or defining a method named 'layout'.
child.layout(constraints, parentUsesSize: true);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:529:44: Error: The getter 'size' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'size'.
final double height = math.max(child.size.width, minSize.width);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:530:43: Error: The getter 'size' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'size'.
final double width = math.max(child.size.height, minSize.height);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:532:51: Error: The getter 'parentData' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'parentData'.
final BoxParentData childParentData = child.parentData;
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:533:74: Error: The getter 'size' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'size'.
childParentData.offset = Alignment.center.alongOffset(size - child.size);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:542:13: Error: The method 'hitTest' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing method, or defining a method named 'hitTest'.
child.hitTest(result, position: child.size.center(Offset.zero));
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button.dart:542:45: Error: The getter 'size' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'size'.
child.hitTest(result, position: child.size.center(Offset.zero));
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/button_bar.dart:74:11: Error: No named parameter with the name 'padding'.
padding: EdgeInsets.symmetric(horizontal: paddingUnit),
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/card.dart:134:9: Error: No named parameter with the name 'margin'.
margin: margin ?? const EdgeInsets.all(4.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/chip.dart:1452:15: Error: No named parameter with the name 'decoration'.
decoration: ShapeDecoration(
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/chip.dart:1561:18: Error: The method 'hitTest' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing method, or defining a method named 'hitTest'.
return child.hitTest(result, position: Offset(position.dx, size.height / 2));
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/chip.dart:1996:9: Error: Can't use 'constraints' because it is declared more than once.
if (constraints.maxWidth.isFinite) {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/chip.dart:2002:13: Error: Can't use 'constraints' because it is declared more than once.
constraints.maxWidth - iconSizes - theme.labelPadding.horizontal,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/chip.dart:1998:9: Error: Can't use 'constraints' because it is declared more than once.
constraints.copyWith(
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/chip.dart:2090:47: Error: Can't use 'constraints' because it is declared more than once.
final BoxConstraints contentConstraints = constraints.loosen();
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/chip.dart:2213:12: Error: Can't use 'constraints' because it is declared more than once.
size = constraints.constrain(paddedSize);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/chip.dart:2215:24: Error: Can't use 'constraints' because it is declared more than once.
size.height == constraints.constrainHeight(paddedSize.height),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/chip.dart:2217:12: Error: Can't use 'constraints' because it is declared more than once.
'${constraints.constrainWidth(paddedSize.height)}');
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/chip.dart:2219:23: Error: Can't use 'constraints' because it is declared more than once.
size.width == constraints.constrainWidth(paddedSize.width),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/chip.dart:2221:12: Error: Can't use 'constraints' because it is declared more than once.
'${constraints.constrainWidth(paddedSize.width)}');
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/data_table.dart:172:52: Error: No named parameter with the name 'width'.
static final DataCell empty = DataCell(Container(width: 0.0, height: 0.0));
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/data_table.dart:415:7: Error: No named parameter with the name 'padding'.
padding: padding,
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/data_table.dart:468:7: Error: No named parameter with the name 'padding'.
padding: padding,
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/date_picker.dart:155:7: Error: No named parameter with the name 'width'.
width: width,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/date_picker.dart:193:11: Error: No named parameter with the name 'padding'.
padding: const EdgeInsets.symmetric(horizontal: 8.0),
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/date_picker.dart:417:11: Error: No named parameter with the name 'decoration'.
decoration: decoration,
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/date_picker.dart:454:13: Error: No named parameter with the name 'height'.
height: _kDayPickerRowHeight,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/date_picker.dart:988:23: Error: No named parameter with the name 'color'.
color: theme.dialogBackgroundColor,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/date_picker.dart:1011:25: Error: No named parameter with the name 'width'.
width: _kMonthPickerLandscapeWidth,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/divider.dart:102:11: Error: No named parameter with the name 'height'.
height: 0.0,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/drawer.dart:387:28: Error: No named parameter with the name 'width'.
child: Container(width: _kEdgeDragWidth)
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/drawer.dart:409:23: Error: No named parameter with the name 'color'.
color: _color.evaluate(_controller),
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/drawer_header.dart:81:7: Error: No named parameter with the name 'height'.
height: statusBarHeight + _kDrawerHeaderHeight,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/dropdown.dart:160:13: Error: No named parameter with the name 'padding'.
padding: widget.padding,
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/dropdown.dart:419:7: Error: No named parameter with the name 'height'.
height: _kMenuItemHeight,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/dropdown.dart:667:9: Error: No named parameter with the name 'padding'.
padding: padding.resolve(Directionality.of(context)),
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/dropdown.dart:694:15: Error: No named parameter with the name 'height'.
height: 1.0,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/expansion_panel.dart:276:13: Error: No named parameter with the name 'margin'.
margin: const EdgeInsetsDirectional.only(end: 8.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/expansion_panel.dart:293:39: Error: No named parameter with the name 'height'.
firstChild: Container(height: 0.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/expansion_tile.dart:148:7: Error: No named parameter with the name 'decoration'.
decoration: BoxDecoration(
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/flexible_space_bar.dart:201:11: Error: No named parameter with the name 'padding'.
padding: EdgeInsetsDirectional.only(
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/floating_action_button.dart:330:18: Error: Can't use 'constraints' because it is declared more than once.
math.max(constraints.minWidth, math.min(constraints.maxWidth, child.size.width)),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/floating_action_button.dart:330:49: Error: Can't use 'constraints' because it is declared more than once.
math.max(constraints.minWidth, math.min(constraints.maxWidth, child.size.width)),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/floating_action_button.dart:331:18: Error: Can't use 'constraints' because it is declared more than once.
math.max(constraints.minHeight, math.min(constraints.maxHeight, child.size.height)),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/floating_action_button.dart:331:50: Error: Can't use 'constraints' because it is declared more than once.
math.max(constraints.minHeight, math.min(constraints.maxHeight, child.size.height)),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/floating_action_button.dart:335:14: Error: Can't use 'constraints' because it is declared more than once.
size = constraints.biggest;
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/floating_action_button.dart:328:13: Error: The method 'layout' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing method, or defining a method named 'layout'.
child.layout(const BoxConstraints(), parentUsesSize: true);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/floating_action_button.dart:330:77: Error: The getter 'size' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'size'.
math.max(constraints.minWidth, math.min(constraints.maxWidth, child.size.width)),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/floating_action_button.dart:331:79: Error: The getter 'size' isn't defined for the class '#lib1::Widget'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'size'.
math.max(constraints.minHeight, math.min(constraints.maxHeight, child.size.height)),
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/grid_tile_bar.dart:120:7: Error: No named parameter with the name 'padding'.
padding: padding,
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/input_decorator.dart:832:45: Error: Can't use 'constraints' because it is declared more than once.
final double inputWidth = math.max(0.0, constraints.maxWidth - (
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/input_decorator.dart:976:52: Error: Can't use 'constraints' because it is declared more than once.
final _RenderDecorationLayout layout = _layout(constraints);
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/input_decorator.dart:978:33: Error: Can't use 'constraints' because it is declared more than once.
final double overallWidth = constraints.maxWidth;
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/input_decorator.dart:1119:12: Error: Can't use 'constraints' because it is declared more than once.
size = constraints.constrain(Size(overallWidth, overallHeight));
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/input_decorator.dart:1120:26: Error: Can't use 'constraints' because it is declared more than once.
assert(size.width == constraints.constrainWidth(overallWidth));
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/input_decorator.dart:1121:27: Error: Can't use 'constraints' because it is declared more than once.
assert(size.height == constraints.constrainHeight(overallHeight));
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/list_tile.dart:907:45: Error: Can't use 'constraints' because it is declared more than once.
final BoxConstraints looseConstraints = constraints.loosen();
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/list_tile.dart:993:12: Error: Can't use 'constraints' because it is declared more than once.
size = constraints.constrain(Size(tileWidth, tileHeight));
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/list_tile.dart:994:26: Error: Can't use 'constraints' because it is declared more than once.
assert(size.width == constraints.constrainWidth(tileWidth));
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/list_tile.dart:995:27: Error: Can't use 'constraints' because it is declared more than once.
assert(size.height == constraints.constrainHeight(tileHeight));
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/mergeable_material.dart:54:34: Error: Can't use 'key' because it is declared more than once.
return 'MergeableSlice(key: $key, child: $child)';
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/mergeable_material.dart:75:31: Error: Can't use 'key' because it is declared more than once.
return 'MaterialGap(key: $key, child: $size)';
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/mergeable_material.dart:528:13: Error: No named parameter with the name 'decoration'.
decoration: BoxDecoration(
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/mergeable_material.dart:599:11: Error: No named parameter with the name 'decoration'.
decoration: BoxDecoration(
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/page_transitions_theme.dart:116:15: Error: No named parameter with the name 'color'.
color: Colors.black.withOpacity(opacityAnimation.value),
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/paginated_data_table.dart:338:19: Error: No named parameter with the name 'width'.
Container(width: 14.0), // to match trailing padding in case we overflow and end up scrolling
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/paginated_data_table.dart:358:17: Error: No named parameter with the name 'width'.
Container(width: 32.0),
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/paginated_data_table.dart:367:17: Error: No named parameter with the name 'width'.
Container(width: 32.0),
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/paginated_data_table.dart:374:17: Error: No named parameter with the name 'width'.
Container(width: 24.0),
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/paginated_data_table.dart:381:17: Error: No named parameter with the name 'width'.
Container(width: 14.0),
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/paginated_data_table.dart:436:17: Error: No named parameter with the name 'height'.
height: 56.0,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/popup_menu.dart:267:9: Error: No named parameter with the name 'height'.
height: widget.height,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/popup_menu.dart:441:11: Error: No named parameter with the name 'color'.
color: Theme.of(context).highlightColor,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/progress_indicator.dart:224:7: Error: No named parameter with the name 'constraints'.
constraints: const BoxConstraints.tightFor(
^^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/progress_indicator.dart:401:7: Error: No named parameter with the name 'constraints'.
constraints: const BoxConstraints(
^^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/progress_indicator.dart:551:7: Error: No named parameter with the name 'width'.
width: _indicatorSize,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/refresh_indicator.dart:425:15: Error: No named parameter with the name 'padding'.
padding: _isIndicatorAtTop
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/reorderable_list.dart:430:11: Error: No named parameter with the name 'alignment'.
alignment: Alignment.topLeft,
^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/scaffold.dart:1573:11: Error: No named parameter with the name 'decoration'.
decoration: BoxDecoration(
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/slider.dart:931:7: Error: Can't use 'constraints' because it is declared more than once.
constraints.hasBoundedWidth ? constraints.maxWidth : _preferredTotalWidth,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/slider.dart:931:37: Error: Can't use 'constraints' because it is declared more than once.
constraints.hasBoundedWidth ? constraints.maxWidth : _preferredTotalWidth,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/slider.dart:932:7: Error: Can't use 'constraints' because it is declared more than once.
constraints.hasBoundedHeight ? constraints.maxHeight : _overlayDiameter,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/slider.dart:932:38: Error: Can't use 'constraints' because it is declared more than once.
constraints.hasBoundedHeight ? constraints.maxHeight : _overlayDiameter,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/snack_bar.dart:205:11: Error: No named parameter with the name 'padding'.
padding: const EdgeInsets.symmetric(vertical: _kSingleLineVerticalPadding),
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/snack_bar.dart:289:12: Error: Can't use 'key' because it is declared more than once.
key: key ?? fallbackKey,
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:224:7: Error: No named parameter with the name 'width'.
width: visible ? 1.0 : 0.0,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:270:7: Error: No named parameter with the name 'margin'.
margin: const EdgeInsets.symmetric(vertical: 8.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:289:7: Error: No named parameter with the name 'margin'.
margin: const EdgeInsets.symmetric(vertical: 8.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:360:15: Error: No named parameter with the name 'margin'.
margin: const EdgeInsetsDirectional.only(start: 8.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:347:7: Error: No named parameter with the name 'margin'.
margin: const EdgeInsets.only(top: 16.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:431:11: Error: No named parameter with the name 'margin'.
margin: const EdgeInsets.only(top: 2.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:463:13: Error: No named parameter with the name 'margin'.
margin: const EdgeInsetsDirectional.only(start: 12.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:450:7: Error: No named parameter with the name 'margin'.
margin: const EdgeInsets.symmetric(horizontal: 24.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:484:19: Error: No named parameter with the name 'color'.
color: Colors.grey.shade400,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:491:33: Error: No named parameter with the name 'height'.
firstChild: Container(height: 0.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:493:13: Error: No named parameter with the name 'margin'.
margin: const EdgeInsetsDirectional.only(
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:563:17: Error: No named parameter with the name 'height'.
height: 72.0,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:569:17: Error: No named parameter with the name 'margin'.
margin: const EdgeInsetsDirectional.only(start: 12.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:581:15: Error: No named parameter with the name 'margin'.
margin: const EdgeInsets.symmetric(horizontal: 8.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/stepper.dart:595:13: Error: No named parameter with the name 'margin'.
margin: const EdgeInsets.symmetric(horizontal: 24.0),
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/tabs.dart:106:13: Error: No named parameter with the name 'child'.
child: icon,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/tabs.dart:905:9: Error: No named parameter with the name 'height'.
height: _kTabHeight + widget.indicatorWeight,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/tabs.dart:1221:7: Error: No named parameter with the name 'width'.
width: size,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/text_selection.dart:52:9: Error: No named parameter with the name 'height'.
height: 44.0,
^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/time_picker.dart:769:7: Error: No named parameter with the name 'width'.
width: width,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/time_picker.dart:1571:13: Error: No named parameter with the name 'color'.
color: theme.dialogBackgroundColor,
^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/tooltip.dart:300:19: Error: No named parameter with the name 'decoration'.
decoration: BoxDecoration(
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/two_level_list.dart:199:7: Error: No named parameter with the name 'decoration'.
decoration: BoxDecoration(
^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/material/user_accounts_drawer_header.dart:39:19: Error: No named parameter with the name 'padding'.
padding: const EdgeInsets.only(left: 8.0, bottom: 8.0),
^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:233:7: Error: The class 'Container' has a constructor that takes no arguments.
class Container extends StatelessWidget {
^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:243:3: Error: 'ContainerTextt' isn't a type.
ContainerTextt text, {
^^^^^^^^^^^^^^
file:///C:/Users/Nick/flutter/packages/flutter/lib/src/widgets/container.dart:256:8: Error: Duplicated name: assert
}) : assert(margin == null || margin.isNonNegative),
^
Compiler failed on C:\Users\Nick\Desktop\music\lib\main.dart
Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
</code></pre></div> | 0 |
<p dir="auto">Make sure these boxes are checked before submitting your issue - thank you!</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> When we enter a child page , the SVG is drew ; eg: y axis'value like 3.4k , i want it show 3400. Now,i think svg need data it can drew, i track the 'URL', but i can't find the code . where is the component code. how find the ‘configuration parameter’ .</li>
</ul>
<h3 dir="auto">Superset version</h3>
<p dir="auto">0.18.5</p>
<h3 dir="auto">Expected results</h3>
<p dir="auto">y axis'value like 3.4k , need 3400.</p>
<h3 dir="auto">Actual results</h3>
<h3 dir="auto">Steps to reproduce</h3> | <p dir="auto">Is there some way to change the decimal formatting in Table View?</p>
<p dir="auto">Currently 0.532 is formatted as 532m. I would very much welcome a formatting option that would not use M (for 10^6), k (for 10^3) and m (for 10^-3).</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/26468823/24652201/98f80358-1939-11e7-947c-515181ae6caf.JPG"><img src="https://cloud.githubusercontent.com/assets/26468823/24652201/98f80358-1939-11e7-947c-515181ae6caf.JPG" alt="capture" style="max-width: 100%;"></a></p>
<p dir="auto">Superset version: 0.17.0</p> | 1 |
<p dir="auto">I believe opening of non-existance file shoould prompt to create a new file instead of Uncaught Error.</p>
<ol dir="auto">
<li>Open a missing file</li>
<li>PROFIT!</li>
</ol>
<p dir="auto"><strong>Atom Version</strong>: 0.195.0-ecd0444<br>
<strong>System</strong>: linux 3.17.0-sabayon<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Stack Trace</h3>
<p dir="auto">Uncaught Error: ENOENT: no such file or directory, open '/home/v3ss/rethink_latest/tags'</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At events.js:141
Error: ENOENT: no such file or directory, open '/home/v3ss/rethink_latest/tags'
at Error (native)
"><pre class="notranslate"><code class="notranslate">At events.js:141
Error: ENOENT: no such file or directory, open '/home/v3ss/rethink_latest/tags'
at Error (native)
</code></pre></div>
<h3 dir="auto">Commands</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></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="{
"core": {
"disabledPackages": [
"language-ruby-on-rails",
"mobile-preview",
"atom-html-preview",
"color-picker",
"run-command",
"runcoderun",
"script",
"whitespace",
"svg-preview",
"autosave",
"autocomplete-jedi",
"autocomplete-plus-async",
"cute-cursor",
"pulsing-cursor",
"neon-selection",
"pdf-view",
"atom-lint",
"animation-showcase",
"vim-mode",
"tree-view-open-files",
"autocomplete",
"auto-reveal-in-sidebar",
"ease-blink",
"highlight-line",
"minimap-highlight-selected",
"tree-view",
"tabs"
],
"ignoredNames": [
"*.pyc",
"/home/v3ss/workspace/phwa.be/condaenv",
"/home/v3ss/workspace/phwa.be/pypyenv",
"*.zip",
"*.tar",
".hg"
],
"autoHideMenuBar": true,
"audioBeep": false,
"themes": [
"one-dark-pirate-ui",
"neon-pirate"
]
},
"editor": {
"preferredLineLength": 120,
"tabLength": 4,
"confirmCheckoutHeadRevision": false,
"scrollPastEnd": true,
"autoIndentOnPaste": false,
"scrollSensitivity": 80,
"invisibles": {},
"showIndentGuide": true,
"showInvisibles": true,
"softWrap": false,
"fontFamily": "NK57 Monospace",
"fontSize": 11
}
}"><pre class="notranslate">{
<span class="pl-ent">"core"</span>: {
<span class="pl-ent">"disabledPackages"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>language-ruby-on-rails<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>mobile-preview<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>atom-html-preview<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>color-picker<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>run-command<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>runcoderun<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>script<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>whitespace<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>svg-preview<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>autosave<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>autocomplete-jedi<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>autocomplete-plus-async<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>cute-cursor<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>pulsing-cursor<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>neon-selection<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>pdf-view<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>atom-lint<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>animation-showcase<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>vim-mode<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>tree-view-open-files<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>autocomplete<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>auto-reveal-in-sidebar<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>ease-blink<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>highlight-line<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>minimap-highlight-selected<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>tree-view<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>tabs<span class="pl-pds">"</span></span>
],
<span class="pl-ent">"ignoredNames"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>*.pyc<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>/home/v3ss/workspace/phwa.be/condaenv<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>/home/v3ss/workspace/phwa.be/pypyenv<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>*.zip<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>*.tar<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>.hg<span class="pl-pds">"</span></span>
],
<span class="pl-ent">"autoHideMenuBar"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"audioBeep"</span>: <span class="pl-c1">false</span>,
<span class="pl-ent">"themes"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>one-dark-pirate-ui<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>neon-pirate<span class="pl-pds">"</span></span>
]
},
<span class="pl-ent">"editor"</span>: {
<span class="pl-ent">"preferredLineLength"</span>: <span class="pl-c1">120</span>,
<span class="pl-ent">"tabLength"</span>: <span class="pl-c1">4</span>,
<span class="pl-ent">"confirmCheckoutHeadRevision"</span>: <span class="pl-c1">false</span>,
<span class="pl-ent">"scrollPastEnd"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"autoIndentOnPaste"</span>: <span class="pl-c1">false</span>,
<span class="pl-ent">"scrollSensitivity"</span>: <span class="pl-c1">80</span>,
<span class="pl-ent">"invisibles"</span>: {},
<span class="pl-ent">"showIndentGuide"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"showInvisibles"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"softWrap"</span>: <span class="pl-c1">false</span>,
<span class="pl-ent">"fontFamily"</span>: <span class="pl-s"><span class="pl-pds">"</span>NK57 Monospace<span class="pl-pds">"</span></span>,
<span class="pl-ent">"fontSize"</span>: <span class="pl-c1">11</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-color-highlight, v3.0.8
autocomplete-atom-api, v0.8.0
autocomplete-css, v0.6.0
autocomplete-html, v0.5.0
autocomplete-plus, v2.12.0
autocomplete-plus-python-jedi, v0.2.6
block-cursor, v0.12.4
block-travel, v1.0.2
build, v0.29.0
editorconfig, v0.3.3
file-type-icons, v0.5.4
highlight-column, v0.4.0
highlight-selected, v0.9.2
linter, v0.12.1
linter-coffeelint, v0.2.1
linter-csslint, v0.0.11
linter-flake8, v1.4.0
linter-jshint, v0.1.2
linter-tidy, v1.0.0
linter-xmllint, v0.0.5
local-history, v3.1.0
minimap, v4.7.6
minimap-bookmarks, v0.1.0
minimap-find-and-replace, v4.2.0
minimap-selection, v4.2.0
neon-pirate, v0.3.5
one-dark-pirate-ui, v0.6.3
project-palette-finder, v2.4.16
script-runner, v1.7.3
sublime-tabs, v0.5.4
symbols-tree-view, v0.9.2
web-browser, v1.4.4
# Dev
No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span>
atom<span class="pl-k">-</span>color<span class="pl-k">-</span>highlight, v3.<span class="pl-ii">0</span>.<span class="pl-ii">8</span>
autocomplete<span class="pl-k">-</span>atom<span class="pl-k">-</span>api, v0.<span class="pl-ii">8</span>.<span class="pl-ii">0</span>
autocomplete<span class="pl-k">-</span>css, v0.<span class="pl-ii">6</span>.<span class="pl-ii">0</span>
autocomplete<span class="pl-k">-</span>html, v0.<span class="pl-ii">5</span>.<span class="pl-ii">0</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>plus<span class="pl-k">-</span>python<span class="pl-k">-</span>jedi, v0.<span class="pl-ii">2</span>.<span class="pl-ii">6</span>
block<span class="pl-k">-</span>cursor, v0.<span class="pl-ii">12</span>.<span class="pl-ii">4</span>
block<span class="pl-k">-</span>travel, v1.<span class="pl-ii">0</span>.<span class="pl-ii">2</span>
build, v0.<span class="pl-ii">29</span>.<span class="pl-ii">0</span>
editorconfig, v0.<span class="pl-ii">3</span>.<span class="pl-ii">3</span>
file<span class="pl-k">-</span>type<span class="pl-k">-</span>icons, v0.<span class="pl-ii">5</span>.<span class="pl-ii">4</span>
highlight<span class="pl-k">-</span>column, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span>
highlight<span class="pl-k">-</span>selected, v0.<span class="pl-ii">9</span>.<span class="pl-ii">2</span>
linter, v0.<span class="pl-ii">12</span>.<span class="pl-ii">1</span>
linter<span class="pl-k">-</span>coffeelint, v0.<span class="pl-ii">2</span>.<span class="pl-ii">1</span>
linter<span class="pl-k">-</span>csslint, v0.<span class="pl-ii">0</span>.<span class="pl-ii">11</span>
linter<span class="pl-k">-</span>flake8, v1.<span class="pl-ii">4</span>.<span class="pl-ii">0</span>
linter<span class="pl-k">-</span>jshint, v0.<span class="pl-ii">1</span>.<span class="pl-ii">2</span>
linter<span class="pl-k">-</span>tidy, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span>
linter<span class="pl-k">-</span>xmllint, v0.<span class="pl-ii">0</span>.<span class="pl-ii">5</span>
local<span class="pl-k">-</span>history, v3.<span class="pl-ii">1</span>.<span class="pl-ii">0</span>
minimap, v4.<span class="pl-ii">7</span>.<span class="pl-ii">6</span>
minimap<span class="pl-k">-</span>bookmarks, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span>
minimap<span class="pl-k">-</span>find<span class="pl-k">-</span><span class="pl-k">and</span><span class="pl-k">-</span>replace, v4.<span class="pl-ii">2</span>.<span class="pl-ii">0</span>
minimap<span class="pl-k">-</span>selection, v4.<span class="pl-ii">2</span>.<span class="pl-ii">0</span>
neon<span class="pl-k">-</span>pirate, v0.<span class="pl-ii">3</span>.<span class="pl-ii">5</span>
one<span class="pl-k">-</span>dark<span class="pl-k">-</span>pirate<span class="pl-k">-</span>ui, v0.<span class="pl-ii">6</span>.<span class="pl-ii">3</span>
project<span class="pl-k">-</span>palette<span class="pl-k">-</span>finder, v2.<span class="pl-ii">4</span>.<span class="pl-ii">16</span>
script<span class="pl-k">-</span>runner, v1.<span class="pl-ii">7</span>.<span class="pl-ii">3</span>
sublime<span class="pl-k">-</span>tabs, v0.<span class="pl-ii">5</span>.<span class="pl-ii">4</span>
symbols<span class="pl-k">-</span>tree<span class="pl-k">-</span>view, v0.<span class="pl-ii">9</span>.<span class="pl-ii">2</span>
web<span class="pl-k">-</span>browser, v1.<span class="pl-ii">4</span>.<span class="pl-ii">4</span>
<span class="pl-c"><span class="pl-c">#</span> Dev</span>
<span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div> | <p dir="auto">[Enter steps to reproduce below:]</p>
<ol dir="auto">
<li>Invoke atom for non-existent file: <code class="notranslate">atom Dockerfile</code></li>
</ol>
<p dir="auto"><strong>Atom Version</strong>: 0.190.0<br>
<strong>System</strong>: Mac OS X 10.9.5<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Stack Trace</h3>
<p dir="auto">Uncaught Error: ENOENT: no such file or directory, open '/Users/arve/Projects/gradlehub/Dockerfile'</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At events.js:141
Error: ENOENT: no such file or directory, open '/Users/arve/Projects/gradlehub/Dockerfile'
at Error (native)
"><pre class="notranslate"><code class="notranslate">At events.js:141
Error: ENOENT: no such file or directory, open '/Users/arve/Projects/gradlehub/Dockerfile'
at Error (native)
</code></pre></div>
<h3 dir="auto">Commands</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -0:00.5 tree-view:reveal-active-file (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)"><pre class="notranslate"><code class="notranslate"> -0:00.5 tree-view:reveal-active-file (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)
</code></pre></div>
<h3 dir="auto">Config</h3>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"core": {
"ignoredNames": [
".git",
".svn",
".DS_Store"
]
},
"editor": {
"showIndentGuide": true,
"preferredLineLength": 110,
"tabLength": 4,
"softWrapAtPreferredLineLength": true,
"invisibles": {},
"fontSize": 15
}
}"><pre class="notranslate">{
<span class="pl-ent">"core"</span>: {
<span class="pl-ent">"ignoredNames"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>.git<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>.svn<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>.DS_Store<span class="pl-pds">"</span></span>
]
},
<span class="pl-ent">"editor"</span>: {
<span class="pl-ent">"showIndentGuide"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"preferredLineLength"</span>: <span class="pl-c1">110</span>,
<span class="pl-ent">"tabLength"</span>: <span class="pl-c1">4</span>,
<span class="pl-ent">"softWrapAtPreferredLineLength"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"invisibles"</span>: {},
<span class="pl-ent">"fontSize"</span>: <span class="pl-c1">15</span>
}
}</pre></div>
<h3 dir="auto">Installed Packages</h3>
<div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User
Stylus, v0.7.0
atom-lint, v0.20.1
auto-reveal-in-sidebar, v0.4.0
coffee-refactor, v0.6.2
editorconfig, v0.3.3
language-clojure, v0.14.0
language-docker, v1.1.3
language-gradle, v0.0.3
language-haskell, v1.0.0
language-scala, v1.1.0
refactor, v0.4.1
tabs-to-spaces, v0.9.2
# Dev
No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span>
Stylus, v0.<span class="pl-ii">7</span>.<span class="pl-ii">0</span>
atom<span class="pl-k">-</span>lint, v0.<span class="pl-ii">20</span>.<span class="pl-ii">1</span>
auto<span class="pl-k">-</span>reveal<span class="pl-k">-</span><span class="pl-k">in</span><span class="pl-k">-</span>sidebar, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span>
coffee<span class="pl-k">-</span>refactor, v0.<span class="pl-ii">6</span>.<span class="pl-ii">2</span>
editorconfig, v0.<span class="pl-ii">3</span>.<span class="pl-ii">3</span>
language<span class="pl-k">-</span>clojure, v0.<span class="pl-ii">14</span>.<span class="pl-ii">0</span>
language<span class="pl-k">-</span>docker, v1.<span class="pl-ii">1</span>.<span class="pl-ii">3</span>
language<span class="pl-k">-</span>gradle, v0.<span class="pl-ii">0</span>.<span class="pl-ii">3</span>
language<span class="pl-k">-</span>haskell, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span>
language<span class="pl-k">-</span>scala, v1.<span class="pl-ii">1</span>.<span class="pl-ii">0</span>
refactor, v0.<span class="pl-ii">4</span>.<span class="pl-ii">1</span>
tabs<span class="pl-k">-</span>to<span class="pl-k">-</span>spaces, v0.<span class="pl-ii">9</span>.<span class="pl-ii">2</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">In Visual Studio, you can press Ctrl+F5 to launch the application without a debugger attached, which i befinicial for performance reasons. For VS Code this would be very helpful, because you don't always want to actually debug a file or actually cannot because there is no debug adapter extension out there yet. Currently, you have to define a "launch" task, which cannot get a keyboard shortcut. Having "Launch without debugging" would be much more semantically correct.</p>
<ul dir="auto">
<li>Introduce a new action in command palette "Launch without debuggin" with keyboard shortcut Ctrl+F5</li>
<li>If the currently selected configuration has <code class="notranslate">type</code> set, send the debug adapter a <code class="notranslate">launchRequest</code> with the additional argument <code class="notranslate">debug: false</code></li>
<li>Make the debug setting <code class="notranslate">type</code> optional. If a configuration does not have a <code class="notranslate">type</code>, it can only be launched without debugging:
<ul dir="auto">
<li>If <code class="notranslate">runtimeExecutable</code> is set, spawn the runtime executable (java, bash, ...) with the <code class="notranslate">runtimeArguments</code>, <code class="notranslate">program</code> and <code class="notranslate">args</code>.<br>
Otherwise spawn <code class="notranslate">program</code> with <code class="notranslate">args</code> directly (like a .exe or .bat)</li>
<li><code class="notranslate">program</code> should be allowed to drop the file extension (java needs this for example)</li>
<li>Put stdout on the debug console and send input on the debug console to stdin</li>
<li>If <code class="notranslate">externalConsole</code> is true, run the script in an external console</li>
<li>Support <code class="notranslate">preLaunchTask</code></li>
</ul>
</li>
</ul>
<p dir="auto">Examples:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"name": "Run currently open script",
"runtimeExecutable": "bash",
"program": "${file}"
}"><pre class="notranslate">{
<span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>Run currently open script<span class="pl-pds">"</span></span>,
<span class="pl-ent">"runtimeExecutable"</span>: <span class="pl-s"><span class="pl-pds">"</span>bash<span class="pl-pds">"</span></span>,
<span class="pl-ent">"program"</span>: <span class="pl-s"><span class="pl-pds">"</span>${file}<span class="pl-pds">"</span></span>
}</pre></div>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"name": "Launch",
"runtimeExecutable": "java",
"program": "${workspaceRoot}/MyClass",
"preLaunchTask": "compile"
}"><pre class="notranslate">{
<span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>Launch<span class="pl-pds">"</span></span>,
<span class="pl-ent">"runtimeExecutable"</span>: <span class="pl-s"><span class="pl-pds">"</span>java<span class="pl-pds">"</span></span>,
<span class="pl-ent">"program"</span>: <span class="pl-s"><span class="pl-pds">"</span>${workspaceRoot}/MyClass<span class="pl-pds">"</span></span>,
<span class="pl-ent">"preLaunchTask"</span>: <span class="pl-s"><span class="pl-pds">"</span>compile<span class="pl-pds">"</span></span>
}</pre></div> | <p dir="auto">Is there a command that will run my file without opening the debug console and without opening the debug tab?</p> | 1 |
<p dir="auto">A popover with the trigger set to focus does not appear in Safari.</p>
<p dir="auto">Tested on Safari 7.0.6 in OSX 10.9.4<br>
and Safari iOS7</p> | <p dir="auto">I tried to view the dismissible popỏver on my firefox browser - 30.0, mac - 10.8.3, but it was not working,<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3169957/3478467/d3a0a014-0339-11e4-8891-b53c9ffc89a9.png"><img src="https://cloud.githubusercontent.com/assets/3169957/3478467/d3a0a014-0339-11e4-8891-b53c9ffc89a9.png" alt="screen shot 2014-07-04 at 10 38 14 am" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">The following invalid code results in a segfault for me: <code class="notranslate">Set{Array{T}}() where {T<:Float64}</code></p>
<p dir="auto">Full details:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" _
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: https://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.6.0 (2017-06-19 13:05 UTC)
_/ |\__'_|_|_|\__'_| |
|__/ | x86_64-suse-linux
julia> versioninfo()
Julia Version 0.6.0
Commit 903644385b* (2017-06-19 13:05 UTC)
Platform Info:
OS: Linux (x86_64-suse-linux)
CPU: Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz
WORD_SIZE: 64
BLAS: libopenblas (DYNAMIC_ARCH Haswell)
LAPACK: libopenblas_openmp.so.0
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, haswell)
julia> Set{Array{T}}() where {T<:Float64}
signal (11): Segmentation fault
while loading no file, in expression starting on line 0
jl_new_structv at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/datatype.c:679
Type at ./dict.jl:104
jl_call_fptr_internal at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/julia_internal.h:339 [inlined]
jl_call_method_internal at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/julia_internal.h:358 [inlined]
jl_apply_generic at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/gf.c:1933
Type at ./set.jl:6
jl_call_fptr_internal at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/julia_internal.h:339 [inlined]
jl_call_method_internal at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/julia_internal.h:358 [inlined]
jl_apply_generic at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/gf.c:1933
do_call at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/interpreter.c:75
eval at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/interpreter.c:242
do_call at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/interpreter.c:74
eval at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/interpreter.c:242
eval_body at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/interpreter.c:539
jl_interpret_toplevel_thunk at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/interpreter.c:692
jl_toplevel_eval_flex at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/toplevel.c:592
jl_toplevel_eval_in at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/builtins.c:496
eval at ./boot.jl:235
unknown function (ip: 0x7f7dad6574ff)
jl_call_fptr_internal at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/julia_internal.h:339 [inlined]
jl_call_method_internal at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/julia_internal.h:358 [inlined]
jl_apply_generic at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/gf.c:1933
eval_user_input at ./REPL.jl:66
unknown function (ip: 0x7f7dad6ca0ef)
jl_call_fptr_internal at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/julia_internal.h:339 [inlined]
jl_call_method_internal at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/julia_internal.h:358 [inlined]
jl_apply_generic at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/gf.c:1933
macro expansion at ./REPL.jl:97 [inlined]
#1 at ./event.jl:73
unknown function (ip: 0x7f7d90e3155f)
jl_call_fptr_internal at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/julia_internal.h:339 [inlined]
jl_call_method_internal at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/julia_internal.h:358 [inlined]
jl_apply_generic at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/gf.c:1933
jl_apply at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/julia.h:1424 [inlined]
start_task at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/task.c:267
unknown function (ip: 0xffffffffffffffff)
Allocations: 3884938 (Pool: 3883572; Big: 1366); GC: 6
Segmentation fault (core dumped)
"><pre class="notranslate"><code class="notranslate"> _
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: https://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.6.0 (2017-06-19 13:05 UTC)
_/ |\__'_|_|_|\__'_| |
|__/ | x86_64-suse-linux
julia> versioninfo()
Julia Version 0.6.0
Commit 903644385b* (2017-06-19 13:05 UTC)
Platform Info:
OS: Linux (x86_64-suse-linux)
CPU: Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz
WORD_SIZE: 64
BLAS: libopenblas (DYNAMIC_ARCH Haswell)
LAPACK: libopenblas_openmp.so.0
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, haswell)
julia> Set{Array{T}}() where {T<:Float64}
signal (11): Segmentation fault
while loading no file, in expression starting on line 0
jl_new_structv at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/datatype.c:679
Type at ./dict.jl:104
jl_call_fptr_internal at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/julia_internal.h:339 [inlined]
jl_call_method_internal at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/julia_internal.h:358 [inlined]
jl_apply_generic at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/gf.c:1933
Type at ./set.jl:6
jl_call_fptr_internal at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/julia_internal.h:339 [inlined]
jl_call_method_internal at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/julia_internal.h:358 [inlined]
jl_apply_generic at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/gf.c:1933
do_call at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/interpreter.c:75
eval at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/interpreter.c:242
do_call at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/interpreter.c:74
eval at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/interpreter.c:242
eval_body at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/interpreter.c:539
jl_interpret_toplevel_thunk at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/interpreter.c:692
jl_toplevel_eval_flex at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/toplevel.c:592
jl_toplevel_eval_in at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/builtins.c:496
eval at ./boot.jl:235
unknown function (ip: 0x7f7dad6574ff)
jl_call_fptr_internal at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/julia_internal.h:339 [inlined]
jl_call_method_internal at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/julia_internal.h:358 [inlined]
jl_apply_generic at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/gf.c:1933
eval_user_input at ./REPL.jl:66
unknown function (ip: 0x7f7dad6ca0ef)
jl_call_fptr_internal at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/julia_internal.h:339 [inlined]
jl_call_method_internal at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/julia_internal.h:358 [inlined]
jl_apply_generic at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/gf.c:1933
macro expansion at ./REPL.jl:97 [inlined]
#1 at ./event.jl:73
unknown function (ip: 0x7f7d90e3155f)
jl_call_fptr_internal at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/julia_internal.h:339 [inlined]
jl_call_method_internal at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/julia_internal.h:358 [inlined]
jl_apply_generic at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/gf.c:1933
jl_apply at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/julia.h:1424 [inlined]
start_task at /home/abuild/rpmbuild/BUILD/julia-0.6.0/src/task.c:267
unknown function (ip: 0xffffffffffffffff)
Allocations: 3884938 (Pool: 3883572; Big: 1366); GC: 6
Segmentation fault (core dumped)
</code></pre></div> | <h2 dir="auto">background</h2>
<p dir="auto">Somebody in Chinese Julia community wants to <a href="http://discourse.juliacn.com/t/topic/717?u=woclass" rel="nofollow">implement a STMonad in Julia</a>, and he found this bug.</p>
<p dir="auto">And I found that this code in julia 0.6.4 only cause a error, Julia also suggest that this code use a deprecated syntax. But in Julia 1.0 this cause a crash.</p>
<h2 dir="auto">Error info</h2>
<h3 dir="auto">v 1.0.0</h3>
<p dir="auto">minimal reproducible example</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct STMonad{A,B}
function STMonad()
new{S,Ref{S}}() where S
end
end
STMonad()"><pre class="notranslate"><span class="pl-k">struct</span> STMonad{A,B}
<span class="pl-k">function</span> <span class="pl-en">STMonad</span>()
<span class="pl-c1">new</span><span class="pl-c1">{S,Ref{S}}</span>() <span class="pl-k">where</span> S
<span class="pl-k">end</span>
<span class="pl-k">end</span>
<span class="pl-c1">STMonad</span>()</pre></div>
<p dir="auto">Julia info</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> versioninfo()
Julia Version 1.0.0
Commit 5d4eaca0c9 (2018-08-08 20:58 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.0 (ORCJIT, broadwell)"><pre class="notranslate"><code class="notranslate">julia> versioninfo()
Julia Version 1.0.0
Commit 5d4eaca0c9 (2018-08-08 20:58 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.0 (ORCJIT, broadwell)
</code></pre></div>
<p dir="auto">output</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PS C:\Users\woclass\Desktop\`del> C:\Users\woclass\AppData\Local\Julia-1.0.0\bin\julia.exe .\STMonad.jl
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x6b5cf117 -- jl_new_structv at /home/Administrator/buildbot/worker/package_win64/build/src\datatype.c:774
in expression starting at C:\Users\woclass\Desktop\`del\STMonad.jl:7
jl_set_nth_field at /home/Administrator/buildbot/worker/package_win64/build/src\datatype.c:889 [inlined]
jl_new_structv at /home/Administrator/buildbot/worker/package_win64/build/src\datatype.c:781
Type at C:\Users\woclass\Desktop\`del\STMonad.jl:3
jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1829
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2182
do_call at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:324
eval_value at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:428
eval_stmt_value at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:363 [inlined]
eval_body at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:682
jl_interpret_toplevel_thunk_callback at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:799
unknown function (ip: FFFFFFFFFFFFFFFE)
unknown function (ip: 000000000EB4522F)
unknown function (ip: FFFFFFFFFFFFFFFF)
jl_toplevel_eval_flex at /home/Administrator/buildbot/worker/package_win64/build/src\toplevel.c:787
jl_parse_eval_all at /home/Administrator/buildbot/worker/package_win64/build/src\ast.c:838
jl_load at /home/Administrator/buildbot/worker/package_win64/build/src\toplevel.c:821 [inlined]
jl_load_ at /home/Administrator/buildbot/worker/package_win64/build/src\toplevel.c:828
include at .\boot.jl:317 [inlined]
include_relative at .\loading.jl:1038
include at .\sysimg.jl:29
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2182
exec_options at .\client.jl:229
_start at .\client.jl:421
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2182
jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src\julia.h:1536 [inlined]
true_main at /home/Administrator/buildbot/worker/package_win64/build/ui\repl.c:112
wmain at /home/Administrator/buildbot/worker/package_win64/build/ui\repl.c:233
__tmainCRTStartup at /usr/src/debug/mingw64-x86_64-runtime-5.0.3-1/crt\crtexe.c:329
mainCRTStartup at /usr/src/debug/mingw64-x86_64-runtime-5.0.3-1/crt\crtexe.c:212
BaseThreadInitThunk at C:\WINDOWS\System32\KERNEL32.DLL (unknown line)
RtlUserThreadStart at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
Allocations: 5974 (Pool: 5964; Big: 10); GC: 0"><pre class="notranslate"><code class="notranslate">PS C:\Users\woclass\Desktop\`del> C:\Users\woclass\AppData\Local\Julia-1.0.0\bin\julia.exe .\STMonad.jl
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x6b5cf117 -- jl_new_structv at /home/Administrator/buildbot/worker/package_win64/build/src\datatype.c:774
in expression starting at C:\Users\woclass\Desktop\`del\STMonad.jl:7
jl_set_nth_field at /home/Administrator/buildbot/worker/package_win64/build/src\datatype.c:889 [inlined]
jl_new_structv at /home/Administrator/buildbot/worker/package_win64/build/src\datatype.c:781
Type at C:\Users\woclass\Desktop\`del\STMonad.jl:3
jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1829
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2182
do_call at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:324
eval_value at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:428
eval_stmt_value at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:363 [inlined]
eval_body at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:682
jl_interpret_toplevel_thunk_callback at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:799
unknown function (ip: FFFFFFFFFFFFFFFE)
unknown function (ip: 000000000EB4522F)
unknown function (ip: FFFFFFFFFFFFFFFF)
jl_toplevel_eval_flex at /home/Administrator/buildbot/worker/package_win64/build/src\toplevel.c:787
jl_parse_eval_all at /home/Administrator/buildbot/worker/package_win64/build/src\ast.c:838
jl_load at /home/Administrator/buildbot/worker/package_win64/build/src\toplevel.c:821 [inlined]
jl_load_ at /home/Administrator/buildbot/worker/package_win64/build/src\toplevel.c:828
include at .\boot.jl:317 [inlined]
include_relative at .\loading.jl:1038
include at .\sysimg.jl:29
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2182
exec_options at .\client.jl:229
_start at .\client.jl:421
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2182
jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src\julia.h:1536 [inlined]
true_main at /home/Administrator/buildbot/worker/package_win64/build/ui\repl.c:112
wmain at /home/Administrator/buildbot/worker/package_win64/build/ui\repl.c:233
__tmainCRTStartup at /usr/src/debug/mingw64-x86_64-runtime-5.0.3-1/crt\crtexe.c:329
mainCRTStartup at /usr/src/debug/mingw64-x86_64-runtime-5.0.3-1/crt\crtexe.c:212
BaseThreadInitThunk at C:\WINDOWS\System32\KERNEL32.DLL (unknown line)
RtlUserThreadStart at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
Allocations: 5974 (Pool: 5964; Big: 10); GC: 0
</code></pre></div>
<h3 dir="auto">v 0.6.4</h3>
<p dir="auto">And in Juliua 0.6.4 this code just cause a MethodError, not a crash.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> struct STMonad{A, B}
function STMonad()
new{S, Ref{S}}() where S
end
end
WARNING: deprecated syntax "inner constructor STMonad(...) around REPL[1]:3".
Use "STMonad{A,B}(...) where {A,B}" instead.
julia> STMonad()
ERROR: MethodError: no method matching STMonad()"><pre class="notranslate"><code class="notranslate">julia> struct STMonad{A, B}
function STMonad()
new{S, Ref{S}}() where S
end
end
WARNING: deprecated syntax "inner constructor STMonad(...) around REPL[1]:3".
Use "STMonad{A,B}(...) where {A,B}" instead.
julia> STMonad()
ERROR: MethodError: no method matching STMonad()
</code></pre></div> | 1 |
<p dir="auto">I have some spare time.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mrdoob/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mrdoob">@mrdoob</a> is it something you want in three.js ?</p>
<p dir="auto">On CPU:<br>
<a href="http://cgit.freedesktop.org/mesa/mesa/tree/src/glu/sgi/libnurbs/interface/glinterface.cc?h=8.0" rel="nofollow">http://cgit.freedesktop.org/mesa/mesa/tree/src/glu/sgi/libnurbs/interface/glinterface.cc?h=8.0</a> ( restrictive license )<br>
<a href="https://svn.blender.org/svnroot/bf-blender/trunk/blender/source/blender/blenkernel/intern/curve.c" rel="nofollow">https://svn.blender.org/svnroot/bf-blender/trunk/blender/source/blender/blenkernel/intern/curve.c</a> ( GPL )<br>
<a href="http://www.nar-associates.com/nurbs/c_code.html" rel="nofollow">http://www.nar-associates.com/nurbs/c_code.html</a> ( copyright, non commercial reuse ok )</p>
<p dir="auto">On GPU:<br>
<a href="http://kingkong.me.berkeley.edu/~adarsh/Papers/CAD09.pdf" rel="nofollow">http://kingkong.me.berkeley.edu/~adarsh/Papers/CAD09.pdf</a><br>
10 X faster<br>
but high setup cost</p> | <p dir="auto">This is something I have been struggling with for a while. Three.js doesn't manage your assets very well. It creates duplicates, specifically my problem is with duplication of textures and materials.</p>
<p dir="auto">When you load a texture - you get a brand new <code class="notranslate">Texture</code> object, the <code class="notranslate">TextureLoader</code> under the hood uses <code class="notranslate">Cache</code>, which is a global singleton, meaning that everything that you ever load will be in <code class="notranslate">Cache</code>. There is no eviction, meaning that it's very possible to leak memory here if you're loading dynamic things, like say, if you created a model viewer or an editor of some kind, user loads different models over and over again, and <code class="notranslate">Cache</code> just retains all of that. As a user you have just 2 options here:</p>
<ol dir="auto">
<li>Hunt down specific object and use <code class="notranslate">Cache.remove(key)</code>, or</li>
<li>Use <code class="notranslate">Cache.clear()</code> which is a nuclear option that results in removal of everything in cache</li>
</ol>
<p dir="auto">The <code class="notranslate">Cache</code> is a key-value store, which is not so much of an issue, but it gets used with URL of an asset being loaded as the key - this means that given a URL - you can only ever have 1 representation of the data under that URL. Imagine following scenario:</p>
<p dir="auto">You loaded a texture "happy-cat.png" using <code class="notranslate">TextureLoader</code>, then, down the road, you want to access binary data of the PNG specifically to parse it using some PNG library, suppose you want to access metadata stored in there, such as user name, palette, creation date, creation software etc. So, you use <code class="notranslate">FileLoader</code>. <code class="notranslate">FileLoader</code> uses same <code class="notranslate">Cache</code>, and it will also use the same url ("happy-cat.png") to access the <code class="notranslate">Cache</code>, so it will return you, not a "bytearray" like you asked, but, in fact, a DOM Image. There are more scenarios where this can happen and be an issue. As a minimum, an Asset <code class="notranslate">Cache</code> needs to be able to distinguish typed of Assets and store data from the same source in multiple representations, such as Image and <code class="notranslate">ByteArray</code>.</p>
<p dir="auto">Suppose you are Ms Smarty-Pants and you decided to take all the models in your scene and pack textures for those into a single image, this way you can reduce texture switching to 0! That's crazy good, right? Well... When you load your models, say "Tree", "House" and "Cat" - each of these models will get a new Material, even if that said Material will be identical in your case. Each of these Materials will get its own new Texture, and that means that there will be 3 unique copies of that carefully packed image loaded to the GPU for your scene. Here's the relevant piece of code:<br>
</p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/mrdoob/three.js/blob/733eb1d58bd70a7e161f3ced21093f186f0e8b9f/src/renderers/webgl/WebGLTextures.js#L294-L324">three.js/src/renderers/webgl/WebGLTextures.js</a>
</p>
<p class="mb-0 color-fg-muted">
Lines 294 to 324
in
<a data-pjax="true" class="commit-tease-sha" href="/mrdoob/three.js/commit/733eb1d58bd70a7e161f3ced21093f186f0e8b9f">733eb1d</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="L294" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="294"></td>
<td id="LC294" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">function</span> <span class="pl-en">setTexture2D</span><span class="pl-kos">(</span> <span class="pl-s1">texture</span><span class="pl-kos">,</span> <span class="pl-s1">slot</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span> </td>
</tr>
<tr class="border-0">
<td id="L295" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="295"></td>
<td id="LC295" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L296" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="296"></td>
<td id="LC296" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">var</span> <span class="pl-s1">textureProperties</span> <span class="pl-c1">=</span> <span class="pl-s1">properties</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span> <span class="pl-s1">texture</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> </td>
</tr>
<tr class="border-0">
<td id="L297" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="297"></td>
<td id="LC297" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L298" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="298"></td>
<td id="LC298" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-kos">(</span> <span class="pl-s1">texture</span><span class="pl-kos">.</span><span class="pl-c1">isVideoTexture</span> <span class="pl-kos">)</span> <span class="pl-en">updateVideoTexture</span><span class="pl-kos">(</span> <span class="pl-s1">texture</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> </td>
</tr>
<tr class="border-0">
<td id="L299" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="299"></td>
<td id="LC299" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L300" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="300"></td>
<td id="LC300" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-kos">(</span> <span class="pl-s1">texture</span><span class="pl-kos">.</span><span class="pl-c1">version</span> <span class="pl-c1">></span> <span class="pl-c1">0</span> <span class="pl-c1">&&</span> <span class="pl-s1">textureProperties</span><span class="pl-kos">.</span><span class="pl-c1">__version</span> <span class="pl-c1">!==</span> <span class="pl-s1">texture</span><span class="pl-kos">.</span><span class="pl-c1">version</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span> </td>
</tr>
<tr class="border-0">
<td id="L301" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="301"></td>
<td id="LC301" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L302" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="302"></td>
<td id="LC302" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">var</span> <span class="pl-s1">image</span> <span class="pl-c1">=</span> <span class="pl-s1">texture</span><span class="pl-kos">.</span><span class="pl-c1">image</span><span class="pl-kos">;</span> </td>
</tr>
<tr class="border-0">
<td id="L303" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="303"></td>
<td id="LC303" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L304" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="304"></td>
<td id="LC304" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-kos">(</span> <span class="pl-s1">image</span> <span class="pl-c1">===</span> <span class="pl-c1">undefined</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span> </td>
</tr>
<tr class="border-0">
<td id="L305" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="305"></td>
<td id="LC305" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L306" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="306"></td>
<td id="LC306" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">warn</span><span class="pl-kos">(</span> <span class="pl-s">'THREE.WebGLRenderer: Texture marked for update but image is undefined'</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> </td>
</tr>
<tr class="border-0">
<td id="L307" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="307"></td>
<td id="LC307" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L308" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="308"></td>
<td id="LC308" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-k">if</span> <span class="pl-kos">(</span> <span class="pl-s1">image</span><span class="pl-kos">.</span><span class="pl-c1">complete</span> <span class="pl-c1">===</span> <span class="pl-c1">false</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span> </td>
</tr>
<tr class="border-0">
<td id="L309" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="309"></td>
<td id="LC309" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L310" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="310"></td>
<td id="LC310" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">warn</span><span class="pl-kos">(</span> <span class="pl-s">'THREE.WebGLRenderer: Texture marked for update but image is incomplete'</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> </td>
</tr>
<tr class="border-0">
<td id="L311" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="311"></td>
<td id="LC311" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L312" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="312"></td>
<td id="LC312" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> </td>
</tr>
<tr class="border-0">
<td id="L313" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="313"></td>
<td id="LC313" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L314" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="314"></td>
<td id="LC314" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en">uploadTexture</span><span class="pl-kos">(</span> <span class="pl-s1">textureProperties</span><span class="pl-kos">,</span> <span class="pl-s1">texture</span><span class="pl-kos">,</span> <span class="pl-s1">slot</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> </td>
</tr>
<tr class="border-0">
<td id="L315" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="315"></td>
<td id="LC315" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span><span class="pl-kos">;</span> </td>
</tr>
<tr class="border-0">
<td id="L316" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="316"></td>
<td id="LC316" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L317" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="317"></td>
<td id="LC317" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">}</span> </td>
</tr>
<tr class="border-0">
<td id="L318" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="318"></td>
<td id="LC318" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L319" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="319"></td>
<td id="LC319" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">}</span> </td>
</tr>
<tr class="border-0">
<td id="L320" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="320"></td>
<td id="LC320" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L321" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="321"></td>
<td id="LC321" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">state</span><span class="pl-kos">.</span><span class="pl-en">activeTexture</span><span class="pl-kos">(</span> <span class="pl-s1">_gl</span><span class="pl-kos">.</span><span class="pl-c1">TEXTURE0</span> <span class="pl-c1">+</span> <span class="pl-s1">slot</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> </td>
</tr>
<tr class="border-0">
<td id="L322" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="322"></td>
<td id="LC322" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">state</span><span class="pl-kos">.</span><span class="pl-en">bindTexture</span><span class="pl-kos">(</span> <span class="pl-s1">_gl</span><span class="pl-kos">.</span><span class="pl-c1">TEXTURE_2D</span><span class="pl-kos">,</span> <span class="pl-s1">textureProperties</span><span class="pl-kos">.</span><span class="pl-c1">__webglTexture</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> </td>
</tr>
<tr class="border-0">
<td id="L323" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="323"></td>
<td id="LC323" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L324" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="324"></td>
<td id="LC324" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">}</span> </td>
</tr>
</tbody></table>
</div>
</div>
<br>
As you can see, "uploadTexture" happens based on texture.version, it doesn't care that this texture is exactly the same as another texture that we already have in memory.<p></p>
<p dir="auto">I am ashamed to admit that I was that Mr Smarty-Pants, and only caught this when doing performance profiling today. I found out that my image is being decoded multiple times and is being uploaded to the GPU multiple times, here's a helpful piece of code to identify such cases that you can put around the "uloadTexture":</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if (!texture.isDataTexture && texture.image !== undefined && texture.image.src) {
console.time("Loading Texture " + texture.image.src);
}
uploadTexture(textureProperties, texture, slot);
if (!texture.isDataTexture && texture.image !== undefined && texture.image.src) {
console.timeEnd("Loading Texture " + texture.image.src);
console.log(textureProperties, texture, slot);
}"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-s1">texture</span><span class="pl-kos">.</span><span class="pl-c1">isDataTexture</span> <span class="pl-c1">&&</span> <span class="pl-s1">texture</span><span class="pl-kos">.</span><span class="pl-c1">image</span> <span class="pl-c1">!==</span> <span class="pl-c1">undefined</span> <span class="pl-c1">&&</span> <span class="pl-s1">texture</span><span class="pl-kos">.</span><span class="pl-c1">image</span><span class="pl-kos">.</span><span class="pl-c1">src</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">time</span><span class="pl-kos">(</span><span class="pl-s">"Loading Texture "</span> <span class="pl-c1">+</span> <span class="pl-s1">texture</span><span class="pl-kos">.</span><span class="pl-c1">image</span><span class="pl-kos">.</span><span class="pl-c1">src</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">uploadTexture</span><span class="pl-kos">(</span><span class="pl-s1">textureProperties</span><span class="pl-kos">,</span> <span class="pl-s1">texture</span><span class="pl-kos">,</span> <span class="pl-s1">slot</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-s1">texture</span><span class="pl-kos">.</span><span class="pl-c1">isDataTexture</span> <span class="pl-c1">&&</span> <span class="pl-s1">texture</span><span class="pl-kos">.</span><span class="pl-c1">image</span> <span class="pl-c1">!==</span> <span class="pl-c1">undefined</span> <span class="pl-c1">&&</span> <span class="pl-s1">texture</span><span class="pl-kos">.</span><span class="pl-c1">image</span><span class="pl-kos">.</span><span class="pl-c1">src</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">timeEnd</span><span class="pl-kos">(</span><span class="pl-s">"Loading Texture "</span> <span class="pl-c1">+</span> <span class="pl-s1">texture</span><span class="pl-kos">.</span><span class="pl-c1">image</span><span class="pl-kos">.</span><span class="pl-c1">src</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">textureProperties</span><span class="pl-kos">,</span> <span class="pl-s1">texture</span><span class="pl-kos">,</span> <span class="pl-s1">slot</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">I propose that there should be a way to reuse static textures, one way to do that would be to de-couple the <code class="notranslate">Texture</code> Data from <code class="notranslate">Texture</code> Settings and use equality checks (with hashing to make things faster). Similar approach could be applied for <code class="notranslate">Material</code>s too, we'd be able to clean up some of the code that does something functionally similar for materials currently (when compiling shaders).</p> | 0 |
<p dir="auto">The following code fails with an error (<code class="notranslate">numpy.linalg.LinAlgError: SVD did not converge</code>). This occurs if:</p>
<ul dir="auto">
<li>there is this unused import (<code class="notranslate">import scipy.linalg</code>)</li>
<li>a modulo operation is performed (<code class="notranslate">x1 % 2</code>)</li>
</ul>
<p dir="auto">This is unexpcected to me, because the modulo operation shouldn't have any side effects, but even copying the vector won't help.</p>
<p dir="auto">Another interesting observation is that only the first excecution of <code class="notranslate">np.random.multivariate_normal</code> fails. As a workaround I could just catch the first exception and run it again:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="try:
sample = np.random.multivariate_normal(np.zeros(len(points)), cov)
except np.linalg.LinAlgError as e:
print("First try failed:", e)
sample = np.random.multivariate_normal(np.zeros(len(points)), cov)"><pre class="notranslate"><span class="pl-k">try</span>:
<span class="pl-s1">sample</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">multivariate_normal</span>(<span class="pl-s1">np</span>.<span class="pl-en">zeros</span>(<span class="pl-en">len</span>(<span class="pl-s1">points</span>)), <span class="pl-s1">cov</span>)
<span class="pl-k">except</span> <span class="pl-s1">np</span>.<span class="pl-s1">linalg</span>.<span class="pl-v">LinAlgError</span> <span class="pl-k">as</span> <span class="pl-s1">e</span>:
<span class="pl-en">print</span>(<span class="pl-s">"First try failed:"</span>, <span class="pl-s1">e</span>)
<span class="pl-s1">sample</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">multivariate_normal</span>(<span class="pl-s1">np</span>.<span class="pl-en">zeros</span>(<span class="pl-en">len</span>(<span class="pl-s1">points</span>)), <span class="pl-s1">cov</span>)</pre></div>
<p dir="auto">I was able to reproduce this error another windows pc with anaconda python, but not on linux.</p>
<h3 dir="auto">Reproducing code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
# this unused import is important to reproduce the weird side effect of modulo calculation
import scipy.linalg
def k(x1, x2):
base = np.pi * (x1[:, None, :] - x2[None, :, :])
exp_dist = np.exp(-0.5 * np.sum(np.square(np.sin(base)), axis=-1))
# the following statement shouldn't have any side effects
x1 % 2
#np.mod(x1, 2)
#np.mod(x1.copy(), 2)
return exp_dist
n = 10
points = np.atleast_2d(np.linspace(0, 360, 10)).T
cov = k(points, points)
np.random.multivariate_normal(np.zeros(len(points)), cov)"><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-c"># this unused import is important to reproduce the weird side effect of modulo calculation</span>
<span class="pl-k">import</span> <span class="pl-s1">scipy</span>.<span class="pl-s1">linalg</span>
<span class="pl-k">def</span> <span class="pl-en">k</span>(<span class="pl-s1">x1</span>, <span class="pl-s1">x2</span>):
<span class="pl-s1">base</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">pi</span> <span class="pl-c1">*</span> (<span class="pl-s1">x1</span>[:, <span class="pl-c1">None</span>, :] <span class="pl-c1">-</span> <span class="pl-s1">x2</span>[<span class="pl-c1">None</span>, :, :])
<span class="pl-s1">exp_dist</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">exp</span>(<span class="pl-c1">-</span><span class="pl-c1">0.5</span> <span class="pl-c1">*</span> <span class="pl-s1">np</span>.<span class="pl-en">sum</span>(<span class="pl-s1">np</span>.<span class="pl-en">square</span>(<span class="pl-s1">np</span>.<span class="pl-en">sin</span>(<span class="pl-s1">base</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-c"># the following statement shouldn't have any side effects</span>
<span class="pl-s1">x1</span> <span class="pl-c1">%</span> <span class="pl-c1">2</span>
<span class="pl-c">#np.mod(x1, 2)</span>
<span class="pl-c">#np.mod(x1.copy(), 2)</span>
<span class="pl-k">return</span> <span class="pl-s1">exp_dist</span>
<span class="pl-s1">n</span> <span class="pl-c1">=</span> <span class="pl-c1">10</span>
<span class="pl-s1">points</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">atleast_2d</span>(<span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">0</span>, <span class="pl-c1">360</span>, <span class="pl-c1">10</span>)).<span class="pl-v">T</span>
<span class="pl-s1">cov</span> <span class="pl-c1">=</span> <span class="pl-en">k</span>(<span class="pl-s1">points</span>, <span class="pl-s1">points</span>)
<span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">multivariate_normal</span>(<span class="pl-s1">np</span>.<span class="pl-en">zeros</span>(<span class="pl-en">len</span>(<span class="pl-s1">points</span>)), <span class="pl-s1">cov</span>)</pre></div>
<h3 dir="auto">Error message:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "C:\Users\user\PycharmProjects\fg-localization\other\weird_behavior.py", line 21, in <module>
np.random.multivariate_normal(np.zeros(len(points)), cov)
File "mtrand.pyx", line 4084, in numpy.random.mtrand.RandomState.multivariate_normal
File "C:\Users\user\Anaconda3\envs\fg-localization\lib\site-packages\scipy\linalg\decomp_svd.py", line 132, in svd
raise LinAlgError("SVD did not converge")
numpy.linalg.LinAlgError: SVD did not converge"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "C:\Users\user\PycharmProjects\fg-localization\other\weird_behavior.py", line 21, in <module>
np.random.multivariate_normal(np.zeros(len(points)), cov)
File "mtrand.pyx", line 4084, in numpy.random.mtrand.RandomState.multivariate_normal
File "C:\Users\user\Anaconda3\envs\fg-localization\lib\site-packages\scipy\linalg\decomp_svd.py", line 132, in svd
raise LinAlgError("SVD did not converge")
numpy.linalg.LinAlgError: SVD did not converge
</code></pre></div>
<h3 dir="auto">Numpy/Python version information:</h3>
<p dir="auto">Fails on windows with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1.19.1 3.7.6 (default, Jan 8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)]"><pre class="notranslate"><code class="notranslate">1.19.1 3.7.6 (default, Jan 8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)]
</code></pre></div>
<p dir="auto">Runs on linux with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1.19.1 3.6.9 (default, Jul 17 2020, 12:50:27)
[GCC 8.4.0]"><pre class="notranslate"><code class="notranslate">1.19.1 3.6.9 (default, Jul 17 2020, 12:50:27)
[GCC 8.4.0]
</code></pre></div> | <p dir="auto">Tests are failing:<br>
FAILED ....\lib\tests\test_regression.py::TestRegression::test_polyfit_build - numpy.linalg.LinAlgError: SVD did not...<br>
FAILED ....\linalg\tests\test_regression.py::TestRegression::test_eig_build - numpy.linalg.LinAlgError: Eigenvalues ...<br>
FAILED ....\ma\tests\test_extras.py::TestPolynomial::test_polyfit - numpy.linalg.LinAlgError: SVD did not converge i...</p>
<p dir="auto">with exceptions:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="err = 'invalid value', flag = 8
def _raise_linalgerror_lstsq(err, flag):
> raise LinAlgError("SVD did not converge in Linear Least Squares")
E numpy.linalg.LinAlgError: SVD did not converge in Linear Least Squares
err = 'invalid value'
flag = 8"><pre class="notranslate"><code class="notranslate">err = 'invalid value', flag = 8
def _raise_linalgerror_lstsq(err, flag):
> raise LinAlgError("SVD did not converge in Linear Least Squares")
E numpy.linalg.LinAlgError: SVD did not converge in Linear Least Squares
err = 'invalid value'
flag = 8
</code></pre></div>
<p dir="auto">and</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="err = 'invalid value', flag = 8
def _raise_linalgerror_eigenvalues_nonconvergence(err, flag):
> raise LinAlgError("Eigenvalues did not converge")
E numpy.linalg.LinAlgError: Eigenvalues did not converge
err = 'invalid value'
flag = 8"><pre class="notranslate"><code class="notranslate">err = 'invalid value', flag = 8
def _raise_linalgerror_eigenvalues_nonconvergence(err, flag):
> raise LinAlgError("Eigenvalues did not converge")
E numpy.linalg.LinAlgError: Eigenvalues did not converge
err = 'invalid value'
flag = 8
</code></pre></div>
<p dir="auto">Steps taken:</p>
<ul dir="auto">
<li>Create a VM</li>
<li>Install latest Windows 10 and update to the latest version 2004 (10.0.19041)</li>
<li>Install Python 3.8.3</li>
<li><code class="notranslate">pip install pytest</code></li>
<li><code class="notranslate">pip install numpy</code></li>
<li><code class="notranslate">pip install hypothesis</code></li>
<li>run tests in the package</li>
</ul>
<p dir="auto">Same happens issue happens when running on tests in the repository.</p>
<p dir="auto">Version 1.19.0 of numpy</p>
<p dir="auto">Am I missing any dependencies? Or is it just Windows going bonkers?</p> | 1 |
<p dir="auto">Is there a plan to support custom context menu? like:<br>
<a href="https://atom.io/docs/api/v1.7.1/ContextMenuManager" rel="nofollow">https://atom.io/docs/api/v1.7.1/ContextMenuManager</a><br>
or<br>
<a href="http://wiki.eclipse.org/Menu_Contributions#menu" rel="nofollow">http://wiki.eclipse.org/Menu_Contributions#menu</a></p>
<p dir="auto">Thanks. I am looking forward to that.</p> | <ul dir="auto">
<li>VSCode Version: alpha</li>
<li>OS Version:</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>No tabs no Open editor section</li>
<li>Two groups. G1: a.txt & b.txt with b.txt in front; G2: c.txt</li>
<li>G2 has focus</li>
<li>Ctrl+P a.txt</li>
</ol>
<p dir="auto">Observe: a.txt is opened a second time in G2</p>
<p dir="auto">I would like to have an option to reveal a.txt in G1 instead of opening a new copy.</p> | 0 |
<p dir="auto">My issue is about a funny behavior of scipy function integrate.quad.</p>
<p dir="auto">Integrating a gaussian function I get wrong values depending on the integration interval. See below.<br>
in [3] I compute the integral on [-100, 0.5] and I get the expected value.</p>
<p dir="auto">In [4] I compute the same integral on [-1000,0.5]. I expect the same value because there is no co ntribute to the integral sum extending the interval to the left. But I get a wrong value.</p>
<p dir="auto">In [5] and [6] I show that something happens between -997 and -998</p>
<p dir="auto">In [7] I extend further the integration interval and the returned value is still wrong (I've tried several values with the same result.</p>
<p dir="auto">In [8] I show that the integral is correct if I integrate from -infinity</p>
<h4 dir="auto">Reproducing code example:</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ipython --pylab
Python 3.6.9 (default, Nov 7 2019, 10:44:02)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.5.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import scipy.integrate as integrate
In [2]: from scipy.stats import norm
In [3]: integrate.quad(lambda x:norm.pdf(x,0.64449662,0.19),-100,0.5)
Out[3]: (0.22347533732644612, 3.1634786288170372e-12)
In [4]: integrate.quad(lambda x:norm.pdf(x,0.64449662,0.19),-1000,0.5)
Out[4]: (4.75208186635514e-09, 9.44858985141507e-09)
In [5]: integrate.quad(lambda x:norm.pdf(x,0.64449662,0.19),-987,0.5)
Out[5]: (0.22347533732644612, 1.8395174387908237e-10)
In [6]: integrate.quad(lambda x:norm.pdf(x,0.64449662,0.19),-988,0.5)
Out[6]: (7.303423606392351e-09, 1.4521436311212504e-08)
In [7]: integrate.quad(lambda x:norm.pdf(x,0.64449662,0.19),-2000,0.5)
Out[7]: (6.486552015239486e-32, 1.2897246147166321e-31)
In [8]: integrate.quad(lambda x:norm.pdf(x,0.64449662,0.19),-np.inf,0.5)
Out[8]: (0.2234753373264382, 1.598765108016799e-09)
"><pre class="notranslate"><code class="notranslate">$ ipython --pylab
Python 3.6.9 (default, Nov 7 2019, 10:44:02)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.5.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import scipy.integrate as integrate
In [2]: from scipy.stats import norm
In [3]: integrate.quad(lambda x:norm.pdf(x,0.64449662,0.19),-100,0.5)
Out[3]: (0.22347533732644612, 3.1634786288170372e-12)
In [4]: integrate.quad(lambda x:norm.pdf(x,0.64449662,0.19),-1000,0.5)
Out[4]: (4.75208186635514e-09, 9.44858985141507e-09)
In [5]: integrate.quad(lambda x:norm.pdf(x,0.64449662,0.19),-987,0.5)
Out[5]: (0.22347533732644612, 1.8395174387908237e-10)
In [6]: integrate.quad(lambda x:norm.pdf(x,0.64449662,0.19),-988,0.5)
Out[6]: (7.303423606392351e-09, 1.4521436311212504e-08)
In [7]: integrate.quad(lambda x:norm.pdf(x,0.64449662,0.19),-2000,0.5)
Out[7]: (6.486552015239486e-32, 1.2897246147166321e-31)
In [8]: integrate.quad(lambda x:norm.pdf(x,0.64449662,0.19),-np.inf,0.5)
Out[8]: (0.2234753373264382, 1.598765108016799e-09)
</code></pre></div>
<h4 dir="auto">Error message:</h4>
<p dir="auto">No error message. Wrong result</p>
<h4 dir="auto">Scipy/Numpy/Python version information:</h4> | <p dir="auto">Hi,<br>
I was just exploring a difference I noticed between numpy's std() function and scipy.stats' nanstd() function.</p>
<p dir="auto">numpy.std is called like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="numpy.std(a, axis=None, dtype=None, out=None, ddof=0, keepdims=False)"><pre class="notranslate"><code class="notranslate">numpy.std(a, axis=None, dtype=None, out=None, ddof=0, keepdims=False)
</code></pre></div>
<p dir="auto">and scipy.stats.nanstd is called like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="nanstd(x, axis=0, bias=False)"><pre class="notranslate"><code class="notranslate">nanstd(x, axis=0, bias=False)
</code></pre></div>
<p dir="auto">The setting bias = False is equivalent to setting ddof=1 in numpy.std, leading to the calls numpy.std(x) and scipy.stats.nanstd(x) to return different values, especially for small arrays. I think these should by default return the same value.</p>
<p dir="auto">This could be fixed like so, however I can't think of a clever way to keep compatibility with the old bias keyword. Opinions?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def nanstd(x, axis=0, ddof = 0):
"""
Compute the standard deviation over the given axis, ignoring nans.
Parameters
----------
x : array_like
Input array.
axis : int or None, optional
Axis along which the standard deviation is computed. Default is 0.
If None, compute over the whole array `x`.
ddof : int, optional
Means Delta Degrees of Freedom. The divisor used in calculations is
N - ddof, where N represents the number of elements.
By default ddof is zero.
Returns
-------
s : float
The standard deviation.
See Also
--------
nanmean, nanmedian
Examples
--------
>>> from scipy import stats
>>> a = np.arange(10, dtype=float)
>>> a[1:3] = np.nan
>>> np.std(a)
nan
>>> stats.nanstd(a)
2.9154759474226504
>>> stats.nanstd(a.reshape(2, 5), axis=1)
array([ 2.0817, 1.5811])
>>> stats.nanstd(a.reshape(2, 5), axis=None)
2.9154759474226504
"""
x, axis = _chk_asarray(x,axis)
x = x.copy()
Norig = x.shape[axis]
Nnan = np.sum(np.isnan(x),axis)*1.0
n = Norig - Nnan
x[np.isnan(x)] = 0.
m1 = np.sum(x,axis)/n
if axis:
d = (x - np.expand_dims(m1, axis))**2.0
else:
d = (x - m1)**2.0
m2 = np.sum(d,axis)-(m1*m1)*Nnan
m2c = m2 / (n - ddof)
return np.sqrt(m2c)"><pre class="notranslate"><code class="notranslate">def nanstd(x, axis=0, ddof = 0):
"""
Compute the standard deviation over the given axis, ignoring nans.
Parameters
----------
x : array_like
Input array.
axis : int or None, optional
Axis along which the standard deviation is computed. Default is 0.
If None, compute over the whole array `x`.
ddof : int, optional
Means Delta Degrees of Freedom. The divisor used in calculations is
N - ddof, where N represents the number of elements.
By default ddof is zero.
Returns
-------
s : float
The standard deviation.
See Also
--------
nanmean, nanmedian
Examples
--------
>>> from scipy import stats
>>> a = np.arange(10, dtype=float)
>>> a[1:3] = np.nan
>>> np.std(a)
nan
>>> stats.nanstd(a)
2.9154759474226504
>>> stats.nanstd(a.reshape(2, 5), axis=1)
array([ 2.0817, 1.5811])
>>> stats.nanstd(a.reshape(2, 5), axis=None)
2.9154759474226504
"""
x, axis = _chk_asarray(x,axis)
x = x.copy()
Norig = x.shape[axis]
Nnan = np.sum(np.isnan(x),axis)*1.0
n = Norig - Nnan
x[np.isnan(x)] = 0.
m1 = np.sum(x,axis)/n
if axis:
d = (x - np.expand_dims(m1, axis))**2.0
else:
d = (x - m1)**2.0
m2 = np.sum(d,axis)-(m1*m1)*Nnan
m2c = m2 / (n - ddof)
return np.sqrt(m2c)
</code></pre></div> | 0 |
<p dir="auto">When looking at a zoomed out hexbin plot, the tiles seem to overlap, with the right-most tiles lying on top of the left-most tiles. This is present on master (see <a href="http://matplotlib.org/devdocs/_images/hexbin_demo.png" rel="nofollow">http://matplotlib.org/devdocs/_images/hexbin_demo.png</a>), and here is an example (it helps to zoom into the .png image):</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6197628/21985394/57c9b9dc-dbf2-11e6-860a-ed8f3c995728.png"><img src="https://cloud.githubusercontent.com/assets/6197628/21985394/57c9b9dc-dbf2-11e6-860a-ed8f3c995728.png" alt="screenshot from 2017-01-16 13-27-39" style="max-width: 100%;"></a></p> | <p dir="auto">This is the underlying problem raised in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6572843" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/1178" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/1178/hovercard" href="https://github.com/matplotlib/matplotlib/pull/1178">#1178</a>.<br>
It is illustrated by the test below; note that boundary anomalies are visible in all forms--agg on the screen, and pdf and svg displayed with a viewer--but in different places depending on the viewer and the size of the figure as rendered.<br>
Note that the colorbar is rendered using pcolormesh, which has its own renderer with agg but otherwise is handled by draw_path_collection.</p>
<pre class="notranslate">import numpy as np
import matplotlib.pyplot as plt
z = np.arange(150)
z.shape = (10,15)
fig, axs = plt.subplots(2,2)
ax = axs[0,0]
cs0 = ax.contourf(z, 20)
cbar0 = fig.colorbar(cs0, ax=ax)
ax = axs[0,1]
cs1 = ax.contourf(z, 20, alpha=0.3)
cbar1 = fig.colorbar(cs1, ax=ax)
ax = axs[1,0]
im2 = ax.imshow(z, interpolation='nearest')
cbar2 = fig.colorbar(im2, ax=ax)
ax = axs[1,1]
im3 = ax.imshow(z, interpolation='nearest', alpha=0.3)
cbar3 = fig.colorbar(im3, ax=ax)
plt.savefig("test1.pdf")
plt.savefig("test1.svg")
plt.show()
</pre> | 1 |
<h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>Current Behavior</strong><br>
In time I pass the object, which contains the literal declared parameter called class, to the React component, I receive SyntaxError.</p>
<p dir="auto"><div attrs={{class: 'A'}}>Children</div></p>
<p dir="auto"><strong>Expected behavior/code</strong><br>
Expected behavior is to get the correct parsed attributes like { class: 'A'}</p>
<p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module.exports = {
presets: [
[
'@babel/preset-env',
{
modules: false,
useBuiltIns: 'usage',
},
],
'@babel/preset-flow',
'@babel/preset-react',
],
plugins: [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-proposal-nullish-coalescing-operator',
'@babel/plugin-proposal-optional-chaining',
[
'@babel/plugin-transform-runtime',
{
useESModules: true,
},
],
],
env: {
test: {
presets: ['@babel/preset-env'],
plugins: ['babel-plugin-require-context-hook', '@babel/plugin-transform-runtime'],
},
},
}
"><pre class="notranslate"><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">presets</span>: <span class="pl-kos">[</span>
<span class="pl-kos">[</span>
<span class="pl-s">'@babel/preset-env'</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">modules</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">useBuiltIns</span>: <span class="pl-s">'usage'</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">'@babel/preset-flow'</span><span class="pl-kos">,</span>
<span class="pl-s">'@babel/preset-react'</span><span class="pl-kos">,</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-c1">plugins</span>: <span class="pl-kos">[</span>
<span class="pl-s">'@babel/plugin-proposal-class-properties'</span><span class="pl-kos">,</span>
<span class="pl-s">'@babel/plugin-proposal-export-default-from'</span><span class="pl-kos">,</span>
<span class="pl-s">'@babel/plugin-proposal-nullish-coalescing-operator'</span><span class="pl-kos">,</span>
<span class="pl-s">'@babel/plugin-proposal-optional-chaining'</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span>
<span class="pl-s">'@babel/plugin-transform-runtime'</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">useESModules</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-c1">env</span>: <span class="pl-kos">{</span>
<span class="pl-c1">test</span>: <span class="pl-kos">{</span>
<span class="pl-c1">presets</span>: <span class="pl-kos">[</span><span class="pl-s">'@babel/preset-env'</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-c1">plugins</span>: <span class="pl-kos">[</span><span class="pl-s">'babel-plugin-require-context-hook'</span><span class="pl-kos">,</span> <span class="pl-s">'@babel/plugin-transform-runtime'</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-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>Environment</strong></p>
<ul dir="auto">
<li>Babel version(s): 7.1.2</li>
<li>Node/npm version: 8.12.0/6.4.1</li>
<li>OS: OS X 10.14</li>
<li>Lerna</li>
<li>How you are using Babel: loader</li>
</ul>
<p dir="auto"><strong>Additional context/Screenshots</strong><br>
Examining revealed, that if I would write an object with JSON, it works: <div attrs={{'class': 'A'}}>Children<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4025552/46867936-f6d47d00-ce26-11e8-8897-7291bc20782f.png"><img width="1334" alt="screenshot 2018-10-12 at 13 55 59" src="https://user-images.githubusercontent.com/4025552/46867936-f6d47d00-ce26-11e8-8897-7291bc20782f.png" style="max-width: 100%;"></a></p> | <h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>Input Code</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<Select prop={{ class: 'test' }} />;"><pre class="notranslate"><span class="pl-c1"><</span><span class="pl-ent">Select</span> <span class="pl-c1">prop</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">{</span> <span class="pl-c1">class</span>: <span class="pl-s">'test'</span> <span class="pl-kos">}</span><span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">></span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Current Behavior</strong></p>
<p dir="auto">With the latest version of <code class="notranslate">@babel/[email protected]</code> it fails with the error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="SyntaxError: /Users/serdiuk/coding/test/test.js: Unexpected token, expected "jsxTagEnd""><pre class="notranslate"><code class="notranslate">SyntaxError: /Users/serdiuk/coding/test/test.js: Unexpected token, expected "jsxTagEnd"
</code></pre></div>
<p dir="auto"><strong>Expected behavior/code</strong></p>
<p dir="auto">With <code class="notranslate">@babel/[email protected]</code> and bellow it works:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="React.createElement(Select, {
prop: {
class: 'test'
}
});"><pre class="notranslate"><code class="notranslate">React.createElement(Select, {
prop: {
class: 'test'
}
});
</code></pre></div>
<p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"presets": ["@babel/preset-react"]
}
"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-s">"presets"</span>: <span class="pl-kos">[</span><span class="pl-s">"@babel/preset-react"</span><span class="pl-kos">]</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Environment</strong></p>
<ul dir="auto">
<li>Babel version(s): <code class="notranslate">@babel/[email protected]</code></li>
<li>Node/npm version: <code class="notranslate">v8.9.4</code></li>
<li>OS: OSX 10.12.6</li>
<li>Monorepo: n/a</li>
<li>How you are using Babel: cli, but also happens in <code class="notranslate">babel-loader</code></li>
</ul>
<p dir="auto"><strong>Possible Solution</strong></p>
<p dir="auto">As a current workaround I can write the following:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const prop = { class: 'test' };
<Select prop={prop} />;"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">prop</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">class</span>: <span class="pl-s">'test'</span> <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-c1"><</span><span class="pl-ent">Select</span> <span class="pl-c1">prop</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">prop</span><span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">></span><span class="pl-kos">;</span></pre></div>
<p dir="auto">This works with any version. But this is still an issue, because it fails to parse the code, that is supposed to be valid Javascript.</p> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=snicoll" rel="nofollow">Stéphane Nicoll</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9684?redirect=false" rel="nofollow">SPR-9684</a></strong> and commented</p>
<p dir="auto">The spring test infrastructure no longer honour prototype-scoped beans if they are injected wiht <code class="notranslate">@Resource</code>. It does work with <code class="notranslate">@Autowired</code>.</p>
<p dir="auto">We suspect that <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398117629" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13814" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13814/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13814">#13814</a> may have brought this regression.</p>
<p dir="auto">To reproduce, extract the zip and run the tests (either from your IDE or on the command line with Maven). You can validate the regression by running the following command:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mvn clean install -Dspring.version=3.1.1.RELEASE"><pre class="notranslate"><code class="notranslate">mvn clean install -Dspring.version=3.1.1.RELEASE
</code></pre></div>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1.2</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/20192/inject-regression-showcase.zip" rel="nofollow">inject-regression-showcase.zip</a> (<em>6.16 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="398152030" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14261" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14261/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14261">#14261</a> Regression: scoped beans being cached too aggressively (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto">1 votes, 2 watchers</p> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=sam_bernet" rel="nofollow">Samuel Bernet</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9627?redirect=false" rel="nofollow">SPR-9627</a></strong> and commented</p>
<p dir="auto">The bugfix <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398117629" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13814" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13814/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13814">#13814</a> "Scoped-proxy memory leak w/ <code class="notranslate">@Resource</code> injection" leads to bean instances being cached too eagerly in <code class="notranslate">CommonAnnotationBeanPostProcessor</code>. Besides the (desired) caching of AOP scoped-proxies to prevent the memory leak the current code also caches custom scoped bean instances that should not be cached. This happens for example if client code uses <code class="notranslate">AutowireCapableBeanFactory#autowireBean(Object)</code> to inject dependencies (annotation-based) into a manually created bean. In this case no AOP proxies are involved but the cached instances are still used. The underlying scope is never consulted and can thus never signalize that a new instance is to be created and injected because the context of the scope (e.g. request, session) is different from the first call which resulted in the cached instance.</p>
<p dir="auto">I attached a Test-Case (JUnit 4 Test, requires JUnit and Spring to run). The test-case illustrates the breaking change:</p>
<ul dir="auto">
<li>Runs fine with Spring version 3.1.1 and older (tested with 3.0.5)</li>
<li>Fails with Spring version 3.1.2 and 3.2.M1</li>
<li>The defect was introduced in the bugfix for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398117629" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13814" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13814/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13814">#13814</a> in version 3.2.M1 with commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/f779c199ea272cf61781e120b1ab2efc50de0cbb/hovercard" href="https://github.com/spring-projects/spring-framework/commit/f779c199ea272cf61781e120b1ab2efc50de0cbb"><tt>f779c19</tt></a></li>
<li>The defect was back-ported to version 3.1.2 with <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398118859" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14000" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14000/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14000">#14000</a></li>
</ul>
<p dir="auto">I understand this calling pattern is not very common but nevertheless the affected API is public and our framework relies on this to provide service beans to instances of "visual" classes (a visual models a single page in a web application). This basically renders custom scoped beans (also being used heavily) unusable for us in releases > 3.1.1, thus my classification as "major".</p>
<p dir="auto">Best regards<br>
Samuel Bernet<br>
MSc ETH Software Engineering<br>
<a href="mailto:[email protected]">[email protected]</a></p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1.2, 3.2 M1</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/20123/SPR-9176-TestCase.zip" rel="nofollow">SPR-9176-TestCase.zip</a> (<em>3.29 kB</em>)</li>
</ul>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398152449" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14318" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14318/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14318">#14318</a> <code class="notranslate">@Resource</code> injection regression with scope prototype (<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="398117629" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13814" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13814/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13814">#13814</a> Scoped-proxy memory leak w/ <code class="notranslate">@Resource</code> injection</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398151713" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14214" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14214/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14214">#14214</a> Injecting prototypes into tests using <code class="notranslate">@Resource</code> appears to be broken</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398118859" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14000" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14000/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14000">#14000</a> Backport "Scoped-proxy memory leak w/ <code class="notranslate">@Resource</code> injection"</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398153826" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14485" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14485/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14485">#14485</a> <code class="notranslate">@Resource</code> injection of singleton in prototype using AnnotationConfigApplicationContext is not thread-safe</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/04af54ad4cd7ac335d275487b19e96ed3335f221/hovercard" href="https://github.com/spring-projects/spring-framework/commit/04af54ad4cd7ac335d275487b19e96ed3335f221"><tt>04af54a</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/26ee0c4842ca83dec213b5422d0af18ba2e3ce6c/hovercard" href="https://github.com/spring-projects/spring-framework/commit/26ee0c4842ca83dec213b5422d0af18ba2e3ce6c"><tt>26ee0c4</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/68c5f20bc7891ef9435ffc096e97f626277d27a7/hovercard" href="https://github.com/spring-projects/spring-framework/commit/68c5f20bc7891ef9435ffc096e97f626277d27a7"><tt>68c5f20</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/19718700cf5a99e8e10af5d11d8005835838ddba/hovercard" href="https://github.com/spring-projects/spring-framework/commit/19718700cf5a99e8e10af5d11d8005835838ddba"><tt>1971870</tt></a></p>
<p dir="auto">1 votes, 5 watchers</p> | 1 |
<p dir="auto">I've recently experimenting with <code class="notranslate">llvm.expect</code> to see if I can squeeze the last bit of performance for error throwing (rather the non-error path). I would like to use <code class="notranslate">llvmcall</code> but the simplest implementation gives me an error that <code class="notranslate">@llvm.expect.i1</code> is not defined. Would it be possible to add another parameter for <code class="notranslate">llvmcall</code> so that declaration is allowed?</p>
<p dir="auto">I'm asking because</p>
<ol dir="auto">
<li>It seems that <a href="https://github.com/maleadt/CUDA.jl/blob/e72e54caf9ba60ad59ffd2545250cda4187b0b65/src/native/intrinsics.jl#L118"><code class="notranslate">CUDA.jl</code> is using a form that allows it</a> although when I tried that it didn't work.</li>
<li>After reading the codegen for <code class="notranslate">llvmcall</code> I came up with a hack to do what I want (see below). So I think it would be nice to add explicit support for sth useful that is possible to do with a hack.</li>
</ol>
<p dir="auto">It seems pretty straightforward to implement such function but I don't want to go ahead and do it myself now because IIRC <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Keno/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Keno">@Keno</a> has a more complete implementation of it that is not in the <code class="notranslate">Base</code> yet (and that <code class="notranslate">CUDA.jl</code> seems to be using sth similar). Is there any plan to get it in?</p>
<p dir="auto">The hacky implementation is like this. The llvm code correctly contains the <code class="notranslate">expect</code> call. This doesn't seems to affect the assembly but similar code in c compiled with <code class="notranslate">clang</code> or <code class="notranslate">gcc</code> emit identical assembly as well so that's probably normal.</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function likely(x::Bool)
Base.llvmcall("""
%2 = tail call i1 @llvm.expect.i1(i1 %0, i1 true)
ret i1 %2
}
declare i1 @llvm.expect.i1(i1, i1)
define void @likely_dummy() {
ret void
""", Bool, Tuple{Bool}, x)
end
function unlikely(x::Bool)
Base.llvmcall("""
%2 = tail call i1 @llvm.expect.i1(i1 %0, i1 false)
ret i1 %2
}
declare i1 @llvm.expect.i1(i1, i1)
define void @unlikely_dummy() {
ret void
""", Bool, Tuple{Bool}, x)
end
function f1(x::Int)
if x > 0
x
else
2
end
end
function f2(x::Int)
if likely(x > 0)
x
else
2
end
end
function f3(x::Int)
if unlikely(x > 0)
x
else
2
end
end
@code_llvm f1(1)
@code_llvm f2(1)
@code_llvm f3(1)
# @code_native f1(1)
# @code_native f2(1)
# @code_native f3(1)"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">likely</span>(x<span class="pl-k">::</span><span class="pl-c1">Bool</span>)
Base<span class="pl-k">.</span><span class="pl-c1">llvmcall</span>(<span class="pl-s"><span class="pl-pds">"""</span></span>
<span class="pl-s"> %2 = tail call i1 @llvm.expect.i1(i1 %0, i1 true)</span>
<span class="pl-s"> ret i1 %2</span>
<span class="pl-s"> }</span>
<span class="pl-s"> declare i1 @llvm.expect.i1(i1, i1)</span>
<span class="pl-s"> define void @likely_dummy() {</span>
<span class="pl-s"> ret void</span>
<span class="pl-s"> <span class="pl-pds">"""</span></span>, Bool, Tuple{Bool}, x)
<span class="pl-k">end</span>
<span class="pl-k">function</span> <span class="pl-en">unlikely</span>(x<span class="pl-k">::</span><span class="pl-c1">Bool</span>)
Base<span class="pl-k">.</span><span class="pl-c1">llvmcall</span>(<span class="pl-s"><span class="pl-pds">"""</span></span>
<span class="pl-s"> %2 = tail call i1 @llvm.expect.i1(i1 %0, i1 false)</span>
<span class="pl-s"> ret i1 %2</span>
<span class="pl-s"> }</span>
<span class="pl-s"> declare i1 @llvm.expect.i1(i1, i1)</span>
<span class="pl-s"> define void @unlikely_dummy() {</span>
<span class="pl-s"> ret void</span>
<span class="pl-s"> <span class="pl-pds">"""</span></span>, Bool, Tuple{Bool}, x)
<span class="pl-k">end</span>
<span class="pl-k">function</span> <span class="pl-en">f1</span>(x<span class="pl-k">::</span><span class="pl-c1">Int</span>)
<span class="pl-k">if</span> x <span class="pl-k">></span> <span class="pl-c1">0</span>
x
<span class="pl-k">else</span>
<span class="pl-c1">2</span>
<span class="pl-k">end</span>
<span class="pl-k">end</span>
<span class="pl-k">function</span> <span class="pl-en">f2</span>(x<span class="pl-k">::</span><span class="pl-c1">Int</span>)
<span class="pl-k">if</span> <span class="pl-c1">likely</span>(x <span class="pl-k">></span> <span class="pl-c1">0</span>)
x
<span class="pl-k">else</span>
<span class="pl-c1">2</span>
<span class="pl-k">end</span>
<span class="pl-k">end</span>
<span class="pl-k">function</span> <span class="pl-en">f3</span>(x<span class="pl-k">::</span><span class="pl-c1">Int</span>)
<span class="pl-k">if</span> <span class="pl-c1">unlikely</span>(x <span class="pl-k">></span> <span class="pl-c1">0</span>)
x
<span class="pl-k">else</span>
<span class="pl-c1">2</span>
<span class="pl-k">end</span>
<span class="pl-k">end</span>
<span class="pl-c1">@code_llvm</span> <span class="pl-c1">f1</span>(<span class="pl-c1">1</span>)
<span class="pl-c1">@code_llvm</span> <span class="pl-c1">f2</span>(<span class="pl-c1">1</span>)
<span class="pl-c1">@code_llvm</span> <span class="pl-c1">f3</span>(<span class="pl-c1">1</span>)
<span class="pl-c"><span class="pl-c">#</span> @code_native f1(1)</span>
<span class="pl-c"><span class="pl-c">#</span> @code_native f2(1)</span>
<span class="pl-c"><span class="pl-c">#</span> @code_native f3(1)</span></pre></div>
<p dir="auto">The script prints</p>
<div class="highlight highlight-source-llvm notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="define i64 @julia_f1_20826(i64) {
top:
%1 = icmp slt i64 %0, 1
br i1 %1, label %L, label %if
if: ; preds = %top
ret i64 %0
L: ; preds = %top
ret i64 2
}
define i64 @julia_f2_20829(i64) {
top:
%1 = icmp sgt i64 %0, 0
%2 = call i1 @llvm.expect.i1(i1 %1, i1 true)
br i1 %2, label %if, label %L
if: ; preds = %top
ret i64 %0
L: ; preds = %top
ret i64 2
}
define i64 @julia_f3_20830(i64) {
top:
%1 = icmp sgt i64 %0, 0
%2 = call i1 @llvm.expect.i1(i1 %1, i1 false)
br i1 %2, label %if, label %L
if: ; preds = %top
ret i64 %0
L: ; preds = %top
ret i64 2
}"><pre class="notranslate"><span class="pl-k">define</span> <span class="pl-k">i64</span> <span class="pl-c1">@julia_f1_20826</span>(<span class="pl-k">i64</span>) {
top:
<span class="pl-c1">%1</span> = <span class="pl-k">icmp</span> <span class="pl-k">slt</span> <span class="pl-k">i64</span> <span class="pl-c1">%0</span>, <span class="pl-c1">1</span>
<span class="pl-k">br</span> <span class="pl-k">i1</span> <span class="pl-c1">%1</span>, <span class="pl-k">label</span> <span class="pl-c1">%L</span>, <span class="pl-k">label</span> <span class="pl-c1">%if</span>
if: <span class="pl-c">; preds = %top</span>
<span class="pl-k">ret</span> <span class="pl-k">i64</span> <span class="pl-c1">%0</span>
L: <span class="pl-c">; preds = %top</span>
<span class="pl-k">ret</span> <span class="pl-k">i64</span> <span class="pl-c1">2</span>
}
<span class="pl-k">define</span> <span class="pl-k">i64</span> <span class="pl-c1">@julia_f2_20829</span>(<span class="pl-k">i64</span>) {
top:
<span class="pl-c1">%1</span> = <span class="pl-k">icmp</span> <span class="pl-k">sgt</span> <span class="pl-k">i64</span> <span class="pl-c1">%0</span>, <span class="pl-c1">0</span>
<span class="pl-c1">%2</span> = <span class="pl-k">call</span> <span class="pl-k">i1</span> <span class="pl-c1">@llvm.expect.i1</span>(<span class="pl-k">i1</span> <span class="pl-c1">%1</span>, <span class="pl-k">i1</span> <span class="pl-k">true</span>)
<span class="pl-k">br</span> <span class="pl-k">i1</span> <span class="pl-c1">%2</span>, <span class="pl-k">label</span> <span class="pl-c1">%if</span>, <span class="pl-k">label</span> <span class="pl-c1">%L</span>
if: <span class="pl-c">; preds = %top</span>
<span class="pl-k">ret</span> <span class="pl-k">i64</span> <span class="pl-c1">%0</span>
L: <span class="pl-c">; preds = %top</span>
<span class="pl-k">ret</span> <span class="pl-k">i64</span> <span class="pl-c1">2</span>
}
<span class="pl-k">define</span> <span class="pl-k">i64</span> <span class="pl-c1">@julia_f3_20830</span>(<span class="pl-k">i64</span>) {
top:
<span class="pl-c1">%1</span> = <span class="pl-k">icmp</span> <span class="pl-k">sgt</span> <span class="pl-k">i64</span> <span class="pl-c1">%0</span>, <span class="pl-c1">0</span>
<span class="pl-c1">%2</span> = <span class="pl-k">call</span> <span class="pl-k">i1</span> <span class="pl-c1">@llvm.expect.i1</span>(<span class="pl-k">i1</span> <span class="pl-c1">%1</span>, <span class="pl-k">i1</span> <span class="pl-k">false</span>)
<span class="pl-k">br</span> <span class="pl-k">i1</span> <span class="pl-c1">%2</span>, <span class="pl-k">label</span> <span class="pl-c1">%if</span>, <span class="pl-k">label</span> <span class="pl-c1">%L</span>
if: <span class="pl-c">; preds = %top</span>
<span class="pl-k">ret</span> <span class="pl-k">i64</span> <span class="pl-c1">%0</span>
L: <span class="pl-c">; preds = %top</span>
<span class="pl-k">ret</span> <span class="pl-k">i64</span> <span class="pl-c1">2</span>
}</pre></div> | <p dir="auto">Basically sugar, but would be cool to compose functions with the pipeline op. Could possibly help with <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="26355302" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/5571" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/5571/hovercard" href="https://github.com/JuliaLang/julia/issues/5571">#5571</a>.</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="f(x) = x |> factor |> keys |> length
f = factor |> keys |> length
# ERROR: no method keys(Function,)
# in |> at operators.jl:159"><pre class="notranslate"><span class="pl-en">f</span>(x) <span class="pl-k">=</span> x <span class="pl-k">|></span> factor <span class="pl-k">|></span> keys <span class="pl-k">|></span> length
f <span class="pl-k">=</span> factor <span class="pl-k">|></span> keys <span class="pl-k">|></span> length
<span class="pl-c"><span class="pl-c">#</span> ERROR: no method keys(Function,)</span>
<span class="pl-c"><span class="pl-c">#</span> in |> at operators.jl:159</span></pre></div>
<p dir="auto">I think the relevant code is </p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/JuliaLang/julia/blob/a26f03ea141ae93587bd90c9755796b5eeb82ece/base/operators.jl#L159">julia/base/operators.jl</a>
</p>
<p class="mb-0 color-fg-muted">
Line 159
in
<a data-pjax="true" class="commit-tease-sha" href="/JuliaLang/julia/commit/a26f03ea141ae93587bd90c9755796b5eeb82ece">a26f03e</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="L159" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="159"></td>
<td id="LC159" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">|></span>(x, f<span class="pl-k">::</span><span class="pl-c1">Function</span>) <span class="pl-k">=</span> <span class="pl-c1">f</span>(x) </td>
</tr>
</tbody></table>
</div>
</div>
.<p></p>
<p dir="auto">Something like this?</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="|>(f1::Function, f2:Function) = x -> f1(f2(x))"><pre class="notranslate"><span class="pl-k">|></span>(f1<span class="pl-k">::</span><span class="pl-c1">Function</span>, f2<span class="pl-k">:</span>Function) <span class="pl-k">=</span> x <span class="pl-k">-></span> <span class="pl-c1">f1</span>(<span class="pl-c1">f2</span>(x))</pre></div>
<p dir="auto">Down to figure out how to write a test n such, just let me know.</p> | 0 |
<p dir="auto">Right now, <a href="https://golang.org/src/net/http/pprof/pprof.go?s=6283:6333#L197" rel="nofollow">https://golang.org/src/net/http/pprof/pprof.go?s=6283:6333#L197</a> has a</p>
<div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="func Index(w http.ResponseWriter, r *http.Request)"><pre class="notranslate"><span class="pl-k">func</span> <span class="pl-en">Index</span>(<span class="pl-s1">w</span> http.<span class="pl-smi">ResponseWriter</span>, <span class="pl-s1">r</span> <span class="pl-c1">*</span>http.<span class="pl-smi">Request</span>)</pre></div>
<p dir="auto">which only works if the path on which it is serving is exactly <code class="notranslate">/debug/pprof/</code>.</p>
<p dir="auto">This is weakly documented, and also a little inconvenient, as handling other paths may be desirable. In particular, its behaviour if you <em>do</em> assume that it can be hosted on other paths is that every profile you try to get returns the index page.</p>
<p dir="auto">It would be nice to fix this so that it supports arbitrary path prefixes. The ways that occur to me to implement this are:</p>
<ol dir="auto">
<li>
<p dir="auto">Rather than extracting the expected path suffix up-front and looking it up in the profiles map, iterating over the available profiles and checking whether they are a suffix of the requested path (possibly the longest suffix). This is a little less efficient (O(1) profile lookup becomes O(|available profiles|), but the number of profiles should be small and this handler shouldn't be hit too often or on many critical paths.</p>
</li>
<li>
<p dir="auto">Introduce a function which takes the path prefix and returns a handler suitable for that prefix. It preserves the current performance characteristics, but leaves the old slightly-broken method there for backwards compatibility, at the cost of requiring duplication of the prefix specification (both in the Handle call and in the Index-creator-func), and generally feeling slightly ugly.</p>
</li>
</ol>
<p dir="auto">I'm inclined towards implementing the first; does anyone have any strong opinions?</p> | <pre class="notranslate">My CL that expanded the maximum runtime memory to 128 GB appears to have broken race
detection on the Windows build machine. I will disable the test for now so that the
build machine stays useful.</pre> | 0 |
<p dir="auto">We should expect this to work, but currently we get an inappropriate error message.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> from sklearn import *
>>> model_selection.cross_validate(linear_model.LogisticRegression(), np.random.rand(10, 2), ['no'] * 3 + ['yes'] * 7, scoring='roc_auc')
...
ValueError: Data is not binary and pos_label is not specified"><pre class="notranslate"><code class="notranslate">>>> from sklearn import *
>>> model_selection.cross_validate(linear_model.LogisticRegression(), np.random.rand(10, 2), ['no'] * 3 + ['yes'] * 7, scoring='roc_auc')
...
ValueError: Data is not binary and pos_label is not specified
</code></pre></div>
<p dir="auto"><code class="notranslate">_binary_clf_curve</code> is assuming that <code class="notranslate">pos_label=1</code> if not specified. But it should be assuming the same ordering as the classifier, i.e. the greater string is the positive class label.</p>
<p dir="auto">Ping <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/qinhanmin2014/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/qinhanmin2014">@qinhanmin2014</a></p> | <p dir="auto">to reproduce:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
np.random.seed(13)
classes = np.array(['yes', 'no'])
y = classes[np.random.randint(2, size=10)]
t = classes[np.random.randint(2, size=10)]
from sklearn.metrics import roc_auc_score
from sklearn.metrics import accuracy_score
roc_auc_score(t, y)"><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">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">seed</span>(<span class="pl-c1">13</span>)
<span class="pl-s1">classes</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-s">'yes'</span>, <span class="pl-s">'no'</span>])
<span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">classes</span>[<span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randint</span>(<span class="pl-c1">2</span>, <span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-c1">10</span>)]
<span class="pl-s1">t</span> <span class="pl-c1">=</span> <span class="pl-s1">classes</span>[<span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randint</span>(<span class="pl-c1">2</span>, <span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-c1">10</span>)]
<span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">metrics</span> <span class="pl-k">import</span> <span class="pl-s1">roc_auc_score</span>
<span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">metrics</span> <span class="pl-k">import</span> <span class="pl-s1">accuracy_score</span>
<span class="pl-en">roc_auc_score</span>(<span class="pl-s1">t</span>, <span class="pl-s1">y</span>)</pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ValueError: Data is not binary and pos_label is not specified"><pre class="notranslate"><code class="notranslate">ValueError: Data is not binary and pos_label is not specified
</code></pre></div> | 1 |
<p dir="auto">All my use cases would work better if each operator would execute everything in one transaction. Two examples:</p>
<ul dir="auto">
<li>I want to <code class="notranslate">GenericTransfer</code> a set of rows from one DB to another, and I have to create the table first in the destination DB. I feel like it'd be a lot more clean if I didn't have empty tables lying around if the insertion fails for some reason later on.</li>
<li>I want to <code class="notranslate">GenericTransfer</code> all rows from an entire table periodically to sync it from one DB to another. To do this correctly I want to clear the destination table first to make sure I end up with no duplicate rows, so I'd have a <code class="notranslate">DELETE * FROM dst_table</code> preoperator. If the insertions fail afterwards, I'd end up with no data (it would be better in most cases to fall back to the old data), and even if everything is working correctly, I'll have an empty table while the insertions as still executing.</li>
</ul>
<p dir="auto">To fix this, the relevant <code class="notranslate">DbApiHook</code> methods could support a new kwarg to set whether it should commit at the end.</p>
<p dir="auto">Thoughts?</p> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def _execute(self):
command = self.task_instance.command(
raw=True,
ignore_dependencies=self.ignore_dependencies,
force=self.force,
pickle_id=self.pickle_id,
mark_success=self.mark_success,
task_start_date=self.task_start_date,
job_id=self.id,
pool=self.pool,
)
self.process = subprocess.Popen(['bash', '-c', command])
return_code = None
while return_code is None:
self.heartbeat()
return_code = self.process.poll()"><pre class="notranslate"><code class="notranslate">def _execute(self):
command = self.task_instance.command(
raw=True,
ignore_dependencies=self.ignore_dependencies,
force=self.force,
pickle_id=self.pickle_id,
mark_success=self.mark_success,
task_start_date=self.task_start_date,
job_id=self.id,
pool=self.pool,
)
self.process = subprocess.Popen(['bash', '-c', command])
return_code = None
while return_code is None:
self.heartbeat()
return_code = self.process.poll()
</code></pre></div>
<p dir="auto">Here we need to check the return_code of the process, otherwise it's possible that a process is killed externally but LocalTaskJob think it suceeds</p> | 0 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.17134.1069]
PowerToys version: 0.13.0
# Steps to reproduce
• Ensure that FancyZones is already setup on the remote computer (connecting to)
• Initiate a remote connection using Remote Desktop Connection - Native windows application-
• Attempt to move the windows with keyboard shortcuts
# Expected behavior
• FanzyZones should recognize the mstsc
# Actual behavior
Win+Arrow buttons do not move windows to the pre-configured zones"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.17134.1069]
PowerToys version: 0.13.0
# Steps to reproduce
• Ensure that FancyZones is already setup on the remote computer (connecting to)
• Initiate a remote connection using Remote Desktop Connection - Native windows application-
• Attempt to move the windows with keyboard shortcuts
# Expected behavior
• FanzyZones should recognize the mstsc
# Actual behavior
Win+Arrow buttons do not move windows to the pre-configured zones
</code></pre></div> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: FancyZones is Running - [Version 10.0.18362.295] RemoteApp connection running [Version 6.3.9600]
PowerToys version: 0.11.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones"><pre class="notranslate"><code class="notranslate">Windows build number: FancyZones is Running - [Version 10.0.18362.295] RemoteApp connection running [Version 6.3.9600]
PowerToys version: 0.11.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Press Shift key while dragging a RemoteApp window.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Pressing Shift key allows all windows to be resized and placed in zones via FanceyZones.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Pressing Shift key does not initiate FanceyZones zones.</p>
<h1 dir="auto">Screenshots</h1>
<h2 dir="auto">Actual behavior</h2>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6621442/65509139-c3f09100-de9f-11e9-96f7-0af79d101c09.png"><img src="https://user-images.githubusercontent.com/6621442/65509139-c3f09100-de9f-11e9-96f7-0af79d101c09.png" alt="desktop_result" style="max-width: 100%;"></a></p>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6621442/65509281-1af66600-dea0-11e9-85d7-5250b7d430f9.png"><img src="https://user-images.githubusercontent.com/6621442/65509281-1af66600-dea0-11e9-85d7-5250b7d430f9.png" alt="desktop_expected" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">The default Deno NotFound error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Uncaught NotFound: No such file or directory (os error 2)"><pre class="notranslate"><code class="notranslate">error: Uncaught NotFound: No such file or directory (os error 2)
</code></pre></div>
<p dir="auto">Is supremely unhelpful. Yes, I probably should have added more logging or whatever, but I would really have preferred to see <em>what</em> file my script was expecting to find and was missing, diagnose the issue and continue, than that I have to guess at it or add <code class="notranslate">console.log()</code>s to find out.</p>
<p dir="auto">Is it that hard to put the missing path in the error message? It would really help a lot.</p> | <p dir="auto">Running a simple oak server to illustrate <a href="https://github.com/o2sevruk/deno-react-example">deno-react-example</a> using deno 1.0.3 on Ubuntu results in: "error: No such file or directory (os error 2)"</p>
<p dir="auto">Would anyone know how to debug this?<br>
Thanks</p> | 1 |
<h5 dir="auto">Issue Type:</h5>
<ul dir="auto">
<li>Bug Report</li>
<li>Feature Idea</li>
<li>Documentation Report</li>
</ul>
<h5 dir="auto">Ansible Version:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<!--- Paste verbatim output from “ansible --version” here -->"><pre class="notranslate"><code class="notranslate"><!--- Paste verbatim output from “ansible --version” here -->
</code></pre></div>
<h5 dir="auto">Ansible Configuration:</h5>
<h5 dir="auto">Environment:</h5>
<h5 dir="auto">Summary:</h5>
<h5 dir="auto">Steps To Reproduce:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<!--- Paste example playbooks or commands here -->"><pre class="notranslate"><code class="notranslate"><!--- Paste example playbooks or commands here -->
</code></pre></div>
<h5 dir="auto">Expected Results:</h5>
<h5 dir="auto">Actual Results:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<!--- Paste verbatim command output here -->"><pre class="notranslate"><code class="notranslate"><!--- Paste verbatim command output here -->
</code></pre></div> | <h5 dir="auto">Issue Type:</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">Ansible Version:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible --version
ansible 2.0.0.2
config file = /usr/local/etc/ansible/ansible.cfg
configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">$ ansible --version
ansible 2.0.0.2
config file = /usr/local/etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
</code></pre></div>
<h5 dir="auto">Environment:</h5>
<p dir="auto">Ansible Installed on OSX and manage Amazon Linux</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">Ansible is unable to use variables in <a href="http://docs.ansible.com/ansible/playbooks_conditionals.html#register-variables" rel="nofollow">register</a></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=" ### WORKS
- wait_for: host=0.0.0.0 port={{ item.port }}
ignore_errors: true
register: nginx
with_items:
- { name: 'nginx', port: '80' }
- debug: var=nginx
### DOES NOT WORKS
- wait_for: host=0.0.0.0 port={{ item.port }}
ignore_errors: true
register: "{{ item.name }}"
with_items:
- { name: 'nginx1', port: '80' }
- debug: var=nginx1
"><pre class="notranslate"> <span class="pl-c"><span class="pl-c">#</span>## WORKS</span>
- <span class="pl-ent">wait_for</span>: <span class="pl-s">host=0.0.0.0 port={{ item.port }}</span>
<span class="pl-ent">ignore_errors</span>: <span class="pl-c1">true</span>
<span class="pl-ent">register</span>: <span class="pl-s">nginx</span>
<span class="pl-ent">with_items</span>:
- <span class="pl-s">{ name: 'nginx', port: '80' }</span>
- <span class="pl-ent">debug</span>: <span class="pl-s">var=nginx</span>
<span class="pl-c"><span class="pl-c">#</span>## DOES NOT WORKS</span>
- <span class="pl-ent">wait_for</span>: <span class="pl-s">host=0.0.0.0 port={{ item.port }}</span>
<span class="pl-ent">ignore_errors</span>: <span class="pl-c1">true</span>
<span class="pl-ent">register</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ item.name }}<span class="pl-pds">"</span></span>
<span class="pl-ent">with_items</span>:
- <span class="pl-s">{ name: 'nginx1', port: '80' }</span>
- <span class="pl-ent">debug</span>: <span class="pl-s">var=nginx1</span>
</pre></div>
<h5 dir="auto">Expected Results:</h5>
<p dir="auto">Variable <code class="notranslate">nginx1</code> should have been interpolated in <code class="notranslate">register</code></p>
<h5 dir="auto">Actual Results:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ## Error in play
TASK [debug] *******************************************************************
ok: [my_server] => {
"nginx1": "VARIABLE IS NOT DEFINED!"
}"><pre class="notranslate"><code class="notranslate"> ## Error in play
TASK [debug] *******************************************************************
ok: [my_server] => {
"nginx1": "VARIABLE IS NOT DEFINED!"
}
</code></pre></div> | 1 |
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request"><pre class="notranslate"><code class="notranslate">[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong></p>
<p dir="auto">ngc doesn't work. If I run ngc, I then get the response:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\Users\George\Source\Repos\docs>ngc
module.js:457
throw err;
^
Error: Cannot find module '@angular/compiler'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (C:\Users\George\AppData\Roaming\nvm\v6.7.0\node_modules\@angular\compiler-cli\src\codegen.js:13:16)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)"><pre class="notranslate"><code class="notranslate">C:\Users\George\Source\Repos\docs>ngc
module.js:457
throw err;
^
Error: Cannot find module '@angular/compiler'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (C:\Users\George\AppData\Roaming\nvm\v6.7.0\node_modules\@angular\compiler-cli\src\codegen.js:13:16)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
</code></pre></div>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">ngc to work as described in the docs.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p>
<p dir="auto">I assume this is something with my system, but:</p>
<ol dir="auto">
<li><code class="notranslate">npm install @angular/compiler-cli typescript@next @angular/platform-server @angular/compiler</code></li>
<li><code class="notranslate">ngc</code> (in same dir as above)</li>
</ol>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p>
<p dir="auto">Use AOT compilation<br>
<strong>Please tell us about your environment:</strong></p>
<p dir="auto">Windows 10 Pro, Command Prompt, npm</p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Angular version:</strong> 2.0.2</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 Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</p>
</li>
<li>
<p dir="auto"><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]</p>
</li>
<li>
<p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = 6.7.0 (x64)</p>
</li>
</ul> | <p dir="auto"><strong>Version Alpha 46, TS</strong></p>
<p dir="auto">When trying to learn the various ways of working with forms I ran into an odd issue where select elements trigger change events twice for the same change when subscribed to the valueChanges observable.</p>
<p dir="auto">If I have a function that changes the value from the model it only fires the change event once as expected.</p>
<p dir="auto">It's pretty short so heres my code:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Component({
selector: 'my-app',
})
@View({
template: `
<h3>Simple Select on App Component</h3>
<form>
<select [ng-form-control]="simpleSelect">
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select>
<button type="button" (click)="changeSelect()">Change Select to 3 From Model</button>
</form>
`,
directives: [FORM_DIRECTIVES]
})
export class App {
simpleSelect: Control = new Control('');
counter: number = 0;
constructor() {
//watch simple select
this.simpleSelect.valueChanges.subscribe((value)=>{
console.log("Simple Select Val:" + value + " and counter:"+this.counter)
this.counter++;
});
};
changeSelect() {
this.simpleSelect.updateValue(3);
}
}"><pre class="notranslate">@<span class="pl-v">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">selector</span>: <span class="pl-s">'my-app'</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
@<span class="pl-v">View</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">template</span>: <span class="pl-s">`</span>
<span class="pl-s"> <h3>Simple Select on App Component</h3></span>
<span class="pl-s"> <form></span>
<span class="pl-s"> <select [ng-form-control]="simpleSelect"></span>
<span class="pl-s"> <option value="1">One</option></span>
<span class="pl-s"> <option value="2">Two</option></span>
<span class="pl-s"> <option value="3">Three</option></span>
<span class="pl-s"> </select></span>
<span class="pl-s"> <button type="button" (click)="changeSelect()">Change Select to 3 From Model</button></span>
<span class="pl-s"> </form></span>
<span class="pl-s"> `</span><span class="pl-kos">,</span>
<span class="pl-c1">directives</span>: <span class="pl-kos">[</span><span class="pl-c1">FORM_DIRECTIVES</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">class</span> <span class="pl-v">App</span> <span class="pl-kos">{</span>
<span class="pl-c1">simpleSelect</span>: <span class="pl-v">Control</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Control</span><span class="pl-kos">(</span><span class="pl-s">''</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c1">counter</span>: <span class="pl-c1">number</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">//watch simple select</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">simpleSelect</span><span class="pl-kos">.</span><span class="pl-c1">valueChanges</span><span class="pl-kos">.</span><span class="pl-en">subscribe</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">value</span><span class="pl-kos">)</span><span class="pl-c1">=></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">"Simple Select Val:"</span> <span class="pl-c1">+</span> <span class="pl-s1">value</span> <span class="pl-c1">+</span> <span class="pl-s">" and counter:"</span><span class="pl-c1">+</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">counter</span><span class="pl-kos">)</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">counter</span><span class="pl-c1">++</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-en">changeSelect</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">simpleSelect</span><span class="pl-kos">.</span><span class="pl-en">updateValue</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-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">And <a href="http://plnkr.co/edit/PVLJrmNHXQpUX3fQVxvc?p=preview" rel="nofollow">Here is a Plunker</a> of this in action.</p>
<p dir="auto">I thought maybe it was something with how simple I was interfacing it so I did it with the FormBuilder and got the same results. I added a text field to see how it's changes effect the form and they work correctly (only fire once)<br>
<a href="http://plnkr.co/edit/yI7ULjWIpow03OxQUS3g?p=preview" rel="nofollow">That Plunker Here</a></p>
<p dir="auto">I'm not sure if I'm doing something incorrectly, but I think the expected behavior is the event to fire only once. I'm not experienced enough to track back whats causing the double bindings so I hoped I could have someone take a look at it...</p> | 0 |
<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.187.0<br>
<strong>System</strong>: linux 3.16.0-31-generic<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Stack Trace</h3>
<p dir="auto">Uncaught Error: EACCES, permission denied '/home/jeff/repos/crud/package.json'</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At /opt/atom/resources/app/node_modules/pathwatcher/lib/file.js:329
Error: EACCES, permission denied '/home/jeff/repos/crud/package.json'
at Error (native)
at Object.fs.openSync (fs.js:503:18)
at Object.module.(anonymous function) [as openSync] (ATOM_SHELL_ASAR.js:118:20)
at Object.fs.writeFileSync (fs.js:1116:15)
at Object.fsPlus.writeFileSync (/opt/atom/resources/app/node_modules/fs-plus/lib/fs-plus.js:243:17)
at File.module.exports.File.writeFileSync (/opt/atom/resources/app/node_modules/pathwatcher/lib/file.js:245:19)
at File.module.exports.File.writeFileWithPrivilegeEscalationSync (/opt/atom/resources/app/node_modules/pathwatcher/lib/file.js:315:21)
at File.module.exports.File.write (/opt/atom/resources/app/node_modules/pathwatcher/lib/file.js:304:12)
at TextBuffer.module.exports.TextBuffer.saveAs (/opt/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:970:17)
at TextBuffer.module.exports.TextBuffer.save (/opt/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:958:19)"><pre class="notranslate"><code class="notranslate">At /opt/atom/resources/app/node_modules/pathwatcher/lib/file.js:329
Error: EACCES, permission denied '/home/jeff/repos/crud/package.json'
at Error (native)
at Object.fs.openSync (fs.js:503:18)
at Object.module.(anonymous function) [as openSync] (ATOM_SHELL_ASAR.js:118:20)
at Object.fs.writeFileSync (fs.js:1116:15)
at Object.fsPlus.writeFileSync (/opt/atom/resources/app/node_modules/fs-plus/lib/fs-plus.js:243:17)
at File.module.exports.File.writeFileSync (/opt/atom/resources/app/node_modules/pathwatcher/lib/file.js:245:19)
at File.module.exports.File.writeFileWithPrivilegeEscalationSync (/opt/atom/resources/app/node_modules/pathwatcher/lib/file.js:315:21)
at File.module.exports.File.write (/opt/atom/resources/app/node_modules/pathwatcher/lib/file.js:304:12)
at TextBuffer.module.exports.TextBuffer.saveAs (/opt/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:970:17)
at TextBuffer.module.exports.TextBuffer.save (/opt/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:958:19)
</code></pre></div>
<h3 dir="auto">Commands</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></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="{
"core": {
"themes": [
"seti-ui",
"seti-syntax"
]
},
"editor": {
"invisibles": {}
}
}"><pre class="notranslate">{
<span class="pl-ent">"core"</span>: {
<span class="pl-ent">"themes"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>seti-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">"editor"</span>: {
<span class="pl-ent">"invisibles"</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
seti-syntax, v0.3.3
seti-ui, v0.6.3
web-browser, v1.4.2
# Dev
No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span>
seti<span class="pl-k">-</span>syntax, v0.<span class="pl-ii">3</span>.<span class="pl-ii">3</span>
seti<span class="pl-k">-</span>ui, v0.<span class="pl-ii">6</span>.<span class="pl-ii">3</span>
web<span class="pl-k">-</span>browser, v1.<span class="pl-ii">4</span>.<span class="pl-ii">2</span>
<span class="pl-c"><span class="pl-c">#</span> Dev</span>
<span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div> | <p dir="auto">[Enter steps to reproduce below:]</p>
<ol dir="auto">
<li>...</li>
<li>...</li>
</ol>
<p dir="auto"><strong>Atom Version</strong>: 0.187.0<br>
<strong>System</strong>: Mac OS X 10.9.5<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Stack Trace</h3>
<p dir="auto">Uncaught Error: EACCES, permission denied '/Users/cavenmitchell/Documents/dump/kiste'</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At /Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:326
Error: EACCES, permission denied '/Users/cavenmitchell/Documents/dump/kiste'
at Error (native)
at Object.fs.mkdirSync (fs.js:752:18)
at Function.sync (/Applications/Atom.app/Contents/Resources/app/node_modules/fs-plus/node_modules/mkdirp/index.js:55:12)
at Object.fsPlus.writeFileSync (/Applications/Atom.app/Contents/Resources/app/node_modules/fs-plus/lib/fs-plus.js:242:14)
at File.module.exports.File.writeFileSync (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:245:19)
at File.module.exports.File.writeFileWithPrivilegeEscalationSync (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:315:21)
at File.module.exports.File.write (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:304:12)
at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:970:17)
at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:958:19)
at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:621:26)"><pre class="notranslate"><code class="notranslate">At /Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:326
Error: EACCES, permission denied '/Users/cavenmitchell/Documents/dump/kiste'
at Error (native)
at Object.fs.mkdirSync (fs.js:752:18)
at Function.sync (/Applications/Atom.app/Contents/Resources/app/node_modules/fs-plus/node_modules/mkdirp/index.js:55:12)
at Object.fsPlus.writeFileSync (/Applications/Atom.app/Contents/Resources/app/node_modules/fs-plus/lib/fs-plus.js:242:14)
at File.module.exports.File.writeFileSync (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:245:19)
at File.module.exports.File.writeFileWithPrivilegeEscalationSync (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:315:21)
at File.module.exports.File.write (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:304:12)
at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:970:17)
at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:958:19)
at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:621:26)
</code></pre></div>
<h3 dir="auto">Commands</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -0:00.7 core:close (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-atom-dark-syntax.theme-atom-dark-ui)"><pre class="notranslate"><code class="notranslate"> -0:00.7 core:close (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-atom-dark-syntax.theme-atom-dark-ui)
</code></pre></div>
<h3 dir="auto">Config</h3>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"core": {
"projectHome": "/users/cavenmitchell/projects"
},
"editor": {
"invisibles": {}
}
}"><pre class="notranslate">{
<span class="pl-ent">"core"</span>: {
<span class="pl-ent">"projectHome"</span>: <span class="pl-s"><span class="pl-pds">"</span>/users/cavenmitchell/projects<span class="pl-pds">"</span></span>
},
<span class="pl-ent">"editor"</span>: {
<span class="pl-ent">"invisibles"</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
vim-mode, v0.9.0
# Dev
No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span>
vim<span class="pl-k">-</span>mode, v0.<span class="pl-ii">9</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 |
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.1.1</li>
<li>Operating System / Platform => Linux</li>
<li>Compiler => gcc/g++</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I'm trying to load the pretrained <a href="http://download.tensorflow.org/models/deeplabv3_cityscapes_train_2018_02_06.tar.gz" rel="nofollow">DeepLabv3+ xception_65 model</a> available from <a href="https://github.com/tensorflow/models/blob/master/research/deeplab/g3doc/model_zoo.md#deeplab-models-trained-on-cityscapes">Tensorflow repository</a> using OpenCV DNN C++. It throws the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.1.1) /content/opencv-4.1.1/modules/dnn/src/tensorflow/tf_importer.cpp:544: error: (-2:Unspecified error) Input layer not found: Shape_4 in function 'connect'"><pre class="notranslate"><code class="notranslate">terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.1.1) /content/opencv-4.1.1/modules/dnn/src/tensorflow/tf_importer.cpp:544: error: (-2:Unspecified error) Input layer not found: Shape_4 in function 'connect'
</code></pre></div>
<h5 dir="auto">Steps to reproduce</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#include <opencv2/opencv.hpp>
#include <opencv2/dnn.hpp>
#include "iostream"
#include <opencv2/dnn/layer.details.hpp> // CV_DNN_REGISTER_LAYER_CLASS
using namespace cv;
using namespace cv::dnn;
int main()
{
// Original frozen model
//std::string model = "deeplabv3_cityscapes_train/frozen_inference_graph.pb";
// Read image
cv::Mat imgOrig = cv::imread("000001.png", cv::IMREAD_COLOR);
imgOrig.convertTo(imgOrig, CV_8UC3);
// Resize image
cv::Mat img;
cv::resize(imgOrig, img, cv::Size(513, 513));
// Read model
cv::dnn::Net graph = cv::dnn::readNetFromTensorflow(model);
// Get blob from image
cv::Mat blob = cv::dnn::blobFromImage(img, 4.0, cv::Size(513, 513), cv::Scalar(), true, false);
// Set the input tensor
std::string inBlobName = "ImageTensor";
graph.setInput(blob, inBlobName);
cv::Mat detectionOut = graph.forward();
std::cout << "Worked fine!";
return 0;
}"><pre class="notranslate"><code class="notranslate">#include <opencv2/opencv.hpp>
#include <opencv2/dnn.hpp>
#include "iostream"
#include <opencv2/dnn/layer.details.hpp> // CV_DNN_REGISTER_LAYER_CLASS
using namespace cv;
using namespace cv::dnn;
int main()
{
// Original frozen model
//std::string model = "deeplabv3_cityscapes_train/frozen_inference_graph.pb";
// Read image
cv::Mat imgOrig = cv::imread("000001.png", cv::IMREAD_COLOR);
imgOrig.convertTo(imgOrig, CV_8UC3);
// Resize image
cv::Mat img;
cv::resize(imgOrig, img, cv::Size(513, 513));
// Read model
cv::dnn::Net graph = cv::dnn::readNetFromTensorflow(model);
// Get blob from image
cv::Mat blob = cv::dnn::blobFromImage(img, 4.0, cv::Size(513, 513), cv::Scalar(), true, false);
// Set the input tensor
std::string inBlobName = "ImageTensor";
graph.setInput(blob, inBlobName);
cv::Mat detectionOut = graph.forward();
std::cout << "Worked fine!";
return 0;
}
</code></pre></div>
<hr>
<p dir="auto">Even when I use <a href="https://drive.google.com/drive/folders/1B83G3uA-OP18j0Rr9so343gSBbxaio5x?usp=sharing" rel="nofollow"><code class="notranslate">pbtxt</code></a> file as well while loading model by<br>
<code class="notranslate">cv::dnn::Net graph = cv::dnn::readNetFromTensorflow(model, pbtxt_file);</code> created using</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Read the graph.
with tf.gfile.FastGFile('deeplabv3_cityscapes_train/frozen_inference_graph.pb', 'rb') as f:
graph_def = tf.GraphDef()
graph_def.ParseFromString(f.read())
# Remove Const nodes.
for i in reversed(range(len(graph_def.node))):
if graph_def.node[i].op == 'Const':
del graph_def.node[i]
for attr in ['T', 'data_format', 'Tshape', 'N', 'Tidx', 'Tdim',
'use_cudnn_on_gpu', 'Index', 'Tperm', 'is_training',
'Tpaddings']:
if attr in graph_def.node[i].attr:
del graph_def.node[i].attr[attr]
# Save as text.
tf.train.write_graph(graph_def, "", "frozen_inference_graph.pbtxt", as_text=True)"><pre class="notranslate"><code class="notranslate"># Read the graph.
with tf.gfile.FastGFile('deeplabv3_cityscapes_train/frozen_inference_graph.pb', 'rb') as f:
graph_def = tf.GraphDef()
graph_def.ParseFromString(f.read())
# Remove Const nodes.
for i in reversed(range(len(graph_def.node))):
if graph_def.node[i].op == 'Const':
del graph_def.node[i]
for attr in ['T', 'data_format', 'Tshape', 'N', 'Tidx', 'Tdim',
'use_cudnn_on_gpu', 'Index', 'Tperm', 'is_training',
'Tpaddings']:
if attr in graph_def.node[i].attr:
del graph_def.node[i].attr[attr]
# Save as text.
tf.train.write_graph(graph_def, "", "frozen_inference_graph.pbtxt", as_text=True)
</code></pre></div>
<p dir="auto">the error is same.</p> | <h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.0</li>
<li>Operating System / Platform => Ubuntu 16.04</li>
<li>Compiler => cmake</li>
<li>Tensorflow => 1.13.1</li>
<li>Python => 3.5</li>
<li>protobuf => 3.6.1</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.0.0) /home/cas/work/opencv-4.0.0/modules/dnn/src/tensorflow/tf_importer.cpp:1155: error: (-213:The function/feature is not implemented) Unsupported squeeze configuration in function 'populateNet'</p>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">when i run the codes below, above problem occurred:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#include <string>
#include <iostream>
#include <fstream>
#include <opencv2/opencv.hpp>
#include <opencv2/dnn.hpp>
#include <opencv2/dnn/dnn.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/core/utils/filesystem.hpp>
using namespace std;
using namespace cv;
int main()
{
cv::Mat src;
src = imread("/home/cas/work/readpb_opencv/src/opencv_pb/test_image/33.jpg");
string weights = "/home/cas/work/readpb_opencv/src/opencv_pb/model/step13000.pb";
string prototxt = "/home/cas/work/readpb_opencv/src/opencv_pb/model/step13000_graph.pbtxt";
dnn::Net net = cv::dnn::readNetFromTensorflow(weights, prototxt);
cv::Mat blob = cv::dnn::blobFromImage(src,1.0,cv::Size(640, 480),cv::Scalar(),true,false,CV_8U);
net.setInput(blob);
Mat output = net.forward();
imshow("result",output);
waitKey(0);
return 0;
}"><pre class="notranslate"><code class="notranslate">#include <string>
#include <iostream>
#include <fstream>
#include <opencv2/opencv.hpp>
#include <opencv2/dnn.hpp>
#include <opencv2/dnn/dnn.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/core/utils/filesystem.hpp>
using namespace std;
using namespace cv;
int main()
{
cv::Mat src;
src = imread("/home/cas/work/readpb_opencv/src/opencv_pb/test_image/33.jpg");
string weights = "/home/cas/work/readpb_opencv/src/opencv_pb/model/step13000.pb";
string prototxt = "/home/cas/work/readpb_opencv/src/opencv_pb/model/step13000_graph.pbtxt";
dnn::Net net = cv::dnn::readNetFromTensorflow(weights, prototxt);
cv::Mat blob = cv::dnn::blobFromImage(src,1.0,cv::Size(640, 480),cv::Scalar(),true,false,CV_8U);
net.setInput(blob);
Mat output = net.forward();
imshow("result",output);
waitKey(0);
return 0;
}
</code></pre></div>
<p dir="auto">the way i get the 'step13000_graph.pbtxt' is :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import tensorflow as tf
# Read the graph.
with tf.gfile.FastGFile('/home/cas/work/readpb_opencv/src/opencv_pb/model/step13000.pb','rb') as f:
graph_def = tf.GraphDef()
graph_def.ParseFromString(f.read())
# Remove Const nodes.
for i in reversed(range(len(graph_def.node))):
if graph_def.node[i].op == 'Const':
del graph_def.node[i]
for attr in ['T', 'data_format', 'Tshape', 'N', 'Tidx', 'Tdim',
'use_cudnn_on_gpu', 'Index', 'Tperm', 'is_training',
'Tpaddings']:
if attr in graph_def.node[i].attr:
del graph_def.node[i].attr[attr]
# Save as text.
tf.train.write_graph(graph_def, "", "/home/cas/work/readpb_opencv/src/opencv_pb/model/step13000_graph.pbtxt", as_text=True)"><pre class="notranslate"><code class="notranslate">import tensorflow as tf
# Read the graph.
with tf.gfile.FastGFile('/home/cas/work/readpb_opencv/src/opencv_pb/model/step13000.pb','rb') as f:
graph_def = tf.GraphDef()
graph_def.ParseFromString(f.read())
# Remove Const nodes.
for i in reversed(range(len(graph_def.node))):
if graph_def.node[i].op == 'Const':
del graph_def.node[i]
for attr in ['T', 'data_format', 'Tshape', 'N', 'Tidx', 'Tdim',
'use_cudnn_on_gpu', 'Index', 'Tperm', 'is_training',
'Tpaddings']:
if attr in graph_def.node[i].attr:
del graph_def.node[i].attr[attr]
# Save as text.
tf.train.write_graph(graph_def, "", "/home/cas/work/readpb_opencv/src/opencv_pb/model/step13000_graph.pbtxt", as_text=True)
</code></pre></div>
<p dir="auto">Any help in resolving this would be greatly appreciated. Thanks !</p> | 1 |
<p dir="auto">In pull request name, there is [WIP], [MRG] and in commit, there is ENH, FIX, TST, DOC, MAINT, ...</p> | <p dir="auto">The documentation for this project looks fantastic. I'm new to ML but I'd love to have a PDF copy of the docs which I can read along with text books on the subject.</p>
<p dir="auto">I just spend half a day trying to do 'make latexpdf' only to find out that pdf functionality hasn't worked in over a year.</p>
<p dir="auto">Can you please just provide a pdf copy of the manual and save lots of people lots of time and frustration. Even the sourceforge email lists are full of people asking for the pdf.</p> | 0 |
<p dir="auto">The referenced control is Select Field:<br>
<a href="http://www.material-ui.com/#/components/select-field" rel="nofollow">http://www.material-ui.com/#/components/select-field</a></p>
<p dir="auto">Select Field is a great component, but it lacks a feature that would be useful for a lot of use cases. It would be great to be able to select more than one item from the dropdown list.</p>
<p dir="auto">For example, if "multiselect" mode is enabled, dropdown could be rendered as a list of checkboxes and the dropdown value would be an array of currently selected items.</p>
<p dir="auto">Optionally, it would be nice to show comma-separated list of currently selected items as the text of closed SelectField. (Tolerating the current width of the control and showing all values in tooltip)</p> | <p dir="auto">Hello,</p>
<p dir="auto">I am utilizing select fields and auto complete a lot in my app and I'd like to know if there are plans for adding multi-select for these fields. I think multi-select is widely required feature that a lot of developers can benefit from.</p>
<p dir="auto">Thanks!</p> | 1 |
<p dir="auto">When I split my view horizontally, I find the duplicate status bars to be somewhat wasteful of real estate. I'm wondering if it wouldn't be better to have a single status bar at the bottom that changes its display depending on the active editor, like Sublime has. We already have the filename in the tab bar. Although this may be sad for Emacs people who like to disable the tabs.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/0906d9b8ff9d61e95c6e5aa41fc8f925366e19ab05ebc20bf85401d0115455fe/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313738392f3131323537312f36336365323734652d366232322d313165322d396164362d3464323234353030383961652e706e67"><img src="https://camo.githubusercontent.com/0906d9b8ff9d61e95c6e5aa41fc8f925366e19ab05ebc20bf85401d0115455fe/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313738392f3131323537312f36336365323734652d366232322d313165322d396164362d3464323234353030383961652e706e67" alt="Screen Shot 2013-01-30 at 2 16 51 PM" data-canonical-src="https://f.cloud.github.com/assets/1789/112571/63ce274e-6b22-11e2-9ad6-4d22450089ae.png" style="max-width: 100%;"></a></p> | <p dir="auto">Since upgrading to 0.123 (or maybe 0.124) I have been experiencing very high CPU usage from Atom Helper. Running on Macbook Pro with OSX 10.9.4. Have been using Atom for several months and have not experienced this problem before. Unsure how to troubleshoot more.</p> | 0 |
<p dir="auto">Context: <a href="http://127.0.0.1:3999/flowcontrol/13" rel="nofollow">http://127.0.0.1:3999/flowcontrol/13</a></p>
<p dir="auto">Hi, just going through the Golang tour (very cool, btw) and was confused by the sentence "To learn more about defer statements read this blog post." because there was no link to a blog post. Then I realized that "blog post" was an undecorated link. It would be clearer if the link were underlined or somehow called out.</p> | <p dir="auto">Context: <a href="https://tour.golang.org/" rel="nofollow">https://tour.golang.org/</a></p>
<p dir="auto">Links in the slides are black, as the text, and it's hard to differentiate them.</p> | 1 |
<p dir="auto">Hello Typescipters,</p>
<p dir="auto">I'm using the <code class="notranslate">Q</code> library with its typings installed via <code class="notranslate">tsd</code>.<br>
In a module I'm using</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/// <reference path="../typings/q/Q.d.ts"/>
// ..."><pre class="notranslate"><span class="pl-c">/// <reference path="../typings/q/Q.d.ts"/></span>
<span class="pl-c">// ...</span></pre></div>
<p dir="auto">compiled with</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="tsc -m commonjs --out test.js test.ts
tsc --version
message TS6029: Version 1.4.1.0"><pre class="notranslate">tsc -m commonjs --out test.js test.ts
tsc --version
message TS6029: Version 1.4.1.0</pre></div>
<p dir="auto">and would like <code class="notranslate">test.js</code> to contain a line like</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var Q = require("path/to/q"); // to be executed by nodejs"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-v">Q</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"path/to/q"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// to be executed by nodejs</span></pre></div>
<p dir="auto">where <code class="notranslate">path/to/q</code> points to the javascript file and has nothing to do with <code class="notranslate">../typings/q/Q.d.ts</code>.<br>
Using <code class="notranslate">import Q = require("path/to/q");</code> won't work as it probably expects a typescript module.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="builder.ts(5,32): error TS2307: Cannot find external module './../bower_components/q/q'."><pre class="notranslate">builder.ts(5,32): error TS2307: Cannot find external module <span class="pl-s"><span class="pl-pds">'</span>./../bower_components/q/q<span class="pl-pds">'</span></span>.</pre></div>
<p dir="auto">I haven't found how to achieve this without rolling out some hackish <em>ad-hoc</em> source markup/parse/replace. Have I overlooked something?</p>
<p dir="auto">In a way I'm trying to "link" to the library code (in the C meaning) with node's <code class="notranslate">require</code> after having included the declarations (references to the <code class="notranslate">d.ts</code>).</p>
<p dir="auto">If this is not currently possible, may I suggest a pass-through version of <code class="notranslate">require()</code> which kicks in when <code class="notranslate">-m commonjs</code> is used? Perhaps <code class="notranslate">js_require("blabla")</code> which would be emitted as node's <code class="notranslate">require("blabla")</code>. This would make it a lot easier to leverage other tools which analyze <code class="notranslate">require</code> statements.</p>
<p dir="auto">Greetings</p> | <p dir="auto">After seeing <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="107380107" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/4884" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/4884/hovercard" href="https://github.com/microsoft/TypeScript/issues/4884">#4884</a>, I'd like to ask about this. Having <code class="notranslate">diagnosticInformationMap.generated.ts</code> in the repo seems fine since it's part of the build, but since we want to check if for duplicate IDs we should consider incorporating the generation of the code into the standard build process, rather than a script run by hand as-needed.</p>
<p dir="auto">The only downsides I can see are that editor intellisense for the Diagnostic object won't work after a clean clone until after a build or pre-build is run, and we'll lose the ability to simply run <code class="notranslate">tsc</code> over the compiler folder and get a functioning compiler (you have to generate the generated code first).</p>
<p dir="auto">As far as upsides go, adopting this strategy should result in fewer merge conflicts in diagnostic messages and, additionally, will add a warning in the form of a failed build in a PRs when someone tries to add a message with an identical message id to one in master.</p>
<p dir="auto">To do this, we should remove the generated code file from the repo, add the filename to the <code class="notranslate">.gitignore</code>, and make the script to rebuild it run as part of the build process.</p>
<p dir="auto">Does anyone feel strongly about this?</p> | 0 |
<p dir="auto">Exception when using some colors in custom pallete</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">At least: No exception.</p>
<h2 dir="auto">Current Behavior</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError
Cannot read property 'charAt' of undefined
decomposeColor
https://1325w0wqk7.codesandbox.io/node_modules/material-ui/styles/colorManipulator.js:80:13
lighten
https://1325w0wqk7.codesandbox.io/node_modules/material-ui/styles/colorManipulator.js:226:11
createPalette
https://1325w0wqk7.codesandbox.io/node_modules/material-ui/styles/createPalette.js:144:51
createMuiTheme
https://1325w0wqk7.codesandbox.io/node_modules/material-ui/styles/createMuiTheme.js:71:45"><pre class="notranslate"><code class="notranslate">TypeError
Cannot read property 'charAt' of undefined
decomposeColor
https://1325w0wqk7.codesandbox.io/node_modules/material-ui/styles/colorManipulator.js:80:13
lighten
https://1325w0wqk7.codesandbox.io/node_modules/material-ui/styles/colorManipulator.js:226:11
createPalette
https://1325w0wqk7.codesandbox.io/node_modules/material-ui/styles/createPalette.js:144:51
createMuiTheme
https://1325w0wqk7.codesandbox.io/node_modules/material-ui/styles/createMuiTheme.js:71:45
</code></pre></div>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li><a href="https://codesandbox.io/s/1325w0wqk7" rel="nofollow">https://codesandbox.io/s/1325w0wqk7</a></li>
<li>See <code class="notranslate">demo.js</code></li>
<li>Try <code class="notranslate">purple</code> - it works</li>
<li>Try <code class="notranslate">orange</code>, <code class="notranslate">deepOrange</code>, <code class="notranslate">lightBlue</code> (and maybe some other) - it throws TypeError</li>
</ol>
<h2 dir="auto">Context</h2>
<h2 dir="auto">Your Environment</h2>
<p dir="auto">See <code class="notranslate">package.json</code></p>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>next</td>
</tr>
<tr>
<td>React</td>
<td>latest</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome</td>
</tr>
</tbody>
</table> | <p dir="auto">In certain screen width scroll appears even when it shouldn't, when the number of lines is less then the defined number of maxRows.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">I expect scroll to appear only when the number of lines in a multiline text field is bigger then the defined maxRows.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">I defined maxRows to be 8. When I make the screen narrow scroll can appear when there are only 7 rows, giving a viewport of only 6 rows.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">1.Define max rows of 8.<br>
2. define width by percentage.<br>
3.add text,<br>
4.and change the width of the window.</p>
<h2 dir="auto">Context</h2>
<p dir="auto">I'm trying to make a to do app with some multiline text fields. The app is responsive.</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>next</td>
</tr>
<tr>
<td>React</td>
<td>16</td>
</tr>
<tr>
<td>browser</td>
<td>chrome</td>
</tr>
<tr>
<td>etc</td>
<td>windows 10</td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">I think the issue is self explanatory when looking at the code below. The second boolean should be False.<br>
Is this intended? If so, should there be some kind of Warning for the user? I couldn't figure why my code wasn't working until I realized that I have to convert my numpy array to a normal list.</p>
<h3 dir="auto">Reproducing code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
>>> a = np.array([['a','b','c'], ['d','e','f']])
>>> ['a','b','c'] in a
True
>>> ['c','b','a'] in a
True```
### Numpy/Python version information:
1.18.1 3.6.9 (default, Apr 18 2020, 01:56:04)
[GCC 8.4.0]"><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-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([[<span class="pl-s">'a'</span>,<span class="pl-s">'b'</span>,<span class="pl-s">'c'</span>], [<span class="pl-s">'d'</span>,<span class="pl-s">'e'</span>,<span class="pl-s">'f'</span>]])
<span class="pl-c1">>></span><span class="pl-c1">></span> [<span class="pl-s">'a'</span>,<span class="pl-s">'b'</span>,<span class="pl-s">'c'</span>] <span class="pl-c1">in</span> <span class="pl-s1">a</span>
<span class="pl-c1">True</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> [<span class="pl-s">'c'</span>,<span class="pl-s">'b'</span>,<span class="pl-s">'a'</span>] <span class="pl-c1">in</span> <span class="pl-s1">a</span>
<span class="pl-c1">True</span>`<span class="pl-s">``</span>
<span class="pl-c">### Numpy/Python version information:</span>
<span class="pl-c1">1.18</span>.<span class="pl-c1">1</span> <span class="pl-c1">3.6</span>.<span class="pl-c1">9</span> (<span class="pl-s1">default</span>, <span class="pl-v">Apr</span> <span class="pl-c1">18</span> <span class="pl-c1">2020</span>, <span class="pl-c1">01</span>:<span class="pl-c1">56</span>:<span class="pl-c1">04</span>)
[<span class="pl-v">GCC</span> <span class="pl-c1">8.4</span><span class="pl-c1">.0</span>]</pre></div> | <p dir="auto">The <code class="notranslate">__contains__</code> method is written to be used for a single array element. However for example in list of list, <code class="notranslate">__contains__</code> does a check more equivalent to subarrays. <code class="notranslate">in</code> must return a single boolean.</p>
<p dir="auto">After <a href="https://mail.python.org/pipermail/numpy-discussion/2013-February/065562.html" rel="nofollow">some discussion on the list</a> (<a href="http://numpy-discussion.10968.n7.nabble.com/What-should-np-ndarray-contains-do-td32964.html" rel="nofollow">nabble</a>), there are three main possibilities:</p>
<ol dir="auto">
<li>The first item must be an element. That means that an array <code class="notranslate">a</code> for <code class="notranslate">a in b</code> will normally be a simple error. (As nathaniel mentioned on the list).</li>
<li>Do a list of list like comparison. I.e. <code class="notranslate">in</code> operates on the first dimension.</li>
<li>Do some kind of subarray matching (there are many different versions of this allowing different things)</li>
</ol>
<p dir="auto">Point 2. seems wrong, since arrays are not list of lists. Point 3. has some merit, it can go as far as allowing things similar to strings <code class="notranslate">'a' in 'cat'</code>, however there are some problems with the details. Point 1. is the simplest and safest solution. One problem with 2. is that for object arrays it can be not quite clear how to interpret for example a tuple/list.</p>
<p dir="auto">At this time (there was not much discussion yet though), it seems that the best solution is to just raise an error (i.e. solution 1.). Finding subarrays is better suited for a dedicated function.</p> | 1 |
<p dir="auto"><strong>Describe the issue</strong><br>
I was curious as to why the regex looks for 'on' in the get parameters. I had a parameter called 'onSiteTestComplete=false' but I had to change it to 'isOnSiteTestComplete=false'. Thanks!</p>
<p dir="auto"><a href="https://github.com/axios/axios/blob/master/lib/helpers/isValidXss.js">https://github.com/axios/axios/blob/master/lib/helpers/isValidXss.js</a></p>
<p dir="auto"><strong>Environment:</strong></p>
<ul dir="auto">
<li>Axios Version 0.19.0</li>
<li>OS: OSX 10.15.2 Catlina</li>
<li>Browser Chrome Version 79.0.3945.117 (Official Build) (64-bit)</li>
</ul> | <p dir="auto">It seems that axios v0.19.1 introduced a new bug.</p>
<p dir="auto">The bug comes from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="506498428" data-permission-text="Title is private" data-url="https://github.com/axios/axios/issues/2464" data-hovercard-type="pull_request" data-hovercard-url="/axios/axios/pull/2464/hovercard" href="https://github.com/axios/axios/pull/2464">#2464</a></p>
<p dir="auto">All urls containing <code class="notranslate">javascript</code>keyword is throwing XSS error. So, all following urls cannot be used in axios any more:</p>
<ul dir="auto">
<li><a href="https://www.javascript.com" rel="nofollow">https://www.javascript.com</a></li>
<li><a href="https://stackoverflow.com/questions/tagged/javascript" rel="nofollow">https://stackoverflow.com/questions/tagged/javascript</a></li>
<li><a href="https://www.google.com/search?q=javascript" rel="nofollow">https://www.google.com/search?q=javascript</a></li>
</ul>
<p dir="auto">Here is a link to regexp: <a href="https://regexr.com/4rsst" rel="nofollow">https://regexr.com/4rsst</a></p>
<p dir="auto">Expected behavior: axios should accept <code class="notranslate">javascript</code> in urls</p> | 1 |
<p dir="auto">It is either very hard (I don't know how to do it) or impossible to create an unboxed closure that takes a mutable reference. Here are my attempts, with the resulting error messages inline:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#![feature(unboxed_closures)]
#![feature(overloaded_calls)]
// test.rs:4:23: 4:31 error: missing lifetime specifier [E0106]
// test.rs:4 fn doit<T, F: FnOnce<(&mut int,), T>>(f: F) -> T {
// ^~~~~~~~
// error: aborting due to previous error
fn doit<T, F: FnOnce<(&mut int,), T>>(f: F) -> T {
let x = 4;
f(&mut x,)
}
fn main() {
let r: int = doit(|: i: &mut int| i + 1);
println!("x = {}", r);
}
/////////////////////////////////////////////////////////////////////////
#![feature(unboxed_closures)]
#![feature(overloaded_calls)]
fn doit<'a, T, F: FnOnce<(&'a mut int,), T>>(f: F) -> T {
let x = 4;
// test.rs:26:10: 26:11 error: `x` does not live long enough
// test.rs:26 f(&mut x,)
// ^
// test.rs:24:57: 27:2 note: reference must be valid for the lifetime 'a as defined on the block at 24:56...
// test.rs:24 fn doit<'a, T, F: FnOnce<(&'a mut int,), T>>(f: F) -> T {
// test.rs:25 let x = 4;
// test.rs:26 f(&mut x,)
// test.rs:27 }
// test.rs:24:57: 27:2 note: ...but borrowed value is only valid for the block at 24:56
// test.rs:24 fn doit<'a, T, F: FnOnce<(&'a mut int,), T>>(f: F) -> T {
// test.rs:25 let x = 4;
// test.rs:26 f(&mut x,)
// test.rs:27 }
// error: aborting due to previous error
f(&mut x,)
}
fn main() {
let r: int = doit(|: i: &mut int| *i + 1);
println!("x = {}", r);
}"><pre class="notranslate"><span class="pl-c1">#!<span class="pl-kos">[</span>feature<span class="pl-kos">(</span>unboxed_closures<span class="pl-kos">)</span><span class="pl-kos">]</span></span>
<span class="pl-c1">#!<span class="pl-kos">[</span>feature<span class="pl-kos">(</span>overloaded_calls<span class="pl-kos">)</span><span class="pl-kos">]</span></span>
<span class="pl-c">// test.rs:4:23: 4:31 error: missing lifetime specifier [E0106]</span>
<span class="pl-c">// test.rs:4 fn doit<T, F: FnOnce<(&mut int,), T>>(f: F) -> T {</span>
<span class="pl-c">// ^~~~~~~~</span>
<span class="pl-c">// error: aborting due to previous error</span>
<span class="pl-k">fn</span> <span class="pl-en">doit</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">F</span><span class="pl-kos">:</span> <span class="pl-smi">FnOnce</span><span class="pl-kos"><</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-k">mut</span> <span class="pl-smi">int</span><span class="pl-kos">,</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-smi">T</span><span class="pl-kos">></span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-s1">f</span><span class="pl-kos">:</span> <span class="pl-smi">F</span><span class="pl-kos">)</span> -> <span class="pl-smi">T</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> x = <span class="pl-c1">4</span><span class="pl-kos">;</span>
<span class="pl-en">f</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-k">mut</span> x<span class="pl-kos">,</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> r<span class="pl-kos">:</span> <span class="pl-smi">int</span> = <span class="pl-en">doit</span><span class="pl-kos">(</span>|<span class="pl-kos">:</span> <span class="pl-s1">i</span><span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-k">mut</span> <span class="pl-smi">int</span>| i + <span class="pl-c1">1</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">"x = {}"</span>, r<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-c">/////////////////////////////////////////////////////////////////////////</span>
<span class="pl-c1">#!<span class="pl-kos">[</span>feature<span class="pl-kos">(</span>unboxed_closures<span class="pl-kos">)</span><span class="pl-kos">]</span></span>
<span class="pl-c1">#!<span class="pl-kos">[</span>feature<span class="pl-kos">(</span>overloaded_calls<span class="pl-kos">)</span><span class="pl-kos">]</span></span>
<span class="pl-k">fn</span> <span class="pl-en">doit</span><span class="pl-kos"><</span><span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">,</span> <span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">F</span><span class="pl-kos">:</span> <span class="pl-smi">FnOnce</span><span class="pl-kos"><</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-c1">'</span><span class="pl-ent">a</span> <span class="pl-k">mut</span> <span class="pl-smi">int</span><span class="pl-kos">,</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-smi">T</span><span class="pl-kos">></span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-s1">f</span><span class="pl-kos">:</span> <span class="pl-smi">F</span><span class="pl-kos">)</span> -> <span class="pl-smi">T</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> x = <span class="pl-c1">4</span><span class="pl-kos">;</span>
<span class="pl-c">// test.rs:26:10: 26:11 error: `x` does not live long enough</span>
<span class="pl-c">// test.rs:26 f(&mut x,)</span>
<span class="pl-c">// ^</span>
<span class="pl-c">// test.rs:24:57: 27:2 note: reference must be valid for the lifetime 'a as defined on the block at 24:56...</span>
<span class="pl-c">// test.rs:24 fn doit<'a, T, F: FnOnce<(&'a mut int,), T>>(f: F) -> T {</span>
<span class="pl-c">// test.rs:25 let x = 4;</span>
<span class="pl-c">// test.rs:26 f(&mut x,)</span>
<span class="pl-c">// test.rs:27 }</span>
<span class="pl-c">// test.rs:24:57: 27:2 note: ...but borrowed value is only valid for the block at 24:56</span>
<span class="pl-c">// test.rs:24 fn doit<'a, T, F: FnOnce<(&'a mut int,), T>>(f: F) -> T {</span>
<span class="pl-c">// test.rs:25 let x = 4;</span>
<span class="pl-c">// test.rs:26 f(&mut x,)</span>
<span class="pl-c">// test.rs:27 }</span>
<span class="pl-c">// error: aborting due to previous error</span>
<span class="pl-en">f</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-k">mut</span> x<span class="pl-kos">,</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> r<span class="pl-kos">:</span> <span class="pl-smi">int</span> = <span class="pl-en">doit</span><span class="pl-kos">(</span>|<span class="pl-kos">:</span> <span class="pl-s1">i</span><span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-k">mut</span> <span class="pl-smi">int</span>| <span class="pl-c1">*</span>i + <span class="pl-c1">1</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">"x = {}"</span>, r<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div> | <p dir="auto">This is on the 1.0 schedule, but there is no issue and no RFC.</p> | 1 |
<p dir="auto">While trying to optimize training of a network by moving most work to the GPU, I encountered the following error below. Although this references a variable defined in the batch_normalization helper class I've used, removing that class (replacing all calls to it with an identify function) results in a similar error elsewhere.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "train_resnet.py", line 106, in <module>
tf.app.run()
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/platform/app.py", line 30, in run
sys.exit(main(sys.argv))
File "train_resnet.py", line 103, in main
run_training()
File "train_resnet.py", line 97, in run_training
sess.run(tf.initialize_all_variables())
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 333, in run
run_metadata_ptr)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 573, in _run
feed_dict_string, options, run_metadata)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 648, in _do_run
target_list, options, run_metadata)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 668, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors.InvalidArgumentError: Cannot assign a device to node 'gradients/resnet_module_1/bn/moments/moments/mean_ss_grad/Maximum/y': Could not satisfy explicit device specification '/device:GPU:0' because no supported kernel for GPU devices is available
[[Node: gradients/resnet_module_1/bn/moments/moments/mean_ss_grad/Maximum/y = Const[_class=["loc:@resnet_module_1/bn/moments/moments/mean_ss"], dtype=DT_INT32, value=Tensor<type: int32 shape: [] values: 1>, _device="/device:GPU:0"]()]]
Caused by op 'gradients/resnet_module_1/bn/moments/moments/mean_ss_grad/Maximum/y', defined at:
File "train_resnet.py", line 106, in <module>
tf.app.run()
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/platform/app.py", line 30, in run
sys.exit(main(sys.argv))
File "train_resnet.py", line 103, in main
run_training()
File "train_resnet.py", line 89, in run_training
train_op = opt.minimize(loss, colocate_gradients_with_ops=True, aggregation_method=2)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/training/optimizer.py", line 193, in minimize
grad_loss=grad_loss)
File "/data/Ray/policy_network/gpu/clipopt.py", line 9, in compute_gradients
*args, **kwargs)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/training/optimizer.py", line 250, in compute_gradients
colocate_gradients_with_ops=colocate_gradients_with_ops)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/ops/gradients.py", line 481, in gradients
in_grads = _AsList(grad_fn(op, *out_grads))
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/ops/math_grad.py", line 41, in _SumGrad
tile_scaling = _safe_shape_div(input_shape, output_shape_kept_dims)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/ops/math_grad.py", line 33, in _safe_shape_div
return x // math_ops.maximum(y, 1)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/ops/gen_math_ops.py", line 1173, in maximum
result = _op_def_lib.apply_op("Maximum", x=x, y=y, name=name)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/ops/op_def_library.py", line 455, in apply_op
as_ref=input_arg.is_ref)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 620, in convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/ops/constant_op.py", line 179, in _constant_tensor_conversion_function
return constant(v, dtype=dtype, name=name)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/ops/constant_op.py", line 166, in constant
attrs={"value": tensor_value, "dtype": dtype_value}, name=name).outputs[0]
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 2240, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 1224, in __init__
self._traceback = _extract_stack()
...which was originally created as op 'resnet_module_1/bn/moments/moments/mean_ss', defined at:
File "train_resnet.py", line 106, in <module>
tf.app.run()
[elided 1 identical lines from previous traceback]
File "train_resnet.py", line 103, in main
run_training()
File "train_resnet.py", line 77, in run_training
depth=FLAGS.num_features)
File "train_resnet.py", line 45, in model
model = res_3x3_pair(model, depth, "resnet_module_{}".format(idx + 1), training_switch, keep_prob_var)
File "train_resnet.py", line 29, in res_3x3_pair
normed = tf.nn.relu(batch_norm(data, depth, training_switch))
File "/data/Ray/policy_network/gpu/batchnorm.py", line 22, in batch_norm
batch_mean, batch_var = tf.nn.moments(x, [0, 1, 2], name='moments')
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/ops/nn.py", line 712, in moments
name=name)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/ops/nn.py", line 649, in sufficient_statistics
m_ss = math_ops.reduce_sum(m_ss, axes, keep_dims=keep_dims, name="mean_ss")
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/ops/math_ops.py", line 909, in reduce_sum
keep_dims, name=name)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/ops/gen_math_ops.py", line 2087, in _sum
keep_dims=keep_dims, name=name)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/ops/op_def_library.py", line 704, in apply_op
op_def=op_def)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 2240, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 1224, in __init__
self._traceback = _extract_stack()"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "train_resnet.py", line 106, in <module>
tf.app.run()
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/platform/app.py", line 30, in run
sys.exit(main(sys.argv))
File "train_resnet.py", line 103, in main
run_training()
File "train_resnet.py", line 97, in run_training
sess.run(tf.initialize_all_variables())
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 333, in run
run_metadata_ptr)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 573, in _run
feed_dict_string, options, run_metadata)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 648, in _do_run
target_list, options, run_metadata)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 668, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors.InvalidArgumentError: Cannot assign a device to node 'gradients/resnet_module_1/bn/moments/moments/mean_ss_grad/Maximum/y': Could not satisfy explicit device specification '/device:GPU:0' because no supported kernel for GPU devices is available
[[Node: gradients/resnet_module_1/bn/moments/moments/mean_ss_grad/Maximum/y = Const[_class=["loc:@resnet_module_1/bn/moments/moments/mean_ss"], dtype=DT_INT32, value=Tensor<type: int32 shape: [] values: 1>, _device="/device:GPU:0"]()]]
Caused by op 'gradients/resnet_module_1/bn/moments/moments/mean_ss_grad/Maximum/y', defined at:
File "train_resnet.py", line 106, in <module>
tf.app.run()
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/platform/app.py", line 30, in run
sys.exit(main(sys.argv))
File "train_resnet.py", line 103, in main
run_training()
File "train_resnet.py", line 89, in run_training
train_op = opt.minimize(loss, colocate_gradients_with_ops=True, aggregation_method=2)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/training/optimizer.py", line 193, in minimize
grad_loss=grad_loss)
File "/data/Ray/policy_network/gpu/clipopt.py", line 9, in compute_gradients
*args, **kwargs)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/training/optimizer.py", line 250, in compute_gradients
colocate_gradients_with_ops=colocate_gradients_with_ops)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/ops/gradients.py", line 481, in gradients
in_grads = _AsList(grad_fn(op, *out_grads))
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/ops/math_grad.py", line 41, in _SumGrad
tile_scaling = _safe_shape_div(input_shape, output_shape_kept_dims)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/ops/math_grad.py", line 33, in _safe_shape_div
return x // math_ops.maximum(y, 1)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/ops/gen_math_ops.py", line 1173, in maximum
result = _op_def_lib.apply_op("Maximum", x=x, y=y, name=name)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/ops/op_def_library.py", line 455, in apply_op
as_ref=input_arg.is_ref)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 620, in convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/ops/constant_op.py", line 179, in _constant_tensor_conversion_function
return constant(v, dtype=dtype, name=name)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/ops/constant_op.py", line 166, in constant
attrs={"value": tensor_value, "dtype": dtype_value}, name=name).outputs[0]
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 2240, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 1224, in __init__
self._traceback = _extract_stack()
...which was originally created as op 'resnet_module_1/bn/moments/moments/mean_ss', defined at:
File "train_resnet.py", line 106, in <module>
tf.app.run()
[elided 1 identical lines from previous traceback]
File "train_resnet.py", line 103, in main
run_training()
File "train_resnet.py", line 77, in run_training
depth=FLAGS.num_features)
File "train_resnet.py", line 45, in model
model = res_3x3_pair(model, depth, "resnet_module_{}".format(idx + 1), training_switch, keep_prob_var)
File "train_resnet.py", line 29, in res_3x3_pair
normed = tf.nn.relu(batch_norm(data, depth, training_switch))
File "/data/Ray/policy_network/gpu/batchnorm.py", line 22, in batch_norm
batch_mean, batch_var = tf.nn.moments(x, [0, 1, 2], name='moments')
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/ops/nn.py", line 712, in moments
name=name)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/ops/nn.py", line 649, in sufficient_statistics
m_ss = math_ops.reduce_sum(m_ss, axes, keep_dims=keep_dims, name="mean_ss")
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/ops/math_ops.py", line 909, in reduce_sum
keep_dims, name=name)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/ops/gen_math_ops.py", line 2087, in _sum
keep_dims=keep_dims, name=name)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/ops/op_def_library.py", line 704, in apply_op
op_def=op_def)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 2240, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/home/thouis/VENV35/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 1224, in __init__
self._traceback = _extract_stack()
</code></pre></div>
<h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System: Ubuntu 16.06</p>
<p dir="auto">Installed version of CUDA and cuDNN:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-rw-r--r-- 1 root root 189170 May 24 11:22 /usr/local/cuda/lib/libcudadevrt.a
lrwxrwxrwx 1 root root 16 May 24 11:22 /usr/local/cuda/lib/libcudart.so -> libcudart.so.7.5
lrwxrwxrwx 1 root root 19 May 24 11:22 /usr/local/cuda/lib/libcudart.so.7.5 -> libcudart.so.7.5.18
-rwxr-xr-x 1 root root 311596 May 24 11:22 /usr/local/cuda/lib/libcudart.so.7.5.18
-rw-r--r-- 1 root root 558020 May 24 11:22 /usr/local/cuda/lib/libcudart_static.a"><pre class="notranslate"><code class="notranslate">-rw-r--r-- 1 root root 189170 May 24 11:22 /usr/local/cuda/lib/libcudadevrt.a
lrwxrwxrwx 1 root root 16 May 24 11:22 /usr/local/cuda/lib/libcudart.so -> libcudart.so.7.5
lrwxrwxrwx 1 root root 19 May 24 11:22 /usr/local/cuda/lib/libcudart.so.7.5 -> libcudart.so.7.5.18
-rwxr-xr-x 1 root root 311596 May 24 11:22 /usr/local/cuda/lib/libcudart.so.7.5.18
-rw-r--r-- 1 root root 558020 May 24 11:22 /usr/local/cuda/lib/libcudart_static.a
</code></pre></div>
<p dir="auto">If installed from binary pip package, provide:</p>
<p dir="auto">pip installed from May 25 nightly build of Linux GPU version.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python -c "import tensorflow; print(tensorflow.__version__)"
0.8.0"><pre class="notranslate"><code class="notranslate">python -c "import tensorflow; print(tensorflow.__version__)"
0.8.0
</code></pre></div>
<h3 dir="auto">Steps to reproduce</h3>
<ul dir="auto">
<li>grab python files from <a href="https://gist.github.com/thouis/9bbd330a153b1f553fd58743a3ae4c9a">https://gist.github.com/thouis/9bbd330a153b1f553fd58743a3ae4c9a</a></li>
<li><code class="notranslate">python -u -i train_resnet.py --learning_rate 0.005 --num_modules 16 --num_features 192 --summary_dir Workspace --checkpoint_dir Workspace --batch_size 64</code></li>
</ul>
<h3 dir="auto">What have you tried?</h3>
<ol dir="auto">
<li>I tried to cast the values in _safe_shape_div() to int64 in case that was the underlying cause, but that seemed to cause different problems.</li>
</ol>
<h3 dir="auto">Logs or other output that would be helpful</h3>
<p dir="auto">All files (python, run log) at:<br>
<a href="https://gist.github.com/thouis/9bbd330a153b1f553fd58743a3ae4c9a">https://gist.github.com/thouis/9bbd330a153b1f553fd58743a3ae4c9a</a></p> | <p dir="auto">I apologize if this is not actually a issue. When trying to put tf.reduce_mean() on the gpu, I get the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tensorflow.python.framework.errors.InvalidArgumentError: Cannot assign a device to node 'gradients/Mean_grad/mod': Could not satisfy explicit device specification '/device:GPU:0' because no supported kernel for GPU devices is available
[[Node: gradients/Mean_grad/mod = Mod[T=DT_INT32, _device="/device:GPU:0"](gradients/Mean_grad/add, gradients/Mean_grad/Size)]]"><pre class="notranslate"><code class="notranslate">tensorflow.python.framework.errors.InvalidArgumentError: Cannot assign a device to node 'gradients/Mean_grad/mod': Could not satisfy explicit device specification '/device:GPU:0' because no supported kernel for GPU devices is available
[[Node: gradients/Mean_grad/mod = Mod[T=DT_INT32, _device="/device:GPU:0"](gradients/Mean_grad/add, gradients/Mean_grad/Size)]]
</code></pre></div>
<p dir="auto">I am on commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/43a8c49f04a485ffc33b510c27eda77f8f38377c/hovercard" href="https://github.com/tensorflow/tensorflow/commit/43a8c49f04a485ffc33b510c27eda77f8f38377c"><tt>43a8c49</tt></a> from Tue 5/24/2016.</p>
<p dir="auto">You can reproduce this by modifying the mnist/convolutional.py file by putting the tf.reduce_mean() and optimizer.minimize() inside "with tf.device('/gpu:0'):" statements.</p>
<p dir="auto">I am trying to do gradient calculations on their respective gpu towers, but compute_gradients() gets hung up on tf.reduce_mean().</p>
<p dir="auto">Thank you,<br>
Mark</p> | 1 |
<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>
<p dir="auto">PyTorch will soon add bf16 support on GPUs. Where is JAX on that?</p>
<p dir="auto">Will JAX soon add support for bf16 precision on GPUs?</p> | <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 issues.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:</li>
</ul>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import jax
import jax.numpy as jnp
f = lambda x: jnp.square(x).mean()
jf = jax.jit(f)
x = jax.random.uniform(jax.random.PRNGKey(0), shape=(8, 4))
# Start monitoring memory with htop
while True:
try:
# let this run for a bit, notice memory usage doesn't increase
y = jax.hessian(f)(x)
except KeyboardInterrupt:
pass
while True:
# let this run, notice memory usage starts increasing immediately
# also, the memory usage doesn't appear to stop increasing ever
y = jax.hessian(jf)(x)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">jax</span>
<span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">jnp</span>
<span class="pl-s1">f</span> <span class="pl-c1">=</span> <span class="pl-k">lambda</span> <span class="pl-s1">x</span>: <span class="pl-s1">jnp</span>.<span class="pl-en">square</span>(<span class="pl-s1">x</span>).<span class="pl-en">mean</span>()
<span class="pl-s1">jf</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-en">jit</span>(<span class="pl-s1">f</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-s1">random</span>.<span class="pl-en">uniform</span>(<span class="pl-s1">jax</span>.<span class="pl-s1">random</span>.<span class="pl-v">PRNGKey</span>(<span class="pl-c1">0</span>), <span class="pl-s1">shape</span><span class="pl-c1">=</span>(<span class="pl-c1">8</span>, <span class="pl-c1">4</span>))
<span class="pl-c"># Start monitoring memory with htop</span>
<span class="pl-k">while</span> <span class="pl-c1">True</span>:
<span class="pl-k">try</span>:
<span class="pl-c"># let this run for a bit, notice memory usage doesn't increase</span>
<span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-en">hessian</span>(<span class="pl-s1">f</span>)(<span class="pl-s1">x</span>)
<span class="pl-k">except</span> <span class="pl-v">KeyboardInterrupt</span>:
<span class="pl-k">pass</span>
<span class="pl-k">while</span> <span class="pl-c1">True</span>:
<span class="pl-c"># let this run, notice memory usage starts increasing immediately</span>
<span class="pl-c"># also, the memory usage doesn't appear to stop increasing ever</span>
<span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-en">hessian</span>(<span class="pl-s1">jf</span>)(<span class="pl-s1">x</span>)</pre></div>
<p dir="auto">Also, note that the equivalent code with <code class="notranslate">jax.grad</code> (or <code class="notranslate">jax.jacfwd</code> for multidimensional functions) replacing <code class="notranslate">jax.hessian</code> <em>does not</em> cause a memory leak.</p>
<p dir="auto">As a result of this leak, my python process ends up getting killed by my OS (due to OOM), so I don't ever see any python or jax traces.</p> | 0 |
<p dir="auto">Hi,<br>
I am sure this will not be for 2.x series. Somethings that I like if you are making the 3.0 move.</p>
<p dir="auto">I have been looking the <a href="https://github.com/symfony/Routing/blob/48c201da53b7c3b787609b0f6702456b86939577/Matcher/RequestMatcherInterface.php#L38">https://github.com/symfony/Routing/blob/48c201da53b7c3b787609b0f6702456b86939577/Matcher/RequestMatcherInterface.php#L38</a></p>
<p dir="auto">and the method</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" public function matchRequest(Request $request)
{
$this->request = $request;
$ret = $this->match($request->getPathInfo());
$this->request = null;
return $ret;
}"><pre class="notranslate"> <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">matchRequest</span>(<span class="pl-smi"><span class="pl-smi">Request</span></span> <span class="pl-s1"><span class="pl-c1">$</span>request</span>)
{
<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-c1">request</span> = <span class="pl-s1"><span class="pl-c1">$</span>request</span>;
<span class="pl-s1"><span class="pl-c1">$</span>ret</span> = <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-en">match</span>(<span class="pl-s1"><span class="pl-c1">$</span>request</span>-><span class="pl-en">getPathInfo</span>());
<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-c1">request</span> = <span class="pl-c1">null</span>;
<span class="pl-k">return</span> <span class="pl-s1"><span class="pl-c1">$</span>ret</span>;
}</pre></div>
<p dir="auto">defined in <a href="https://github.com/symfony/Routing/blob/48c201da53b7c3b787609b0f6702456b86939577/Matcher/RequestMatcherInterface.php#L38">https://github.com/symfony/Routing/blob/48c201da53b7c3b787609b0f6702456b86939577/Matcher/RequestMatcherInterface.php#L38</a></p>
<p dir="auto">for the request is made to null. And the only functionality is to get the path and pass to the match method.</p>
<p dir="auto">Why not remove the matchRequest itself ?</p>
<p dir="auto">So it can be made like</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$parameters = $matcher->match($request->getPathInfo());"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>parameters</span> = <span class="pl-s1"><span class="pl-c1">$</span>matcher</span>-><span class="pl-en">match</span>(<span class="pl-s1"><span class="pl-c1">$</span>request</span>-><span class="pl-en">getPathInfo</span>());</pre></div>
<p dir="auto">Also I am seeing the Request from Context can be moved out to make a bundle to wrap the Router and Http rather than keeping inside the class.</p>
<p dir="auto">I would like to see Symfony 3.0 as much more better standalone components. And bundles which wraps the components so they can use Symfony/RouterHttpFoundationBundle/Router or something like that for easy usage. So others who make use of standalone don't need to bother too much.</p>
<p dir="auto">Thank you for hearing.</p> | <p dir="auto">this will make it possible to do content type negotiation inside the Routing.<br>
will try to implement this on todays train ride :)</p>
<p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/couac/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/couac">@couac</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/liuggio/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/liuggio">@liuggio</a></p> | 1 |
<p dir="auto">I use <code class="notranslate">react-with-addons</code> in a RequireJS enviroment. If I try to use <code class="notranslate">React.addons.Perf</code>, I get a <code class="notranslate">ReferenceError: ReactDOM is not defined</code> from <a href="https://github.com/facebook/react/blob/15-dev/src/umd/shims/ReactAddonsDOMDependenciesUMDShim.js#L26">https://github.com/facebook/react/blob/15-dev/src/umd/shims/ReactAddonsDOMDependenciesUMDShim.js#L26</a>.<br>
This is a regression from 15.3.x.</p> | <p dir="auto">If I try to load react-dom with RequireJS, I get an error: "Mismatched anonymous define()".<br>
Looking at the react-dom from the 15.4.0 distribution (<a href="https://cdnjs.cloudflare.com/ajax/libs/react/15.4.0/react-dom.js" rel="nofollow">https://cdnjs.cloudflare.com/ajax/libs/react/15.4.0/react-dom.js</a>), I notice that there seem to be two UMD wrappers at the top.<br>
This is probably related to the change in the packaging structure (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163464962" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/7164" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/7164/hovercard" href="https://github.com/facebook/react/pull/7164">#7164</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163509541" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/7168" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/7168/hovercard" href="https://github.com/facebook/react/pull/7168">#7168</a>).</p> | 1 |
<p dir="auto">Building NumPy python wheel reports error in the end of process if CPU instruction set baseline flag is passed:</p>
<blockquote>
<p dir="auto">python3 setup.py build --cpu-baseline="avx" bdist_wheel</p>
</blockquote>
<blockquote>
<p dir="auto">AttributeError: 'CCompilerOpt' object has no attribute '_requested_baseline'</p>
</blockquote>
<p dir="auto">Full error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="########### EXT COMPILER OPTIMIZATION ###########
Platform :
Architecture: x64
Compiler : gcc
CPU baseline :
Requested : 'avx'
Enabled : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx
Extra checks: none
CPU dispatch :
Requested : 'max -xop -fma4'
Enabled : F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
Generated :
:
AVX2 : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mavx2
Extra checks: none
Detect : AVX F16C AVX2
: numpy/core/src/umath/_umath_tests.dispatch.c
:
(FMA3 AVX2) : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2
Extra checks: none
Detect : AVX F16C FMA3 AVX2
: build/src.linux-x86_64-3.8/numpy/core/src/_simd/_simd.dispatch.c
:
AVX512F : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f
Extra checks: AVX512F_REDUCE
Detect : AVX512F
: build/src.linux-x86_64-3.8/numpy/core/src/_simd/_simd.dispatch.c
:
AVX512_SKX : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq
Extra checks: AVX512BW_MASK AVX512DQ_MASK
Detect : AVX512_SKX
: build/src.linux-x86_64-3.8/numpy/core/src/_simd/_simd.dispatch.c
CCompilerOpt._cache_write[796] : write cache to path -> /home/user/Work/numpy-1.20.2/build/temp.linux-x86_64-3.8/ccompiler_opt_cache_ext.py
########### EXT COMPILER OPTIMIZATION ###########
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/home/user/Work/numpy-1.20.2/numpy/distutils/command/build_ext.py", line 166, in report
log.info(self.compiler_opt.report(full=True))
File "/home/user/Work/numpy-1.20.2/numpy/distutils/ccompiler_opt.py", line 2331, in report
baseline_rows.append(("Requested", repr(self._requested_baseline)))
AttributeError: 'CCompilerOpt' object has no attribute '_requested_baseline'
CCompilerOpt._cache_write[796] : write cache to path -> /home/user/Work/numpy-1.20.2/build/temp.linux-x86_64-3.8/ccompiler_opt_cache_ext.py
########### CLIB COMPILER OPTIMIZATION ###########
Platform :
Architecture: x64
Compiler : gcc
CPU baseline :
Requested : 'avx'
Enabled : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx
Extra checks: none
CPU dispatch :
Requested : 'max -xop -fma4'
Enabled : F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
Generated : none
CCompilerOpt._cache_write[796] : write cache to path -> /home/user/Work/numpy-1.20.2/build/temp.linux-x86_64-3.8/ccompiler_opt_cache_clib.py"><pre class="notranslate"><code class="notranslate">########### EXT COMPILER OPTIMIZATION ###########
Platform :
Architecture: x64
Compiler : gcc
CPU baseline :
Requested : 'avx'
Enabled : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx
Extra checks: none
CPU dispatch :
Requested : 'max -xop -fma4'
Enabled : F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
Generated :
:
AVX2 : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mavx2
Extra checks: none
Detect : AVX F16C AVX2
: numpy/core/src/umath/_umath_tests.dispatch.c
:
(FMA3 AVX2) : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2
Extra checks: none
Detect : AVX F16C FMA3 AVX2
: build/src.linux-x86_64-3.8/numpy/core/src/_simd/_simd.dispatch.c
:
AVX512F : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f
Extra checks: AVX512F_REDUCE
Detect : AVX512F
: build/src.linux-x86_64-3.8/numpy/core/src/_simd/_simd.dispatch.c
:
AVX512_SKX : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq
Extra checks: AVX512BW_MASK AVX512DQ_MASK
Detect : AVX512_SKX
: build/src.linux-x86_64-3.8/numpy/core/src/_simd/_simd.dispatch.c
CCompilerOpt._cache_write[796] : write cache to path -> /home/user/Work/numpy-1.20.2/build/temp.linux-x86_64-3.8/ccompiler_opt_cache_ext.py
########### EXT COMPILER OPTIMIZATION ###########
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/home/user/Work/numpy-1.20.2/numpy/distutils/command/build_ext.py", line 166, in report
log.info(self.compiler_opt.report(full=True))
File "/home/user/Work/numpy-1.20.2/numpy/distutils/ccompiler_opt.py", line 2331, in report
baseline_rows.append(("Requested", repr(self._requested_baseline)))
AttributeError: 'CCompilerOpt' object has no attribute '_requested_baseline'
CCompilerOpt._cache_write[796] : write cache to path -> /home/user/Work/numpy-1.20.2/build/temp.linux-x86_64-3.8/ccompiler_opt_cache_ext.py
########### CLIB COMPILER OPTIMIZATION ###########
Platform :
Architecture: x64
Compiler : gcc
CPU baseline :
Requested : 'avx'
Enabled : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx
Extra checks: none
CPU dispatch :
Requested : 'max -xop -fma4'
Enabled : F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
Generated : none
CCompilerOpt._cache_write[796] : write cache to path -> /home/user/Work/numpy-1.20.2/build/temp.linux-x86_64-3.8/ccompiler_opt_cache_clib.py
</code></pre></div>
<p dir="auto">Although wheel file is successfully created and after installation it passes all standard tests.</p>
<p dir="auto">Simply building NumPy without wheel goes without errors:</p>
<blockquote>
<p dir="auto">python3 setup.py build --cpu-baseline="avx"</p>
</blockquote>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="########### EXT COMPILER OPTIMIZATION ###########
Platform :
Architecture: x64
Compiler : gcc
CPU baseline :
Requested : 'avx'
Enabled : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx
Extra checks: none
CPU dispatch :
Requested : 'max -xop -fma4'
Enabled : F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
Generated :
:
AVX2 : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mavx2
Extra checks: none
Detect : AVX F16C AVX2
: numpy/core/src/umath/_umath_tests.dispatch.c
:
(FMA3 AVX2) : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2
Extra checks: none
Detect : AVX F16C FMA3 AVX2
: build/src.linux-x86_64-3.8/numpy/core/src/_simd/_simd.dispatch.c
:
AVX512F : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f
Extra checks: AVX512F_REDUCE
Detect : AVX512F
: build/src.linux-x86_64-3.8/numpy/core/src/_simd/_simd.dispatch.c
:
AVX512_SKX : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq
Extra checks: AVX512BW_MASK AVX512DQ_MASK
Detect : AVX512_SKX
: build/src.linux-x86_64-3.8/numpy/core/src/_simd/_simd.dispatch.c
CCompilerOpt._cache_write[796] : write cache to path -> /home/user/Work/numpy-1.20.2/build/temp.linux-x86_64-3.8/ccompiler_opt_cache_ext.py
########### CLIB COMPILER OPTIMIZATION ###########
Platform :
Architecture: x64
Compiler : gcc
CPU baseline :
Requested : 'avx'
Enabled : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx
Extra checks: none
CPU dispatch :
Requested : 'max -xop -fma4'
Enabled : F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
Generated : none
CCompilerOpt._cache_write[796] : write cache to path -> /home/user/Work/numpy-1.20.2/build/temp.linux-x86_64-3.8/ccompiler_opt_cache_clib.py"><pre class="notranslate"><code class="notranslate">########### EXT COMPILER OPTIMIZATION ###########
Platform :
Architecture: x64
Compiler : gcc
CPU baseline :
Requested : 'avx'
Enabled : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx
Extra checks: none
CPU dispatch :
Requested : 'max -xop -fma4'
Enabled : F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
Generated :
:
AVX2 : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mavx2
Extra checks: none
Detect : AVX F16C AVX2
: numpy/core/src/umath/_umath_tests.dispatch.c
:
(FMA3 AVX2) : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2
Extra checks: none
Detect : AVX F16C FMA3 AVX2
: build/src.linux-x86_64-3.8/numpy/core/src/_simd/_simd.dispatch.c
:
AVX512F : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f
Extra checks: AVX512F_REDUCE
Detect : AVX512F
: build/src.linux-x86_64-3.8/numpy/core/src/_simd/_simd.dispatch.c
:
AVX512_SKX : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq
Extra checks: AVX512BW_MASK AVX512DQ_MASK
Detect : AVX512_SKX
: build/src.linux-x86_64-3.8/numpy/core/src/_simd/_simd.dispatch.c
CCompilerOpt._cache_write[796] : write cache to path -> /home/user/Work/numpy-1.20.2/build/temp.linux-x86_64-3.8/ccompiler_opt_cache_ext.py
########### CLIB COMPILER OPTIMIZATION ###########
Platform :
Architecture: x64
Compiler : gcc
CPU baseline :
Requested : 'avx'
Enabled : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx
Extra checks: none
CPU dispatch :
Requested : 'max -xop -fma4'
Enabled : F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
Generated : none
CCompilerOpt._cache_write[796] : write cache to path -> /home/user/Work/numpy-1.20.2/build/temp.linux-x86_64-3.8/ccompiler_opt_cache_clib.py
</code></pre></div>
<p dir="auto">But if after building additionally request to create wheel distribution with the first command (<strong>python3 setup.py build --cpu-baseline="avx" bdist_wheel</strong>) it will end up with the same error.</p>
<p dir="auto">Also, building wheel without specifying CPU instruction set has no errors:</p>
<blockquote>
<p dir="auto">python3 setup.py bdist_wheel</p>
</blockquote>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="########### EXT COMPILER OPTIMIZATION ###########
Platform :
Architecture: x64
Compiler : gcc
CPU baseline :
Requested : 'min'
Enabled : SSE SSE2 SSE3
Flags : -msse -msse2 -msse3
Extra checks: none
CPU dispatch :
Requested : 'max -xop -fma4'
Enabled : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
Generated :
:
SSE41 : SSE SSE2 SSE3 SSSE3
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1
Extra checks: none
Detect : SSE SSE2 SSE3 SSSE3 SSE41
: numpy/core/src/umath/_umath_tests.dispatch.c
:
SSE42 : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2
Extra checks: none
Detect : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42
: build/src.linux-x86_64-3.8/numpy/core/src/_simd/_simd.dispatch.c
:
AVX2 : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mavx2
Extra checks: none
Detect : AVX F16C AVX2
: numpy/core/src/umath/_umath_tests.dispatch.c
:
(FMA3 AVX2) : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2
Extra checks: none
Detect : AVX F16C FMA3 AVX2
: build/src.linux-x86_64-3.8/numpy/core/src/_simd/_simd.dispatch.c
:
AVX512F : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f
Extra checks: AVX512F_REDUCE
Detect : AVX512F
: build/src.linux-x86_64-3.8/numpy/core/src/_simd/_simd.dispatch.c
:
AVX512_SKX : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq
Extra checks: AVX512BW_MASK AVX512DQ_MASK
Detect : AVX512_SKX
: build/src.linux-x86_64-3.8/numpy/core/src/_simd/_simd.dispatch.c
CCompilerOpt._cache_write[796] : write cache to path -> /home/user/Work/numpy-1.20.2/build/temp.linux-x86_64-3.8/ccompiler_opt_cache_ext.py
########### CLIB COMPILER OPTIMIZATION ###########
Platform :
Architecture: x64
Compiler : gcc
CPU baseline :
Requested : 'min'
Enabled : SSE SSE2 SSE3
Flags : -msse -msse2 -msse3
Extra checks: none
CPU dispatch :
Requested : 'max -xop -fma4'
Enabled : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
Generated : none
CCompilerOpt._cache_write[796] : write cache to path -> /home/user/Work/numpy-1.20.2/build/temp.linux-x86_64-3.8/ccompiler_opt_cache_clib.py"><pre class="notranslate"><code class="notranslate">########### EXT COMPILER OPTIMIZATION ###########
Platform :
Architecture: x64
Compiler : gcc
CPU baseline :
Requested : 'min'
Enabled : SSE SSE2 SSE3
Flags : -msse -msse2 -msse3
Extra checks: none
CPU dispatch :
Requested : 'max -xop -fma4'
Enabled : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
Generated :
:
SSE41 : SSE SSE2 SSE3 SSSE3
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1
Extra checks: none
Detect : SSE SSE2 SSE3 SSSE3 SSE41
: numpy/core/src/umath/_umath_tests.dispatch.c
:
SSE42 : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2
Extra checks: none
Detect : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42
: build/src.linux-x86_64-3.8/numpy/core/src/_simd/_simd.dispatch.c
:
AVX2 : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mavx2
Extra checks: none
Detect : AVX F16C AVX2
: numpy/core/src/umath/_umath_tests.dispatch.c
:
(FMA3 AVX2) : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2
Extra checks: none
Detect : AVX F16C FMA3 AVX2
: build/src.linux-x86_64-3.8/numpy/core/src/_simd/_simd.dispatch.c
:
AVX512F : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f
Extra checks: AVX512F_REDUCE
Detect : AVX512F
: build/src.linux-x86_64-3.8/numpy/core/src/_simd/_simd.dispatch.c
:
AVX512_SKX : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq
Extra checks: AVX512BW_MASK AVX512DQ_MASK
Detect : AVX512_SKX
: build/src.linux-x86_64-3.8/numpy/core/src/_simd/_simd.dispatch.c
CCompilerOpt._cache_write[796] : write cache to path -> /home/user/Work/numpy-1.20.2/build/temp.linux-x86_64-3.8/ccompiler_opt_cache_ext.py
########### CLIB COMPILER OPTIMIZATION ###########
Platform :
Architecture: x64
Compiler : gcc
CPU baseline :
Requested : 'min'
Enabled : SSE SSE2 SSE3
Flags : -msse -msse2 -msse3
Extra checks: none
CPU dispatch :
Requested : 'max -xop -fma4'
Enabled : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
Generated : none
CCompilerOpt._cache_write[796] : write cache to path -> /home/user/Work/numpy-1.20.2/build/temp.linux-x86_64-3.8/ccompiler_opt_cache_clib.py
</code></pre></div>
<h3 dir="auto">NumPy/Python version information:</h3>
<p dir="auto">1.20.2 3.8.5 (default, Jan 27 2021, 15:41:15)<br>
[GCC 9.3.0]</p> | <p dir="auto">The np.clip function's documentation says:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Equivalent to but faster than ``np.maximum(a_min, np.minimum(a, a_max))``.
No check is performed to ensure ``a_min < a_max``."><pre class="notranslate"><code class="notranslate">Equivalent to but faster than ``np.maximum(a_min, np.minimum(a, a_max))``.
No check is performed to ensure ``a_min < a_max``.
</code></pre></div>
<p dir="auto">This strict definition would imply that if a_min > a_max it will return a_min. However the experimental behavior is that a_max will be returned instead. This implies either the documentation should be changed to say <code class="notranslate">np.minimum(a_max, np.maximum(a, a_min))</code> or the behavior should be changed to match the documentation, or at very least it should be made clear that this behavior is unspecified.</p>
<p dir="auto">Note this may be a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="44547565" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/5142" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/5142/hovercard" href="https://github.com/numpy/numpy/issues/5142">#5142</a> but that seems to be outdated/not updated for 6 years, and this is specifically about the inconsistency with the documentation.</p>
<h3 dir="auto">Reproducing code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> import numpy as np
>>> np.clip(0, 1, -1)
-1"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">np</span>.<span class="pl-en">clip</span>(<span class="pl-c1">0</span>, <span class="pl-c1">1</span>, <span class="pl-c1">-</span><span class="pl-c1">1</span>)
<span class="pl-c1">-</span><span class="pl-c1">1</span></pre></div>
<h3 dir="auto">Numpy/Python version information:</h3>
<p dir="auto">Numpy version: 1.17.4<br>
Python version: 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)]</p> | 0 |
<p dir="auto">I'm using TS 1.6.3 and JSPM. I <code class="notranslate">jspm install</code>-ed moment and then import it like so<br>
import * as moment from 'moment'</p>
<p dir="auto">This compiles to</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="....
function(moment_1) {
moment = moment_1;
}
...."><pre class="notranslate"><code class="notranslate">....
function(moment_1) {
moment = moment_1;
}
....
</code></pre></div>
<p dir="auto">Using Babel this compiles to</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="....
function(_moment) {
moment = _moment['default'];
}
...."><pre class="notranslate"><code class="notranslate">....
function(_moment) {
moment = _moment['default'];
}
....
</code></pre></div>
<p dir="auto">At runtime the <code class="notranslate">moment_1</code> or <code class="notranslate">_moment</code> variable refers to an object which actually has a <code class="notranslate">default</code> property which is the MomentJS's factory. So, to me, it looks like Babel is correct.</p>
<p dir="auto">As a result of the way the TS compiler compiles it, it's not possible, in TypeScript code, to simply do <code class="notranslate">var x = moment()</code> because at runtime that will fail as <code class="notranslate">moment</code> will be an object, not a function. You also can't do <code class="notranslate">moment.default()</code> because in the <code class="notranslate">d.ts</code> file there is no <code class="notranslate">default</code> function. At the moment I'm doing a hack <code class="notranslate">(moment as any).default()</code>.</p>
<p dir="auto">I would appreciate it if someone could shed some light on whether I'm doing something wrong or it's a bug.</p>
<p dir="auto">Thanks!</p> | <p dir="auto">I was recently running into some trouble with getting SystemJS to load jQuery using the ES6-style syntax.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import * as $ from 'jquery';"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">$</span> <span class="pl-k">from</span> <span class="pl-s">'jquery'</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">The above code worked fine with RequireJS and AMD format, and when using SystemJS as the loader when my code was emitted by TypeScript in AMD format.</p>
<p dir="auto">However I noticed odd behavior when emitting this code using the system format and using SystemJS. I was getting all of the static functions of <code class="notranslate">$</code>, but <code class="notranslate">$</code> <em>itself</em> was an inert object (not a function). So at runtime, <code class="notranslate">$.isArray([]);</code> would work, but <code class="notranslate">$('#myDiv')</code> would throw "$ is not a function".</p>
<p dir="auto">Here's my original issue on the SystemJS repo: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="111268201" data-permission-text="Title is private" data-url="https://github.com/systemjs/systemjs/issues/844" data-hovercard-type="issue" data-hovercard-url="/systemjs/systemjs/issues/844/hovercard" href="https://github.com/systemjs/systemjs/issues/844">systemjs/systemjs#844</a></p>
<p dir="auto">I kept digging around in the SystemJS documentation and eventually noticed that it referenced using a <em>default</em> ES6 import with jQuery:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import $ from 'jquery';"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">$</span> <span class="pl-k">from</span> <span class="pl-s">'jquery'</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Sure enough when I tried this, it worked, even though jQuery itself <strong>does not</strong> export a property <code class="notranslate">default</code>.</p>
<p dir="auto">After more research, I found this on the SystemJS site:</p>
<p dir="auto"><a href="https://github.com/systemjs/systemjs/blob/master/docs/module-formats.md#inter-format-dependencies">https://github.com/systemjs/systemjs/blob/master/docs/module-formats.md#inter-format-dependencies</a></p>
<blockquote>
<p dir="auto">When loading CommonJS, AMD or Global modules from within ES6, the full module is available at the default export which can be loaded with the default import syntax.</p>
</blockquote>
<p dir="auto">So when using SystemJS, the "is a" is made available through a <em>virtual</em> default export.</p>
<p dir="auto">However, this is a problem since there's not currently a way to model this in TypeScript without breaking existing code using <code class="notranslate">import $ = require('jquery')</code> syntax.</p>
<p dir="auto">Current jQuery definition on Definitely Typed:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="declare module "jquery" {
export = $;
}"><pre class="notranslate"><span class="pl-k">declare</span> module <span class="pl-s">"jquery"</span> <span class="pl-kos">{</span>
<span class="pl-k">export</span> <span class="pl-c1">=</span> <span class="pl-s1">$</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<h2 dir="auto">Proposal</h2>
<p dir="auto">In light of the documented behavior of SystemJS, I'd like to propose a change to TypeScript to allow ES6-style default import syntax to work with an ambient external module declaration that uses <code class="notranslate">export =</code> syntax, as long as the module format is "system".</p>
<p dir="auto">With this change, this code would compile cleanly if TypeScript is set to "system", but would still error using "amd", "commonjs" or "umd" with "Module 'my-module' has no default export":</p>
<p dir="auto"><strong>my-module.d.ts</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="declare module "my-module" {
var doStuff : () => void;
export = doStuff;
}"><pre class="notranslate"><span class="pl-k">declare</span> module <span class="pl-s">"my-module"</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">doStuff</span> : <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-c1">=</span> <span class="pl-s1">doStuff</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>test.ts</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import ds from "my-module";
ds();"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">ds</span> <span class="pl-k">from</span> <span class="pl-s">"my-module"</span><span class="pl-kos">;</span>
<span class="pl-en">ds</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Related:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="101318135" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/4337" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/4337/hovercard" href="https://github.com/microsoft/TypeScript/issues/4337">#4337</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="67722721" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/2719" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/2719/hovercard" href="https://github.com/microsoft/TypeScript/issues/2719">#2719</a><br>
CC: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vvakame/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vvakame">@vvakame</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/basarat/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/basarat">@basarat</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/johnnyreilly/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/johnnyreilly">@johnnyreilly</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jbrantly/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jbrantly">@jbrantly</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/guybedford/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/guybedford">@guybedford</a></p> | 1 |
<ul dir="auto">
<li>Electron version: 2.0.6</li>
<li>Operating system: MacOS High Sierra (latest)</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">The mas build should be accepted by the App Store.</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">The App Store suddenly started to reject my mas build based on the Electron Framework v. 1.7.9. The upgrade to the last stable version 2.0.6 didn’t solve the problem. Any ideas?</p>
<p dir="auto">I always get the following message:</p>
<p dir="auto">Your app uses or references the following non-public APIs:</p>
<p dir="auto">From framework:<br>
-Symbol: _CGDisplayUsesForceToGray<br>
From framework: /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics<br>
-Symbols: ___CFRunLoopSetOptionsReason, __CFIsObjC<br>
From framework: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation</p>
<p dir="auto">In binary:<br>
-Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework</p>
<p dir="auto">Please help.</p> | <p dir="auto"><strong>Electron Version:</strong> v3.0.x, v2.0.x<br>
<strong>OS:</strong> Windows 10 (1803) x64</p>
<p dir="auto"><strong>Expected Behavior</strong><br>
Context menu of a flash object should stay open until user performs an action that normally closes it.</p>
<p dir="auto"><strong>Actual behavior</strong><br>
Opening a flash context menu works fine but it randomly disappears when clicking nothing. Once it is gone, the app gets somewhat unresponsive. JS code is not getting executed, navigation does not work, reopening the context menu is impossible...<br>
I noticed that when I was using multiple electron windows, the bug only occured once and was only affecting that one window. Every other window was fine after that and the bug could not be reproduced a second time.</p>
<p dir="auto"><strong>To Reproduce</strong><br>
Right click onto a flash object, so that the context menu appears. Then do nothing and wait until it disappears.</p>
<p dir="auto"><strong>Additional Information</strong><br>
This one is very tricky to reproduce. It can take quite some time until it disappears, it is completely random when it disappears and I have no idea why it is happening. I was able to reproduce this issue in v2.0.2, v3.0.0-beta.3 and v3.0.0-beta.4 in various main.js setups.</p>
<p dir="auto"><strong>Workaround</strong><br>
I came up with disabling the context menu, which seems to avoid the issue entirely (inline JS in HTML file):<br>
<code class="notranslate">document.getElementById("flash").oncontextmenu = function(){return false};</code></p> | 0 |
<p dir="auto">We have two Code of Conduct pages:</p>
<ul dir="auto">
<li><a href="https://numpy.org/devdocs/dev/conduct/code_of_conduct.html#diversity-statement" rel="nofollow">In the Sphinx pages</a></li>
<li><a href="https://numpy.org/code-of-conduct/" rel="nofollow">In the Hugo pages</a></li>
</ul>
<p dir="auto">Should the Sphinx version be removed?</p> | <p dir="auto">random.choice enhancement request:</p>
<p dir="auto">random.choice should support multidimensional arrays by taking an axis number. With this enhancement, axis=None would choose from a flattened array, while an integer argument would chose from the subarrays along that axis.</p>
<p dir="auto">Apologies if this is a duplicate. My previous submission seems to have vanished.</p> | 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"><code class="notranslate">python: symbol lookup error: /usr/lib/python3.6/site-packages/torch/lib/libtorch_python.so: undefined symbol: PySlice_Unpack</code></p>
<p dir="auto">when generating and displaying big tensors.</p>
<h2 dir="auto">To Reproduce</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python
Python 3.6.0 (default, Jan 16 2017, 12:12:55)
[GCC 6.3.1 20170109] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.__version__
'1.0.1.post2'
>>> torch.ones(10000)
python: symbol lookup error: /usr/lib/python3.6/site-packages/torch/lib/libtorch_python.so: undefined symbol: PySlice_Unpack
$"><pre class="notranslate"><code class="notranslate">$ python
Python 3.6.0 (default, Jan 16 2017, 12:12:55)
[GCC 6.3.1 20170109] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.__version__
'1.0.1.post2'
>>> torch.ones(10000)
python: symbol lookup error: /usr/lib/python3.6/site-packages/torch/lib/libtorch_python.so: undefined symbol: PySlice_Unpack
$
</code></pre></div>
<h2 dir="auto">Env</h2>
<ul dir="auto">
<li>PyTorch 1.0.1.post2 installed via pip. cuda 9 (but same bug without cuda)</li>
<li>Linux os</li>
<li>Python 3.6.0</li>
</ul> | <p dir="auto">Python 3.6.0 (default, Nov 17 2017, 11:43:46)<br>
[GCC 4.8.4] on linux<br>
Type "help", "copyright", "credits" or "license" for more information.</p>
<blockquote>
<blockquote>
<blockquote>
<p dir="auto">import torch<br>
torch.<strong>version</strong><br>
'1.0.0'<br>
m=torch.randn(2,3)<br>
m<br>
tensor([[-0.3711, 0.5104, -0.8859],<br>
[-0.5211, -0.6502, -0.5249]])<br>
m[:,1]=1<br>
<strong>python: symbol lookup error: /home/slhome/sz128/ve3_cpu/lib/python3.6/site-packages/torch/lib/libtorch_python.so: undefined symbol: PySlice_Unpack</strong></p>
</blockquote>
</blockquote>
</blockquote>
<p dir="auto">I just installed pytorch 1.0.0 by "pip3 install <a href="http://download.pytorch.org/whl/cu80/torch-1.0.0-cp36-cp36m-linux_x86_64.whl" rel="nofollow">http://download.pytorch.org/whl/cu80/torch-1.0.0-cp36-cp36m-linux_x86_64.whl</a> && pip3 install torchvision" in a new virtualenv.</p> | 1 |
<p dir="auto">Hi,</p>
<p dir="auto">On a test website (<a href="http://ks3364357.kimsufi.com/" rel="nofollow">http://ks3364357.kimsufi.com/</a>) I have a navbar with a menu and a button. Both are right aligned. It works well in firefox but the behaviour in chrome is very strange.</p>
<p dir="auto">First time you go on the page the button break from the line makin the navbar bigger. But if you resize it (til it gets in navbar-collapse mode) then go back to normal, the button is right where it belongs.</p>
<p dir="auto">Here is the code :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<div class="navbar-wrapper">
<div class="container-fluid">
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Friendly Monthly</a>
</div>
<div class="navbar-collapse collapse navbar-right">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Curated Newsletter</a></li>
<li><a href="#about">Try it now</a></li>
<li class="dropdown">
<a class="dropdown-toggle" href="#" data-toggle="dropdown">Login <strong class="caret"></strong></a>
<div class="dropdown-menu" style="padding: 15px; padding-bottom: 0px; min-width: 300px;">
<form class="form-horizontal" role="form">
<div class="form-group">
<div class="col-sm-12">
<input id="user_username" class="form-control" type="text" name="user[username]" placeholder="Email">
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<input id="user_password" class="form-control" type="password" name="user[password]" placeholder="Password">
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<div class="checkbox">
<label>
<input type="checkbox"> Remember me
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<button type="submit" class="btn btn-primary btn-block" style="width: auto;">Login</button>
</div>
</div>
</form>
</div>
</li>
</ul>
<p class="navbar-text">or</p>
<button type="button" class="btn btn-primary navbar-btn navbar-right">Subscribe</button>
</div>
</div>
</div>
</div>
</div>"><pre class="notranslate"><code class="notranslate"><div class="navbar-wrapper">
<div class="container-fluid">
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Friendly Monthly</a>
</div>
<div class="navbar-collapse collapse navbar-right">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Curated Newsletter</a></li>
<li><a href="#about">Try it now</a></li>
<li class="dropdown">
<a class="dropdown-toggle" href="#" data-toggle="dropdown">Login <strong class="caret"></strong></a>
<div class="dropdown-menu" style="padding: 15px; padding-bottom: 0px; min-width: 300px;">
<form class="form-horizontal" role="form">
<div class="form-group">
<div class="col-sm-12">
<input id="user_username" class="form-control" type="text" name="user[username]" placeholder="Email">
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<input id="user_password" class="form-control" type="password" name="user[password]" placeholder="Password">
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<div class="checkbox">
<label>
<input type="checkbox"> Remember me
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<button type="submit" class="btn btn-primary btn-block" style="width: auto;">Login</button>
</div>
</div>
</form>
</div>
</li>
</ul>
<p class="navbar-text">or</p>
<button type="button" class="btn btn-primary navbar-btn navbar-right">Subscribe</button>
</div>
</div>
</div>
</div>
</div>
</code></pre></div> | <p dir="auto"><strong>This bug exists only in google chrome, both in Windows and in OSX</strong><br>
If a fixed navbar is used with navbar-right elements, such as a button, and input type=password is used inside a form anywhere on the page, when the page is reloaded the navbar pushes elements to a new row, making it too tall.</p>
<p dir="auto"><a href="http://jsbin.com/daxopusa/3/" rel="nofollow">http://jsbin.com/daxopusa/3/</a> - Reload the page after navigating to it.</p>
<p dir="auto"><a href="http://jsbin.com/daxopusa/3/edit" rel="nofollow">http://jsbin.com/daxopusa/3/edit</a> - If you remove type=password from the input, the issue disappears.</p> | 1 |
<p dir="auto">HTML elements at <a href="https://github.com/zeit/next.js/search?utf8=%E2%9C%93&q=%3CHead%3E&type=">in many in examples are using single quote</a> instead of double but examples in readme and blog of zeit are not. IMO It might make users confused specially in terms of using lint like standard, which report an error of double quotes in JSX. I'm not sure which style is your recommendation.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Using consistence expression for quote</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Using mixin styles between examples project and document</p> | <p dir="auto">I'm trying <code class="notranslate">next export</code> in an app that uses apollo client to load content from our CMS. When navigating from page to page via or imperative Router actions w/ prefetching, <code class="notranslate">getInitialProps</code> fires on page load & emits a call to my graphql API.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">I'd hoped that the static export process would 'pre-hydrate' the apollo cache such that the data for a route is packed into the HTML/JS of the route payload. When loading a route, then, no calls should be fired to the content API at all (we don't have any dynamic content).</p>
<p dir="auto">This works fine when fetching the response w/ <code class="notranslate">curl</code> or something, and when navigating directly to a route, no calls are fired to our API endpoint (per the Network tab).</p>
<p dir="auto">My expectation is that no API calls would be fired when loading subsequent routes accessed via <code class="notranslate"><Link prefetch></code></p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">When clicking a prefetch link (or using the imperative <code class="notranslate">Router.prefetch</code>), <code class="notranslate">getInitialProps</code> is fired on route transition & I get a 'loading' state.</p>
<p dir="auto">If I use vanilla <code class="notranslate"><a></code>, the transition happens as expected and no API call is fired. But, there's no prefetching w/ this option, so not really ideal.</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>4.14</td>
</tr>
<tr>
<td>node</td>
<td>8.6</td>
</tr>
<tr>
<td>OS</td>
<td>win10 w/ WSL bash</td>
</tr>
<tr>
<td>browser</td>
<td>chrome 62</td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">If it is happening now, it will happen again.</p> | <h2 dir="auto">Motivation</h2>
<p dir="auto">If I was setting up frontend infrastructure on kube, I might do something like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="L1 [ Ingress ] service state <- |
| | per service Dos policy
(certs, geo) --- (hostname, ip) --- [dos engine]
|
L2 [ Services ] endpoint state
|
(enforces routing rules)
|
endpoints (produce web page)"><pre class="notranslate"><code class="notranslate">L1 [ Ingress ] service state <- |
| | per service Dos policy
(certs, geo) --- (hostname, ip) --- [dos engine]
|
L2 [ Services ] endpoint state
|
(enforces routing rules)
|
endpoints (produce web page)
</code></pre></div>
<p dir="auto">Today, there's only 1 routing rule at the Service layer (rr to all endpoints), and 1 routing rule at the ingress layer (http hostname, path prefix match). This is insufficent to express more complex group membership patterns we see in PetSet (leader election, broadcast) and common routing patterns observed in tiered applications (retry GET, traffic splitting, consistent hashing to memcache farm).</p>
<h2 dir="auto">Proposal</h2>
<p dir="auto">Add a new <code class="notranslate">RoutingRule</code> subtype and embed it either in the Ingress or Service. The subtype would implement rules like:</p>
<ol dir="auto">
<li>Leader (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="44716132" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1542" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1542/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1542">#1542</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="91528665" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/10456" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/10456/hovercard" href="https://github.com/kubernetes/kubernetes/issues/10456">#10456</a>)</li>
<li>Broadcast (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="98217521" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/12026" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/12026/hovercard" href="https://github.com/kubernetes/kubernetes/issues/12026">#12026</a>)</li>
<li>Failover on error (It's been asked for before, can't find issue)</li>
<li>Hash based on incoming request or backend server (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="79745792" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/8731" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/8731/hovercard" href="https://github.com/kubernetes/kubernetes/issues/8731">#8731</a>)</li>
<li>Canary (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="154284964" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/25485" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/25485/hovercard" href="https://github.com/kubernetes/kubernetes/issues/25485">#25485</a>)</li>
<li>Vanilla lb algorithms</li>
</ol>
<p dir="auto">I'd like L2 in the diagram above to implement the rules, because storing all endpoints at L1 might not be practical. In my mind L1 is the layer you can duplicate across the globe and use at the edge of your network, or even in someone elses DC.</p>
<p dir="auto">I can't decide what L2 is, I'm tempted to say it's a Service but:</p>
<ul dir="auto">
<li>sticky session and lb algorithms are common at L1 and L2</li>
<li>Services don't understand l7</li>
<li>The most obvious way to implement a majority of the routing rules is through a webserver</li>
<li>Ties in with the "internal ingress" concept</li>
<li>Service is no longer a simple intra-cluster, low latency "dumb" routing abstraction</li>
</ul>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/smarterclayton/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/smarterclayton">@smarterclayton</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/thockin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/thockin">@thockin</a> @kubernetes/sig-network (we need a @kubernetes/lb)</p> | 0 |
<p dir="auto">Hello,</p>
<p dir="auto">The example in the tutorial use radius = 53 and SNR = 5200. I downloaded<br>
the code and used the sample image as in the tutorial. However results are<br>
way off .Did anyone try the example? Has something changed?</p>
<p dir="auto">Thanks</p> | <h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.3</li>
<li>Operating System / Platform => MacOS (10.14 Mojave)</li>
<li>Compiler => Xcode (Clang/LLVM?)</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I attempted to translate the C++ program featured in the <a href="https://docs.opencv.org/3.4/de/d3c/tutorial_out_of_focus_deblur_filter.html" rel="nofollow">Out-of-focus Deblur Filter</a> tutorial into Python for adding multi-language coverage. I have included that code below. However, I had trouble recreating the results of the article after translation:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/33104112/82168232-480ee300-988c-11ea-9b3e-9ba26a374eab.jpg"><img src="https://user-images.githubusercontent.com/33104112/82168232-480ee300-988c-11ea-9b3e-9ba26a374eab.jpg" alt="result" style="max-width: 100%;"></a></p>
<p dir="auto">To try to isolate the problem, I compiled and ran the C++ program with the parameters mentioned in the tutorial, but did not receive the "advertised" results:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/33104112/82167574-42180280-988a-11ea-86ca-a4e9828e6c8b.jpg"><img src="https://user-images.githubusercontent.com/33104112/82167574-42180280-988a-11ea-86ca-a4e9828e6c8b.jpg" alt="result" style="max-width: 100%;"></a></p>
<p dir="auto">Any help with debugging both versions would be greatly appreciated, as I would very much like to submit the translation for inclusion.</p>
<p dir="auto">Two notes:</p>
<ol dir="auto">
<li>This script uses NumPy <code class="notranslate">fft.fftshift()</code> instead of the custom fftshift function from the tutorial, but I got the same results with both.</li>
<li>I noticed that adding the cv.DFT_SCALE flag to the <code class="notranslate">cv.dft</code> and <code class="notranslate">cv.idft</code> functions improved the results, and I believed that flag should be included on all, but I have not included it here, in the interest of a direct translation.</li>
</ol>
<details>
<summary> Below is the translated Python script </summary>
<br>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import sys, argparse, copy
import numpy as np
import cv2 as cv
def main():
# Parse arguments
text = "Recover an out-of-focus image by Wiener filter."
parser = argparse.ArgumentParser(text)
parser.add_argument("--image", type=str, required=True,
help="Specify the input image filename.")
parser.add_argument("--R", type=int, required=True,
help="Specify the point spread circle radius. Demo example: 53")
parser.add_argument("--SNR", type=float, required=True,
help="Specify the signal-to-noise ratio (SNR). Demo example: 5200")
args = parser.parse_args()
help()
# Read in image and prepare empty output image
img_in = cv.imread(args.image, cv.IMREAD_GRAYSCALE)
if img_in is None:
sys.exit("ERROR : Image cannot be loaded...!!")
## [main]
# it needs to process even image only
roi = img_in[0:(img_in.shape[0] & -2), 0:(img_in.shape[1] & -2)]
## Hw calculation (start)
h = calcPSF(roi.shape, args.R)
Hw = calcWnrFilter(h, 1.0 / float(args.SNR))
## Hw calculation (stop)
## filtering (start)
imgOut = filter2DFreq(roi, Hw)
## filtering (stop)
## [main]
imgOut = imgOut.astype(np.float32)
imgOut = cv.normalize(imgOut, imgOut, alpha=0, beta=255,
norm_type=cv.NORM_MINMAX)
cv.imwrite("result.jpg", imgOut)
## [help]
def help():
print("2018-07-12")
print("DeBlur_v8")
print("You will learn how to recover an out-of-focus image by Wiener\
filter")
## [help]
## [calcPSF]
def calcPSF(filterSize, R):
h = np.zeros(filterSize, dtype=np.float32)
point = (filterSize[1] // 2, filterSize[0] // 2)
h = cv.circle(h, point, R, 255, -1, 8)
summa = np.sum(h)
return (h / summa)
## [calcPSF]
## [filter2DFreq]
def filter2DFreq(inputImg, H):
planes = [inputImg.copy().astype(np.float32),
np.zeros(inputImg.shape, dtype=np.float32)]
complexI = cv.merge(planes)
complexI = cv.dft(complexI, flags=cv.DFT_SCALE)
planesH = [H.copy().astype(np.float32),
np.zeros(H.shape, dtype=np.float32)]
complexH = cv.merge(planesH)
complexIH = cv.mulSpectrums(complexI, complexH, 0)
complexIH = cv.idft(complexIH)
planes = cv.split(complexIH)
return planes[0]
## [filter2DFreq]
## [calcWnrFilter]
def calcWnrFilter(input_h_PSF, nsr):
h_PSF_shifted = np.fft.fftshift(input_h_PSF)
planes = [h_PSF_shifted.copy().astype(np.float32),
np.zeros(h_PSF_shifted.shape, dtype=np.float32)]
complexI = cv.merge(planes)
complexI = cv.dft(complexI)
planes = cv.split(complexI)
denom = np.power(np.abs(planes[0]), 2)
denom += nsr
return cv.divide(planes[0], denom)
## [calcWnrFilter]
if __name__ == "__main__":
main()
cv.destroyAllWindows()
"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">sys</span>, <span class="pl-s1">argparse</span>, <span class="pl-s1">copy</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">import</span> <span class="pl-s1">cv2</span> <span class="pl-k">as</span> <span class="pl-s1">cv</span>
<span class="pl-k">def</span> <span class="pl-en">main</span>():
<span class="pl-c"># Parse arguments</span>
<span class="pl-s1">text</span> <span class="pl-c1">=</span> <span class="pl-s">"Recover an out-of-focus image by Wiener filter."</span>
<span class="pl-s1">parser</span> <span class="pl-c1">=</span> <span class="pl-s1">argparse</span>.<span class="pl-v">ArgumentParser</span>(<span class="pl-s1">text</span>)
<span class="pl-s1">parser</span>.<span class="pl-en">add_argument</span>(<span class="pl-s">"--image"</span>, <span class="pl-s1">type</span><span class="pl-c1">=</span><span class="pl-s1">str</span>, <span class="pl-s1">required</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,
<span class="pl-s1">help</span><span class="pl-c1">=</span><span class="pl-s">"Specify the input image filename."</span>)
<span class="pl-s1">parser</span>.<span class="pl-en">add_argument</span>(<span class="pl-s">"--R"</span>, <span class="pl-s1">type</span><span class="pl-c1">=</span><span class="pl-s1">int</span>, <span class="pl-s1">required</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,
<span class="pl-s1">help</span><span class="pl-c1">=</span><span class="pl-s">"Specify the point spread circle radius. Demo example: 53"</span>)
<span class="pl-s1">parser</span>.<span class="pl-en">add_argument</span>(<span class="pl-s">"--SNR"</span>, <span class="pl-s1">type</span><span class="pl-c1">=</span><span class="pl-s1">float</span>, <span class="pl-s1">required</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,
<span class="pl-s1">help</span><span class="pl-c1">=</span><span class="pl-s">"Specify the signal-to-noise ratio (SNR). Demo example: 5200"</span>)
<span class="pl-s1">args</span> <span class="pl-c1">=</span> <span class="pl-s1">parser</span>.<span class="pl-en">parse_args</span>()
<span class="pl-en">help</span>()
<span class="pl-c"># Read in image and prepare empty output image</span>
<span class="pl-s1">img_in</span> <span class="pl-c1">=</span> <span class="pl-s1">cv</span>.<span class="pl-en">imread</span>(<span class="pl-s1">args</span>.<span class="pl-s1">image</span>, <span class="pl-s1">cv</span>.<span class="pl-v">IMREAD_GRAYSCALE</span>)
<span class="pl-k">if</span> <span class="pl-s1">img_in</span> <span class="pl-c1">is</span> <span class="pl-c1">None</span>:
<span class="pl-s1">sys</span>.<span class="pl-en">exit</span>(<span class="pl-s">"ERROR : Image cannot be loaded...!!"</span>)
<span class="pl-c">## [main]</span>
<span class="pl-c"># it needs to process even image only</span>
<span class="pl-s1">roi</span> <span class="pl-c1">=</span> <span class="pl-s1">img_in</span>[<span class="pl-c1">0</span>:(<span class="pl-s1">img_in</span>.<span class="pl-s1">shape</span>[<span class="pl-c1">0</span>] <span class="pl-c1">&</span> <span class="pl-c1">-</span><span class="pl-c1">2</span>), <span class="pl-c1">0</span>:(<span class="pl-s1">img_in</span>.<span class="pl-s1">shape</span>[<span class="pl-c1">1</span>] <span class="pl-c1">&</span> <span class="pl-c1">-</span><span class="pl-c1">2</span>)]
<span class="pl-c">## Hw calculation (start)</span>
<span class="pl-s1">h</span> <span class="pl-c1">=</span> <span class="pl-en">calcPSF</span>(<span class="pl-s1">roi</span>.<span class="pl-s1">shape</span>, <span class="pl-s1">args</span>.<span class="pl-v">R</span>)
<span class="pl-v">Hw</span> <span class="pl-c1">=</span> <span class="pl-en">calcWnrFilter</span>(<span class="pl-s1">h</span>, <span class="pl-c1">1.0</span> <span class="pl-c1">/</span> <span class="pl-en">float</span>(<span class="pl-s1">args</span>.<span class="pl-v">SNR</span>))
<span class="pl-c">## Hw calculation (stop)</span>
<span class="pl-c">## filtering (start)</span>
<span class="pl-s1">imgOut</span> <span class="pl-c1">=</span> <span class="pl-en">filter2DFreq</span>(<span class="pl-s1">roi</span>, <span class="pl-v">Hw</span>)
<span class="pl-c">## filtering (stop)</span>
<span class="pl-c">## [main] </span>
<span class="pl-s1">imgOut</span> <span class="pl-c1">=</span> <span class="pl-s1">imgOut</span>.<span class="pl-en">astype</span>(<span class="pl-s1">np</span>.<span class="pl-s1">float32</span>)
<span class="pl-s1">imgOut</span> <span class="pl-c1">=</span> <span class="pl-s1">cv</span>.<span class="pl-en">normalize</span>(<span class="pl-s1">imgOut</span>, <span class="pl-s1">imgOut</span>, <span class="pl-s1">alpha</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">beta</span><span class="pl-c1">=</span><span class="pl-c1">255</span>,
<span class="pl-s1">norm_type</span><span class="pl-c1">=</span><span class="pl-s1">cv</span>.<span class="pl-v">NORM_MINMAX</span>)
<span class="pl-s1">cv</span>.<span class="pl-en">imwrite</span>(<span class="pl-s">"result.jpg"</span>, <span class="pl-s1">imgOut</span>)
<span class="pl-c">## [help]</span>
<span class="pl-k">def</span> <span class="pl-en">help</span>():
<span class="pl-en">print</span>(<span class="pl-s">"2018-07-12"</span>)
<span class="pl-en">print</span>(<span class="pl-s">"DeBlur_v8"</span>)
<span class="pl-en">print</span>(<span class="pl-s">"You will learn how to recover an out-of-focus image by Wiener<span class="pl-cce">\</span></span>
<span class="pl-s"><span class="pl-cce"></span> filter"</span>)
<span class="pl-c">## [help]</span>
<span class="pl-c">## [calcPSF]</span>
<span class="pl-k">def</span> <span class="pl-en">calcPSF</span>(<span class="pl-s1">filterSize</span>, <span class="pl-v">R</span>):
<span class="pl-s1">h</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">zeros</span>(<span class="pl-s1">filterSize</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">float32</span>)
<span class="pl-s1">point</span> <span class="pl-c1">=</span> (<span class="pl-s1">filterSize</span>[<span class="pl-c1">1</span>] <span class="pl-c1">//</span> <span class="pl-c1">2</span>, <span class="pl-s1">filterSize</span>[<span class="pl-c1">0</span>] <span class="pl-c1">//</span> <span class="pl-c1">2</span>)
<span class="pl-s1">h</span> <span class="pl-c1">=</span> <span class="pl-s1">cv</span>.<span class="pl-en">circle</span>(<span class="pl-s1">h</span>, <span class="pl-s1">point</span>, <span class="pl-v">R</span>, <span class="pl-c1">255</span>, <span class="pl-c1">-</span><span class="pl-c1">1</span>, <span class="pl-c1">8</span>)
<span class="pl-s1">summa</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">sum</span>(<span class="pl-s1">h</span>)
<span class="pl-k">return</span> (<span class="pl-s1">h</span> <span class="pl-c1">/</span> <span class="pl-s1">summa</span>)
<span class="pl-c">## [calcPSF]</span>
<span class="pl-c">## [filter2DFreq]</span>
<span class="pl-k">def</span> <span class="pl-en">filter2DFreq</span>(<span class="pl-s1">inputImg</span>, <span class="pl-v">H</span>):
<span class="pl-s1">planes</span> <span class="pl-c1">=</span> [<span class="pl-s1">inputImg</span>.<span class="pl-en">copy</span>().<span class="pl-en">astype</span>(<span class="pl-s1">np</span>.<span class="pl-s1">float32</span>),
<span class="pl-s1">np</span>.<span class="pl-en">zeros</span>(<span class="pl-s1">inputImg</span>.<span class="pl-s1">shape</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">float32</span>)]
<span class="pl-s1">complexI</span> <span class="pl-c1">=</span> <span class="pl-s1">cv</span>.<span class="pl-en">merge</span>(<span class="pl-s1">planes</span>)
<span class="pl-s1">complexI</span> <span class="pl-c1">=</span> <span class="pl-s1">cv</span>.<span class="pl-en">dft</span>(<span class="pl-s1">complexI</span>, <span class="pl-s1">flags</span><span class="pl-c1">=</span><span class="pl-s1">cv</span>.<span class="pl-v">DFT_SCALE</span>)
<span class="pl-s1">planesH</span> <span class="pl-c1">=</span> [<span class="pl-v">H</span>.<span class="pl-en">copy</span>().<span class="pl-en">astype</span>(<span class="pl-s1">np</span>.<span class="pl-s1">float32</span>),
<span class="pl-s1">np</span>.<span class="pl-en">zeros</span>(<span class="pl-v">H</span>.<span class="pl-s1">shape</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">float32</span>)]
<span class="pl-s1">complexH</span> <span class="pl-c1">=</span> <span class="pl-s1">cv</span>.<span class="pl-en">merge</span>(<span class="pl-s1">planesH</span>)
<span class="pl-s1">complexIH</span> <span class="pl-c1">=</span> <span class="pl-s1">cv</span>.<span class="pl-en">mulSpectrums</span>(<span class="pl-s1">complexI</span>, <span class="pl-s1">complexH</span>, <span class="pl-c1">0</span>)
<span class="pl-s1">complexIH</span> <span class="pl-c1">=</span> <span class="pl-s1">cv</span>.<span class="pl-en">idft</span>(<span class="pl-s1">complexIH</span>)
<span class="pl-s1">planes</span> <span class="pl-c1">=</span> <span class="pl-s1">cv</span>.<span class="pl-en">split</span>(<span class="pl-s1">complexIH</span>)
<span class="pl-k">return</span> <span class="pl-s1">planes</span>[<span class="pl-c1">0</span>]
<span class="pl-c">## [filter2DFreq]</span>
<span class="pl-c">## [calcWnrFilter]</span>
<span class="pl-k">def</span> <span class="pl-en">calcWnrFilter</span>(<span class="pl-s1">input_h_PSF</span>, <span class="pl-s1">nsr</span>):
<span class="pl-s1">h_PSF_shifted</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">fft</span>.<span class="pl-en">fftshift</span>(<span class="pl-s1">input_h_PSF</span>)
<span class="pl-s1">planes</span> <span class="pl-c1">=</span> [<span class="pl-s1">h_PSF_shifted</span>.<span class="pl-en">copy</span>().<span class="pl-en">astype</span>(<span class="pl-s1">np</span>.<span class="pl-s1">float32</span>),
<span class="pl-s1">np</span>.<span class="pl-en">zeros</span>(<span class="pl-s1">h_PSF_shifted</span>.<span class="pl-s1">shape</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">float32</span>)]
<span class="pl-s1">complexI</span> <span class="pl-c1">=</span> <span class="pl-s1">cv</span>.<span class="pl-en">merge</span>(<span class="pl-s1">planes</span>)
<span class="pl-s1">complexI</span> <span class="pl-c1">=</span> <span class="pl-s1">cv</span>.<span class="pl-en">dft</span>(<span class="pl-s1">complexI</span>)
<span class="pl-s1">planes</span> <span class="pl-c1">=</span> <span class="pl-s1">cv</span>.<span class="pl-en">split</span>(<span class="pl-s1">complexI</span>)
<span class="pl-s1">denom</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">power</span>(<span class="pl-s1">np</span>.<span class="pl-en">abs</span>(<span class="pl-s1">planes</span>[<span class="pl-c1">0</span>]), <span class="pl-c1">2</span>)
<span class="pl-s1">denom</span> <span class="pl-c1">+=</span> <span class="pl-s1">nsr</span>
<span class="pl-k">return</span> <span class="pl-s1">cv</span>.<span class="pl-en">divide</span>(<span class="pl-s1">planes</span>[<span class="pl-c1">0</span>], <span class="pl-s1">denom</span>)
<span class="pl-c">## [calcWnrFilter]</span>
<span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">"__main__"</span>:
<span class="pl-en">main</span>()
<span class="pl-s1">cv</span>.<span class="pl-en">destroyAllWindows</span>()</pre></div>
</details>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">Build OpenCV from source with samples and run the example_tutorial_out_of_focus_deblur_filter executable with the parameters mentioned in the tutorial.</p> | 1 |
<p dir="auto">This might not necessarily a new thing since 0.14, but I find the output of group.head() not appropriate for a grouping:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="df = pd.DataFrame(np.random.randn(6,2))
df['A'] = [1,2,2,1,1,2]
df"><pre class="notranslate"><span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randn</span>(<span class="pl-c1">6</span>,<span class="pl-c1">2</span>))
<span class="pl-s1">df</span>[<span class="pl-s">'A'</span>] <span class="pl-c1">=</span> [<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>]
<span class="pl-s1">df</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 0 1 A
0 -0.047101 0.828542 1
1 1.617815 0.362700 2
2 1.366453 -1.116897 2
3 0.086743 -0.611371 1
4 1.918440 -1.230909 1
5 -1.003828 -0.592541 2"><pre class="notranslate"><code class="notranslate"> 0 1 A
0 -0.047101 0.828542 1
1 1.617815 0.362700 2
2 1.366453 -1.116897 2
3 0.086743 -0.611371 1
4 1.918440 -1.230909 1
5 -1.003828 -0.592541 2
</code></pre></div>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="g = df.groupby('A')
g.head(2)"><pre class="notranslate"><span class="pl-s1">g</span> <span class="pl-c1">=</span> <span class="pl-s1">df</span>.<span class="pl-en">groupby</span>(<span class="pl-s">'A'</span>)
<span class="pl-s1">g</span>.<span class="pl-en">head</span>(<span class="pl-c1">2</span>)</pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 0 1 A
0 -0.047101 0.828542 1
1 1.617815 0.362700 2
2 1.366453 -1.116897 2
3 0.086743 -0.611371 1"><pre class="notranslate"><code class="notranslate"> 0 1 A
0 -0.047101 0.828542 1
1 1.617815 0.362700 2
2 1.366453 -1.116897 2
3 0.086743 -0.611371 1
</code></pre></div>
<p dir="auto">My expectation of the previous output would be:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 0 1 A
0 -0.047101 0.828542 1
3 0.086743 -0.611371 1
1 1.617815 0.362700 2
2 1.366453 -1.116897 2"><pre class="notranslate"><code class="notranslate"> 0 1 A
0 -0.047101 0.828542 1
3 0.086743 -0.611371 1
1 1.617815 0.362700 2
2 1.366453 -1.116897 2
</code></pre></div>
<p dir="auto">because, after all, this is the result of a grouping, so things should be displayed grouped, shouldn't they?</p> | <p dir="auto">When <code class="notranslate">sort = True</code> is passed to <code class="notranslate">groupby</code> (which is by default) the groups will be in sorted order. If you loop through them they are in sorted order, if you compute the mean, std... they are in sorted order but if you use the method <code class="notranslate">head</code> they are NOT in sorted order.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
import pandas as pd
df = pd.DataFrame([[2, 100], [2, 200], [2, 300], [1, 400], [1, 500], [1, 600]], columns = ['A', 'B'])
grouped = df.groupby(df['A'], sort = True)
for name, group in grouped:
print(group)
print(grouped.mean())
print(grouped.head(1))"><pre class="notranslate"><code class="notranslate">
import pandas as pd
df = pd.DataFrame([[2, 100], [2, 200], [2, 300], [1, 400], [1, 500], [1, 600]], columns = ['A', 'B'])
grouped = df.groupby(df['A'], sort = True)
for name, group in grouped:
print(group)
print(grouped.mean())
print(grouped.head(1))
</code></pre></div>
<p dir="auto">Is this expected? I have not found this behaviour documented.<br>
I think it is confusing and has caused me a headache because I was combining output of the <code class="notranslate">mean</code> and <code class="notranslate">head</code> methods in the same DataFrame, and since the data was not ordered before those results were getting mixed because of these order issues. I have pandas 0.20.3</p> | 1 |
<p dir="auto">Add2App, when i runing my host app,there is a exception:<br>
Check failed: vm. Must be able to initialize the VM.<br>
and,my flutter doctor -v info :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel master, v1.0.1-pre.3, on Mac OS X 10.13.6 17G65, locale zh-Hans-CN)
• Flutter version 1.0.1-pre.3 at /Users/zhenqiang/flutter_sdk/flutter
• Framework revision d74b1c2051 (2 days ago), 2018-12-07 14:19:09 -0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /Users/zhenqiang/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = /Users/zhenqiang/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[✗] iOS toolchain - develop for iOS devices
✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
Download at: https://developer.apple.com/xcode/download/
Or install Xcode via the App Store.
Once installed, run:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
✗ libimobiledevice and ideviceinstaller are not installed. To install with Brew, run:
brew update
brew install --HEAD usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
brew install ideviceinstaller
✗ ios-deploy not installed. To install with Brew:
brew install ios-deploy
✗ CocoaPods not installed.
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 install:
brew install cocoapods
pod setup
[✓] Android Studio (version 3.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 31.1.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[✓] Connected device (1 available)
• H60 L01 • 7N2SSE155J045614 • android-arm • Android 6.0 (API 23)"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel master, v1.0.1-pre.3, on Mac OS X 10.13.6 17G65, locale zh-Hans-CN)
• Flutter version 1.0.1-pre.3 at /Users/zhenqiang/flutter_sdk/flutter
• Framework revision d74b1c2051 (2 days ago), 2018-12-07 14:19:09 -0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /Users/zhenqiang/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = /Users/zhenqiang/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[✗] iOS toolchain - develop for iOS devices
✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
Download at: https://developer.apple.com/xcode/download/
Or install Xcode via the App Store.
Once installed, run:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
✗ libimobiledevice and ideviceinstaller are not installed. To install with Brew, run:
brew update
brew install --HEAD usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
brew install ideviceinstaller
✗ ios-deploy not installed. To install with Brew:
brew install ios-deploy
✗ CocoaPods not installed.
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 install:
brew install cocoapods
pod setup
[✓] Android Studio (version 3.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 31.1.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[✓] Connected device (1 available)
• H60 L01 • 7N2SSE155J045614 • android-arm • Android 6.0 (API 23)
</code></pre></div>
<p dir="auto">and i am in master channel.</p>
<p dir="auto">Can anybody help me for this problem?</p> | <p dir="auto">here is the report<br>
<a href="https://github.com/flutter/flutter/files/2081110/flutter_01.log">flutter_01.log</a><br>
<a href="https://github.com/flutter/flutter/files/2081111/flutter_02.log">flutter_02.log</a></p> | 0 |
<h2 dir="auto">Feature Request</h2>
<p dir="auto">Now, when a user executes an <code class="notranslate">insert into on duplicate key update</code> statement on a sharding key, an exception will be thrown.</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/**
* Sharding insert statement validator.
*/
@RequiredArgsConstructor
public final class ShardingInsertStatementValidator extends ShardingDMLStatementValidator<InsertStatement> {
private final ShardingConditions shardingConditions;
@Override
public void preValidate(final ShardingRule shardingRule, final SQLStatementContext<InsertStatement> sqlStatementContext,
final List<Object> parameters, final ShardingSphereSchema schema) {
if (null == ((InsertStatementContext) sqlStatementContext).getInsertSelectContext()) {
validateMultipleTable(shardingRule, sqlStatementContext);
}
InsertStatement sqlStatement = sqlStatementContext.getSqlStatement();
Optional<OnDuplicateKeyColumnsSegment> onDuplicateKeyColumnsSegment = InsertStatementHandler.getOnDuplicateKeyColumnsSegment(sqlStatement);
String tableName = sqlStatement.getTable().getTableName().getIdentifier().getValue();
if (onDuplicateKeyColumnsSegment.isPresent() && isUpdateShardingKey(shardingRule, onDuplicateKeyColumnsSegment.get(), tableName)) {
throw new ShardingSphereException("INSERT INTO ... ON DUPLICATE KEY UPDATE can not support update for sharding column.");
}
Optional<SubquerySegment> insertSelectSegment = sqlStatement.getInsertSelect();
if (insertSelectSegment.isPresent() && isContainsKeyGenerateStrategy(shardingRule, tableName)
&& !isContainsKeyGenerateColumn(shardingRule, sqlStatement.getColumns(), tableName)) {
throw new ShardingSphereException("INSERT INTO ... SELECT can not support applying keyGenerator to absent generateKeyColumn.");
}
TablesContext tablesContext = sqlStatementContext.getTablesContext();
if (insertSelectSegment.isPresent() && !isAllSameTables(tablesContext.getTableNames()) && !shardingRule.isAllBindingTables(tablesContext.getTableNames())) {
throw new ShardingSphereException("The table inserted and the table selected must be the same or bind tables.");
}
}"><pre class="notranslate"><span class="pl-c">/**</span>
<span class="pl-c"> * Sharding insert statement validator.</span>
<span class="pl-c"> */</span>
<span class="pl-c1">@</span><span class="pl-c1">RequiredArgsConstructor</span>
<span class="pl-k">public</span> <span class="pl-k">final</span> <span class="pl-k">class</span> <span class="pl-smi">ShardingInsertStatementValidator</span> <span class="pl-k">extends</span> <span class="pl-smi">ShardingDMLStatementValidator</span><<span class="pl-smi">InsertStatement</span>> {
<span class="pl-k">private</span> <span class="pl-k">final</span> <span class="pl-smi">ShardingConditions</span> <span class="pl-s1">shardingConditions</span>;
<span class="pl-c1">@</span><span class="pl-c1">Override</span>
<span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">preValidate</span>(<span class="pl-k">final</span> <span class="pl-smi">ShardingRule</span> <span class="pl-s1">shardingRule</span>, <span class="pl-k">final</span> <span class="pl-smi">SQLStatementContext</span><<span class="pl-smi">InsertStatement</span>> <span class="pl-s1">sqlStatementContext</span>,
<span class="pl-k">final</span> <span class="pl-smi">List</span><<span class="pl-smi">Object</span>> <span class="pl-s1">parameters</span>, <span class="pl-k">final</span> <span class="pl-smi">ShardingSphereSchema</span> <span class="pl-s1">schema</span>) {
<span class="pl-k">if</span> (<span class="pl-c1">null</span> == ((<span class="pl-smi">InsertStatementContext</span>) <span class="pl-s1">sqlStatementContext</span>).<span class="pl-en">getInsertSelectContext</span>()) {
<span class="pl-en">validateMultipleTable</span>(<span class="pl-s1">shardingRule</span>, <span class="pl-s1">sqlStatementContext</span>);
}
<span class="pl-smi">InsertStatement</span> <span class="pl-s1">sqlStatement</span> = <span class="pl-s1">sqlStatementContext</span>.<span class="pl-en">getSqlStatement</span>();
<span class="pl-smi">Optional</span><<span class="pl-smi">OnDuplicateKeyColumnsSegment</span>> <span class="pl-s1">onDuplicateKeyColumnsSegment</span> = <span class="pl-smi">InsertStatementHandler</span>.<span class="pl-en">getOnDuplicateKeyColumnsSegment</span>(<span class="pl-s1">sqlStatement</span>);
<span class="pl-smi">String</span> <span class="pl-s1">tableName</span> = <span class="pl-s1">sqlStatement</span>.<span class="pl-en">getTable</span>().<span class="pl-en">getTableName</span>().<span class="pl-en">getIdentifier</span>().<span class="pl-en">getValue</span>();
<span class="pl-k">if</span> (<span class="pl-s1">onDuplicateKeyColumnsSegment</span>.<span class="pl-en">isPresent</span>() && <span class="pl-en">isUpdateShardingKey</span>(<span class="pl-s1">shardingRule</span>, <span class="pl-s1">onDuplicateKeyColumnsSegment</span>.<span class="pl-en">get</span>(), <span class="pl-s1">tableName</span>)) {
<span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-smi">ShardingSphereException</span>(<span class="pl-s">"INSERT INTO ... ON DUPLICATE KEY UPDATE can not support update for sharding column."</span>);
}
<span class="pl-smi">Optional</span><<span class="pl-smi">SubquerySegment</span>> <span class="pl-s1">insertSelectSegment</span> = <span class="pl-s1">sqlStatement</span>.<span class="pl-en">getInsertSelect</span>();
<span class="pl-k">if</span> (<span class="pl-s1">insertSelectSegment</span>.<span class="pl-en">isPresent</span>() && <span class="pl-en">isContainsKeyGenerateStrategy</span>(<span class="pl-s1">shardingRule</span>, <span class="pl-s1">tableName</span>)
&& !<span class="pl-en">isContainsKeyGenerateColumn</span>(<span class="pl-s1">shardingRule</span>, <span class="pl-s1">sqlStatement</span>.<span class="pl-en">getColumns</span>(), <span class="pl-s1">tableName</span>)) {
<span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-smi">ShardingSphereException</span>(<span class="pl-s">"INSERT INTO ... SELECT can not support applying keyGenerator to absent generateKeyColumn."</span>);
}
<span class="pl-smi">TablesContext</span> <span class="pl-s1">tablesContext</span> = <span class="pl-s1">sqlStatementContext</span>.<span class="pl-en">getTablesContext</span>();
<span class="pl-k">if</span> (<span class="pl-s1">insertSelectSegment</span>.<span class="pl-en">isPresent</span>() && !<span class="pl-en">isAllSameTables</span>(<span class="pl-s1">tablesContext</span>.<span class="pl-en">getTableNames</span>()) && !<span class="pl-s1">shardingRule</span>.<span class="pl-en">isAllBindingTables</span>(<span class="pl-s1">tablesContext</span>.<span class="pl-en">getTableNames</span>())) {
<span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-smi">ShardingSphereException</span>(<span class="pl-s">"The table inserted and the table selected must be the same or bind tables."</span>);
}
}</pre></div>
<p dir="auto">But if the routing results before and after the update have not changed, then we should support this type of <code class="notranslate">insert into on duplicate key update</code> statement.</p>
<h3 dir="auto">Is your feature request related to a problem?</h3>
<p dir="auto">No</p>
<h3 dir="auto">Describe the feature you would like.</h3> | <p dir="auto">Please answer these questions before submitting your issue. Thanks!</p>
<h3 dir="auto">Which version of Sharding-Jdbc do you using?</h3>
<p dir="auto">2.0.0 使用 java config 配置数据源</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">表 IM_TEST 分为2库TEST_00 TEST_01,每库5表,分库 id%2,分表 id%5<br>
select * from IM_TEST where id in(4,5)<br>
期望路由到TEST_00.IM_TEST_04 和 TEST_01.TEST_00</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">实际路由到了TEST_00.IM_TEST_04 和 TEST_00.TEST_00 TEST_01.IM_TEST_04 和 TEST_01.TEST_00</p>
<h3 dir="auto">Steps to reproduce the behavior</h3>
<h3 dir="auto">Please provide the reproduce example codes (such as github link) if possible.</h3> | 0 |
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">lineinfile</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[See issue #16596](https://github.com/ansible/ansible/issues/16596)"><pre class="notranslate"><code class="notranslate">[See issue #16596](https://github.com/ansible/ansible/issues/16596)
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">This bug still exists in version 2.2. The original bug report was closed in July 2016 due to the old module bug reporting policy that bugs for modules are reported at <a href="https://github.com/ansible/ansible-modules-core">https://github.com/ansible/ansible-modules-core</a>. That repository is now closed for bug reports as of Dec 2016 and requests bugs to be submitted to this repository. <a href="https://github.com/ansible/ansible-modules-core/issues/3500" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/3500/hovercard">(See the last comment on this bug report for an example)</a>. Additionally, a response to issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="164041109" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/16596" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/16596/hovercard" href="https://github.com/ansible/ansible/issues/16596">#16596</a> that the bug was already reported is incorrect. Issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="164041109" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/16596" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/16596/hovercard" href="https://github.com/ansible/ansible/issues/16596">#16596</a> deals with quantifiers in regular expressions not working as advertised. The supposedly duplicate bug report deals with lineinfile adding a line when the regex is not found. Closing issue reporting for a repo without also migrating the open issues to the new reporting site does not make those issues go away.</p>
<p dir="auto">Also, <a href="https://github.com/ansible/ansible/issues/16596" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/16596/hovercard">see issue #16596</a></p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto"><a href="https://github.com/ansible/ansible/issues/16596" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/16596/hovercard">See issue #16596</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[See issue #16596](https://github.com/ansible/ansible/issues/16596)"><pre class="notranslate"><code class="notranslate">[See issue #16596](https://github.com/ansible/ansible/issues/16596)
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto"><a href="https://github.com/ansible/ansible/issues/16596" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/16596/hovercard">See issue #16596</a></p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[See issue #16596](https://github.com/ansible/ansible/issues/16596)"><pre class="notranslate"><code class="notranslate">[See issue #16596](https://github.com/ansible/ansible/issues/16596)
</code></pre></div> | <p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jsnshrmn/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jsnshrmn">@jsnshrmn</a> on 2016-06-17T15:03:20Z</p>
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">lineinfile</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.1.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.1.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">Bone stock</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">CentOS 7</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">When lineinfile with regexp finds a match, it substitutes properly. When it doesn't find a match (say, on subsequent runs), it just dumps the specified line at the bottom of the file as if you hadn't specified a regexp. Needless to say, this breaks idempotence.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<ol dir="auto">
<li>Take a look at a file.</li>
<li>Run lineinfile with regexp that matches a line</li>
<li>See that your line was in fact replaced.</li>
<li>Run lineinfile again.</li>
<li>See that the specified replacement line is now duplicated at the bottom of the file.</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: Add ops scripts to sudo secure_path
lineinfile:
dest: /etc/sudoers
regexp: >
^Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin$
line: 'Defaults secure_path = /opt/d7/bin:/sbin:/bin:/usr/sbin:/usr/bin'
validate: visudo -cf %s"><pre class="notranslate"><code class="notranslate">- name: Add ops scripts to sudo secure_path
lineinfile:
dest: /etc/sudoers
regexp: >
^Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin$
line: 'Defaults secure_path = /opt/d7/bin:/sbin:/bin:/usr/sbin:/usr/bin'
validate: visudo -cf %s
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">Idempotent line replacement after a second run</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Refuse to run if unable to disable echo on the tty.
Defaults !visiblepw
#
# Preserving HOME has security implications since many programs
# use it when searching for configuration files. Note that HOME
# is already set when the the env_reset option is enabled, so
# this option is only effective for configurations where either
# env_reset is disabled or HOME is present in the env_keep list.
#
Defaults always_set_home
Defaults env_reset
Defaults env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR LS_COLORS"
Defaults env_keep += "MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE"
Defaults env_keep += "LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES"
Defaults env_keep += "LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE"
Defaults env_keep += "LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY"
#
# Adding HOME to env_keep may enable a user to run unrestricted
# commands via sudo.
#
# Defaults env_keep += "HOME"
Defaults secure_path = /opt/d7/bin:/sbin:/bin:/usr/sbin:/usr/bin
## Next comes the main part: which users can run what software on
## which machines (the sudoers file can be shared between multiple
## systems).
## Syntax:
##
## user MACHINE=COMMANDS
##
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
## Allows people in group wheel to run all commands without a password
%wheel ALL=(ALL) NOPASSWD: ALL"><pre class="notranslate"><code class="notranslate"># Refuse to run if unable to disable echo on the tty.
Defaults !visiblepw
#
# Preserving HOME has security implications since many programs
# use it when searching for configuration files. Note that HOME
# is already set when the the env_reset option is enabled, so
# this option is only effective for configurations where either
# env_reset is disabled or HOME is present in the env_keep list.
#
Defaults always_set_home
Defaults env_reset
Defaults env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR LS_COLORS"
Defaults env_keep += "MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE"
Defaults env_keep += "LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES"
Defaults env_keep += "LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE"
Defaults env_keep += "LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY"
#
# Adding HOME to env_keep may enable a user to run unrestricted
# commands via sudo.
#
# Defaults env_keep += "HOME"
Defaults secure_path = /opt/d7/bin:/sbin:/bin:/usr/sbin:/usr/bin
## Next comes the main part: which users can run what software on
## which machines (the sudoers file can be shared between multiple
## systems).
## Syntax:
##
## user MACHINE=COMMANDS
##
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
## Allows people in group wheel to run all commands without a password
%wheel ALL=(ALL) NOPASSWD: ALL
</code></pre></div>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">Potentially show-stopping garbage at the bottom of a file</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Refuse to run if unable to disable echo on the tty.
Defaults !visiblepw
#
# Preserving HOME has security implications since many programs
# use it when searching for configuration files. Note that HOME
# is already set when the the env_reset option is enabled, so
# this option is only effective for configurations where either
# env_reset is disabled or HOME is present in the env_keep list.
#
Defaults always_set_home
Defaults env_reset
Defaults env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR LS_COLORS"
Defaults env_keep += "MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE"
Defaults env_keep += "LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES"
Defaults env_keep += "LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE"
Defaults env_keep += "LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY"
#
# Adding HOME to env_keep may enable a user to run unrestricted
# commands via sudo.
#
# Defaults env_keep += "HOME"
Defaults secure_path = /opt/d7/bin:/sbin:/bin:/usr/sbin:/usr/bin
## Next comes the main part: which users can run what software on
## which machines (the sudoers file can be shared between multiple
## systems).
## Syntax:
##
## user MACHINE=COMMANDS
##
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
## Allows people in group wheel to run all commands without a password
%wheel ALL=(ALL) NOPASSWD: ALL
Defaults secure_path = /opt/d7/bin:/sbin:/bin:/usr/sbin:/usr/bin"><pre class="notranslate"><code class="notranslate"># Refuse to run if unable to disable echo on the tty.
Defaults !visiblepw
#
# Preserving HOME has security implications since many programs
# use it when searching for configuration files. Note that HOME
# is already set when the the env_reset option is enabled, so
# this option is only effective for configurations where either
# env_reset is disabled or HOME is present in the env_keep list.
#
Defaults always_set_home
Defaults env_reset
Defaults env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR LS_COLORS"
Defaults env_keep += "MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE"
Defaults env_keep += "LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES"
Defaults env_keep += "LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE"
Defaults env_keep += "LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY"
#
# Adding HOME to env_keep may enable a user to run unrestricted
# commands via sudo.
#
# Defaults env_keep += "HOME"
Defaults secure_path = /opt/d7/bin:/sbin:/bin:/usr/sbin:/usr/bin
## Next comes the main part: which users can run what software on
## which machines (the sudoers file can be shared between multiple
## systems).
## Syntax:
##
## user MACHINE=COMMANDS
##
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
## Allows people in group wheel to run all commands without a password
%wheel ALL=(ALL) NOPASSWD: ALL
Defaults secure_path = /opt/d7/bin:/sbin:/bin:/usr/sbin:/usr/bin
</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="160908951" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/3975" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/3975/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/3975">ansible/ansible-modules-core#3975</a></p> | 1 |
<pre class="notranslate">build.go:130: duplicate field work
build.go:206: ambiguous DOT reference *builder.work
build.go:206: ambiguous DOT reference builder.work
build.go:208: ambiguous DOT reference *builder.work
build.go:208: ambiguous DOT reference builder.work
build.go:213: ambiguous DOT reference *builder.work
build.go:213: ambiguous DOT reference builder.work
build.go:215: ambiguous DOT reference *builder.work
build.go:215: ambiguous DOT reference builder.work
build.go:307: ambiguous DOT reference *builder.work
the 'ambiguous DOT reference' could be better phrased
also that is a type on the lhs of the dot but should probably
be the actual expression.</pre> | <pre class="notranslate">Please consider implementing dup for netFDs on Windows. Currently calling .File() on
users of this type returns the error "dup not implemented on Windows".
There's no equivalent to dup for sockets on Windows. DuplicateHandle doesn't work for
sockets, and WSADuplicateSocket has other purposes. I think it may be necessary to
implement an open/close ref count in addition to the completion port ref counting that's
currently used.
<a href="http://stackoverflow.com/questions/11319025/get-syscall-handle-from-a-go-net-udpconn-on-windows" rel="nofollow">http://stackoverflow.com/questions/11319025/get-syscall-handle-from-a-go-net-udpconn-on-windows</a></pre> | 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/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.1-SNAPSHOT</li>
</ul>
<p dir="auto"><code class="notranslate">org.apache.dubbo.common.utils.IOUtils</code> 这个类看起来像是一个公共类,但实际上里面有坑,不要在你自己的项目里面使用这个类!</p>
<h3 dir="auto">问题描述</h3>
<p dir="auto">该类有一个 write() 方法,内容如下:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public static long write(InputStream is, OutputStream os, int bufferSize) throws IOException {
int read;
long total = 0;
byte[] buff = new byte[bufferSize];
while (is.available() > 0) { // !!!
read = is.read(buff, 0, buff.length);
if (read > 0) {
os.write(buff, 0, read);
total += read;
}
}
return total;
}"><pre class="notranslate"><code class="notranslate">public static long write(InputStream is, OutputStream os, int bufferSize) throws IOException {
int read;
long total = 0;
byte[] buff = new byte[bufferSize];
while (is.available() > 0) { // !!!
read = is.read(buff, 0, buff.length);
if (read > 0) {
os.write(buff, 0, read);
total += read;
}
}
return total;
}
</code></pre></div>
<p dir="auto">其中的 while 循环使用了 <code class="notranslate">InputStream.available()</code> 的返回值来作为结束判断条件,这个方法在网络环境当中是不能作为读取结束的依据的,因为当网络传输出现延迟时,该方法立刻会返回 0,导致循环结束。测试代码如下:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Test
public void testWriteURL() throws Exception {
String url = "https://pan.baidu.com/static/images/16new/bg2.jpg";
long expectedSize = 77_949L;
InputStream inputStream = new URL(url).openStream();
ByteArrayOutputStream bos = new ByteArrayOutputStream();
long writeSize = org.apache.dubbo.common.utils.IOUtils.write(inputStream, bos);
assertThat(writeSize, equalTo(expectedSize)); // org.hamcrest.MatcherAssert
}"><pre class="notranslate"><code class="notranslate">@Test
public void testWriteURL() throws Exception {
String url = "https://pan.baidu.com/static/images/16new/bg2.jpg";
long expectedSize = 77_949L;
InputStream inputStream = new URL(url).openStream();
ByteArrayOutputStream bos = new ByteArrayOutputStream();
long writeSize = org.apache.dubbo.common.utils.IOUtils.write(inputStream, bos);
assertThat(writeSize, equalTo(expectedSize)); // org.hamcrest.MatcherAssert
}
</code></pre></div>
<p dir="auto">这个测试通常会失败,<code class="notranslate">write()</code> 方法在读取了部分内容后就结束循环并返回了。</p>
<p dir="auto">正确的写法请参考 <code class="notranslate">org.apache.commons.io.IOUtils#copy(java.io.InputStream, java.io.OutputStream)</code> 的实现,对应的测试方法如下:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public static void main(String[] args) throws IOException {
String url = "https://pan.baidu.com/static/images/16new/bg2.jpg";
long expectedSize = 77_949L;
InputStream inputStream = new URL(url).openStream();
ByteArrayOutputStream bos = new ByteArrayOutputStream();
long writeSize = org.apache.commons.io.IOUtils.copy(inputStream, bos);
assertThat(writeSize, equalTo(expectedSize)); // org.hamcrest.MatcherAssert
}"><pre class="notranslate"><code class="notranslate">public static void main(String[] args) throws IOException {
String url = "https://pan.baidu.com/static/images/16new/bg2.jpg";
long expectedSize = 77_949L;
InputStream inputStream = new URL(url).openStream();
ByteArrayOutputStream bos = new ByteArrayOutputStream();
long writeSize = org.apache.commons.io.IOUtils.copy(inputStream, bos);
assertThat(writeSize, equalTo(expectedSize)); // org.hamcrest.MatcherAssert
}
</code></pre></div>
<p dir="auto">上面这个方法就不会运行失败。</p>
<p dir="auto">为什么这个问题一直没有暴露出来呢?因为这个方法在整个 dubbo 项目中只有一个地方用到了:<code class="notranslate">org.apache.dubbo.common.io.Bytes#unzip()</code>,而这个方法只用来处理内存中的字节串,而与网络无关。万一 dubbo 项目将来在某个地方用它来读取网络内容,问题就会暴露出来。</p> | 0 |
<h4 dir="auto">Challenge Name</h4>
<p dir="auto"><a href="https://www.freecodecamp.com/challenges/line-up-form-elements-responsively-with-bootstrap" rel="nofollow">https://www.freecodecamp.com/challenges/line-up-form-elements-responsively-with-bootstrap</a></p>
<h4 dir="auto">Issue Description</h4>
<p dir="auto">The Like, Info, and Delete buttons need more padding on the right side. Also, the 'Loving' checkbox label should be on the same line as the checkbox that it labels. Also, shouldn't the Submit button be on the same line as the text input?</p>
<h4 dir="auto">Browser Information</h4>
<ul dir="auto">
<li>Browser Name, Version: Chrome, Version 50.0.2661.94 (64-bit)</li>
<li>Operating System: Mac OSX, Yosemite, version 10.10.5</li>
<li>Mobile, Desktop, or Tablet: Mac Book Pro 15"</li>
</ul>
<h4 dir="auto">Your Code</h4>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// If relevant, paste all of your challenge code in here
"><pre class="notranslate"><span class="pl-c">// If relevant, paste all of your challenge code in here</span></pre></div>
<h4 dir="auto">Screenshot</h4>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11606611/15237189/74ec60b8-1880-11e6-90ea-66ae491915e1.png"><img src="https://cloud.githubusercontent.com/assets/11606611/15237189/74ec60b8-1880-11e6-90ea-66ae491915e1.png" alt="image" style="max-width: 100%;"></a></p> | <p dir="auto">Forewarning, this <em>may</em> be bike-shedding worthy....</p>
<h3 dir="auto">Workspace</h3>
<p dir="auto">User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36</code>. (Chrome on Windows 7)</p>
<h3 dir="auto">Setting</h3>
<p dir="auto">The CatPhoto is where you make an web page and one component is adding three buttons like below.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2754821/14199337/7156ec7e-f798-11e5-864c-49dd8c334c40.png"><img src="https://cloud.githubusercontent.com/assets/2754821/14199337/7156ec7e-f798-11e5-864c-49dd8c334c40.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Problem</h3>
<p dir="auto">But then you will eventually make it into something like this below.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2754821/14199333/641738c0-f798-11e5-9464-43c6de465704.png"><img src="https://cloud.githubusercontent.com/assets/2754821/14199333/641738c0-f798-11e5-9464-43c6de465704.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Notice that the red Delete button is squished and on the side (this is mostly a desktop problem; mobile user won't have the same issue -- see below)</p>
<h4 dir="auto">Mobile Version</h4>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2754821/14199436/364c3a70-f799-11e5-98af-7dbe7da0fbb1.png"><img src="https://cloud.githubusercontent.com/assets/2754821/14199436/364c3a70-f799-11e5-98af-7dbe7da0fbb1.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Solution</h3>
<p dir="auto">So I propose two things:</p>
<ul dir="auto">
<li>Change the "Delete" button into a "Edit" button so it'll fit on the button better.
<ul dir="auto">
<li>This is fairly easy. You'll just need to change this in the challenge seeds starting with the challenge <a href="https://www.freecodecamp.com/challenges/warn-your-users-of-a-dangerous-action" rel="nofollow">Warn your Users of a Dangerous Action</a> where the button is added.</li>
<li>Then change the challenges up until the last one on <a href="https://www.freecodecamp.com/challenges/line-up-form-elements-responsively-with-bootstrap" rel="nofollow">Line up Form Elements Responsively with Bootstrap</a>.</li>
<li>You could also change the icon if appropriate.</li>
</ul>
</li>
<li>Add new challenge to add in making all three of those buttons also have the class <code class="notranslate">btn-sm</code> to make the text inside the button not seem all smushed.
<ul dir="auto">
<li>This one will require a little more effort in making an entirely new challenge, which may be unnecessary.</li>
</ul>
</li>
</ul>
<p dir="auto">Example:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<button class="btn btn-block btn-info btn-sm"><i class="fa fa-info-circle"></i> Info</button>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-block btn-info btn-sm</span>"<span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">i</span> <span class="pl-c1">class</span>="<span class="pl-s">fa fa-info-circle</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">i</span><span class="pl-kos">></span> Info<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span></pre></div>
<p dir="auto">If the proposed changes were made, the finished app will look like this:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2754821/14199509/e3e483d6-f799-11e5-8983-b02a50d68da7.png"><img src="https://cloud.githubusercontent.com/assets/2754821/14199509/e3e483d6-f799-11e5-8983-b02a50d68da7.png" alt="image" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto"><strong>Migrated issue, originally created by Dmitry Tyutryumov</strong></p>
<p dir="auto">Hi guys, i need you help.</p>
<p dir="auto">How i can create a schema on ORM, for few tables,</p>
<ul dir="auto">
<li>
<p dir="auto">MetaData doesn't work when schema doesn't exist.</p>
</li>
<li>
<p dir="auto">event.listen(DeclBase.metadata, 'before_create', CreateSchema('schema')) i see an error if schema is exist, but i don't know how to check schema on ORM</p>
</li>
</ul>
<p dir="auto">Will be appreciate for help</p> | <p dir="auto"><strong>Migrated issue, originally created by Rémy Roy (<a href="https://github.com/remyroy">@remyroy</a>)</strong></p>
<p dir="auto">IF EXISTS and IF NOT EXISTS are already part of many DBMSs DDL vocabulary. They have many use cases which are highly useful in some situations.</p>
<p dir="auto">For instance, creating a table if it does not already exists or dropping a column if it exists.</p>
<p dir="auto">It would be nice to have those directives with standard SQLAlchemy DDL methods. I guess they could be implemented using the native support for DBMSs that support them or with some introspection for those that do not.</p> | 1 |
<p dir="auto">its saying that 3 wasnt added to each value when in fact it was. I may have sent this twice but it wasnt listed when i rechecked nor did i send an email confirmation. So sorry if its overkill.<br>
Theo<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/15311351/10837822/cbdb8f1e-7e8b-11e5-9b77-8cac2c845986.png"><img src="https://cloud.githubusercontent.com/assets/15311351/10837822/cbdb8f1e-7e8b-11e5-9b77-8cac2c845986.png" alt="untitled" style="max-width: 100%;"></a></p> | <p dir="auto">okay so i added the semi colon and did everything right (my values increased by three) but its still saying that three wasnt added to each value. #frustrated</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/15311351/10837791/879e706e-7e8b-11e5-9933-d573ea4b4a0d.png"><img src="https://cloud.githubusercontent.com/assets/15311351/10837791/879e706e-7e8b-11e5-9933-d573ea4b4a0d.png" alt="untitled" style="max-width: 100%;"></a></p> | 1 |
<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-3417?redirect=false" rel="nofollow">SPR-3417</a></strong> and commented</p>
<p dir="auto">In our current project I wanted to use Introductions. We already use the aop:config block(s) quite extensivly. We decided to use this block also for the <aop:declare-parents />.</p>
<p dir="auto">However this alows only for 3 parameters to be specified<br>
types-matching="[aspectj expression]"<br>
implement-interface="[interface to introduce]"<br>
default-impl="[Class of the default implementation]"</p>
<p dir="auto">However in our default implementation (default-impl) we need to have some beans injected. For now we created a patchy solution with a singleton which holds a reference to the applicationContext. At construction time/initializing time we use this to retrieve the desired beans.</p>
<p dir="auto">However what I would like to do is to wire up this delegate from my spring configuration and use that in our aop:declare-parents/ tag.</p>
<p dir="auto">Something like this.</p>
<p dir="auto"><bean id="someDelegate" class="com.mybiz.myapp.common.SomeDelegate"><br>
<property name="hibernateTemplate" ref="hibernateTemplate"/><br>
</bean><br>
<aop:declare-parents types-matching="[aspectj expression]" implement-interface="[interface to introduce]" delegate-ref="someDelegate"/></p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0.4</p>
<p dir="auto">1 votes, 2 watchers</p> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=david_syer" rel="nofollow">Dave Syer</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2872?redirect=false" rel="nofollow">SPR-2872</a></strong> and commented</p>
<p dir="auto">I seems limiting (maybe there's a reason and I haven't figured it out) that I can only declare an introduction implementation as a class to be instantiated, not an actual bean instance. E.g. instead of:</p>
<p dir="auto"><aop:declare-parents types-matching="test.aop.TestBean"<br>
implement-interface="test.aop.Counter"<br>
default-impl="test.aop.NullCounter"/></p>
<p dir="auto">we might see</p>
<p dir="auto"><aop:declare-parents types-matching="test.aop.TestBean"<br>
implement-interface="test.aop.Counter"<br>
default-ref="nullCounter"/></p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0.1</p>
<p dir="auto">1 votes, 1 watchers</p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<ul dir="auto">
<li>Once a <code class="notranslate">Collapse</code> has finished animating in and has the <code class="notranslate">entered</code> className, <code class="notranslate">overflow</code> should be set to <code class="notranslate">visible</code> so borders, box-shadows, <code class="notranslate">Checkbox</code> ripples, contents positioned outside etc are visible.</li>
</ul>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Currently the <a href="https://github.com/mui-org/material-ui/blob/v1-beta/src/transitions/Collapse.js#L18-L20">implementation</a> only sets the <code class="notranslate">height</code> to <code class="notranslate">auto</code>, and the contents of a component which uses <code class="notranslate">Collapse</code> (like <code class="notranslate">StepContent</code>) can be clipped e.g. shadows around <code class="notranslate">Paper</code>s, <code class="notranslate">Card</code>s etc</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto"><a href="https://codesandbox.io/s/koo6069llv" rel="nofollow">https://codesandbox.io/s/koo6069llv</a></p>
<h2 dir="auto">Context</h2>
<p dir="auto">The most common case where this will pop up is when using a form in a <code class="notranslate">Stepper</code> with <code class="notranslate">orientation</code> set to <code class="notranslate">vertical</code>. The ripple from a <code class="notranslate">Checkbox</code> will clip at the edge of the <code class="notranslate">Collapse</code> used in <code class="notranslate">StepContent</code>.</p>
<h2 dir="auto">Your Environment</h2>
<p dir="auto">See codesandbox link above.</p>
<h2 dir="auto">Workaround</h2>
<p dir="auto">I was able to use theme overrides to work around this for now:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="createMuiTheme({
overrides: {
MuiCollapse: {
entered: {
height: "auto",
overflow: "visible"
}
}
}
});"><pre class="notranslate"><span class="pl-en">createMuiTheme</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">overrides</span>: <span class="pl-kos">{</span>
<span class="pl-c1">MuiCollapse</span>: <span class="pl-kos">{</span>
<span class="pl-c1">entered</span>: <span class="pl-kos">{</span>
<span class="pl-c1">height</span>: <span class="pl-s">"auto"</span><span class="pl-kos">,</span>
<span class="pl-c1">overflow</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-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">The documentation of checkbox and radio button components at the docs website has 'label'.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">'label' property is missing.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">Link: <a href="http://www.material-ui.com/#/components/checkbox" rel="nofollow">http://www.material-ui.com/#/components/checkbox</a></p>
<p dir="auto">PS: I'm happy to help to update docs, would be cool if you guide me where props types are coming from.</p> | 0 |
<p dir="auto"><strong>Guten Tag!</strong><br>
For my <a href="https://github.com/aeqwa/aeq">project</a> i used the 0.8 version of rust.<br>
After i started to work on a <a href="https://github.com/aeqwa/aeq/blob/master/parser.rs">parser module</a> for my project.<br>
rustc crashed at compile time and i decided to go and use the git version now i get an error message.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="task 'rustc' has overflowed its stack
[1] 2625 illegal hardware instruction (core dumped) rustc main.rs"><pre class="notranslate"><code class="notranslate">task 'rustc' has overflowed its stack
[1] 2625 illegal hardware instruction (core dumped) rustc main.rs
</code></pre></div>
<p dir="auto">My project compiles without</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pub mod parser;"><pre class="notranslate"><code class="notranslate">pub mod parser;
</code></pre></div>
<p dir="auto">in my <a href="https://github.com/aeqwa/aeq/blob/master/main.rs">main.rs</a> perfectly.</p>
<p dir="auto">But i don't get an error message, what says what goes wrong.<br>
So I think thats an issue so thats reason you read that.</p>
<p dir="auto"><strong>Thanks for every help on the irc and for my problem!</strong></p>
<p dir="auto">Sebastian Pielawa</p> | <p dir="auto">The following program causes a stack overflow:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="struct S {
element: Option<S>
}
fn main() {
}"><pre class="notranslate"><code class="notranslate">struct S {
element: Option<S>
}
fn main() {
}
</code></pre></div>
<p dir="auto">There is a check that enums do not recurse in this way, but no such check for structs. (Note, though, that there is a check that structrs are <em>instantiable</em>, which is slightly different)</p> | 1 |
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd
empty_frame=pd.read_excel('pandas/tests/io/data/test1.xlsx', parse_cols=['A','B','C'])
print(empty_frame)
useful_frame=pd.read_csv('pandas/tests/io/data/test1.csv', usecols=['A','B','C'])
print(useful_frame)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-s1">empty_frame</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-en">read_excel</span>(<span class="pl-s">'pandas/tests/io/data/test1.xlsx'</span>, <span class="pl-s1">parse_cols</span><span class="pl-c1">=</span>[<span class="pl-s">'A'</span>,<span class="pl-s">'B'</span>,<span class="pl-s">'C'</span>])
<span class="pl-en">print</span>(<span class="pl-s1">empty_frame</span>)
<span class="pl-s1">useful_frame</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-s">'pandas/tests/io/data/test1.csv'</span>, <span class="pl-s1">usecols</span><span class="pl-c1">=</span>[<span class="pl-s">'A'</span>,<span class="pl-s">'B'</span>,<span class="pl-s">'C'</span>])
<span class="pl-en">print</span>(<span class="pl-s1">useful_frame</span>)</pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">based on making the argument naming consistent for various <code class="notranslate">read_*</code> functions (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20073572" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/4988" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/4988/hovercard" href="https://github.com/pandas-dev/pandas/issues/4988">#4988</a>), the functionality should also be consistent as well. ideally, keeping the read_excel ability to parse a string as well. a continuation of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="231183533" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/16488" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/16488/hovercard" href="https://github.com/pandas-dev/pandas/pull/16488">#16488</a>.</p>
<h4 dir="auto">Expected Output</h4>
<p dir="auto">expected output to using <code class="notranslate">parse_col=</code>/<code class="notranslate">usecols=['A','B','C']</code> is a dataFrame containing the data in excel columns A, B, & C.</p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.4.5.final.0
python-bits: 64
OS: Darwin
OS-release: 16.6.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
<p dir="auto">pandas: 0.19.2<br>
nose: None<br>
pip: 9.0.1<br>
setuptools: 27.2.0<br>
Cython: 0.25.2<br>
numpy: 1.11.3<br>
scipy: 0.18.1<br>
statsmodels: None<br>
xarray: None<br>
IPython: 5.1.0<br>
sphinx: 1.5.1<br>
patsy: 0.4.1<br>
dateutil: 2.6.0<br>
pytz: 2017.2<br>
blosc: None<br>
bottleneck: 1.2.0<br>
tables: 3.3.0<br>
numexpr: 2.6.1<br>
matplotlib: 2.0.0<br>
openpyxl: 2.4.1<br>
xlrd: 1.0.0<br>
xlwt: 1.2.0<br>
xlsxwriter: 0.9.6<br>
lxml: 3.7.2<br>
bs4: 4.3.2<br>
html5lib: 0.999<br>
httplib2: None<br>
apiclient: None<br>
sqlalchemy: 1.1.5<br>
pymysql: 0.7.9.None<br>
psycopg2: None<br>
jinja2: 2.9.6<br>
boto: None<br>
pandas_datareader: None</p>
</details> | <p dir="auto"><em>edit: behavior with DataFrame[sparse]</em></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [68]: a=np.zeros(shape=(5,5))
In [69]: pd.DataFrame(a).apply(lambda x: pd.SparseArray(x, fill_value=0)).drop_duplicates()
Out[69]:
0 1 2 3 4
0 NaN NaN NaN NaN NaN
"><pre class="notranslate"><code class="notranslate">In [68]: a=np.zeros(shape=(5,5))
In [69]: pd.DataFrame(a).apply(lambda x: pd.SparseArray(x, fill_value=0)).drop_duplicates()
Out[69]:
0 1 2 3 4
0 NaN NaN NaN NaN NaN
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
It seems as if pd.SparseDataFrame().duplicated consistently fails when SparseDataFrame contains the value provided by `default_fill_value` in the data.
When SpraseDataFrame does not contain the default_fill_value everything works fine.
to reproduce, default_fill_value can be anything, either the default NaN or a manually specified one (I chose 0).
Reproduction:
```
In [2]: import pandas as pd
In [3]: import numpy as np
In [4]: a=np.zeros(shape=(5,5))
In [5]: df=pd.SparseDataFrame(a)
In [6]: df.drop_duplicates() # <- This is good
Out[6]:
0 1 2 3 4
0 0 0 0 0 0
In [8]: df=pd.SparseDataFrame(a, default_fill_value=0)
In [9]: df.drop_duplicates() # <- This should work similarly to [6] but fails instead
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-9-daf275b6788b> in <module>()
----> 1 df.drop_duplicates()
/usr/local/lib/python2.7/dist-packages/pandas/util/decorators.pyc in wrapper(*args, **kwargs)
87 else:
88 kwargs[new_arg_name] = new_arg_value
---> 89 return func(*args, **kwargs)
90 return wrapper
91 return _deprecate_kwarg
/usr/local/lib/python2.7/dist-packages/pandas/util/decorators.pyc in wrapper(*args, **kwargs)
87 else:
88 kwargs[new_arg_name] = new_arg_value
---> 89 return func(*args, **kwargs)
90 return wrapper
91 return _deprecate_kwarg
/usr/local/lib/python2.7/dist-packages/pandas/core/frame.pyc in drop_duplicates(self, subset, keep, inplace)
3003 deduplicated : DataFrame
3004 """
-> 3005 duplicated = self.duplicated(subset, keep=keep)
3006
3007 if inplace:
/usr/local/lib/python2.7/dist-packages/pandas/util/decorators.pyc in wrapper(*args, **kwargs)
87 else:
88 kwargs[new_arg_name] = new_arg_value
---> 89 return func(*args, **kwargs)
90 return wrapper
91 return _deprecate_kwarg
/usr/local/lib/python2.7/dist-packages/pandas/util/decorators.pyc in wrapper(*args, **kwargs)
87 else:
88 kwargs[new_arg_name] = new_arg_value
---> 89 return func(*args, **kwargs)
90 return wrapper
91 return _deprecate_kwarg
/usr/local/lib/python2.7/dist-packages/pandas/core/frame.pyc in duplicated(self, subset, keep)
3056
3057 ids = get_group_index(labels, shape, sort=False, xnull=False)
-> 3058 return Series(duplicated_int64(ids, keep), index=self.index)
3059
3060 #----------------------------------------------------------------------
/usr/local/lib/python2.7/dist-packages/pandas/core/series.pyc in __init__(self, data, index, dtype, name, copy, fastpath)
225 raise_cast_failure=True)
226
--> 227 data = SingleBlockManager(data, index, fastpath=True)
228
229 generic.NDFrame.__init__(self, data, fastpath=True)
/usr/local/lib/python2.7/dist-packages/pandas/core/internals.pyc in __init__(self, block, axis, do_integrity_check, fastpath)
3734 block = make_block(block,
3735 placement=slice(0, len(axis)),
-> 3736 ndim=1, fastpath=True)
3737
3738 self.blocks = [block]
/usr/local/lib/python2.7/dist-packages/pandas/core/internals.pyc in make_block(values, placement, klass, ndim, dtype, fastpath)
2452
2453 return klass(values, ndim=ndim, fastpath=fastpath,
-> 2454 placement=placement)
2455
2456
/usr/local/lib/python2.7/dist-packages/pandas/core/internals.pyc in __init__(self, values, placement, ndim, fastpath)
85 raise ValueError('Wrong number of items passed %d,'
86 ' placement implies %d' % (
---> 87 len(self.values), len(self.mgr_locs)))
88
89 @property
ValueError: Wrong number of items passed 0, placement implies 5
```
show_versions():
```
In [2]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.9.final.0
python-bits: 64
OS: Linux
OS-release: 3.16.0-4-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1
nose: 1.3.7
pip: 7.1.2
setuptools: 18.5
Cython: 0.23.4
numpy: 1.10.1
scipy: 0.16.1
statsmodels: None
IPython: 4.0.0
sphinx: 1.3.1
patsy: None
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: None
numexpr: 2.4.6
matplotlib: 1.5.0
openpyxl: None
xlrd: None
xlwt: 1.0.0
xlsxwriter: None
lxml: None
bs4: None
html5lib: 0.9999999
httplib2: None
apiclient: None
sqlalchemy: 1.0.9
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext lo64)
Jinja2: None
```"><pre class="notranslate"><code class="notranslate">
It seems as if pd.SparseDataFrame().duplicated consistently fails when SparseDataFrame contains the value provided by `default_fill_value` in the data.
When SpraseDataFrame does not contain the default_fill_value everything works fine.
to reproduce, default_fill_value can be anything, either the default NaN or a manually specified one (I chose 0).
Reproduction:
```
In [2]: import pandas as pd
In [3]: import numpy as np
In [4]: a=np.zeros(shape=(5,5))
In [5]: df=pd.SparseDataFrame(a)
In [6]: df.drop_duplicates() # <- This is good
Out[6]:
0 1 2 3 4
0 0 0 0 0 0
In [8]: df=pd.SparseDataFrame(a, default_fill_value=0)
In [9]: df.drop_duplicates() # <- This should work similarly to [6] but fails instead
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-9-daf275b6788b> in <module>()
----> 1 df.drop_duplicates()
/usr/local/lib/python2.7/dist-packages/pandas/util/decorators.pyc in wrapper(*args, **kwargs)
87 else:
88 kwargs[new_arg_name] = new_arg_value
---> 89 return func(*args, **kwargs)
90 return wrapper
91 return _deprecate_kwarg
/usr/local/lib/python2.7/dist-packages/pandas/util/decorators.pyc in wrapper(*args, **kwargs)
87 else:
88 kwargs[new_arg_name] = new_arg_value
---> 89 return func(*args, **kwargs)
90 return wrapper
91 return _deprecate_kwarg
/usr/local/lib/python2.7/dist-packages/pandas/core/frame.pyc in drop_duplicates(self, subset, keep, inplace)
3003 deduplicated : DataFrame
3004 """
-> 3005 duplicated = self.duplicated(subset, keep=keep)
3006
3007 if inplace:
/usr/local/lib/python2.7/dist-packages/pandas/util/decorators.pyc in wrapper(*args, **kwargs)
87 else:
88 kwargs[new_arg_name] = new_arg_value
---> 89 return func(*args, **kwargs)
90 return wrapper
91 return _deprecate_kwarg
/usr/local/lib/python2.7/dist-packages/pandas/util/decorators.pyc in wrapper(*args, **kwargs)
87 else:
88 kwargs[new_arg_name] = new_arg_value
---> 89 return func(*args, **kwargs)
90 return wrapper
91 return _deprecate_kwarg
/usr/local/lib/python2.7/dist-packages/pandas/core/frame.pyc in duplicated(self, subset, keep)
3056
3057 ids = get_group_index(labels, shape, sort=False, xnull=False)
-> 3058 return Series(duplicated_int64(ids, keep), index=self.index)
3059
3060 #----------------------------------------------------------------------
/usr/local/lib/python2.7/dist-packages/pandas/core/series.pyc in __init__(self, data, index, dtype, name, copy, fastpath)
225 raise_cast_failure=True)
226
--> 227 data = SingleBlockManager(data, index, fastpath=True)
228
229 generic.NDFrame.__init__(self, data, fastpath=True)
/usr/local/lib/python2.7/dist-packages/pandas/core/internals.pyc in __init__(self, block, axis, do_integrity_check, fastpath)
3734 block = make_block(block,
3735 placement=slice(0, len(axis)),
-> 3736 ndim=1, fastpath=True)
3737
3738 self.blocks = [block]
/usr/local/lib/python2.7/dist-packages/pandas/core/internals.pyc in make_block(values, placement, klass, ndim, dtype, fastpath)
2452
2453 return klass(values, ndim=ndim, fastpath=fastpath,
-> 2454 placement=placement)
2455
2456
/usr/local/lib/python2.7/dist-packages/pandas/core/internals.pyc in __init__(self, values, placement, ndim, fastpath)
85 raise ValueError('Wrong number of items passed %d,'
86 ' placement implies %d' % (
---> 87 len(self.values), len(self.mgr_locs)))
88
89 @property
ValueError: Wrong number of items passed 0, placement implies 5
```
show_versions():
```
In [2]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.9.final.0
python-bits: 64
OS: Linux
OS-release: 3.16.0-4-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1
nose: 1.3.7
pip: 7.1.2
setuptools: 18.5
Cython: 0.23.4
numpy: 1.10.1
scipy: 0.16.1
statsmodels: None
IPython: 4.0.0
sphinx: 1.3.1
patsy: None
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: None
numexpr: 2.4.6
matplotlib: 1.5.0
openpyxl: None
xlrd: None
xlwt: 1.0.0
xlsxwriter: None
lxml: None
bs4: None
html5lib: 0.9999999
httplib2: None
apiclient: None
sqlalchemy: 1.0.9
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext lo64)
Jinja2: None
```
</code></pre></div> | 0 |
<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/main/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Electron Version</h3>
<p dir="auto">15.0.0</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">Windows</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">Windows 10</p>
<h3 dir="auto">What arch are you using?</h3>
<p dir="auto">x64</p>
<h3 dir="auto">Last Known Working Electron version</h3>
<p dir="auto">13.1.7</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto"><code class="notranslate">-webkit-app-region: drag</code> move the window</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto"><code class="notranslate">-webkit-app-region: drag</code> is not moving the window</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">I created a BrowserWindow with this configuration</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
frame: false,
width: 315,
minWidth: 315,
height: 485,
minHeight: 485,
resizable: false,
maximizable: false,
webPreferences:{
nodeIntegration: true,
preload: path.join(__dirname, "preload.js")
}
}"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-c1">frame</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">width</span>: <span class="pl-c1">315</span><span class="pl-kos">,</span>
<span class="pl-c1">minWidth</span>: <span class="pl-c1">315</span><span class="pl-kos">,</span>
<span class="pl-c1">height</span>: <span class="pl-c1">485</span><span class="pl-kos">,</span>
<span class="pl-c1">minHeight</span>: <span class="pl-c1">485</span><span class="pl-kos">,</span>
<span class="pl-c1">resizable</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">maximizable</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">webPreferences</span>:<span class="pl-kos">{</span>
<span class="pl-c1">nodeIntegration</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">preload</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-s">"preload.js"</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">In the window there was a div with this style: <code class="notranslate">-webkit-app-region: drag</code><br>
But he not moves this window</p>
<p dir="auto">After some tests I found out that the property <code class="notranslate"> resizable: false</code> was what caused the problem and the property<br>
<code class="notranslate">movable: true</code> does not fix the error</p>
<p dir="auto">Sorry for the poor English I'm not fluent :)</p> | <h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Electron Version</h3>
<p dir="auto">14.0.0</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">Windows</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">Windows 10 Pro - 20H2 - 19042.1165 - Windows Feature Experience Pack 120.2212.3530.0</p>
<h3 dir="auto">What arch are you using?</h3>
<p dir="auto">x64</p>
<h3 dir="auto">Last Known Working Electron version</h3>
<p dir="auto">13.2.2</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">When creating a new, frameless BrowserWindow setting <code class="notranslate">resizable: false</code> should not change the behaviour of custom app drag regions defined using <code class="notranslate">-webkit-app-region: drag;</code>.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">When creating a new, frameless BrowserWindow with the test scenario in the Gist (using Electron Fiddle) the region I've defined as draggable using <code class="notranslate">-webkit-app-region: drag;</code> does not allow me to drag the BrowserWindow <em>if</em> <code class="notranslate">resizable</code> is set to <code class="notranslate">false</code>.</p>
<p dir="auto">You can see the difference by commenting/uncommenting the <code class="notranslate">resizable: false</code> line in the Electron Fiddle Gist example.</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><a href="https://gist.github.com/68a75365505163c4a19ab19c5ffd062a">https://gist.github.com/68a75365505163c4a19ab19c5ffd062a</a></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">Just to note that I've also tried using <code class="notranslate">win.setResizable(false);</code> after the BrowserWindow has loaded and this then also disables the ability to drag the frameless BrowserWindow. Using the following code also then re-enables dragging after 5 seconds so the bug seems directly tied to the BrowserWindow not being resizable.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="setTimeout(() => {
mainWindow.setResizable(true);
}, 5000);"><pre class="notranslate"><code class="notranslate">setTimeout(() => {
mainWindow.setResizable(true);
}, 5000);
</code></pre></div> | 1 |
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/37213113/59999479-a93a3080-9694-11e9-900f-ee5f3b111cf0.png"><img src="https://user-images.githubusercontent.com/37213113/59999479-a93a3080-9694-11e9-900f-ee5f3b111cf0.png" alt="image" style="max-width: 100%;"></a></p> | <h1 dir="auto">Environment</h1>
<p dir="auto">Windows build number: Windows 10 1903<br>
Windows Terminal version (if applicable): 0.2.1715.0</p>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">you can only drag the window when clicking on the window title that is actually colored in Windows 10 color style ([1]marked green)<br>
click on the window title ([1]marked red) you cannot move the window</p>
<p dir="auto">![windows terminal drag window]<br>
![1]<br>
(<a href="https://user-images.githubusercontent.com/45657752/59983328-9258f700-961e-11e9-9522-357b93c911b0.png" rel="nofollow">https://user-images.githubusercontent.com/45657752/59983328-9258f700-961e-11e9-9522-357b93c911b0.png</a>)</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">I expect that left mouse click and hold on the complete window title should allow dragging of the Windows Terminal window.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">The left space this is reserved ([1]marked red) for new tabs or existing tabs (black) cannot be used to move the window</p> | 1 |
<p dir="auto">It would be nice if the bottom-docked pane (integrated terminal, Output view, etc.) could optionally appear as a column alongside the editors, instead of docked to the bottom. My team has a command-line test watcher and node server that we keep an eye on while developing. Our terminal output tends to be tall and narrow. A column view or side-docked view would fit better and not cover vertical space of the editors.</p> | <p dir="auto">It's nice that the implementations of <code class="notranslate">FormatDocumentProvider</code> and <code class="notranslate">DocumentSymbolProvider</code> can be used via <code class="notranslate">executeCommand</code>. However, the return types are undocumented and subtely different from what the implementation side produces.</p>
<ol dir="auto">
<li>Is this intentional?</li>
<li>Is it considered a supported scenario for extensions to use <code class="notranslate">executeCommand</code> on these commands? Or should they factor out their implementation and use the implementation code directly?</li>
</ol>
<p dir="auto">For <code class="notranslate">FormatDocumentProvider</code> for example, I provide a <code class="notranslate">TextEdit[]</code> which is:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[
{
"_range": {
"_start": {
"_line": 2,
"_character": 7
},
"_end": {
"_line": 4,
"_character": 4
}
},
"_newText": ""
},
{
"_range": {
"_start": {
"_line": 4,
"_character": 14
},
"_end": {
"_line": 5,
"_character": 1
}
},
"_newText": ""
}
]"><pre class="notranslate">[
{
<span class="pl-ent">"_range"</span>: {
<span class="pl-ent">"_start"</span>: {
<span class="pl-ent">"_line"</span>: <span class="pl-c1">2</span>,
<span class="pl-ent">"_character"</span>: <span class="pl-c1">7</span>
},
<span class="pl-ent">"_end"</span>: {
<span class="pl-ent">"_line"</span>: <span class="pl-c1">4</span>,
<span class="pl-ent">"_character"</span>: <span class="pl-c1">4</span>
}
},
<span class="pl-ent">"_newText"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
},
{
<span class="pl-ent">"_range"</span>: {
<span class="pl-ent">"_start"</span>: {
<span class="pl-ent">"_line"</span>: <span class="pl-c1">4</span>,
<span class="pl-ent">"_character"</span>: <span class="pl-c1">14</span>
},
<span class="pl-ent">"_end"</span>: {
<span class="pl-ent">"_line"</span>: <span class="pl-c1">5</span>,
<span class="pl-ent">"_character"</span>: <span class="pl-c1">1</span>
}
},
<span class="pl-ent">"_newText"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
}
]</pre></div>
<p dir="auto">but <code class="notranslate">executeCommand("vscode.executeFormatDocumentProvider", ...)</code> receives this as:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[
{
"text": "",
"range": {
"startLineNumber": 3,
"startColumn": 8,
"endLineNumber": 5,
"endColumn": 5
}
},
{
"text": "",
"range": {
"startLineNumber": 5,
"startColumn": 15,
"endLineNumber": 6,
"endColumn": 2
}
}
]"><pre class="notranslate">[
{
<span class="pl-ent">"text"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>,
<span class="pl-ent">"range"</span>: {
<span class="pl-ent">"startLineNumber"</span>: <span class="pl-c1">3</span>,
<span class="pl-ent">"startColumn"</span>: <span class="pl-c1">8</span>,
<span class="pl-ent">"endLineNumber"</span>: <span class="pl-c1">5</span>,
<span class="pl-ent">"endColumn"</span>: <span class="pl-c1">5</span>
}
},
{
<span class="pl-ent">"text"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>,
<span class="pl-ent">"range"</span>: {
<span class="pl-ent">"startLineNumber"</span>: <span class="pl-c1">5</span>,
<span class="pl-ent">"startColumn"</span>: <span class="pl-c1">15</span>,
<span class="pl-ent">"endLineNumber"</span>: <span class="pl-c1">6</span>,
<span class="pl-ent">"endColumn"</span>: <span class="pl-c1">2</span>
}
}
]</pre></div>
<p dir="auto">The combination of completely different shape plus the 1-based numbering makes this data difficult to work with.</p>
<p dir="auto">Similarly different results are returned from others similar commands.</p> | 0 |
<p dir="auto">Uncaught Error: spawn /usr/share/atom/atom ENOENT</p>
<p dir="auto"><strong>Atom Version</strong>: 0.154.0<br>
<strong>System</strong>: linux 3.13.0-40-generic<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>...</li>
<li>...</li>
</ol>
<h3 dir="auto">Stack Trace</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At events.js:85
Error: spawn /usr/share/atom/atom ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
"><pre class="notranslate"><code class="notranslate">At events.js:85
Error: spawn /usr/share/atom/atom ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
</code></pre></div> | <p dir="auto"><strong>TEMPORARY WORKAROUND</strong>: <code class="notranslate">ln -s /usr/share/atom/atom "/usr/share/atom/atom (deleted)"</code></p>
<p dir="auto">Uncaught Error: spawn /opt/atom/atom (deleted) ENOENT</p>
<p dir="auto"><strong>Atom Version</strong>: 0.152.0<br>
<strong>System</strong>: linux 3.13.0-40-generic<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>...</li>
<li>...</li>
</ol>
<h3 dir="auto">Stack Trace</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At events.js:85
Error: spawn /opt/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
"><pre class="notranslate"><code class="notranslate">At events.js:85
Error: spawn /opt/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
</code></pre></div> | 1 |
<pre class="notranslate">Related issues: 4501, 4234
The package net contains some APIs that fetches the kernel state, specifically
network interfaces and its belongings for creating new connections. <a href="https://golang.org/issue/4501" rel="nofollow">issue #4501</a>,
4234 focus on transport API, Dial and Listen, but are not for under the hood API.
This issue holds that how could we support IPv6 scoped address zone support
for such under the hood API, including whether it should be a part of net API.
API that would be affected:
type IPNet struct
method (*IPNet) String
type IPAddr struct
method (*IPAddr) String
func Interfaces
func InterfaceAddrs
method (*Interface) Addrs
method (*Interface) MulticastAddrs</pre> | <pre class="notranslate"><a href="http://play.golang.org/p/yjqyCAEMyR" rel="nofollow">http://play.golang.org/p/yjqyCAEMyR</a>
What is the expected output?
I expect all examples to listen on an IPv4 address. On the playground this is the case.
What do you see instead?
net.Listen("tcp", "0.0.0.0:11111") listens on [::]:11111 on my
system.
The full output is:
2014/02/25 19:59:14 0.0.0.0:11111
2014/02/25 19:59:14 [::]:11112
2014/02/25 19:59:14 127.0.0.1:11113
2014/02/25 19:59:14 127.0.0.1:11114
Which operating system are you using?
Ubuntu 12.04, 3.8.0-36-generic
Which version are you using? (run 'go version' or 'gccgo --version')
go version go1.2 linux/amd64
The only reason the examples use different ports is because the playground doesn't
Close() quickly enough for the program to succeed (it works when I Close() locally).
From testing, I don't think port number makes a difference to the behaviour.
Admittedly the workaround is trivial, but I thought this worth reporting anyway.</pre> | 0 |
<p dir="auto">It appears that kube-ui supports only 'default' namespace.<br>
Any pod,rc,service created in namespaces other than 'default' are not shown/accessible via kube-ui.</p> | <p dir="auto">While debugging <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="59921304" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/5091" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/5091/hovercard" href="https://github.com/kubernetes/kubernetes/issues/5091">#5091</a> I noticed that when I'm creating guestbook application by running <code class="notranslate">./cluster/kubectl.sh create -f examples/guestbook</code> there is a chance that frontend pods come up before information about environment variables of redis is propagated. In such case frontend can't connect to database during its whole life.</p>
<p dir="auto">It's actually more general problem, since most of complex application might be affected by this. Also I think create a set of resource (especially by specifying the directory of their config files) should just work no matter of the order of creation.</p>
<p dir="auto">I can see few solutions of such problem:</p>
<ol dir="auto">
<li>Get rid off HOST:PORT stuff and start using DNS service instead.</li>
<li>Add ability to wait for such information being propagated.</li>
<li>Injecting environment variables to container somehow(?).</li>
</ol> | 0 |
<p dir="auto">The title says it all. I'd like if <code class="notranslate">fetch</code> could also open local files, just like the browser can if the origin ist <code class="notranslate">file://</code>.</p>
<p dir="auto">There is even a test that checks that this does not work here: </p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/denoland/deno/blob/e568ddf99687f635abe931c1eff2b8b37be3bc54/cli/tests/unit/fetch_test.ts#L14-L20">deno/cli/tests/unit/fetch_test.ts</a>
</p>
<p class="mb-0 color-fg-muted">
Lines 14 to 20
in
<a data-pjax="true" class="commit-tease-sha" href="/denoland/deno/commit/e568ddf99687f635abe931c1eff2b8b37be3bc54">e568ddf</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="L14" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="14"></td>
<td id="LC14" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">await</span> <span class="pl-en">assertThrowsAsync</span><span class="pl-kos">(</span> </td>
</tr>
<tr class="border-0">
<td id="L15" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="15"></td>
<td id="LC15" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">Promise</span><span class="pl-kos"><</span><span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">></span> <span class="pl-c1">=></span> <span class="pl-kos">{</span> </td>
</tr>
<tr class="border-0">
<td id="L16" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="16"></td>
<td id="LC16" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">await</span> <span class="pl-en">fetch</span><span class="pl-kos">(</span><span class="pl-s">"file:///"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> </td>
</tr>
<tr class="border-0">
<td id="L17" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="17"></td>
<td id="LC17" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">}</span><span class="pl-kos">,</span> </td>
</tr>
<tr class="border-0">
<td id="L18" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="18"></td>
<td id="LC18" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-smi">TypeError</span><span class="pl-kos">,</span> </td>
</tr>
<tr class="border-0">
<td id="L19" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="19"></td>
<td id="LC19" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"not supported"</span><span class="pl-kos">,</span> </td>
</tr>
<tr class="border-0">
<td id="L20" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="20"></td>
<td id="LC20" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">)</span><span class="pl-kos">;</span> </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto">Allowing <code class="notranslate">file://</code> could profit any library or script that really just needs the contents of a file and doesn't really care where it is.... just like <code class="notranslate">deno run</code> in fact.</p>
<p dir="auto">At this moment, you'd have to implement some kind of wrapper.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="async function readTextFile(url: URL): Promise<string> {
if (url.protocol === 'file:' && typeof Deno.readTextFile !== 'undefined') {
return await Deno.readTextFile(url.pathname)
} else {
const response = await fetch(url)
return await response.text()
}
}"><pre class="notranslate">async <span class="pl-k">function</span> <span class="pl-s1">readTextFile</span><span class="pl-kos">(</span><span class="pl-s1">url</span>: <span class="pl-c1">URL</span><span class="pl-kos">)</span>: <span class="pl-v">Promise</span><span class="pl-c1"><</span><span class="pl-s1">string</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
<span class="pl-c1">if</span> <span class="pl-kos">(</span><span class="pl-s1">url</span><span class="pl-kos">.</span><span class="pl-s1">protocol</span> <span class="pl-c1">===</span> <span class="pl-s">'file:'</span> <span class="pl-c1">&&</span> <span class="pl-k">typeof</span> <span class="pl-v">Deno</span><span class="pl-kos">.</span><span class="pl-c1">readTextFile</span> <span class="pl-c1">!==</span> <span class="pl-s">'undefined'</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-k">await</span> <span class="pl-v">Deno</span><span class="pl-kos">.</span><span class="pl-en">readTextFile</span><span class="pl-kos">(</span><span class="pl-s1">url</span><span class="pl-kos">.</span><span class="pl-c1">pathname</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">response</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-en">fetch</span><span class="pl-kos">(</span><span class="pl-s1">url</span><span class="pl-kos">)</span>
<span class="pl-k">return</span> <span class="pl-k">await</span> <span class="pl-s1">response</span><span class="pl-kos">.</span><span class="pl-en">text</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">There are a few things interesting points to look out for:</p>
<ul dir="auto">
<li>Error code mapping aka: 404 = not found/file does not exist, 403 = unauthorized/--allow-read-missing/filemod</li>
<li>Partial request?</li>
<li>Post/Put request?</li>
</ul> | <p dir="auto">Hello,<br>
I was trying to debug a small app and was surprised when <code class="notranslate">console.log</code> did not print the private properties of a class. I ran the code in Chrome and it printed the private property. So at least there is an inconsistency between Chrome and Deno. I would say private properties should be logged by <code class="notranslate">console.log</code> and friends, i.e.: <code class="notranslate">debug</code>, <code class="notranslate">warn</code>, <code class="notranslate">error</code> and <code class="notranslate">trace</code>. It's very useful for debugging purposes. Is this intended behavior?</p>
<h2 dir="auto">Example</h2>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Test {
#q = "qwe"
a = "asd"
}
let t = new Test()
console.log(t)"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Test</span> <span class="pl-kos">{</span>
#q <span class="pl-c1">=</span> <span class="pl-s">"qwe"</span>
<span class="pl-c1">a</span> <span class="pl-c1">=</span> <span class="pl-s">"asd"</span>
<span class="pl-kos">}</span>
<span class="pl-k">let</span> <span class="pl-s1">t</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Test</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">t</span><span class="pl-kos">)</span></pre></div>
<h2 dir="auto">Deno Result</h2>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/970403/98456457-81415500-2143-11eb-9cb2-de99f1e2430a.png"><img src="https://user-images.githubusercontent.com/970403/98456457-81415500-2143-11eb-9cb2-de99f1e2430a.png" alt="image" style="max-width: 100%;"></a></p>
<h2 dir="auto">Chrome Result</h2>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/970403/98456426-f5c7c400-2142-11eb-82d2-7737862fe53c.png"><img width="237" alt="image" src="https://user-images.githubusercontent.com/970403/98456426-f5c7c400-2142-11eb-82d2-7737862fe53c.png" style="max-width: 100%;"></a></p> | 0 |
<p dir="auto"><strong>Migrated issue, originally created by MartinH (<a href="https://github.com/dwt">@dwt</a>)</strong></p>
<p dir="auto">I've found that the documentation for join at <a href="http://docs.sqlalchemy.org/en/rel_0_8/orm/query.html#sqlalchemy.orm.query.Query.join" rel="nofollow">http://docs.sqlalchemy.org/en/rel_0_8/orm/query.html#sqlalchemy.orm.query.Query.join</a> was lacking the information that the direction of the join, i.e. what is the left side and what is the righthand side of a join can be decided by the way you write the argument to the join call.</p>
<p dir="auto">So it makes a difference if you write <code class="notranslate">DBSession.query(User).join(Track.user)</code> - that will <code class="notranslate">select * from Track join User</code> or if you write <code class="notranslate">DBSession.query(User).join(User.tracks)</code> which will <code class="notranslate">select * from User join Track</code>.</p>
<p dir="auto">As far as my understanding of sql is that shouldn't make a difference, but when you switch from join to <code class="notranslate">outerjoin()</code>, suddenly this distinction becomes very important as it defines the lefthand side of the left outer join and someting you cannot override even with <code class="notranslate">select_from()</code>.</p>
<p dir="auto">And that is what cost us quite some time today to figure out - so a clearer mention of this in the documentation would be really helpfull.</p>
<p dir="auto">Hope this clarifies what I mean,</p>
<p dir="auto">Best Regards,<br>
Martin</p> | <p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.ext.declarative import declared_attr
Base = declarative_base()
class A(Base):
__tablename__ = 'a'
id = Column(Integer, primary_key=True)
data = Column(String)
bs = relationship("B")
class B(A):
__tablename__ = 'b'
id = Column(Integer, ForeignKey('a.id'), primary_key=True)
class C(A):
__tablename__ = 'c'
c_id = Column(Integer, ForeignKey('a.id'), primary_key=True)
from sqlalchemy.sql.elements import ClauseList
# ClauseList / Bundle are equivalent
print(ClauseList(A.id, C.c_id))
print(Bundle("pk", A.id, C.c_id).__clause_element__())
# w/ same name, they are not because it creates the clause list using *c without using exprs
print(ClauseList(A.id, B.id))
print(Bundle("pk", A.id, B.id).__clause_element__())
"><pre class="notranslate"><code class="notranslate">from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.ext.declarative import declared_attr
Base = declarative_base()
class A(Base):
__tablename__ = 'a'
id = Column(Integer, primary_key=True)
data = Column(String)
bs = relationship("B")
class B(A):
__tablename__ = 'b'
id = Column(Integer, ForeignKey('a.id'), primary_key=True)
class C(A):
__tablename__ = 'c'
c_id = Column(Integer, ForeignKey('a.id'), primary_key=True)
from sqlalchemy.sql.elements import ClauseList
# ClauseList / Bundle are equivalent
print(ClauseList(A.id, C.c_id))
print(Bundle("pk", A.id, C.c_id).__clause_element__())
# w/ same name, they are not because it creates the clause list using *c without using exprs
print(ClauseList(A.id, B.id))
print(Bundle("pk", A.id, B.id).__clause_element__())
</code></pre></div>
<p dir="auto">output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="a.id, c.c_id
a.id, c.c_id
a.id, b.id
b.id
"><pre class="notranslate"><code class="notranslate">a.id, c.c_id
a.id, c.c_id
a.id, b.id
b.id
</code></pre></div>
<p dir="auto">fix:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="diff --git a/lib/sqlalchemy/orm/query.py b/lib/sqlalchemy/orm/query.py
index 98747c680..0b6b32a07 100644
--- a/lib/sqlalchemy/orm/query.py
+++ b/lib/sqlalchemy/orm/query.py
@@ -1738,7 +1738,7 @@ class Query(object):
self._group_by = False
return
- criterion = list(chain(*[_orm_columns(c) for c in criterion]))
+ criterion = c = list(chain(*[_orm_columns(c) for c in criterion]))
criterion = self._adapt_col_list(criterion)
if self._group_by is False:
@@ -3964,7 +3964,7 @@ class Bundle(InspectionAttr):
return cloned
def __clause_element__(self):
- return expression.ClauseList(group=False, *self.c)
+ return expression.ClauseList(group=False, *self.exprs)
@property
def clauses(self):
"><pre class="notranslate"><code class="notranslate">diff --git a/lib/sqlalchemy/orm/query.py b/lib/sqlalchemy/orm/query.py
index 98747c680..0b6b32a07 100644
--- a/lib/sqlalchemy/orm/query.py
+++ b/lib/sqlalchemy/orm/query.py
@@ -1738,7 +1738,7 @@ class Query(object):
self._group_by = False
return
- criterion = list(chain(*[_orm_columns(c) for c in criterion]))
+ criterion = c = list(chain(*[_orm_columns(c) for c in criterion]))
criterion = self._adapt_col_list(criterion)
if self._group_by is False:
@@ -3964,7 +3964,7 @@ class Bundle(InspectionAttr):
return cloned
def __clause_element__(self):
- return expression.ClauseList(group=False, *self.c)
+ return expression.ClauseList(group=False, *self.exprs)
@property
def clauses(self):
</code></pre></div> | 0 |
<p dir="auto">The following code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="use std::rc::Rc
struct ProblemType {
children [Option<Rc<ProblemType>>; 8],
}
impl ProblemType {
fn breaks_compiler() -> Option<Rc<ProblemType>> {
None
}
}"><pre class="notranslate"><code class="notranslate">use std::rc::Rc
struct ProblemType {
children [Option<Rc<ProblemType>>; 8],
}
impl ProblemType {
fn breaks_compiler() -> Option<Rc<ProblemType>> {
None
}
}
</code></pre></div>
<p dir="auto">Causes LLVM to fail an assertion, claiming:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/llvm/lib/IR/DataLayout.cpp:636: unsigned int llvm::DataLayout::getAlignment(llvm::Type*, bool) const: Assertion `Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"' failed."><pre class="notranslate"><code class="notranslate">rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/llvm/lib/IR/DataLayout.cpp:636: unsigned int llvm::DataLayout::getAlignment(llvm::Type*, bool) const: Assertion `Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"' failed.
</code></pre></div> | <p dir="auto">Example program:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use std::mem;
struct AlignmentStruct {
ptr: *mut [AlignmentStruct, ..1]
}
fn main() {
println!("{}", ::std::mem::align_of::<AlignmentStruct>());
}"><pre class="notranslate"><span class="pl-k">use</span> std<span class="pl-kos">::</span>mem<span class="pl-kos">;</span>
<span class="pl-k">struct</span> <span class="pl-smi">AlignmentStruct</span> <span class="pl-kos">{</span>
<span class="pl-c1">ptr</span><span class="pl-kos">:</span> <span class="pl-c1">*</span><span class="pl-k">mut</span> <span class="pl-kos">[</span><span class="pl-smi">AlignmentStruct</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-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-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"{}"</span>, ::std::mem::align_of::<<span class="pl-v">AlignmentStruct</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">Error message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/llvm/lib/IR/DataLayout.cpp:636: unsigned int llvm::DataLayout::getAlignment(llvm::Type*, bool) const: Assertion `Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"' failed."><pre class="notranslate"><code class="notranslate">rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/llvm/lib/IR/DataLayout.cpp:636: unsigned int llvm::DataLayout::getAlignment(llvm::Type*, bool) const: Assertion `Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"' failed.
</code></pre></div> | 1 |
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-invert-regular-expression-matches-with-javascript" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-invert-regular-expression-matches-with-javascript</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">My regex is returning the value 7, but assert(test === 36)<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/4dfb439e6a632f5f44cb60cd0338ccb7ece840d1a762d6d176f9b23a8f52bd3e/687474703a2f2f692e696d6775722e636f6d2f4b33474e5753762e6a7067"><img src="https://camo.githubusercontent.com/4dfb439e6a632f5f44cb60cd0338ccb7ece840d1a762d6d176f9b23a8f52bd3e/687474703a2f2f692e696d6775722e636f6d2f4b33474e5753762e6a7067" alt="screenshot" data-canonical-src="http://i.imgur.com/K3GNWSv.jpg" style="max-width: 100%;"></a></p>
<p dir="auto">Second test is passing with an invalid test:</p>
<p dir="auto">'You should be using the following expression /+S/gi to find the spaces in the testString.'</p>
<p dir="auto">This test is passing with the regex /\s/gi<br>
/+S/gi makes no sense - as it is searching for all matches of the literal '+' followed by a literal 'S'</p> | <p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-construct-javascript-objects-with-functions" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-construct-javascript-objects-with-functions</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">This is very similar to the bug I filed just a few minutes ago. The instructions tell the user to use "engine" as the name for one of the attributes. However, when you do that, your submission is flagged as incorrect.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11950942/9336786/4d421850-4590-11e5-99d9-21908527e30d.png"><img src="https://cloud.githubusercontent.com/assets/11950942/9336786/4d421850-4590-11e5-99d9-21908527e30d.png" alt="fcc wp js objs w fun" style="max-width: 100%;"></a></p> | 0 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [run "ver" at a command prompt]
PowerToys version:
PowerToy module for which you are reporting the bug (if applicable):"><pre class="notranslate"><code class="notranslate">Windows build number: [run "ver" at a command prompt]
PowerToys version:
PowerToy module for which you are reporting the bug (if applicable):
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<h1 dir="auto">Expected behavior</h1>
<h1 dir="auto">Actual behavior</h1>
<h1 dir="auto">Screenshots</h1> | <p dir="auto">When PowerToys loads at startup "Start typing..." appears on the screen/desktop for about half a second. Just text and no other design elements. I'm sure you hadn't meant it to. Otherwise I'm loving it</p>
<p dir="auto">PowerToys v0.18.3 on Windows 10 Home (Version 2004 - OS Build 19041.264 - WinFE Pack 120.2202.130.0)</p> | 0 |
<h2 dir="auto">Flutter Doctor</h2>
<p dir="auto">E:>flutter doctor<br>
Doctor summary (to see all details, run flutter doctor -v):<br>
[√] Flutter (on Microsoft Windows [Version 10.0.16299.248], locale en-US, channel beta)<br>
[√] Android toolchain - develop for Android devices (Android SDK 27.0.0)<br>
[√] Android Studio (version 3.0)<br>
[!] Connected devices<br>
! No devices available</p>
<p dir="auto">! Doctor found issues in 1 category.</p>
<p dir="auto">What's the problem here???</p> | <h2 dir="auto">Flutter Doctor</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\>flutter doctor -v
[√] Flutter (on Microsoft Windows [Version 10.0.16299.248], locale en-US, channel beta)
• Flutter version 0.1.4 at C:\flutter
• Framework revision f914e701c5 (9 days ago), 2018-02-19 21:12:17 +0000
• Engine revision 13cf22c284
• Dart version 2.0.0-dev.27.0-flutter-0d5cf900b0
[√] Android toolchain - develop for Android devices (Android SDK 27.0.0)
• Android SDK at C:\Users\zowhair\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[√] Android Studio (version 3.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[!] Connected devices
! No devices available
! Doctor found issues in 1 category."><pre class="notranslate"><code class="notranslate">C:\>flutter doctor -v
[√] Flutter (on Microsoft Windows [Version 10.0.16299.248], locale en-US, channel beta)
• Flutter version 0.1.4 at C:\flutter
• Framework revision f914e701c5 (9 days ago), 2018-02-19 21:12:17 +0000
• Engine revision 13cf22c284
• Dart version 2.0.0-dev.27.0-flutter-0d5cf900b0
[√] Android toolchain - develop for Android devices (Android SDK 27.0.0)
• Android SDK at C:\Users\zowhair\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[√] Android Studio (version 3.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[!] Connected devices
! No devices available
! Doctor found issues in 1 category.
</code></pre></div> | 1 |
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: v1.32.3</li>
<li>Operating System: 22.04.2 LTS (Jammy Jellyfish)</li>
<li>Browser: WebKit</li>
<li>Node.js Version: v18.15.0</li>
</ul>
<h3 dir="auto">Source code</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li>
</ul>
<p dir="auto"><strong>app.js</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const playwright = require('playwright');
async function captureScreenshot() {
const options = {
headless: true,
viewport: { width: 1920, height: 1080 }
}
const browser = await playwright.webkit.launch(options);
const context = await browser.newContext();
const page = await context.newPage();
await page.goto('https://fonts.google.com/specimen/Montserrat');
await page.waitForLoadState('networkidle');
await page.screenshot({path: `ss-headless-webkit-montserrat.png`, fullPage: true});
await browser.close();
}
captureScreenshot();"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">playwright</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-k">async</span> <span class="pl-k">function</span> <span class="pl-en">captureScreenshot</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">options</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">headless</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">viewport</span>: <span class="pl-kos">{</span> <span class="pl-c1">width</span>: <span class="pl-c1">1920</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">1080</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">const</span> <span class="pl-s1">browser</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">playwright</span><span class="pl-kos">.</span><span class="pl-c1">webkit</span><span class="pl-kos">.</span><span class="pl-en">launch</span><span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">context</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">newContext</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">context</span><span class="pl-kos">.</span><span class="pl-en">newPage</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'https://fonts.google.com/specimen/Montserrat'</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">waitForLoadState</span><span class="pl-kos">(</span><span class="pl-s">'networkidle'</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">screenshot</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">path</span>: <span class="pl-s">`ss-headless-webkit-montserrat.png`</span><span class="pl-kos">,</span> <span class="pl-c1">fullPage</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-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">close</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">captureScreenshot</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>node app.js</li>
</ul>
<p dir="auto"><strong>Expected</strong><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/121084902/232419487-546f733f-7da8-492d-a330-a0653a35cb07.png"><img src="https://user-images.githubusercontent.com/121084902/232419487-546f733f-7da8-492d-a330-a0653a35cb07.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Actual</strong><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/121084902/232419755-cd73eca8-4358-4f54-86af-799121842dd4.png"><img src="https://user-images.githubusercontent.com/121084902/232419755-cd73eca8-4358-4f54-86af-799121842dd4.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Context</h3>
<p dir="auto">My use case is to capture screenshots on different browsers.</p>
<p dir="auto">It works perfectly fine on my local setup (details given below) for all the browsers i.e <code class="notranslate">chromium</code>, <code class="notranslate">firefox</code> and <code class="notranslate">webkit</code>. But it doesn't work on <code class="notranslate">Ubuntu</code> specifically for <code class="notranslate">webkit</code>, works fine for <code class="notranslate">chromium</code> and <code class="notranslate">firefox</code>. (Ubuntu runs on the Docker image <code class="notranslate">mcr.microsoft.com/playwright:v1.32.3-jammy</code>. However, I also tried it on a live machine, it produces the same screenshots as the container)</p>
<p dir="auto">The issue seems to be font rendering. <code class="notranslate">Webkit</code> on <code class="notranslate">Ubuntu</code> can't render different weights of the font</p>
<p dir="auto">macOS (Local setup)</p>
<ul dir="auto">
<li>Playwright Version: v1.32.3</li>
<li>Operating System: Ventura Version 13.3.1</li>
<li>Browser: WebKit</li>
<li>Node.js Version: v18.15.0</li>
</ul>
<h3 dir="auto">Similar Issues</h3>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1324714630" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/16104" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/16104/hovercard" href="https://github.com/microsoft/playwright/issues/16104">#16104</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="935521290" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/7441" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/7441/hovercard" href="https://github.com/microsoft/playwright/issues/7441">#7441</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="641388729" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/2626" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/2626/hovercard" href="https://github.com/microsoft/playwright/issues/2626">#2626</a></p> | <h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [v1.32.2]</li>
<li>Operating System: [macOS BigSur]</li>
<li>Browser: [Chrome 112.0.5615.121]</li>
<li>Other info:</li>
</ul>
<h3 dir="auto">Source code</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I provided exact source code that allows reproducing the issue locally.</li>
</ul>
<p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p>
<p dir="auto"><strong>Config file</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export default defineConfig({
testDir: './tests',
/* Maximum time one test can run for. */
timeout: 600 * 1000,
globalTimeout: 1000 * 60 * 30,
expect: {
/**
* Maximum time expect() should wait for the condition to be met.
* For example in `await expect(locator).toHaveText();`
*/
timeout: 10000,
},
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: [['html', { open: 'always', port: process.env.NODE_SERVICE_PORT || '9103', host: 'local.webullbroker.com' }]],
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
actionTimeout: 0,
/* Base URL to use in actions like `await page.goto('/')`. */
// baseURL: 'http://localhost:3000',
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
},
/* Configure projects for major browsers */
projects: [
{ name: 'setup', testMatch: /.*\.setup\.ts/ },
{
name: 'chromium',
testMatch: 'List.spec.ts',
use: {
...devices['Desktop Chrome'],
storageState: 'playwright/.auth/user.json',
},
dependencies: ['setup'],
},
],
/* Folder for test artifacts such as screenshots, videos, traces, etc. */
// outputDir: 'test-results/',
/* Run your local dev server before starting the tests */
// webServer: {
// command: 'npm run start',
// port: 3000,
// },
})"><pre class="notranslate"><code class="notranslate">export default defineConfig({
testDir: './tests',
/* Maximum time one test can run for. */
timeout: 600 * 1000,
globalTimeout: 1000 * 60 * 30,
expect: {
/**
* Maximum time expect() should wait for the condition to be met.
* For example in `await expect(locator).toHaveText();`
*/
timeout: 10000,
},
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: [['html', { open: 'always', port: process.env.NODE_SERVICE_PORT || '9103', host: 'local.webullbroker.com' }]],
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
actionTimeout: 0,
/* Base URL to use in actions like `await page.goto('/')`. */
// baseURL: 'http://localhost:3000',
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
},
/* Configure projects for major browsers */
projects: [
{ name: 'setup', testMatch: /.*\.setup\.ts/ },
{
name: 'chromium',
testMatch: 'List.spec.ts',
use: {
...devices['Desktop Chrome'],
storageState: 'playwright/.auth/user.json',
},
dependencies: ['setup'],
},
],
/* Folder for test artifacts such as screenshots, videos, traces, etc. */
// outputDir: 'test-results/',
/* Run your local dev server before starting the tests */
// webServer: {
// command: 'npm run start',
// port: 3000,
// },
})
</code></pre></div>
<p dir="auto"><strong>Steps</strong></p>
<ul dir="auto">
<li>[Run the test]</li>
<li>[Click Traces Image]</li>
</ul>
<p dir="auto"><strong>Expected</strong></p>
<p dir="auto">[html reporter success open]</p>
<p dir="auto"><strong>Actual</strong><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25821307/233818469-627e9f45-c4a4-4179-b985-613fde5cfafa.png"><img src="https://user-images.githubusercontent.com/25821307/233818469-627e9f45-c4a4-4179-b985-613fde5cfafa.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25821307/233818482-480db917-ed5b-4600-9316-6f47e89cb23a.png"><img src="https://user-images.githubusercontent.com/25821307/233818482-480db917-ed5b-4600-9316-6f47e89cb23a.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25821307/233818489-65433d32-7bc4-4643-8e74-be5e81b3c1d2.png"><img src="https://user-images.githubusercontent.com/25821307/233818489-65433d32-7bc4-4643-8e74-be5e81b3c1d2.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">It cannot be accessed by domain name or reverse proxy, but it can be accessed by localhost or 127.0.0.1<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25821307/233818566-943496e7-799b-4543-abc5-b4519391209b.png"><img src="https://user-images.githubusercontent.com/25821307/233818566-943496e7-799b-4543-abc5-b4519391209b.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="caught (in promise) TypeError: Cannot read properties of undefined (reading 'register')
at index.a18c30b0.js:1:3355
at index.a18c30b0.js:1:3586
(anonymous) @ index.a18c30b0.js:1
(anonymous) @ index.a18c30b0.js:1"><pre class="notranslate"><code class="notranslate">caught (in promise) TypeError: Cannot read properties of undefined (reading 'register')
at index.a18c30b0.js:1:3355
at index.a18c30b0.js:1:3586
(anonymous) @ index.a18c30b0.js:1
(anonymous) @ index.a18c30b0.js:1
</code></pre></div> | 0 |
<p dir="auto">This test fails sometimes:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="___________ TestLocalTaskJob.test_process_sigterm_works_with_retries ___________
self = <tests.jobs.test_local_task_job.TestLocalTaskJob object at 0x7f3d380ae1f0>
dag_maker = <tests.conftest.dag_maker.<locals>.DagFactory object at 0x7f3d38917760>
def test_process_sigterm_works_with_retries(self, dag_maker):
"""
Test that ensures that task runner sets tasks to retry when they(task runner)
receive sigterm
"""
# use shared memory value so we can properly track value change even if
# it's been updated across processes.
retry_callback_called = Value('i', 0)
task_terminated_externally = Value('i', 1)
shared_mem_lock = Lock()
def retry_callback(context):
with shared_mem_lock:
retry_callback_called.value += 1
assert context['dag_run'].dag_id == 'test_mark_failure_2'
def task_function(ti):
time.sleep(60)
# This should not happen -- the state change should be noticed and the task should get killed
with shared_mem_lock:
task_terminated_externally.value = 0
with dag_maker(dag_id='test_mark_failure_2'):
task = PythonOperator(
task_id='test_on_failure',
python_callable=task_function,
retries=1,
retry_delay=timedelta(seconds=2),
on_retry_callback=retry_callback,
)
ti = TaskInstance(task=task, execution_date=DEFAULT_DATE)
ti.refresh_from_db()
job1 = LocalTaskJob(task_instance=ti, ignore_ti_state=True, executor=SequentialExecutor())
job1.task_runner = StandardTaskRunner(job1)
job1.task_runner.start()
settings.engine.dispose()
process = multiprocessing.Process(target=job1.run)
process.start()
for _ in range(0, 25):
ti.refresh_from_db()
if ti.state == State.RUNNING and ti.pid is not None:
break
time.sleep(0.2)
os.kill(process.pid, signal.SIGTERM)
process.join(timeout=10)
ti.refresh_from_db()
> assert ti.state == State.UP_FOR_RETRY
E AssertionError: assert None == <TaskInstanceState.UP_FOR_RETRY: 'up_for_retry'>
E + where None = <TaskInstance: test_mark_failure_2.test_on_failure 2016-01-01 00:00:00+00:00 [None]>.state
E + and <TaskInstanceState.UP_FOR_RETRY: 'up_for_retry'> = State.UP_FOR_RETRY
tests/jobs/test_local_task_job.py:828: AssertionError
----------------------------- Captured stdout call -----------------------------
Running <TaskInstance: test_mark_failure_2.test_on_failure 2016-01-01T00:00:00+00:00 [None]> on host 67aa517c450e
----------------------------- Captured stderr call -----------------------------
Process Process-113:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1276, in _execute_context
self.dialect.do_execute(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 608, in do_execute
cursor.execute(statement, parameters)
File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 206, in execute
res = self._query(query)
File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 319, in _query
db.query(q)
File "/usr/local/lib/python3.8/site-packages/MySQLdb/connections.py", line 259, in query
_mysql.connection.query(self, query)
MySQLdb._exceptions.IntegrityError: (1062, "Duplicate entry 'test_on_failure-test_mark_failure_2-2016-01-01 00:00:00.000000' for key 'task_instance.PRIMARY'")"><pre class="notranslate"><code class="notranslate">___________ TestLocalTaskJob.test_process_sigterm_works_with_retries ___________
self = <tests.jobs.test_local_task_job.TestLocalTaskJob object at 0x7f3d380ae1f0>
dag_maker = <tests.conftest.dag_maker.<locals>.DagFactory object at 0x7f3d38917760>
def test_process_sigterm_works_with_retries(self, dag_maker):
"""
Test that ensures that task runner sets tasks to retry when they(task runner)
receive sigterm
"""
# use shared memory value so we can properly track value change even if
# it's been updated across processes.
retry_callback_called = Value('i', 0)
task_terminated_externally = Value('i', 1)
shared_mem_lock = Lock()
def retry_callback(context):
with shared_mem_lock:
retry_callback_called.value += 1
assert context['dag_run'].dag_id == 'test_mark_failure_2'
def task_function(ti):
time.sleep(60)
# This should not happen -- the state change should be noticed and the task should get killed
with shared_mem_lock:
task_terminated_externally.value = 0
with dag_maker(dag_id='test_mark_failure_2'):
task = PythonOperator(
task_id='test_on_failure',
python_callable=task_function,
retries=1,
retry_delay=timedelta(seconds=2),
on_retry_callback=retry_callback,
)
ti = TaskInstance(task=task, execution_date=DEFAULT_DATE)
ti.refresh_from_db()
job1 = LocalTaskJob(task_instance=ti, ignore_ti_state=True, executor=SequentialExecutor())
job1.task_runner = StandardTaskRunner(job1)
job1.task_runner.start()
settings.engine.dispose()
process = multiprocessing.Process(target=job1.run)
process.start()
for _ in range(0, 25):
ti.refresh_from_db()
if ti.state == State.RUNNING and ti.pid is not None:
break
time.sleep(0.2)
os.kill(process.pid, signal.SIGTERM)
process.join(timeout=10)
ti.refresh_from_db()
> assert ti.state == State.UP_FOR_RETRY
E AssertionError: assert None == <TaskInstanceState.UP_FOR_RETRY: 'up_for_retry'>
E + where None = <TaskInstance: test_mark_failure_2.test_on_failure 2016-01-01 00:00:00+00:00 [None]>.state
E + and <TaskInstanceState.UP_FOR_RETRY: 'up_for_retry'> = State.UP_FOR_RETRY
tests/jobs/test_local_task_job.py:828: AssertionError
----------------------------- Captured stdout call -----------------------------
Running <TaskInstance: test_mark_failure_2.test_on_failure 2016-01-01T00:00:00+00:00 [None]> on host 67aa517c450e
----------------------------- Captured stderr call -----------------------------
Process Process-113:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1276, in _execute_context
self.dialect.do_execute(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 608, in do_execute
cursor.execute(statement, parameters)
File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 206, in execute
res = self._query(query)
File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 319, in _query
db.query(q)
File "/usr/local/lib/python3.8/site-packages/MySQLdb/connections.py", line 259, in query
_mysql.connection.query(self, query)
MySQLdb._exceptions.IntegrityError: (1062, "Duplicate entry 'test_on_failure-test_mark_failure_2-2016-01-01 00:00:00.000000' for key 'task_instance.PRIMARY'")
</code></pre></div> | <h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">Other Airflow 2 version</p>
<h3 dir="auto">What happened</h3>
<p dir="auto">If a task gets scheduled on a different worker host from a previous run, logs from that previous run will be unavailable from the webserver.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7269927/187462675-010a2b6f-e2e5-4784-9b19-315f3b22ecf5.png"><img src="https://user-images.githubusercontent.com/7269927/187462675-010a2b6f-e2e5-4784-9b19-315f3b22ecf5.png" alt="Screenshot from 2022-08-30 09-22-39" style="max-width: 100%;"></a></p>
<p dir="auto">From my observation, it's pretty clear that this is happening because Airflow is looking for logs at the <em>most recent</em> hostname, not at the hostname that hosted the historical run. You can watch this happen "live" with the example DAG below - each time the task retries on a different worker, the URL that it attempts to use for historical logs changes to use the most recent hostname.</p>
<h3 dir="auto">What you think should happen instead</h3>
<p dir="auto">All previous logs should be available from the webserver (as long as the log file still exists on disk).</p>
<h3 dir="auto">How to reproduce</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#!/usr/bin/env python3
import datetime
import logging
import socket
from airflow.decorators import dag, task
logger = logging.getLogger(__name__)
@dag(
schedule_interval='@daily',
start_date=datetime.datetime(2022, 8, 30),
default_args={
'retries': 9,
'retry_delay': 10.0,
},
)
def test_logs():
@task
def log():
logger.info(f'running from {socket.gethostname()}')
raise RuntimeError('force fail')
log()
dag = test_logs()
if __name__ == '__main__':
dag.cli()"><pre class="notranslate"><code class="notranslate">#!/usr/bin/env python3
import datetime
import logging
import socket
from airflow.decorators import dag, task
logger = logging.getLogger(__name__)
@dag(
schedule_interval='@daily',
start_date=datetime.datetime(2022, 8, 30),
default_args={
'retries': 9,
'retry_delay': 10.0,
},
)
def test_logs():
@task
def log():
logger.info(f'running from {socket.gethostname()}')
raise RuntimeError('force fail')
log()
dag = test_logs()
if __name__ == '__main__':
dag.cli()
</code></pre></div>
<h3 dir="auto">Operating System</h3>
<p dir="auto">CentOS Stream 8</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<p dir="auto">None</p>
<h3 dir="auto">Deployment</h3>
<p dir="auto">Other</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto">Airflow v2.3.3<br>
Self-hosted<br>
Postgres DB backend<br>
CeleryExecutor</p>
<h3 dir="auto">Anything else</h3>
<p dir="auto">Possibly related:</p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="778813083" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/13483" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/13483/hovercard" href="https://github.com/apache/airflow/issues/13483">#13483</a></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="113511652" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/561" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/561/hovercard" href="https://github.com/apache/airflow/pull/561">#561</a></li>
</ul>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | 0 |
<p dir="auto">Today doing something like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@torch.jit.script
def foo(s: Any):
if isinstance(s, dict):
print(s.items())"><pre class="notranslate"><code class="notranslate">@torch.jit.script
def foo(s: Any):
if isinstance(s, dict):
print(s.items())
</code></pre></div>
<p dir="auto">gives:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="RuntimeError: Unknown type name 'dict':"><pre class="notranslate"><code class="notranslate">RuntimeError: Unknown type name 'dict':
</code></pre></div>
<p dir="auto">And capitalizing "<code class="notranslate">dict</code>" will produce a segfault. Yikes!</p>
<p dir="auto">A related issue is that doing something like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="isinstance(foo, Dict[str, Tensor])"><pre class="notranslate"><code class="notranslate">isinstance(foo, Dict[str, Tensor])
</code></pre></div>
<p dir="auto">is not actually possible in Python, since the type annotations are mostly static constructs that the interpreter doesn't know anything about.</p>
<p dir="auto">A potential compromise is to have <code class="notranslate">isinstance(foo, dict)</code> refine the type of <code class="notranslate">foo</code> to <code class="notranslate">Dict[Any, Any]</code>. And then the user can further type refine to get an actual things they want. So:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if isinstance(foo, dict):
for k, v in foo.items():
assert isinstance(k, str)
assert isinstance(v, Tensor)"><pre class="notranslate"><code class="notranslate">if isinstance(foo, dict):
for k, v in foo.items():
assert isinstance(k, str)
assert isinstance(v, Tensor)
</code></pre></div>
<p dir="auto">Another potential solution is to have a <code class="notranslate">torch.jit.isinstance(foo, Dict[str, tensor])</code> that boils down to <code class="notranslate">isinstance(foo, dict)</code> in Python but performs the correct type refinement in TS.</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/suo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/suo">@suo</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gmagogsfm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gmagogsfm">@gmagogsfm</a></p> | <h2 dir="auto">🐛 Bug</h2>
<p dir="auto">PyTorch 1.6.0 is imported with a segmentation fault when built from source on a computer with an old CPU (not supporting AVX/AVX2/SSE4 instructions).</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>Run <code class="notranslate">python setup.py build</code> on a computer with an old CPU (such as AMD Athlon II X4).</li>
<li><code class="notranslate">python -c import torch</code></li>
<li>???</li>
<li>Segmentation fault!</li>
</ol>
<p dir="auto">Log of <code class="notranslate">gdb -ex r --args python -c "import torch"</code>: <a href="https://pastebin.com/RuXGLdLE" rel="nofollow">https://pastebin.com/RuXGLdLE</a><br>
Output of <code class="notranslate">cat /proc/cpuinfo</code>: <a href="https://pastebin.com/EgPSEGS0" rel="nofollow">https://pastebin.com/EgPSEGS0</a></p>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">Successful build and package import.</p>
<h2 dir="auto">Environment</h2>
<h3 dir="auto">When <code class="notranslate">torch</code> is installed</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python collect_env.py"><pre class="notranslate"><code class="notranslate">$ python collect_env.py
</code></pre></div>
<p dir="auto">returns <code class="notranslate">Illegal instruction (core dumped)</code>.</p>
<h3 dir="auto">When <code class="notranslate">torch</code> is not installed</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python collect_env.py"><pre class="notranslate"><code class="notranslate">$ python collect_env.py
</code></pre></div>
<p dir="auto">exits with the error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Collecting environment information...
Traceback (most recent call last):
File "collect_env.py", line 429, in <module>
main()
File "collect_env.py", line 424, in main
output = get_pretty_env_info()
File "collect_env.py", line 419, in get_pretty_env_info
return pretty_str(get_env_info())
File "collect_env.py", line 276, in get_env_info
if torch.version.hip is None: # cuda version
NameError: name 'torch' is not defined"><pre class="notranslate"><code class="notranslate">Collecting environment information...
Traceback (most recent call last):
File "collect_env.py", line 429, in <module>
main()
File "collect_env.py", line 424, in main
output = get_pretty_env_info()
File "collect_env.py", line 419, in get_pretty_env_info
return pretty_str(get_env_info())
File "collect_env.py", line 276, in get_env_info
if torch.version.hip is None: # cuda version
NameError: name 'torch' is not defined
</code></pre></div>
<ul dir="auto">
<li>PyTorch Version (e.g., 1.0): 1.6</li>
<li>OS (e.g., Linux): Linux 5.8.13-arch1-1 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="171281708" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/1" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/1/hovercard" href="https://github.com/pytorch/pytorch/issues/1">#1</a> SMP PREEMPT Thu, 01 Oct 2020 20:40:35 +0000 x86_64 GNU/Linux</li>
<li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): source</li>
<li>Build command you used (if compiling from source): <code class="notranslate">makepkg -s</code></li>
<li>Python version: 3.8.5</li>
<li>CUDA/cuDNN version: 11.1</li>
<li>GPU models and configuration: <code class="notranslate">01:00.0 VGA compatible controller: NVIDIA Corporation TU117 [GeForce GTX 1650] (rev a1)</code></li>
<li>Any other relevant information:</li>
</ul>
<h2 dir="auto">Additional context</h2>
<p dir="auto">I'm building <code class="notranslate">pytorch</code> using ArchLinux PKGBUILD file from this repo: <a href="https://github.com/archlinux/svntogit-community/tree/packages/python-pytorch/trunk">https://github.com/archlinux/svntogit-community/tree/packages/python-pytorch/trunk</a></p>
<p dir="auto">As can be seen, it contains a section with a x86_64 preconfiguration (meant to turn off any optimizations) and this <a href="https://github.com/archlinux/svntogit-community/blob/packages/python-pytorch/trunk/disable_non_x86_64.patch">patch</a> to disable AVX/AVX2/etc.</p> | 0 |
<p dir="auto">by <strong>krolaw</strong>:</p>
<pre class="notranslate">I think it may have been removed due to <a href="https://golang.org/issue/2771" rel="nofollow">issue #2771</a>. But it really needs to be added
back for formatting of custom types, for consistency with MarshalJSON and MarshalJSON.
For example: <a href="http://play.golang.org/p/HUeL1bUnMz" rel="nofollow">http://play.golang.org/p/HUeL1bUnMz</a>
Getting the xml to work correctly, requires a convoluted inelegant solution, which
doesn't feel like Go at all. While, the JSON part just works beautifully.</pre> | <p dir="auto">by <strong>TheBrokenToaster</strong>:</p>
<pre class="notranslate">One of the changes from Go 1.0 to Go 1.1 was that the size of an "int" was now
dependent on the native architecture of the CPU. In Go 1.0, the size of the
"len" and "cap" fields in a GoSlice was always 32-bits. However, in
Go 1.1, those fields could be 32-bits or 64-bits depending on architecture.
Similarly, when using the GoSlice struct with CGo, the size of "len" and
"cap" fields should be architecture dependent. Currently, it uses the
"int" type, in which C language gives no guarantee that it is architecture
dependent.
The _cgo_export.h header is currently (INCORRECT):
typedef struct { char *p; int n; } GoString;
typedef struct { void *data; int len; int cap; } GoSlice;
Instead it should be (CORRECT):
typedef struct { char *p; GoInt n; } GoString;
typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
Note: The GoString struct happens to work due to data structure alignment, but will
still suffer from a integer overflow if the string length was greater than 2^32.
----
What steps will reproduce the problem?
1.) Download the attachment.
2.) Compile and run demo.go on a 64-bit machine
What is the expected output?
sizeof(GoSlice): 16
sizeof(GoSlice.data): 8
sizeof(GoSlice.len): 4
sizeof(GoSlice.cap): 4
sizeof(GoString): 16
sizeof(GoString.p): 8
sizeof(GoString.n): 4
Print length of each GoSlice element
Index 0: len=0, cap=0
Index 1: len=417792, cap=194
Hexdump: 00400500c2000000 0000000000000000 2823000000000000 00600600c2000000
Print length of each GoString element
Index 0: len=10
Index 1: len=16
Index 2: len=18
Hexdump: 9050430000000000 0a00000000000000 105a430000000000 1000000000000000 d052430000000000 1200000000000000
What do you see instead?
sizeof(GoSlice): 24
sizeof(GoSlice.data): 8
sizeof(GoSlice.len): 8
sizeof(GoSlice.cap): 8
sizeof(GoString): 16
sizeof(GoString.p): 8
sizeof(GoString.n): 8
Print length of each GoSlice element
Index 0: len=0, cap=9000
Index 1: len=123, cap=456
Hexdump: 00400500c2000000 0000000000000000 2823000000000000 00600600c2000000 7b00000000000000 c801000000000000
Print length of each GoString element
Index 0: len=10
Index 1: len=16
Index 2: len=18
Hexdump: 9050430000000000 0a00000000000000 105a430000000000 1000000000000000 d052430000000000 1200000000000000
Which compiler are you using?
6g
Which operating system are you using?
Linux Mint 14 Nadia
Which version are you using?
go version go1.1 linux/amd64</pre>
<p dir="auto">Attachments:</p>
<ol dir="auto">
<li><a href="https://storage.googleapis.com/go-attachment/5646/0/cgo_bug.tar.gz" rel="nofollow">cgo_bug.tar.gz</a> (1253 bytes)</li>
</ol> | 0 |
<p dir="auto">Hello,</p>
<p dir="auto">Major Minor Build Revision</p>
<hr>
<p dir="auto">10 0 18362 752</p>
<p dir="auto">PowerToys version: 0.18.2</p>
<p dir="auto">Fancyzones</p>
<p dir="auto">Did the download/install.</p>
<p dir="auto">I click on fancyzones</p>
<p dir="auto">Select a layout and I can see the ghosting of the areas on the screen</p>
<p dir="auto">save it and exit powertoys</p>
<p dir="auto">Fancyzones does not work I cannot locate any of the zones. There is nothing highlighting on the screen or indicating they are there.</p>
<p dir="auto">I uninstalled several times and went back to version 0.16.x but still does not work.</p>
<p dir="auto">checked that .NET was installed properly.</p>
<p dir="auto">Uninstalled and quit any application that I thought would interfere. As an example I removed displaylink.</p>
<p dir="auto">In the Event Log I constantly see " APPCRASH Not Available 0 FancyZonesEditor.exe 0.18.2.0..."</p>
<p dir="auto">Have an AOC CU34G2X monitor.</p>
<p dir="auto">Dan.</p> | <h2 dir="auto"><g-emoji class="g-emoji" alias="information_source" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2139.png">ℹ</g-emoji> Computer information</h2>
<ul dir="auto">
<li>PowerToys version: 0.23</li>
<li>PowerToy Utility: Fancy Zones</li>
<li>Running PowerToys as Admin =: no</li>
<li>Windows build number: 2004 (19628.1)</li>
</ul>
<h2 dir="auto">📝 Provide detailed reproduction steps (if any)</h2>
<ol dir="auto">
<li>Create at least two virtuals desktops.</li>
<li>Assign different layouts, built-in and custom, to the different virtual desktops.</li>
<li>Work, connect as another user, lock the screen or maybe reboot, I am not sure what causes this to happen.</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>
<p dir="auto">Each virtual desktop keeps and applies the layout that was assigned to it.</p>
<h3 dir="auto">❌ Actual result</h3>
<p dir="auto">Every virtual desktops use the same layout, which is the last one you selected.</p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="camera" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4f7.png">📷</g-emoji> Screenshots</h2>
<p dir="auto">Nothing really relevant.</p> | 0 |
<p dir="auto">on iphone6, left nav is always opened, I can not toggle it open/close. But this issue does not happen on every iphone6.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" <LeftNav
ref="leftNav"
open={this.state.leftNavOpen}
onRequestChange={this._onRequestChange}
docked={false}
disableSwipeToOpen={true}>"><pre class="notranslate"> <span class="pl-c1"><</span><span class="pl-ent">LeftNav</span>
<span class="pl-c1">ref</span><span class="pl-c1">=</span><span class="pl-s">"leftNav"</span>
<span class="pl-c1">open</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">state</span><span class="pl-kos">.</span><span class="pl-c1">leftNavOpen</span><span class="pl-kos">}</span>
<span class="pl-c1">onRequestChange</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">_onRequestChange</span><span class="pl-kos">}</span>
<span class="pl-c1">docked</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">false</span><span class="pl-kos">}</span>
<span class="pl-c1">disableSwipeToOpen</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">true</span><span class="pl-kos">}</span><span class="pl-c1">></span></pre></div> | <p dir="auto">For some reason when on iPad, leftNav is always opened, even when setting docked={false}. This only happens on iPad. I can't even toggle it open/closed -- it's just always open.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" <LeftNav
ref="leftNav"
className="left-nav"
docked={false}
selectedIndex={this.getSelectedIndex()}
onChange={this.handleLeftMenuChange}
header={
<div className="logo-container">
<LogoTm />
<LogoText />
</div>
}
menuItems={menuItems} />"><pre class="notranslate"><code class="notranslate"> <LeftNav
ref="leftNav"
className="left-nav"
docked={false}
selectedIndex={this.getSelectedIndex()}
onChange={this.handleLeftMenuChange}
header={
<div className="logo-container">
<LogoTm />
<LogoText />
</div>
}
menuItems={menuItems} />
</code></pre></div> | 1 |
<p dir="auto">Similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="400995157" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/30765" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/30765/hovercard" href="https://github.com/JuliaLang/julia/issues/30765">#30765</a>.<br>
An eazy example:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> a = collect(1.0:5.0)
5-element Vector{Float64}:
1.0
2.0
3.0
4.0
5.0
julia> v = view(a, 3:-1:1)
3-element view(::Vector{Float64}, 3:-1:1) with eltype Float64:
3.0
2.0
1.0
julia> BLAS.nrm2(v)
7.0710678118654755
julia> BLAS.nrm2(collect(v))
3.7416573867739413"><pre class="notranslate">julia<span class="pl-k">></span> a <span class="pl-k">=</span> <span class="pl-c1">collect</span>(<span class="pl-c1">1.0</span><span class="pl-k">:</span><span class="pl-c1">5.0</span>)
<span class="pl-c1">5</span><span class="pl-k">-</span>element Vector{Float64}<span class="pl-k">:</span>
<span class="pl-c1">1.0</span>
<span class="pl-c1">2.0</span>
<span class="pl-c1">3.0</span>
<span class="pl-c1">4.0</span>
<span class="pl-c1">5.0</span>
julia<span class="pl-k">></span> v <span class="pl-k">=</span> <span class="pl-c1">view</span>(a, <span class="pl-c1">3</span><span class="pl-k">:</span><span class="pl-k">-</span><span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">1</span>)
<span class="pl-c1">3</span><span class="pl-k">-</span>element <span class="pl-c1">view</span>(<span class="pl-k">::</span><span class="pl-c1">Vector{Float64}</span>, <span class="pl-c1">3</span><span class="pl-k">:</span><span class="pl-k">-</span><span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">1</span>) with eltype Float64<span class="pl-k">:</span>
<span class="pl-c1">3.0</span>
<span class="pl-c1">2.0</span>
<span class="pl-c1">1.0</span>
julia<span class="pl-k">></span> BLAS<span class="pl-k">.</span><span class="pl-c1">nrm2</span>(v)
<span class="pl-c1">7.0710678118654755</span>
julia<span class="pl-k">></span> BLAS<span class="pl-k">.</span><span class="pl-c1">nrm2</span>(<span class="pl-c1">collect</span>(v))
<span class="pl-c1">3.7416573867739413</span></pre></div> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="M = [2. 3.; 0. 0.]
a = [1.,2.,3.]
v = view(a,3:-1:2)
@test M * v ≈ M * Vector(v)"><pre lang="using" class="notranslate"><code class="notranslate">M = [2. 3.; 0. 0.]
a = [1.,2.,3.]
v = view(a,3:-1:2)
@test M * v ≈ M * Vector(v)
</code></pre></div>
<p dir="auto">should pass but fails<br>
<code class="notranslate">Evaluated: [9.0, 0.0] ≈ [12.0, 0.0]</code></p>
<p dir="auto">Found while looking at <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="709529202" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/37767" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/37767/hovercard" href="https://github.com/JuliaLang/julia/issues/37767">#37767</a>, present on a recent 1.7.0-DEV, and 1.4.1.</p>
<p dir="auto">Looking at LinearAlgebra/blas.jl, it seems there might be more functions which do not correctly handle negative stride yet, that is, the case of a StridedVector being a SubArray.</p>
<p dir="auto">For the above example, there should be a fix similar to PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="812277941" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/39751" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/39751/hovercard" href="https://github.com/JuliaLang/julia/pull/39751">#39751</a>. If so, one should probably add an inline function computing the pointer to the first element (in the sense of having the lowest address in memory) of a StridedVector, and use this function when BLAS.dgemv is called for StridedVectors (and make the change from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="812277941" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/39751" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/39751/hovercard" href="https://github.com/JuliaLang/julia/pull/39751">#39751</a> use this function, too/take the code from there).</p>
<p dir="auto">Warning: This is based on the assumption that the step size can be negative in the BLAS function.<br>
Reading <a href="https://github.com/xianyi/OpenBLAS/blob/f6e4cf2f9dac6f90b36f49659d883767d63791f5/lapack-netlib/BLAS/SRC/dgemv.f">dgemv.f</a>, I got the impression that negative strides are supported for dgemv in OpenBLAS StridedVector's.<br>
Also page 40 of <a href="http://netlib.org/blas/blast-forum/blas-report.pdf" rel="nofollow">blas-report.pdf</a> sounds like other BLAS functions should support negative stride for vectors.</p> | 1 |
<p dir="auto">Test case:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() {
let x = 2i;
let _y = move || x;
}"><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> x = <span class="pl-c1">2</span>i<span class="pl-kos">;</span>
<span class="pl-k">let</span> _y = <span class="pl-k">move</span> || x<span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/llvm/include/llvm/Support/Casting.h:237: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::PointerType; Y = llvm::Type; typename llvm::cast_retty<X, Y*>::ret_type = llvm::PointerType*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
Aborted"><pre class="notranslate"><code class="notranslate">rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/llvm/include/llvm/Support/Casting.h:237: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::PointerType; Y = llvm::Type; typename llvm::cast_retty<X, Y*>::ret_type = llvm::PointerType*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
Aborted
</code></pre></div> | <h3 dir="auto">STR</h3>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() {
let n = 0u;
let f = move || n += 1;
}"><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> n = <span class="pl-c1">0</span>u<span class="pl-kos">;</span>
<span class="pl-k">let</span> f = <span class="pl-k">move</span> || n += <span class="pl-c1">1</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Output</h3>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="rustc: /var/tmp/paludis/build/dev-lang-rust-scm/work/rust-scm/src/llvm/include/llvm/Support/Casting.h:237: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::PointerType; Y = llvm::Type; typename llvm::cast_retty<X, Y*>::ret_type = llvm::PointerType*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffeffff480 (LWP 12192)]
0x00007ffff6f638a7 in raise () from /lib64/libc.so.6
(gdb) backtrace
#0 0x00007ffff6f638a7 in raise () from /lib64/libc.so.6
#1 0x00007ffff6f64c3a in abort () from /lib64/libc.so.6
#2 0x00007ffff6f5c7fd in __assert_fail_base () from /lib64/libc.so.6
#3 0x00007ffff6f5c8b2 in __assert_fail () from /lib64/libc.so.6
#4 0x00007ffff261305c in ?? () from /usr/lib64/librustc_llvm-4e7c5e5c.so
#5 0x00007ffff33413ac in llvm::LoadInst::LoadInst(llvm::Value*, char const*, bool, llvm::Instruction*) () from /usr/lib64/librustc_llvm-4e7c5e5c.so
#6 0x00007ffff32a29bf in LLVMBuildLoad () from /usr/lib64/librustc_llvm-4e7c5e5c.so
#7 0x00007ffff7773334 in trans::builder::Builder$LT$$x27a$C$$x20$x27tcx$GT$::load::h3c2c0a39157367b2Gsr () from /usr/lib64/librustc_trans-4e7c5e5c.so
#8 0x00007ffff76f6f32 in trans::build::Load::hb999a33dee821b74Jnq () from /usr/lib64/librustc_trans-4e7c5e5c.so
#9 0x00007ffff772cc52 in ?? () from /usr/lib64/librustc_trans-4e7c5e5c.so
#10 0x00007ffff7720e0a in ?? () from /usr/lib64/librustc_trans-4e7c5e5c.so
#11 0x00007ffff76dd854 in trans::expr::trans_into::h7dc261a5d77d2dbciQh () from /usr/lib64/librustc_trans-4e7c5e5c.so
#12 0x00007ffff76ddadd in trans::controlflow::trans_block::h40e78d4cabd8c783p2d () from /usr/lib64/librustc_trans-4e7c5e5c.so
#13 0x00007ffff7790e50 in trans::base::trans_closure::h9baffc02e3bf0daf6Au () from /usr/lib64/librustc_trans-4e7c5e5c.so
#14 0x00007ffff7732f6e in trans::closure::trans_expr_fn::h04ecc83b7400adfaVWy () from /usr/lib64/librustc_trans-4e7c5e5c.so
#15 0x00007ffff771efca in ?? () from /usr/lib64/librustc_trans-4e7c5e5c.so
#16 0x00007ffff76dd746 in trans::expr::trans_into::h7dc261a5d77d2dbciQh () from /usr/lib64/librustc_trans-4e7c5e5c.so
#17 0x00007ffff77d64cd in ?? () from /usr/lib64/librustc_trans-4e7c5e5c.so
#18 0x00007ffff77d58b4 in ?? () from /usr/lib64/librustc_trans-4e7c5e5c.so
#19 0x00007ffff77881f4 in trans::_match::store_local::hdd8a0d2165cb659fx9x () from /usr/lib64/librustc_trans-4e7c5e5c.so
#20 0x00007ffff76dcd0e in trans::base::init_local::h0bd956a2c65b5d51NIt () from /usr/lib64/librustc_trans-4e7c5e5c.so
#21 0x00007ffff76dc332 in trans::controlflow::trans_stmt::h3a5fa88dc3d60c9fhXd () from /usr/lib64/librustc_trans-4e7c5e5c.so
#22 0x00007ffff76dd9d9 in trans::controlflow::trans_block::h40e78d4cabd8c783p2d () from /usr/lib64/librustc_trans-4e7c5e5c.so
#23 0x00007ffff7790e50 in trans::base::trans_closure::h9baffc02e3bf0daf6Au () from /usr/lib64/librustc_trans-4e7c5e5c.so
#24 0x00007ffff76d0a77 in trans::base::trans_fn::h114729a05667bb1dWMu () from /usr/lib64/librustc_trans-4e7c5e5c.so
#25 0x00007ffff76cdc8e in trans::base::trans_item::h7c2b438b1bce4863G8u () from /usr/lib64/librustc_trans-4e7c5e5c.so
#26 0x00007ffff779a408 in trans::base::trans_crate::he69e63600c94fe5506v () from /usr/lib64/librustc_trans-4e7c5e5c.so
#27 0x00007ffff7844945 in driver::driver::phase_4_translate_to_llvm::h81bcee50dff289e18oS () from /usr/lib64/librustc_trans-4e7c5e5c.so
#28 0x00007ffff7834105 in driver::driver::compile_input::h117f94c1b348a398YVR () from /usr/lib64/librustc_trans-4e7c5e5c.so
#29 0x00007ffff78b7cd7 in ?? () from /usr/lib64/librustc_trans-4e7c5e5c.so
#30 0x00007ffff78b62fc in ?? () from /usr/lib64/librustc_trans-4e7c5e5c.so
#31 0x00007ffff76c2f78 in ?? () from /usr/lib64/librustc_trans-4e7c5e5c.so
#32 0x00007ffff76c2e83 in ?? () from /usr/lib64/librustc_trans-4e7c5e5c.so
#33 0x00007ffff7bd6be2 in ?? () from /usr/lib64/libnative-4e7c5e5c.so
#34 0x00007ffff7390fec in ?? () from /usr/lib64/librustrt-4e7c5e5c.so
#35 0x00007ffff7390fd6 in rust_try () from /usr/lib64/librustrt-4e7c5e5c.so
#36 0x00007ffff733f843 in unwind::try::h03ead95328113b2fIZc () from /usr/lib64/librustrt-4e7c5e5c.so
#37 0x00007ffff733f70c in task::Task::run::hed7dc0cf620a0172y5b () from /usr/lib64/librustrt-4e7c5e5c.so
#38 0x00007ffff7bd69e7 in ?? () from /usr/lib64/libnative-4e7c5e5c.so
#39 0x00007ffff7340f35 in ?? () from /usr/lib64/librustrt-4e7c5e5c.so
#40 0x00007ffff1e0e294 in start_thread () from /lib64/libpthread.so.0
#41 0x00007ffff70181ed in clone () from /lib64/libc.so.6"><pre class="notranslate">rustc<span class="pl-kos">:</span> /var/tmp/paludis/build/dev-lang-rust-scm/work/rust-scm/src/llvm/include/llvm/<span class="pl-v">Support</span>/<span class="pl-v">Casting</span><span class="pl-kos">.</span><span class="pl-c1">h</span><span class="pl-kos">:</span><span class="pl-c1">237</span><span class="pl-kos">:</span> typename llvm<span class="pl-kos">::</span>cast_retty<<span class="pl-v">X</span><span class="pl-kos">,</span> <span class="pl-v">Y</span><span class="pl-c1">*</span>><span class="pl-kos">::</span><span class="pl-smi">ret_type</span> llvm<span class="pl-kos">::</span>cast<span class="pl-kos">(</span><span class="pl-v">Y</span><span class="pl-c1">*</span><span class="pl-kos">)</span> <span class="pl-kos">[</span>with <span class="pl-v">X</span> = llvm<span class="pl-kos">::</span><span class="pl-v">PointerType</span><span class="pl-kos">;</span> <span class="pl-v">Y</span> = llvm<span class="pl-kos">::</span><span class="pl-v">Type</span><span class="pl-kos">;</span> typename llvm<span class="pl-kos">::</span>cast_retty<<span class="pl-v">X</span><span class="pl-kos">,</span> <span class="pl-v">Y</span><span class="pl-c1">*</span>><span class="pl-kos">::</span>ret_type = llvm<span class="pl-kos">::</span><span class="pl-v">PointerType</span><span class="pl-c1">*</span><span class="pl-kos">]</span><span class="pl-kos">:</span> <span class="pl-v">Assertion</span> `isa<<span class="pl-v">X</span>><span class="pl-kos">(</span><span class="pl-v">Val</span><span class="pl-kos">)</span> && <span class="pl-s">"cast<Ty>() argument of incompatible type!"</span><span class="pl-c1">'</span> failed<span class="pl-kos">.</span>
<span class="pl-c1">Program</span> received signal <span class="pl-v">SIGABRT</span><span class="pl-kos">,</span> <span class="pl-v">Aborted</span><span class="pl-kos">.</span>
<span class="pl-kos">[</span><span class="pl-v">Switching</span> to <span class="pl-v">Thread</span> <span class="pl-c1">0x7fffeffff480</span> <span class="pl-kos">(</span><span class="pl-v">LWP</span> <span class="pl-c1">12192</span><span class="pl-kos">)</span><span class="pl-kos">]</span>
<span class="pl-c1">0x00007ffff6f638a7</span> <span class="pl-k">in</span> <span class="pl-en">raise</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /lib64/libc<span class="pl-kos">.</span><span class="pl-c1">so</span><span class="pl-kos">.</span><span class="pl-c1">6</span>
<span class="pl-kos">(</span>gdb<span class="pl-kos">)</span> backtrace
#<span class="pl-c1">0</span> <span class="pl-c1">0x00007ffff6f638a7</span> <span class="pl-k">in</span> <span class="pl-en">raise</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /lib64/libc<span class="pl-kos">.</span><span class="pl-c1">so</span><span class="pl-kos">.</span><span class="pl-c1">6</span>
#<span class="pl-c1">1</span> <span class="pl-c1">0x00007ffff6f64c3a</span> <span class="pl-k">in</span> <span class="pl-en">abort</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /lib64/libc<span class="pl-kos">.</span><span class="pl-c1">so</span><span class="pl-kos">.</span><span class="pl-c1">6</span>
#<span class="pl-c1">2</span> <span class="pl-c1">0x00007ffff6f5c7fd</span> <span class="pl-k">in</span> <span class="pl-en">__assert_fail_base</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /lib64/libc<span class="pl-kos">.</span><span class="pl-c1">so</span><span class="pl-kos">.</span><span class="pl-c1">6</span>
#<span class="pl-c1">3</span> <span class="pl-c1">0x00007ffff6f5c8b2</span> <span class="pl-k">in</span> <span class="pl-en">__assert_fail</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /lib64/libc<span class="pl-kos">.</span><span class="pl-c1">so</span><span class="pl-kos">.</span><span class="pl-c1">6</span>
#<span class="pl-c1">4</span> <span class="pl-c1">0x00007ffff261305c</span> <span class="pl-k">in</span> ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_llvm-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">5</span> <span class="pl-c1">0x00007ffff33413ac</span> in llvm<span class="pl-kos">::</span><span class="pl-smi">LoadInst</span><span class="pl-kos">::</span><span class="pl-v">LoadInst</span><span class="pl-kos">(</span>llvm<span class="pl-kos">::</span><span class="pl-v">Value</span><span class="pl-c1">*</span><span class="pl-kos">,</span> char const<span class="pl-c1">*</span><span class="pl-kos">,</span> bool<span class="pl-kos">,</span> llvm<span class="pl-kos">::</span><span class="pl-v">Instruction</span><span class="pl-c1">*</span><span class="pl-kos">)</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_llvm-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">6</span> <span class="pl-c1">0x00007ffff32a29bf</span> in <span class="pl-v">LLVMBuildLoad</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_llvm-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">7</span> <span class="pl-c1">0x00007ffff7773334</span> in trans<span class="pl-kos">::</span>builder<span class="pl-kos">::</span><span class="pl-smi">Builder</span>$LT$$x27a$C$$x20$x27tcx$GT$<span class="pl-kos">::</span>load<span class="pl-kos">::</span><span class="pl-en">h3c2c0a39157367b2Gsr</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">8</span> <span class="pl-c1">0x00007ffff76f6f32</span> in trans<span class="pl-kos">::</span>build<span class="pl-kos">::</span><span class="pl-smi">Load</span><span class="pl-kos">::</span><span class="pl-en">hb999a33dee821b74Jnq</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">9</span> <span class="pl-c1">0x00007ffff772cc52</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">10</span> <span class="pl-c1">0x00007ffff7720e0a</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">11</span> <span class="pl-c1">0x00007ffff76dd854</span> in trans<span class="pl-kos">::</span>expr<span class="pl-kos">::</span>trans_into<span class="pl-kos">::</span><span class="pl-en">h7dc261a5d77d2dbciQh</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">12</span> <span class="pl-c1">0x00007ffff76ddadd</span> in trans<span class="pl-kos">::</span>controlflow<span class="pl-kos">::</span>trans_block<span class="pl-kos">::</span><span class="pl-en">h40e78d4cabd8c783p2d</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">13</span> <span class="pl-c1">0x00007ffff7790e50</span> in trans<span class="pl-kos">::</span>base<span class="pl-kos">::</span>trans_closure<span class="pl-kos">::</span><span class="pl-en">h9baffc02e3bf0daf6Au</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">14</span> <span class="pl-c1">0x00007ffff7732f6e</span> in trans<span class="pl-kos">::</span>closure<span class="pl-kos">::</span>trans_expr_fn<span class="pl-kos">::</span><span class="pl-en">h04ecc83b7400adfaVWy</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">15</span> <span class="pl-c1">0x00007ffff771efca</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">16</span> <span class="pl-c1">0x00007ffff76dd746</span> in trans<span class="pl-kos">::</span>expr<span class="pl-kos">::</span>trans_into<span class="pl-kos">::</span><span class="pl-en">h7dc261a5d77d2dbciQh</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">17</span> <span class="pl-c1">0x00007ffff77d64cd</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">18</span> <span class="pl-c1">0x00007ffff77d58b4</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">19</span> <span class="pl-c1">0x00007ffff77881f4</span> in trans<span class="pl-kos">::</span>_match<span class="pl-kos">::</span>store_local<span class="pl-kos">::</span><span class="pl-en">hdd8a0d2165cb659fx9x</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">20</span> <span class="pl-c1">0x00007ffff76dcd0e</span> in trans<span class="pl-kos">::</span>base<span class="pl-kos">::</span>init_local<span class="pl-kos">::</span><span class="pl-en">h0bd956a2c65b5d51NIt</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">21</span> <span class="pl-c1">0x00007ffff76dc332</span> in trans<span class="pl-kos">::</span>controlflow<span class="pl-kos">::</span>trans_stmt<span class="pl-kos">::</span><span class="pl-en">h3a5fa88dc3d60c9fhXd</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">22</span> <span class="pl-c1">0x00007ffff76dd9d9</span> in trans<span class="pl-kos">::</span>controlflow<span class="pl-kos">::</span>trans_block<span class="pl-kos">::</span><span class="pl-en">h40e78d4cabd8c783p2d</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">23</span> <span class="pl-c1">0x00007ffff7790e50</span> in trans<span class="pl-kos">::</span>base<span class="pl-kos">::</span>trans_closure<span class="pl-kos">::</span><span class="pl-en">h9baffc02e3bf0daf6Au</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">24</span> <span class="pl-c1">0x00007ffff76d0a77</span> in trans<span class="pl-kos">::</span>base<span class="pl-kos">::</span>trans_fn<span class="pl-kos">::</span><span class="pl-en">h114729a05667bb1dWMu</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">25</span> <span class="pl-c1">0x00007ffff76cdc8e</span> in trans<span class="pl-kos">::</span>base<span class="pl-kos">::</span>trans_item<span class="pl-kos">::</span><span class="pl-en">h7c2b438b1bce4863G8u</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">26</span> <span class="pl-c1">0x00007ffff779a408</span> in trans<span class="pl-kos">::</span>base<span class="pl-kos">::</span>trans_crate<span class="pl-kos">::</span><span class="pl-en">he69e63600c94fe5506v</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">27</span> <span class="pl-c1">0x00007ffff7844945</span> in driver<span class="pl-kos">::</span>driver<span class="pl-kos">::</span>phase_4_translate_to_llvm<span class="pl-kos">::</span><span class="pl-en">h81bcee50dff289e18oS</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">28</span> <span class="pl-c1">0x00007ffff7834105</span> in driver<span class="pl-kos">::</span>driver<span class="pl-kos">::</span>compile_input<span class="pl-kos">::</span><span class="pl-en">h117f94c1b348a398YVR</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">29</span> <span class="pl-c1">0x00007ffff78b7cd7</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">30</span> <span class="pl-c1">0x00007ffff78b62fc</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">31</span> <span class="pl-c1">0x00007ffff76c2f78</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">32</span> <span class="pl-c1">0x00007ffff76c2e83</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">33</span> <span class="pl-c1">0x00007ffff7bd6be2</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/libnative-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">34</span> <span class="pl-c1">0x00007ffff7390fec</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustrt-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">35</span> <span class="pl-c1">0x00007ffff7390fd6</span> in <span class="pl-en">rust_try</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustrt-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">36</span> <span class="pl-c1">0x00007ffff733f843</span> in unwind<span class="pl-kos">::</span>try<span class="pl-kos">::</span><span class="pl-en">h03ead95328113b2fIZc</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustrt-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">37</span> <span class="pl-c1">0x00007ffff733f70c</span> in task<span class="pl-kos">::</span><span class="pl-smi">Task</span><span class="pl-kos">::</span>run<span class="pl-kos">::</span><span class="pl-en">hed7dc0cf620a0172y5b</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustrt-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">38</span> <span class="pl-c1">0x00007ffff7bd69e7</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/libnative-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">39</span> <span class="pl-c1">0x00007ffff7340f35</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustrt-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">40</span> <span class="pl-c1">0x00007ffff1e0e294</span> in <span class="pl-en">start_thread</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /lib64/libpthread<span class="pl-kos">.</span><span class="pl-c1">so</span><span class="pl-kos">.</span><span class="pl-c1">0</span>
#<span class="pl-c1">41</span> <span class="pl-c1">0x00007ffff70181ed</span> <span class="pl-k">in</span> clone <span class="pl-kos">(</span><span class="pl-kos">)</span> from /lib64/libc<span class="pl-kos">.</span><span class="pl-c1">so</span><span class="pl-kos">.</span><span class="pl-c1">6</span></pre></div>
<h3 dir="auto">Version</h3>
<p dir="auto">PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="49429229" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/19113" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/19113/hovercard" href="https://github.com/rust-lang/rust/pull/19113">#19113</a> on top of <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/399ff259e18c1061aa4ea60856fcecb486d36624/hovercard" href="https://github.com/rust-lang/rust/commit/399ff259e18c1061aa4ea60856fcecb486d36624"><tt>399ff25</tt></a></p>
<p dir="auto">It also fails in <a href="http://is.gd/VUzOln" rel="nofollow">the playpen</a>, which has version:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="rustc 0.13.0-dev (8ed288edb 2014-11-06 16:52:09 +0000)"><pre class="notranslate">rustc <span class="pl-c1">0.13</span><span class="pl-kos">.</span><span class="pl-c1">0</span>-<span class="pl-en">dev</span> <span class="pl-kos">(</span><span class="pl-c1">8</span>ed288edb <span class="pl-c1">2014</span>-<span class="pl-c1">11</span>-<span class="pl-c1">06</span> <span class="pl-c1">16</span><span class="pl-kos">:</span><span class="pl-c1">52</span><span class="pl-kos">:</span><span class="pl-c1">09</span> +<span class="pl-c1">0000</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">I think we're not supposed to use the <code class="notranslate">move</code> keyword with boxed closures?</p> | 1 |
<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">When calling plt.hist(a), with a containing a np.nan value, the error raised is:<br>
"max must be larger than min in range parameter."<br>
This is confusing especially for novice users unfamiliar with the fact that np.nan>x is True for any number x.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt
import numpy as np
plt.hist([1,2,3,np.nan])
"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-s1">plt</span>.<span class="pl-en">hist</span>([<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>])</pre></div>
<p dir="auto"><strong>Actual outcome</strong><br>
C:\Continuum\Anaconda2\lib\site-packages\numpy\lib\function_base.pyc in histogram(a, bins, range, normed, weights, density)<br>
664 if mn > mx:<br>
665 raise ValueError(<br>
--> 666 'max must be larger than min in range parameter.')<br>
667 if not np.all(np.isfinite([mn, mx])):<br>
668 raise ValueError(</p>
<p dir="auto">ValueError: max must be larger than min in range parameter.```</p>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">ValueError: values in histogram contains nan```</p>
<p dir="auto"><strong>Matplotlib version</strong><br>
matplotlib version 1.5.3<br>
python version python 2.7 - 1.12.0 for windows 64 bit</p>
<ul dir="auto">
<li>How did you install Matplotlib and Python (pip, anaconda, from source ...)<br>
Anaconda installation</li>
</ul> | <p dir="auto">I notice that this code will plot with warnings:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from matplotlib import pyplot as plt
from numpy import NaN
plt.hist([1, NaN, 4], range=[0,5])"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">from</span> <span class="pl-s1">numpy</span> <span class="pl-k">import</span> <span class="pl-v">NaN</span>
<span class="pl-s1">plt</span>.<span class="pl-en">hist</span>([<span class="pl-c1">1</span>, <span class="pl-v">NaN</span>, <span class="pl-c1">4</span>], <span class="pl-s1">range</span><span class="pl-c1">=</span>[<span class="pl-c1">0</span>,<span class="pl-c1">5</span>])</pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/Users/trish/anaconda/lib/python2.7/site-packages/numpy/lib/function_base.py:229: RuntimeWarning: invalid value encountered in greater_equal
keep = (tmp_a >= mn)
/Users/trish/anaconda/lib/python2.7/site-packages/numpy/lib/function_base.py:230: RuntimeWarning: invalid value encountered in less_equal
keep &= (tmp_a <= mx)"><pre class="notranslate"><code class="notranslate">/Users/trish/anaconda/lib/python2.7/site-packages/numpy/lib/function_base.py:229: RuntimeWarning: invalid value encountered in greater_equal
keep = (tmp_a >= mn)
/Users/trish/anaconda/lib/python2.7/site-packages/numpy/lib/function_base.py:230: RuntimeWarning: invalid value encountered in less_equal
keep &= (tmp_a <= mx)
</code></pre></div>
<p dir="auto">Whereas this code ends up with an error because of how the range is determined:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from matplotlib import pyplot as plt
from numpy import NaN
plt.hist([1, NaN, 4])"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">from</span> <span class="pl-s1">numpy</span> <span class="pl-k">import</span> <span class="pl-v">NaN</span>
<span class="pl-s1">plt</span>.<span class="pl-en">hist</span>([<span class="pl-c1">1</span>, <span class="pl-v">NaN</span>, <span class="pl-c1">4</span>])</pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/trish/anaconda/lib/python2.7/site-packages/matplotlib/pyplot.py", line 2958, in hist
stacked=stacked, data=data, **kwargs)
File "/Users/trish/anaconda/lib/python2.7/site-packages/matplotlib/__init__.py", line 1812, in inner
return func(ax, *args, **kwargs)
File "/Users/trish/anaconda/lib/python2.7/site-packages/matplotlib/axes/_axes.py", line 6010, in hist
m, bins = np.histogram(x[i], bins, weights=w[i], **hist_kwargs)
File "/Users/trish/anaconda/lib/python2.7/site-packages/numpy/lib/function_base.py", line 176, in histogram
'max must be larger than min in range parameter.')
AttributeError: max must be larger than min in range parameter."><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/trish/anaconda/lib/python2.7/site-packages/matplotlib/pyplot.py", line 2958, in hist
stacked=stacked, data=data, **kwargs)
File "/Users/trish/anaconda/lib/python2.7/site-packages/matplotlib/__init__.py", line 1812, in inner
return func(ax, *args, **kwargs)
File "/Users/trish/anaconda/lib/python2.7/site-packages/matplotlib/axes/_axes.py", line 6010, in hist
m, bins = np.histogram(x[i], bins, weights=w[i], **hist_kwargs)
File "/Users/trish/anaconda/lib/python2.7/site-packages/numpy/lib/function_base.py", line 176, in histogram
'max must be larger than min in range parameter.')
AttributeError: max must be larger than min in range parameter.
</code></pre></div>
<p dir="auto">If we're willing to forgive NaNs in the first case and just plot while ignoring them, wouldn't it also make sense to ignore them in the range computation? Or if that's a bad idea, maybe we could return an error that makes it clear to the user that the problem was NaNs in the data?</p>
<p dir="auto">The friend who showed this to me was stumped by the error message because his data was huge and he had no idea it contained NaNs. When he saw that AttributeError he just thought "But I'm letting matplotlib decide the range, how can it be wrong?"</p> | 1 |
<h1 dir="auto">Description of the new feature/enhancement</h1>
<p dir="auto">On WSL, Typing <code class="notranslate">clear</code> or pressing <code class="notranslate">CTRL+L</code> clears the scroll buffer history while most Linux terminals(both real ones like gnome-terminal, and virtual ones like tmux) move the scroll history instead of clearing it. Can we use same semantics for Windows Terminal?</p> | <h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">I would love to be able to overwrite per profile settings with a global one, let's say I want to use the same color scheme everywhere, setting it in the global section should do that.</p>
<h1 dir="auto">Proposed technical implementation details (optional)</h1> | 0 |
<p dir="auto">current send_file implement a traditional method to assign download filename,<br>
according to RFC 5987 there is a method to have utf-8 encoding in it which is support by all modern browser nowadays,</p>
<p dir="auto">I use this line to make it</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rv.headers['Content-Disposition'] = "attachment; filename*=UTF-8''%s"%(urllib.quote_plus(filename.encode('utf-8')))"><pre class="notranslate"><code class="notranslate">rv.headers['Content-Disposition'] = "attachment; filename*=UTF-8''%s"%(urllib.quote_plus(filename.encode('utf-8')))
</code></pre></div>
<p dir="auto">I am not using headers.add,<br>
because you can see there have to use asterisk character which is nasty</p>
<p dir="auto">ref:</p>
<ul dir="auto">
<li><a href="http://stackoverflow.com/questions/93551/how-to-encode-the-filename-parameter-of-content-disposition-header-in-http" rel="nofollow">http://stackoverflow.com/questions/93551/how-to-encode-the-filename-parameter-of-content-disposition-header-in-http</a></li>
<li><a href="http://tools.ietf.org/html/rfc5987" rel="nofollow">http://tools.ietf.org/html/rfc5987</a></li>
</ul> | <p dir="auto">Hi.</p>
<p dir="auto">I've detected an issue with supporting unicode filenames in send_file.<br>
If send_file attempts to respond with utf-8 in http headers, the answer is empty, the log contains something like "http-headers should containbe latin-1".<br>
I know that <a href="http://stackoverflow.com/questions/93551/how-to-encode-the-filename-parameter-of-content-disposition-header-in-http" rel="nofollow">browser support IS A MESS</a>, but it seems, that sending two filenames (<code class="notranslate">filename=</code> and <code class="notranslate">filename*=</code>) separated by semicolon should work.</p>
<p dir="auto">I'd like this to be handled by flask or werkzeug. Will you accept such pull request?</p> | 1 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Microsoft Windows [Version 10.0.18362.207]
Windows Terminal version (if applicable): 0.2.1831.0"><pre lang="none" class="notranslate"><code class="notranslate">Microsoft Windows [Version 10.0.18362.207]
Windows Terminal version (if applicable): 0.2.1831.0
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ul dir="auto">
<li>Use MesloLGL Nerd Font ForPowerline font.</li>
<li>Type <code class="notranslate">fi</code></li>
</ul>
<h1 dir="auto">Expected behavior</h1>
<ul dir="auto">
<li>Terminal displays <code class="notranslate">fi</code></li>
</ul>
<h1 dir="auto">Actual behavior</h1>
<ul dir="auto">
<li>Terminal rewrites <code class="notranslate">fi</code> to a phone icon.</li>
<li>Video example: <a href="https://i.imgur.com/fUwPUvN.gif" rel="nofollow">https://i.imgur.com/fUwPUvN.gif</a></li>
</ul> | <h1 dir="auto">Description of the new feature/enhancement</h1>
<p dir="auto">Currently "defaults" (including profiles and keybindings) are always applied and merged with "profiles.json". I have zero overlap between default and custom keybindings because I use default prefix (ctrl+shift) inside different application. In new version of Terminal, if I don't override <em>all</em> those to null I have unwanted side effects (specially if that app passes keybindings through and Terminal gets them).</p>
<p dir="auto">Also I don't want to have certain profiles visible but GUIDs are different across machines so on each machine where I use Terminal I have to checkout my dotfiles (including Terminal config), inspect defaults file and then override (hide) those GUIDs.</p>
<h1 dir="auto">Proposed technical implementation details (optional)</h1>
<p dir="auto">Merge (cascading) should be optional. If disabled defaults should be used one-time to create profiles.json.</p> | 0 |
<h2 dir="auto">Bug Report</h2>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<p dir="auto">master branch</p>
<h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3>
<p dir="auto">Proxy</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">PipelineTableMetaDataLoader.getTableMetaData should case-insensitive for table name.</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Case-sensitive.</p>
<p dir="auto">Proxy log:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[INFO ] 2022-04-30 14:50:08.688 [0130317c30317c3054317c7363616c696e675f6462_Worker-1] o.a.s.d.p.c.m.l.PipelineTableMetaDataLoader - loadTableMetaData, tableNamePattern=t_order, result={T_ORDER=PipelineTableMetaData(name=T_ORDER, columnMetaDataMap={order_id=PipelineColumnMetaData(ordinalPosition=1, name=order_id, dataType=4, dataTypeName=INT, primaryKey=true), user_id=PipelineColumnMetaData(ordinalPosition=2, name=user_id, dataType=4, dataTypeName=INT, primaryKey=false), status=PipelineColumnMetaData(ordinalPosition=3, name=status, dataType=12, dataTypeName=VARCHAR, primaryKey=false)}, columnNames=[order_id, user_id, status], primaryKeyColumns=[order_id])}, cost time=17 ms
[WARN ] 2022-04-30 14:50:24.892 [0130317c30317c3054317c7363616c696e675f6462_Worker-1] o.a.s.d.p.c.m.l.PipelineTableMetaDataLoader - getTableMetaData, can not load metadata for table 't_order'"><pre class="notranslate"><code class="notranslate">[INFO ] 2022-04-30 14:50:08.688 [0130317c30317c3054317c7363616c696e675f6462_Worker-1] o.a.s.d.p.c.m.l.PipelineTableMetaDataLoader - loadTableMetaData, tableNamePattern=t_order, result={T_ORDER=PipelineTableMetaData(name=T_ORDER, columnMetaDataMap={order_id=PipelineColumnMetaData(ordinalPosition=1, name=order_id, dataType=4, dataTypeName=INT, primaryKey=true), user_id=PipelineColumnMetaData(ordinalPosition=2, name=user_id, dataType=4, dataTypeName=INT, primaryKey=false), status=PipelineColumnMetaData(ordinalPosition=3, name=status, dataType=12, dataTypeName=VARCHAR, primaryKey=false)}, columnNames=[order_id, user_id, status], primaryKeyColumns=[order_id])}, cost time=17 ms
[WARN ] 2022-04-30 14:50:24.892 [0130317c30317c3054317c7363616c696e675f6462_Worker-1] o.a.s.d.p.c.m.l.PipelineTableMetaDataLoader - getTableMetaData, can not load metadata for table 't_order'
</code></pre></div>
<h3 dir="auto">Reason analyze (If you can)</h3>
<h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3>
<p dir="auto">Run in MySQL (in MySQL cli):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mysql> drop database if exists scaling_ds_0;
Query OK, 4 rows affected (0.06 sec)
mysql> create database scaling_ds_0 default charset utf8;
Query OK, 1 row affected (0.03 sec)
mysql> use scaling_ds_0
Database changed
mysql> CREATE TABLE T_ORDER (order_id INT NOT NULL, user_id INT NOT NULL, status VARCHAR(45) NULL, PRIMARY KEY (order_id));
Query OK, 0 rows affected (0.05 sec)
mysql> insert into t_order (order_id, user_id, status) values (1,2,'ok'),(2,4,'ok'),(3,6,'ok'),(4,1,'ok'),(5,3,'ok'),(6,5,'ok');
Query OK, 6 rows affected (0.03 sec)
Records: 6 Duplicates: 0 Warnings: 0
mysql> select * from T_ORDER;
+----------+---------+--------+
| order_id | user_id | status |
+----------+---------+--------+
| 1 | 2 | ok |
| 2 | 4 | ok |
| 3 | 6 | ok |
| 4 | 1 | ok |
| 5 | 3 | ok |
| 6 | 5 | ok |
+----------+---------+--------+
6 rows in set (0.00 sec)"><pre class="notranslate"><code class="notranslate">mysql> drop database if exists scaling_ds_0;
Query OK, 4 rows affected (0.06 sec)
mysql> create database scaling_ds_0 default charset utf8;
Query OK, 1 row affected (0.03 sec)
mysql> use scaling_ds_0
Database changed
mysql> CREATE TABLE T_ORDER (order_id INT NOT NULL, user_id INT NOT NULL, status VARCHAR(45) NULL, PRIMARY KEY (order_id));
Query OK, 0 rows affected (0.05 sec)
mysql> insert into t_order (order_id, user_id, status) values (1,2,'ok'),(2,4,'ok'),(3,6,'ok'),(4,1,'ok'),(5,3,'ok'),(6,5,'ok');
Query OK, 6 rows affected (0.03 sec)
Records: 6 Duplicates: 0 Warnings: 0
mysql> select * from T_ORDER;
+----------+---------+--------+
| order_id | user_id | status |
+----------+---------+--------+
| 1 | 2 | ok |
| 2 | 4 | ok |
| 3 | 6 | ok |
| 4 | 1 | ok |
| 5 | 3 | ok |
| 6 | 5 | ok |
+----------+---------+--------+
6 rows in set (0.00 sec)
</code></pre></div>
<p dir="auto">Run in Proxy (in MySQL cli):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mysql> create database scaling_db;
Query OK, 0 rows affected (0.13 sec)
mysql> use scaling_db
Database changed
mysql> ADD RESOURCE ds_0 (
-> URL="jdbc:mysql://127.0.0.1:3306/scaling_ds_0?serverTimezone=UTC&useSSL=false",
-> USER=root,
-> PASSWORD=root,
-> PROPERTIES("maximumPoolSize"=50,"idleTimeout"="60000")
-> );
Query OK, 0 rows affected (1.01 sec)
mysql> CREATE SHARDING ALGORITHM database_inline (
-> TYPE(NAME=INLINE,PROPERTIES("algorithm-expression"="ds_0"))
-> );
Query OK, 0 rows affected (1.73 sec)
mysql> CREATE SHARDING ALGORITHM t_order_inline (
-> TYPE(NAME=INLINE,PROPERTIES("algorithm-expression"="t_order"))
-> );
Query OK, 0 rows affected (0.06 sec)
mysql> CREATE SHARDING TABLE RULE t_order (
-> DATANODES("ds_0.t_order"),
-> DATABASE_STRATEGY(TYPE=standard,SHARDING_COLUMN=user_id,SHARDING_ALGORITHM=database_inline),
-> TABLE_STRATEGY(TYPE=standard,SHARDING_COLUMN=order_id,SHARDING_ALGORITHM=t_order_inline),
-> KEY_GENERATE_STRATEGY(COLUMN=order_id,TYPE(NAME=snowflake))
-> );
Query OK, 0 rows affected (1.36 sec)
mysql> preview select count(1) from t_order;
+------------------+------------------------------+
| data_source_name | actual_sql |
+------------------+------------------------------+
| ds_0 | select count(1) from t_order |
+------------------+------------------------------+
1 row in set (0.29 sec)
mysql> select count(1) from t_order;
+----------+
| count(1) |
+----------+
| 6 |
+----------+
1 row in set (0.15 sec)
mysql> CREATE SHARDING SCALING RULE scaling_auto1 (
-> COMPLETION_DETECTOR(TYPE(NAME=IDLE, PROPERTIES("incremental-task-idle-second-threshold"=10))),
-> DATA_CONSISTENCY_CHECKER(TYPE(NAME=DATA_MATCH, PROPERTIES("chunk-size"=1000)))
-> );
Query OK, 0 rows affected (0.09 sec)
mysql> ADD RESOURCE ds_2 (
-> URL="jdbc:mysql://127.0.0.1:3306/scaling_ds_10?serverTimezone=UTC&useSSL=false",
-> USER=root,
-> PASSWORD=root,
-> PROPERTIES("maximumPoolSize"=50,"idleTimeout"="60000")
-> ), ds_3 (
-> URL="jdbc:mysql://127.0.0.1:3306/scaling_ds_11?serverTimezone=UTC&useSSL=false",
-> USER=root,
-> PASSWORD=root,
-> PROPERTIES("maximumPoolSize"=50,"idleTimeout"="60000")
-> ), ds_4 (
-> URL="jdbc:mysql://127.0.0.1:3306/scaling_ds_12?serverTimezone=UTC&useSSL=false",
-> USER=root,
-> PASSWORD=root,
-> PROPERTIES("maximumPoolSize"=50,"idleTimeout"="60000")
-> );
Query OK, 0 rows affected (0.21 sec)
mysql> ALTER SHARDING TABLE RULE t_order(
-> RESOURCES(ds_2,ds_3,ds_4),
-> SHARDING_COLUMN=order_id,
-> TYPE(NAME=hash_mod,PROPERTIES("sharding-count"=6)),
-> KEY_GENERATE_STRATEGY(COLUMN=order_id,TYPE(NAME=snowflake))
-> );
Query OK, 0 rows affected (0.27 sec)
mysql> show scaling list;
+--------------------------------------------+---------+----------------------+--------+---------------------+-----------+
| id | tables | sharding_total_count | active | create_time | stop_time |
+--------------------------------------------+---------+----------------------+--------+---------------------+-----------+
| 0130317c30317c3054317c7363616c696e675f6462 | t_order | 1 | true | 2022-04-30 14:50:07 | NULL |
+--------------------------------------------+---------+----------------------+--------+---------------------+-----------+
1 row in set (0.24 sec)"><pre class="notranslate"><code class="notranslate">mysql> create database scaling_db;
Query OK, 0 rows affected (0.13 sec)
mysql> use scaling_db
Database changed
mysql> ADD RESOURCE ds_0 (
-> URL="jdbc:mysql://127.0.0.1:3306/scaling_ds_0?serverTimezone=UTC&useSSL=false",
-> USER=root,
-> PASSWORD=root,
-> PROPERTIES("maximumPoolSize"=50,"idleTimeout"="60000")
-> );
Query OK, 0 rows affected (1.01 sec)
mysql> CREATE SHARDING ALGORITHM database_inline (
-> TYPE(NAME=INLINE,PROPERTIES("algorithm-expression"="ds_0"))
-> );
Query OK, 0 rows affected (1.73 sec)
mysql> CREATE SHARDING ALGORITHM t_order_inline (
-> TYPE(NAME=INLINE,PROPERTIES("algorithm-expression"="t_order"))
-> );
Query OK, 0 rows affected (0.06 sec)
mysql> CREATE SHARDING TABLE RULE t_order (
-> DATANODES("ds_0.t_order"),
-> DATABASE_STRATEGY(TYPE=standard,SHARDING_COLUMN=user_id,SHARDING_ALGORITHM=database_inline),
-> TABLE_STRATEGY(TYPE=standard,SHARDING_COLUMN=order_id,SHARDING_ALGORITHM=t_order_inline),
-> KEY_GENERATE_STRATEGY(COLUMN=order_id,TYPE(NAME=snowflake))
-> );
Query OK, 0 rows affected (1.36 sec)
mysql> preview select count(1) from t_order;
+------------------+------------------------------+
| data_source_name | actual_sql |
+------------------+------------------------------+
| ds_0 | select count(1) from t_order |
+------------------+------------------------------+
1 row in set (0.29 sec)
mysql> select count(1) from t_order;
+----------+
| count(1) |
+----------+
| 6 |
+----------+
1 row in set (0.15 sec)
mysql> CREATE SHARDING SCALING RULE scaling_auto1 (
-> COMPLETION_DETECTOR(TYPE(NAME=IDLE, PROPERTIES("incremental-task-idle-second-threshold"=10))),
-> DATA_CONSISTENCY_CHECKER(TYPE(NAME=DATA_MATCH, PROPERTIES("chunk-size"=1000)))
-> );
Query OK, 0 rows affected (0.09 sec)
mysql> ADD RESOURCE ds_2 (
-> URL="jdbc:mysql://127.0.0.1:3306/scaling_ds_10?serverTimezone=UTC&useSSL=false",
-> USER=root,
-> PASSWORD=root,
-> PROPERTIES("maximumPoolSize"=50,"idleTimeout"="60000")
-> ), ds_3 (
-> URL="jdbc:mysql://127.0.0.1:3306/scaling_ds_11?serverTimezone=UTC&useSSL=false",
-> USER=root,
-> PASSWORD=root,
-> PROPERTIES("maximumPoolSize"=50,"idleTimeout"="60000")
-> ), ds_4 (
-> URL="jdbc:mysql://127.0.0.1:3306/scaling_ds_12?serverTimezone=UTC&useSSL=false",
-> USER=root,
-> PASSWORD=root,
-> PROPERTIES("maximumPoolSize"=50,"idleTimeout"="60000")
-> );
Query OK, 0 rows affected (0.21 sec)
mysql> ALTER SHARDING TABLE RULE t_order(
-> RESOURCES(ds_2,ds_3,ds_4),
-> SHARDING_COLUMN=order_id,
-> TYPE(NAME=hash_mod,PROPERTIES("sharding-count"=6)),
-> KEY_GENERATE_STRATEGY(COLUMN=order_id,TYPE(NAME=snowflake))
-> );
Query OK, 0 rows affected (0.27 sec)
mysql> show scaling list;
+--------------------------------------------+---------+----------------------+--------+---------------------+-----------+
| id | tables | sharding_total_count | active | create_time | stop_time |
+--------------------------------------------+---------+----------------------+--------+---------------------+-----------+
| 0130317c30317c3054317c7363616c696e675f6462 | t_order | 1 | true | 2022-04-30 14:50:07 | NULL |
+--------------------------------------------+---------+----------------------+--------+---------------------+-----------+
1 row in set (0.24 sec)
</code></pre></div>
<p dir="auto">Run in MySQL:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mysql> update T_ORDER set status='ok1' where order_id=1;
Query OK, 1 row affected (0.03 sec)
Rows matched: 1 Changed: 1 Warnings: 0"><pre class="notranslate"><code class="notranslate">mysql> update T_ORDER set status='ok1' where order_id=1;
Query OK, 1 row affected (0.03 sec)
Rows matched: 1 Changed: 1 Warnings: 0
</code></pre></div>
<p dir="auto">Run in Proxy:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mysql> show scaling status 0130317c30317c3054317c7363616c696e675f6462;
+------+-------------+-------------------+--------+-------------------------------+--------------------------+
| item | data_source | status | active | inventory_finished_percentage | incremental_idle_seconds |
+------+-------------+-------------------+--------+-------------------------------+--------------------------+
| 0 | ds_0 | PREPARING_FAILURE | true | 0 | 0 |
+------+-------------+-------------------+--------+-------------------------------+--------------------------+
1 row in set (0.02 sec)"><pre class="notranslate"><code class="notranslate">mysql> show scaling status 0130317c30317c3054317c7363616c696e675f6462;
+------+-------------+-------------------+--------+-------------------------------+--------------------------+
| item | data_source | status | active | inventory_finished_percentage | incremental_idle_seconds |
+------+-------------+-------------------+--------+-------------------------------+--------------------------+
| 0 | ds_0 | PREPARING_FAILURE | true | 0 | 0 |
+------+-------------+-------------------+--------+-------------------------------+--------------------------+
1 row in set (0.02 sec)
</code></pre></div>
<h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3> | <div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="I don't think you fully understand what I mean. I mean, all names are different Include the key in the datasourceMap
The following conditions need to be met at the same time
1: Database names are no rule
2: table names are no rule
3: the key in the datasourceMap are no rule
4: Use ShardingAutoTableRuleConfiguration
5: Use Mod Sharding Algorithm
* How to code this example ?
* How to code this example ?
* How to code this example ?
--------------------------------------------------------------------------------------------------
You give me the example in Issue #15985 the keys in the datasourceMap are ds_0 and ds_1 ,Names are regular but What I want to know is what to do when there is no regularity.
--------------------------------------------------------------------------------------------------
please give me a complete example of meeting the above five conditions at the same time.
Thank you very much
Thank you very very very much
"><pre class="notranslate">I don<span class="pl-s"><span class="pl-pds">'</span>t think you fully understand what I mean. I mean, all names are different Include the key in the datasourceMap</span>
<span class="pl-s">The following conditions need to be met at the same time</span>
<span class="pl-s"> 1: Database names are no rule </span>
<span class="pl-s"> 2: table names are no rule </span>
<span class="pl-s"> 3: the key in the datasourceMap are no rule </span>
<span class="pl-s"> 4: Use ShardingAutoTableRuleConfiguration </span>
<span class="pl-s"> 5: Use Mod Sharding Algorithm</span>
<span class="pl-s"></span>
<span class="pl-s"> * How to code this example ?</span>
<span class="pl-s"> * How to code this example ?</span>
<span class="pl-s"> * How to code this example ?</span>
<span class="pl-s"></span>
<span class="pl-s">--------------------------------------------------------------------------------------------------</span>
<span class="pl-s"></span>
<span class="pl-s">You give me the example in Issue #15985 the keys in the datasourceMap are ds_0 and ds_1 ,Names are regular but What I want to know is what to do when there is no regularity. </span>
<span class="pl-s"> </span>
<span class="pl-s">--------------------------------------------------------------------------------------------------</span>
<span class="pl-s">please give me a complete example of meeting the above five conditions at the same time.</span>
<span class="pl-s">Thank you very much</span>
<span class="pl-s">Thank you very very very much</span>
<span class="pl-s"> </span></pre></div> | 0 |
<p dir="auto">one of my folder contains multiple h5 files, and I tried to load them into dataframes and then concat these df into one.</p>
<p dir="auto">the python process crashes when the num_tasks>1, if I debug thread by thread, it works, in another, it crashes simply when two threads run at the same time, even though they read different files.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from multiprocessing.pool import ThreadPool
import pandas as pd
num_tasks=2
def readjob(x):
path = x
return pd.read_hdf(path,"df",mode='r')
pool = ThreadPool(num_tasks)
results = pool.map(readjob,files)"><pre class="notranslate"><code class="notranslate">from multiprocessing.pool import ThreadPool
import pandas as pd
num_tasks=2
def readjob(x):
path = x
return pd.read_hdf(path,"df",mode='r')
pool = ThreadPool(num_tasks)
results = pool.map(readjob,files)
</code></pre></div> | <p dir="auto">xref: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="8870235" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/2397" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/2397/hovercard" href="https://github.com/pandas-dev/pandas/issues/2397">#2397</a><br>
xref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="178136775" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/14263" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/14263/hovercard" href="https://github.com/pandas-dev/pandas/issues/14263">#14263</a> (example)</p>
<p dir="auto">I <em>think</em> that we should protect the file open/closes with a lock to avoid this problem.</p> | 1 |
<p dir="auto">I just wanted to document a few unique design patterns that apply to Fiber, but not necessarily anything else. I'll start here.</p>
<ul dir="auto">
<li>You may mutate the fiber that you're working on during <code class="notranslate">beginWork</code> and <code class="notranslate">completeWork</code> phases but you may not have any other global side-effects. If you need a global side-effect, that have to be moved to the <code class="notranslate">commitWork</code> phase.</li>
<li>Fiber is a fixed data structure. It shares the same hidden class. Never add fields outside of construction in <code class="notranslate">ReactFiber</code>.</li>
<li>Nothing in the reconciler uses dynamic dispatch. I.e. we don't call a first class function, except for user code such as ref callbacks, functional components, render methods, etc. The rest is a static function available in a closure. I.e. use <code class="notranslate">myHelper(obj)</code> instead of <code class="notranslate">obj.myHelper()</code>. Any time we need to branch logic we use a switch statement over a <code class="notranslate">tag</code> which is a number that indicates which type of object we're dealing with and which branch to take (see pattern matching).</li>
<li>Many modules are instantiated with a <code class="notranslate">HostConfig</code> object. It is a single constructor that gets called on initialization time. This should be inlinable by a compiler.</li>
<li>Nothing in Fiber uses the normal JS stack. Meaning it does use the stack but it can be compiled into a flat function if needed. Calling other functions is fine - the only limitation is that they can't be recursive.</li>
<li>If I can't use recursion, how do I traverse through the tree? Learn to use the singly linked list tree traversal algorithm. E.g. parent first, depth first:</li>
</ul>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let root = fiber;
let node = fiber;
while (true) {
// Do something with node
if (node.child) {
node = node.child;
continue;
}
if (node === root) {
return;
}
while (!node.sibling) {
if (!node.return || node.return === root) {
return;
}
node = node.return;
}
node = node.sibling;
}"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">root</span> <span class="pl-c1">=</span> <span class="pl-s1">fiber</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">node</span> <span class="pl-c1">=</span> <span class="pl-s1">fiber</span><span class="pl-kos">;</span>
<span class="pl-k">while</span> <span class="pl-kos">(</span><span class="pl-c1">true</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// Do something with node</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">node</span><span class="pl-kos">.</span><span class="pl-c1">child</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">node</span> <span class="pl-c1">=</span> <span class="pl-s1">node</span><span class="pl-kos">.</span><span class="pl-c1">child</span><span class="pl-kos">;</span>
<span class="pl-k">continue</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">node</span> <span class="pl-c1">===</span> <span class="pl-s1">root</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">while</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-s1">node</span><span class="pl-kos">.</span><span class="pl-c1">sibling</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-s1">node</span><span class="pl-kos">.</span><span class="pl-c1">return</span> <span class="pl-c1">||</span> <span class="pl-s1">node</span><span class="pl-kos">.</span><span class="pl-c1">return</span> <span class="pl-c1">===</span> <span class="pl-s1">root</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-s1">node</span> <span class="pl-c1">=</span> <span class="pl-s1">node</span><span class="pl-kos">.</span><span class="pl-c1">return</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-s1">node</span> <span class="pl-c1">=</span> <span class="pl-s1">node</span><span class="pl-kos">.</span><span class="pl-c1">sibling</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Why does it need to be this complicated?</p>
<ul dir="auto">
<li>We can use the normal JS stack for this but any time we yield in a <code class="notranslate">requestIdleCallback</code> we would have to rebuild the stack when we continue. Since this only lasts for about 50ms when idle, we would spend some time unwinding and rebuilding the stack each time. It is not too bad. However, everything along the stack would have to be aware of how to "unwind" when we abort in the middle of the work flow.</li>
<li>It is plausible we could do this at the level of OCaml algebraic effects but we don't currently have all the features we need and we don't get the performance tradeoffs we want out of the box atm. This is a plausible future way forward though.</li>
<li>Most code lives outside of this recursion so it doesn't matter much for most cases.</li>
<li>Most of what React does is in the space of what the normal stack does. E.g. memoization, error handling, etc. Using the normal stack too, just makes it more difficult to get those to interact.</li>
<li>Everything we put on the stack we generally have to put on the heap too because we memoize it. Maintaining the stack and the heap with the same data is theoretically less efficient.</li>
<li>That said, all of these optimizations might be moot because JS stacks are much more efficient than JS heaps.</li>
<li>One thing that I wanted to try was to compile React components to do work directly on these data structures, just like normal programming languages compile to make mutations etc. to the stack. I think that's where the ideal implementation of React is.</li>
</ul>
<p dir="auto">Let's just try it and see how it goes. :D</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/spicyj/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/spicyj">@spicyj</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gaearon/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gaearon">@gaearon</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/acdlite/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/acdlite">@acdlite</a></p> | <p dir="auto">Describe what you were doing when the bug occurred:</p>
<ol dir="auto">
<li>I opened react profiler</li>
<li>I clicked "start profiling"</li>
<li>I performed some actions in my react application</li>
<li>I clicked "stop profiling"</li>
<li>Stacktrace appeared in devtools window instead of profiler charts.</li>
</ol>
<hr>
<h2 dir="auto">Please do not remove the text below this line</h2>
<p dir="auto">DevTools version: 4.8.1-d4eadea6c</p>
<p dir="auto">Call stack: at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:166989)<br>
at T (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:165979)<br>
at e.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:168938)<br>
at Wl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:346620)<br>
at oi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:60964)<br>
at Ui (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:70944)<br>
at Bl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:117704)<br>
at Tc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:103070)<br>
at Oc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:102998)<br>
at Dc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:102861)</p>
<p dir="auto">Component stack: at Wl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:346391)<br>
at div<br>
at div<br>
at div<br>
at Eo (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:266560)<br>
at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:370969<br>
at n (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:279481)<br>
at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:282269<br>
at div<br>
at div<br>
at Ji (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:329374)<br>
at Ge (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:209300)<br>
at sn (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:218616)<br>
at Wa (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:297360)<br>
at ps (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:376211)</p> | 0 |
<p dir="auto">I have one form type (extending <code class="notranslate">AbstractType</code>) which has an option to switch between adding children either as regular fields or as hidden ones. Two instances of that type are created in the controller, one with regular fields, one with hidden ones. Both instances are passed to the template. The form with hidden fields is rendered first, then the other one.</p>
<p dir="auto">That used to work well. But with <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5620346" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/4918" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/4918/hovercard" href="https://github.com/symfony/symfony/pull/4918">#4918</a>, the 2nd form isn't rendered at all. I couldn't find out why, as <code class="notranslate">isRendered()</code> still returns <code class="notranslate">false</code> prior to being rendered and it also <code class="notranslate">has()</code> all expected fields. Both forms would also be rendered correctly when changing their order.</p>
<p dir="auto">@bschussek: Do you have a clue what could cause this? Or shall I provide some of the code mentioned?</p> | <p dir="auto"><a href="http://symfony.com/schema/dic/services/services-1.0.xsd" rel="nofollow">http://symfony.com/schema/dic/services/services-1.0.xsd</a> fails validation in both PhpStorm and OxygenXml</p>
<p dir="auto">error is (output from OxygenXml when validating the XSD file)</p>
<p dir="auto">System ID: <a href="http://symfony.com/schema/dic/services/services-1.0.xsd" rel="nofollow">http://symfony.com/schema/dic/services/services-1.0.xsd</a><br>
Main validation file: <a href="http://symfony.com/schema/dic/services/services-1.0.xsd" rel="nofollow">http://symfony.com/schema/dic/services/services-1.0.xsd</a><br>
Engine name: Saxon-EE 9.5.1.7<br>
Severity: fatal<br>
Description: Error in complex type container: Ambiguous content model, there are two xs:any wildcards that match overlapping sets of namespaces<br>
Start location: 20:0</p>
<p dir="auto">and appears to be caused by a duplicate definition of</p>
<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />"><pre class="notranslate"><<span class="pl-ent">xsd</span><span class="pl-ent">:</span><span class="pl-ent">any</span> <span class="pl-e">namespace</span>=<span class="pl-s"><span class="pl-pds">"</span>##other<span class="pl-pds">"</span></span> <span class="pl-e">processContents</span>=<span class="pl-s"><span class="pl-pds">"</span>lax<span class="pl-pds">"</span></span> <span class="pl-e">minOccurs</span>=<span class="pl-s"><span class="pl-pds">"</span>0<span class="pl-pds">"</span></span> <span class="pl-e">maxOccurs</span>=<span class="pl-s"><span class="pl-pds">"</span>unbounded<span class="pl-pds">"</span></span> /></pre></div>
<p dir="auto">at L 27 & 31</p>
<p dir="auto">net result is that DI container utilising an XML definition won't compile.</p>
<p dir="auto">[edit]<br>
Container definition will compile under most circumstances but if there is a slight error in the xml that is not caught by the XSD, (XSD is not a perfect tool in and of itself,) then it appears that most of these parsers lose their way. However, the invalid syntax of the XSD itself is a problem.</p> | 0 |
<p dir="auto">It would be useful to have a definitive example of cleaning up objects/scenes/mesh/geometry and any etc's. This would be useful for those that want to carry out changes dynamically by recreating a mesh.</p>
<p dir="auto">Please also show when and how any reuse of a structure might be more appropiate. As newbie I'm not sure what is meant by phrases like "reusing" a geometry.</p> | <p dir="auto">I think ThreeJS is missing a Plane class. Right now we are using a Vector4 as the plane class, but generally it is considered to be a separate class as the operations on a Vector4 are generally quite different than the operations on a Plane.</p>
<p dir="auto">For example, there is a lot of special case code in Frustum.js where it needs to calculate distance to a point from a plane, but it doesn't use a member method but rather it includes the whole plane/point distance equation.</p>
<p dir="auto">Having a Plane class will simplify the code for Frustum.js and make it more reusable. The methods I propose having on the Plane class are as follows:</p>
<ul dir="auto">
<li>Scalar distanceToPoint( point as Vector3 )</li>
<li>Scalar distanceToSphere( sphere as Sphere ) // see proposal for sphere class in issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="8828431" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/2708" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/2708/hovercard" href="https://github.com/mrdoob/three.js/issues/2708">#2708</a></li>
<li>Vector3 intersectLine( start as Vector3, end as Vector3 ) // return intersection point, returns null if no intersection</li>
<li>void transform( transform as Matrix4 ) // transform in place</li>
<li>Vector3 reflectPoint( point as Vector3 )</li>
<li>Vector3 reflectVector( vector as Vector3 )</li>
<li>void flip() // flip in place</li>
</ul>
<p dir="auto">It will also have constructors that take either:</p>
<ul dir="auto">
<li>normal, distance</li>
<li>point, normal</li>
<li>point1, point2, point3 // coplanar points. Degenerate coincident or colinear points would throw error.</li>
</ul>
<p dir="auto">Members properties would be:</p>
<ul dir="auto">
<li>normal (Vector3)</li>
<li>distance (Scalar), which could also be called constant</li>
</ul>
<p dir="auto">Let me know if I can contribute this.</p>
<p dir="auto">I can also modify the Frustum class to use this instead of its Vector4-based representation.</p> | 0 |
<p dir="auto">I'm attempting to re-open <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="183537858" data-permission-text="Title is private" data-url="https://github.com/mwaskom/seaborn/issues/1059" data-hovercard-type="issue" data-hovercard-url="/mwaskom/seaborn/issues/1059/hovercard" href="https://github.com/mwaskom/seaborn/issues/1059">#1059</a>, as seaborn should definitely be able to plot distributions over date ranges, and telling us to just use <code class="notranslate">plt.hist</code> is a work-around, not a solution. It sounds like a few changes in the calculations of the means and for colors and bin sizes should get it working (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="183537858" data-permission-text="Title is private" data-url="https://github.com/mwaskom/seaborn/issues/1059" data-hovercard-type="issue" data-hovercard-url="/mwaskom/seaborn/issues/1059/hovercard?comment_id=254355469&comment_type=issue_comment" href="https://github.com/mwaskom/seaborn/issues/1059#issuecomment-254355469">#1059 (comment)</a>).</p>
<p dir="auto"><code class="notranslate">sb.distplot(np.arange('2016-01', '2016-05', dtype='datetime64[D]'))</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-174-b58909c41bc2> in <module>
----> 1 sb.distplot(np.arange('2016-01', '2016-05', dtype='datetime64[D]'))
/opt/conda/lib/python3.6/site-packages/seaborn/distributions.py in distplot(a, bins, hist, kde, rug, fit, hist_kws, kde_kws, rug_kws, fit_kws, color, vertical, norm_hist, axlabel, label, ax)
196 line, = ax.plot(0, a.mean())
197 else:
--> 198 line, = ax.plot(a.mean(), 0)
199 color = line.get_color()
200 line.remove()
/opt/conda/lib/python3.6/site-packages/numpy/core/_methods.py in _mean(a, axis, dtype, out, keepdims)
73 is_float16_result = True
74
---> 75 ret = umr_sum(arr, axis, dtype, out, keepdims)
76 if isinstance(ret, mu.ndarray):
77 ret = um.true_divide(
TypeError: ufunc add cannot use operands with types dtype('<M8[D]') and dtype('<M8[D]')"><pre class="notranslate"><code class="notranslate">---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-174-b58909c41bc2> in <module>
----> 1 sb.distplot(np.arange('2016-01', '2016-05', dtype='datetime64[D]'))
/opt/conda/lib/python3.6/site-packages/seaborn/distributions.py in distplot(a, bins, hist, kde, rug, fit, hist_kws, kde_kws, rug_kws, fit_kws, color, vertical, norm_hist, axlabel, label, ax)
196 line, = ax.plot(0, a.mean())
197 else:
--> 198 line, = ax.plot(a.mean(), 0)
199 color = line.get_color()
200 line.remove()
/opt/conda/lib/python3.6/site-packages/numpy/core/_methods.py in _mean(a, axis, dtype, out, keepdims)
73 is_float16_result = True
74
---> 75 ret = umr_sum(arr, axis, dtype, out, keepdims)
76 if isinstance(ret, mu.ndarray):
77 ret = um.true_divide(
TypeError: ufunc add cannot use operands with types dtype('<M8[D]') and dtype('<M8[D]')
</code></pre></div>
<p dir="auto">I'm using seaborn 0.9.0 with numpy 1.15.2</p> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="%matplotlib inline
import numpy as np
import pandas as pd
import seaborn as sns
mean, cov = [0, 1], [(1, .5), (.5, 1)]
data = np.random.multivariate_normal(mean, cov, 200)
df = pd.DataFrame(data, columns=["x", "y"])
sns.jointplot(x="Not_X_Name", y="Not_a_valid_name", data=df)
sns.jointplot(x="Not_X_Name", y="y", data=df)
sns.jointplot(x="", y="", data=df)"><pre class="notranslate"><code class="notranslate">%matplotlib inline
import numpy as np
import pandas as pd
import seaborn as sns
mean, cov = [0, 1], [(1, .5), (.5, 1)]
data = np.random.multivariate_normal(mean, cov, 200)
df = pd.DataFrame(data, columns=["x", "y"])
sns.jointplot(x="Not_X_Name", y="Not_a_valid_name", data=df)
sns.jointplot(x="Not_X_Name", y="y", data=df)
sns.jointplot(x="", y="", data=df)
</code></pre></div>
<p dir="auto">All of those calls return different error message, none of which are clear / help find the actual issue column names not found in the dataframe.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/chrish42/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/chrish42">@chrish42</a></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://vuejs.org/v2/guide/forms.html" rel="nofollow">https://vuejs.org/v2/guide/forms.html</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">fill textbox, checkbox, select etc.</p>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">field reset on page refresh in IE/Edge</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">html components are retaining the previous selection where data is refreshed on page refresh in IE /Edge.</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/affeman/pen/LYVzzYw" rel="nofollow">https://codepen.io/affeman/pen/LYVzzYw</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Not reproducible in CodePen but the code is the same used in the Vue official documentation (See below)</p>
<ol dir="auto">
<li>Go to <a href="https://vuejs.org/v2/guide/forms.html#Checkbox" rel="nofollow">https://vuejs.org/v2/guide/forms.html#Checkbox</a> in Internet Explorer 11</li>
<li>Click the checkbox</li>
<li>Reload the page</li>
</ol>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">The checkbox is unchecked and the label is false</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">The checkbox is checked and the label is false</p>
<hr>
<p dir="auto">The same issue applies to the other components on the page as well.</p>
<p dir="auto">The issue is not applicable after a hard refresh.</p> | 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: [v15.14.0]</li>
<li>Browser: [Chromium]</li>
<li>Extra: [issue is not reproducible for firefox, webkit and headless chromium]</li>
</ul>
<p dir="auto">When I am just doing this</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import playwright from 'playwright';
(async () => {
const browser = await playwright.chromium.launch({
headless: false,
timeout: 120000,
logger: {
isEnabled: (name, severity) => name === 'browser',
log: (name, severity, message, args) => console.log(`${name} ${severity} ${message}`)
}
});
const context = await browser.newContext();
const page = await context.newPage();
await page.goto('some url');
await page.fill("//input[@name='email']", "my username");
await page.fill("//input[@name='password']", "my password");
await page.click("//button[@class='primary']");
await page.waitForSelector("table.generic-table.findings-list-table")
await page.screenshot({
path: "./screenshots/1.png",
fullPage: true
})
console.log("here")
await browser.close();
console.log("after close")
})();"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">playwright</span> <span class="pl-k">from</span> <span class="pl-s">'playwright'</span><span class="pl-kos">;</span>
<span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">browser</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">playwright</span><span class="pl-kos">.</span><span class="pl-c1">chromium</span><span class="pl-kos">.</span><span class="pl-en">launch</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">headless</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">timeout</span>: <span class="pl-c1">120000</span><span class="pl-kos">,</span>
<span class="pl-c1">logger</span>: <span class="pl-kos">{</span>
<span class="pl-en">isEnabled</span>: <span class="pl-kos">(</span><span class="pl-s1">name</span><span class="pl-kos">,</span> <span class="pl-s1">severity</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-s1">name</span> <span class="pl-c1">===</span> <span class="pl-s">'browser'</span><span class="pl-kos">,</span>
<span class="pl-en">log</span>: <span class="pl-kos">(</span><span class="pl-s1">name</span><span class="pl-kos">,</span> <span class="pl-s1">severity</span><span class="pl-kos">,</span> <span class="pl-s1">message</span><span class="pl-kos">,</span> <span class="pl-s1">args</span><span class="pl-kos">)</span> <span class="pl-c1">=></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">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">name</span><span class="pl-kos">}</span></span> <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">severity</span><span class="pl-kos">}</span></span> <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">message</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">context</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">newContext</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">context</span><span class="pl-kos">.</span><span class="pl-en">newPage</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'some url'</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">fill</span><span class="pl-kos">(</span><span class="pl-s">"//input[@name='email']"</span><span class="pl-kos">,</span> <span class="pl-s">"my username"</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">fill</span><span class="pl-kos">(</span><span class="pl-s">"//input[@name='password']"</span><span class="pl-kos">,</span> <span class="pl-s">"my password"</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">click</span><span class="pl-kos">(</span><span class="pl-s">"//button[@class='primary']"</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">waitForSelector</span><span class="pl-kos">(</span><span class="pl-s">"table.generic-table.findings-list-table"</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">screenshot</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">path</span>: <span class="pl-s">"./screenshots/1.png"</span><span class="pl-kos">,</span>
<span class="pl-c1">fullPage</span>: <span class="pl-c1">true</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">"here"</span><span class="pl-kos">)</span>
<span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">close</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"after close"</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">I am running into this error that appears after a minute playwright tries to close the browser. It happens every time when browser command close starts and is not reproducible for firefox and webkit or headless chromium. GUI is closed but the node process is still running. Task manager shows chromium running and consuming 20-30 percent of cpu.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[Error: EPERM: operation not permitted, unlink 'C:\Users\AKREML~1\AppData\Local\Temp\playwright_chromiumdev_profile-dhO1Xy\CrashpadMetrics-active.pma'] {
errno: -4048,
code: 'EPERM',
syscall: 'unlink',
path: 'C:\\Users\\AKREML~1\\AppData\\Local\\Temp\\playwright_chromiumdev_profile-dhO1Xy\\CrashpadMetrics-active.pma'
}"><pre class="notranslate"><code class="notranslate">[Error: EPERM: operation not permitted, unlink 'C:\Users\AKREML~1\AppData\Local\Temp\playwright_chromiumdev_profile-dhO1Xy\CrashpadMetrics-active.pma'] {
errno: -4048,
code: 'EPERM',
syscall: 'unlink',
path: 'C:\\Users\\AKREML~1\\AppData\\Local\\Temp\\playwright_chromiumdev_profile-dhO1Xy\\CrashpadMetrics-active.pma'
}
</code></pre></div>
<p dir="auto">I can not share the url. Is there anything else I can share with you ?</p> | <p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>Playwright Version: 1.8.0</li>
<li>Operating System: macOS 11.2</li>
<li>Node.js version: 12.18.4</li>
<li>Browser: Chrome (version 88.0.4324.146)</li>
<li>Extra: None</li>
</ul>
<p dir="auto"><strong>Code Snippet</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const playwright = require('playwright')
(async () => {
const browser = await playwright['chromium'].launch({
executablePath:
'/Applications/Google Chrome.app/Contents/MacOS/Google Chrome',
headless: false,
})
const context = await browser.newContext()
const page = await context.newPage()
await page.goto('https://google.com', { waitUntil: 'load' })
const cookies = await page.context().cookies()
await browser.close()
})()
"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">playwright</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-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">browser</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">playwright</span><span class="pl-kos">[</span><span class="pl-s">'chromium'</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">launch</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">executablePath</span>:
<span class="pl-s">'/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'</span><span class="pl-kos">,</span>
<span class="pl-c1">headless</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-k">const</span> <span class="pl-s1">context</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">newContext</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-k">const</span> <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">context</span><span class="pl-kos">.</span><span class="pl-en">newPage</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'https://google.com'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">waitUntil</span>: <span class="pl-s">'load'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-k">const</span> <span class="pl-s1">cookies</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">context</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">cookies</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">close</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span></pre></div>
<p dir="auto"><strong>Describe the bug</strong><br>
When running the test with no-headless Chrome (also happens with Chrome Dev, and Chrome Canary), the test is hung at <code class="notranslate">await browser.close()</code> and can not close the browser.</p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Can override <code class="notranslate">MuiTouchRipple</code> in the <code class="notranslate">ThemeOptions</code> overrides section.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Get a typescript error that MuiTouchRipple is not defined in Overrides</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const customMuiTheme = createMuiTheme({
overrides: {
MuiTouchRipple: {
root: {
display: 'none'
}
}
}
});"><pre class="notranslate"><code class="notranslate">const customMuiTheme = createMuiTheme({
overrides: {
MuiTouchRipple: {
root: {
display: 'none'
}
}
}
});
</code></pre></div>
<h2 dir="auto">Context</h2>
<p dir="auto">Unable to override the mui touch ripple. Is there a different way to override this setting that makes Typescript happy?</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.24</td>
</tr>
<tr>
<td>React</td>
<td>16.2.0</td>
</tr>
</tbody>
</table> | <p dir="auto">I'm working on a tool that allows certain states to be toggled from a toolbar (think bold/italic/etc). I'd like to show that certain states are enabled. I know the switch component makes this every easy but I'd like to mimic existing toolbar like functionality found in most WYSIWYGs.</p>
<p dir="auto">What is the recommend approach for showing toggle state with an IconButton?</p>
<p dir="auto">This may be outside the material spec but I would suspect something others would like do in their apps as they become more rich and rely more heavily on material-ui for all of the UX.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">I'd like some sort of 'on' or 'pressed' prop that results in corresponding visual representation on the IconButton.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">No props available. Which I think is by design but hopefully the use case is persuasive to reconsider.</p>
<h2 dir="auto">Context</h2>
<p dir="auto">I hope to use this metaphor in a WYSIWYG editor as well as a few other toolbars within the app. I think a toggle state on a button more closely aligns to user's expectation of how a format toolbar should work than some sort of switch control.</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.29</td>
</tr>
<tr>
<td>React</td>
<td>16</td>
</tr>
<tr>
<td>browser</td>
<td>chrome</td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">Created a test.js and wrote very simple React code. This is what I got:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12144265/11841504/e0ff8cce-a451-11e5-824e-ffb924872110.PNG"><img width="494" alt="capture" src="https://cloud.githubusercontent.com/assets/12144265/11841504/e0ff8cce-a451-11e5-824e-ffb924872110.PNG" style="max-width: 100%;"></a></p>
<p dir="auto">To be honest, currently VS Code has very bad support of React syntax and it's basically useless. This issue has been there for quite some time... just wondering: is it going to be fixed?</p> | <p dir="auto">I know VSCode has not support JSX yet but it didn't appear so much error highlights in the last version, even I had already changed my language mode into <code class="notranslate">Plain Text</code>.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6079112/11261584/f5e2e9d0-8eb0-11e5-8388-e6711dc718f9.PNG"><img src="https://cloud.githubusercontent.com/assets/6079112/11261584/f5e2e9d0-8eb0-11e5-8388-e6711dc718f9.PNG" alt="2" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=eberhardwolff" rel="nofollow">Eberhard Wolff</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3245?redirect=false" rel="nofollow">SPR-3245</a></strong> and commented</p>
<p dir="auto">AbstractJpaTest leads to an StackOverflowError if used with Maven.</p>
<ul dir="auto">
<li>childDelegationMode true did not help</li>
<li>forkMode perTest did not help</li>
<li>error is present if using mvn test or running the test from inside Eclipse</li>
</ul>
<p dir="auto">Battery: base.BestellungMitJPATest</p>
<hr>
<p dir="auto">Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2,772 sec</p>
<p dir="auto">testNothing(base.BestellungMitJPATest) Time elapsed: 2,726 sec <<< ERROR!</p>
<p dir="auto">[ stdout ] ---------------------------------------------------------------</p>
<p dir="auto">[ stderr ] ---------------------------------------------------------------</p>
<p dir="auto">[ stacktrace ] -----------------------------------------------------------</p>
<p dir="auto">org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entity<br>
ManagerFactory' defined in class path resource [jpa-beans.xml]: Invocation of init method fail<br>
ed; nested exception is java.lang.StackOverflowError<br>
Caused by: java.lang.StackOverflowError<br>
at java.lang.Character.toLowerCase(Character.java:4204)<br>
at java.lang.Character.toLowerCase(Character.java:4171)<br>
at java.lang.String.toLowerCase(String.java:2219)<br>
at java.lang.String.toLowerCase(String.java:2296)<br>
at org.apache.xerces.util.URI.setScheme(URI.java:908)<br>
at org.apache.xerces.util.URI.initializeScheme(URI.java:576)<br>
at org.apache.xerces.util.URI.initialize(URI.java:400)<br>
at org.apache.xerces.util.URI.<init>(URI.java:211)<br>
at org.apache.xerces.util.URI.<init>(URI.java:195)<br>
at org.apache.xerces.impl.XMLEntityManager.expandSystemId(XMLEntityManager.java:1140)<br>
at org.apache.xerces.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:581)<br>
at org.apache.xerces.impl.xs.XMLSchemaLoader.xsdToXMLInputSource(XMLSchemaLoader.java:<br>
625)<br>
at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.j<br>
ava:580)<br>
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:489)<br>
at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.j<br>
ava:588)<br>
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:489)<br>
at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(XMLSchemaLoader.j<br>
ava:588)</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0.2</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/12461/MavenJpaTestsBug.zip" rel="nofollow">MavenJpaTestsBug.zip</a> (<em>14.25 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="398076067" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7923" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7923/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7923">#7923</a> AbstractJpaTests and Maven (<em><strong>"duplicates"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398076067" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7923" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7923/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7923">#7923</a> AbstractJpaTests and Maven (<em><strong>"is duplicated by"</strong></em>)</li>
</ul> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=maarten" rel="nofollow">Maarten Bosteels</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-796?redirect=false" rel="nofollow">SPR-796</a></strong> and commented</p>
<p dir="auto">Would be nice if LobHandler supported specifying the column by name.<br>
The implementation is of course trivial (and attached).</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 1.1.5</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/10601/DefaultLobHandler.java" rel="nofollow">DefaultLobHandler.java</a> (<em>5.71 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/10600/LobHandler.java" rel="nofollow">LobHandler.java</a> (<em>8.20 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/10602/OracleLobHandler.java" rel="nofollow">OracleLobHandler.java</a> (<em>16.97 kB</em>)</li>
</ul> | 0 |
<h3 dir="auto">Describe the workflow you want to enable</h3>
<p dir="auto">I think it would be awesome if the RF regressor returns the standard deviation (not only the mean) of the output of the different trees.</p>
<h3 dir="auto">Describe your proposed solution</h3>
<p dir="auto">This is not a definite option, but contains the core idea:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sklearn.ensemble import RandomForestRegressor
import numpy as np
class RandomForestWithUncertainty:
def __init__(self,**args):
self.model = RandomForestRegressor(**args)
def predict(self, X, return_std = False):
pred = np.array([tree.predict(X) for tree in self.model]).T
pred_mean = np.mean(pred, axis=1)
if return_std:
pred_var = (pred - pred_mean.reshape(-1,1))**2
pred_std = np.sqrt(np.mean(pred_var, axis=1))
return pred_mean, pred_std
else:
return pred_mean"><pre class="notranslate"><code class="notranslate">from sklearn.ensemble import RandomForestRegressor
import numpy as np
class RandomForestWithUncertainty:
def __init__(self,**args):
self.model = RandomForestRegressor(**args)
def predict(self, X, return_std = False):
pred = np.array([tree.predict(X) for tree in self.model]).T
pred_mean = np.mean(pred, axis=1)
if return_std:
pred_var = (pred - pred_mean.reshape(-1,1))**2
pred_std = np.sqrt(np.mean(pred_var, axis=1))
return pred_mean, pred_std
else:
return pred_mean
</code></pre></div>
<h3 dir="auto">Describe alternatives you've considered, if relevant</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional context</h3>
<p dir="auto">This is useful if we want to use the RF in algorithms that require uncertainties estimatios, such as Bayesian Optimization.</p> | <p dir="auto">It would be nice if we could do:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="rf = RandomForestRegressor()
rf.fit(X, y)
y_mean, y_var = rf.predict(X, ret_variance=True)"><pre class="notranslate"><span class="pl-s1">rf</span> <span class="pl-c1">=</span> <span class="pl-v">RandomForestRegressor</span>()
<span class="pl-s1">rf</span>.<span class="pl-en">fit</span>(<span class="pl-v">X</span>, <span class="pl-s1">y</span>)
<span class="pl-s1">y_mean</span>, <span class="pl-s1">y_var</span> <span class="pl-c1">=</span> <span class="pl-s1">rf</span>.<span class="pl-en">predict</span>(<span class="pl-v">X</span>, <span class="pl-s1">ret_variance</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</pre></div>
<p dir="auto">Same for BaggingRegressor.</p> | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.