text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<p dir="auto">I have a javascript node project with some TypeScript definition files inside it. My jsconfig.json is as follows:<br>
{<br>
"compilerOptions": {<br>
"target": "ES6",<br>
"module": "commonjs"<br>
}<br>
}</p>
<p dir="auto">If I rename a javascript source file to temp_hello.js or even temple.js (imagine if temples were in my business domain!) then the intellisense stops working for the file (it does not pick up anything in the typescript definition files) and it also forgets my jsconfig.json settings. That means I can't use ES6 syntax anymore!</p> | <p dir="auto">Hi.</p>
<p dir="auto">Thanks for your product, I really enjoy using it. However I have one problem:<br>
When using ES6 features, like the arrow functions, I get the message "This can only be used with ES6. Make sure to have a jsconfig.json-file which sets the target to ES6".</p>
<p dir="auto">However I have a <code class="notranslate">jsconfig.json</code>-file in my root (the folder opened in Visual Studio Code), which contains:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"compilerOptions": {
"target": "ES6",
"module": "commonjs"
}
}"><pre class="notranslate">{
<span class="pl-ent">"compilerOptions"</span>: {
<span class="pl-ent">"target"</span>: <span class="pl-s"><span class="pl-pds">"</span>ES6<span class="pl-pds">"</span></span>,
<span class="pl-ent">"module"</span>: <span class="pl-s"><span class="pl-pds">"</span>commonjs<span class="pl-pds">"</span></span>
}
}</pre></div>
<p dir="auto">The weird part is that I get it for some files, and not for others. Even if the files are in the same directory. Right now I have three files in the subdirectory <code class="notranslate">/app/bpm</code> names <code class="notranslate">bpm.js</code>, <code class="notranslate">bpmController.js</code> and <code class="notranslate">enterClick.js</code>. All three are written with ES6-functionality, but I only get the warning and red underlined text for <code class="notranslate">bpm.js</code>.</p>
<p dir="auto">UPDATE:<br>
I just restarted VS Code, and the red underline disappeared from <code class="notranslate">bpm.js</code> too. It was a new file I had created after the two others, however the red underline only went away after a restart.</p> | 1 |
<p dir="auto"><a href="http://freecodecamp.com/challenges/bonfire-reverse-a-string" rel="nofollow">http://freecodecamp.com/challenges/bonfire-reverse-a-string</a></p> | <p dir="auto">For example, the example function call at the end of Confirm the Ending is:<br>
<code class="notranslate">end("Bastian", "n", "");</code><br>
when that function should only take two parameters. This is the case for most of the basic bonfires from Title Case a Sentence onwards.</p> | 1 |
<p dir="auto">This is the second attempt (rc2) of releasing July Providers :). I carried over the "checkmarks" from the last testing (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="945634790" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/17037" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/17037/hovercard" href="https://github.com/apache/airflow/issues/17037">#17037</a>) so there is no need to re-test those.</p>
<p dir="auto">I have a kind request for all the contributors to the latest provider packages release.<br>
Could you help us to test the RC versions of the providers and let us know in the comment, if the issue is addressed there.</p>
<h2 dir="auto">Providers that need testing</h2>
<p dir="auto">Those are providers that require testing as there were some substantial changes introduced:</p>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-airbyte/2.1.0rc2" rel="nofollow">airbyte: 2.1.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/17020" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17020/hovercard">Fixed wrongly escaped characters in amazon's changelog (#17020)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/potiuk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/potiuk">@potiuk</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-amazon/2.1.0rc2" rel="nofollow">amazon: 2.1.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/16685" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16685/hovercard">Allow attaching to previously launched task in ECSOperator (#16685)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pmalafosse/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pmalafosse">@pmalafosse</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/16771" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16771/hovercard">Update AWS Base hook to use refreshable credentials (#16770) (#16771)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/baolsen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/baolsen">@baolsen</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/16767" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16767/hovercard">Added select_query to the templated fields in RedshiftToS3Operator (#16767)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/hewe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/hewe">@hewe</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/16612" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16612/hovercard">AWS Hook - allow IDP HTTP retry (#12639) (#16612)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/baolsen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/baolsen">@baolsen</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/16050" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16050/hovercard">Update Boto3 API calls in ECSOperator (#16050)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/scottypate/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/scottypate">@scottypate</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/17162" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17162/hovercard">Adding custom Salesforce connection type + SalesforceToS3Operator updates (#17162)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/josh-fell/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/josh-fell">@josh-fell</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/17094" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17094/hovercard">Adding SalesforceToS3Operator to Amazon Provider (#17094)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/josh-fell/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/josh-fell">@josh-fell</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/issues/11011" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/11011/hovercard">AWS DataSync Operator does not cancel task on Exception (#11011)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/baolsen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/baolsen">@baolsen</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/16820" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16820/hovercard">Fix wrong template_fields_renderers for AWS operators (#16820)</a>: @codenamestif</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/16589" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16589/hovercard">AWS DataSync cancel task on exception (#11011) (#16589)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/baolsen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/baolsen">@baolsen</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/17087" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17087/hovercard">Fixed template_fields_renderers for Amazon provider (#17087)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/oyarushe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/oyarushe">@oyarushe</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/17081" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17081/hovercard">removing try-catch block to fix timeout exception getting ignored in aws batch operator (#17081)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ayushchauhan0811/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ayushchauhan0811">@ayushchauhan0811</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/17141" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17141/hovercard">ECSOperator / pass context to self.xcom_pull as it was missing (when using reattach) (#17141)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pmalafosse/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pmalafosse">@pmalafosse</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/17117" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17117/hovercard">Made S3ToRedshiftOperator transaction safe (#17117)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/oyarushe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/oyarushe">@oyarushe</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-apache-druid/2.0.1rc2" rel="nofollow">apache.druid: 2.0.1rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/17095" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17095/hovercard">Fix error in Druid connection attribute retrieval (#17095)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/potiuk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/potiuk">@potiuk</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-apache-hive/2.0.1rc2" rel="nofollow">apache.hive: 2.0.1rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/15515" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/15515/hovercard">Add python 3.9 (#15515)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/potiuk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/potiuk">@potiuk</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-apache-spark/2.0.0rc2" rel="nofollow">apache.spark: 2.0.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/15794" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/15794/hovercard">Make SparkSqlHook use Connection (#15794)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/uranusjr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/uranusjr">@uranusjr</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-apache-sqoop/2.0.1rc2" rel="nofollow">apache.sqoop: 2.0.1rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/16350" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16350/hovercard">Fix Minor Bugs in Apache Sqoop Hook and Operator (#16350)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ciancolo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ciancolo">@ciancolo</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-cncf-kubernetes/2.0.1rc2" rel="nofollow">cncf.kubernetes: 2.0.1rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/16930" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16930/hovercard">BugFix: Using <code class="notranslate">json</code> string in template_field fails with K8s Operators (#16930)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kaxil/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kaxil">@kaxil</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-dingding/2.0.0rc2" rel="nofollow">dingding: 2.0.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/16109" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16109/hovercard">Fix hooks extended from http hook (#16109)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/msumit/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/msumit">@msumit</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-discord/2.0.0rc2" rel="nofollow">discord: 2.0.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/16109" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16109/hovercard">Fix hooks extended from http hook (#16109)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/msumit/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/msumit">@msumit</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-docker/2.1.0rc2" rel="nofollow">docker: 2.1.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/16932" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16932/hovercard">Adds option to disable mounting temporary folder in DockerOperator (#16932)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/potiuk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/potiuk">@potiuk</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/17061" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17061/hovercard">[FIX] Docker provider - retry docker in docker (#17061)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/raphaelauv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/raphaelauv">@raphaelauv</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/13536" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/13536/hovercard">Fix string encoding in DockerOperator when using xcom / json (#13536)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/AlessioM/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/AlessioM">@AlessioM</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-google/5.0.0rc2" rel="nofollow">google: 5.0.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/issues/17111" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/17111/hovercard">apache-airflow-providers-google: google-ads-12.0.0 (#17111)</a>: @rv-irosario</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/17160" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17160/hovercard">Google Ads Hook: Support newer versions of the google-ads library (#17160)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/infused-kim/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/infused-kim">@infused-kim</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/16034" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16034/hovercard">Standardise dataproc location param to region (#16034)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Daniel-Han-Yang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Daniel-Han-Yang">@Daniel-Han-Yang</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/17162" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17162/hovercard">Adding custom Salesforce connection type + SalesforceToS3Operator updates (#17162)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/josh-fell/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/josh-fell">@josh-fell</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/16975" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16975/hovercard">Update alias for field_mask in Google Memmcache (#16975)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/potiuk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/potiuk">@potiuk</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/17075" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17075/hovercard">fix: get_cluster call project_id as self.project_id (#17075)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/iostreamdoth/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/iostreamdoth">@iostreamdoth</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/16991" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16991/hovercard">Fix GCStoGCS operator with replace diabled and existing destination object (#16991)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aslantar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aslantar">@aslantar</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-hashicorp/2.0.0rc2" rel="nofollow">hashicorp: 2.0.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/16407" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16407/hovercard">Sanitize end of line character when loading token from a file (vault) (#16407)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mmenarguezpear/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mmenarguezpear">@mmenarguezpear</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-http/2.0.0rc2" rel="nofollow">http: 2.0.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/15605" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/15605/hovercard">Update SimpleHttpOperator to take auth type object (#15605)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fredthomsen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fredthomsen">@fredthomsen</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/14701" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/14701/hovercard">HttpHook. Use request factory and respect defaults (#14701)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ngaranko/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ngaranko">@ngaranko</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-jenkins/2.0.1rc2" rel="nofollow">jenkins: 2.0.1rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/16963" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16963/hovercard">Fixed to check number key from jenkins response (#16963)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/namjals/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/namjals">@namjals</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-microsoft-azure/3.1.0rc2" rel="nofollow">microsoft.azure: 3.1.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/16628" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16628/hovercard">Add support for managed identity in WASB hook (#16628)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/malthe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/malthe">@malthe</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/16626" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16626/hovercard">WASB hook: reduce log messages for happy path (#16626)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/malthe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/malthe">@malthe</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/15634" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/15634/hovercard">Fix multiple issues in Microsoft AzureContainerInstancesOperator (#15634)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/BKronenbitter/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/BKronenbitter">@BKronenbitter</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-mysql/2.1.0rc2" rel="nofollow">mysql: 2.1.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/16914" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16914/hovercard">Added template_fields_renderers for MySQL Operator (#16914)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/oyarushe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/oyarushe">@oyarushe</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/16987" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16987/hovercard">Extended template_fields_renderers for MySQL provider (#16987)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/oyarushe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/oyarushe">@oyarushe</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/17080" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17080/hovercard">Parse JSON template parameters field for MySQL operator (#17080)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/oyarushe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/oyarushe">@oyarushe</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-odbc/2.0.0rc2" rel="nofollow">odbc: 2.0.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/15510" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/15510/hovercard">OdbcHook returns None. Related to #15016 issue. (#15510)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Goodkat/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Goodkat">@Goodkat</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/15772" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/15772/hovercard">Fix OdbcHook handling of port (#15772)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dstandish/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dstandish">@dstandish</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-opsgenie/2.0.0rc2" rel="nofollow">opsgenie: 2.0.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/16109" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16109/hovercard">Fix hooks extended from http hook (#16109)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/msumit/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/msumit">@msumit</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-oracle/2.0.0rc2" rel="nofollow">oracle: 2.0.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/15581" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/15581/hovercard">Add optional result handler to database hooks (#15581)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/malthe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/malthe">@malthe</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/15589" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/15589/hovercard">[Oracle] Add port to DSN (#15589)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/malthe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/malthe">@malthe</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/15632" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/15632/hovercard">Add link to Oracle Connection Docs (#15632)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sunkickr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sunkickr">@sunkickr</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-papermill/2.0.0rc2" rel="nofollow">papermill: 2.0.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/15302" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/15302/hovercard">Emit error on duplicated DAG ID (#15302)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/uranusjr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/uranusjr">@uranusjr</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-plexus/2.0.0rc2" rel="nofollow">plexus: 2.0.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/16026" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16026/hovercard">Removes arrow higher limits for plexus provider (#16026)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/potiuk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/potiuk">@potiuk</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-postgres/2.1.0rc2" rel="nofollow">postgres: 2.1.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/16521" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16521/hovercard">Add schema override in DbApiHook (#16521)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/LukeHong/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/LukeHong">@LukeHong</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-qubole/2.0.0rc2" rel="nofollow">qubole: 2.0.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/issues/15598" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/15598/hovercard">Qubole Hook Does Not Support 'include_headers' (#15598)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/levyitay/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/levyitay">@levyitay</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/15683" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/15683/hovercard">Feature qubole hook support headers (#15683)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/levyitay/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/levyitay">@levyitay</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/15615" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/15615/hovercard">Feature qubole hook support headers (#15615)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/levyitay/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/levyitay">@levyitay</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-samba/2.0.0rc2" rel="nofollow">samba: 2.0.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/16115" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16115/hovercard">Add support for extra parameters to samba client (#16115)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/malthe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/malthe">@malthe</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-salesforce/3.1.0rc2" rel="nofollow">salesforce: 3.1.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/17162" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17162/hovercard">Adding custom Salesforce connection type + SalesforceToS3Operator updates (#17162)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/josh-fell/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/josh-fell">@josh-fell</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-sftp/2.1.0rc2" rel="nofollow">sftp: 2.1.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/16314" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16314/hovercard">Add support for non-RSA type client host key (#16314)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/malthe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/malthe">@malthe</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-slack/4.0.0rc2" rel="nofollow">slack: 4.0.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/16109" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16109/hovercard">Fix hooks extended from http hook (#16109)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/msumit/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/msumit">@msumit</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-snowflake/2.1.0rc2" rel="nofollow">snowflake: 2.1.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/16735" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16735/hovercard">Adding: Snowflake Role in snowflake provider hook (#16735)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/saurasingh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/saurasingh">@saurasingh</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-ssh/2.1.0rc2" rel="nofollow">ssh: 2.1.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/16314" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16314/hovercard">Add support for non-RSA type client host key (#16314)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/malthe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/malthe">@malthe</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/15964" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/15964/hovercard">SSHHook: Using correct hostname for host_key when using non-default ssh port (#15964)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/freget/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/freget">@freget</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/16756" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16756/hovercard">Correctly load openssh-gerenated private keys in SSHHook (#16756)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ashb/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ashb">@ashb</a></li>
</ul>
<h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-tableau/2.1.0rc2" rel="nofollow">tableau: 2.1.0rc2</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/16365" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16365/hovercard">Allow disable SSL for TableauHook (#16365)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ciancolo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ciancolo">@ciancolo</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/16916" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/16916/hovercard">Deprecate Tableau personal token authentication (#16916)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/samgans/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/samgans">@samgans</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/17125" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17125/hovercard">Fix bool conversion Verify parameter in Tableau Hook (#17125)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ciancolo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ciancolo">@ciancolo</a></li>
</ul>
<h2 dir="auto">New Providers</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://pypi.org/project/apache-airflow-providers-apache-drill/1.0.0rc1" rel="nofollow">apache.drill: 1.0.0rc1</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dzamo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dzamo">@dzamo</a></li>
</ul> | <h3 dir="auto">Discussed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="4032514" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/discussions/23220" data-hovercard-type="discussion" data-hovercard-url="/apache/airflow/discussions/23220/hovercard" href="https://github.com/apache/airflow/discussions/23220">#23220</a></h3>
<div type="discussions-op-text" dir="auto">
<p dir="auto"><sup>Originally posted by <strong>yashk97</strong> April 25, 2022</sup><br>
Hi,</p>
<p dir="auto">My use case is in case multiple DAG Runs fail on some task (not the same one in all of them), I want to individually re-trigger each of these DAG Runs. Currently, I have to rely on the Airflow UI (attached screenshots) where I select the failed task and clear its state (along with the downstream tasks) to re-run from that point. While this works, it becomes tedious if the number of failed DAG runs is huge.</p>
<p dir="auto">I checked the REST API Documentation and came across the clear Task Instances API with the following URL: /api/v1/dags/{dag_id}/clearTaskInstances</p>
<p dir="auto">However, it filters task instances of the specified DAG in a given date range.</p>
<p dir="auto">I was wondering if, for a specified DAG Run, we can clear a task along with its downstream tasks irrespective of the states of the tasks or the DAG run through REST API.</p>
<p dir="auto">This will give us more granular control over re-running DAGs from the point of failure.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25115516/165099593-46ce449a-d303-49ee-9edb-fc5d524f4517.png"><img src="https://user-images.githubusercontent.com/25115516/165099593-46ce449a-d303-49ee-9edb-fc5d524f4517.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25115516/165099683-4ba7f438-3660-4a16-a66c-2017aee5042f.png"><img src="https://user-images.githubusercontent.com/25115516/165099683-4ba7f438-3660-4a16-a66c-2017aee5042f.png" alt="image" style="max-width: 100%;"></a></p>
</div> | 0 |
<p dir="auto">I am testing new native HTTP/2 server and got a problem while trying to handle requests asynchronously, I am just can't get the response. My code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const listener = Deno.listenTls({
port: 2022,
certFile: "./localhost.pem",
keyFile: "./localhost-key.pem",
alpnProtocols: ["h2", "http/1.1"],
});
for await (const conn of listener) {
handleConn(conn);
}
async function handleConn(conn: Deno.Conn) {
const httpConn = Deno.serveHttp(conn);
for await (const c of httpConn) {
handleHttpConn(c);
}
}
async function handleHttpConn(conn: Deno.RequestEvent) {
await Promise.resolve(); // pretending to do some looooong job
conn.respondWith(new Response(`Responding to ${conn.request.url}`));
}"><pre class="notranslate"><code class="notranslate">const listener = Deno.listenTls({
port: 2022,
certFile: "./localhost.pem",
keyFile: "./localhost-key.pem",
alpnProtocols: ["h2", "http/1.1"],
});
for await (const conn of listener) {
handleConn(conn);
}
async function handleConn(conn: Deno.Conn) {
const httpConn = Deno.serveHttp(conn);
for await (const c of httpConn) {
handleHttpConn(c);
}
}
async function handleHttpConn(conn: Deno.RequestEvent) {
await Promise.resolve(); // pretending to do some looooong job
conn.respondWith(new Response(`Responding to ${conn.request.url}`));
}
</code></pre></div>
<p dir="auto">When I am using simple non-async function everything works fine.</p> | <p dir="auto">Essentially the same as what's happening in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="728792966" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/8107" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/8107/hovercard" href="https://github.com/denoland/deno/issues/8107">#8107</a>, but when using <code class="notranslate">Deno.listenTls()</code>. I noticed that issue was closed but the problem is still persisting. Every once in a while, the server will output errors like,</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Sending fatal alert HandshakeFailure"><pre class="notranslate"><code class="notranslate">Sending fatal alert HandshakeFailure
</code></pre></div>
<p dir="auto">or</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Illegal SNI hostname received [49, 53, 57, 46, 56, 57, 46, 50, 50, 46, 50, 51, 57]
Sending fatal alert DecodeError"><pre class="notranslate"><code class="notranslate">Illegal SNI hostname received [49, 53, 57, 46, 56, 57, 46, 50, 50, 46, 50, 51, 57]
Sending fatal alert DecodeError
</code></pre></div>
<p dir="auto">Eventually after a while, the TLS listener will simply hang and will cease to receive new connections (the following loop will cease to progress),</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const listener = Deno.listenTls(/* ... */);
for await (const connection of listener)
/* this loop freezes */"><pre class="notranslate"><code class="notranslate">const listener = Deno.listenTls(/* ... */);
for await (const connection of listener)
/* this loop freezes */
</code></pre></div>
<p dir="auto">This doesn't happen with a non-TLS listener (using <code class="notranslate">Deno.listen()</code>). I belive <code class="notranslate">std/http</code> has a similar problem. Previously, this would cause the server to crash completely, so at least there was a workaround in putting the server in an infinite loop to restart whenever it crashes, but since it just causes the loop to hang, this is not really an option without resorting to something much more complicated.</p> | 1 |
<p dir="auto">When concatenating empty list with a list of INTEGERS result is an array of FLOATS. Since numpy 1.12 you can not use floats (result of such concatenation) for indexing without additional convertion from float to integer.</p>
<p dir="auto">Following example works in numpy <=1.11 and does not work in numpy >= 1.12:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="array = np.arange(3)
ind0 = []
ind1 = [1]
total_ind = np.concatenate([ind0, ind1])
print array[total_ind]"><pre class="notranslate"><code class="notranslate">array = np.arange(3)
ind0 = []
ind1 = [1]
total_ind = np.concatenate([ind0, ind1])
print array[total_ind]
</code></pre></div> | <p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/988" rel="nofollow">http://projects.scipy.org/numpy/ticket/988</a> on 2009-01-22 by trac user kelson, assigned to unknown.</em></p>
<p dir="auto">Howdy,</p>
<p dir="auto">After searching for this defect, perhaps nobody else has been bothered<br>
by this behaviour, but has anybody else noticed:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="concatenate ( [[1],[2],[3],[4]] ).dtype = int32
concatenate ( [[1],[2],[3],[]] ).dtype = int32
concatenate ( [[],[2],[3],[4]] ).dtype = float64"><pre class="notranslate"><code class="notranslate">concatenate ( [[1],[2],[3],[4]] ).dtype = int32
concatenate ( [[1],[2],[3],[]] ).dtype = int32
concatenate ( [[],[2],[3],[4]] ).dtype = float64
</code></pre></div>
<p dir="auto">I have a lot of old-style Numeric stuff that likes to concatenate lists<br>
of indices which then were used with take [which does not like floats]. So<br>
below [in theory] I attach my attempt at a patch so that empty items in the sequence are<br>
not used to influence the common type that is used by PyArray_ConvertToCommonType.</p>
<p dir="auto">Maybe it is of some value, or maybe I didn't do this in a kosher manner and<br>
someone else has an idea of where things should be rethought for this defect?</p>
<p dir="auto">Cheerio.</p> | 1 |
<p dir="auto">I originally reported this against a downstream project: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="58491949" data-permission-text="Title is private" data-url="https://github.com/hailocab/react-pure/issues/2" data-hovercard-type="issue" data-hovercard-url="/hailocab/react-pure/issues/2/hovercard" href="https://github.com/hailocab/react-pure/issues/2">hailocab/react-pure#2</a></p>
<p dir="auto">I think it's terrific that Babel doesn't just dump the entire external helpers file everywhere, or requires the whole thing to be used by every project, because that's effectively what traceur ends up doing and for small projects it ends up being quite bloated.</p>
<p dir="auto">However, I've noticed that a small set of helpers is being duplicated across every file in the aforementioned project. I've read about helpers here:<br>
<a href="https://babeljs.io/docs/usage/external-helpers/" rel="nofollow">https://babeljs.io/docs/usage/external-helpers/</a></p>
<p dir="auto">There doesn't seem to actually be a way to disable the helpers. The default behaviour seems to be:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="babel --external-helpers"><pre class="notranslate">babel --external-helpers</pre></div>
<p dir="auto">and the following doesn't change the behaviour:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="babel --no-external-helpers"><pre class="notranslate">babel --no-external-helpers</pre></div>
<p dir="auto">Is there a way to have Babel output a deduplicated centralised module (or modules) for the tailored set of helpers, and automatically have <code class="notranslate">require()</code> statements injected into the output where the duplicated content used to be?</p> | <h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>Current Behavior</strong><br>
When encountering a <code class="notranslate">declare</code> statement for an identifier that's already in scope, Babel throws up. The upstream TypeScript compiler understands this syntax.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ SyntaxError: /Users/ec/Sync/Code/excmd/src/interface.ts: Identifier 'Something'
has already been declared (3:14)
1 | import Something from './somewhere.js'
2 |
> 3 | declare class Something {
| ^
4 | // ...
5 | }
at Object.raise (/Users/ec/Sync/Code/excmd/node_modules/@babel/parser/lib/index.js:6325:17)
at TypeScriptScopeHandler.checkRedeclarationInScope (/Users/ec/Sync/Code/excmd/node_modules/@babel/parser/lib/index.js:3759:12)
at TypeScriptScopeHandler.declareName (/Users/ec/Sync/Code/excmd/node_modules/@babel/parser/lib/index.js:3725:12)
at TypeScriptScopeHandler.declareName (/Users/ec/Sync/Code/excmd/node_modules/@babel/parser/lib/index.js:3835:11)
at Object.checkLVal (/Users/ec/Sync/Code/excmd/node_modules/@babel/parser/lib/index.js:8021:22)
at Object.checkLVal (/Users/ec/Sync/Code/excmd/node_modules/@babel/parser/lib/index.js:5727:15)
at Object.parseClassId (/Users/ec/Sync/Code/excmd/node_modules/@babel/parser/lib/index.js:10855:14)
at Object.parseClassId (/Users/ec/Sync/Code/excmd/node_modules/@babel/parser/lib/index.js:5508:11)
at Object.parseClass (/Users/ec/Sync/Code/excmd/node_modules/@babel/parser/lib/index.js:10572:10)
at Object.tsTryParseDeclare (/Users/ec/Sync/Code/excmd/node_modules/@babel/parser/lib/index.js:4984:21)
pos: 1216,
loc: Position { line: 3, column: 14 },
code: 'BABEL_PARSE_ERROR' }"><pre class="notranslate"><code class="notranslate">{ SyntaxError: /Users/ec/Sync/Code/excmd/src/interface.ts: Identifier 'Something'
has already been declared (3:14)
1 | import Something from './somewhere.js'
2 |
> 3 | declare class Something {
| ^
4 | // ...
5 | }
at Object.raise (/Users/ec/Sync/Code/excmd/node_modules/@babel/parser/lib/index.js:6325:17)
at TypeScriptScopeHandler.checkRedeclarationInScope (/Users/ec/Sync/Code/excmd/node_modules/@babel/parser/lib/index.js:3759:12)
at TypeScriptScopeHandler.declareName (/Users/ec/Sync/Code/excmd/node_modules/@babel/parser/lib/index.js:3725:12)
at TypeScriptScopeHandler.declareName (/Users/ec/Sync/Code/excmd/node_modules/@babel/parser/lib/index.js:3835:11)
at Object.checkLVal (/Users/ec/Sync/Code/excmd/node_modules/@babel/parser/lib/index.js:8021:22)
at Object.checkLVal (/Users/ec/Sync/Code/excmd/node_modules/@babel/parser/lib/index.js:5727:15)
at Object.parseClassId (/Users/ec/Sync/Code/excmd/node_modules/@babel/parser/lib/index.js:10855:14)
at Object.parseClassId (/Users/ec/Sync/Code/excmd/node_modules/@babel/parser/lib/index.js:5508:11)
at Object.parseClass (/Users/ec/Sync/Code/excmd/node_modules/@babel/parser/lib/index.js:10572:10)
at Object.tsTryParseDeclare (/Users/ec/Sync/Code/excmd/node_modules/@babel/parser/lib/index.js:4984:21)
pos: 1216,
loc: Position { line: 3, column: 14 },
code: 'BABEL_PARSE_ERROR' }
</code></pre></div>
<p dir="auto"><strong>Input Code</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import Something from './somewhere.js'
declare class Something {
// ...
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-smi">Something</span> <span class="pl-k">from</span> <span class="pl-s">'./somewhere.js'</span>
<span class="pl-k">declare</span> <span class="pl-k">class</span> <span class="pl-smi">Something</span> <span class="pl-kos">{</span>
<span class="pl-c">// ...</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Expected behavior/code</strong><br>
As with <code class="notranslate">tsc</code>, this should have no effect on the produced code; these declarations are essentially "inline .d.ts" for non-TypeScript imports. To satisfy the current Babel, I guess I'll need to extract these declarations into additional <code class="notranslate">.d.ts</code> files, and check those into my source-control; but as I only have a single TypeScript file in my codebase, I'd <em>really</em> prefer to keep the typings for other modules centralized to that single TypeScript file!</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="// .babelrc
{
"presets": ["@babel/env", "@babel/preset-typescript"]
}
// CLI invocation
babel --verbose src --extensions '.ts,.js' --ignore '**/*.bs.js' --ignore '**/*.d.ts' --copy-files --out-dir lib"><pre class="notranslate"><span class="pl-c">// .babelrc</span>
<span class="pl-kos">{</span>
<span class="pl-s">"presets"</span>: <span class="pl-kos">[</span><span class="pl-s">"@babel/env"</span><span class="pl-kos">,</span> <span class="pl-s">"@babel/preset-typescript"</span><span class="pl-kos">]</span>
<span class="pl-kos">}</span>
<span class="pl-c">// CLI invocation</span>
<span class="pl-s1">babel</span> <span class="pl-c1">--</span><span class="pl-s1">verbose</span> <span class="pl-s1">src</span> <span class="pl-c1">--</span><span class="pl-s1">extensions</span> <span class="pl-s">'.ts,.js'</span> <span class="pl-c1">--</span><span class="pl-s1">ignore</span> <span class="pl-s">'**/*.bs.js'</span> <span class="pl-c1">--</span><span class="pl-s1">ignore</span> <span class="pl-s">'**/*.d.ts'</span> <span class="pl-c1">--</span><span class="pl-s1">copy</span><span class="pl-c1">-</span><span class="pl-s1">files</span> <span class="pl-c1">--</span><span class="pl-s1">out</span><span class="pl-c1">-</span><span class="pl-s1">dir</span> <span class="pl-s1">lib</span></pre></div>
<p dir="auto"><strong>Environment</strong></p>
<ul dir="auto">
<li>Babel version(s): <strong>7.5.5</strong> (@babel/core 7.5.5)</li>
<li>Node/npm version: <strong>v10.12.0</strong></li>
<li>OS: macOS <strong>10.14.5</strong></li>
<li>How you are using Babel: <code class="notranslate">cli</code></li>
</ul>
<p dir="auto"><strong>Additional context/Screenshots</strong><br>
The above example is somewhat massaged / simplified from my actual codebase I can't even get the web-playground (with "TypeScript" enabled!) to parse a <em>simple</em> <code class="notranslate">declare class Blah</code>, but I would have included a working example if I could.</p> | 0 |
<p dir="auto">First of all, kudos for what sounds like a great project.<br>
Using exclusively typescript for years, I'm quite excited of being able to use Deno in the future.</p>
<p dir="auto">Now, I just don't get how it is possible to develop apps at a meaningful scale without a proper module system. I had already shared my concerns once on discord but was not expecting that a 1.0 would be released without any meaningful work in this area.</p>
<p dir="auto">Because it sounds like Deno approach seems to be influenced by Go on this matter, let me copy and paste an extract from the Go documentation:</p>
<blockquote>
<p dir="auto">Eight years ago, the Go team introduced goinstall (which led to go get) and with it the decentralized, URL-like import paths that Go developers are familiar with today. After we released goinstall, one of the first questions people asked was how to incorporate version information. We admitted we didn’t know. For a long time, we believed that the problem of package versioning would be best solved by an add-on tool, and we encouraged people to create one. The Go community created many tools with different approaches. Each one helped us all better understand the problem, but by mid-2016 it was clear that there were now too many solutions. We needed to adopt a single, official tool.</p>
</blockquote>
<p dir="auto">What's the point of going into the exact same pain points. Why not learning from this experience and avoiding a sure mess to come?</p>
<p dir="auto">At the very least a proper module system should make it possible to handle versioning and dependency management.</p>
<p dir="auto">Now is a central repository important or not? Honestly, I'm not really fond of everybody hosts it's publicly available modules in its own git repository because, as a developer, either you are not able to refactor your repository organisation or you will break module installs for everybody relying on your repository. Alternatively, if you do not want to face this dilemma, you will come up with a specific github repository where you publish your modules in order to mimic a "kind-of" group/dev/company central repository.<br>
I tend to believe that a central repository has its use for public modules discoverability and repeatable installation paths but I have no religion on the subject. In the same time, the ability to import modules outside of a central repository (especially when private modules are concerned) is a must have as well.</p>
<p dir="auto">I'm really interested to read how you guys are seing the development workflow of a reasonably sized app that depend on publicly available modules + internally developed modules with the current Deno module approach.</p> | <p dir="auto">I want to get started using Deno but either I misunderstood some core concepts or this really an issue. From what I understand Deno loads all modules on first import and then caches them indefinitely (until you force a reload). My question now is, without some kind of package manager, how can Deno insure quick security updates in modules. Is this even possible without some kind of central authority?</p>
<p dir="auto">Maybe Deno should think about the option of providing a package information tool (customizable source, but by default deno.land?). Also some kind of option to search for packages would be great. With npm I can just search by keywords and will pretty quickly find what I need.</p> | 1 |
<p dir="auto">I have set the option "spring.jpa.properties.hibernate.hbm2ddl.auto=<strong>update</strong>".</p>
<p dir="auto">My usage is compile('io.shardingsphere:sharding-jdbc-spring-boot-starter:<strong>3.1.0</strong>').</p>
<p dir="auto">It's OK when I run the springboot application the first time. But it will warn when you restart the app again. The tables are OK, and only the indexes will be created again, which is not as expected.<br>
Here is the warn logs below.</p>
<p dir="auto">2019-01-04 15:57:45.090 WARN 19228 --- [main] o.h.t.s.i.ExceptionHandlerLoggedImpl : GenerationTarget encountered exception accepting command : Error executing DDL "create index block_height on activity_activity (block_height)" via JDBC Statement</p>
<p dir="auto">org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL "create index block_height on activity_activity (block_height)" via JDBC Statement<br>
at org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase.accept(GenerationTargetToDatabase.java:67) ~[hibernate-core-5.3.7.Final.jar:5.3.7.Final]<br>
at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.applySqlString(AbstractSchemaMigrator.java:559) [hibernate-core-5.3.7.Final.jar:5.3.7.Final]<br>
at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.applySqlStrings(AbstractSchemaMigrator.java:504) [hibernate-core-5.3.7.Final.jar:5.3.7.Final]<br>
at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.applyIndexes(AbstractSchemaMigrator.java:331) [hibernate-core-5.3.7.Final.jar:5.3.7.Final]<br>
at org.hibernate.tool.schema.internal.GroupedSchemaMigratorImpl.performTablesMigration(GroupedSchemaMigratorImpl.java:84) [hibernate-core-5.3.7.Final.jar:5.3.7.Final]<br>
at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.performMigration(AbstractSchemaMigrator.java:207) [hibernate-core-5.3.7.Final.jar:5.3.7.Final]<br>
at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.doMigration(AbstractSchemaMigrator.java:114) [hibernate-core-5.3.7.Final.jar:5.3.7.Final]<br>
at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:183) [hibernate-core-5.3.7.Final.jar:5.3.7.Final]<br>
at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:72) [hibernate-core-5.3.7.Final.jar:5.3.7.Final]<br>
at org.hibernate.internal.SessionFactoryImpl.(SessionFactoryImpl.java:310) [hibernate-core-5.3.7.Final.jar:5.3.7.Final]<br>
at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:467) [hibernate-core-5.3.7.Final.jar:5.3.7.Final]<br>
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:939) [hibernate-core-5.3.7.Final.jar:5.3.7.Final]<br>
at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:57) [spring-orm-5.1.2.RELEASE.jar:5.1.2.RELEASE]<br>
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) [spring-orm-5.1.2.RELEASE.jar:5.1.2.RELEASE]<br>
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:390) [spring-orm-5.1.2.RELEASE.jar:5.1.2.RELEASE]<br>
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:377) [spring-orm-5.1.2.RELEASE.jar:5.1.2.RELEASE]<br>
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) [spring-orm-5.1.2.RELEASE.jar:5.1.2.RELEASE]<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1804) [spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1741) [spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:576) [spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498) [spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]<br>
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) [spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]<br>
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]<br>
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) [spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]<br>
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) [spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]<br>
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1083) ~[spring-context-5.1.2.RELEASE.jar:5.1.2.RELEASE]<br>
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:853) ~[spring-context-5.1.2.RELEASE.jar:5.1.2.RELEASE]<br>
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546) ~[spring-context-5.1.2.RELEASE.jar:5.1.2.RELEASE]<br>
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.1.0.RELEASE.jar:2.1.0.RELEASE]<br>
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) ~[spring-boot-2.1.0.RELEASE.jar:2.1.0.RELEASE]<br>
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.1.0.RELEASE.jar:2.1.0.RELEASE]<br>
at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) ~[spring-boot-2.1.0.RELEASE.jar:2.1.0.RELEASE]<br>
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) ~[spring-boot-2.1.0.RELEASE.jar:2.1.0.RELEASE]<br>
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) ~[spring-boot-2.1.0.RELEASE.jar:2.1.0.RELEASE]<br>
at com.webank.bcosbee.BcosBeeApplication.main(BcosBeeApplication.java:23) ~[main/:na]<br>
Caused by: java.sql.SQLSyntaxErrorException: Duplicate key name 'block_height_activity_activity'<br>
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120) ~[mysql-connector-java-8.0.13.jar:8.0.13]<br>
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97) ~[mysql-connector-java-8.0.13.jar:8.0.13]<br>
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) ~[mysql-connector-java-8.0.13.jar:8.0.13]<br>
at com.mysql.cj.jdbc.StatementImpl.executeInternal(StatementImpl.java:782) ~[mysql-connector-java-8.0.13.jar:8.0.13]<br>
at com.mysql.cj.jdbc.StatementImpl.execute(StatementImpl.java:666) ~[mysql-connector-java-8.0.13.jar:8.0.13]<br>
at com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:95) ~[HikariCP-3.2.0.jar:na]<br>
at com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java) ~[HikariCP-3.2.0.jar:na]<br>
at io.shardingsphere.shardingjdbc.executor.StatementExecutor$8.execute(StatementExecutor.java:205) ~[sharding-jdbc-core-3.1.0.jar:na]<br>
at io.shardingsphere.shardingjdbc.executor.StatementExecutor$12.executeSQL(StatementExecutor.java:267) ~[sharding-jdbc-core-3.1.0.jar:na]<br>
at io.shardingsphere.shardingjdbc.executor.StatementExecutor$12.executeSQL(StatementExecutor.java:263) ~[sharding-jdbc-core-3.1.0.jar:na]<br>
at io.shardingsphere.core.executor.sql.execute.SQLExecuteCallback.execute0(SQLExecuteCallback.java:72) ~[sharding-core-3.1.0.jar:na]<br>
at io.shardingsphere.core.executor.sql.execute.SQLExecuteCallback.execute(SQLExecuteCallback.java:61) ~[sharding-core-3.1.0.jar:na]<br>
at io.shardingsphere.core.executor.ShardingExecuteEngine.syncGroupExecute(ShardingExecuteEngine.java:175) ~[sharding-core-3.1.0.jar:na]<br>
at io.shardingsphere.core.executor.ShardingExecuteEngine.groupExecute(ShardingExecuteEngine.java:152) ~[sharding-core-3.1.0.jar:na]<br>
at io.shardingsphere.core.executor.sql.execute.SQLExecuteTemplate.executeGroup(SQLExecuteTemplate.java:71) ~[sharding-core-3.1.0.jar:na]<br>
at io.shardingsphere.core.executor.sql.execute.SQLExecuteTemplate.executeGroup(SQLExecuteTemplate.java:54) ~[sharding-core-3.1.0.jar:na]<br>
at io.shardingsphere.shardingjdbc.executor.AbstractStatementExecutor.executeCallback(AbstractStatementExecutor.java:114) ~[sharding-jdbc-core-3.1.0.jar:na]<br>
at io.shardingsphere.shardingjdbc.executor.StatementExecutor.execute(StatementExecutor.java:270) ~[sharding-jdbc-core-3.1.0.jar:na]<br>
at io.shardingsphere.shardingjdbc.executor.StatementExecutor.execute(StatementExecutor.java:201) ~[sharding-jdbc-core-3.1.0.jar:na]<br>
at io.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingStatement.execute(ShardingStatement.java:161) ~[sharding-jdbc-core-3.1.0.jar:na]<br>
at org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase.accept(GenerationTargetToDatabase.java:54) ~[hibernate-core-5.3.7.Final.jar:5.3.7.Final]<br>
... 34 common frames omitted</p> | <h2 dir="auto">Bug Report</h2>
<p dir="auto">ShardingSphere version is 4.0.0-RC2.<br>
my project maven pom have import sharding-jdbc-core and sharding-jdbc-spring-boot-starter.<br>
This is my shard config</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="spring.shardingsphere.enabled=true
spring.shardingsphere.datasource.names=mscheck-ha,mscheck-sd
spring.shardingsphere.datasource.mscheck-ha.type=com.zaxxer.hikari.HikariDataSource
spring.shardingsphere.datasource.mscheck-ha.driver-class-name=com.mysql.cj.jdbc.Driver
spring.shardingsphere.datasource.mscheck-ha.jdbc-url=jdbc:mysql://localhost:3306/mysqldb1?useUnicode=true&serverTimezone=GMT%2B8&characterEncoding=utf-8&nullCatalogMeansCurrent=false
spring.shardingsphere.datasource.mscheck-ha.username=root
spring.shardingsphere.datasource.mscheck-ha.password=123456
spring.shardingsphere.datasource.mscheck-ha.schema=mysqldb1
spring.shardingsphere.datasource.mscheck-sd.type=com.zaxxer.hikari.HikariDataSource
spring.shardingsphere.datasource.mscheck-sd.driver-class-name=com.mysql.cj.jdbc.Driver
spring.shardingsphere.datasource.mscheck-sd.jdbc-url=jdbc:mysql://localhost:13306/mysqldb2?useUnicode=true&serverTimezone=GMT%2B8&characterEncoding=utf-8&nullCatalogMeansCurrent=false
spring.shardingsphere.datasource.mscheck-sd.username=root
spring.shardingsphere.datasource.mscheck-sd.password=123456
spring.shardingsphere.datasource.mscheck-sd.schema=mysqldb2
spring.shardingsphere.sharding.default-data-source-name=mscheck-ha`
# 默认数据策略hint,默认分片算法使用自定义的ProvinceHintShardingAlgorithm
spring.shardingsphere.sharding.default-database-strategy.hint.algorithm-class-name=com.xxxx.yyy.config.shard.ProvinceHintShardingAlgorithm
spring.shardingsphere.props.sql.show=true"><pre class="notranslate"><code class="notranslate">spring.shardingsphere.enabled=true
spring.shardingsphere.datasource.names=mscheck-ha,mscheck-sd
spring.shardingsphere.datasource.mscheck-ha.type=com.zaxxer.hikari.HikariDataSource
spring.shardingsphere.datasource.mscheck-ha.driver-class-name=com.mysql.cj.jdbc.Driver
spring.shardingsphere.datasource.mscheck-ha.jdbc-url=jdbc:mysql://localhost:3306/mysqldb1?useUnicode=true&serverTimezone=GMT%2B8&characterEncoding=utf-8&nullCatalogMeansCurrent=false
spring.shardingsphere.datasource.mscheck-ha.username=root
spring.shardingsphere.datasource.mscheck-ha.password=123456
spring.shardingsphere.datasource.mscheck-ha.schema=mysqldb1
spring.shardingsphere.datasource.mscheck-sd.type=com.zaxxer.hikari.HikariDataSource
spring.shardingsphere.datasource.mscheck-sd.driver-class-name=com.mysql.cj.jdbc.Driver
spring.shardingsphere.datasource.mscheck-sd.jdbc-url=jdbc:mysql://localhost:13306/mysqldb2?useUnicode=true&serverTimezone=GMT%2B8&characterEncoding=utf-8&nullCatalogMeansCurrent=false
spring.shardingsphere.datasource.mscheck-sd.username=root
spring.shardingsphere.datasource.mscheck-sd.password=123456
spring.shardingsphere.datasource.mscheck-sd.schema=mysqldb2
spring.shardingsphere.sharding.default-data-source-name=mscheck-ha`
# 默认数据策略hint,默认分片算法使用自定义的ProvinceHintShardingAlgorithm
spring.shardingsphere.sharding.default-database-strategy.hint.algorithm-class-name=com.xxxx.yyy.config.shard.ProvinceHintShardingAlgorithm
spring.shardingsphere.props.sql.show=true
</code></pre></div>
<p dir="auto">My Sharding Algorithm Class:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public class ProvinceHintShardingAlgorithm implements HintShardingAlgorithm<String> {
private static final Logger LOGGER = LoggerFactory.getLogger(ProvinceHintShardingAlgorithm.class);
@Override
public Collection<String> doSharding(Collection<String> availableTargetNames, HintShardingValue<String> shardingValue) {
List<String> result = new ArrayList<>();
for (String value : shardingValue.getValues()) {
if(availableTargetNames.contains(value)){
result.add(value);
return result;
}
}
//return null;
if(result.isEmpty()){
result.add("mscheck-ha");
}
return result;
}
}"><pre class="notranslate"><code class="notranslate">public class ProvinceHintShardingAlgorithm implements HintShardingAlgorithm<String> {
private static final Logger LOGGER = LoggerFactory.getLogger(ProvinceHintShardingAlgorithm.class);
@Override
public Collection<String> doSharding(Collection<String> availableTargetNames, HintShardingValue<String> shardingValue) {
List<String> result = new ArrayList<>();
for (String value : shardingValue.getValues()) {
if(availableTargetNames.contains(value)){
result.add(value);
return result;
}
}
//return null;
if(result.isEmpty()){
result.add("mscheck-ha");
}
return result;
}
}
</code></pre></div>
<p dir="auto">Where shardingjdbc execute sql like this <code class="notranslate">select T.* from ACT_RU_TASK T where T.PROC_INST_ID_ = ?</code><br>
shardingjdbc will throw a error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="line 1:7 mismatched input 'T' expecting {'!', '~', '+', '-', '*', '.', '(', '{', '?', '@', TRUNCATE, POSITION, VIEW, DISTINCT, CASE, CAST, TRIM, SUBSTRING, IF, NOT, NULL, TRUE, FALSE, EXISTS, ALL, ANY, OFFSET, BEGIN, COMMIT, ROLLBACK, SAVEPOINT, BOOLEAN, CHAR, INTERVAL, DATE, TIME, TIMESTAMP, LOCALTIME, LOCALTIMESTAMP, YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MICROSECOND, MAX, MIN, SUM, COUNT, AVG, CURRENT, ENABLE, DISABLE, INSTANCE, DO, DEFINER, CASCADED, LOCAL, CLOSE, OPEN, NEXT, NAME, TABLES, TABLESPACE, COLUMNS, FIELDS, INDEXES, STATUS, REPLACE, MODIFY, DISTINCTROW, VALUE, DUPLICATE, FIRST, LAST, AFTER, OJ, ACCOUNT, USER, ROLE, START, TRANSACTION, ROW, WITHOUT, BINARY, ESCAPE, SUBPARTITION, STORAGE, SUPER, SUBSTR, TEMPORARY, THAN, UNBOUNDED, UPGRADE, VALIDATION, ROLLUP, SOUNDS, UNKNOWN, OFF, ALWAYS, COMMITTED, LEVEL, NO, PASSWORD, PRIVILEGES, ACTION, ALGORITHM, AUTOCOMMIT, BTREE, CHAIN, CHARSET, CHECKSUM, CIPHER, CLIENT, COALESCE, COMMENT, COMPACT, COMPRESSED, COMPRESSION, CONNECTION, CONSISTENT, CONVERT, DATA, DISCARD, DISK, ENCRYPTION, END, ENGINE, EVENT, EXCHANGE, EXECUTE, EXTRACT, FILE, FIXED, FOLLOWING, GLOBAL, HASH, IMPORT_, LESS, MATCH, MEMORY, NONE, NOW, PARSER, PARTIAL, PARTITIONING, PERSIST, PRECEDING, PROCESS, PROXY, QUICK, REBUILD, REDUNDANT, RELOAD, REMOVE, REORGANIZE, REPAIR, REVERSE, SESSION, SHUTDOWN, SIMPLE, SLAVE, VISIBLE, INVISIBLE, ENFORCED, AGAINST, LANGUAGE, MODE, QUERY, EXTENDED, EXPANSION, VARIANCE, MAX_ROWS, MIN_ROWS, HIGH_PRIORITY, SQL_BIG_RESULT, SQL_BUFFER_RESULT, SQL_CACHE, SQL_CALC_FOUND_ROWS, SQL_NO_CACHE, SQL_SMALL_RESULT, STATS_AUTO_RECALC, STATS_PERSISTENT, STATS_SAMPLE_PAGES, ROW_FORMAT, STRAIGHT_JOIN, WEIGHT_STRING, COLUMN_FORMAT, INSERT_METHOD, KEY_BLOCK_SIZE, PACK_KEYS, PERSIST_ONLY, BIT_AND, BIT_OR, BIT_XOR, GROUP_CONCAT, JSON_ARRAYAGG, JSON_OBJECTAGG, STD, STDDEV, STDDEV_POP, STDDEV_SAMP, VAR_POP, VAR_SAMP, AUTO_INCREMENT, AVG_ROW_LENGTH, DELAY_KEY_WRITE, CURRENT_TIMESTAMP, ROTATE, MASTER, BINLOG, ERROR, SCHEDULE, COMPLETION, EVERY, HOST, SOCKET, PORT, SERVER, WRAPPER, OPTIONS, OWNER, RETURNS, CONTAINS, SECURITY, INVOKER, TEMPTABLE, MERGE, UNDEFINED, DATAFILE, FILE_BLOCK_SIZE, EXTENT_SIZE, INITIAL_SIZE, AUTOEXTEND_SIZE, MAX_SIZE, NODEGROUP, WAIT, LOGFILE, UNDOFILE, UNDO_BUFFER_SIZE, REDO_BUFFER_SIZE, HANDLER, PREV, ORGANIZATION, DEFINITION, DESCRIPTION, REFERENCE, FOLLOWS, PRECEDES, IMPORT, CONCURRENT, XML, DUMPFILE, SHARE, IDENTIFIER_, STRING_, NUMBER_, HEX_DIGIT_, BIT_NUM_}
2019-09-28 15:55:52 | ERROR | http-nio-8090-exec-2 | org.flowable.common.engine.impl.interceptor.CommandContext | Error while closing command context
org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: java.lang.IllegalStateException
### The error may exist in org/flowable/task/service/db/mapping/entity/Task.xml
### The error may involve org.flowable.task.service.impl.persistence.entity.TaskEntityImpl.selectTasksByProcessInstanceId-Inline
### The error occurred while setting parameters
### SQL: select T.* from ACT_RU_TASK T where T.PROC_INST_ID_ = ?
### Cause: java.lang.IllegalStateException
at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:149)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)
at org.flowable.common.engine.impl.db.DbSqlSession.selectListWithRawParameter(DbSqlSession.java:202)
at org.flowable.common.engine.impl.db.DbSqlSession.selectListWithRawParameter(DbSqlSession.java:196)
at org.flowable.common.engine.impl.db.DbSqlSession.selectList(DbSqlSession.java:157)
at org.flowable.common.engine.impl.db.DbSqlSession.selectList(DbSqlSession.java:162)
at org.flowable.common.engine.impl.db.DbSqlSession.selectList(DbSqlSession.java:142)
at org.flowable.common.engine.impl.db.AbstractDataManager.getList(AbstractDataManager.java:149)
at org.flowable.task.service.impl.persistence.entity.data.impl.MybatisTaskDataManager.findTasksByProcessInstanceId(MybatisTaskDataManager.java:79)
at org.flowable.task.service.impl.persistence.entity.TaskEntityManagerImpl.findTasksByProcessInstanceId(TaskEntityManagerImpl.java:166)
at org.flowable.task.service.impl.TaskServiceImpl.findTasksByProcessInstanceId(TaskServiceImpl.java:48)
at org.flowable.engine.impl.util.TaskHelper.deleteTasksByProcessInstanceId(TaskHelper.java:411)
at org.flowable.engine.impl.persistence.entity.ExecutionEntityManagerImpl.deleteProcessInstanceCascade(ExecutionEntityManagerImpl.java:482)
at org.flowable.engine.impl.persistence.entity.ExecutionEntityManagerImpl.deleteProcessInstance(ExecutionEntityManagerImpl.java:423)
at org.flowable.engine.impl.cmd.DeleteProcessInstanceCmd.execute(DeleteProcessInstanceCmd.java:59)
at org.flowable.engine.impl.cmd.DeleteProcessInstanceCmd.execute(DeleteProcessInstanceCmd.java:30)
at org.flowable.engine.impl.interceptor.CommandInvoker$1.run(CommandInvoker.java:51)
at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:93)
at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:72)
at org.flowable.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:56)
at org.flowable.engine.impl.interceptor.BpmnOverrideContextInterceptor.execute(BpmnOverrideContextInterceptor.java:25)
at org.flowable.common.engine.impl.interceptor.TransactionContextInterceptor.execute(TransactionContextInterceptor.java:53)
at org.flowable.common.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:72)
at org.flowable.common.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:51)
at org.flowable.common.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:30)
at org.flowable.common.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:56)
at org.flowable.common.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:51)
at org.flowable.engine.impl.RuntimeServiceImpl.deleteProcessInstance(RuntimeServiceImpl.java:184)
at com.cmiot.mscheck.workorder.service.impl.FlowServiceImpl.deleteFlowByInstanceId(FlowServiceImpl.java:401)
at com.cmiot.mscheck.workorder.service.impl.FlowServiceImpl.deleteFlowByBusinessKey(FlowServiceImpl.java:395)
at com.cmiot.mscheck.workorder.service.impl.FlowServiceImpl.deleteFlow(FlowServiceImpl.java:381)
at com.cmiot.mscheck.workorder.service.impl.FlowServiceImpl$$FastClassBySpringCGLIB$$743b1de6.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:295)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)
at com.cmiot.mscheck.workorder.service.impl.FlowServiceImpl$$EnhancerBySpringCGLIB$$3b141cc6.deleteFlow(<generated>)
at com.cmiot.mscheck.workorder.rest.controller.ProcessRestImpl.deleteFlow(ProcessRestImpl.java:126)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1039)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:908)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalStateException: null
at com.google.common.base.Preconditions.checkState(Preconditions.java:492)
at org.apache.shardingsphere.core.parse.core.extractor.util.ExtractorUtils.getFirstChildNode(ExtractorUtils.java:48)
at org.apache.shardingsphere.core.parse.core.extractor.impl.dml.select.SelectItemsExtractor.extract(SelectItemsExtractor.java:54)
at org.apache.shardingsphere.core.parse.core.extractor.SQLSegmentsExtractorEngine.extract(SQLSegmentsExtractorEngine.java:47)
at org.apache.shardingsphere.core.parse.core.SQLParseKernel.parse(SQLParseKernel.java:62)
at org.apache.shardingsphere.core.route.router.sharding.DatabaseHintSQLRouter.parse(DatabaseHintSQLRouter.java:50)
at org.apache.shardingsphere.core.route.PreparedStatementRoutingEngine.route(PreparedStatementRoutingEngine.java:64)
at org.apache.shardingsphere.core.PreparedQueryShardingEngine.route(PreparedQueryShardingEngine.java:60)
at org.apache.shardingsphere.core.BaseShardingEngine.executeRoute(BaseShardingEngine.java:86)
at org.apache.shardingsphere.core.BaseShardingEngine.shard(BaseShardingEngine.java:70)
at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.shard(ShardingPreparedStatement.java:224)
at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.execute(ShardingPreparedStatement.java:170)
at org.apache.ibatis.executor.statement.PreparedStatementHandler.query(PreparedStatementHandler.java:64)
at org.apache.ibatis.executor.statement.RoutingStatementHandler.query(RoutingStatementHandler.java:79)
at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:63)
at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:324)
at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)
at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109)
at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:83)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147)
... 94 common frames omitted"><pre class="notranslate"><code class="notranslate">line 1:7 mismatched input 'T' expecting {'!', '~', '+', '-', '*', '.', '(', '{', '?', '@', TRUNCATE, POSITION, VIEW, DISTINCT, CASE, CAST, TRIM, SUBSTRING, IF, NOT, NULL, TRUE, FALSE, EXISTS, ALL, ANY, OFFSET, BEGIN, COMMIT, ROLLBACK, SAVEPOINT, BOOLEAN, CHAR, INTERVAL, DATE, TIME, TIMESTAMP, LOCALTIME, LOCALTIMESTAMP, YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MICROSECOND, MAX, MIN, SUM, COUNT, AVG, CURRENT, ENABLE, DISABLE, INSTANCE, DO, DEFINER, CASCADED, LOCAL, CLOSE, OPEN, NEXT, NAME, TABLES, TABLESPACE, COLUMNS, FIELDS, INDEXES, STATUS, REPLACE, MODIFY, DISTINCTROW, VALUE, DUPLICATE, FIRST, LAST, AFTER, OJ, ACCOUNT, USER, ROLE, START, TRANSACTION, ROW, WITHOUT, BINARY, ESCAPE, SUBPARTITION, STORAGE, SUPER, SUBSTR, TEMPORARY, THAN, UNBOUNDED, UPGRADE, VALIDATION, ROLLUP, SOUNDS, UNKNOWN, OFF, ALWAYS, COMMITTED, LEVEL, NO, PASSWORD, PRIVILEGES, ACTION, ALGORITHM, AUTOCOMMIT, BTREE, CHAIN, CHARSET, CHECKSUM, CIPHER, CLIENT, COALESCE, COMMENT, COMPACT, COMPRESSED, COMPRESSION, CONNECTION, CONSISTENT, CONVERT, DATA, DISCARD, DISK, ENCRYPTION, END, ENGINE, EVENT, EXCHANGE, EXECUTE, EXTRACT, FILE, FIXED, FOLLOWING, GLOBAL, HASH, IMPORT_, LESS, MATCH, MEMORY, NONE, NOW, PARSER, PARTIAL, PARTITIONING, PERSIST, PRECEDING, PROCESS, PROXY, QUICK, REBUILD, REDUNDANT, RELOAD, REMOVE, REORGANIZE, REPAIR, REVERSE, SESSION, SHUTDOWN, SIMPLE, SLAVE, VISIBLE, INVISIBLE, ENFORCED, AGAINST, LANGUAGE, MODE, QUERY, EXTENDED, EXPANSION, VARIANCE, MAX_ROWS, MIN_ROWS, HIGH_PRIORITY, SQL_BIG_RESULT, SQL_BUFFER_RESULT, SQL_CACHE, SQL_CALC_FOUND_ROWS, SQL_NO_CACHE, SQL_SMALL_RESULT, STATS_AUTO_RECALC, STATS_PERSISTENT, STATS_SAMPLE_PAGES, ROW_FORMAT, STRAIGHT_JOIN, WEIGHT_STRING, COLUMN_FORMAT, INSERT_METHOD, KEY_BLOCK_SIZE, PACK_KEYS, PERSIST_ONLY, BIT_AND, BIT_OR, BIT_XOR, GROUP_CONCAT, JSON_ARRAYAGG, JSON_OBJECTAGG, STD, STDDEV, STDDEV_POP, STDDEV_SAMP, VAR_POP, VAR_SAMP, AUTO_INCREMENT, AVG_ROW_LENGTH, DELAY_KEY_WRITE, CURRENT_TIMESTAMP, ROTATE, MASTER, BINLOG, ERROR, SCHEDULE, COMPLETION, EVERY, HOST, SOCKET, PORT, SERVER, WRAPPER, OPTIONS, OWNER, RETURNS, CONTAINS, SECURITY, INVOKER, TEMPTABLE, MERGE, UNDEFINED, DATAFILE, FILE_BLOCK_SIZE, EXTENT_SIZE, INITIAL_SIZE, AUTOEXTEND_SIZE, MAX_SIZE, NODEGROUP, WAIT, LOGFILE, UNDOFILE, UNDO_BUFFER_SIZE, REDO_BUFFER_SIZE, HANDLER, PREV, ORGANIZATION, DEFINITION, DESCRIPTION, REFERENCE, FOLLOWS, PRECEDES, IMPORT, CONCURRENT, XML, DUMPFILE, SHARE, IDENTIFIER_, STRING_, NUMBER_, HEX_DIGIT_, BIT_NUM_}
2019-09-28 15:55:52 | ERROR | http-nio-8090-exec-2 | org.flowable.common.engine.impl.interceptor.CommandContext | Error while closing command context
org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: java.lang.IllegalStateException
### The error may exist in org/flowable/task/service/db/mapping/entity/Task.xml
### The error may involve org.flowable.task.service.impl.persistence.entity.TaskEntityImpl.selectTasksByProcessInstanceId-Inline
### The error occurred while setting parameters
### SQL: select T.* from ACT_RU_TASK T where T.PROC_INST_ID_ = ?
### Cause: java.lang.IllegalStateException
at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:149)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)
at org.flowable.common.engine.impl.db.DbSqlSession.selectListWithRawParameter(DbSqlSession.java:202)
at org.flowable.common.engine.impl.db.DbSqlSession.selectListWithRawParameter(DbSqlSession.java:196)
at org.flowable.common.engine.impl.db.DbSqlSession.selectList(DbSqlSession.java:157)
at org.flowable.common.engine.impl.db.DbSqlSession.selectList(DbSqlSession.java:162)
at org.flowable.common.engine.impl.db.DbSqlSession.selectList(DbSqlSession.java:142)
at org.flowable.common.engine.impl.db.AbstractDataManager.getList(AbstractDataManager.java:149)
at org.flowable.task.service.impl.persistence.entity.data.impl.MybatisTaskDataManager.findTasksByProcessInstanceId(MybatisTaskDataManager.java:79)
at org.flowable.task.service.impl.persistence.entity.TaskEntityManagerImpl.findTasksByProcessInstanceId(TaskEntityManagerImpl.java:166)
at org.flowable.task.service.impl.TaskServiceImpl.findTasksByProcessInstanceId(TaskServiceImpl.java:48)
at org.flowable.engine.impl.util.TaskHelper.deleteTasksByProcessInstanceId(TaskHelper.java:411)
at org.flowable.engine.impl.persistence.entity.ExecutionEntityManagerImpl.deleteProcessInstanceCascade(ExecutionEntityManagerImpl.java:482)
at org.flowable.engine.impl.persistence.entity.ExecutionEntityManagerImpl.deleteProcessInstance(ExecutionEntityManagerImpl.java:423)
at org.flowable.engine.impl.cmd.DeleteProcessInstanceCmd.execute(DeleteProcessInstanceCmd.java:59)
at org.flowable.engine.impl.cmd.DeleteProcessInstanceCmd.execute(DeleteProcessInstanceCmd.java:30)
at org.flowable.engine.impl.interceptor.CommandInvoker$1.run(CommandInvoker.java:51)
at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:93)
at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:72)
at org.flowable.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:56)
at org.flowable.engine.impl.interceptor.BpmnOverrideContextInterceptor.execute(BpmnOverrideContextInterceptor.java:25)
at org.flowable.common.engine.impl.interceptor.TransactionContextInterceptor.execute(TransactionContextInterceptor.java:53)
at org.flowable.common.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:72)
at org.flowable.common.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:51)
at org.flowable.common.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:30)
at org.flowable.common.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:56)
at org.flowable.common.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:51)
at org.flowable.engine.impl.RuntimeServiceImpl.deleteProcessInstance(RuntimeServiceImpl.java:184)
at com.cmiot.mscheck.workorder.service.impl.FlowServiceImpl.deleteFlowByInstanceId(FlowServiceImpl.java:401)
at com.cmiot.mscheck.workorder.service.impl.FlowServiceImpl.deleteFlowByBusinessKey(FlowServiceImpl.java:395)
at com.cmiot.mscheck.workorder.service.impl.FlowServiceImpl.deleteFlow(FlowServiceImpl.java:381)
at com.cmiot.mscheck.workorder.service.impl.FlowServiceImpl$$FastClassBySpringCGLIB$$743b1de6.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:295)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)
at com.cmiot.mscheck.workorder.service.impl.FlowServiceImpl$$EnhancerBySpringCGLIB$$3b141cc6.deleteFlow(<generated>)
at com.cmiot.mscheck.workorder.rest.controller.ProcessRestImpl.deleteFlow(ProcessRestImpl.java:126)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1039)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:908)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalStateException: null
at com.google.common.base.Preconditions.checkState(Preconditions.java:492)
at org.apache.shardingsphere.core.parse.core.extractor.util.ExtractorUtils.getFirstChildNode(ExtractorUtils.java:48)
at org.apache.shardingsphere.core.parse.core.extractor.impl.dml.select.SelectItemsExtractor.extract(SelectItemsExtractor.java:54)
at org.apache.shardingsphere.core.parse.core.extractor.SQLSegmentsExtractorEngine.extract(SQLSegmentsExtractorEngine.java:47)
at org.apache.shardingsphere.core.parse.core.SQLParseKernel.parse(SQLParseKernel.java:62)
at org.apache.shardingsphere.core.route.router.sharding.DatabaseHintSQLRouter.parse(DatabaseHintSQLRouter.java:50)
at org.apache.shardingsphere.core.route.PreparedStatementRoutingEngine.route(PreparedStatementRoutingEngine.java:64)
at org.apache.shardingsphere.core.PreparedQueryShardingEngine.route(PreparedQueryShardingEngine.java:60)
at org.apache.shardingsphere.core.BaseShardingEngine.executeRoute(BaseShardingEngine.java:86)
at org.apache.shardingsphere.core.BaseShardingEngine.shard(BaseShardingEngine.java:70)
at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.shard(ShardingPreparedStatement.java:224)
at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.execute(ShardingPreparedStatement.java:170)
at org.apache.ibatis.executor.statement.PreparedStatementHandler.query(PreparedStatementHandler.java:64)
at org.apache.ibatis.executor.statement.RoutingStatementHandler.query(RoutingStatementHandler.java:79)
at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:63)
at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:324)
at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)
at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109)
at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:83)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147)
... 94 common frames omitted
</code></pre></div>
<p dir="auto">If i replace the sql as <code class="notranslate">select b.* from ACT_RU_TASK b where b.PROC_INST_ID_ = ?</code> to execute everthing is ok.<br>
So i think sharding jdbc parse sql statement which have a table name alias as T whill case error?</p> | 0 |
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Feature Idea</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">group<br>
user<br>
ALL (almost)</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">All users need all the time to support optional parameteres when using modules. Eg for group module for gid the "" or 0 etc. are not suitable values:</p>
<ul dir="auto">
<li>
<p dir="auto">group:<br>
gid: '{{ user.gid | default("") }}'<br>
...</p>
</li>
<li>
<p dir="auto">user:<br>
uid: '{{ user.uid | default("") }}'<br>
...</p>
</li>
</ul>
<p dir="auto">So for group, user etc. modules there is needed to be duplicate code to support if parameter is defined or not (and module's default value should be used). Now the duplicated code would eg. use when clause to have the wanted functionality. It's bad.</p>
<p dir="auto">Could Ansible have default value to support this?</p> | <h5 dir="auto">Issue Type:</h5>
<p dir="auto">Bug Report</p>
<h5 dir="auto">Ansible Version:</h5>
<p dir="auto">ansible 1.6</p>
<h5 dir="auto">Environment:</h5>
<p dir="auto">Mac OS X 10.7</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">rules_egress was added to ec2_group in 1.6 (previous there was no rules_egress). Unfortunately it defaults to nothing in it, meaning that previous ansible scripts will not allow anything out of a security group. This breaks many security groups.</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<p dir="auto">Create a ec2_group (security group) with no rules_egress. Watch everything get blocked going outbound.</p>
<h5 dir="auto">Expected Results:</h5>
<p dir="auto">Should default to allowing everything outbound since thats what ansible did previously.</p>
<h5 dir="auto">Actual Results:</h5>
<p dir="auto">Unable to access going outbound.</p> | 0 |
<p dir="auto">I am currently implementing the remember me functionality. The REMEMBERME cookie is correctly set, but the logout fails.</p>
<p dir="auto">What happens is that the LogoutListener is first called on the GetResponseEvent, but when comming <a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Security/Http/Firewall/LogoutListener.php#L105">here</a> there is no token in the context, so the remember me logout is not called and does not delete the cookie. On the same listener routine, the remember me service is called later on and thus identifies the user.</p>
<p dir="auto">Am I doing something wrong, or the listening sequence is wrong ?</p>
<p dir="auto"><em>EDIT</em> I fixed the issue <a href="https://github.com/symfony/symfony/issues/6751#issuecomment-12378043" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/6751/hovercard">here</a>, but it was because the remember me service is not registered as a logout handler automatically.</p> | <p dir="auto">The <code class="notranslate">File</code> constraint should support the following notations for the "maxSize" option:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="new File(array('maxSize' => 1234)); // bytes
new File(array('maxSize' => '2k')); // kilobytes (case insensitive)
new File(array('maxSize' => '2ki')); // kibibytes (case insensitive)
new File(array('maxSize' => '1m')); // megabytes (case insensitive)
new File(array('maxSize' => '1mi')); // mebibytes (case insensitive)
// etc."><pre class="notranslate"><span class="pl-k">new</span> <span class="pl-v">File</span>(<span class="pl-en">array</span>(<span class="pl-s">'maxSize'</span> => <span class="pl-c1">1234</span>)); <span class="pl-c">// bytes</span>
<span class="pl-k">new</span> <span class="pl-v">File</span>(<span class="pl-en">array</span>(<span class="pl-s">'maxSize'</span> => <span class="pl-s">'2k'</span>)); <span class="pl-c">// kilobytes (case insensitive)</span>
<span class="pl-k">new</span> <span class="pl-v">File</span>(<span class="pl-en">array</span>(<span class="pl-s">'maxSize'</span> => <span class="pl-s">'2ki'</span>)); <span class="pl-c">// kibibytes (case insensitive)</span>
<span class="pl-k">new</span> <span class="pl-v">File</span>(<span class="pl-en">array</span>(<span class="pl-s">'maxSize'</span> => <span class="pl-s">'1m'</span>)); <span class="pl-c">// megabytes (case insensitive)</span>
<span class="pl-k">new</span> <span class="pl-v">File</span>(<span class="pl-en">array</span>(<span class="pl-s">'maxSize'</span> => <span class="pl-s">'1mi'</span>)); <span class="pl-c">// mebibytes (case insensitive)</span>
<span class="pl-c">// etc.</span></pre></div>
<p dir="auto">The conversion of the passed value to the number of bytes should be done already in the constructor of <code class="notranslate">File</code>, to simplify dealing with the file constraint:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$constraint = new File(array('maxSize' => '1ki'));
assert 1024 === $constraint->maxSize;"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>constraint</span> = <span class="pl-k">new</span> <span class="pl-v">File</span>(<span class="pl-en">array</span>(<span class="pl-s">'maxSize'</span> => <span class="pl-s">'1ki'</span>));
assert <span class="pl-c1">1024</span> === <span class="pl-s1"><span class="pl-c1">$</span>constraint</span>-><span class="pl-c1">maxSize</span>;</pre></div> | 0 |
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#![feature(phase)]
#[phase(syntax, link)] extern crate std;"><pre class="notranslate"><span class="pl-c1">#!<span class="pl-kos">[</span>feature<span class="pl-kos">(</span>phase<span class="pl-kos">)</span><span class="pl-kos">]</span></span>
<span class="pl-c1">#<span class="pl-kos">[</span>phase<span class="pl-kos">(</span>syntax, link<span class="pl-kos">)</span><span class="pl-kos">]</span></span> <span class="pl-k">extern</span> <span class="pl-k">crate</span> std<span class="pl-kos">;</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="warning: using multiple versions of crate `std`
foo.rs:1:1: 1:1 note: used here
foo.rs:1 #![feature(phase)]
^
note: crate_id: std#0.11.0-pre
foo.rs:3:24: 3:41 note: used here
foo.rs:3 #[phase(syntax, link)] extern crate std;
^~~~~~~~~~~~~~~~~
note: crate_id: std#0.11.0-pre
error: duplicate entry for `malloc`
error: duplicate entry for `free`
error: duplicate entry for `strdup_uniq`
error: duplicate entry for `eh_personality`
error: duplicate entry for `managed_heap`
error: duplicate entry for `gc`
error: aborting due to 6 previous errors"><pre class="notranslate"><code class="notranslate">warning: using multiple versions of crate `std`
foo.rs:1:1: 1:1 note: used here
foo.rs:1 #![feature(phase)]
^
note: crate_id: std#0.11.0-pre
foo.rs:3:24: 3:41 note: used here
foo.rs:3 #[phase(syntax, link)] extern crate std;
^~~~~~~~~~~~~~~~~
note: crate_id: std#0.11.0-pre
error: duplicate entry for `malloc`
error: duplicate entry for `free`
error: duplicate entry for `strdup_uniq`
error: duplicate entry for `eh_personality`
error: duplicate entry for `managed_heap`
error: duplicate entry for `gc`
error: aborting due to 6 previous errors
</code></pre></div>
<p dir="auto">This should link in the same version of libstd, not two separate versions.</p> | <p dir="auto">My keyboard layout is french canadian and the question mark shortcut does not work properly. It seems that <a href="https://github.com/rust-lang/rust/blob/master/src/librustdoc/html/static/main.js#L77">this</a> line is causing the issue. To make a question mark, I use <code class="notranslate">SHIFT+6</code>, so it doesn't fire one event with a <code class="notranslate">which</code>of 191, but two events, one with 54 (6) and one with 16 (SHIFT).</p> | 0 |
<p dir="auto">Hello, I'm trying to make 3 columns whith class span 4, but not work:<br>
Example use, note i'm use Bootstrap 3.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/eea43ae541e16b58b74bb5348f3090a2dbe81a177f02edeac5f856ab193a311b/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f343731303839342f3636363136352f62323263396562632d643762392d313165322d383839392d6533626165313635393237622e706e67"><img src="https://camo.githubusercontent.com/eea43ae541e16b58b74bb5348f3090a2dbe81a177f02edeac5f856ab193a311b/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f343731303839342f3636363136352f62323263396562632d643762392d313165322d383839392d6533626165313635393237622e706e67" alt="captura de pantalla 2013-06-17 a la s 20 51 24" data-canonical-src="https://f.cloud.github.com/assets/4710894/666165/b22c9ebc-d7b9-11e2-8899-e3bae165927b.png" style="max-width: 100%;"></a></p>
<p dir="auto">What am I doing wrong?<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/1d3572de382ce039e91e004da096a29bb6bc550b9e1428421557f03fad49b7fc/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f343731303839342f3636363135362f38356535336137362d643762392d313165322d383466632d6434356438396265323463352e706e67"><img src="https://camo.githubusercontent.com/1d3572de382ce039e91e004da096a29bb6bc550b9e1428421557f03fad49b7fc/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f343731303839342f3636363135362f38356535336137362d643762392d313165322d383466632d6434356438396265323463352e706e67" alt="captura de pantalla 2013-06-17 a la s 20 50 21" data-canonical-src="https://f.cloud.github.com/assets/4710894/666156/85e53a76-d7b9-11e2-84fc-d45d89be24c5.png" style="max-width: 100%;"></a></p> | <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/ed053220d76b712c7d38bf5286cf31e27a9c5664e3254292b3aff43edff297a7/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f343731303839342f3636363137342f32383534396530612d643762612d313165322d396563642d3936303736313939356662322e706e67"><img src="https://camo.githubusercontent.com/ed053220d76b712c7d38bf5286cf31e27a9c5664e3254292b3aff43edff297a7/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f343731303839342f3636363137342f32383534396530612d643762612d313165322d396563642d3936303736313939356662322e706e67" alt="captura de pantalla 2013-06-17 a la s 20 50 21" data-canonical-src="https://f.cloud.github.com/assets/4710894/666174/28549e0a-d7ba-11e2-9ecd-960761995fb2.png" style="max-width: 100%;"></a><br>
Hello, I'm trying to make 3 columns whith class span 4, but not work:<br>
Example use:</p>
<div dir="auto">
<div dir="auto">
<div dir="auto">
Sidebar content
</div>
<div dir="auto">
Body content
</div>
<div dir="auto">
Sidebar 2
</div>
</div>
</div>
<p dir="auto">What am I doing wrong?</p> | 1 |
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-practice-functional-programming" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-practice-functional-programming</a> has an issue. Please describe how to reproduce it, and include links to screen shots if possible:</p>
<p dir="auto">I appreciate what you're trying to do by referring people to this tutorial, but it's not the greatest. In addition to not really providing detailed explanations of the functions they're trying to teach, there seem to be bugs in the answers provided at the site. For example, on exercise 20, when I click "show answer" and then run the code they provide, it does not let me move forward. I'm now stuck and can't complete this waypoint unless I do some digging through the source, and I'm certain that's not what you're trying to teach.<br>
<a href="http://imgur.com/igv8e1h" rel="nofollow">http://imgur.com/igv8e1h</a></p> | <p dir="auto">I desperately hope that the external tutorial for functional programming (<a href="http://jhusain.github.io/learnrx/" rel="nofollow">http://jhusain.github.io/learnrx/</a>) will be replaced by a module designed and created in-house. The Husain tutorial is completely overwhelming for programming novices, and is much less friendly and accessible than the modules that precede it. My frustration with it drove me away from FCC for two full weeks, and came close to making me quit the program entirely, despite having been happy and successful with the program up to that point. Here are my thoughts on how this situation could be improved.</p>
<ol dir="auto">
<li>Break it up into several waypoints on the map.<br>
The tutorial is broken up into several sections of 5-10 exercises each ("Working with Arrays", "Filtering Arrays", "Querying Trees", "Reducing Arrays", etc.). Each of these sections should be listed as a separate waypoint on the FCC map, so that learners will have some sense of progress and accomplishment on the way to completing all 42 exercises. I've worked two full, frustrating days (16 hours or more in total) on this tutorial, and haven't been able to click a single waypoint on the FCC map. This is very discouraging, especially considering that in previous modules, I was knocking off several waypoints a day.</li>
<li>Try to get Husain to fix known bugs with the exercises and tests.<br>
There is at least one other open issue about the problems with Husain's custom .concatAll(), which apparently doesn't pass his own tests in some browsers or on some systems. I won't dwell on this issue, except to say that when you're already struggling, it's very discouraging to discover that even the solutions provided by the author of the tutorial don't pass the tutorial's verification tests.</li>
<li>Replace this module with an in-house module with lots more explanation and (especially) examples.<br>
I'm sure that this tutorial makes sense to someone who already understands functional programming, and presents the material in an order that seems logical to such a person. But as a learner for whom this is the most advanced and challenging topic I've encountered so far in learning to program, I find this tutorial almost impossible to follow. The sequence of the topics may make sense, but the explanations are brief, and in most cases, no examples are provided at all, aside from the correct solution. In most cases, I had no choice but to make my best (but incomplete or incorrect) guess at a solution, then look at the correct answer and attempt to reverse-engineer it to understand it. Then the tutorial would move on to the next concept, without providing any additional examples or illustrations.</li>
</ol>
<p dir="auto">There is a much better (clearer, more practical, and more accessible) tutorial on functional programming, from tuts+ and available on YouTube (<a href="https://www.youtube.com/watch?v=ubueiy6kVUg" rel="nofollow">https://www.youtube.com/watch?v=ubueiy6kVUg</a>). I am not qualified to judge whether this tutorial teaches everything you want your functional programming module to teach, nor can I say whether there is a good way to include and verify the completion of a series of YouTube videos in your curriculum, but I can say, as a novice programmer, that the tuts+ videos by Jason Rhodes taught me more in a couple of hours than I learned in two days of banging my head against the Husain tutorial. You might consider using the tuts+ videos as an introduction to the topic, and then follow it up with some bonfires to provide practice with functional programming.</p>
<p dir="auto">Where I am now:<br>
I've gotten to the early portions of the Observables section of the Husain tutorial, and found that on exercise 32, there was no button to show the correct solution. In frustration and desperation, I eventually clicked the Show All Answers button at the top of the page -- which obliterated all my work in the previous exercises, as well as clearing the template code in several of the later exercises. I suppose I could reset my progress on the entire tutorial and begin again, but the process has been so painful and felt so unproductive that I can't see repeating it.</p>
<p dir="auto">If passing this particular functional programming tutorial is really essential to moving on in the program, then it borders on a complete roadblock for myself and other participants like myself, with only limited prior experience. I'll try to find other resources to learn these concepts, and then come back to FCC's map, but I fear that other learners might be stopped by this tutorial and never return. I don't know what follows this tutorial in the program, but in comparison to what preceded it -- both outside resources and FCC-created modules -- it is not nearly as effective.</p> | 1 |
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: 1.32.1</li>
<li>Operating System: macOS 12.6.3</li>
<li>Browser: All</li>
<li>Other info:</li>
</ul>
<h3 dir="auto">Source code</h3>
<p dir="auto"><strong>Config file</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" projects: [
{ name: 'setup', testMatch: /auth\.setup\.ts/ },
{
name: 'main tests',
use: {
...devices['Chromium'],
storageState: 'playwright/.auth/admin.json',
},
testDir: './tests',
dependencies: ['setup'],
}]"><pre class="notranslate"> projects: <span class="pl-kos">[</span>
<span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'setup'</span><span class="pl-kos">,</span> <span class="pl-c1">testMatch</span>: <span class="pl-pds"><span class="pl-c1">/</span>auth<span class="pl-cce">\.</span>setup<span class="pl-cce">\.</span>ts<span class="pl-c1">/</span></span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">name</span>: <span class="pl-s">'main tests'</span><span class="pl-kos">,</span>
<span class="pl-c1">use</span>: <span class="pl-kos">{</span>
...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Chromium'</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-c1">storageState</span>: <span class="pl-s">'playwright/.auth/admin.json'</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">testDir</span>: <span class="pl-s">'./tests'</span><span class="pl-kos">,</span>
<span class="pl-c1">dependencies</span>: <span class="pl-kos">[</span><span class="pl-s">'setup'</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"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/128826/228414148-d353f53c-5076-422f-a2d9-c912b5529d75.png"><img src="https://user-images.githubusercontent.com/128826/228414148-d353f53c-5076-422f-a2d9-c912b5529d75.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Steps</strong></p>
<ul dir="auto">
<li>tick "show browser" in VSCode</li>
<li>Run the test</li>
</ul>
<p dir="auto"><strong>Expected</strong></p>
<p dir="auto">Works as per show browser not set</p>
<p dir="auto"><strong>Actual</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Error: browserType.connect: WebSocket error: connect ECONNREFUSED 127.0.0.1:60054
=========================== logs ===========================
<ws connecting> ws://127.0.0.1:60054/e79324c018f1f82bb758d495bb34451a
<ws error> ws://127.0.0.1:60054/e79324c018f1f82bb758d495bb34451a error connect ECONNREFUSED 127.0.0.1:60054
<ws connect error> ws://127.0.0.1:60054/e79324c018f1f82bb758d495bb34451a connect ECONNREFUSED 127.0.0.1:60054
<ws disconnected> ws://127.0.0.1:60054/e79324c018f1f82bb758d495bb34451a code=1006 reason=
============================================================"><pre class="notranslate"><code class="notranslate"> Error: browserType.connect: WebSocket error: connect ECONNREFUSED 127.0.0.1:60054
=========================== logs ===========================
<ws connecting> ws://127.0.0.1:60054/e79324c018f1f82bb758d495bb34451a
<ws error> ws://127.0.0.1:60054/e79324c018f1f82bb758d495bb34451a error connect ECONNREFUSED 127.0.0.1:60054
<ws connect error> ws://127.0.0.1:60054/e79324c018f1f82bb758d495bb34451a connect ECONNREFUSED 127.0.0.1:60054
<ws disconnected> ws://127.0.0.1:60054/e79324c018f1f82bb758d495bb34451a code=1006 reason=
============================================================
</code></pre></div> | <h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [v1.35.1]</li>
<li>Test Env: MacOS 13.4.1, K8S</li>
<li>Browser: [Chromium]</li>
<li>Test Runner: Playwright test v1.45.1</li>
<li>Script language: Typescript</li>
</ul>
<h3 dir="auto">Source code</h3>
<p dir="auto"><strong>KubernetesPod.yaml</strong></p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="apiVersion: v1
kind: Pod
metadata:
name: playwright
spec:
imagePullSecrets:
- name: vungleregistrykey
containers:
- name: playwright
image: mcr.microsoft.com/playwright:v1.35.1-jammy
imagePullPolicy: IfNotPresent
resources:
requests:
memory: "5Gi"
cpu: "8"
limits:
memory: "10Gi"
cpu: "12"
command:
- cat
tty: true
- name: mongo
image: mongo
imagePullPolicy: IfNotPresent
resources:
requests:
memory: "128Mi"
cpu: "250m"
limits:
memory: "256Mi"
cpu: "500m"
command:
- cat
tty: true"><pre class="notranslate"><span class="pl-ent">apiVersion</span>: <span class="pl-c1">v1</span>
<span class="pl-ent">kind</span>: <span class="pl-s">Pod</span>
<span class="pl-ent">metadata</span>:
<span class="pl-ent">name</span>: <span class="pl-s">playwright</span>
<span class="pl-ent">spec</span>:
<span class="pl-ent">imagePullSecrets</span>:
- <span class="pl-ent">name</span>: <span class="pl-s">vungleregistrykey</span>
<span class="pl-ent">containers</span>:
- <span class="pl-ent">name</span>: <span class="pl-s">playwright</span>
<span class="pl-ent">image</span>: <span class="pl-s">mcr.microsoft.com/playwright:v1.35.1-jammy</span>
<span class="pl-ent">imagePullPolicy</span>: <span class="pl-s">IfNotPresent</span>
<span class="pl-ent">resources</span>:
<span class="pl-ent">requests</span>:
<span class="pl-ent">memory</span>: <span class="pl-s"><span class="pl-pds">"</span>5Gi<span class="pl-pds">"</span></span>
<span class="pl-ent">cpu</span>: <span class="pl-s"><span class="pl-pds">"</span>8<span class="pl-pds">"</span></span>
<span class="pl-ent">limits</span>:
<span class="pl-ent">memory</span>: <span class="pl-s"><span class="pl-pds">"</span>10Gi<span class="pl-pds">"</span></span>
<span class="pl-ent">cpu</span>: <span class="pl-s"><span class="pl-pds">"</span>12<span class="pl-pds">"</span></span>
<span class="pl-ent">command</span>:
- <span class="pl-s">cat</span>
<span class="pl-ent">tty</span>: <span class="pl-c1">true</span>
- <span class="pl-ent">name</span>: <span class="pl-s">mongo</span>
<span class="pl-ent">image</span>: <span class="pl-s">mongo</span>
<span class="pl-ent">imagePullPolicy</span>: <span class="pl-s">IfNotPresent</span>
<span class="pl-ent">resources</span>:
<span class="pl-ent">requests</span>:
<span class="pl-ent">memory</span>: <span class="pl-s"><span class="pl-pds">"</span>128Mi<span class="pl-pds">"</span></span>
<span class="pl-ent">cpu</span>: <span class="pl-s"><span class="pl-pds">"</span>250m<span class="pl-pds">"</span></span>
<span class="pl-ent">limits</span>:
<span class="pl-ent">memory</span>: <span class="pl-s"><span class="pl-pds">"</span>256Mi<span class="pl-pds">"</span></span>
<span class="pl-ent">cpu</span>: <span class="pl-s"><span class="pl-pds">"</span>500m<span class="pl-pds">"</span></span>
<span class="pl-ent">command</span>:
- <span class="pl-s">cat</span>
<span class="pl-ent">tty</span>: <span class="pl-c1">true</span></pre></div>
<p dir="auto"><strong>Jenkins Pipeline</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="......
stage('Execute regression test on stage env') {
when {expression {params.ENV == 'STAGE'}}
steps {
withCredentials([string(credentialsId: 'MongoDB_URL_SANITIZED_RW', variable: 'MONGODB_URL')]) {
echo 'Execute regression test on stage env...'
sh 'npx playwright test --workers=10'
}
}
}
......"><pre class="notranslate"><code class="notranslate">......
stage('Execute regression test on stage env') {
when {expression {params.ENV == 'STAGE'}}
steps {
withCredentials([string(credentialsId: 'MongoDB_URL_SANITIZED_RW', variable: 'MONGODB_URL')]) {
echo 'Execute regression test on stage env...'
sh 'npx playwright test --workers=10'
}
}
}
......
</code></pre></div>
<h3 dir="auto">Repro Steps:</h3>
<p dir="auto">In my test project, I have more than 170+ test cases running in fully parallel mode(worker processes: 10). However, when I upgrade the Playwright version from v1.33.0 to v1.35.1, I notice that the test execution will hang at a random test case and lose response unless you kill the process or stop the Jenkins job, this issue is reproducible on both of my laptop and on k8s env.</p>
<p dir="auto">If downgrade the playwright to v1.33.0, all test cases can be executed successfully to the end.</p> | 0 |
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">docker module</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.1.0
config file = /Users/xxxxxx/Dropbox/devel/xxxxxx/xxxxxx/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.10 (default, Sep 30 2015, 15:50:49) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.72)]"><pre class="notranslate"><code class="notranslate">ansible 2.3.1.0
config file = /Users/xxxxxx/Dropbox/devel/xxxxxx/xxxxxx/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.10 (default, Sep 30 2015, 15:50:49) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.72)]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[defaults]
inventory = ./contrib/inventory.sh
host_key_checking = False
nocows = 1
forks = 500"><pre class="notranslate"><code class="notranslate">[defaults]
inventory = ./contrib/inventory.sh
host_key_checking = False
nocows = 1
forks = 500
</code></pre></div>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Host: macOS<br>
Target: EC2 Ubuntu 16.04</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">On an Ubuntu target (running on EC2) with installed docker gathering facts raises a warning about a restricted key <code class="notranslate">ansible_docker_gwbridge</code> being returned in the module data.<br>
AFAICT this supposedly was fixed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="223874982" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/23919" data-hovercard-type="pull_request" data-hovercard-url="/ansible/ansible/pull/23919/hovercard" href="https://github.com/ansible/ansible/pull/23919">#23919</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="- hosts: all
gather_facts: yes
tasks:
- shell: echo bla"><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">all</span>
<span class="pl-ent">gather_facts</span>: <span class="pl-s">yes</span>
<span class="pl-ent">tasks</span>:
- <span class="pl-ent">shell</span>: <span class="pl-s">echo bla</span></pre></div>
<p dir="auto"><code class="notranslate">ansible-playbook test.yml</code></p>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">No warning to be shown</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [all] *************************************************
TASK [Gathering Facts] *******************************************************************************
[WARNING]: Removed restricted key from module data: ansible_docker_gwbridge = {...}"><pre class="notranslate"><code class="notranslate">PLAY [all] *************************************************
TASK [Gathering Facts] *******************************************************************************
[WARNING]: Removed restricted key from module data: ansible_docker_gwbridge = {...}
</code></pre></div> | <h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">gather_facts and/or something to do w/ docker</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.0.0
config file = /home/vagrant/factom/factom-ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]"><pre class="notranslate"><code class="notranslate">ansible 2.3.0.0
config file = /home/vagrant/factom/factom-ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">none</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Ubuntu 16.04.2 LTS (under Vagrant)</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Getting this in the output when doing <code class="notranslate">gather_facts</code> (basically - <code class="notranslate">ansible -m setup localhost</code>)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" [WARNING]: Removed restricted key from module data: ansible_docker_gwbridge = REDACTED"><pre class="notranslate"><code class="notranslate"> [WARNING]: Removed restricted key from module data: ansible_docker_gwbridge = REDACTED
</code></pre></div>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">Setup docker, and make sure that the <code class="notranslate">docker_gwbridge</code> network exists.<br>
Run <code class="notranslate">ansible -m setup localhost</code></p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">No warning displayed</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">A warning was displayed</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" [WARNING]: Removed restricted key from module data: ansible_docker_gwbridge = REDACTED"><pre class="notranslate"><code class="notranslate"> [WARNING]: Removed restricted key from module data: ansible_docker_gwbridge = REDACTED
</code></pre></div> | 1 |
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.): no</p>
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): branch, revert</p>
<hr>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): BUG</p>
<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>): master branch</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: none</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): N/A</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): N/A</li>
<li><strong>Install tools</strong>: N/A</li>
<li><strong>Others</strong>: N/A</li>
</ul>
<p dir="auto"><strong>What happened</strong>:</p>
<p dir="auto">Document doc/design/versioning.md describes official branches to be used in Kubernetes project repositories: "master", "release-X.Y", "release-X.Y.Z".<br>
At the moment, we have in kubernetes/kubernetes repository bunch of branches that are violating those naming conventions and most of them seems to be accidental pushes by people who has direct push rights to the repository. I think it is needed to be cleaned up from repository and potentially automatic check to be implemented to automatically clean-up them on appearance.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git branch -a | grep remotes/origin | grep -Ev "origin/(master|release-|gh-pages)"
remotes/origin/1.3.6
remotes/origin/1.3.7
remotes/origin/Dec/mounttype
remotes/origin/Dec/nfsv3
remotes/origin/Nov/nfshung
remotes/origin/caesarxuchao-patch-1
remotes/origin/eparis-unset-class-doc-typo
remotes/origin/foxish-add-cla
remotes/origin/foxish-patch-1
remotes/origin/foxish-remove-google-cla
remotes/origin/jszczepkowski-ha-e2e-disabled
remotes/origin/jszczepkowski-ha-feature
remotes/origin/kube-volume-owner
remotes/origin/mbohlool-patch-1
remotes/origin/patch-owners-vsphere
remotes/origin/revert-26501-scheduler
remotes/origin/revert-30701-28695_suppress_noisy_output
remotes/origin/revert-32200-storage-03-enable-test
remotes/origin/revert-32251-fix-oom-policy
remotes/origin/revert-32841-revert-32251-fix-oom-policy
remotes/origin/revert-33014-feature/set-image-id-manifest-digest
remotes/origin/revert-33209-automated-cherry-pick-of-#33143-upstream-release-1.4
remotes/origin/revert-33343-automated-cherry-pick-of-#33342-upstream-release-1.3
remotes/origin/revert-33347-fix_32900
remotes/origin/revert-33795-add-network-node-e2e
remotes/origin/revert-33850-add_e2e_test_for_kubectl_in_pod
remotes/origin/revert-34011-revert-33795-add-network-node-e2e
remotes/origin/revert-34570-Oct/pd-tests
remotes/origin/revert-35167-err
remotes/origin/revert-35697-upgrade-tests
remotes/origin/revert-36166-remove_mount_rootfs_flag
remotes/origin/revert-36210-flex_node_conditions
remotes/origin/revert-36610-Nov/nfsv3
remotes/origin/revert-36625-branch-eliminate-recursive-call-attemptToUpdateMasterRoleLabelsAndTaints
remotes/origin/revert-36864-fix-path-to-kubectl-in-gke-test
remotes/origin/revert-37085-rv
remotes/origin/revert-37095-kubemark_logrotation
remotes/origin/revert-37243-petset-e2e-rename
remotes/origin/revert-37356-jszczepkowski-ha-feature
remotes/origin/revert-37389-statefulset-skip-gke
remotes/origin/revert-37582-Nov/retrynfsv3
$"><pre class="notranslate">$ git branch -a <span class="pl-k">|</span> grep remotes/origin <span class="pl-k">|</span> grep -Ev <span class="pl-s"><span class="pl-pds">"</span>origin/(master|release-|gh-pages)<span class="pl-pds">"</span></span>
remotes/origin/1.3.6
remotes/origin/1.3.7
remotes/origin/Dec/mounttype
remotes/origin/Dec/nfsv3
remotes/origin/Nov/nfshung
remotes/origin/caesarxuchao-patch-1
remotes/origin/eparis-unset-class-doc-typo
remotes/origin/foxish-add-cla
remotes/origin/foxish-patch-1
remotes/origin/foxish-remove-google-cla
remotes/origin/jszczepkowski-ha-e2e-disabled
remotes/origin/jszczepkowski-ha-feature
remotes/origin/kube-volume-owner
remotes/origin/mbohlool-patch-1
remotes/origin/patch-owners-vsphere
remotes/origin/revert-26501-scheduler
remotes/origin/revert-30701-28695_suppress_noisy_output
remotes/origin/revert-32200-storage-03-enable-test
remotes/origin/revert-32251-fix-oom-policy
remotes/origin/revert-32841-revert-32251-fix-oom-policy
remotes/origin/revert-33014-feature/set-image-id-manifest-digest
remotes/origin/revert-33209-automated-cherry-pick-of-#33143-upstream-release-1.4
remotes/origin/revert-33343-automated-cherry-pick-of-#33342-upstream-release-1.3
remotes/origin/revert-33347-fix_32900
remotes/origin/revert-33795-add-network-node-e2e
remotes/origin/revert-33850-add_e2e_test_for_kubectl_in_pod
remotes/origin/revert-34011-revert-33795-add-network-node-e2e
remotes/origin/revert-34570-Oct/pd-tests
remotes/origin/revert-35167-err
remotes/origin/revert-35697-upgrade-tests
remotes/origin/revert-36166-remove_mount_rootfs_flag
remotes/origin/revert-36210-flex_node_conditions
remotes/origin/revert-36610-Nov/nfsv3
remotes/origin/revert-36625-branch-eliminate-recursive-call-attemptToUpdateMasterRoleLabelsAndTaints
remotes/origin/revert-36864-fix-path-to-kubectl-in-gke-test
remotes/origin/revert-37085-rv
remotes/origin/revert-37095-kubemark_logrotation
remotes/origin/revert-37243-petset-e2e-rename
remotes/origin/revert-37356-jszczepkowski-ha-feature
remotes/origin/revert-37389-statefulset-skip-gke
remotes/origin/revert-37582-Nov/retrynfsv3
$</pre></div>
<p dir="auto"><strong>What you expected to happen</strong>:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git branch -a | grep remotes/origin | grep -Ev "origin/(master|gh-pages|release-)"
$"><pre class="notranslate">$ git branch -a <span class="pl-k">|</span> grep remotes/origin <span class="pl-k">|</span> grep -Ev <span class="pl-s"><span class="pl-pds">"</span>origin/(master|gh-pages|release-)<span class="pl-pds">"</span></span>
$</pre></div>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/kubernetes/kubernetes
$ cd kubernets
$ git branch -a | grep remotes/origin | grep -Ev "origin/(master|gh-pages|release-)""><pre class="notranslate">$ git clone https://github.com/kubernetes/kubernetes
$ <span class="pl-c1">cd</span> kubernets
$ git branch -a <span class="pl-k">|</span> grep remotes/origin <span class="pl-k">|</span> grep -Ev <span class="pl-s"><span class="pl-pds">"</span>origin/(master|gh-pages|release-)<span class="pl-pds">"</span></span></pre></div>
<p dir="auto"><strong>Anything else do we need to know</strong>:</p> | <p dir="auto">This proposal is related to the following issues, but (I believe) not entirely duplicative of them: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="121871712" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/18623" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/18623/hovercard" href="https://github.com/kubernetes/kubernetes/issues/18623">#18623</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="65963457" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/6363" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/6363/hovercard" href="https://github.com/kubernetes/kubernetes/issues/6363">#6363</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="125768776" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/19443" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/19443/hovercard" href="https://github.com/kubernetes/kubernetes/issues/19443">#19443</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="120284625" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/18174" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/18174/hovercard" href="https://github.com/kubernetes/kubernetes/issues/18174">#18174</a>. If it is duplicative, then you know what to do ;-)</p>
<p dir="auto">The way it is now:</p>
<p dir="auto">The APIserver and supports leader election, allowing for nearly seamless failover of the kube-master with simple configurations. However kube-proxy and the kubelets on the workers will not see the new apiserver until their configuration is updated and restarted. The official recommendation for this is to use an external load-balancer, but that's just kicking the problem down the road; Kubernetes should, as much as possible, be the source of its own HA.</p>
<p dir="auto">The simple fix:</p>
<p dir="auto">Kubelet and Kube-proxy could allow use of etcd-based service discovery for locating the apiserver. Combined with running an etcd node (in small clusters) or an etcd standby node (in larger clusters). Combined with the other features which already exist, this would allow small to medium clusters to have fully automated kube-master failover "out of the box", using only tools we already use.</p>
<p dir="auto">Drawbacks:</p>
<p dir="auto">For larger clusters, load on etcd is already a bottleneck, and adding additional service discovery wouldn't help. However, dedicated clustered load-balancers make a lot more sense for a larger cluster, and should still be the recommended configuration for those.</p> | 0 |
<h5 dir="auto">Issue Type: Bug Report</h5>
<h5 dir="auto">Ansible Version: 1.6.8+</h5>
<p dir="auto">ansible 1.6.8<br>
ansible 1.7 (devel <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/d2a130971ac6058c9467821d4fe10ce5d81cd855/hovercard" href="https://github.com/ansible/ansible/commit/d2a130971ac6058c9467821d4fe10ce5d81cd855"><tt>d2a1309</tt></a>) last updated 2014/07/22 20:11:41 (GMT -400)</p>
<h5 dir="auto">Environment:</h5>
<p dir="auto">OSX 10.9.3<br>
RHEL 6.5</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">As of 1.6.8 and later, the unarchive module fails with the erroneous error "msg: duplicate parameter: src" when the parameters are specified in k=v format<br>
I looked into this a little, and it seems to me that both the original src argument(app.tgz) and the transformed src argument (/Users/matthewbsimon/.ansible/tmp/ansible-tmp-1406078247.21-209950653970379/source) flow into module_utils/basic.py _load_params, and then the newly introduced security fix catches it. I don't know enough to fix this - please help!</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<h2 dir="auto">file: example.yml</h2>
<ul dir="auto">
<li>hosts: localhost<br>
connection: local<br>
gather_facts: false<br>
tasks:
<ul dir="auto">
<li>shell: "touch app.tgz"</li>
<li>unarchive: src=app.tgz dest=/tmp</li>
</ul>
</li>
</ul>
<p dir="auto">bash$ ansible-playbook -i 'localhost,' example.yml</p>
<h5 dir="auto">Expected Results:</h5>
<h5 dir="auto">Actual Results:</h5>
<p dir="auto">failed: [localhost] => {"failed": true}<br>
msg: duplicate parameter: src (value=/Users/matthewbsimon/.ansible/tmp/ansible-tmp-1406127477.01-217277799953399/source)</p>
<p dir="auto">FATAL: all hosts have already failed -- aborting</p> | <p dir="auto">vault password could keep prompting until empty password is supplied, vault file could take a list of files</p>
<p dir="auto">This allows for having multiple vault files with different keys, good for ops team having access to all vaults but qa or dev having access only to specific ones</p> | 0 |
<p dir="auto">A friend of mine (<a href="https://github.com/R2-G2">https://github.com/R2-G2</a>) noticed, that there's a strange behavior with radio buttons wrapped into labels:</p>
<p dir="auto">If you click one for the first time, everything's fine. It gets an active class and if you you use the radio-buttons selector with a ':checked' filter via jQuery, it shows that the element is checked (or better said, it finds the element).</p>
<p dir="auto">But if you click it for a second time, the active class stays, but the radio button isn't checked anymore.</p>
<p dir="auto">Here's an example:</p>
<p dir="auto"><a href="http://jsfiddle.net/aMKFq/" rel="nofollow">http://jsfiddle.net/aMKFq/</a></p>
<p dir="auto">The following line in <em>button.js's toggle-method</em> seems to cause the problem:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if ($input.prop('type') === 'radio') $parent.find('.active').removeClass('active')"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">$input</span><span class="pl-kos">.</span><span class="pl-en">prop</span><span class="pl-kos">(</span><span class="pl-s">'type'</span><span class="pl-kos">)</span> <span class="pl-c1">===</span> <span class="pl-s">'radio'</span><span class="pl-kos">)</span> <span class="pl-s1">$parent</span><span class="pl-kos">.</span><span class="pl-en">find</span><span class="pl-kos">(</span><span class="pl-s">'.active'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">removeClass</span><span class="pl-kos">(</span><span class="pl-s">'active'</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">Better said, it's not the line, but it's position. The line is removing the active class of the parent, if the input is a radio button, which seems logical, since you don't want a radio button to be deselected and you have a toggle class at the end of the method:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="this.$element.toggleClass('active')"><pre class="notranslate"><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">$element</span><span class="pl-kos">.</span><span class="pl-en">toggleClass</span><span class="pl-kos">(</span><span class="pl-s">'active'</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">So, first removing eventually existing active classes and then toggling it, seems useful.</p>
<p dir="auto">The only problem is, that the checked-property is set <em>before</em> the active class is removed:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if ($parent.length) {
var $input = this.$element.find('input')
.prop('checked', !this.$element.hasClass('active'))
.trigger('change')
if ($input.prop('type') === 'radio') $parent.find('.active').removeClass('active')
}"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">$parent</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">$input</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">$element</span><span class="pl-kos">.</span><span class="pl-en">find</span><span class="pl-kos">(</span><span class="pl-s">'input'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">prop</span><span class="pl-kos">(</span><span class="pl-s">'checked'</span><span class="pl-kos">,</span> <span class="pl-c1">!</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">$element</span><span class="pl-kos">.</span><span class="pl-en">hasClass</span><span class="pl-kos">(</span><span class="pl-s">'active'</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">trigger</span><span class="pl-kos">(</span><span class="pl-s">'change'</span><span class="pl-kos">)</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">$input</span><span class="pl-kos">.</span><span class="pl-en">prop</span><span class="pl-kos">(</span><span class="pl-s">'type'</span><span class="pl-kos">)</span> <span class="pl-c1">===</span> <span class="pl-s">'radio'</span><span class="pl-kos">)</span> <span class="pl-s1">$parent</span><span class="pl-kos">.</span><span class="pl-en">find</span><span class="pl-kos">(</span><span class="pl-s">'.active'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">removeClass</span><span class="pl-kos">(</span><span class="pl-s">'active'</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Possible solution</strong></p>
<p dir="auto">I wrote a solution, which fixed the issue for me, while still allowing every test to pass:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Button.prototype.toggle = function () {
var $parent = this.$element.closest('[data-toggle="buttons"]')
if ($parent.length) {
var $input = this.$element.find('input')
if ($input.prop('type') === 'radio') $parent.find('.active').removeClass('active')
$input.prop('checked', !this.$element.hasClass('active'))
.trigger('change')
}
this.$element.toggleClass('active')
}"><pre class="notranslate"><span class="pl-v">Button</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-en">toggle</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">$parent</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">$element</span><span class="pl-kos">.</span><span class="pl-en">closest</span><span class="pl-kos">(</span><span class="pl-s">'[data-toggle="buttons"]'</span><span class="pl-kos">)</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">$parent</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">$input</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">$element</span><span class="pl-kos">.</span><span class="pl-en">find</span><span class="pl-kos">(</span><span class="pl-s">'input'</span><span class="pl-kos">)</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">$input</span><span class="pl-kos">.</span><span class="pl-en">prop</span><span class="pl-kos">(</span><span class="pl-s">'type'</span><span class="pl-kos">)</span> <span class="pl-c1">===</span> <span class="pl-s">'radio'</span><span class="pl-kos">)</span> <span class="pl-s1">$parent</span><span class="pl-kos">.</span><span class="pl-en">find</span><span class="pl-kos">(</span><span class="pl-s">'.active'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">removeClass</span><span class="pl-kos">(</span><span class="pl-s">'active'</span><span class="pl-kos">)</span>
<span class="pl-s1">$input</span><span class="pl-kos">.</span><span class="pl-en">prop</span><span class="pl-kos">(</span><span class="pl-s">'checked'</span><span class="pl-kos">,</span> <span class="pl-c1">!</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">$element</span><span class="pl-kos">.</span><span class="pl-en">hasClass</span><span class="pl-kos">(</span><span class="pl-s">'active'</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">trigger</span><span class="pl-kos">(</span><span class="pl-s">'change'</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">$element</span><span class="pl-kos">.</span><span class="pl-en">toggleClass</span><span class="pl-kos">(</span><span class="pl-s">'active'</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">You could of course use it, if you like.</p>
<p dir="auto">Greets</p> | <p dir="auto">The active class stays on the button, but the checked property is removed from the radio input.</p>
<p dir="auto"><a href="http://jsfiddle.net/meleyal/dafPH/" rel="nofollow">http://jsfiddle.net/meleyal/dafPH/</a></p> | 1 |
<p dir="auto">See discussion on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="295560783" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/8384" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/8384/hovercard" href="https://github.com/scipy/scipy/pull/8384">#8384</a> - Running pycodestyle v2.3.1 currently reports 81 cases of <code class="notranslate">E741</code> which is one of a set of three style checks to avoid ambiguous single letter names which look like numbers:</p>
<ul dir="auto">
<li>E741 do not use variables named ‘l’, ‘O’, or ‘I’</li>
<li>E742 do not define classes named ‘l’, ‘O’, or ‘I’</li>
<li>E743 do not define functions named ‘l’, ‘O’, or ‘I’</li>
</ul>
<p dir="auto">See <a href="https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes" rel="nofollow">https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes</a></p>
<p dir="auto">The reasoning being in many fonts:</p>
<ul dir="auto">
<li>Upper case eye looks like the digit one (<code class="notranslate">I</code> vs <code class="notranslate">1</code>)</li>
<li>Upper case oh looks like the digit zero (<code class="notranslate">O</code> vs <code class="notranslate">0</code>)</li>
<li>Upper case el looks like the digit one (<code class="notranslate">L</code> vs <code class="notranslate">1</code>)</li>
</ul>
<p dir="auto">Assuming <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="295560783" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/8384" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/8384/hovercard" href="https://github.com/scipy/scipy/pull/8384">#8384</a> or similar is merged, then as part of fixing this whitespace, the style checker settings in tox.ini should be updated to stop ignoring E741.</p> | <p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/811" rel="nofollow">http://projects.scipy.org/scipy/ticket/811</a> on 2008-12-10 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nilswagner01/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nilswagner01">@nilswagner01</a>, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wnbell/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wnbell">@wnbell</a>.</em></p>
<p dir="auto">It would be nice to have an implementation of IDR in scipy. See</p>
<p dir="auto">[http://ta.twi.tudelft.nl/nw/users/gijzen/IDR.html]</p>
<p dir="auto">for details.</p> | 0 |
<h3 dir="auto">What do you see as an issue?</h3>
<p dir="auto">The <a href="https://airflow.apache.org/docs/apache-airflow/stable/templates-ref.html" rel="nofollow">documentation</a> for the template variable <code class="notranslate">data_interval_end</code> states simply that its the "End of the data interval". Initially I took that to mean the final second/microsecond (depending on precision) of the data interval, but its actually the start of the next interval.</p>
<p dir="auto">For example, given a schedule that runs every 5 minutes, the variables are set as follows (for a simple test I just ran):</p>
<ul dir="auto">
<li><strong>data_interval_start</strong>: 2022-07-28T16:15:00+00:00</li>
<li><strong>data_interval_end</strong>: 2022-07-28T16:20:00+00:00</li>
</ul>
<p dir="auto">As opposed to:</p>
<ul dir="auto">
<li><strong>data_interval_start</strong>: 2022-07-28T16:15:00+00:00</li>
<li><strong>data_interval_end</strong>: 2022-07-28T16:19:59+00:00</li>
</ul>
<p dir="auto">It makes sense as implemented, but I'd like to see the documentation state the behavior explicitly.</p>
<h3 dir="auto">Solving the problem</h3>
<p dir="auto">The documentation I read when using the template variables is <a href="https://airflow.apache.org/docs/apache-airflow/stable/templates-ref.html" rel="nofollow">https://airflow.apache.org/docs/apache-airflow/stable/templates-ref.html</a></p>
<p dir="auto">I'm not sure how to word it, but it would be helpful to indicate that <code class="notranslate">data_interval_end</code> is effectively the <code class="notranslate">data_interval_start</code> of the next interval. Or that the interval the DAG is operating on, using mathematical interval notation, is <code class="notranslate">[data_interval_start, data_interval_end)</code></p>
<h3 dir="auto">Anything else</h3>
<p dir="auto">Just an explanation of how we ran into this:</p>
<p dir="auto">We are running DAGS periodically that pull timeseries data from some API. The jobs query an api with filters like this:</p>
<ul dir="auto">
<li>timestamp >= data_interval_start</li>
<li>timestamp <= data_interval_end</li>
</ul>
<p dir="auto">We noticed we were getting some duplicated data, specifically data that happened exactly on the <code class="notranslate">data_interval_start</code> value. The simple fix (once we saw the behavior of the variables) was to remove the <code class="notranslate">=</code> from the second filter:</p>
<ul dir="auto">
<li>timestamp >= data_interval_start</li>
<li>timestamp < data_interval_end</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" checked=""> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | <h3 dir="auto">Description</h3>
<p dir="auto">In our use case, we often import data which contains some noise which cannot be handled correctly. However, we don't want an entire task or job to fail because of it (simply because it is not critical). A warning shall be logged to the corresponding data point and the job shall carry on as usual.</p>
<p dir="auto"><strong>The problem</strong>: a mere <code class="notranslate">logging.warning()</code> stays in the hiding when nobody looks at the logs (why should they when everything succeeded?). Also, having a separate task/job which checks for those kind of errors is adding too much complexity to the logic and makes it hard to sync to the origin.</p>
<p dir="auto"><strong>The proposal</strong>: Add a new task return status <code class="notranslate">Success with warning</code> or simply <code class="notranslate">Warning</code> which shows at high level, what's going on in the tasks. Users can see that there is some action needed, but not immediately, without having to read each of the logs or having to setup additional monitoring levels.</p>
<p dir="auto">If someone points me toward the relevant parts in the application logic that should be modified, I would be happy to have a shot at it myself.</p>
<h3 dir="auto">Use case/motivation</h3>
<p dir="auto">Warnings in tasks should be made visible in the UI at job level (through a status flag).</p>
<h3 dir="auto">Related issues</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Are you willing to submit a PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | 0 |
<p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">1.8.2</p>
<p dir="auto"><strong>Background</strong>:</p>
<p dir="auto">I have been working on trying to get <a href="https://github.com/eslint/typescript-eslint-parser">https://github.com/eslint/typescript-eslint-parser</a>, a TypeScript parser plugin for ESLint, off the ground, and the job this weekend has been to begin adding JSX support.</p>
<p dir="auto">ESLint uses espree and so the aim of the project is to convert the output of the tsc to an AST which espree expects. We already have a solid suite of JSX tests to develop against (taken from the espree project itself), but I have come up against a tsc error in one of them so far.</p>
<p dir="auto">My issue is that it seems currently the tsc does not accept this "namespaced attribute" JSX syntax:</p>
<p dir="auto"><strong>Code</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<a n:foo="bar"> {value} <b><c /></b></a>;
"><pre class="notranslate"><span class="pl-c1"><</span><span class="pl-s1">a</span> <span class="pl-smi">n</span>:<span class="pl-smi">foo</span><span class="pl-c1">=</span><span class="pl-s">"bar"</span><span class="pl-c1">></span> <span class="pl-kos">{</span><span class="pl-s1">value</span><span class="pl-kos">}</span> <span class="pl-kos"><</span><span class="pl-smi">b</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-smi">c</span><span class="pl-kos"></span> <span class="pl-pds"><span class="pl-c1">/</span>><<span class="pl-c1">/</span>b</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-smi">a</span><span class="pl-c1">></span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Expected behavior:</strong><br>
Please note the AST produced by espree (see in particular the <code class="notranslate">tokens</code> array): <a href="http://astexplorer.net/#/B46lew7I59" rel="nofollow">http://astexplorer.net/#/B46lew7I59</a></p>
<p dir="auto"><strong>Actual behavior:</strong><br>
...compared to the one produced by the tsc (note the issues found in <code class="notranslate">parseDiagnostics</code>):<br>
<a href="http://astexplorer.net/#/G5L3CptVNq" rel="nofollow">http://astexplorer.net/#/G5L3CptVNq</a></p>
<p dir="auto">Removing the <code class="notranslate">n:</code> from <code class="notranslate">n:foo</code> resolves the parsing issues.</p> | <p dir="auto">Hi,<br>
working to a few projects I've noticed some strange behaviors, because I found a few times ts compilation errors in ts for files inside the wwwroot, that by default is excluded.<br>
I workied a bit on it and seems that the root causes were:</p>
<ol dir="auto">
<li>if I have a .d.ts that reference a ts file inside the excluded zone, it's evalutated anyway bypassing the exclude, with potential problems. This happened to me using typings: I excluded the <strong>typings/main</strong> folder, but I continued to receive errors. After this I noticed that in the <strong>typings/main.d.ts</strong> the files are referenced. excluding the main.d.ts too I solved the problem.</li>
<li>if inside the excluded zone I have another <strong>tsconfig.json</strong> file with a valid "files" section, the files are evalutated anyway, bypassing the exclude. This happened to me with angular2: to deploy an asp.net 5 app with angular, Currently I copy all the content of the angular 2 npm package from node_modules to wwwroot, but after this compiling I started having compilation problems for duplicate symbols.<br>
I solved the problem, excluding in the copy task all the .ts and tsconfig.json.</li>
</ol>
<p dir="auto">Is this by design? At the beginning is a bit confusing, though solve the problem is not hard.</p> | 0 |
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd
import numpy as np
from sklearn.datasets import load_iris
iris = load_iris()
data = iris.data
column_names = iris.feature_names
df = pd.DataFrame(iris.data, columns = column_names)
print(df.head(n=5))
df_dummy = pd.get_dummies(df, sparse = True, columns = ['petal length (cm)'] )
print(list(df), df_dummy.shape)
X = df_dummy.drop(['sepal length (cm)'], axis = 1)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">datasets</span> <span class="pl-k">import</span> <span class="pl-s1">load_iris</span>
<span class="pl-s1">iris</span> <span class="pl-c1">=</span> <span class="pl-en">load_iris</span>()
<span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">iris</span>.<span class="pl-s1">data</span>
<span class="pl-s1">column_names</span> <span class="pl-c1">=</span> <span class="pl-s1">iris</span>.<span class="pl-s1">feature_names</span>
<span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">iris</span>.<span class="pl-s1">data</span>, <span class="pl-s1">columns</span> <span class="pl-c1">=</span> <span class="pl-s1">column_names</span>)
<span class="pl-en">print</span>(<span class="pl-s1">df</span>.<span class="pl-en">head</span>(<span class="pl-s1">n</span><span class="pl-c1">=</span><span class="pl-c1">5</span>))
<span class="pl-s1">df_dummy</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">get_dummies</span>(<span class="pl-s1">df</span>, <span class="pl-s1">sparse</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span>, <span class="pl-s1">columns</span> <span class="pl-c1">=</span> [<span class="pl-s">'petal length (cm)'</span>] )
<span class="pl-en">print</span>(<span class="pl-en">list</span>(<span class="pl-s1">df</span>), <span class="pl-s1">df_dummy</span>.<span class="pl-s1">shape</span>)
<span class="pl-v">X</span> <span class="pl-c1">=</span> <span class="pl-s1">df_dummy</span>.<span class="pl-en">drop</span>([<span class="pl-s">'sepal length (cm)'</span>], <span class="pl-s1">axis</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span>)</pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">I can't do anything with the dataframe based on col names when using Sparse = True - such as dropping a variable, which is replicated above. The full error print is under details.</p>
<h4 dir="auto">Expected Output</h4>
<p dir="auto">The expected output can be seen by removing <code class="notranslate">sparse = True</code> from <code class="notranslate">df_dummy = pd.get_dummies(df, sparse = True, columns = ['petal length (cm)'] )</code>, and then running the subsequent lines.</p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<h2 dir="auto">INSTALLED VERSIONS</h2>
<p dir="auto">commit: None</p>
<p dir="auto">pandas: 0.21.0<br>
pytest: 3.2.1<br>
pip: 9.0.1<br>
setuptools: 36.5.0.post20170921<br>
Cython: 0.26.1<br>
numpy: 1.12.1<br>
scipy: 1.0.0<br>
pyarrow: None<br>
xarray: None<br>
IPython: 6.1.0<br>
sphinx: 1.6.3<br>
patsy: 0.4.1<br>
dateutil: 2.6.1<br>
pytz: 2017.2<br>
blosc: None<br>
bottleneck: 1.2.1<br>
tables: 3.4.2<br>
numexpr: 2.6.2<br>
feather: None<br>
matplotlib: 2.1.0<br>
openpyxl: 2.4.8<br>
xlrd: 1.1.0<br>
xlwt: 1.2.0<br>
xlsxwriter: 1.0.2<br>
lxml: 4.1.0<br>
bs4: 4.6.0<br>
html5lib: 0.999999999<br>
sqlalchemy: 1.1.13<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.9.6<br>
s3fs: None<br>
fastparquet: None<br>
pandas_gbq: None<br>
pandas_datareader: None<br>
In [ ]:</p>
<h2 dir="auto">COMPLETE ERROR PRINT</h2>
<hr>
<p dir="auto">TypeError Traceback (most recent call last)<br>
in ()<br>
15 print(list(df), df_dummy.shape)<br>
16<br>
---> 17 X = df_dummy.drop(['sepal length (cm)'], axis = 1)</p>
<p dir="auto">/anaconda3/lib/python3.6/site-packages/pandas/core/generic.py in drop(self, labels, axis, index, columns, level, inplace, errors)<br>
2528 for axis, labels in axes.items():<br>
2529 if labels is not None:<br>
-> 2530 obj = obj._drop_axis(labels, axis, level=level, errors=errors)<br>
2531<br>
2532 if inplace:</p>
<p dir="auto">/anaconda3/lib/python3.6/site-packages/pandas/core/generic.py in <em>drop_axis(self, labels, axis, level, errors)<br>
2561 else:<br>
2562 new_axis = axis.drop(labels, errors=errors)<br>
-> 2563 dropped = self.reindex(**{axis_name: new_axis})<br>
2564 try:<br>
2565 dropped.axes[axis</em>].set_names(axis.names, inplace=True)</p>
<p dir="auto">/anaconda3/lib/python3.6/site-packages/pandas/util/_decorators.py in wrapper(*args, **kwargs)<br>
125 <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wraps/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wraps">@wraps</a>(func)<br>
126 def wrapper(*args, **kwargs):<br>
--> 127 return func(*args, **kwargs)<br>
128<br>
129 if not PY2:</p>
<p dir="auto">/anaconda3/lib/python3.6/site-packages/pandas/core/frame.py in reindex(self, *args, **kwargs)<br>
2933 kwargs.pop('axis', None)<br>
2934 kwargs.pop('labels', None)<br>
-> 2935 return super(DataFrame, self).reindex(**kwargs)<br>
2936<br>
2937 <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/appender/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/appender">@appender</a>(_shared_docs['reindex_axis'] % _shared_doc_kwargs)</p>
<p dir="auto">/anaconda3/lib/python3.6/site-packages/pandas/core/generic.py in reindex(self, *args, **kwargs)<br>
3021 # perform the reindex on the axes<br>
3022 return self._reindex_axes(axes, level, limit, tolerance, method,<br>
-> 3023 fill_value, copy).<strong>finalize</strong>(self)<br>
3024<br>
3025 def _reindex_axes(self, axes, level, limit, tolerance, method, fill_value,</p>
<p dir="auto">/anaconda3/lib/python3.6/site-packages/pandas/core/frame.py in _reindex_axes(self, axes, level, limit, tolerance, method, fill_value, copy)<br>
2863 if columns is not None:<br>
2864 frame = frame._reindex_columns(columns, method, copy, level,<br>
-> 2865 fill_value, limit, tolerance)<br>
2866<br>
2867 index = axes['index']</p>
<p dir="auto">/anaconda3/lib/python3.6/site-packages/pandas/core/sparse/frame.py in _reindex_columns(self, columns, method, copy, level, fill_value, limit, takeable)<br>
701 return self._constructor(<br>
702 sdict, index=self.index, columns=columns,<br>
--> 703 default_fill_value=self._default_fill_value).<strong>finalize</strong>(self)<br>
704<br>
705 def _reindex_with_indexers(self, reindexers, method=None, fill_value=None,</p>
<p dir="auto">/anaconda3/lib/python3.6/site-packages/pandas/core/sparse/frame.py in <strong>init</strong>(self, data, index, columns, default_kind, default_fill_value, dtype, copy)<br>
89 fill_value=default_fill_value)<br>
90 elif isinstance(data, dict):<br>
---> 91 mgr = self._init_dict(data, index, columns, dtype=dtype)<br>
92 elif isinstance(data, (np.ndarray, list)):<br>
93 mgr = self._init_matrix(data, index, columns, dtype=dtype)</p>
<p dir="auto">/anaconda3/lib/python3.6/site-packages/pandas/core/sparse/frame.py in _init_dict(self, data, index, columns, dtype)<br>
168 sdict.update((c, nan_arr) for c in columns if c not in sdict)<br>
169<br>
--> 170 return to_manager(sdict, columns, index)<br>
171<br>
172 def _init_matrix(self, data, index, columns, dtype=None):</p>
<p dir="auto">/anaconda3/lib/python3.6/site-packages/pandas/core/sparse/frame.py in to_manager(sdf, columns, index)<br>
896<br>
897 return create_block_manager_from_arrays(<br>
--> 898 [sdf[c] for c in columns], columns, axes)<br>
899<br>
900</p>
<p dir="auto">/anaconda3/lib/python3.6/site-packages/pandas/core/internals.py in create_block_manager_from_arrays(arrays, names, axes)<br>
4630<br>
4631 try:<br>
-> 4632 blocks = form_blocks(arrays, names, axes)<br>
4633 mgr = BlockManager(blocks, axes)<br>
4634 mgr._consolidate_inplace()</p>
<p dir="auto">/anaconda3/lib/python3.6/site-packages/pandas/core/internals.py in form_blocks(arrays, names, axes)<br>
4726<br>
4727 if len(sparse_items) > 0:<br>
-> 4728 sparse_blocks = _sparse_blockify(sparse_items)<br>
4729 blocks.extend(sparse_blocks)<br>
4730</p>
<p dir="auto">/anaconda3/lib/python3.6/site-packages/pandas/core/internals.py in _sparse_blockify(tuples, dtype)<br>
4788 array = _maybe_to_sparse(array)<br>
4789 block = make_block(array, klass=SparseBlock, fastpath=True,<br>
-> 4790 placement=[i])<br>
4791 new_blocks.append(block)<br>
4792</p>
<p dir="auto">/anaconda3/lib/python3.6/site-packages/pandas/core/internals.py in make_block(values, placement, klass, ndim, dtype, fastpath)<br>
2950 placement=placement, dtype=dtype)<br>
2951<br>
-> 2952 return klass(values, ndim=ndim, fastpath=fastpath, placement=placement)<br>
2953<br>
2954 # TODO: flexible with index=None and/or items=None</p>
<p dir="auto">/anaconda3/lib/python3.6/site-packages/pandas/core/internals.py in <strong>init</strong>(self, values, placement, ndim, fastpath, **kwargs)<br>
1701<br>
1702 if not isinstance(values, self._holder):<br>
-> 1703 raise TypeError("values must be {0}".format(self._holder.<strong>name</strong>))<br>
1704<br>
1705 self.values = values</p>
</details> | <p dir="auto">I got the error<br>
<b> AttributeError: 'IntBlock' object has no attribute 'sp_index' </b></p>
<p dir="auto">when converting a SparseDataFrame to Scipy csr_matrix using the following code:</p>
<p dir="auto"><i>dfTotalCat = get_dummies(dfTotalCat, sparse=True)</i></p><i>
</i><p dir="auto"><i>XTotalCat = csr_matrix(dfTotalCat.to_coo()) </i></p>
<p dir="auto">The SparseDataFrame is obtained from get_dummies.</p>
<p dir="auto">Following is the exact error trace:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "pandaSrc.py", line 76, in <br>
XTotalCat = csr_matrix(dfTotalCat.to_coo())<br>
File "C:\Users\nagabhushan.s\AppData\Local\Programs\Python\Python36\lib\site-p<br>
ackages\pandas\core\sparse\frame.py", line 255, in to_coo<br>
row = s.sp_index.to_int_index().indices<br>
File "C:\Users\nagabhushan.s\AppData\Local\Programs\Python\Python36\lib\site-p<br>
ackages\pandas\core\generic.py", line 3614, in <strong>getattr</strong><br>
return object.<strong>getattribute</strong>(self, name)<br>
File "C:\Users\nagabhushan.s\AppData\Local\Programs\Python\Python36\lib\site-p<br>
ackages\pandas\core\sparse\series.py", line 245, in sp_index<br>
return self.block.sp_index<br>
AttributeError: 'IntBlock' object has no attribute 'sp_index'</p> | 1 |
<p dir="auto">Complains on e.g. <code class="notranslate">"git.path": null,</code>. Pops up after I edit my user <code class="notranslate">settings.json</code> and save. I'm on Win7, VSCode 0.10.8.</p>
<blockquote>
<p dir="auto">Incorrect type. Expected "String"<br>
\settings.json(154,14)</p>
</blockquote>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1297882/13001459/691e095a-d166-11e5-80f2-b7bcc4410eff.png"><img src="https://cloud.githubusercontent.com/assets/1297882/13001459/691e095a-d166-11e5-80f2-b7bcc4410eff.png" alt="image" style="max-width: 100%;"></a></p> | <p dir="auto">Hi,</p>
<p dir="auto">After updating to version 0.10.8 i have warning in the status bar.<br>
The only extension installed is for golang.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/605434/12926463/2fbdd542-cf6c-11e5-8737-33522f604835.png"><img src="https://cloud.githubusercontent.com/assets/605434/12926463/2fbdd542-cf6c-11e5-8737-33522f604835.png" alt="2016-02-09 20_25_58-search" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/605434/12926467/38fae460-cf6c-11e5-8bff-c70f24548128.png"><img src="https://cloud.githubusercontent.com/assets/605434/12926467/38fae460-cf6c-11e5-8bff-c70f24548128.png" alt="2016-02-09 20_26_31-start" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/605434/12926471/3cf740f4-cf6c-11e5-8172-848260bb3212.png"><img src="https://cloud.githubusercontent.com/assets/605434/12926471/3cf740f4-cf6c-11e5-8172-848260bb3212.png" alt="2016-02-09 20_27_16-start" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/605434/12926477/4026a4ae-cf6c-11e5-8a20-f54de921dd8a.png"><img src="https://cloud.githubusercontent.com/assets/605434/12926477/4026a4ae-cf6c-11e5-8a20-f54de921dd8a.png" alt="2016-02-09 20_27_41-start" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/605434/12926481/42e8909e-cf6c-11e5-915c-84c5f98fdc25.png"><img src="https://cloud.githubusercontent.com/assets/605434/12926481/42e8909e-cf6c-11e5-915c-84c5f98fdc25.png" alt="2016-02-09 20_28_14-start" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto"><em>Please make sure that this is a bug. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template</em></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow):</li>
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows10 64bit</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:</li>
<li>TensorFlow installed from (source or binary): binary</li>
<li>TensorFlow version (use command below): 1.12, 1.11</li>
<li>Python version:3.6.8</li>
<li>Bazel version (if compiling from source):</li>
<li>GCC/Compiler version (if compiling from source):</li>
<li>CUDA/cuDNN version:7.4.2, 7.3.1</li>
<li>GPU model and memory: CUDA 9.0</li>
</ul>
<p dir="auto"><strong>Describe the current behavior</strong><br>
I have installed TF using pip, I have tested and it was able to detect the GPU, but when start to train, it throws the error below:</p>
<blockquote>
<p dir="auto">UnknownError (see above for traceback): Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.<br>
[[node FirstStageFeatureExtractor/InceptionV2/InceptionV2/Conv2d_1a_7x7/separable_conv2d (defined at C:\Users\bahra\Anaconda3\lib\site-packages\tensorflow\contrib\layers\python\layers\layers.py:2777) = Conv2D[T=DT_FLOAT, data_format="NCHW", dilations=[1, 1, 1, 1], padding="VALID", strides=[1, 1, 1, 1], use_cudnn_on_gpu=true, _device="/job:localhost/replica:0/task:0/device:GPU:0"](FirstStageFeatureExtractor/InceptionV2/InceptionV2/Conv2d_1a_7x7/separable_conv2d/depthwise, FirstStageFeatureExtractor/InceptionV2/Conv2d_1a_7x7/pointwise_weights/read/_165)]]<br>
[[{{node BatchMultiClassNonMaxSuppression/map/while/Exit_6/_76}} = _Recv<a href="">client_terminated=false, recv_device="/job:localhost/replica:0/task:0/device:CPU:0", send_device="/job:localhost/replica:0/task:0/device:GPU:0", send_device_incarnation=1, tensor_name="edge_1252_BatchMultiClassNonMaxSuppression/map/while/Exit_6", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:CPU:0"</a>]]</p>
</blockquote>
<p dir="auto"><strong>Note</strong><br>
I have tried TF 1.12, 1.11, and 1.8.0 all have the same problem.<br>
Why it throwing this error and how to solve?</p>
<p dir="auto">Before this error, I was able to train, and it was successfully worked, but when to start the second time training then this error happens.</p> | <h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>:<br>
No</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:<br>
Mac OS X 10.12.4, Darwin</li>
<li><strong>TensorFlow installed from (source or binary)</strong>:<br>
Source, git tag 1.2.0 RC 2</li>
<li><strong>TensorFlow version (use command below)</strong>:<br>
1.2 RC 2</li>
<li><strong>Bazel version (if compiling from source)</strong>:<br>
bazel version<br>
..............<br>
Build label: 0.4.3-homebrew<br>
Build target: bazel-out/local-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar<br>
Build time: Thu Dec 22 15:20:15 2016 (1482420015)<br>
Build timestamp: 1482420015<br>
Build timestamp as int: 1482420015</li>
<li><strong>CUDA/cuDNN version</strong>:<br>
N/A</li>
<li><strong>GPU model and memory</strong>:<br>
N/A</li>
<li><strong>Exact command to reproduce</strong>:<br>
./configure<br>
Please specify the location of python. [Default is /usr/bin/python]:<br>
Found possible Python library paths:<br>
/Library/Python/2.7/site-packages<br>
Please input the desired Python library path to use. Default is [/Library/Python/2.7/site-packages]</li>
</ul>
<p dir="auto">Using python library path: /Library/Python/2.7/site-packages<br>
Do you wish to build TensorFlow with MKL support? [y/N] y<br>
MKL support will be enabled for TensorFlow<br>
Do you wish to download MKL LIB from the web? [Y/n] Y<br>
Darwin is unsupported yet</p>
<p dir="auto">You can collect some of this information using our environment capture script:<br>
<a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh</a><br>
N/A<br>
You can obtain the TensorFlow version with</p>
<p dir="auto">python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</p>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">Darwin / Mac OS X support for Intel's optional MKL optimizations. MKL appears to have darwin support, so I am unsure why it is not supported in Tensorflow. I imagine this is on a to-do, but a publicly tracked feature request might be helpful. Thank you.</p>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">N/A</p> | 0 |
<p dir="auto">I like this new feature... I have some suggested improvements. Open to discussion of course :)</p>
<p dir="auto">Let's take a simple use case. I have a file <code class="notranslate">.babelrc</code>. This file is a JSON file. VS Code detects it as Plain Text. I click in the bottom right to change it to <code class="notranslate">JSON</code>. I see that there are two options "Auto Detect" and "Configure file association for .babelrc".</p>
<p dir="auto">I try "Auto Detect". The file is still Plain Text. (1) I would expect Auto Detect to intelligently figure out I am using JSON.</p>
<p dir="auto">I try "Configure file association for .babelrc." I am taken to settings.json. A popup explains that I may need to restart. I don't see any instructions nor do I know where to look. (2) I am not sure how to proceed.</p>
<p dir="auto">I try setting <code class="notranslate">.babelrc</code> to JSON. This works as expected. I close the file and come back to it. Its back to Plain Text. (3) I would have expected it to stay JSON.</p>
<p dir="auto">Couple of ideas. For (1) can we intelligently figure out what the file is? We could start with a JSON file or other common configuration files. Also, what is "Auto Detect" supposed to do? It seems like we're already auto detecting every single file. We could consider dropping it.</p>
<p dir="auto">(2) We should provide some prompt for settings. Even a navigation and highlighting of the settings command that needs to be configured would be helpful. This could be similar to what <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alexandrudima/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alexandrudima">@alexandrudima</a> did for keybindings. As it stands, I need to know to trigger suggest to know what to type. This isn't obvious, especially for new users.</p>
<p dir="auto">(3) What if VS Code saved a file's association automatically. For example if I set .babelrc to JSON, I would expect there to be an association and never have to do it again (at least for the workspace I am in).</p>
<p dir="auto">Just some thoughts.</p>
<p dir="auto">// <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/chrisdias/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/chrisdias">@chrisdias</a></p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> file association</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> auto save</li>
</ul> | 1 |
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="136722135" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/1300" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/1300/hovercard" href="https://github.com/tensorflow/tensorflow/issues/1300">#1300</a></p>
<p dir="auto">I have got a nvidia p100 GPU which is support fp16, and I run the TF case 'cifar10_train.py'. Without option '--use_fp16', the performance is also 1600 examples/sec, and with the option '--use_fp16', the performance down to 500 examples/sec. Any ideas about this issue?</p>
<p dir="auto">userid@ubuntu-WK-4xP100:<del>/weike/tensorflow-r0.11/tensorflow/models/image/cifar10$ vi cifar10_train.py<br>
userid@ubuntu-WK-4xP100:</del>/weike/tensorflow-r0.11/tensorflow/models/image/cifar10$ python cifar10_train.py<br>
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.so.8.0 locally<br>
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcudnn.so.5 locally<br>
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcufft.so.8.0 locally<br>
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcuda.so.1 locally<br>
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcurand.so.8.0 locally</p>
<blockquote>
<blockquote>
<p dir="auto">Downloading cifar-10-binary.tar.gz 100.0%<br>
...<br>
2016-11-14 00:07:57.143739: step 0, loss = 4.67 (12.1 examples/sec; 10.549 sec/batch)<br>
2016-11-14 00:07:58.395209: step 10, loss = 4.57 (1693.6 examples/sec; 0.076 sec/batch)<br>
2016-11-14 00:07:59.177525: step 20, loss = 4.97 (1668.9 examples/sec; 0.077 sec/batch)<br>
2016-11-14 00:07:59.957789: step 30, loss = 4.43 (1588.3 examples/sec; 0.081 sec/batch)<br>
2016-11-14 00:08:00.738431: step 40, loss = 4.52 (1690.5 examples/sec; 0.076 sec/batch)<br>
2016-11-14 00:08:01.501940: step 50, loss = 4.33 (1680.4 examples/sec; 0.076 sec/batch)<br>
2016-11-14 00:08:02.241604: step 60, loss = 4.20 (1733.4 examples/sec; 0.074 sec/batch)<br>
2016-11-14 00:08:03.001845: step 70, loss = 4.27 (1706.0 examples/sec; 0.075 sec/batch)<br>
2016-11-14 00:08:03.765522: step 80, loss = 4.18 (1601.3 examples/sec; 0.080 sec/batch)<br>
2016-11-14 00:08:04.516780: step 90, loss = 4.25 (1646.3 examples/sec; 0.078 sec/batch)</p>
</blockquote>
</blockquote>
<p dir="auto">userid@ubuntu-WK-4xP100:~/weike/tensorflow-r0.11/tensorflow/models/image/cifar10$ python cifar10_train.py --use_fp16<br>
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.so.8.0 locally<br>
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcudnn.so.5 locally<br>
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcufft.so.8.0 locally<br>
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcuda.so.1 locally<br>
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcurand.so.8.0 locally<br>
Filling queue with 20000 CIFAR images before starting to train. This will take a few minutes.<br>
..<br>
2016-11-14 00:09:09.382854: step 0, loss = 4.67 (12.3 examples/sec; 10.411 sec/batch)<br>
2016-11-14 00:09:11.923842: step 10, loss = 4.58 (659.6 examples/sec; 0.194 sec/batch)<br>
2016-11-14 00:09:13.918448: step 20, loss = 6.62 (460.6 examples/sec; 0.278 sec/batch)<br>
2016-11-14 00:09:16.211809: step 30, loss = 4.37 (583.7 examples/sec; 0.219 sec/batch)<br>
2016-11-14 00:09:18.327690: step 40, loss = 4.30 (618.3 examples/sec; 0.207 sec/batch)<br>
2016-11-14 00:09:20.395409: step 50, loss = 4.37 (643.8 examples/sec; 0.199 sec/batch)<br>
2016-11-14 00:09:22.466230: step 60, loss = 4.32 (574.0 examples/sec; 0.223 sec/batch)<br>
2016-11-14 00:09:24.533225: step 70, loss = 4.17 (646.2 examples/sec; 0.198 sec/batch)<br>
2016-11-14 00:09:26.609277: step 80, loss = 2.59 (601.5 examples/sec; 0.213 sec/batch)<br>
2016-11-14 00:09:28.703648: step 90, loss = 4.15 (625.5 examples/sec; 0.205 sec/batch)</p> | <p dir="auto"><em>Please make sure that this is a bug. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template</em></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes</li>
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): macOS High Sierra</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:</li>
<li>TensorFlow installed from (source or binary): binary</li>
<li>TensorFlow version (use command below): 1.13.1</li>
<li>Python version: 2.7.14</li>
<li>Bazel version (if compiling from source):</li>
<li>GCC/Compiler version (if compiling from source):</li>
<li>CUDA/cuDNN version: None</li>
<li>GPU model and memory: None</li>
</ul>
<p dir="auto">You can collect some of this information using our environment capture <a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">script</a><br>
You can also obtain the TensorFlow version with<br>
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</p>
<p dir="auto"><strong>Describe the current behavior</strong></p>
<p dir="auto">I'm currently using MonitoredTrainingSession and passing it the CheckpointSaverHook. It works fine for new models. When I want to restore a model, I give a path to the <code class="notranslate">checkpoint_dir</code> arg. However, this also inits the default CheckpointSaver, and it will double save checkpoints in the directory. This is evident if I change <code class="notranslate">checkpoint_basename</code> as I get duplicate checkpoints at each global step.</p>
<p dir="auto"><strong>Describe the expected behavior</strong></p>
<p dir="auto">I would not expect the default CheckpointSaver to init, and instead use the params given by the CheckpointSaverHook.</p>
<p dir="auto"><strong>Code to reproduce the issue</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="...
initializer_hook = _DatasetInitializerHook(init_train, self.train_tfrecords_glob,
queue_name=self.tensorq_name)
summary_hook = tf.train.SummarySaverHook(save_steps=50, save_secs=None, summary_op=summary_op)
logging_hook = tf.train.LoggingTensorHook(tensors={'step': global_step, 'loss': loss,
'accuracy': acc_op},
every_n_iter=logging_step)
saver = tf.train.Saver(max_to_keep=2)
saver_hook = tf.train.CheckpointSaverHook(checkpoint_dir=self.ckpt_dir,
saver=saver, save_steps=save_step,
checkpoint_basename='latest_model')
step_hook = tf.train.StepCounterHook(every_n_steps=logging_step)
hooks = [summary_hook, logging_hook]
# Checkpoint Saver - Check for new model
if self.new_model:
logging.info('Starting New Model...existing ckpts will be deleted')
hooks.extend([saver_hook, step_hook])
fl = [f for f in os.listdir(self.ckpt_dir)]
for f in fl:
os.remove(os.path.join(self.ckpt_dir, f))
checkpoint_dir = None
else:
checkpoint_dir = self.ckpt_dir
hooks.append(saver_hook)
# Start Training
with tf.train.MonitoredTrainingSession(
checkpoint_dir=checkpoint_dir,
hooks=[initializer_hook],
chief_only_hooks=hooks,
log_step_count_steps=logging_step,
config=tf.ConfigProto(allow_soft_placement=True)) as mon_sess:
while not mon_sess.should_stop():
mon_sess.run(training_op)
logging.info("Training Completed")"><pre class="notranslate"><code class="notranslate">...
initializer_hook = _DatasetInitializerHook(init_train, self.train_tfrecords_glob,
queue_name=self.tensorq_name)
summary_hook = tf.train.SummarySaverHook(save_steps=50, save_secs=None, summary_op=summary_op)
logging_hook = tf.train.LoggingTensorHook(tensors={'step': global_step, 'loss': loss,
'accuracy': acc_op},
every_n_iter=logging_step)
saver = tf.train.Saver(max_to_keep=2)
saver_hook = tf.train.CheckpointSaverHook(checkpoint_dir=self.ckpt_dir,
saver=saver, save_steps=save_step,
checkpoint_basename='latest_model')
step_hook = tf.train.StepCounterHook(every_n_steps=logging_step)
hooks = [summary_hook, logging_hook]
# Checkpoint Saver - Check for new model
if self.new_model:
logging.info('Starting New Model...existing ckpts will be deleted')
hooks.extend([saver_hook, step_hook])
fl = [f for f in os.listdir(self.ckpt_dir)]
for f in fl:
os.remove(os.path.join(self.ckpt_dir, f))
checkpoint_dir = None
else:
checkpoint_dir = self.ckpt_dir
hooks.append(saver_hook)
# Start Training
with tf.train.MonitoredTrainingSession(
checkpoint_dir=checkpoint_dir,
hooks=[initializer_hook],
chief_only_hooks=hooks,
log_step_count_steps=logging_step,
config=tf.ConfigProto(allow_soft_placement=True)) as mon_sess:
while not mon_sess.should_stop():
mon_sess.run(training_op)
logging.info("Training Completed")
</code></pre></div>
<p dir="auto"><strong>Other info / logs</strong><br>
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p> | 0 |
<h3 dir="auto">Vue.js version</h3>
<p dir="auto">2.1.4</p>
<h3 dir="auto">Reproduction Link</h3>
<p dir="auto"><a href="https://jsfiddle.net/aleksey_beskosty/zz5svy6q/" rel="nofollow">https://jsfiddle.net/aleksey_beskosty/zz5svy6q/</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Select element is declared as:<br>
<code class="notranslate"><select :value="val">...</select></code></p>
<h3 dir="auto">What is Expected?</h3>
<p dir="auto">When <code class="notranslate">val</code> is changed, select element updates its value and shows it.</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto"><code class="notranslate">val</code> is changed but select doesn't update value property.</p> | <p dir="auto">Take the following</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<div>
<select :value='something'></select>
</div>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">select</span> <span class="pl-c1">:value</span>='<span class="pl-s">something</span>'<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">select</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div>
<p dir="auto">Currently, vue-template-compiler generates the render function with <code class="notranslate">{attrs:{"value":something}}</code>. However, vue supports the <code class="notranslate">v-bind:value</code> syntax with selects. I would think that instead, it should generate with <code class="notranslate">{domProps:{"value":something}}</code> in a similar manner to inputs.</p>
<p dir="auto">This means no bindings can take place on the select. This works with a <code class="notranslate">v-model</code>, however this causes vuex to attempt to update the store without going through a mutator.</p>
<p dir="auto">Looks like it was caused by the fix to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="190032705" data-permission-text="Title is private" data-url="https://github.com/vuejs/vue/issues/4233" data-hovercard-type="issue" data-hovercard-url="/vuejs/vue/issues/4233/hovercard" href="https://github.com/vuejs/vue/issues/4233">#4233</a> that filters which tag / attribute combos are bound as props.</p> | 1 |
<p dir="auto">I'm having an issue that has me questioning Requests's (Oreo's?) cookie handling. Using Requests, I submit a request that successfully authenticates me to a particular server. The response includes a cookie whose <em>value</em> contains an equals ("=") character. Because the cookie's value contains "=", which is not a "legal" char (as per _LegalChars in monkeys.py), Requests quotes the entire cookie value when it submits it in subsequent requests. The server, though, considers the quoted cookie to be different than the cookie it sent to the client -- so the client is no longer authenticated.</p>
<p dir="auto">See this flow:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [6]: session = requests.session(headers=_default_headers)
In [7]: data = {
...: 'userID': 'myuser',
...: 'password': 'mypassword',
...: }
In [8]: resp = session.post('https://www.discovercard.com/cardmembersvcs/loginlogout/app/signin', data=data)
In [9]: resp.headers
Out[9]:
{'cache-control': 'no-cache="set-cookie, set-cookie2"',
'connection': 'Keep-Alive',
<snip>
'set-cookie': 'v1st=6B2AF394DCD43A57; path=/; expires=Wed, 19 Feb 2020 14:28:00 GMT; domain=.discovercard.com,
dfsedskey=62689366; Expires=Sun, 17 Feb 2013 17:25:06 GMT; Path=/; Domain=.discovercard.com,
PMData=PMV3EKKwYWpRB0ZAh7NnXgngf+fGUH7/c6RfKfa7Hiv5v2h1S1iS4MjexZtrnrPMErcNR0eyCzoWUfNFrj6bUkqxR0aQ==; Expires=Sun, 17 Feb 2013 17:25:06 GMT; Path=/; Domain=.discovercard.com; Secure,
dcsession=E7dc4gmtmOk9LkTB4xeTjRs82g8=; Path=/; Domain=.discovercard.com; Secure,
ACLOGIN=incntvtyp1=CBB; Expires=Sun, 17 Feb 2013 17:25:06 GMT; Path=/; Domain=.discovercard.com,
ACHASH=1338528939; Expires=Sun, 17 Feb 2013 17:25:06 GMT; Path=/; Domain=.discovercard.com, dcuserid=***CLEARED***; Path=/; Domain=.discovercard.com,
JSESSIONID=0001cT7y8RWiiQDuizJpy2gjQWw:16cfscb3m; Path=/',
<snip>
}"><pre class="notranslate"><code class="notranslate">In [6]: session = requests.session(headers=_default_headers)
In [7]: data = {
...: 'userID': 'myuser',
...: 'password': 'mypassword',
...: }
In [8]: resp = session.post('https://www.discovercard.com/cardmembersvcs/loginlogout/app/signin', data=data)
In [9]: resp.headers
Out[9]:
{'cache-control': 'no-cache="set-cookie, set-cookie2"',
'connection': 'Keep-Alive',
<snip>
'set-cookie': 'v1st=6B2AF394DCD43A57; path=/; expires=Wed, 19 Feb 2020 14:28:00 GMT; domain=.discovercard.com,
dfsedskey=62689366; Expires=Sun, 17 Feb 2013 17:25:06 GMT; Path=/; Domain=.discovercard.com,
PMData=PMV3EKKwYWpRB0ZAh7NnXgngf+fGUH7/c6RfKfa7Hiv5v2h1S1iS4MjexZtrnrPMErcNR0eyCzoWUfNFrj6bUkqxR0aQ==; Expires=Sun, 17 Feb 2013 17:25:06 GMT; Path=/; Domain=.discovercard.com; Secure,
dcsession=E7dc4gmtmOk9LkTB4xeTjRs82g8=; Path=/; Domain=.discovercard.com; Secure,
ACLOGIN=incntvtyp1=CBB; Expires=Sun, 17 Feb 2013 17:25:06 GMT; Path=/; Domain=.discovercard.com,
ACHASH=1338528939; Expires=Sun, 17 Feb 2013 17:25:06 GMT; Path=/; Domain=.discovercard.com, dcuserid=***CLEARED***; Path=/; Domain=.discovercard.com,
JSESSIONID=0001cT7y8RWiiQDuizJpy2gjQWw:16cfscb3m; Path=/',
<snip>
}
</code></pre></div>
<p dir="auto">So the <em>value</em> of the cookie with key "dcsession" is "E7dc4gmtmOk9LkTB4xeTjRs82g8=". The cookies dict is as expected:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [10]: session.cookies['dcsession']
Out[10]: 'E7dc4gmtmOk9LkTB4xeTjRs82g8='
In [11]: resp.cookies['dcsession']
Out[11]: 'E7dc4gmtmOk9LkTB4xeTjRs82g8='"><pre class="notranslate"><code class="notranslate">In [10]: session.cookies['dcsession']
Out[10]: 'E7dc4gmtmOk9LkTB4xeTjRs82g8='
In [11]: resp.cookies['dcsession']
Out[11]: 'E7dc4gmtmOk9LkTB4xeTjRs82g8='
</code></pre></div>
<p dir="auto">But when I make my next request to the server:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [12]: resp = session.get('https://www.discovercard.com/cardmembersvcs/achome/homepage')"><pre class="notranslate"><code class="notranslate">In [12]: resp = session.get('https://www.discovercard.com/cardmembersvcs/achome/homepage')
</code></pre></div>
<p dir="auto">The response to that request indicates "session timed out or not established". This is because of how the cookie was sent in this request:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [14]: resp.request.headers['Cookie']
Out[14]: 'ACHASH=1338528939; ACLOGIN="incntvtyp1=CBB"; JSESSIONID="0001cT7y8RWiiQDuizJpy2gjQWw:16cfscb3m";
PMData="PMV3EKKwYWpRB0ZAh7NnXgngf+fGUH7/c6RfKfa7Hiv5v2h1S1iS4MjexZtrnrPMErcNR0eyCzoWUfNFrj6bUkqxR0aQ==";
dcsession="E7dc4gmtmOk9LkTB4xeTjRs82g8="; dcuserid=***CLEARED***; dfsedskey=62689366; v1st=6B2AF394DCD43A57'"><pre class="notranslate"><code class="notranslate">In [14]: resp.request.headers['Cookie']
Out[14]: 'ACHASH=1338528939; ACLOGIN="incntvtyp1=CBB"; JSESSIONID="0001cT7y8RWiiQDuizJpy2gjQWw:16cfscb3m";
PMData="PMV3EKKwYWpRB0ZAh7NnXgngf+fGUH7/c6RfKfa7Hiv5v2h1S1iS4MjexZtrnrPMErcNR0eyCzoWUfNFrj6bUkqxR0aQ==";
dcsession="E7dc4gmtmOk9LkTB4xeTjRs82g8="; dcuserid=***CLEARED***; dfsedskey=62689366; v1st=6B2AF394DCD43A57'
</code></pre></div>
<p dir="auto">Because the server considers the quoted cookie being returned as being different from the non-quoted cookie it sent, the session is no longer authenticated.</p>
<p dir="auto">The condition where the cookie comes back from the server containing the equals character is not rare or intermittent -- it always comes back like this, and so the authentication always fails. This is not broken for people using browsers! No browser I've tried (Chrome, Safari) quotes the cookie values, so there's no problem authenticating and carrying on a session. Obviously the server in this case is an established financial institution, presumably with many millions of users, so I think that the way Requests/Oreos is handling cookies is a problem.</p>
<p dir="auto">From what I can tell from the code, Requests instantiates a monkeys.SimpleCookie. SimpleCookie decides that, since the value contains something other than what's in _LegalChars, it needs to quote the value. I can patch this so that it works for me any number of ways: adding "=" into _LegalChars, or preventing SimpleCookie from ever quoting a value, or having Requests use BaseCookie rather than SimpleCookie, or having my application re-construct the cookie header from the cookies before my next request, etc. But this does feel like a bug that should be fixed in the main branch for everybody. I'm happy to contribute a fix but am interested to know what Kenneth and/or anybody else thinks is the right way to do it.</p> | <p dir="auto">test code:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from requests import session
with session() as c:
c.get('http://www.baidu.com')
#should have cookie headers
c.get('http://www.baidu.com')"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">requests</span> <span class="pl-k">import</span> <span class="pl-s1">session</span>
<span class="pl-k">with</span> <span class="pl-en">session</span>() <span class="pl-k">as</span> <span class="pl-s1">c</span>:
<span class="pl-s1">c</span>.<span class="pl-en">get</span>(<span class="pl-s">'http://www.baidu.com'</span>)
<span class="pl-c">#should have cookie headers</span>
<span class="pl-s1">c</span>.<span class="pl-en">get</span>(<span class="pl-s">'http://www.baidu.com'</span>)</pre></div>
<p dir="auto">Server:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Set-Cookie: BAIDUID=DC1510722CF5A19A2A4C4E4DB720C5D4:FG=1; expires=Wed, 23-Nov-41 17:44:00 GMT; path=/; domain=.baidu.com"><pre class="notranslate"><span class="pl-v">Set</span><span class="pl-c1">-</span><span class="pl-v">Cookie</span>: <span class="pl-v">BAIDUID</span><span class="pl-c1">=</span><span class="pl-v">DC1510722CF5A19A2A4C4E4DB720C5D4</span>:<span class="pl-v">FG</span><span class="pl-c1">=</span><span class="pl-c1">1</span>; <span class="pl-s1">expires</span><span class="pl-c1">=</span><span class="pl-v">Wed</span>, <span class="pl-c1">23</span><span class="pl-c1">-</span><span class="pl-v">Nov</span><span class="pl-c1">-</span><span class="pl-c1">41</span> <span class="pl-c1">17</span>:<span class="pl-c1">44</span>:<span class="pl-c1">00</span> <span class="pl-v">GMT</span>; <span class="pl-s1">path</span><span class="pl-c1">=</span><span class="pl-c1">/</span>; <span class="pl-s1">domain</span><span class="pl-c1">=</span>.<span class="pl-s1">baidu</span>.<span class="pl-s1">com</span></pre></div>
<p dir="auto">Client:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Cookie: BAIDUID="DC1510722CF5A19A2A4C4E4DB720C5D4:FG=1""><pre class="notranslate"><span class="pl-v">Cookie</span>: <span class="pl-v">BAIDUID</span><span class="pl-c1">=</span><span class="pl-s">"DC1510722CF5A19A2A4C4E4DB720C5D4:FG=1"</span></pre></div>
<p dir="auto">The correct result should be:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Cookie: BAIDUID=DC1510722CF5A19A2A4C4E4DB720C5D4:FG=1"><pre class="notranslate"><span class="pl-v">Cookie</span>: <span class="pl-v">BAIDUID</span><span class="pl-c1">=</span><span class="pl-v">DC1510722CF5A19A2A4C4E4DB720C5D4</span>:<span class="pl-v">FG</span><span class="pl-c1">=</span><span class="pl-c1">1</span></pre></div>
<p dir="auto">quote function</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def _quote(str, LegalChars=_LegalChars,
idmap=_idmap, translate=string.translate):
#
# If the string does not need to be double-quoted,
# then just return the string. Otherwise, surround
# the string in doublequotes and precede quote (with a \)
# special characters.
#
if "" == translate(str, idmap, LegalChars):
return str
else:
return '"' + _nulljoin( map(_Translator.get, str, str) ) + '"'
# end _quote"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">_quote</span>(<span class="pl-s1">str</span>, <span class="pl-v">LegalChars</span><span class="pl-c1">=</span><span class="pl-s1">_LegalChars</span>,
<span class="pl-s1">idmap</span><span class="pl-c1">=</span><span class="pl-s1">_idmap</span>, <span class="pl-s1">translate</span><span class="pl-c1">=</span><span class="pl-s1">string</span>.<span class="pl-s1">translate</span>):
<span class="pl-c">#</span>
<span class="pl-c"># If the string does not need to be double-quoted,</span>
<span class="pl-c"># then just return the string. Otherwise, surround</span>
<span class="pl-c"># the string in doublequotes and precede quote (with a \)</span>
<span class="pl-c"># special characters.</span>
<span class="pl-c">#</span>
<span class="pl-k">if</span> <span class="pl-s">""</span> <span class="pl-c1">==</span> <span class="pl-en">translate</span>(<span class="pl-s1">str</span>, <span class="pl-s1">idmap</span>, <span class="pl-v">LegalChars</span>):
<span class="pl-k">return</span> <span class="pl-s1">str</span>
<span class="pl-k">else</span>:
<span class="pl-k">return</span> <span class="pl-s">'"'</span> <span class="pl-c1">+</span> <span class="pl-en">_nulljoin</span>( <span class="pl-en">map</span>(<span class="pl-s1">_Translator</span>.<span class="pl-s1">get</span>, <span class="pl-s1">str</span>, <span class="pl-s1">str</span>) ) <span class="pl-c1">+</span> <span class="pl-s">'"'</span>
<span class="pl-c"># end _quote</span></pre></div> | 1 |
<p dir="auto">I was testing different methods trying to grasp the objective. When I decided run my next solution, I got a bunch of code right under the "run bar". What you see here is only just a part of it. It's fairly long.<br>
I have had a few problems with some of my challenges were not getting validated until the next day when I logged back in. I still have one level that won't pass, unless I'm' missing something simple.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/16656823/12317050/224707e2-ba5b-11e5-9366-5690df222216.PNG"><img src="https://cloud.githubusercontent.com/assets/16656823/12317050/224707e2-ba5b-11e5-9366-5690df222216.PNG" alt="codecamp screen shot" style="max-width: 100%;"></a></p> | <p dir="auto">When users make syntax errors they will no longer get the usual error message.</p>
<p dir="auto">For example:<br>
Old output<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/10524623/12284386/2e22cba2-b964-11e5-9aa4-51429cbccb1c.png"><img src="https://cloud.githubusercontent.com/assets/10524623/12284386/2e22cba2-b964-11e5-9aa4-51429cbccb1c.png" alt="error old" style="max-width: 100%;"></a></p>
<p dir="auto">New output<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/10524623/12284489/c0d6665c-b964-11e5-9966-57e13b0b14a3.png"><img src="https://cloud.githubusercontent.com/assets/10524623/12284489/c0d6665c-b964-11e5-9966-57e13b0b14a3.png" alt="error new" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">The light and dark themes have recently been in the center of attention due to colors being added and removed again.</p>
<p dir="auto">More colors became visible due to the update of tokenizers in November. In December we decided to remove these again, to stay in sync with the classic Visual Studio Dark and Light themes.</p>
<p dir="auto">From reactions in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="122048258" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/1270" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/1270/hovercard" href="https://github.com/microsoft/vscode/issues/1270">#1270</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="123073776" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/1470" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/1470/hovercard" href="https://github.com/microsoft/vscode/issues/1470">#1470</a> and other issues, we learned that we have fans of both the classic Visual Studio dark and light themes as well as the more colorful version, e.g., from <a href="https://github.com/Microsoft/vscode/issues/1470#issuecomment-166152680" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/1470/hovercard">comment</a></p>
<blockquote>
<p dir="auto">The <code class="notranslate">Dark</code> and <code class="notranslate">Light</code> default themes were very nice in 0.10.3, I'm already missing them.</p>
</blockquote>
<p dir="auto">So we decided to bring the colors back in new themes, 'Dark+' and 'Light+'.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6461412/12168352/e64004c0-b531-11e5-8e6b-2b90c16e4939.png"><img src="https://cloud.githubusercontent.com/assets/6461412/12168352/e64004c0-b531-11e5-8e6b-2b90c16e4939.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">You can currently try these out by installing the extension 'Colorful Default Themes'. The plan is to add them to the built-in themes in the January build.</p>
<p dir="auto">In addition to 4 major colors in the Visual Studio themes (comments, strings, numbers and keywords) we now have again colors for</p>
<ul dir="auto">
<li>control flow keywords</li>
<li>type names</li>
<li>function names</li>
<li>parameter names</li>
</ul>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6461412/12168372/fe1ae9c0-b531-11e5-8578-0de2ba719fab.png"><img src="https://cloud.githubusercontent.com/assets/6461412/12168372/fe1ae9c0-b531-11e5-8578-0de2ba719fab.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">When trying the new themes out, you will still find some keywords like 'import', 'module' nor correctly highlighted. These are issues in the tokenizer that we are working on. Please post your findings here, if possible add a code snippet and don't forget to mention for what language it is :-)</p> | <p dir="auto">Didn't see another issue filed for this already so forgive me if I missed it:</p>
<p dir="auto">In VS Code December release, we've noticed that when you hover over variable names while the debugger is stopped, it works the first time but then it doesn't work again until you resume debugging and it hits a new breakpoint. Sometimes I see it stop working entirely even across debugging sessions. I don't see any requests being made to my debug adapter on hover, so I'm guessing this is happening client-side.</p> | 0 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function Component({reportType}) {
let Report = Reports[reportType];
let child = useMemo(() => {
return <Report />;
}, [Report]);"><pre class="notranslate"><code class="notranslate">function Component({reportType}) {
let Report = Reports[reportType];
let child = useMemo(() => {
return <Report />;
}, [Report]);
</code></pre></div>
<p dir="auto">says that <code class="notranslate">Report</code> is an unnecessary dependency. It's not.</p>
<p dir="auto">This is because eslint scope <code class="notranslate">.references</code> does not include JSX. I <em>suspect</em> if you pull in</p>
<p dir="auto"><a href="https://github.com/yannickcr/eslint-plugin-react/blob/master/lib/rules/jsx-uses-vars.js">https://github.com/yannickcr/eslint-plugin-react/blob/master/lib/rules/jsx-uses-vars.js</a></p>
<p dir="auto">to your app's config then this won't happen. But maybe we should do something in the Hooks plugin itself too (since the others aren't officially recommended by the React team anyway).</p> | <p dir="auto"><strong>Current behavior:</strong></p>
<p dir="auto">I have some <code class="notranslate">@mycomponents</code> in another place from project which depends on react and react-dom. For this components i use react hooks. After editing any of component i use <code class="notranslate">npm link</code>, and in project i use <code class="notranslate">npm link @mycomponents/core</code> and project crushes with this error:</p>
<p dir="auto"><code class="notranslate">Uncaught Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component.</code></p>
<p dir="auto">I was trying to publish <code class="notranslate">@mycomponents</code> in my repository and after publishing i run <code class="notranslate">npm install</code> and all works correct from node_modules.</p>
<p dir="auto">Probably problem with npm link</p>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">npm link works correctly with hooks</p>
<p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong></p>
<p dir="auto">react: v16.8.6<br>
react-dom: v16.8.6<br>
browser: Google chrome Version 73.0.3683.103 (Official Build) (64-bit)</p> | 0 |
<p dir="auto">See the following Plunker for repro: <a href="http://plnkr.co/edit/MrCUDP8qwGPj7ler4ySW" rel="nofollow">http://plnkr.co/edit/MrCUDP8qwGPj7ler4ySW</a></p>
<p dir="auto">The code <code class="notranslate">[class.selected]="toggleSvc.isActive | async"</code> where toggleSvc.isActive is a BehaviorSubject results in the following error message:</p>
<blockquote>
<p dir="auto">EXCEPTION: Expression 'toggleSvc.isActive | async in AppComponent@1:7' has changed after it was checked. Previous value: 'true'. Current value: 'true' in [toggleSvc.isActive | async in AppComponent@1:7]</p>
</blockquote>
<p dir="auto">I don't see how the value is changed after change detection - ng2 even says that it stayed the same in this error message (true -> true).</p>
<p dir="auto">Don't exactly know if this is related only to class property bindings or to all kinds, because this is currently the main thing that I'm observing.</p>
<p dir="auto">Replacing the line with <code class="notranslate">[class.selected]="toggleSvc._isActive"</code> makes it run correctly.<br>
The binding in the content (<code class="notranslate">Active: {{toggleSvc.isActive | async}}</code>) works without issues.</p> | <p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
When both a route and it's parent have an asynchronous <code class="notranslate">canActivate</code> guard, and the child is navigated to directly, both guards are run at same time.</p>
<p dir="auto"><strong>Expected behavior</strong><br>
The parent's <code class="notranslate">canActivate</code> guard should run before the child's guard. If the parent's guard is unsuccessful the child guard should not be run. If a route defines multiple <code class="notranslate">canActivate</code> guards, those can/should be run in parallel.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
<a href="http://plnkr.co/edit/s4R0INS7qjuFnRpyD8eF?p=preview" rel="nofollow">http://plnkr.co/edit/s4R0INS7qjuFnRpyD8eF?p=preview</a></p>
<p dir="auto">Plunker has a nested route <code class="notranslate">/parent/child</code>. Both have guards that simply wait and then return true. Each guard logs its start/end as well as a tick once per second to a logging service that is displayed in the root component.</p>
<p dir="auto">Click 'Go to Child` to trigger both the Parent Guard and the Child guard at the same time, and observe that they process simultaneously in the log.</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p>
<p dir="auto">In my athepp, <code class="notranslate">ParentGuard</code> checks to see if the user is authenticated and redirects accordingly, and <code class="notranslate">ChildGuard</code> loads protected data. Right now, my child guard cannot assume the user is logged in, so I have to duplicate logic from the authorization guard to wait for the user to be loaded. When I have a grandchild route, that has to duplicate logic from two parent guards. I would like to be able to separate concerns more rather than duplicate auth logic in all my guards.</p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<ul dir="auto">
<li><strong>Angular version:</strong> 4.0.1</li>
</ul> | 0 |
<p dir="auto">Back a couple weeks ago, I had a program with this code here:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="for ch in msg.chars() {
if !ch.is_alphabetic() { continue; }
let s = caesar_shift(ch, key);
e.push(s);
}"><pre class="notranslate"><span class="pl-k">for</span> ch <span class="pl-k">in</span> msg<span class="pl-kos">.</span><span class="pl-en">chars</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> !ch<span class="pl-kos">.</span><span class="pl-en">is_alphabetic</span><span class="pl-kos">(</span><span class="pl-kos">)</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">let</span> s = <span class="pl-en">caesar_shift</span><span class="pl-kos">(</span>ch<span class="pl-kos">,</span> key<span class="pl-kos">)</span><span class="pl-kos">;</span>
e<span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span>s<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">This code compiled just fine, where msg is an <code class="notranslate">&str</code> parameter to the function in question.</p>
<p dir="auto">Now, having duplicated the same code with the same variable as:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="for ch in msg.chars() {
if !ch.is_alphabetic() { continue; }
let p = ch.to_digit(36).unwrap() - 10; // Need to shift down by 10 for range of 0-25
let c = alpha.chars().nth(p as usize).unwrap();
e.push(c);
}"><pre class="notranslate"><span class="pl-k">for</span> ch <span class="pl-k">in</span> msg<span class="pl-kos">.</span><span class="pl-en">chars</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> !ch<span class="pl-kos">.</span><span class="pl-en">is_alphabetic</span><span class="pl-kos">(</span><span class="pl-kos">)</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">let</span> p = ch<span class="pl-kos">.</span><span class="pl-en">to_digit</span><span class="pl-kos">(</span><span class="pl-c1">36</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">unwrap</span><span class="pl-kos">(</span><span class="pl-kos">)</span> - <span class="pl-c1">10</span><span class="pl-kos">;</span> <span class="pl-c">// Need to shift down by 10 for range of 0-25</span>
<span class="pl-k">let</span> c = alpha<span class="pl-kos">.</span><span class="pl-en">chars</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">nth</span><span class="pl-kos">(</span>p <span class="pl-k">as</span> <span class="pl-smi">usize</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">unwrap</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
e<span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span>c<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">the compiler presents this error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="src/lib/classical.rs:163:9: 168:10 error: mismatched types:
expected `collections::string::String`,
found `()`
(expected struct `collections::string::String`,
found ()) [E0308]
src/lib/classical.rs:163 for ch in msg.chars() {
src/lib/classical.rs:164 if !ch.is_alphabetic() { continue; }
src/lib/classical.rs:165 let p = ch.to_digit(36).unwrap() - 10; // Need to shift down by 10 for range of 0-25
src/lib/classical.rs:166 let c = alpha.chars().nth(p as usize).unwrap();
src/lib/classical.rs:167 e.push(c);
src/lib/classical.rs:168 }
note: in expansion of for loop expansion
src/lib/classical.rs:163:9: 168:10 note: expansion site
src/lib/classical.rs:163:9: 168:10 help: run `rustc --explain E0308` to see a detailed explanation"><pre class="notranslate"><code class="notranslate">src/lib/classical.rs:163:9: 168:10 error: mismatched types:
expected `collections::string::String`,
found `()`
(expected struct `collections::string::String`,
found ()) [E0308]
src/lib/classical.rs:163 for ch in msg.chars() {
src/lib/classical.rs:164 if !ch.is_alphabetic() { continue; }
src/lib/classical.rs:165 let p = ch.to_digit(36).unwrap() - 10; // Need to shift down by 10 for range of 0-25
src/lib/classical.rs:166 let c = alpha.chars().nth(p as usize).unwrap();
src/lib/classical.rs:167 e.push(c);
src/lib/classical.rs:168 }
note: in expansion of for loop expansion
src/lib/classical.rs:163:9: 168:10 note: expansion site
src/lib/classical.rs:163:9: 168:10 help: run `rustc --explain E0308` to see a detailed explanation
</code></pre></div>
<p dir="auto">This was using the nightly build in both cases:</p>
<p dir="auto">Now: <code class="notranslate">rustc 1.4.0-nightly (f3f23bf9c 2015-08-30)</code><br>
Then: <code class="notranslate">rustc 1.4.0-nightly (ab450ef22 2015-08-14)</code></p>
<p dir="auto">Strangely, the old code does not cause the compiler to error out, but I see literally no difference in the new code to speak of that would cause it to not understand what type msg is.</p> | <p dir="auto">Here's an example of where this gets really painful:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use std::rt::io;
fn foo(a: &mut io::Stream) {
write!(a, "test");
}
fn main() {
} "><pre class="notranslate"><span class="pl-k">use</span> std<span class="pl-kos">::</span>rt<span class="pl-kos">::</span>io<span class="pl-kos">;</span>
<span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-k">mut</span> io<span class="pl-kos">::</span><span class="pl-smi">Stream</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">write</span><span class="pl-en">!</span><span class="pl-kos">(</span>a, <span class="pl-s">"test"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span> </pre></div>
<p dir="auto">yields</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo.rs:4:11: 4:12 error: mismatched types: expected `&mut std::rt::io::Writer<no-bounds>` but found `&mut std::rt::io::Stream<no-bounds>` (expected trait std::rt::io::Writer but found trait std::rt::io::Stream)
foo.rs:4 write!(a, "test");
^
note: in expansion of format_args!
<std-macros>:225:8: 225:72 note: expansion site
<std-macros>:224:4: 226:6 note: in expansion of write!
foo.rs:4:4: 4:22 note: expansion site
error: aborting due to previous error"><pre class="notranslate"><code class="notranslate">foo.rs:4:11: 4:12 error: mismatched types: expected `&mut std::rt::io::Writer<no-bounds>` but found `&mut std::rt::io::Stream<no-bounds>` (expected trait std::rt::io::Writer but found trait std::rt::io::Stream)
foo.rs:4 write!(a, "test");
^
note: in expansion of format_args!
<std-macros>:225:8: 225:72 note: expansion site
<std-macros>:224:4: 226:6 note: in expansion of write!
foo.rs:4:4: 4:22 note: expansion site
error: aborting due to previous error
</code></pre></div>
<p dir="auto">Nominating for production-ready (and possibly priority)</p> | 0 |
<h1 dir="auto"><g-emoji class="g-emoji" alias="star2" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f31f.png">🌟</g-emoji> New model addition</h1>
<p dir="auto">MobileBERT</p>
<h2 dir="auto">Model description</h2>
<p dir="auto">MobileBERT is a thin version of BERT_LARGE, while equipped with bottleneck structures and a carefully designed balance between self-attentions and feed-forward networks.</p>
<h2 dir="auto">Open source status</h2>
<ul class="contains-task-list">
<li class="task-list-item">
<p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> the model implementation is available: (give details)<br>
<a href="https://github.com/google-research/google-research/tree/master/mobilebert">https://github.com/google-research/google-research/tree/master/mobilebert</a></p>
</li>
<li class="task-list-item">
<p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> the model weights are available: (give details)<br>
<a href="https://storage.googleapis.com/cloud-tpu-checkpoints/mobilebert/uncased_L-24_H-128_B-512_A-4_F-4_OPT.tar.gz" rel="nofollow">https://storage.googleapis.com/cloud-tpu-checkpoints/mobilebert/uncased_L-24_H-128_B-512_A-4_F-4_OPT.tar.gz</a></p>
</li>
<li class="task-list-item">
<p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> who are the authors: (mention them, if possible by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gh-username/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gh-username">@gh-username</a>)<br>
Google LLC<br>
Xiaodan Song<br>
Zhiqing Sun<br>
Hongkun Yu<br>
Denny Zou</p>
</li>
</ul> | <h1 dir="auto">🐛 Bug</h1>
<h2 dir="auto">Information</h2>
<p dir="auto">Model I am using (Bert, XLNet ...): No specified</p>
<p dir="auto">Language I am using the model on (English, Chinese ...): English</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"> the official example scripts: (give details below)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> 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" checked=""> my own task or dataset: (give details below)</li>
</ul>
<h2 dir="auto">To reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>I have tried using pipeline on my own purpose, but I realized it will cause errors if I input long sentence on some tasks, it should do truncation automatically, but it does not. And the pipeline function does not take extra argument so we cannot add something like <code class="notranslate">truncation=True</code>. Here is an example on sentiment-analysis task:</li>
</ol>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from transformers import pipeline
nlp = pipeline('sentiment-analysis')
text = "This is an example"*300
nlp(text)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">transformers</span> <span class="pl-k">import</span> <span class="pl-s1">pipeline</span>
<span class="pl-s1">nlp</span> <span class="pl-c1">=</span> <span class="pl-en">pipeline</span>(<span class="pl-s">'sentiment-analysis'</span>)
<span class="pl-s1">text</span> <span class="pl-c1">=</span> <span class="pl-s">"This is an example"</span><span class="pl-c1">*</span><span class="pl-c1">300</span>
<span class="pl-en">nlp</span>(<span class="pl-s1">text</span>)</pre></div>
<ol start="2" dir="auto">
<li>The error message is below:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipython-input-31-0a8ce849cc29> in <module>()
2 nlp = pipeline('sentiment-analysis')
3 text = "This is an example"*300
----> 4 nlp(text)
11 frames
/usr/local/lib/python3.6/dist-packages/torch/nn/functional.py in embedding(input, weight, padding_idx, max_norm, norm_type, scale_grad_by_freq, sparse)
1722 # remove once script supports set_grad_enabled
1723 _no_grad_embedding_renorm_(weight, input, max_norm, norm_type)
-> 1724 return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse)
1725
1726
IndexError: index out of range in self"><pre class="notranslate"><code class="notranslate">---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipython-input-31-0a8ce849cc29> in <module>()
2 nlp = pipeline('sentiment-analysis')
3 text = "This is an example"*300
----> 4 nlp(text)
11 frames
/usr/local/lib/python3.6/dist-packages/torch/nn/functional.py in embedding(input, weight, padding_idx, max_norm, norm_type, scale_grad_by_freq, sparse)
1722 # remove once script supports set_grad_enabled
1723 _no_grad_embedding_renorm_(weight, input, max_norm, norm_type)
-> 1724 return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse)
1725
1726
IndexError: index out of range in self
</code></pre></div>
<ol start="3" dir="auto">
<li>same error on NER task, maybe some other task as well.</li>
</ol>
<h2 dir="auto">Expected behavior</h2>
<h2 dir="auto">Environment info</h2>
<ul dir="auto">
<li><code class="notranslate">transformers</code> version: 3.0.2</li>
<li>Platform: Google Colab</li>
<li>Python version: Python 3.6.9</li>
<li>PyTorch version (GPU?):1.5.1+cu101, no GPU</li>
<li>Tensorflow version (GPU?): no</li>
<li>Using GPU in script?: no</li>
<li>Using distributed or parallel set-up in script?: no</li>
</ul> | 0 |
<p dir="auto">Not sure if this is a bug, but the following incorrect code:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class C {
get foo() { return '' }
get foo() { return '' }
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">C</span> <span class="pl-kos">{</span>
<span class="pl-k">get</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s">''</span> <span class="pl-kos">}</span>
<span class="pl-k">get</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s">''</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">produces the output:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var C = (function () {
function C() {
}
Object.defineProperty(C.prototype, "foo", {
get: function () {
return '';
},
enumerable: true,
configurable: true
});
return C;
})();"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-v">C</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">function</span> <span class="pl-v">C</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span>
<span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-v">C</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">,</span> <span class="pl-s">"foo"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-en">get</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s">''</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">enumerable</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">configurable</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">return</span> <span class="pl-v">C</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">The source code is a duplicate identifier error, but I would think we'd still emit the getter twice.</p> | <p dir="auto">It should be possible to ignore errors in d.ts,<br>
it's pretty annoying to have hundert of errors just because of some definition files of a third party library and it makes it hard to identify your own errors.<br>
So I would recommend a flag in the tsconfig-file to prevent those errors to be mentioned.</p> | 0 |
<h3 dir="auto">Version</h3>
<p dir="auto">2.6.10</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://codepen.io/xiangyuecn/pen/eYmmPNP" rel="nofollow">https://codepen.io/xiangyuecn/pen/eYmmPNP</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>Look at the <a href="https://codepen.io/xiangyuecn/pen/eYmmPNP" rel="nofollow">test code</a> running interface. <code class="notranslate">OnceMsg</code> area should have been static, but it is not!</li>
<li>Look at the <code class="notranslate">Test 3</code> part of the <a href="https://codepen.io/xiangyuecn/pen/eYmmPNP" rel="nofollow">test code</a>. It's exactly the same as the <code class="notranslate">Test 2</code> part, but their performance is not the same.</li>
<li>Similar to this kind of code, they are the same, but the results are different:</li>
</ol>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<div>
<template v-once>[{{ getTime() }}] {{ name }}</template>
<span v-once>[{{ getTime() }}] {{ name }}</span>
</div>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">template</span> <span class="pl-c1">v-once</span><span class="pl-kos">></span>[{{ getTime() }}] {{ name }}<span class="pl-kos"></</span><span class="pl-ent">template</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">span</span> <span class="pl-c1">v-once</span><span class="pl-kos">></span>[{{ getTime() }}] {{ name }}<span class="pl-kos"></</span><span class="pl-ent">span</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<div v-for="obj,idx in logs" :key="idx">
<div>
<template v-once>[{{ getTime() }}] {{ obj.msg }}</template>
<span v-once>[{{ getTime() }}] {{ obj.msg }}</span>
</div>
</div>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">v-for</span>="<span class="pl-s">obj,idx in logs</span>" <span class="pl-c1">:key</span>="<span class="pl-s">idx</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">template</span> <span class="pl-c1">v-once</span><span class="pl-kos">></span>[{{ getTime() }}] {{ obj.msg }}<span class="pl-kos"></</span><span class="pl-ent">template</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">span</span> <span class="pl-c1">v-once</span><span class="pl-kos">></span>[{{ getTime() }}] {{ obj.msg }}<span class="pl-kos"></</span><span class="pl-ent">span</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div>
<blockquote>
<p dir="auto"><em>Use <code class="notranslate"><template v-once></code> because I don't want to use more than one <code class="notranslate">span</code>, which will damage the DOM structure.</em></p>
</blockquote>
<h3 dir="auto">What is expected?</h3>
<p dir="auto"><code class="notranslate"><template v-once> in v-for</code> should be consistent with <code class="notranslate"><template v-once> not in v-for</code>, <code class="notranslate">OnceMsg</code> area should have been static.</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto"><code class="notranslate"><template v-once> in v-for</code> and <code class="notranslate"><template v-once> not in v-for</code> are inconsistent, The leftmost time of <code class="notranslate">OnceMsg</code> area will change with the cycle.</p> | <h3 dir="auto">Version</h3>
<p dir="auto">2.5.16</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://jsfiddle.net/hL0rrbs9/6/" rel="nofollow">https://jsfiddle.net/hL0rrbs9/6/</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Run code, and watch.</p>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">"Yay Yay ;)" values should not change to "hell naw!" in 3 seconds.</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">"Yay Yay ;)" values are changing in to "hell naw!" in 3 seconds.</p>
<hr>
<h2 dir="auto">
Wait 3 seconds. Behavior is not consistent. "component" tag in v-for should not change.
</h2>
<div id="user-content-app" dir="auto">
<p dir="auto">{{comp}}</p>
<div dir="auto">
<p dir="auto">{{comp}}</p>
</div>
</div>
<script>
var z = new Vue({
el: "#app",
data: {
comp: "comp1",
items: [{id:1}, {id:2}]
},
components: {
"comp1": {
template: "<p dir="auto">yay yay ;)</p>"
},
"comp2": {
template: "<p dir="auto">hell naw!</p>"
}
}
});
<p dir="auto">setTimeout(function() {<br>
z.comp = "comp2"<br>
}, 3000);<br>
</script></p> | 1 |
<p dir="auto">In my installation (seaborn 0.6.0, matplotlib 1.5.1 with Qt2 back end under Linux Mint, Python 3.5), the annotation feature of heatmaps doesn't work. When I run the "Annotated heatmap" example from the <a href="https://stanford.edu/~mwaskom/software/seaborn/examples/heatmap_annotation.html" rel="nofollow">project website</a>, only the cell in the lower left corner has an annotation (in a wrong color):</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12086562/12489905/04f63956-c073-11e5-82e6-4cd10927a5c6.png"><img src="https://cloud.githubusercontent.com/assets/12086562/12489905/04f63956-c073-11e5-82e6-4cd10927a5c6.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">The same issue also occurs with other data sets:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="sns.heatmap(
pd.DataFrame({
'wanna': {'ACAD': 53, 'MAG': 490, 'NEWS': 249},
'gonna': {'ACAD': 202, 'MAG': 1974, 'NEWS': 1207}}),
annot=True)"><pre class="notranslate"><span class="pl-s1">sns</span>.<span class="pl-en">heatmap</span>(
<span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({
<span class="pl-s">'wanna'</span>: {<span class="pl-s">'ACAD'</span>: <span class="pl-c1">53</span>, <span class="pl-s">'MAG'</span>: <span class="pl-c1">490</span>, <span class="pl-s">'NEWS'</span>: <span class="pl-c1">249</span>},
<span class="pl-s">'gonna'</span>: {<span class="pl-s">'ACAD'</span>: <span class="pl-c1">202</span>, <span class="pl-s">'MAG'</span>: <span class="pl-c1">1974</span>, <span class="pl-s">'NEWS'</span>: <span class="pl-c1">1207</span>}}),
<span class="pl-s1">annot</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12086562/12489884/e62750fa-c072-11e5-9d8c-b6c6649427e2.png"><img src="https://cloud.githubusercontent.com/assets/12086562/12489884/e62750fa-c072-11e5-9d8c-b6c6649427e2.png" alt="image" style="max-width: 100%;"></a></p> | <p dir="auto"><strong>Issue</strong><br>
Seaborn fails to generate histograms on data frames with certain indexes (duplicated).</p>
<p dir="auto">This is wrong because the histogram is a function of a 1-D column and most not depend on frame indexes (and btw, nonunique indexes are legitimate and appear in data science tasks).</p>
<p dir="auto"><strong>Reproduce</strong></p>
<p dir="auto">Under <code class="notranslate">seaborn== 0.11.2</code> and <code class="notranslate">pandas==1.4.3</code> do:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import seaborn as sns
import pandas as pd
df = pd.DataFrame({'id':[1,1,2,2],'values':[1.0,1.0,2.0,3.0]})
df.set_index('id',inplace=True) # NOTE: this line is causing problems
sns.histplot(data=df,x='values')"><pre class="notranslate"><code class="notranslate">import seaborn as sns
import pandas as pd
df = pd.DataFrame({'id':[1,1,2,2],'values':[1.0,1.0,2.0,3.0]})
df.set_index('id',inplace=True) # NOTE: this line is causing problems
sns.histplot(data=df,x='values')
</code></pre></div>
<p dir="auto">This generates the following error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ValueError: cannot reindex on an axis with duplicate labels"><pre class="notranslate"><code class="notranslate">ValueError: cannot reindex on an axis with duplicate labels
</code></pre></div> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Have a single go implementation of the "List then Watch" pattern. Use this everywhere.
<ul class="contains-task-list">
<li>This is about hiding the details of calling list and watch and restarting watches.</li>
<li>This is about apiserver watches. Etcd use cases going away, so don't worry about them.</li>
<li>The <code class="notranslate">Reflector</code> object in <code class="notranslate">pkg/client/cache</code> is trying to be this.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Reconcile duplicated implementations in <code class="notranslate">pkg/proxy/config</code> and <code class="notranslate">pkg/client/cache</code> (the latter used by scheduler, and by kubelet after <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="53949968" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/3385" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/3385/hovercard" href="https://github.com/kubernetes/kubernetes/pull/3385">#3385</a> is merged. differences include:
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Jittering in <code class="notranslate">pkg/proxy/config/api.go</code>,</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> resource-specific <code class="notranslate">ServicesWatcher</code> interface in <code class="notranslate">pkg/proxy/config</code> vs generic <code class="notranslate">ListerWatcher</code> interface in <code class="notranslate">pkg/client/cache</code>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> one writes complete state to a Store and the other writes deltas to a channel.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> differences in error handling in the watch implementations: make sure we keep best from each.</li>
</ul>
</li>
</ul>
</li>
</ul> | <p dir="auto">If I follow the docker getting started guide from here <a href="https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/docker.md">https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/docker.md</a></p>
<p dir="auto">It instructs me to start the kubelet with the following command</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="docker run \
--volume=/:/rootfs:ro \
--volume=/sys:/sys:ro \
--volume=/dev:/dev \
--volume=/var/lib/docker/:/var/lib/docker:rw \
--volume=/var/lib/kubelet/:/var/lib/kubelet:rw \
--volume=/var/run:/var/run:rw \
--net=host \
--pid=host \
--privileged=true \
-d \
gcr.io/google_containers/hyperkube:v1.1.2 \
/hyperkube kubelet --containerized --hostname-override="127.0.0.1" --address="0.0.0.0" --api-servers=http://localhost:8080 --config=/etc/kubernetes/manifests"><pre class="notranslate"><code class="notranslate">docker run \
--volume=/:/rootfs:ro \
--volume=/sys:/sys:ro \
--volume=/dev:/dev \
--volume=/var/lib/docker/:/var/lib/docker:rw \
--volume=/var/lib/kubelet/:/var/lib/kubelet:rw \
--volume=/var/run:/var/run:rw \
--net=host \
--pid=host \
--privileged=true \
-d \
gcr.io/google_containers/hyperkube:v1.1.2 \
/hyperkube kubelet --containerized --hostname-override="127.0.0.1" --address="0.0.0.0" --api-servers=http://localhost:8080 --config=/etc/kubernetes/manifests
</code></pre></div>
<p dir="auto">When I do this I'm no longer able to create any terminals. I'm running Ubuntu 15.04.<br>
The error I get when starting terminal is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="There was an error creating the child process for this terminal
getpt failed: Permission denied"><pre class="notranslate"><code class="notranslate">There was an error creating the child process for this terminal
getpt failed: Permission denied
</code></pre></div>
<p dir="auto">I can collect additional diags if someone can guide me on what to collect...</p> | 0 |
<pre class="notranslate">Tokenizer.Raw is intended to provide the unmodified text of the current token --
<a href="http://godoc.org/code.google.com/p/go.net/html#Tokenizer.Raw" rel="nofollow">http://godoc.org/code.google.com/p/go.net/html#Tokenizer.Raw</a>
But, when a tokenization error occurs, the raw text may be duplicated. For example:
z := NewTokenizer(strings.NewReader("foo bar"))
tt := z.Next()
fmt.Printf("%v: %q\n", tt, string(z.Raw()))
tt = z.Next()
fmt.Printf("%v: %q\n", tt, string(z.Raw()))
duplicates "foo bar" in both a text and error token:
Text: "foo bar"
Error: "foo bar"
The concatenated results of z.Raw() should reproduce the original input without
duplication.
The fix is adjust the way Next updates the raw and data spans. I'll send a change for
this shortly.</pre> | <p dir="auto">by <strong>xapwing</strong>:</p>
<pre class="notranslate">go version = 1.0.2
windows 7
gopath=c:\dir1;c:\dir2
directory structure:
c:\dir1\src\
hello\
hello.go
c:\dir1\bin
c:\dir2\src\
hello\
hello.go
c:\dir2\bin
Trigger of the problem:
I run "go install" in either of the "hello" directories
What is the expected output?
a generated hello.exe in the "bin" directory related to the base dir where the src dir is in
What do you see instead?
hello.exe is generated in the same "hello" directory as the source hello.go is
Conclusion so far:
if the same project name occurs in more than one subpaths of a gopath, go install will behave differently and put the .exe file not in the bin but in the src directory
Which compiler are you using (5g, 6g, 8g, gccgo)?
Which operating system are you using?
Which version are you using? (run 'go version')
Please provide any additional information below.</pre> | 0 |
<h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br>
<a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br>
on reporting bugs.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br>
in this issue (If there are none, check this box anyway).</li>
</ul>
<h4 dir="auto">Related Issues</h4>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="673404521" data-permission-text="Title is private" data-url="https://github.com/celery/py-amqp/issues/330" data-hovercard-type="issue" data-hovercard-url="/celery/py-amqp/issues/330/hovercard" href="https://github.com/celery/py-amqp/issues/330">celery/py-amqp#330</a></p>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="25393727" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/1779" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/1779/hovercard" href="https://github.com/celery/celery/issues/1779">#1779</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="34744361" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/2066" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/2066/hovercard" href="https://github.com/celery/celery/issues/2066">#2066</a></li>
</ul>
<p dir="auto"></p>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="673404521" data-permission-text="Title is private" data-url="https://github.com/celery/py-amqp/issues/330" data-hovercard-type="issue" data-hovercard-url="/celery/py-amqp/issues/330/hovercard?comment_id=706148277&comment_type=issue_comment" href="https://github.com/celery/py-amqp/issues/330#issuecomment-706148277">celery/py-amqp#330 (comment)</a></p>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto">Celery should be able to be called from multiple threads - e.g. from gunicorn container</p>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">Due race conditions inside backends, Celery serving data is stalled or it returns "0x01 while expecting 0xce" errors, or others (depends on backend) - see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="673404521" data-permission-text="Title is private" data-url="https://github.com/celery/py-amqp/issues/330" data-hovercard-type="issue" data-hovercard-url="/celery/py-amqp/issues/330/hovercard" href="https://github.com/celery/py-amqp/issues/330">celery/py-amqp#330</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="25393727" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/1779" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/1779/hovercard" href="https://github.com/celery/celery/issues/1779">#1779</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="34744361" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/2066" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/2066/hovercard" href="https://github.com/celery/celery/issues/2066">#2066</a></p>
<h1 dir="auto">Details</h1>
<p dir="auto">The issue is caused by sharing resources between threads. This issue can be broken into 2 separate sub-issues:</p>
<ol dir="auto">
<li>Underlying Connection is shared between threads:<br>
When <code class="notranslate">rpc</code> backend is used, kombu/py-amqp backend is used. This backend supports <strong>only one connection per thread</strong>. Unfortunately since using single backend object in all threads, all threads shares single connections causing "0x01 while expecting 0xce" errors or other creashes:<br>
<div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/celery/celery/blob/05da357502a109c05b35392391299d75d181ccab/celery/app/base.py#L1166-L1167">celery/celery/app/base.py</a>
</p>
<p class="mb-0 color-fg-muted">
Lines 1166 to 1167
in
<a data-pjax="true" class="commit-tease-sha" href="/celery/celery/commit/05da357502a109c05b35392391299d75d181ccab">05da357</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="L1166" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1166"></td>
<td id="LC1166" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en">@<span class="pl-s1">cached_property</span></span> </td>
</tr>
<tr class="border-0">
<td id="L1167" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1167"></td>
<td id="LC1167" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">def</span> <span class="pl-en">backend</span>(<span class="pl-s1">self</span>): </td>
</tr>
</tbody></table>
</div>
</div>
</li>
<li>Single <code class="notranslate">oid</code> is shared between threads:<br>
This unique identifier is used to define reply-to queue of <code class="notranslate">rpc</code> backend. Again, since the <code class="notranslate">oid</code> is global it is caused that <strong>all</strong> threads are having <strong>single</strong> result queue causing not receiving responses:<br>
<div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/celery/celery/blob/05da357502a109c05b35392391299d75d181ccab/celery/app/base.py#L1152-L1153">celery/celery/app/base.py</a>
</p>
<p class="mb-0 color-fg-muted">
Lines 1152 to 1153
in
<a data-pjax="true" class="commit-tease-sha" href="/celery/celery/commit/05da357502a109c05b35392391299d75d181ccab">05da357</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="L1152" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1152"></td>
<td id="LC1152" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en">@<span class="pl-s1">cached_property</span></span> </td>
</tr>
<tr class="border-0">
<td id="L1153" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1153"></td>
<td id="LC1153" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">def</span> <span class="pl-en">oid</span>(<span class="pl-s1">self</span>): </td>
</tr>
</tbody></table>
</div>
</div>
</li>
</ol>
<h1 dir="auto">Possible solution</h1>
<p dir="auto">Store these global variables to thread local storage:<br>
<a href="https://docs.python.org/3/library/threading.html#thread-local-data" rel="nofollow">https://docs.python.org/3/library/threading.html#thread-local-data</a></p> | <h2 dir="auto">Checklist</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br>
(if you are not able to do this, then at least specify the Celery<br>
version affected).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -> celery:4.1.0 (latentcall) kombu:4.1.0 py:3.5.4
billiard:3.5.0.3 py-amqp:2.2.2
platform -> system:Linux arch:64bit imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:amqp results:rpc:///
result_backend: 'rpc:///'
broker_url: 'amqp://guest:********@localhost:5672//'"><pre class="notranslate"><code class="notranslate">software -> celery:4.1.0 (latentcall) kombu:4.1.0 py:3.5.4
billiard:3.5.0.3 py-amqp:2.2.2
platform -> system:Linux arch:64bit imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:amqp results:rpc:///
result_backend: 'rpc:///'
broker_url: 'amqp://guest:********@localhost:5672//'
</code></pre></div>
<h2 dir="auto">Steps to reproduce</h2>
<p dir="auto">Using code from the user manual, but two threads running concurrently:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from celery import Celery
import time
from threading import Thread
app = Celery('test', broker='amqp://guest@localhost//', backend='rpc://')
@app.task(bind=True)
def hello(self, a, b):
time.sleep(1)
self.update_state(state="PROGRESS", meta={'progress': 50})
time.sleep(1)
self.update_state(state="PROGRESS", meta={'progress': 90})
time.sleep(1)
return 'hello world: %i' % (a+b)
if __name__ == '__main__':
def run ():
handle = hello.delay (1, 2)
print (handle.get ())
t1 = Thread (target=run)
t2 = Thread (target=run)
t1.start ()
t2.start ()
t1.join ()
t2.join ()"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">celery</span> <span class="pl-k">import</span> <span class="pl-v">Celery</span>
<span class="pl-k">import</span> <span class="pl-s1">time</span>
<span class="pl-k">from</span> <span class="pl-s1">threading</span> <span class="pl-k">import</span> <span class="pl-v">Thread</span>
<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Celery</span>(<span class="pl-s">'test'</span>, <span class="pl-s1">broker</span><span class="pl-c1">=</span><span class="pl-s">'amqp://guest@localhost//'</span>, <span class="pl-s1">backend</span><span class="pl-c1">=</span><span class="pl-s">'rpc://'</span>)
<span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">task</span>(<span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</span>
<span class="pl-k">def</span> <span class="pl-en">hello</span>(<span class="pl-s1">self</span>, <span class="pl-s1">a</span>, <span class="pl-s1">b</span>):
<span class="pl-s1">time</span>.<span class="pl-en">sleep</span>(<span class="pl-c1">1</span>)
<span class="pl-s1">self</span>.<span class="pl-en">update_state</span>(<span class="pl-s1">state</span><span class="pl-c1">=</span><span class="pl-s">"PROGRESS"</span>, <span class="pl-s1">meta</span><span class="pl-c1">=</span>{<span class="pl-s">'progress'</span>: <span class="pl-c1">50</span>})
<span class="pl-s1">time</span>.<span class="pl-en">sleep</span>(<span class="pl-c1">1</span>)
<span class="pl-s1">self</span>.<span class="pl-en">update_state</span>(<span class="pl-s1">state</span><span class="pl-c1">=</span><span class="pl-s">"PROGRESS"</span>, <span class="pl-s1">meta</span><span class="pl-c1">=</span>{<span class="pl-s">'progress'</span>: <span class="pl-c1">90</span>})
<span class="pl-s1">time</span>.<span class="pl-en">sleep</span>(<span class="pl-c1">1</span>)
<span class="pl-k">return</span> <span class="pl-s">'hello world: %i'</span> <span class="pl-c1">%</span> (<span class="pl-s1">a</span><span class="pl-c1">+</span><span class="pl-s1">b</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-k">def</span> <span class="pl-en">run</span> ():
<span class="pl-s1">handle</span> <span class="pl-c1">=</span> <span class="pl-s1">hello</span>.<span class="pl-en">delay</span> (<span class="pl-c1">1</span>, <span class="pl-c1">2</span>)
<span class="pl-en">print</span> (<span class="pl-s1">handle</span>.<span class="pl-en">get</span> ())
<span class="pl-s1">t1</span> <span class="pl-c1">=</span> <span class="pl-v">Thread</span> (<span class="pl-s1">target</span><span class="pl-c1">=</span><span class="pl-s1">run</span>)
<span class="pl-s1">t2</span> <span class="pl-c1">=</span> <span class="pl-v">Thread</span> (<span class="pl-s1">target</span><span class="pl-c1">=</span><span class="pl-s1">run</span>)
<span class="pl-s1">t1</span>.<span class="pl-en">start</span> ()
<span class="pl-s1">t2</span>.<span class="pl-en">start</span> ()
<span class="pl-s1">t1</span>.<span class="pl-en">join</span> ()
<span class="pl-s1">t2</span>.<span class="pl-en">join</span> ()</pre></div>
<h2 dir="auto">Expected behavior</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="hello world: 3
hello world: 3"><pre class="notranslate"><code class="notranslate">hello world: 3
hello world: 3
</code></pre></div>
<h2 dir="auto">Actual behavior</h2>
<p dir="auto">Different exceptions, depending on timing. For instance:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Exception in thread Thread-1:
Traceback (most recent call last):
File "/…/sandbox/lib/python3.5/site-packages/celery/backends/async.py", line 154, in add_pending_result
self._maybe_resolve_from_buffer(result)
File "/…/sandbox/lib/python3.5/site-packages/celery/backends/async.py", line 160, in _maybe_resolve_from_buffer
result._maybe_set_cache(self._pending_messages.take(result.id))
File "/…/sandbox/lib/python3.5/site-packages/celery/utils/collections.py", line 871, in take
raise self.Empty()
queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/…/sandbox/lib/python3.5/site-packages/amqp/connection.py", line 456, in channel
return self.channels[channel_id]
KeyError: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib64/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "test.py", line 19, in run
print (handle.get ())
File "/…/sandbox/lib/python3.5/site-packages/celery/result.py", line 193, in get
self.backend.add_pending_result(self)
File "/…/sandbox/lib/python3.5/site-packages/celery/backends/async.py", line 156, in add_pending_result
self._add_pending_result(result.id, result, weak=weak)
File "/…/sandbox/lib/python3.5/site-packages/celery/backends/async.py", line 166, in _add_pending_result
self.result_consumer.consume_from(task_id)
File "/…/sandbox/lib/python3.5/site-packages/celery/backends/rpc.py", line 81, in consume_from
return self.start(task_id)
File "/…/sandbox/lib/python3.5/site-packages/celery/backends/rpc.py", line 56, in start
self._connection.default_channel, [initial_queue],
File "/…/sandbox/lib/python3.5/site-packages/kombu/connection.py", line 821, in default_channel
self._default_channel = self.channel()
File "/…/sandbox/lib/python3.5/site-packages/kombu/connection.py", line 266, in channel
chan = self.transport.create_channel(self.connection)
File "/…/sandbox/lib/python3.5/site-packages/kombu/transport/pyamqp.py", line 100, in create_channel
return connection.channel()
File "/…/sandbox/lib/python3.5/site-packages/amqp/connection.py", line 459, in channel
channel.open()
File "/…/sandbox/lib/python3.5/site-packages/amqp/channel.py", line 432, in open
spec.Channel.Open, 's', ('',), wait=spec.Channel.OpenOk,
File "/…/sandbox/lib/python3.5/site-packages/amqp/abstract_channel.py", line 59, in send_method
return self.wait(wait, returns_tuple=returns_tuple)
File "/…/sandbox/lib/python3.5/site-packages/amqp/abstract_channel.py", line 79, in wait
self.connection.drain_events(timeout=timeout)
File "/…/sandbox/lib/python3.5/site-packages/amqp/connection.py", line 468, in drain_events
while not self.blocking_read(timeout):
File "/…/sandbox/lib/python3.5/site-packages/amqp/connection.py", line 473, in blocking_read
frame = self.transport.read_frame()
File "/…/sandbox/lib/python3.5/site-packages/amqp/transport.py", line 252, in read_frame
payload = read(size)
File "/…/sandbox/lib/python3.5/site-packages/amqp/transport.py", line 417, in _read
s = recv(n - len(rbuf))
socket.timeout: timed out"><pre class="notranslate"><code class="notranslate">Exception in thread Thread-1:
Traceback (most recent call last):
File "/…/sandbox/lib/python3.5/site-packages/celery/backends/async.py", line 154, in add_pending_result
self._maybe_resolve_from_buffer(result)
File "/…/sandbox/lib/python3.5/site-packages/celery/backends/async.py", line 160, in _maybe_resolve_from_buffer
result._maybe_set_cache(self._pending_messages.take(result.id))
File "/…/sandbox/lib/python3.5/site-packages/celery/utils/collections.py", line 871, in take
raise self.Empty()
queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/…/sandbox/lib/python3.5/site-packages/amqp/connection.py", line 456, in channel
return self.channels[channel_id]
KeyError: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib64/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "test.py", line 19, in run
print (handle.get ())
File "/…/sandbox/lib/python3.5/site-packages/celery/result.py", line 193, in get
self.backend.add_pending_result(self)
File "/…/sandbox/lib/python3.5/site-packages/celery/backends/async.py", line 156, in add_pending_result
self._add_pending_result(result.id, result, weak=weak)
File "/…/sandbox/lib/python3.5/site-packages/celery/backends/async.py", line 166, in _add_pending_result
self.result_consumer.consume_from(task_id)
File "/…/sandbox/lib/python3.5/site-packages/celery/backends/rpc.py", line 81, in consume_from
return self.start(task_id)
File "/…/sandbox/lib/python3.5/site-packages/celery/backends/rpc.py", line 56, in start
self._connection.default_channel, [initial_queue],
File "/…/sandbox/lib/python3.5/site-packages/kombu/connection.py", line 821, in default_channel
self._default_channel = self.channel()
File "/…/sandbox/lib/python3.5/site-packages/kombu/connection.py", line 266, in channel
chan = self.transport.create_channel(self.connection)
File "/…/sandbox/lib/python3.5/site-packages/kombu/transport/pyamqp.py", line 100, in create_channel
return connection.channel()
File "/…/sandbox/lib/python3.5/site-packages/amqp/connection.py", line 459, in channel
channel.open()
File "/…/sandbox/lib/python3.5/site-packages/amqp/channel.py", line 432, in open
spec.Channel.Open, 's', ('',), wait=spec.Channel.OpenOk,
File "/…/sandbox/lib/python3.5/site-packages/amqp/abstract_channel.py", line 59, in send_method
return self.wait(wait, returns_tuple=returns_tuple)
File "/…/sandbox/lib/python3.5/site-packages/amqp/abstract_channel.py", line 79, in wait
self.connection.drain_events(timeout=timeout)
File "/…/sandbox/lib/python3.5/site-packages/amqp/connection.py", line 468, in drain_events
while not self.blocking_read(timeout):
File "/…/sandbox/lib/python3.5/site-packages/amqp/connection.py", line 473, in blocking_read
frame = self.transport.read_frame()
File "/…/sandbox/lib/python3.5/site-packages/amqp/transport.py", line 252, in read_frame
payload = read(size)
File "/…/sandbox/lib/python3.5/site-packages/amqp/transport.py", line 417, in _read
s = recv(n - len(rbuf))
socket.timeout: timed out
</code></pre></div>
<p dir="auto">or</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Exception in thread Thread-1:
Traceback (most recent call last):
File "/…/sandbox/lib/python3.5/site-packages/celery/backends/async.py", line 154, in add_pending_result
self._maybe_resolve_from_buffer(result)
File "/…/sandbox/lib/python3.5/site-packages/celery/backends/async.py", line 160, in _maybe_resolve_from_buffer
result._maybe_set_cache(self._pending_messages.take(result.id))
File "/…/sandbox/lib/python3.5/site-packages/celery/utils/collections.py", line 871, in take
raise self.Empty()
queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib64/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "test.py", line 19, in run
print (handle.get ())
File "/…/sandbox/lib/python3.5/site-packages/celery/result.py", line 193, in get
self.backend.add_pending_result(self)
File "/…/sandbox/lib/python3.5/site-packages/celery/backends/async.py", line 156, in add_pending_result
self._add_pending_result(result.id, result, weak=weak)
File "/…/sandbox/lib/python3.5/site-packages/celery/backends/async.py", line 166, in _add_pending_result
self.result_consumer.consume_from(task_id)
File "/…/sandbox/lib/python3.5/site-packages/celery/backends/rpc.py", line 81, in consume_from
return self.start(task_id)
File "/…/sandbox/lib/python3.5/site-packages/celery/backends/rpc.py", line 59, in start
self._consumer.consume()
File "/…/sandbox/lib/python3.5/site-packages/kombu/messaging.py", line 477, in consume
self._basic_consume(T, no_ack=no_ack, nowait=False)
File "/…/sandbox/lib/python3.5/site-packages/kombu/messaging.py", line 598, in _basic_consume
no_ack=no_ack, nowait=nowait)
File "/…/sandbox/lib/python3.5/site-packages/kombu/entity.py", line 737, in consume
arguments=self.consumer_arguments)
File "/…/sandbox/lib/python3.5/site-packages/amqp/channel.py", line 1564, in basic_consume
wait=None if nowait else spec.Basic.ConsumeOk,
File "/…/sandbox/lib/python3.5/site-packages/amqp/abstract_channel.py", line 59, in send_method
return self.wait(wait, returns_tuple=returns_tuple)
File "/…/sandbox/lib/python3.5/site-packages/amqp/abstract_channel.py", line 79, in wait
self.connection.drain_events(timeout=timeout)
File "/…/sandbox/lib/python3.5/site-packages/amqp/connection.py", line 471, in drain_events
while not self.blocking_read(timeout):
File "/…/sandbox/lib/python3.5/site-packages/amqp/connection.py", line 476, in blocking_read
frame = self.transport.read_frame()
File "/…/sandbox/lib/python3.5/site-packages/amqp/transport.py", line 254, in read_frame
'Received {0:#04x} while expecting 0xce'.format(ch))
amqp.exceptions.UnexpectedFrame: Received 0x3c while expecting 0xce"><pre class="notranslate"><code class="notranslate">Exception in thread Thread-1:
Traceback (most recent call last):
File "/…/sandbox/lib/python3.5/site-packages/celery/backends/async.py", line 154, in add_pending_result
self._maybe_resolve_from_buffer(result)
File "/…/sandbox/lib/python3.5/site-packages/celery/backends/async.py", line 160, in _maybe_resolve_from_buffer
result._maybe_set_cache(self._pending_messages.take(result.id))
File "/…/sandbox/lib/python3.5/site-packages/celery/utils/collections.py", line 871, in take
raise self.Empty()
queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib64/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "test.py", line 19, in run
print (handle.get ())
File "/…/sandbox/lib/python3.5/site-packages/celery/result.py", line 193, in get
self.backend.add_pending_result(self)
File "/…/sandbox/lib/python3.5/site-packages/celery/backends/async.py", line 156, in add_pending_result
self._add_pending_result(result.id, result, weak=weak)
File "/…/sandbox/lib/python3.5/site-packages/celery/backends/async.py", line 166, in _add_pending_result
self.result_consumer.consume_from(task_id)
File "/…/sandbox/lib/python3.5/site-packages/celery/backends/rpc.py", line 81, in consume_from
return self.start(task_id)
File "/…/sandbox/lib/python3.5/site-packages/celery/backends/rpc.py", line 59, in start
self._consumer.consume()
File "/…/sandbox/lib/python3.5/site-packages/kombu/messaging.py", line 477, in consume
self._basic_consume(T, no_ack=no_ack, nowait=False)
File "/…/sandbox/lib/python3.5/site-packages/kombu/messaging.py", line 598, in _basic_consume
no_ack=no_ack, nowait=nowait)
File "/…/sandbox/lib/python3.5/site-packages/kombu/entity.py", line 737, in consume
arguments=self.consumer_arguments)
File "/…/sandbox/lib/python3.5/site-packages/amqp/channel.py", line 1564, in basic_consume
wait=None if nowait else spec.Basic.ConsumeOk,
File "/…/sandbox/lib/python3.5/site-packages/amqp/abstract_channel.py", line 59, in send_method
return self.wait(wait, returns_tuple=returns_tuple)
File "/…/sandbox/lib/python3.5/site-packages/amqp/abstract_channel.py", line 79, in wait
self.connection.drain_events(timeout=timeout)
File "/…/sandbox/lib/python3.5/site-packages/amqp/connection.py", line 471, in drain_events
while not self.blocking_read(timeout):
File "/…/sandbox/lib/python3.5/site-packages/amqp/connection.py", line 476, in blocking_read
frame = self.transport.read_frame()
File "/…/sandbox/lib/python3.5/site-packages/amqp/transport.py", line 254, in read_frame
'Received {0:#04x} while expecting 0xce'.format(ch))
amqp.exceptions.UnexpectedFrame: Received 0x3c while expecting 0xce
</code></pre></div> | 1 |
<p dir="auto">We only permit <code class="notranslate">&mut</code> pointees to be mutated if the <code class="notranslate">&mut</code> is in a unique location (i.e., another <code class="notranslate">&mut</code>, a local variable, etc). Based on this, it is safe to conclude that the memory referenced by an <code class="notranslate">&mut</code> pointer found in an <em>aliasable</em> location is frozen. But the borrow checker considers such memory to be unsafe for use. This is overly conservative and prevents important compositional patterns.</p>
<p dir="auto">In particular, I should be able to define a type <code class="notranslate">BorrowedMap</code> that looks like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="struct BorrowedMap<'m,K,V> {
map: &'m mut HashMap<K,V>
}"><pre class="notranslate"><code class="notranslate">struct BorrowedMap<'m,K,V> {
map: &'m mut HashMap<K,V>
}
</code></pre></div>
<p dir="auto">and now I should be able to implement the <code class="notranslate">Map<K,V></code> trait for <code class="notranslate">BorrowedMap</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="impl<'m,K,V> Map<K,V> for BorrowedMap<'m,K,V> {
fn insert(&mut self, key: K, value: V) { self.map.insert(key, value); }
fn find<'a>(&'a self, key: &K) -> Option<'a V> {
self.map.find(key) // ERROR
}
}"><pre class="notranslate"><code class="notranslate">impl<'m,K,V> Map<K,V> for BorrowedMap<'m,K,V> {
fn insert(&mut self, key: K, value: V) { self.map.insert(key, value); }
fn find<'a>(&'a self, key: &K) -> Option<'a V> {
self.map.find(key) // ERROR
}
}
</code></pre></div>
<p dir="auto">However I can't because I get an error at the marked line. This is because <code class="notranslate">self.map</code> is an <code class="notranslate">&mut</code> found inside of an aliasable location (<code class="notranslate">self</code>) and hence it cannot be considered frozen. But why not? Nobody can mutate it, after all.</p>
<p dir="auto">Note that the maximum lifetime of a freeze would be <code class="notranslate">'a</code> (which is sufficient for this case).</p>
<p dir="auto">Nominating.</p> | <p dir="auto">Now that the swap operator has been removed, I do not believe the<br>
restriction against mutating <code class="notranslate">LV</code> is needed, and in fact it prevents<br>
some useful patterns. For example, the following function will<br>
fail to compile:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" fn mut_shift_ref<'a,T>(x: &mut &'a mut [T]) -> &'a mut T {
// `mut_split` will restrict mutation against *x:
let (head, tail) = (*x).mut_split(1);
// Hence mutating `*x` yields an error here:
*x = tail;
&mut head[0]
}"><pre class="notranslate"><code class="notranslate"> fn mut_shift_ref<'a,T>(x: &mut &'a mut [T]) -> &'a mut T {
// `mut_split` will restrict mutation against *x:
let (head, tail) = (*x).mut_split(1);
// Hence mutating `*x` yields an error here:
*x = tail;
&mut head[0]
}
</code></pre></div>
<p dir="auto">Note that this function -- which adjusts the slice <code class="notranslate">*x</code> in place so<br>
that it no longer contains the head element and then returns a<br>
pointer to that element separately -- is perfectly valid. It is<br>
currently implemented using unsafe code. I believe that now that<br>
the swap operator is removed from the language, we could liberalize<br>
the rules and make this function be accepted normally. The idea<br>
would be to have the assignment to <code class="notranslate">*x</code> kill the loans of <code class="notranslate">*x</code> and<br>
its subpaths -- after all, those subpaths are no longer accessible<br>
through <code class="notranslate">*x</code>, since it has been overwritten with a new value. Thus<br>
those subpaths are only accessible through prior existing borrows<br>
of <code class="notranslate">*x</code>, if any. The danger of the <em>swap</em> operator was that it<br>
allowed <code class="notranslate">*x</code> to be mutated without making the subpaths of <code class="notranslate">*x</code><br>
inaccessible: worse, they became accessible through a new path (I<br>
suppose that we could have supported a swap operator, too, if needed, by moving the loans over to the new path).</p> | 1 |
<p dir="auto">form-group inputs render normal. input-groups render too small. The use of glyphicons doesn't make any difference. Different behavior between prepend and append aswell.</p>
<p dir="auto">jsBin: <a href="http://jsbin.com/uTumeWE/1/edit" rel="nofollow">http://jsbin.com/uTumeWE/1/edit</a></p> | <p dir="auto"><code class="notranslate"><div class="form-group input-group has-success"> <label class="control-label" for="inputSuccess">Input with success</label> <span class="input-group-addon"><i class="icon-envelope"></i></span> <input type="text" class="form-control" id="inputSuccess"> </div></code></p>
<p dir="auto">Images: <a href="http://vvcap.net/db/gUxKjP35dh1Dv3_19Qk8.htp" rel="nofollow">http://vvcap.net/db/gUxKjP35dh1Dv3_19Qk8.htp</a></p>
<p dir="auto"><code class="notranslate"><div class="form-group input-group has-success"> <span class="input-group-addon"><i class="icon-envelope"></i></span> <input type="text" class="form-control" id="inputSuccess"> <label class="control-label" for="inputSuccess">Input with success</label> </div></code></p>
<p dir="auto"><a href="http://vvcap.net/db/wU5PelKNhqbCSmDVkLCM.htp" rel="nofollow">http://vvcap.net/db/wU5PelKNhqbCSmDVkLCM.htp</a></p> | 1 |
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/9101b0c8314d992bea07aea5068e1c1e4d45ceae48ab4a8220314021241a809a/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f323739353334352f313735333838382f36653136323730612d363634352d313165332d393836662d3933353332353734343838622e706e67"><img src="https://camo.githubusercontent.com/9101b0c8314d992bea07aea5068e1c1e4d45ceae48ab4a8220314021241a809a/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f323739353334352f313735333838382f36653136323730612d363634352d313165332d393836662d3933353332353734343838622e706e67" alt="6oetjr" data-canonical-src="https://f.cloud.github.com/assets/2795345/1753888/6e16270a-6645-11e3-986f-93532574488b.png" style="max-width: 100%;"></a></p> | <p dir="auto">Been looking at this (and I apologize if this issue was already addressed) - and took this site I'm working on (mcgarrybair.com) right out of the BS3 RC2 examples. Resizing the window from -lg to -md wraps the nav-bar into multiple lines. You can see this on the law firm site I just published at <a href="http://mcgarrybair.com" rel="nofollow">http://mcgarrybair.com</a> - this causes the site to render unaccaptably in an iPad (tablet view). I think the navbar should not wrap - but go immediately from one-line of menus to collapse? Wrapping the navbar that is a navbar-fixed-top into multiple lines of li items causes it to overlap the content of the site.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/da278586fc1ec901186cf1ba7278c343f27c8181e8c5c53c64444172b84f48cd/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313536343632382f3936353833382f30313766316630612d303533352d313165332d396431622d6563313566636632373337332e706e67"><img src="https://camo.githubusercontent.com/da278586fc1ec901186cf1ba7278c343f27c8181e8c5c53c64444172b84f48cd/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313536343632382f3936353833382f30313766316630612d303533352d313165332d396431622d6563313566636632373337332e706e67" alt="landscape" data-canonical-src="https://f.cloud.github.com/assets/1564628/965838/017f1f0a-0535-11e3-9d1b-ec15fcf27373.png" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/21244fa0f933732148a140f9f60995eabf7c9e27ba100436533afeccf34c51ab/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313536343632382f3936353833392f30363666393130632d303533352d313165332d383637392d6633613664396430303537302e706e67"><img src="https://camo.githubusercontent.com/21244fa0f933732148a140f9f60995eabf7c9e27ba100436533afeccf34c51ab/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313536343632382f3936353833392f30363666393130632d303533352d313165332d383637392d6633613664396430303537302e706e67" alt="ipad-tablet" data-canonical-src="https://f.cloud.github.com/assets/1564628/965839/066f910c-0535-11e3-8679-f3a6d9d00570.png" style="max-width: 100%;"></a></p> | 1 |
<h3 dir="auto">Current Behavior:</h3>
<p dir="auto">If you have a package with <code class="notranslate">something</code> in <code class="notranslate">peerDependencies</code> and then install that something in the same package as a devDependency, the peerDependencies field is changed and the dependency is added to <code class="notranslate">package.json</code>, but it inherits the semver string that the peer dependency had.</p>
<h3 dir="auto">Expected Behavior:</h3>
<p dir="auto">Installing a dev dependency should do the same change to the <code class="notranslate">package.json</code>, whether that dependency is already in <code class="notranslate">peerDependencies</code> or not.</p>
<h3 dir="auto">Steps To Reproduce:</h3>
<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="echo '{ "peerDependencies": { "typescript": "*" } }' > package.json
npm i -D typescript
cat package.json"><pre class="notranslate"><span class="pl-c1">echo '{ "peerDependencies": { "typescript": "*" } }' > package.json</span>
<span class="pl-c1">npm i -D typescript</span>
<span class="pl-c1">cat package.json</span></pre></div>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{"peerDependencies":{"typescript":"^4.2.4"},"devDependencies":{"typescript":"*"}}"><pre class="notranslate">{<span class="pl-ent">"peerDependencies"</span>:{<span class="pl-ent">"typescript"</span>:<span class="pl-s"><span class="pl-pds">"</span>^4.2.4<span class="pl-pds">"</span></span>},<span class="pl-ent">"devDependencies"</span>:{<span class="pl-ent">"typescript"</span>:<span class="pl-s"><span class="pl-pds">"</span>*<span class="pl-pds">"</span></span>}}</pre></div>
<h3 dir="auto">Environment:</h3>
<ul dir="auto">
<li>OS: macOS</li>
<li>Node: 15.14.0</li>
<li>npm: 7.10.0</li>
</ul> | <h3 dir="auto">Current Behavior:</h3>
<ol dir="auto">
<li>package that has:</li>
</ol>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""peerDependencies: {
"webpack": ">=1.11.0"
},
"devDependencies": {
"webpack": "^4"
},"><pre class="notranslate"><span class="pl-ii">"peerDependencies: {</span>
<span class="pl-ent">"webpack"</span>: <span class="pl-s"><span class="pl-pds">"</span>>=1.11.0<span class="pl-pds">"</span></span>
<span class="pl-ii">},</span>
<span class="pl-ent">"devDependencies"</span>: {
<span class="pl-ent">"webpack"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4<span class="pl-pds">"</span></span>
},</pre></div>
<ol start="2" dir="auto">
<li>run <code class="notranslate">npm install --save-dev webpack@3</code></li>
<li>see package.json updated to:</li>
</ol>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""peerDependencies: {
"webpack": "^3.12.0"
},
"devDependencies": {
"webpack": "^3"
},"><pre class="notranslate"><span class="pl-ii">"peerDependencies: {</span>
<span class="pl-ent">"webpack"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.12.0<span class="pl-pds">"</span></span>
<span class="pl-ii">},</span>
<span class="pl-ent">"devDependencies"</span>: {
<span class="pl-ent">"webpack"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3<span class="pl-pds">"</span></span>
},</pre></div>
<h3 dir="auto">Expected Behavior:</h3>
<p dir="auto">The package.json should become:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""peerDependencies: {
"webpack": ">=1.11.0"
},
"devDependencies": {
"webpack": "^3"
},"><pre class="notranslate"><span class="pl-ii">"peerDependencies: {</span>
<span class="pl-ent">"webpack"</span>: <span class="pl-s"><span class="pl-pds">"</span>>=1.11.0<span class="pl-pds">"</span></span>
<span class="pl-ii">},</span>
<span class="pl-ent">"devDependencies"</span>: {
<span class="pl-ent">"webpack"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3<span class="pl-pds">"</span></span>
},</pre></div>
<p dir="auto">or:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""peerDependencies: {
"webpack": ">=1.11.0"
},
"devDependencies": {
"webpack": "^3.12.0"
},"><pre class="notranslate"><span class="pl-ii">"peerDependencies: {</span>
<span class="pl-ent">"webpack"</span>: <span class="pl-s"><span class="pl-pds">"</span>>=1.11.0<span class="pl-pds">"</span></span>
<span class="pl-ii">},</span>
<span class="pl-ent">"devDependencies"</span>: {
<span class="pl-ent">"webpack"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.12.0<span class="pl-pds">"</span></span>
},</pre></div>
<p dir="auto">but since i didn't use <code class="notranslate">--save-peer</code> (or <code class="notranslate">--save</code> by itself, even), the peer dep <em>must not be touched</em>.</p>
<p dir="auto">Separately, this is an entirely unexpected breaking change in my package, since some potential valid peer versions are now invalid, so this could be quite dangerous.</p>
<h3 dir="auto">Steps To Reproduce:</h3>
<p dir="auto">see "current behavior"</p>
<h3 dir="auto">Environment:</h3>
<ul dir="auto">
<li>Node: 15.8.0</li>
<li>npm: 7.5.3</li>
</ul> | 1 |
<h1 dir="auto">Description of the new feature/enhancement</h1>
<h1 dir="auto">Proposed technical implementation details (optional)</h1> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 18362.239
Windows Terminal version (if applicable): 0.2.1.18831.0
Any other software?
Git bash with the profile:
{
"acrylicOpacity" : 0.5,
"closeOnExit" : true,
"colorScheme" : "Campbell",
"commandline" : "C:\\Program Files\\Git\\bin\\bash.exe",
"icon" : "C:\\Program Files\\Git\\mingw64\\share\\git\\git-for-windows.ico",
"name" : "Git Bash",
"startingDirectory" : "%HOMEDRIVE%%HOMEPATH%",
"cursorColor" : "#FFFFFF",
"cursorShape" : "bar",
"fontFace" : "Consolas",
"fontSize" : 10,
"guid" : "{9a3f80c4-d840-4781-a7d3-84f6c7c9dd7c}",
"historySize" : 9001,
"padding" : "0, 0, 0, 0",
"snapOnInput" : true,
"useAcrylic" : false
},
Python 3.6.8-amd64
"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 18362.239
Windows Terminal version (if applicable): 0.2.1.18831.0
Any other software?
Git bash with the profile:
{
"acrylicOpacity" : 0.5,
"closeOnExit" : true,
"colorScheme" : "Campbell",
"commandline" : "C:\\Program Files\\Git\\bin\\bash.exe",
"icon" : "C:\\Program Files\\Git\\mingw64\\share\\git\\git-for-windows.ico",
"name" : "Git Bash",
"startingDirectory" : "%HOMEDRIVE%%HOMEPATH%",
"cursorColor" : "#FFFFFF",
"cursorShape" : "bar",
"fontFace" : "Consolas",
"fontSize" : 10,
"guid" : "{9a3f80c4-d840-4781-a7d3-84f6c7c9dd7c}",
"historySize" : 9001,
"padding" : "0, 0, 0, 0",
"snapOnInput" : true,
"useAcrylic" : false
},
Python 3.6.8-amd64
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Set up gitbash with the json above. Run a long-running task in the current window. Ctrl+c doesn't kill the task</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">ctrl+c should kill the task</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Cannot regain control over the current window.</p> | 0 |
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/10749142/12695900/c7545bd6-c753-11e5-9319-9502090c10c6.png"><img src="https://cloud.githubusercontent.com/assets/10749142/12695900/c7545bd6-c753-11e5-9319-9502090c10c6.png" alt="image" style="max-width: 100%;"></a></p> | <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/1465a8758e0fc8bcea664bcaa57432983e1d78516895fce57728df4271b47ea6/68747470733a2f2f7777772e657665726e6f74652e636f6d2f6c2f417154324c594959416b74414e7162536f4a39566352704a516467794f4f3963753930422f696d6167652e706e67"><img src="https://camo.githubusercontent.com/1465a8758e0fc8bcea664bcaa57432983e1d78516895fce57728df4271b47ea6/68747470733a2f2f7777772e657665726e6f74652e636f6d2f6c2f417154324c594959416b74414e7162536f4a39566352704a516467794f4f3963753930422f696d6167652e706e67" alt="" data-canonical-src="https://www.evernote.com/l/AqT2LYIYAktANqbSoJ9VcRpJQdgyOO9cu90B/image.png" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/1629" rel="nofollow">http://projects.scipy.org/scipy/ticket/1629</a> on 2012-03-25 by trac user briantoby, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cournape/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cournape">@cournape</a>.</em></p>
<p dir="auto">Calling scipy.fftpack.ifft2(npary) creates two arrays of size npary; one is returned but the other remains allocated. The attached routine grows in size by 256Mb on every iteration in SciPy 0.10.0 (and previous) in EPD 7.2. I have seen a similar problem, likely due to the same bug in Windows.</p> | <p dir="auto">Consider the memory usage of the following code after executing each statement:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy
import scipy.signal
import gc
# memory at this point is ~35mb
a = numpy.ones(10**7)
b = numpy.ones(10**7)
# memory at this point is ~187mb
c = scipy.signal.fftconvolve(a, numpy.flipud(b), mode="full")
# memory usage at this point is 645mb
# given that a,b,c take up about 305mb in total, this is much
# larger than expected
# If we delete a,b,c and garbage collect...
del a,b,c
gc.collect()
# ...the memory usage drops to ~340mb which is a drop of 305mb
# (as expected since that is the size of what we deleted)
# but the remaining memory usage is still 340mb
# which is much larger than the starting value of 35 mb"><pre class="notranslate"><code class="notranslate">import numpy
import scipy.signal
import gc
# memory at this point is ~35mb
a = numpy.ones(10**7)
b = numpy.ones(10**7)
# memory at this point is ~187mb
c = scipy.signal.fftconvolve(a, numpy.flipud(b), mode="full")
# memory usage at this point is 645mb
# given that a,b,c take up about 305mb in total, this is much
# larger than expected
# If we delete a,b,c and garbage collect...
del a,b,c
gc.collect()
# ...the memory usage drops to ~340mb which is a drop of 305mb
# (as expected since that is the size of what we deleted)
# but the remaining memory usage is still 340mb
# which is much larger than the starting value of 35 mb
</code></pre></div>
<p dir="auto">Is this extra several hundred mb of memory usage a bug?</p>
<p dir="auto">Platform:</p>
<ul dir="auto">
<li>CPython 3.5.1 x64</li>
<li>Scipy 0.17.0 (Christoph Golke's package)</li>
<li>Numpy+MKL 1.11.0rc1 (Cristoph Golke's package)</li>
<li>Windows 8.1 x64</li>
</ul> | 1 |
<p dir="auto">This discrepancy makes comparing file paths very difficult:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { join } from "https://deno.land/std/path/mod.ts";
console.log(Deno.realPathSync("."));
console.log(join("C:", "Source", "Deno", "fsdisrepancy"));"><pre class="notranslate"><code class="notranslate">import { join } from "https://deno.land/std/path/mod.ts";
console.log(Deno.realPathSync("."));
console.log(join("C:", "Source", "Deno", "fsdisrepancy"));
</code></pre></div>
<p dir="auto">Prints out this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:/Source/Deno/fsdisrepancy
C:\Source\Deno\fsdisrepancy"><pre class="notranslate"><code class="notranslate">C:/Source/Deno/fsdisrepancy
C:\Source\Deno\fsdisrepancy
</code></pre></div>
<p dir="auto">This is very problematic, because a lot of libraries are written using <code class="notranslate">join</code>, and if on some point of your code you use realPath then comparing the paths with <code class="notranslate">===</code> is not possible.</p>
<p dir="auto">Imagine using a library A that uses <code class="notranslate">realPath</code>, and library that uses <code class="notranslate">join</code> at some point, one can't compare the paths with <code class="notranslate">===</code> without sanitization which becomes messy.</p> | <p dir="auto">Observed on Deno 1.0.1, for example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PS C:\Users\srackham> deno eval "console.log(Deno.realPathSync('.'))"
C:/Users/srackham"><pre class="notranslate"><code class="notranslate">PS C:\Users\srackham> deno eval "console.log(Deno.realPathSync('.'))"
C:/Users/srackham
</code></pre></div>
<p dir="auto">Other Deno path APIs return '\' separated paths on Window e.g. Deno.cwd().</p> | 1 |
<h5 dir="auto">Issue Type:</h5>
<p dir="auto">Can you help us out in labelling this by telling us what kind of ticket this this? You can say “Bug Report”, “Feature Idea”, “Feature Pull Request”, “New Module Pull Request”, “Bugfix Pull Request”, “Documentation Report”, or “Docs Pull Request”.</p>
<h5 dir="auto">Ansible Version:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# ansible-doc --version
ansible-doc 1.8 (devel 7d9661a266) last updated 2014/09/30 10:46:06 (GMT -400)
lib/ansible/modules/core: (detached HEAD db5668b84c) last updated 2014/09/29 11:27:31 (GMT -400)
lib/ansible/modules/extras: (detached HEAD 110250d344) last updated 2014/09/29 11:27:34 (GMT -400)
configured module search path = None"><pre class="notranslate"><code class="notranslate"># ansible-doc --version
ansible-doc 1.8 (devel 7d9661a266) last updated 2014/09/30 10:46:06 (GMT -400)
lib/ansible/modules/core: (detached HEAD db5668b84c) last updated 2014/09/29 11:27:31 (GMT -400)
lib/ansible/modules/extras: (detached HEAD 110250d344) last updated 2014/09/29 11:27:34 (GMT -400)
configured module search path = None
</code></pre></div>
<h5 dir="auto">Environment:</h5>
<p dir="auto">Mac OSX</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">The command <code class="notranslate">ansible-doc -l</code> emits tracebacks while scanning modules.</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<ol dir="auto">
<li><code class="notranslate">. hacking/env-setup</code></li>
<li><code class="notranslate">ansible-doc -l</code></li>
</ol>
<h5 dir="auto">Expected Results:</h5>
<p dir="auto">No tracebacks on stderr</p>
<h5 dir="auto">Actual Results:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# ansible-doc -l 1>/dev/null 2| pbcopy
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/lib/ansible/utils/module_docs.py", line 50, in get_docstring
M = ast.parse(''.join(open(filename)))
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 1
gitdir: ../../../../.git/modules/lib/ansible/modules/core
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/bin/ansible-doc", line 184, in get_module_list_text
desc = tty_ify(doc.get('short_description', '?'))
AttributeError: 'NoneType' object has no attribute 'get'
ERROR: module .git has a documentation error formatting or is missing documentation
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/lib/ansible/utils/module_docs.py", line 50, in get_docstring
M = ast.parse(''.join(open(filename)))
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 2
*.py[co]
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/bin/ansible-doc", line 184, in get_module_list_text
desc = tty_ify(doc.get('short_description', '?'))
AttributeError: 'NoneType' object has no attribute 'get'
ERROR: module .gitignore has a documentation error formatting or is missing documentation
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/lib/ansible/utils/module_docs.py", line 50, in get_docstring
M = ast.parse(''.join(open(filename)))
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 1
Welcome To Ansible GitHub
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/bin/ansible-doc", line 184, in get_module_list_text
desc = tty_ify(doc.get('short_description', '?'))
AttributeError: 'NoneType' object has no attribute 'get'
ERROR: module CONTRIBUTING.md has a documentation error formatting or is missing documentation
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/lib/ansible/utils/module_docs.py", line 50, in get_docstring
M = ast.parse(''.join(open(filename)))
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 1
GNU GENERAL PUBLIC LICENSE
^
IndentationError: unexpected indent
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/bin/ansible-doc", line 184, in get_module_list_text
desc = tty_ify(doc.get('short_description', '?'))
AttributeError: 'NoneType' object has no attribute 'get'
ERROR: module COPYING has a documentation error formatting or is missing documentation
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/lib/ansible/utils/module_docs.py", line 50, in get_docstring
M = ast.parse(''.join(open(filename)))
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 2
====================
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/bin/ansible-doc", line 184, in get_module_list_text
desc = tty_ify(doc.get('short_description', '?'))
AttributeError: 'NoneType' object has no attribute 'get'
ERROR: module README.md has a documentation error formatting or is missing documentation
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/bin/ansible-doc", line 184, in get_module_list_text
desc = tty_ify(doc.get('short_description', '?'))
AttributeError: 'NoneType' object has no attribute 'get'
ERROR: module __init__.py has a documentation error formatting or is missing documentation
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/lib/ansible/utils/module_docs.py", line 50, in get_docstring
M = ast.parse(''.join(open(filename)))
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
TypeError: compile() expected string without null bytes
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/bin/ansible-doc", line 184, in get_module_list_text
desc = tty_ify(doc.get('short_description', '?'))
AttributeError: 'NoneType' object has no attribute 'get'
ERROR: module __init__.pyc has a documentation error formatting or is missing documentation
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/bin/ansible-doc", line 184, in get_module_list_text
desc = tty_ify(doc.get('short_description', '?'))
AttributeError: 'NoneType' object has no attribute 'get'
ERROR: module async_wrapper.py has a documentation error formatting or is missing documentation"><pre class="notranslate"><code class="notranslate"># ansible-doc -l 1>/dev/null 2| pbcopy
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/lib/ansible/utils/module_docs.py", line 50, in get_docstring
M = ast.parse(''.join(open(filename)))
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 1
gitdir: ../../../../.git/modules/lib/ansible/modules/core
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/bin/ansible-doc", line 184, in get_module_list_text
desc = tty_ify(doc.get('short_description', '?'))
AttributeError: 'NoneType' object has no attribute 'get'
ERROR: module .git has a documentation error formatting or is missing documentation
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/lib/ansible/utils/module_docs.py", line 50, in get_docstring
M = ast.parse(''.join(open(filename)))
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 2
*.py[co]
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/bin/ansible-doc", line 184, in get_module_list_text
desc = tty_ify(doc.get('short_description', '?'))
AttributeError: 'NoneType' object has no attribute 'get'
ERROR: module .gitignore has a documentation error formatting or is missing documentation
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/lib/ansible/utils/module_docs.py", line 50, in get_docstring
M = ast.parse(''.join(open(filename)))
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 1
Welcome To Ansible GitHub
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/bin/ansible-doc", line 184, in get_module_list_text
desc = tty_ify(doc.get('short_description', '?'))
AttributeError: 'NoneType' object has no attribute 'get'
ERROR: module CONTRIBUTING.md has a documentation error formatting or is missing documentation
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/lib/ansible/utils/module_docs.py", line 50, in get_docstring
M = ast.parse(''.join(open(filename)))
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 1
GNU GENERAL PUBLIC LICENSE
^
IndentationError: unexpected indent
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/bin/ansible-doc", line 184, in get_module_list_text
desc = tty_ify(doc.get('short_description', '?'))
AttributeError: 'NoneType' object has no attribute 'get'
ERROR: module COPYING has a documentation error formatting or is missing documentation
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/lib/ansible/utils/module_docs.py", line 50, in get_docstring
M = ast.parse(''.join(open(filename)))
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 2
====================
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/bin/ansible-doc", line 184, in get_module_list_text
desc = tty_ify(doc.get('short_description', '?'))
AttributeError: 'NoneType' object has no attribute 'get'
ERROR: module README.md has a documentation error formatting or is missing documentation
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/bin/ansible-doc", line 184, in get_module_list_text
desc = tty_ify(doc.get('short_description', '?'))
AttributeError: 'NoneType' object has no attribute 'get'
ERROR: module __init__.py has a documentation error formatting or is missing documentation
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/lib/ansible/utils/module_docs.py", line 50, in get_docstring
M = ast.parse(''.join(open(filename)))
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
TypeError: compile() expected string without null bytes
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/bin/ansible-doc", line 184, in get_module_list_text
desc = tty_ify(doc.get('short_description', '?'))
AttributeError: 'NoneType' object has no attribute 'get'
ERROR: module __init__.pyc has a documentation error formatting or is missing documentation
Traceback (most recent call last):
File "/Users/jlaska/Downloads/ansible.git/bin/ansible-doc", line 184, in get_module_list_text
desc = tty_ify(doc.get('short_description', '?'))
AttributeError: 'NoneType' object has no attribute 'get'
ERROR: module async_wrapper.py has a documentation error formatting or is missing documentation
</code></pre></div> | <h1 dir="auto">Problem:</h1>
<p dir="auto">If you add a custom module using git submodules, ansible-doc prints traceback.</p>
<h2 dir="auto">setup in ansible.cfg</h2>
<p dir="auto">we set up a path for custom modules:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[default]
library = /usr/share/ansible:library"><pre class="notranslate"><code class="notranslate">[default]
library = /usr/share/ansible:library
</code></pre></div>
<h2 dir="auto">custom modules added with submodules</h2>
<p dir="auto">we added a module named openvz using `git submodule add library/openvz</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="library$ find
.
./openvz
./openvz/.git
./openvz/openvz"><pre class="notranslate"><code class="notranslate">library$ find
.
./openvz
./openvz/.git
./openvz/openvz
</code></pre></div>
<h2 dir="auto">content of .git</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ cat ./openvz/.git
gitdir: ../../../.git/modules/playbooks/library/openvz"><pre class="notranslate"><code class="notranslate">$ cat ./openvz/.git
gitdir: ../../../.git/modules/playbooks/library/openvz
</code></pre></div>
<h2 dir="auto">error in run command ansible-doc</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible-doc -l
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/ansible/utils/module_docs.py", line 44, in get_docstring
M = ast.parse(''.join(open(filename)))
File "/usr/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 1
gitdir: ../../../.git/modules/playbooks/library/openvz
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "/usr/local/bin/ansible-doc", line 174, in get_module_list_text
desc = tty_ify(doc.get('short_description', '?'))
AttributeError: 'NoneType' object has no attribute 'get'
..."><pre class="notranslate"><code class="notranslate">$ ansible-doc -l
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/ansible/utils/module_docs.py", line 44, in get_docstring
M = ast.parse(''.join(open(filename)))
File "/usr/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 1
gitdir: ../../../.git/modules/playbooks/library/openvz
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "/usr/local/bin/ansible-doc", line 174, in get_module_list_text
desc = tty_ify(doc.get('short_description', '?'))
AttributeError: 'NoneType' object has no attribute 'get'
...
</code></pre></div>
<h2 dir="auto">ansible version</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible --version
ansible 1.5"><pre class="notranslate"><code class="notranslate">$ ansible --version
ansible 1.5
</code></pre></div>
<h1 dir="auto">Expected</h1>
<p dir="auto">ansible-doc should ignore "hidden" directories.</p> | 1 |
<h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br>
<a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br>
on reporting bugs.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all related issues and possible duplicate issues<br>
in this issue (If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Mandatory Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br>
(if you are not able to do this, then at least specify the Celery<br>
version affected).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br>
to reproduce this bug.</li>
</ul>
<h2 dir="auto">Optional Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br>
and/or implementation.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br>
result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one version of the message<br>
broker and/or result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue with autoscaling, retries,<br>
ETA/Countdown & rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue after downgrading<br>
and/or upgrading Celery and its dependencies.</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h2 dir="auto">Environment & Settings</h2>
<p dir="auto"><strong>5.1.0 (sun-harmonics)</strong>:</p>
<details>
<summary><b><code class="notranslate">celery report</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
software -> celery:5.1.0 (sun-harmonics) kombu:5.1.0 py:3.8.10
billiard:3.6.4.0 py-amqp:5.0.6
platform -> system:Linux arch:64bit, ELF
kernel version:5.4.117-58.216.amzn2.x86_64 imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:amqps results:redis://ter84av5ralzps6.dbif12.ng.0001.use1.cache.amazonaws.com:6379/0
broker_url: 'amqps://****:********@b-1491211e-5f2b-4f67-aaab-06509b3c7b0c.mq.us-east-1.amazonaws.com:5671//'
result_backend: 'redis://ter84av5ralzps6.dbif12.ng.0001.use1.cache.amazonaws.com:6379/0'
deprecated_settings: None
enable_utc: True
timezone: 'UTC'
task_acks_late: True
task_reject_on_worker_lost: True
worker_proc_alive_timeout: 20
worker_lost_wait: 10
worker_prefetch_multiplier: 1
task_track_started: False
result_expires: datetime.timedelta(seconds=21600)
broker_pool_limit: 8
task_routes: {
'task.http_task_executor': {'queue': 'task_work_queue'},
'task.kube_task_executor': {'queue': 'task_work_queue'},
'task.post_new': {'queue': 'task_push_queue'},
'task.post_reply': {'queue': 'task_reply_queue'},
'task.post_status_log': {'queue': 'task_status_queue'},
'task.post_status_update': {'queue': 'task_status_queue'},
'task.routing_task_transform_executor': {'queue': 'task_work_queue'}}
root@task-keeper-api-executor-worker-558785df4f-n47d5:/app# "><pre class="notranslate"><code class="notranslate">
software -> celery:5.1.0 (sun-harmonics) kombu:5.1.0 py:3.8.10
billiard:3.6.4.0 py-amqp:5.0.6
platform -> system:Linux arch:64bit, ELF
kernel version:5.4.117-58.216.amzn2.x86_64 imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:amqps results:redis://ter84av5ralzps6.dbif12.ng.0001.use1.cache.amazonaws.com:6379/0
broker_url: 'amqps://****:********@b-1491211e-5f2b-4f67-aaab-06509b3c7b0c.mq.us-east-1.amazonaws.com:5671//'
result_backend: 'redis://ter84av5ralzps6.dbif12.ng.0001.use1.cache.amazonaws.com:6379/0'
deprecated_settings: None
enable_utc: True
timezone: 'UTC'
task_acks_late: True
task_reject_on_worker_lost: True
worker_proc_alive_timeout: 20
worker_lost_wait: 10
worker_prefetch_multiplier: 1
task_track_started: False
result_expires: datetime.timedelta(seconds=21600)
broker_pool_limit: 8
task_routes: {
'task.http_task_executor': {'queue': 'task_work_queue'},
'task.kube_task_executor': {'queue': 'task_work_queue'},
'task.post_new': {'queue': 'task_push_queue'},
'task.post_reply': {'queue': 'task_reply_queue'},
'task.post_status_log': {'queue': 'task_status_queue'},
'task.post_status_update': {'queue': 'task_status_queue'},
'task.routing_task_transform_executor': {'queue': 'task_work_queue'}}
root@task-keeper-api-executor-worker-558785df4f-n47d5:/app#
</code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<h2 dir="auto">Required Dependencies</h2>
<ul dir="auto">
<li><strong>Minimal Python Version</strong>: 3.8</li>
<li><strong>Minimal Celery Version</strong>: 5.1.0</li>
<li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li>
<li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li>
</ul>
<h3 dir="auto">Python Packages</h3>
<details>
<summary><b><code class="notranslate">pip freeze</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="root@task-keeper-api-executor-worker-558785df4f-n47d5:/app# pip freeze
aiocache @ file:///root/.cache/pypoetry/artifacts/8a/75/32/3e4230ac935365d261ded62e9b0fac56c0417eea0826c6fa9a240514d4/aiocache-0.11.1-py2.py3-none-any.whl
aiohttp @ file:///root/.cache/pypoetry/artifacts/e6/b7/73/8d17934f488836015688d06d1e12d8c3c32c493c1a1d67e6c67fc9f91c/aiohttp-3.7.4.post0-cp38-cp38-manylinux2014_x86_64.whl
alembic @ file:///root/.cache/pypoetry/artifacts/2a/a4/b0/d666d758e2d1a844c1082dadca27c5c6499bd5950b1ccbfeb0a92596bf/alembic-1.6.5-py2.py3-none-any.whl
amqp @ file:///root/.cache/pypoetry/artifacts/ed/fe/6d/d70241f03a4a3347d64443cd180317a586fdb0ce2e53dd8d0dcd06ae87/amqp-5.0.6-py3-none-any.whl
appdirs==1.4.4
asgiref @ file:///root/.cache/pypoetry/artifacts/e5/46/15/2189c1ac010f2a59bb68d74d8e7c1a948235462e517cf1cb79623a38d7/asgiref-3.3.4-py3-none-any.whl
async-timeout @ file:///root/.cache/pypoetry/artifacts/0d/5d/3e/630122e534c1b25e36c3142597c4b0b2e9d3f2e0a9cea9f10ac219f9a7/async_timeout-3.0.1-py3-none-any.whl
asyncpg @ file:///root/.cache/pypoetry/artifacts/ab/07/90/459222bf230c60a9e67b9031c827cbb87ce0bd5a4f8bdd9ead22006935/asyncpg-0.22.0-cp38-cp38-manylinux1_x86_64.whl
asyncpgsa @ file:///root/.cache/pypoetry/artifacts/6e/85/80/7c458492381c67ffd5123908b8552fccdd1bcf49fefb3b2775bc87f5bf/asyncpgsa-0.27.1.tar.gz
attrs @ file:///root/.cache/pypoetry/artifacts/1a/aa/39/10d6d07084f186f8cf6963cb033440402ad5088bb94d712239170f2ef6/attrs-21.2.0-py2.py3-none-any.whl
awscli @ file:///root/.cache/pypoetry/artifacts/39/0e/5b/37799e47334247e79fe060ea89f43b5cd1647411adb10f927d96ebe2a7/awscli-1.19.94-py2.py3-none-any.whl
backoff @ file:///root/.cache/pypoetry/artifacts/07/ec/f6/14fe7212d91fcec696718f63bd1816ebd8646466b7d9774f5e4c011a09/backoff-1.10.0-py2.py3-none-any.whl
billiard @ file:///root/.cache/pypoetry/artifacts/37/f6/65/d35c92d728dbe48ad715603358c7fae3694aca4341b9330f35eeb2c3cb/billiard-3.6.4.0-py3-none-any.whl
boto3 @ file:///root/.cache/pypoetry/artifacts/ea/81/7d/885c335fbea444ca9b34625cf0cc04137d6cdebfd3f7f758e4522aabbb/boto3-1.17.94-py2.py3-none-any.whl
botocore @ file:///root/.cache/pypoetry/artifacts/53/63/a3/4037b86bc1ae9ec11c54988ea6d9b5765522818ce0aeb5e176442f5009/botocore-1.20.94-py2.py3-none-any.whl
CacheControl==0.12.6
cachetools @ file:///root/.cache/pypoetry/artifacts/b8/bb/dd/ab39d5344a1eb90a476cc415065f1c5e74daecaf87821e82c925ca6aaa/cachetools-4.2.2-py3-none-any.whl
cachy==0.3.0
celery @ file:///root/.cache/pypoetry/artifacts/5e/9a/2b/b8daba72e801b2a1ab0d99a00f21e04a44d6fdaae5ac1fe4a6f625141f/celery-5.1.0-py3-none-any.whl
certifi==2021.5.30
cffi==1.14.5
chardet==4.0.0
cleo==0.8.1
click @ file:///root/.cache/pypoetry/artifacts/30/bc/bf/e00ffd8f0edf0294942e70e80e42a839bd2649d2c5b864e6389e526d2a/click-7.1.2-py2.py3-none-any.whl
click-didyoumean @ file:///root/.cache/pypoetry/artifacts/10/e1/17/19cd22a8318eea926ce7c9469807bbf6e887401385975a62dcb75bc419/click-didyoumean-0.0.3.tar.gz
click-plugins @ file:///root/.cache/pypoetry/artifacts/c6/6b/c8/2f62f7d37dfef3f9f445d3503ff3b3cd4d69531496e956f7363099e86f/click_plugins-1.1.1-py2.py3-none-any.whl
click-repl @ file:///root/.cache/pypoetry/artifacts/ec/dd/e3/45a9edb1cfdb658af256586577fd64af3c692acc14b32a18bb575a51c5/click_repl-0.2.0-py3-none-any.whl
clikit==0.6.2
colorama @ file:///root/.cache/pypoetry/artifacts/b7/77/29/8fe2533c9a5d409681ba402a7388c56154efbb99bf5dc1fc4c48cf821b/colorama-0.4.3-py2.py3-none-any.whl
crashtest==0.3.1
cryptography==3.4.7
distlib==0.3.2
docutils @ file:///root/.cache/pypoetry/artifacts/3d/52/66/87e71edcc3d12165b7ed9a7e33149219759e52054c101f35cfed57f5a4/docutils-0.15.2-py3-none-any.whl
fastapi @ file:///root/.cache/pypoetry/artifacts/3b/bb/c7/c7f39c78da6bc430aba8ac0b92fc5d0511f55e0e9166c45b08f0e1dc6e/fastapi-0.63.0-py3-none-any.whl
filelock==3.0.12
flake8 @ file:///root/.cache/pypoetry/artifacts/93/78/ae/ee75d1b46827f8892defc2a710979cc71803d2da75a049bdabd3adad70/flake8-3.9.2-py2.py3-none-any.whl
gunicorn @ file:///root/.cache/pypoetry/artifacts/eb/33/9c/43e158642e15413395d933fef80bb16fa6b50a6ed8dd157f506b6b2c03/gunicorn-20.1.0-py3-none-any.whl
h11 @ file:///root/.cache/pypoetry/artifacts/6f/50/9d/65e5b4940425051d03fab25052973dcf80bbe2f00676b117d40996e468/h11-0.12.0-py3-none-any.whl
html5lib==1.1
idna==2.10
iniconfig @ file:///root/.cache/pypoetry/artifacts/ac/f9/da/e990ffcd9ec361a68676a5916e391286e1ea5d1b8907ae887e141a71f5/iniconfig-1.1.1-py2.py3-none-any.whl
jeepney==0.6.0
Jinja2 @ file:///root/.cache/pypoetry/artifacts/1b/1c/64/6fcc5a7a4ffb6e923a1309d4e4d62309f637ac52cba8614c5778bc2650/Jinja2-3.0.1-py3-none-any.whl
jmespath @ file:///root/.cache/pypoetry/artifacts/43/d5/a2/f83573231324de7f5b61f5c607fbbe82ca535359a452de4852d2e25e8d/jmespath-0.10.0-py2.py3-none-any.whl
keyring==21.8.0
kombu @ file:///root/.cache/pypoetry/artifacts/62/75/03/0f5b0f86c7d2cfe40c38ca2d39d616bb71163d8848bdddcdaa0f86fc20/kombu-5.1.0-py3-none-any.whl
lockfile==0.12.2
Mako @ file:///root/.cache/pypoetry/artifacts/2b/e8/50/1d2ac0c7a28dfc4ef81a559bcb6d5dba8682c0d28edfdd91917d23a199/Mako-1.1.4-py2.py3-none-any.whl
MarkupSafe @ file:///root/.cache/pypoetry/artifacts/e9/aa/ce/73da3aa2f2d872e5d1cb28a49f7e6e0e76c9e7ba290b034f442badefd2/MarkupSafe-2.0.1-cp38-cp38-manylinux2010_x86_64.whl
mccabe @ file:///root/.cache/pypoetry/artifacts/37/6e/69/4a33a4d6c80c775b1ee205face2c6e07b762c8602bb0f0d236ebe790c5/mccabe-0.6.1-py2.py3-none-any.whl
msgpack==1.0.2
multidict @ file:///root/.cache/pypoetry/artifacts/36/92/90/7beba42c3a6efbfdc30dc864c33286fa23817b3942b21ccaf319f18ed3/multidict-5.1.0-cp38-cp38-manylinux2014_x86_64.whl
orjson @ file:///root/.cache/pypoetry/artifacts/72/11/13/e2e7fa1425adc13fa055e81e0ad53ee39758f5b27f40f139c86fe6b7fa/orjson-3.5.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
packaging==20.9
pastel==0.2.1
pexpect==4.8.0
pkginfo==1.7.0
pluggy @ file:///root/.cache/pypoetry/artifacts/9c/e5/0b/2d64d03361a081edeb5d2ec5f286ccf9719587781fbf6822e1b6384c27/pluggy-0.13.1-py2.py3-none-any.whl
poetry==1.1.6
poetry-core==1.0.3
prompt-toolkit @ file:///root/.cache/pypoetry/artifacts/b9/d1/38/231fc80979af8084d0746ac9e5bcaceb6ae7412ed7c1c1c537659d117f/prompt_toolkit-3.0.18-py3-none-any.whl
psycopg2-binary @ file:///root/.cache/pypoetry/artifacts/c6/89/2e/f0a2bb1c73cbdda3697229e4891d4fce14add7bb9b2f75dec7828e1e6f/psycopg2_binary-2.8.6-cp38-cp38-manylinux1_x86_64.whl
ptyprocess==0.7.0
py @ file:///root/.cache/pypoetry/artifacts/6b/b2/2b/e6686e7d0183dbd36bd66921efa3e77ce26260a3671524cd86614290e0/py-1.10.0-py2.py3-none-any.whl
pyasn1 @ file:///root/.cache/pypoetry/artifacts/a6/f7/5e/59a43ec23ade0888631b3f24244da7f5d5a0b6b40849c86b8c6b4c54d1/pyasn1-0.4.8-py2.py3-none-any.whl
pycodestyle @ file:///root/.cache/pypoetry/artifacts/ea/27/4a/ce8e18f033aae28e47dc2895901dce76e10e7c9efc48bcd95ab4443c47/pycodestyle-2.7.0-py2.py3-none-any.whl
pycparser==2.20
pydantic @ file:///root/.cache/pypoetry/artifacts/97/5a/97/6d56f653b6eb23c25fe8bd938764b95b9ddae8d8bcb08fb129df79f752/pydantic-1.8.2-cp38-cp38-manylinux2014_x86_64.whl
pyflakes @ file:///root/.cache/pypoetry/artifacts/b0/73/41/34d4d02987e40ffa6ee0292425303a75b4178476bf134ceaf0585a9faf/pyflakes-2.3.1-py2.py3-none-any.whl
pylev==1.4.0
pyparsing==2.4.7
pytest @ file:///root/.cache/pypoetry/artifacts/8a/b9/90/4514a24414e38b20d118ef142b175d429a18dba120914e9e0dffc5fa56/pytest-6.2.4-py3-none-any.whl
pytest-aiohttp @ file:///root/.cache/pypoetry/artifacts/a8/4e/c1/891a775ef615683510673efc2895db6b62f844caa79e6a335fcc29607c/pytest_aiohttp-0.3.0-py3-none-any.whl
python-dateutil @ file:///root/.cache/pypoetry/artifacts/1e/2c/dc/0e811c2299b40168ee1da03bc13c11762ce9fa96eb867ad22280db11fc/python_dateutil-2.8.1-py2.py3-none-any.whl
python-editor @ file:///root/.cache/pypoetry/artifacts/88/e4/9a/6a3b58d3811aabb356fe1af49b223e67e18505daf666e0dca62c12f260/python_editor-1.0.4-py3-none-any.whl
pytz @ file:///root/.cache/pypoetry/artifacts/19/50/c9/f8bffb0360052b3c85b912bc4172f824bc2571e24002806fb3a428302e/pytz-2021.1-py2.py3-none-any.whl
PyYAML @ file:///root/.cache/pypoetry/artifacts/f7/d9/62/83fb890c5915cc3c7a919097a61e93e54d7a3c47832b2f91e38224359d/PyYAML-5.4.1-cp38-cp38-manylinux1_x86_64.whl
redis @ file:///root/.cache/pypoetry/artifacts/7d/10/53/5e7715691ea8dff1b633fa5813e2a864bf74e3659c469d2a23cd6aae35/redis-3.5.3-py2.py3-none-any.whl
requests==2.25.1
requests-toolbelt==0.9.1
rsa @ file:///root/.cache/pypoetry/artifacts/3a/ab/43/a67c8d818350593872a5713ca125b95f465d62eee5ba7895de1194add1/rsa-4.7.2-py3-none-any.whl
s3transfer @ file:///root/.cache/pypoetry/artifacts/d5/26/6a/727af0fce69424f6803bc321ad17a139d3b58ceb9c82eac6d0f7ffc28a/s3transfer-0.4.2-py2.py3-none-any.whl
SecretStorage==3.3.1
shellingham==1.4.0
six==1.16.0
SQLAlchemy @ file:///root/.cache/pypoetry/artifacts/87/89/61/bd5c84081c9a69a763f109bd41e59f0f19183646d58ef4b9d48595d02d/SQLAlchemy-1.3.24-cp38-cp38-manylinux2010_x86_64.whl
starlette @ file:///root/.cache/pypoetry/artifacts/64/44/19/ddfa154bd917148cb72d6cb3d86a16bc3fa7c2c7cc7786898aee24c8b0/starlette-0.13.6-py3-none-any.whl
toml @ file:///root/.cache/pypoetry/artifacts/9f/8c/c3/7b4f6778d60f3c9fa11f8fd0e48243bbad25a04975e0a01006b6350594/toml-0.10.2-py2.py3-none-any.whl
tomlkit==0.7.2
typing-extensions @ file:///root/.cache/pypoetry/artifacts/fe/31/ef/8176395be3e4536aa430a84a1af3ade772047a9017c78ce2d045c1636b/typing_extensions-3.10.0.0-py3-none-any.whl
ujson @ file:///root/.cache/pypoetry/artifacts/bb/13/77/5f095aaa3083302d1041012b0d43375c60eb4b929d09f806fa770d4d2d/ujson-1.35.tar.gz
urllib3==1.26.5
uvicorn @ file:///root/.cache/pypoetry/artifacts/1d/0a/24/4866f58eb94ae161513ad8eb253f426f177c3695de6305af006853f27d/uvicorn-0.13.4-py3-none-any.whl
vine @ file:///root/.cache/pypoetry/artifacts/a7/a3/26/0b4cc5bb6d8828de4b6043228c8fdff0eea9acf787d1ca87cd308560a6/vine-5.0.0-py2.py3-none-any.whl
virtualenv==20.4.7
wcwidth @ file:///root/.cache/pypoetry/artifacts/36/68/e2/7232f431072d5e8aeec124120b9a1d095d45da10311d271fac10982473/wcwidth-0.2.5-py2.py3-none-any.whl
webencodings==0.5.1
yarl @ file:///root/.cache/pypoetry/artifacts/ba/ae/48/6e2cb824dd72016fe49814c19c62914323a44b9b9d3d10b583b013dbf3/yarl-1.6.3-cp38-cp38-manylinux2014_x86_64.whl
root@task-keeper-api-executor-worker-558785df4f-n47d5:/app# "><pre class="notranslate"><code class="notranslate">root@task-keeper-api-executor-worker-558785df4f-n47d5:/app# pip freeze
aiocache @ file:///root/.cache/pypoetry/artifacts/8a/75/32/3e4230ac935365d261ded62e9b0fac56c0417eea0826c6fa9a240514d4/aiocache-0.11.1-py2.py3-none-any.whl
aiohttp @ file:///root/.cache/pypoetry/artifacts/e6/b7/73/8d17934f488836015688d06d1e12d8c3c32c493c1a1d67e6c67fc9f91c/aiohttp-3.7.4.post0-cp38-cp38-manylinux2014_x86_64.whl
alembic @ file:///root/.cache/pypoetry/artifacts/2a/a4/b0/d666d758e2d1a844c1082dadca27c5c6499bd5950b1ccbfeb0a92596bf/alembic-1.6.5-py2.py3-none-any.whl
amqp @ file:///root/.cache/pypoetry/artifacts/ed/fe/6d/d70241f03a4a3347d64443cd180317a586fdb0ce2e53dd8d0dcd06ae87/amqp-5.0.6-py3-none-any.whl
appdirs==1.4.4
asgiref @ file:///root/.cache/pypoetry/artifacts/e5/46/15/2189c1ac010f2a59bb68d74d8e7c1a948235462e517cf1cb79623a38d7/asgiref-3.3.4-py3-none-any.whl
async-timeout @ file:///root/.cache/pypoetry/artifacts/0d/5d/3e/630122e534c1b25e36c3142597c4b0b2e9d3f2e0a9cea9f10ac219f9a7/async_timeout-3.0.1-py3-none-any.whl
asyncpg @ file:///root/.cache/pypoetry/artifacts/ab/07/90/459222bf230c60a9e67b9031c827cbb87ce0bd5a4f8bdd9ead22006935/asyncpg-0.22.0-cp38-cp38-manylinux1_x86_64.whl
asyncpgsa @ file:///root/.cache/pypoetry/artifacts/6e/85/80/7c458492381c67ffd5123908b8552fccdd1bcf49fefb3b2775bc87f5bf/asyncpgsa-0.27.1.tar.gz
attrs @ file:///root/.cache/pypoetry/artifacts/1a/aa/39/10d6d07084f186f8cf6963cb033440402ad5088bb94d712239170f2ef6/attrs-21.2.0-py2.py3-none-any.whl
awscli @ file:///root/.cache/pypoetry/artifacts/39/0e/5b/37799e47334247e79fe060ea89f43b5cd1647411adb10f927d96ebe2a7/awscli-1.19.94-py2.py3-none-any.whl
backoff @ file:///root/.cache/pypoetry/artifacts/07/ec/f6/14fe7212d91fcec696718f63bd1816ebd8646466b7d9774f5e4c011a09/backoff-1.10.0-py2.py3-none-any.whl
billiard @ file:///root/.cache/pypoetry/artifacts/37/f6/65/d35c92d728dbe48ad715603358c7fae3694aca4341b9330f35eeb2c3cb/billiard-3.6.4.0-py3-none-any.whl
boto3 @ file:///root/.cache/pypoetry/artifacts/ea/81/7d/885c335fbea444ca9b34625cf0cc04137d6cdebfd3f7f758e4522aabbb/boto3-1.17.94-py2.py3-none-any.whl
botocore @ file:///root/.cache/pypoetry/artifacts/53/63/a3/4037b86bc1ae9ec11c54988ea6d9b5765522818ce0aeb5e176442f5009/botocore-1.20.94-py2.py3-none-any.whl
CacheControl==0.12.6
cachetools @ file:///root/.cache/pypoetry/artifacts/b8/bb/dd/ab39d5344a1eb90a476cc415065f1c5e74daecaf87821e82c925ca6aaa/cachetools-4.2.2-py3-none-any.whl
cachy==0.3.0
celery @ file:///root/.cache/pypoetry/artifacts/5e/9a/2b/b8daba72e801b2a1ab0d99a00f21e04a44d6fdaae5ac1fe4a6f625141f/celery-5.1.0-py3-none-any.whl
certifi==2021.5.30
cffi==1.14.5
chardet==4.0.0
cleo==0.8.1
click @ file:///root/.cache/pypoetry/artifacts/30/bc/bf/e00ffd8f0edf0294942e70e80e42a839bd2649d2c5b864e6389e526d2a/click-7.1.2-py2.py3-none-any.whl
click-didyoumean @ file:///root/.cache/pypoetry/artifacts/10/e1/17/19cd22a8318eea926ce7c9469807bbf6e887401385975a62dcb75bc419/click-didyoumean-0.0.3.tar.gz
click-plugins @ file:///root/.cache/pypoetry/artifacts/c6/6b/c8/2f62f7d37dfef3f9f445d3503ff3b3cd4d69531496e956f7363099e86f/click_plugins-1.1.1-py2.py3-none-any.whl
click-repl @ file:///root/.cache/pypoetry/artifacts/ec/dd/e3/45a9edb1cfdb658af256586577fd64af3c692acc14b32a18bb575a51c5/click_repl-0.2.0-py3-none-any.whl
clikit==0.6.2
colorama @ file:///root/.cache/pypoetry/artifacts/b7/77/29/8fe2533c9a5d409681ba402a7388c56154efbb99bf5dc1fc4c48cf821b/colorama-0.4.3-py2.py3-none-any.whl
crashtest==0.3.1
cryptography==3.4.7
distlib==0.3.2
docutils @ file:///root/.cache/pypoetry/artifacts/3d/52/66/87e71edcc3d12165b7ed9a7e33149219759e52054c101f35cfed57f5a4/docutils-0.15.2-py3-none-any.whl
fastapi @ file:///root/.cache/pypoetry/artifacts/3b/bb/c7/c7f39c78da6bc430aba8ac0b92fc5d0511f55e0e9166c45b08f0e1dc6e/fastapi-0.63.0-py3-none-any.whl
filelock==3.0.12
flake8 @ file:///root/.cache/pypoetry/artifacts/93/78/ae/ee75d1b46827f8892defc2a710979cc71803d2da75a049bdabd3adad70/flake8-3.9.2-py2.py3-none-any.whl
gunicorn @ file:///root/.cache/pypoetry/artifacts/eb/33/9c/43e158642e15413395d933fef80bb16fa6b50a6ed8dd157f506b6b2c03/gunicorn-20.1.0-py3-none-any.whl
h11 @ file:///root/.cache/pypoetry/artifacts/6f/50/9d/65e5b4940425051d03fab25052973dcf80bbe2f00676b117d40996e468/h11-0.12.0-py3-none-any.whl
html5lib==1.1
idna==2.10
iniconfig @ file:///root/.cache/pypoetry/artifacts/ac/f9/da/e990ffcd9ec361a68676a5916e391286e1ea5d1b8907ae887e141a71f5/iniconfig-1.1.1-py2.py3-none-any.whl
jeepney==0.6.0
Jinja2 @ file:///root/.cache/pypoetry/artifacts/1b/1c/64/6fcc5a7a4ffb6e923a1309d4e4d62309f637ac52cba8614c5778bc2650/Jinja2-3.0.1-py3-none-any.whl
jmespath @ file:///root/.cache/pypoetry/artifacts/43/d5/a2/f83573231324de7f5b61f5c607fbbe82ca535359a452de4852d2e25e8d/jmespath-0.10.0-py2.py3-none-any.whl
keyring==21.8.0
kombu @ file:///root/.cache/pypoetry/artifacts/62/75/03/0f5b0f86c7d2cfe40c38ca2d39d616bb71163d8848bdddcdaa0f86fc20/kombu-5.1.0-py3-none-any.whl
lockfile==0.12.2
Mako @ file:///root/.cache/pypoetry/artifacts/2b/e8/50/1d2ac0c7a28dfc4ef81a559bcb6d5dba8682c0d28edfdd91917d23a199/Mako-1.1.4-py2.py3-none-any.whl
MarkupSafe @ file:///root/.cache/pypoetry/artifacts/e9/aa/ce/73da3aa2f2d872e5d1cb28a49f7e6e0e76c9e7ba290b034f442badefd2/MarkupSafe-2.0.1-cp38-cp38-manylinux2010_x86_64.whl
mccabe @ file:///root/.cache/pypoetry/artifacts/37/6e/69/4a33a4d6c80c775b1ee205face2c6e07b762c8602bb0f0d236ebe790c5/mccabe-0.6.1-py2.py3-none-any.whl
msgpack==1.0.2
multidict @ file:///root/.cache/pypoetry/artifacts/36/92/90/7beba42c3a6efbfdc30dc864c33286fa23817b3942b21ccaf319f18ed3/multidict-5.1.0-cp38-cp38-manylinux2014_x86_64.whl
orjson @ file:///root/.cache/pypoetry/artifacts/72/11/13/e2e7fa1425adc13fa055e81e0ad53ee39758f5b27f40f139c86fe6b7fa/orjson-3.5.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
packaging==20.9
pastel==0.2.1
pexpect==4.8.0
pkginfo==1.7.0
pluggy @ file:///root/.cache/pypoetry/artifacts/9c/e5/0b/2d64d03361a081edeb5d2ec5f286ccf9719587781fbf6822e1b6384c27/pluggy-0.13.1-py2.py3-none-any.whl
poetry==1.1.6
poetry-core==1.0.3
prompt-toolkit @ file:///root/.cache/pypoetry/artifacts/b9/d1/38/231fc80979af8084d0746ac9e5bcaceb6ae7412ed7c1c1c537659d117f/prompt_toolkit-3.0.18-py3-none-any.whl
psycopg2-binary @ file:///root/.cache/pypoetry/artifacts/c6/89/2e/f0a2bb1c73cbdda3697229e4891d4fce14add7bb9b2f75dec7828e1e6f/psycopg2_binary-2.8.6-cp38-cp38-manylinux1_x86_64.whl
ptyprocess==0.7.0
py @ file:///root/.cache/pypoetry/artifacts/6b/b2/2b/e6686e7d0183dbd36bd66921efa3e77ce26260a3671524cd86614290e0/py-1.10.0-py2.py3-none-any.whl
pyasn1 @ file:///root/.cache/pypoetry/artifacts/a6/f7/5e/59a43ec23ade0888631b3f24244da7f5d5a0b6b40849c86b8c6b4c54d1/pyasn1-0.4.8-py2.py3-none-any.whl
pycodestyle @ file:///root/.cache/pypoetry/artifacts/ea/27/4a/ce8e18f033aae28e47dc2895901dce76e10e7c9efc48bcd95ab4443c47/pycodestyle-2.7.0-py2.py3-none-any.whl
pycparser==2.20
pydantic @ file:///root/.cache/pypoetry/artifacts/97/5a/97/6d56f653b6eb23c25fe8bd938764b95b9ddae8d8bcb08fb129df79f752/pydantic-1.8.2-cp38-cp38-manylinux2014_x86_64.whl
pyflakes @ file:///root/.cache/pypoetry/artifacts/b0/73/41/34d4d02987e40ffa6ee0292425303a75b4178476bf134ceaf0585a9faf/pyflakes-2.3.1-py2.py3-none-any.whl
pylev==1.4.0
pyparsing==2.4.7
pytest @ file:///root/.cache/pypoetry/artifacts/8a/b9/90/4514a24414e38b20d118ef142b175d429a18dba120914e9e0dffc5fa56/pytest-6.2.4-py3-none-any.whl
pytest-aiohttp @ file:///root/.cache/pypoetry/artifacts/a8/4e/c1/891a775ef615683510673efc2895db6b62f844caa79e6a335fcc29607c/pytest_aiohttp-0.3.0-py3-none-any.whl
python-dateutil @ file:///root/.cache/pypoetry/artifacts/1e/2c/dc/0e811c2299b40168ee1da03bc13c11762ce9fa96eb867ad22280db11fc/python_dateutil-2.8.1-py2.py3-none-any.whl
python-editor @ file:///root/.cache/pypoetry/artifacts/88/e4/9a/6a3b58d3811aabb356fe1af49b223e67e18505daf666e0dca62c12f260/python_editor-1.0.4-py3-none-any.whl
pytz @ file:///root/.cache/pypoetry/artifacts/19/50/c9/f8bffb0360052b3c85b912bc4172f824bc2571e24002806fb3a428302e/pytz-2021.1-py2.py3-none-any.whl
PyYAML @ file:///root/.cache/pypoetry/artifacts/f7/d9/62/83fb890c5915cc3c7a919097a61e93e54d7a3c47832b2f91e38224359d/PyYAML-5.4.1-cp38-cp38-manylinux1_x86_64.whl
redis @ file:///root/.cache/pypoetry/artifacts/7d/10/53/5e7715691ea8dff1b633fa5813e2a864bf74e3659c469d2a23cd6aae35/redis-3.5.3-py2.py3-none-any.whl
requests==2.25.1
requests-toolbelt==0.9.1
rsa @ file:///root/.cache/pypoetry/artifacts/3a/ab/43/a67c8d818350593872a5713ca125b95f465d62eee5ba7895de1194add1/rsa-4.7.2-py3-none-any.whl
s3transfer @ file:///root/.cache/pypoetry/artifacts/d5/26/6a/727af0fce69424f6803bc321ad17a139d3b58ceb9c82eac6d0f7ffc28a/s3transfer-0.4.2-py2.py3-none-any.whl
SecretStorage==3.3.1
shellingham==1.4.0
six==1.16.0
SQLAlchemy @ file:///root/.cache/pypoetry/artifacts/87/89/61/bd5c84081c9a69a763f109bd41e59f0f19183646d58ef4b9d48595d02d/SQLAlchemy-1.3.24-cp38-cp38-manylinux2010_x86_64.whl
starlette @ file:///root/.cache/pypoetry/artifacts/64/44/19/ddfa154bd917148cb72d6cb3d86a16bc3fa7c2c7cc7786898aee24c8b0/starlette-0.13.6-py3-none-any.whl
toml @ file:///root/.cache/pypoetry/artifacts/9f/8c/c3/7b4f6778d60f3c9fa11f8fd0e48243bbad25a04975e0a01006b6350594/toml-0.10.2-py2.py3-none-any.whl
tomlkit==0.7.2
typing-extensions @ file:///root/.cache/pypoetry/artifacts/fe/31/ef/8176395be3e4536aa430a84a1af3ade772047a9017c78ce2d045c1636b/typing_extensions-3.10.0.0-py3-none-any.whl
ujson @ file:///root/.cache/pypoetry/artifacts/bb/13/77/5f095aaa3083302d1041012b0d43375c60eb4b929d09f806fa770d4d2d/ujson-1.35.tar.gz
urllib3==1.26.5
uvicorn @ file:///root/.cache/pypoetry/artifacts/1d/0a/24/4866f58eb94ae161513ad8eb253f426f177c3695de6305af006853f27d/uvicorn-0.13.4-py3-none-any.whl
vine @ file:///root/.cache/pypoetry/artifacts/a7/a3/26/0b4cc5bb6d8828de4b6043228c8fdff0eea9acf787d1ca87cd308560a6/vine-5.0.0-py2.py3-none-any.whl
virtualenv==20.4.7
wcwidth @ file:///root/.cache/pypoetry/artifacts/36/68/e2/7232f431072d5e8aeec124120b9a1d095d45da10311d271fac10982473/wcwidth-0.2.5-py2.py3-none-any.whl
webencodings==0.5.1
yarl @ file:///root/.cache/pypoetry/artifacts/ba/ae/48/6e2cb824dd72016fe49814c19c62914323a44b9b9d3d10b583b013dbf3/yarl-1.6.3-cp38-cp38-manylinux2014_x86_64.whl
root@task-keeper-api-executor-worker-558785df4f-n47d5:/app#
</code></pre></div>
<p dir="auto"></p>
</details>
<h3 dir="auto">Other Dependencies</h3>
<details>
<p dir="auto">
ReplicationGroup:
Type: AWS::ElastiCache::ReplicationGroup
Properties:
AutomaticFailoverEnabled: true
CacheNodeType: cache.t3.medium
Engine: redis
EngineVersion: default.redis6.x
NumCacheClusters: 2
</p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<details>
<p dir="auto">
</p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pipelines = []
for task in Factory.gen_tasks(request):
pipelines.append(
chain(
post_new.si(task),
http_task_executor.si(task),
group(
chain(
post_status_update.s(task.id),
post_status_log.s(task.id),
),
post_reply.s(task.id),
),
)
)
async_task = group(pipelines).apply_async()"><pre class="notranslate"><span class="pl-s1">pipelines</span> <span class="pl-c1">=</span> []
<span class="pl-k">for</span> <span class="pl-s1">task</span> <span class="pl-c1">in</span> <span class="pl-v">Factory</span>.<span class="pl-en">gen_tasks</span>(<span class="pl-s1">request</span>):
<span class="pl-s1">pipelines</span>.<span class="pl-en">append</span>(
<span class="pl-en">chain</span>(
<span class="pl-s1">post_new</span>.<span class="pl-en">si</span>(<span class="pl-s1">task</span>),
<span class="pl-s1">http_task_executor</span>.<span class="pl-en">si</span>(<span class="pl-s1">task</span>),
<span class="pl-en">group</span>(
<span class="pl-en">chain</span>(
<span class="pl-s1">post_status_update</span>.<span class="pl-en">s</span>(<span class="pl-s1">task</span>.<span class="pl-s1">id</span>),
<span class="pl-s1">post_status_log</span>.<span class="pl-en">s</span>(<span class="pl-s1">task</span>.<span class="pl-s1">id</span>),
),
<span class="pl-s1">post_reply</span>.<span class="pl-en">s</span>(<span class="pl-s1">task</span>.<span class="pl-s1">id</span>),
),
)
)
<span class="pl-s1">async_task</span> <span class="pl-c1">=</span> <span class="pl-en">group</span>(<span class="pl-s1">pipelines</span>).<span class="pl-en">apply_async</span>()</pre></div>
<p dir="auto"><em>post_new</em> - returns None<br>
<em>http_task_executor</em> - returns <em>arg</em> for next <em>group</em><br>
<em>post_status_update</em> - consumes <em>arg</em> from <em>http_task_executor</em> task<br>
<em>post_reply</em> - consumes <em>arg</em> from <em>http_task_executor</em> task</p>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto">Execution continue step by step</p>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">Found strange behavior implementing tasks pipeline on Celery. Most of the time tasks chain executed, but sometimes it just silently stops in the middle after the successful run of the previous task.</p>
<p dir="auto">So most of the time (99%, probably) everything is fine and task executed after another task. But sometimes execution stops after <em>post_new</em> or after <em>http_task_executor</em> tasks</p>
<p dir="auto">In both cases, I see in logs that the previous task completed, but the next step task is not received by a worker. Also, the queue is empty. So I started to think that a message was not sent to the broker. In debug logs, I see only information regarding internal heartbeat, no errors, no exceptions.</p>
<p dir="auto">Also, with docker-compose this works much more stable.</p>
<p dir="auto">Last message for the missed task execution:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2021-06-15 19:52:32,995: INFO/ForkPoolWorker-1] Task task.http_task_executor[07cd4913-2222-4ed6-8749-ae8a663c2aec] succeeded in 1.5408981110085733s: "><pre class="notranslate"><code class="notranslate">[2021-06-15 19:52:32,995: INFO/ForkPoolWorker-1] Task task.http_task_executor[07cd4913-2222-4ed6-8749-ae8a663c2aec] succeeded in 1.5408981110085733s:
</code></pre></div>
<p dir="auto">So, Celery reported success but no more tasks started.</p>
<p dir="auto">Additional info:<br>
Pool: prefork<br>
Concurrency: 8</p>
<p dir="auto">According to the pipeline can this happen if for some reason a worker can't store results in Redis broker and just silently ignores errors?</p>
<p dir="auto">Another possibility is loss of messages in RabbitMQ which I will try to check</p> | <h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Enhancement%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical enhancement to an existing feature.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22Issue+Type%3A+Enhancement%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed enhancements.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the if the same enhancement was already implemented in the<br>
master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues in this issue<br>
(If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="369299075" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/5106" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/5106/hovercard" href="https://github.com/celery/celery/issues/5106">#5106</a> feels like it may be fixed by this as well, but I'm not sure that it fixes their exact issue</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="456154668" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/5598" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/5598/hovercard" href="https://github.com/celery/celery/issues/5598">#5598</a> mentions that the docs don't describe this redelivered behavior</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h1 dir="auto">Brief Summary</h1>
<p dir="auto">If task_acks_late and task_reject_on_worker_lost are set, a task will be requeued the first time it fails due to losing a worker. However if the message has the <code class="notranslate">redelivered</code> flag set to True, <a href="https://github.com/celery/celery/blob/master/celery/worker/request.py#L518">requeue will be set to false</a>. That means a second worker lost failure doesn't get retried.</p>
<p dir="auto">We're running on Heroku and it's possible we'll get workers killed back to back if we release new code and then do a config change right after, as one example. We'd like to continue to requeue the task regardless of the redelivered flag.</p>
<h1 dir="auto">Design</h1>
<h2 dir="auto">Architectural Considerations</h2>
<p dir="auto">None</p>
<h2 dir="auto">Proposed Behavior</h2>
<p dir="auto">Add a configuration flag task_requeue_on_redelivered that if set to True, causes the task to be requeued regardless of the redelivered flag.</p>
<p dir="auto">I'm happy to put together a PR to do this if it seems like a reasonable approach.</p>
<h2 dir="auto">Proposed UI/UX</h2>
<h2 dir="auto">Diagrams</h2>
<p dir="auto">N/A</p>
<h2 dir="auto">Alternatives</h2>
<p dir="auto">The way we work around this now is by overriding Request and always setting redelivered to False:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class NeverRedeliveredRequest(Request):
def __init__(self, message, **kwargs):
if message.delivery_info:
message.delivery_info['redelivered'] = False
super().__init__(message, **kwargs)"><pre class="notranslate"><code class="notranslate">class NeverRedeliveredRequest(Request):
def __init__(self, message, **kwargs):
if message.delivery_info:
message.delivery_info['redelivered'] = False
super().__init__(message, **kwargs)
</code></pre></div>
<p dir="auto">I don't like obliterating information that might be used elsewhere though, so I'd prefer this to be in Celery itself.</p> | 0 |
<ul dir="auto">
<li>VSCode Version:1.0.0</li>
<li>OS Version:Debian Stretch</li>
</ul>
<p dir="auto">Git push should ask for authentication, but vs-code reports error :</p>
<blockquote>
<p dir="auto">Authentication failed on git remote.</p>
</blockquote> | <p dir="auto">The intellisense support for PHP is too poor.</p>
<ul dir="auto">
<li>There is no namespace auto complete</li>
<li>No intellisense for the included namespaces</li>
<li>No intellisense for native php classes.. \DateTime for example</li>
<li>The autocomplete appears to be super fuzzy.</li>
</ul>
<p dir="auto">class Foo(){<br>
public function bar(){<br>
}<br>
}</p>
<p dir="auto">$x = new Foo()<br>
$y-> // Shows bar()</p> | 0 |
<p dir="auto">Demo <a href="http://codepen.io/FreeCodeCamp/full/KVNNXY" rel="nofollow">http://codepen.io/FreeCodeCamp/full/KVNNXY</a> of <a href="https://www.freecodecamp.com/challenges/show-relationships-with-a-force-directed-graph" rel="nofollow">https://www.freecodecamp.com/challenges/show-relationships-with-a-force-directed-graph</a> challenge</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="XMLHttpRequest cannot load http://www.freecodecamp.com/news/hot. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://s.codepen.io' is therefore not allowed access."><pre class="notranslate"><code class="notranslate">XMLHttpRequest cannot load http://www.freecodecamp.com/news/hot. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://s.codepen.io' is therefore not allowed access.
</code></pre></div>
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/show-relationships-with-a-force-directed-graph" rel="nofollow">Show Relationships with a Force Directed Graph</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p> | <p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/show-relationships-with-a-force-directed-graph" rel="nofollow">Show Relationships with a Force Directed Graph</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:41.0) Gecko/20100101 Firefox/41.0</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">Just opened the pen and it spits out a CORS error.</p> | 1 |
<p dir="auto">I use go version go1.5.1 darwin/amd64.</p>
<p dir="auto">I write a simple http server like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package main
import (
"log"
"net/http"
"os"
"os/signal"
)
func main() {
c := make(chan os.Signal, 1)
signal.Notify(c)
go func() {
for s := range c {
log.Println("recv signal: ", s.String())
}
}()
http.HandleFunc("/hello", func(rw http.ResponseWriter, r *http.Request) {
resp, _ := http.Get("http://www.baidu.com")
if resp != nil && resp.Body != nil {
resp.Body.Close()
}
http.Error(rw, "ok", http.StatusOK)
})
log.Fatal(http.ListenAndServe(":8888", nil))
}"><pre class="notranslate"><code class="notranslate">package main
import (
"log"
"net/http"
"os"
"os/signal"
)
func main() {
c := make(chan os.Signal, 1)
signal.Notify(c)
go func() {
for s := range c {
log.Println("recv signal: ", s.String())
}
}()
http.HandleFunc("/hello", func(rw http.ResponseWriter, r *http.Request) {
resp, _ := http.Get("http://www.baidu.com")
if resp != nil && resp.Body != nil {
resp.Body.Close()
}
http.Error(rw, "ok", http.StatusOK)
})
log.Fatal(http.ListenAndServe(":8888", nil))
}
</code></pre></div>
<p dir="auto">Then, If I curl <a href="http://127.0.0.1:8888/hello" rel="nofollow">http://127.0.0.1:8888/hello</a> and then press Ctrl-C very quickly, the server will receive "broken pipe" signal. And if server receive many broken pipe signal, the process will exit.</p> | <p dir="auto">Back in <a href="https://go.googlesource.com/go/+/f7d3eb9db97a65a43b8d6b8bf42b8698fe4468ee" rel="nofollow">https://go.googlesource.com/go/+/f7d3eb9db97a65a43b8d6b8bf42b8698fe4468ee</a> we added code so that if we saw 10 EPIPE failures in a row on the same file descriptor, we would exit the program. Today we exit the program by raising a SIGPIPE signal, but we still wait for 10 failures. That leads to issues like <a href="https://golang.org/issue/11839" rel="nofollow">https://golang.org/issue/11839</a> and workarounds like <a href="https://golang.org/cl/12571" rel="nofollow">https://golang.org/cl/12571</a>.</p>
<p dir="auto">Now that we have the os/signal package, Go programs have the mechanisms they need to control this. I propose that we change the Go runtime to not handle SIGPIPE by default. If os/signal.Notify is used for SIGPIPE, that only at that point should we add a handler for SIGPIPE. Then we should remove the EPIPE handling from the os package, and treat it like any other error.</p> | 1 |
<p dir="auto">Is there a way for the dialog to go fullscreen (no overlay)? this would be handy for a phone view where space is limited.</p> | <p dir="auto">Currently I have the Dialog props set to:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" title="Dialog"
modal = {true}
actions={standardActions}
autoDetectWindowHeight={false}
autoScrollBodyContent={false}
contentStyle={{width: 700}}
ref="addNewDialog""><pre class="notranslate"> <span class="pl-s1">title</span><span class="pl-c1">=</span><span class="pl-s">"Dialog"</span>
<span class="pl-s1">modal</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>true<span class="pl-kos">}</span>
<span class="pl-s1">actions</span><span class="pl-c1">=</span><span class="pl-kos">{</span>standardActions<span class="pl-kos">}</span>
<span class="pl-s1">autoDetectWindowHeight</span><span class="pl-c1">=</span><span class="pl-kos">{</span>false<span class="pl-kos">}</span>
<span class="pl-s1">autoScrollBodyContent</span><span class="pl-c1">=</span><span class="pl-kos">{</span>false<span class="pl-kos">}</span>
<span class="pl-s1">contentStyle</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">{</span><span class="pl-c1">width</span>: <span class="pl-c1">700</span><span class="pl-kos">}</span><span class="pl-kos">}</span>
<span class="pl-s1">ref</span><span class="pl-kos"></span><span class="pl-c1">=</span><span class="pl-s">"addNewDialog"</span></pre></div>
<p dir="auto">If I change contentStyle={{width: 700}} it will not widen. But if I change it to something really small, like 10 px, it works. Does anyone know how I can set it to a much bigger display?</p> | 1 |
<p dir="auto">I found that if there is a really long single line (in my case js), atom will only colorize the code that was visible. If you try to scroll right, you can see the rest of the line but with no colors applied.</p> | <p dir="auto">when double click the variable is focusing same value</p> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate. I believe the only relevant thing is this comment <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="256221973" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/8100" data-hovercard-type="issue" data-hovercard-url="/mui/material-ui/issues/8100/hovercard?comment_id=328078814&comment_type=issue_comment" href="https://github.com/mui/material-ui/issues/8100#issuecomment-328078814">#8100 (comment)</a>:
<blockquote>
<p dir="auto">we would love to know if you can bundle the v1-beta branch with rollup.</p>
</blockquote>
</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Bundling with Rollup should work as long as MUI provides ES modules (<a href="https://github.com/rollup/rollup/wiki/ES6-modules#es6-friendly-libraries">https://github.com/rollup/rollup/wiki/ES6-modules#es6-friendly-libraries</a>).</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Currently, there is an <code class="notranslate">index.es.js</code> file which is an ES module itself, but it points at CommonJS modules (<a href="https://unpkg.com/[email protected]/index.es.js" rel="nofollow">https://unpkg.com/[email protected]/index.es.js</a>). This then causes Rollup to fail to build:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[!] Error: 'BottomNavigationAction' is not exported by node_modules/material-ui/BottomNavigation/index.js
https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module
node_modules/material-ui/index.es.js (9:38)
7: export { default as Avatar } from './Avatar';
8: export { default as Badge } from './Badge';
9: export { default as BottomNavigation, BottomNavigationAction } from './BottomNavigation';
^
10: export { default as Button } from './Button';
11: export { default as ButtonBase } from './ButtonBase';"><pre class="notranslate"><code class="notranslate">[!] Error: 'BottomNavigationAction' is not exported by node_modules/material-ui/BottomNavigation/index.js
https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module
node_modules/material-ui/index.es.js (9:38)
7: export { default as Avatar } from './Avatar';
8: export { default as Badge } from './Badge';
9: export { default as BottomNavigation, BottomNavigationAction } from './BottomNavigation';
^
10: export { default as Button } from './Button';
11: export { default as ButtonBase } from './ButtonBase';
</code></pre></div>
<p dir="auto">Presumably, this is because <a href="https://github.com/rollup/rollup-plugin-commonjs">https://github.com/rollup/rollup-plugin-commonjs</a> cannot fully understand the CommonJS exports (unless you manually specify them via <a href="https://github.com/rollup/rollup-plugin-commonjs#custom-named-exports"><code class="notranslate">namedExports</code></a> option).</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">I have a simple repro available here: <a href="https://github.com/NMinhNguyen/material-ui-rollup-example">https://github.com/NMinhNguyen/material-ui-rollup-example</a></p>
<p dir="auto">It also contains a branch where I modified <code class="notranslate">yarn.lock</code> to point at a temporary fork of MUI that publishes ES modules (<a href="https://github.com/NMinhNguyen/material-ui/commit/2a716a44dbb17bbe5fc7aecdffa6089ba8964237">source</a>), and bundling with Rollup works without any other changes. I am willing to raise a PR with this change (I'll probably also replace the current <code class="notranslate">build:es2015modules</code> script as I believe my change supersedes it, but not sure if removing <code class="notranslate">index.es.js</code> could be considered a breaking change?), but I thought I'd raise an issue first (this is also what the contributing guide suggests) 🙂</p>
<p dir="auto">I have also created this <a href="https://github.com/NMinhNguyen/material-ui/commits/es5-modules-analysis">branch</a> where I committed the current build output and how it <a href="https://github.com/NMinhNguyen/material-ui/commit/aa4f206373ad23457a7bb9d28b1055c33dc2a13b">changes</a> with my changes so you can more easily review them as well as spot any possible regressions. And <a href="https://github.com/NMinhNguyen/material-ui/commit/8d5fcc450db809712ad274f06c438bb98e9ef463">here</a> you can find the actual ES5 modules.</p>
<p dir="auto">By the way, the reason I would rather not use the <code class="notranslate">es</code> folder is because that folder is ESNext (2015+), so I'd have to transpile it via Babel myself. This would mean that I'd additionally have to include these plugins to ensure I get the same Babel transformations applied: <a href="https://github.com/mui-org/material-ui/blob/8497cd976d74cfd102c6e8afb932348b366dd5b3/.babelrc#L70-L83">https://github.com/mui-org/material-ui/blob/8497cd976d74cfd102c6e8afb932348b366dd5b3/.babelrc#L70-L83</a></p>
<h2 dir="auto">Context</h2>
<p dir="auto">We are using Rollup to bundle our code.</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>1.0.0-beta.32</td>
</tr>
<tr>
<td>React</td>
<td>16.2.0</td>
</tr>
<tr>
<td>Rollup</td>
<td>0.55.3</td>
</tr>
<tr>
<td>rollup-plugin-commonjs</td>
<td>8.3.0</td>
</tr>
</tbody>
</table> | <p dir="auto">The CardMedia component don't accept children on his tag.</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 would like to be able to do it inside CardMedia:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10498833/36188932-9df6c768-1136-11e8-960d-40cecf90996b.png"><img src="https://user-images.githubusercontent.com/10498833/36188932-9df6c768-1136-11e8-960d-40cecf90996b.png" alt="image" style="max-width: 100%;"></a></p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto"><a href="https://github.com/mui-org/material-ui/blob/v1-beta/src/Card/CardMedia.js#L45">https://github.com/mui-org/material-ui/blob/v1-beta/src/Card/CardMedia.js#L45</a></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.28</td>
</tr>
<tr>
<td>React</td>
<td>16.2</td>
</tr>
</tbody>
</table>
<hr>
<p dir="auto">If improve this make sense, I also would like to take.</p> | 0 |
<p dir="auto"><strong>HEAD</strong>: I rewrite my issue for people who search for c++ include error solution.</p>
<p dir="auto">Opencv4 (version 4.x.x) (building from source for linux) move include files in /usr/local/include/<strong>opencv4/opencv2</strong>/...<br>
The problem is lot of opencv modules are including <strong><opencv2/</strong>...> which make error while compiling.<br>
Yes, I know that is very difficult to change all includes in modules, but you can change it in the Makefile.</p>
<p dir="auto">Of course, this is just a recommendation for your project, for me, I resolved the problem by executing this commands:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="mv /usr/local/include/opencv4/opencv2 /usr/local/include/.
rm -rf /usr/local/include/opencv4"><pre class="notranslate">mv /usr/local/include/opencv4/opencv2 /usr/local/include/.
rm -rf /usr/local/include/opencv4</pre></div>
<p dir="auto">Thanks Developers <g-emoji class="g-emoji" alias="1st_place_medal" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f947.png">🥇</g-emoji> !</p>
<p dir="auto"><strong>EDIT</strong>: I found a new problem while compiling a simple opencv project which read image and display it. And I found a resolution for this error:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# I make an opencv.pc file which it can be read by pkg-config in linux
cat > /usr/lib/pkgconfig/opencv.pc << EOF
# Package Information for pkg-config
prefix=/usr
exec_prefix=${prefix}/local
libdir=${prefix}/lib
includedir=${exec_prefix}/include/opencv2
Name: OpenCV
Description: Open Source Computer Vision Library
Version: 4.5.1
Libs: -L${libdir} -lopencv_stitching -lopencv_alphamat -lopencv_aruco -lopencv_bgsegm -lopencv_bioinspired -lopencv_ccalib -lopencv_dnn_objdetect -lopencv_dnn_superres -lopencv_dpm -lopencv_face -lopencv_freetype -lopencv_fuzzy -lopencv_hdf -lopencv_hfs -lopencv_img_hash -lopencv_intensity_transform -lopencv_line_descriptor -lopencv_mcc -lopencv_quality -lopencv_rapid -lopencv_reg -lopencv_rgbd -lopencv_saliency -lopencv_shape -lopencv_stereo -lopencv_structured_light -lopencv_phase_unwrapping -lopencv_superres -lopencv_optflow -lopencv_surface_matching -lopencv_tracking -lopencv_highgui -lopencv_datasets -lopencv_text -lopencv_plot -lopencv_ml -lopencv_videostab -lopencv_videoio -lopencv_viz -lopencv_ximgproc -lopencv_video -lopencv_dnn -lopencv_xobjdetect -lopencv_objdetect -lopencv_calib3d -lopencv_imgcodecs -lopencv_features2d -lopencv_flann -lopencv_xphoto -lopencv_photo -lopencv_imgproc -lopencv_core
Libs.private: -ldl -lm -lpthread -lrt
Cflags: -I${includedir}
EOF"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> I make an opencv.pc file which it can be read by pkg-config in linux</span>
cat <span class="pl-k">></span> /usr/lib/pkgconfig/opencv.pc <span class="pl-s"><span class="pl-k"><<</span> <span class="pl-k">EOF</span></span>
<span class="pl-s"># Package Information for pkg-config</span>
<span class="pl-s"></span>
<span class="pl-s">prefix=/usr</span>
<span class="pl-s">exec_prefix=<span class="pl-smi">${prefix}</span>/local</span>
<span class="pl-s">libdir=<span class="pl-smi">${prefix}</span>/lib</span>
<span class="pl-s">includedir=<span class="pl-smi">${exec_prefix}</span>/include/opencv2</span>
<span class="pl-s"></span>
<span class="pl-s">Name: OpenCV</span>
<span class="pl-s">Description: Open Source Computer Vision Library</span>
<span class="pl-s">Version: 4.5.1</span>
<span class="pl-s">Libs: -L<span class="pl-smi">${libdir}</span> -lopencv_stitching -lopencv_alphamat -lopencv_aruco -lopencv_bgsegm -lopencv_bioinspired -lopencv_ccalib -lopencv_dnn_objdetect -lopencv_dnn_superres -lopencv_dpm -lopencv_face -lopencv_freetype -lopencv_fuzzy -lopencv_hdf -lopencv_hfs -lopencv_img_hash -lopencv_intensity_transform -lopencv_line_descriptor -lopencv_mcc -lopencv_quality -lopencv_rapid -lopencv_reg -lopencv_rgbd -lopencv_saliency -lopencv_shape -lopencv_stereo -lopencv_structured_light -lopencv_phase_unwrapping -lopencv_superres -lopencv_optflow -lopencv_surface_matching -lopencv_tracking -lopencv_highgui -lopencv_datasets -lopencv_text -lopencv_plot -lopencv_ml -lopencv_videostab -lopencv_videoio -lopencv_viz -lopencv_ximgproc -lopencv_video -lopencv_dnn -lopencv_xobjdetect -lopencv_objdetect -lopencv_calib3d -lopencv_imgcodecs -lopencv_features2d -lopencv_flann -lopencv_xphoto -lopencv_photo -lopencv_imgproc -lopencv_core</span>
<span class="pl-s">Libs.private: -ldl -lm -lpthread -lrt</span>
<span class="pl-s">Cflags: -I<span class="pl-smi">${includedir}</span></span>
<span class="pl-s"><span class="pl-k">EOF</span></span></pre></div>
<p dir="auto">I made a full automation script shell in my <a href="https://github.com/Seven-7Up/opencv-installerForLinux/">repo</a>. Check it later if you like.</p> | <h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.0.0-rc</li>
<li>Operating System / Platform => Ubuntu 18.10</li>
<li>Compiler => gcc 8.2.0 / gcc 6</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I did cmake ...Then make and then make install<br>
and it does not generate opencv.pc file.</p>
<p dir="auto">If I use same commands for version 3.4.3 then the file is created.</p>
<p dir="auto">Another thing<br>
if I link with pkgconfig then it links to librarys with no version numbers.<br>
so installing 4.0.0-rc after 3.4.3 makes pkgconfig unusable.<br>
it would be nice if there were multiple opencv.pc files like opencv3.4.pc opencv4.pc</p> | 1 |
<h3 dir="auto">Description</h3>
<p dir="auto">When viewing the DAG history in Tree View, individual DAG run times are available by hovering over the DAG run. As an Airflow user, I would like the average execution time to be readily available in the UI -> DAG -> Tree View.<br>
It can be an average over the last <em>n</em> runs, <em>n</em> being the number of runs selected in the Tree View.</p>
<h3 dir="auto">Use case/motivation</h3>
<p dir="auto">The average DAG run execution information can help our team make decisions such as the optimal schedule interval for a DAG.</p>
<h3 dir="auto">Related issues</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Are you willing to submit a PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | <p dir="auto">It would be useful to show a running average dag run duration in the grid view. This could be a plotted line on top of the duration bar chart.</p>
<p dir="auto">The average duration should be calculated on the webserver and included with a dag run's info.</p>
<p dir="auto">Bonus: We could possibly use the average duration to calculate a very rough "Expected time to completion" for active dag runs.</p> | 1 |
<p dir="auto">Maybe BUG, maybe... i dont understand</p>
<p dir="auto">Label have style .hidden-xs {display: block !important;}<br>
on sm, md, lg label position to new string... and visual deformation interface</p>
<p dir="auto"><a href="https://gist.github.com/Roosso/6762675">https://gist.github.com/Roosso/6762675</a></p>
<p dir="auto">P.S. Sorry for my english</p> | <p dir="auto">related to issues <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="16856611" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/8500" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/8500/hovercard" href="https://github.com/twbs/bootstrap/pull/8500">#8500</a> , <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="14075731" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/7808" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/7808/hovercard" href="https://github.com/twbs/bootstrap/issues/7808">#7808</a> , <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6609454" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/4929" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/4929/hovercard" href="https://github.com/twbs/bootstrap/issues/4929">#4929</a> ; using <code class="notranslate">.hidden-sm</code> to hide span within <code class="notranslate">.nav > li > a</code> . Because class is <code class="notranslate">display: block</code> above -sm then text wraps to new line. Would you consider <code class="notranslate">.hidden-*</code> classes to be <code class="notranslate">display: inline-block</code> instead ?</p>
<p dir="auto">Here's a jsfiddle of the two cases - but the repercussions could be greater outside of this situation so probably needs more consideration... <a href="http://jsfiddle.net/jholl/P86yf/" rel="nofollow">http://jsfiddle.net/jholl/P86yf/</a></p> | 1 |
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.2 master</li>
<li>Operating System / Platform => macOS Catalina 10.15.5</li>
<li>Compiler => Cmake 3.18.1; GNU Make 3.81</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">trying to build OpenCV but getting many errors when run "make -j7". The errors are in train cascade apps folder files.</p>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">Downlaod master code. remove comments for create cascade and traincascade in Cmake file of apps directory. Configure and Generate using CMake Gui. Run command make -j7 and the error starts generating.<br>
Tried rectifying them in "old_ml.hpp" for CvFileStorage by using cv::FileStorage and so on. But on correcting many different errors occur in many of the files in this folder.</p>
<p dir="auto">Few of the errors extract:</p>
<p dir="auto"><a href="https://github.com/opencv/opencv/files/5080128/build_error.txt">build_error.txt</a></p> | <p dir="auto">Hey,<br>
I built opencv 4.0.0 with</p>
<p dir="auto">cmake -D CMAKE_BUILD_TYPE=RELEASE <br>
-D BUILD_opencv_apps=ON <br>
-D OPENCV_EXTRA_MODULES_PATH=<path_to...>/modules ..</p>
<p dir="auto">However, in "build/app" there are no createsamples and traincascade. There are annotation, interractive-calibration, version and visualisation only.<br>
These folders are present in <opencv_src>/apps.<br>
OS - Ubuntu 16.06 LTS</p>
<p dir="auto">Versions 3.4.X worked fine.</p>
<p dir="auto">Is this changed recently?</p> | 1 |
<p dir="auto">Atom is incorrectly highlighting the javascript in this markdown that I am writing. It's written like this because we're seeding, but, even though there isn't a mismatched quote, it seems to think there is. This issue might be more properly put on a package page, but I'm not sure which one to put it on. Also, this happens whether or not I have soft wrap on. It's kinda weird, and doesn't go away if Atom is killed and restarted.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3253673/5420972/6b5cb05e-822a-11e4-9fd3-dba70ebdc0d4.png"><img src="https://cloud.githubusercontent.com/assets/3253673/5420972/6b5cb05e-822a-11e4-9fd3-dba70ebdc0d4.png" alt="screen shot 2014-12-12 at 6 08 49 pm" style="max-width: 100%;"></a></p>
<p dir="auto">Also, to make sure this isn't part of the debate, this is how it looks on emacs. It's properly enclosed there, which tells me that it's Atom and not that there is an unclosed quote there:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3253673/5421023/7e554c9c-822b-11e4-93b1-a22d0be4de1d.png"><img src="https://cloud.githubusercontent.com/assets/3253673/5421023/7e554c9c-822b-11e4-93b1-a22d0be4de1d.png" alt="screen shot 2014-12-12 at 6 19 02 pm" style="max-width: 100%;"></a></p>
<p dir="auto">If I should submit this somewhere else, let me know.</p> | <p dir="auto">I opened a Python file with the following line (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20976125" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/963" data-hovercard-type="pull_request" data-hovercard-url="/atom/atom/pull/963/hovercard" href="https://github.com/atom/atom/pull/963">#963</a>):</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" PrintAndLog(u"SSID: " + RememberedNetwork["SSIDString"].decode("utf-8") + u" - BSSID: " + RememberedNetwork["CachedScanRecord"]["BSSID"] + u" - RSSI: " + str(RememberedNetwork["CachedScanRecord"]["RSSI"]) + u" - Last connected: " + str(RememberedNetwork["LastConnected"]) + u" - Security type: " + RememberedNetwork["SecurityType"] + u" - Geolocation: " + Geolocation, "INFO")"><pre class="notranslate"> <span class="pl-v">PrintAndLog</span>(<span class="pl-s">u"SSID: "</span> <span class="pl-c1">+</span> <span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"SSIDString"</span>].<span class="pl-en">decode</span>(<span class="pl-s">"utf-8"</span>) <span class="pl-c1">+</span> <span class="pl-s">u" - BSSID: "</span> <span class="pl-c1">+</span> <span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"CachedScanRecord"</span>][<span class="pl-s">"BSSID"</span>] <span class="pl-c1">+</span> <span class="pl-s">u" - RSSI: "</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"CachedScanRecord"</span>][<span class="pl-s">"RSSI"</span>]) <span class="pl-c1">+</span> <span class="pl-s">u" - Last connected: "</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"LastConnected"</span>]) <span class="pl-c1">+</span> <span class="pl-s">u" - Security type: "</span> <span class="pl-c1">+</span> <span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"SecurityType"</span>] <span class="pl-c1">+</span> <span class="pl-s">u" - Geolocation: "</span> <span class="pl-c1">+</span> <span class="pl-v">Geolocation</span>, <span class="pl-s">"INFO"</span>)</pre></div>
<p dir="auto">Which led to the following bug:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/e06069206d526a16adf21e84cd179f1185d3fb5e0f05fea4d4b4a08a978092f4/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f34343737342f323331333737382f37366262346262612d613330642d313165332d396136342d3831663666393163323563342e706e67"><img src="https://camo.githubusercontent.com/e06069206d526a16adf21e84cd179f1185d3fb5e0f05fea4d4b4a08a978092f4/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f34343737342f323331333737382f37366262346262612d613330642d313165332d396136342d3831663666393163323563342e706e67" alt="screen shot 2014-03-03 at 2 52 40 pm" data-canonical-src="https://f.cloud.github.com/assets/44774/2313778/76bb4bba-a30d-11e3-9a64-81f6f91c25c4.png" style="max-width: 100%;"></a></p>
<p dir="auto">You can find this as the main file in <a href="https://github.com/jipegit/OSXAuditor/blob/master/osxauditor.py"><code class="notranslate">osxauditor.py</code></a>.</p> | 1 |
<p dir="auto">I have embedded form type with validation group which is important for parent form, but according to this <a href="http://symfony.com/doc/current/reference/forms/types/form.html#cascade-validation" rel="nofollow">http://symfony.com/doc/current/reference/forms/types/form.html#cascade-validation</a> it's not considered. Is there some way to force it's usage?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CurrencyBundle\Entity\Price:
constraints:
- CurrencyBundle\Validator\Constraints\OptionalPrice:
groups: [Optional]
properties:
value:
- NotBlank:
groups: [Default]
- Type:
groups: [Default, Optional]
type: numeric
- Range:
groups: [Default, Optional]
min: 0
currency:
- NotBlank:
groups: [Default]
- Currency:
groups: [Default, Optional]
RFPBundle\Entity\Request:
properties:
requestProducts:
- Valid: ~
RFPBundle\Entity\RequestProduct:
properties:
requestProductItems:
- Valid: ~
RFPBundle\Entity\RequestProductItem:
properties:
price:
- Valid: ~
class RequestProductItemType extends AbstractType
{
/**
* {@inheritdoc}
*/
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add(
'price',
PriceType::NAME,
[
'currency_empty_value' => null,
'label' => 'rfp.requestproductitem.price.label',
'validation_groups' => ['Optional'],
]
);
}"><pre class="notranslate"><code class="notranslate">CurrencyBundle\Entity\Price:
constraints:
- CurrencyBundle\Validator\Constraints\OptionalPrice:
groups: [Optional]
properties:
value:
- NotBlank:
groups: [Default]
- Type:
groups: [Default, Optional]
type: numeric
- Range:
groups: [Default, Optional]
min: 0
currency:
- NotBlank:
groups: [Default]
- Currency:
groups: [Default, Optional]
RFPBundle\Entity\Request:
properties:
requestProducts:
- Valid: ~
RFPBundle\Entity\RequestProduct:
properties:
requestProductItems:
- Valid: ~
RFPBundle\Entity\RequestProductItem:
properties:
price:
- Valid: ~
class RequestProductItemType extends AbstractType
{
/**
* {@inheritdoc}
*/
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add(
'price',
PriceType::NAME,
[
'currency_empty_value' => null,
'label' => 'rfp.requestproductitem.price.label',
'validation_groups' => ['Optional'],
]
);
}
</code></pre></div> | <p dir="auto">I have an entity where I'm using the following validators:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/**
* @Assert\Callback(methods={"isValid"}, groups={"group1", "group2"})
*/
class UserProduct
{
/**
* @var string $title
* @Assert\NotBlank(message="title.blank", groups={"group1", "group2"});
*/
private $title;
/**
* @var Project\AuthenticationBundle\Entity\User
* @Assert\Valid(groups={"group2"});
*/
private $user;"><pre class="notranslate"><span class="pl-c">/**</span>
<span class="pl-c"> * @Assert\Callback(methods={"isValid"}, groups={"group1", "group2"})</span>
<span class="pl-c"> */</span>
<span class="pl-k">class</span> <span class="pl-v">UserProduct</span>
{
<span class="pl-c">/**</span>
<span class="pl-c"> * @var string $title</span>
<span class="pl-c"> * @Assert\NotBlank(message="title.blank", groups={"group1", "group2"});</span>
<span class="pl-c"> */</span>
<span class="pl-k">private</span> <span class="pl-c1"><span class="pl-c1">$</span>title</span>;
<span class="pl-c">/**</span>
<span class="pl-c"> * @var Project\AuthenticationBundle\Entity\User</span>
<span class="pl-c"> * @Assert\Valid(groups={"group2"});</span>
<span class="pl-c"> */</span>
<span class="pl-k">private</span> <span class="pl-c1"><span class="pl-c1">$</span>user</span>;</pre></div>
<p dir="auto">Calling <code class="notranslate">$this->get('validator')->validate($userProduct, array('group1'))</code> asserts the class constraint (<code class="notranslate">@Assert\Callback</code>) and the <code class="notranslate">$title</code> property but also the <code class="notranslate">$user</code> one too, even though it's not included in the validation group. The same happens if no groups are passed to the <code class="notranslate">Valid</code> constraint.</p>
<p dir="auto">Removing the <code class="notranslate">@Assert\Valid()</code> constraint and running the same validation again for <code class="notranslate">group1</code> does not assert the <code class="notranslate">$user</code> property, as expected.</p>
<p dir="auto">The <code class="notranslate">MemberMetadata</code> class appears to always force the cascading of the <code class="notranslate">Valid</code> constraint, although I'm unsure if this is exactly related to the issue I'm experiencing.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// Symfony\Component\Validator\Mapping\MemberMetadata.php
if ($constraint instanceof Valid) {
$this->cascaded = true;
$this->collectionCascaded = $constraint->traverse;
} else {
parent::addConstraint($constraint);
}"><pre class="notranslate"><code class="notranslate">// Symfony\Component\Validator\Mapping\MemberMetadata.php
if ($constraint instanceof Valid) {
$this->cascaded = true;
$this->collectionCascaded = $constraint->traverse;
} else {
parent::addConstraint($constraint);
}
</code></pre></div>
<p dir="auto">Running on Symfony2 master.</p> | 1 |
<p dir="auto">I create this post to bring attention to this thread where I explain my problem: <a href="https://stackoverflow.com/questions/57269797/aggregate-several-axessubplot-after-multiprocessing-to-draw-a-matplotlib-figure" rel="nofollow">https://stackoverflow.com/questions/57269797/aggregate-several-axessubplot-after-multiprocessing-to-draw-a-matplotlib-figure</a> It provides details and reproducible code, so I prefer to not duplicate.</p>
<p dir="auto">Can someone tell me if it's a bug or if I missed something in my code ?</p>
<p dir="auto">Thanks in advance !</p> | <p dir="auto">I'm sure we're all very aware that the travis results are failing (every PR gets some form of notification). I can't find a ticket which raises this issue, so here it is.</p>
<p dir="auto">Has anyone done any investigation into the failings? It would be nice to have it all passing so that we can make good use of the closer github / travis-ci integration messages.</p> | 0 |
<h2 dir="auto"><g-emoji class="g-emoji" alias="question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2753.png">❓</g-emoji> Questions and Help</h2>
<h3 dir="auto">Please note that this issue tracker is not a help form and this issue will be closed.</h3>
<p dir="auto">We have a set of <a href="https://pytorch.org/resources" rel="nofollow">listed resources available on the website</a>. Our primary means of support is our discussion forum:</p>
<ul dir="auto">
<li><a href="https://discuss.pytorch.org/" rel="nofollow">Discussion Forum</a></li>
</ul> | <p dir="auto"><a href="https://pytorch.org/docs/stable/torch.html?highlight=sparse_coo_tensor#torch.sparse_coo_tensor" rel="nofollow">https://pytorch.org/docs/stable/torch.html?highlight=sparse_coo_tensor#torch.sparse_coo_tensor</a> doesn't mention it and doesn't have examples.</p>
<p dir="auto">SciPy mentions (<a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.coo_matrix.html" rel="nofollow">https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.coo_matrix.html</a>) that the corresponding values are to be summed.</p>
<p dir="auto">Would be useful for new users of PyTorch sparse package (like myself).</p> | 0 |
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sqlalchemy import *
engine = create_engine('sqlite://filename=:memory:', echo=True)"><pre class="notranslate"><code class="notranslate">from sqlalchemy import *
engine = create_engine('sqlite://filename=:memory:', echo=True)
</code></pre></div>
<p dir="auto"><strong>ISSUE 1</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="issue1 = Table('issue1', engine,
Column('id', Integer, primary_key=True),
Column('rnd', Integer, PassiveDefault('random()')))
issue1.create()
try:
issue1.insert().execute()
except Exception, e:
print e"><pre class="notranslate"><code class="notranslate">issue1 = Table('issue1', engine,
Column('id', Integer, primary_key=True),
Column('rnd', Integer, PassiveDefault('random()')))
issue1.create()
try:
issue1.insert().execute()
except Exception, e:
print e
</code></pre></div>
<p dir="auto">This is not the issue with SA.<br>
Really, a silly example that I came up with when writing tests that follow.<br>
But, how do you create row made only of defaults?<br>
I can say id=1 and sqlite will ignore it and create<br>
automunber anyway, but other db engines won't</p>
<p dir="auto"><strong>ISSUE 2: PassiveDefault</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="issue2 = Table('issue2', engine,
Column('id', Integer, primary_key=True),
Column('dummy', Integer),
Column('rnd', Integer, PassiveDefault('random()')))
issue2.create()
issue2.insert().execute(dummy = 1, rnd = 123)
issue2.insert().execute(dummy = 2)
print issue2.select().execute().fetchall()"><pre class="notranslate"><code class="notranslate">issue2 = Table('issue2', engine,
Column('id', Integer, primary_key=True),
Column('dummy', Integer),
Column('rnd', Integer, PassiveDefault('random()')))
issue2.create()
issue2.insert().execute(dummy = 1, rnd = 123)
issue2.insert().execute(dummy = 2)
print issue2.select().execute().fetchall()
</code></pre></div>
<p dir="auto">You get [1, 123), (2, 2, u'random()')]((1,)</p>
<p dir="auto">Clearly the PassiveDefault is not suitable for this kind of<br>
work because it creates cols inside db like this (docs agree):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CREATE TABLE test(
id INTEGER NOT NULL PRIMARY KEY,
bu INTEGER,
rnd INTEGER DEFAULT 'random()'
)"><pre class="notranslate"><code class="notranslate">CREATE TABLE test(
id INTEGER NOT NULL PRIMARY KEY,
bu INTEGER,
rnd INTEGER DEFAULT 'random()'
)
</code></pre></div>
<p dir="auto">This is just a literal value for sqlite, and for Oracle<br>
it is a no-go. Oracle only accepts correctly typed literals<br>
and few special oracle functions like sysdate.</p>
<p dir="auto">It seems to me that the more correct way would be to use the<br>
expression itself in the corresponding insert statement.</p>
<p dir="auto"><strong>ISSUE 3: text</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="issue3 = issue2
rnd = text("random()")
print issue3.select(issue3.c.rnd == rnd).execute().fetchall()
try:
issue3.insert().execute(dummy = 3, rnd = rnd)
except Exception, e:
print e"><pre class="notranslate"><code class="notranslate">issue3 = issue2
rnd = text("random()")
print issue3.select(issue3.c.rnd == rnd).execute().fetchall()
try:
issue3.insert().execute(dummy = 3, rnd = rnd)
except Exception, e:
print e
</code></pre></div>
<p dir="auto">text() is working fine in select, but not in insert.<br>
It produces: 'TextClause' object has no attribute 'key'</p>
<p dir="auto">I was originally trying to do just that, insert values with<br>
some defaults without doing unnecessary roundtrips to database.<br>
It was something like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="data = []
seq = text("myseq.nextval") #, key="myseq")
for i,datum in enumerate(datums):
data.append(dict(id=seq, parent_id=pid, position=i+1, datum=datum))
MyTable.table.insert().execute(*data)"><pre class="notranslate"><code class="notranslate">data = []
seq = text("myseq.nextval") #, key="myseq")
for i,datum in enumerate(datums):
data.append(dict(id=seq, parent_id=pid, position=i+1, datum=datum))
MyTable.table.insert().execute(*data)
</code></pre></div>
<p dir="auto">I don't even need those Id's afterwards, I'm just dumping data to db<br>
and later selecting it via parent_id.</p>
<p dir="auto">I am however able to define table like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test = Table('test', engine,
Column('id', Integer, primary_key=True),
Column('dummy', Integer),
Column('rnd', Integer, default=func.random()))
test.create()
test.insert().execute(dummy = 1)"><pre class="notranslate"><code class="notranslate">test = Table('test', engine,
Column('id', Integer, primary_key=True),
Column('dummy', Integer),
Column('rnd', Integer, default=func.random()))
test.create()
test.insert().execute(dummy = 1)
</code></pre></div>
<p dir="auto">Naturally, it is first selecting random(), and then using it for insert.<br>
Fine, and I use it, but it would be nice to save some roundtrips.</p>
<hr>
<p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/119/demoinserttext.py">demoinserttext.py</a></p> | <p dir="auto"><strong>Migrated issue, originally created by jek (<a href="https://github.com/jek">@jek</a>)</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(ProgrammingError) invalid reference to FROM-clause entry for table "principals" at character 737
HINT: There is an entry for table "principals", but it cannot be referenced from this part of the query.
'SELECT anon_1.tickets_owner_id AS anon_1_tickets_owner_id, anon_1.tickets_id AS anon_1_tickets_id, anon_1.tickets_subject AS anon_1_tickets_subject, anon_1.principals_id AS anon_1_principals_id, anon_1.users_id AS anon_1_users_id, anon_1.principals_principal_type AS anon_1_principals_principal_type, anon_1.users_name AS anon_1_users_name,
principals_1.id AS principals_1_id, principals_1.principal_type AS principals_1_principal_type
FROM (SELECT tickets.owner_id AS tickets_owner_id, tickets.id AS tickets_id, tickets.subject AS tickets_subject, principals.id AS principals_id, users.id AS users_id, principals.principal_type AS principals_principal_type, users.name AS users_name
FROM principals, tickets LEFT OUTER JOIN users ON principals.id = users.id
LIMIT 1 OFFSET 0) AS anon_1
LEFT OUTER JOIN principals AS principals_1 ON anon_1.tickets_owner_id = principals_1.id'
#!python
from sqlalchemy import *
from sqlalchemy.orm import *
metadata = MetaData()
Table('principals', metadata,
Column('id', Integer, primary_key=True),
Column('principal_type', String(16), nullable=False))
Table('users', metadata,
Column('id', Integer, ForeignKey('principals.id'), primary_key=True),
Column('name', String(200), nullable=False))
Table('groups', metadata,
Column('id', Integer, ForeignKey('principals.id'), primary_key=True),
Column('name', String(200), nullable=False),
Column('description', String(255)))
Table('tickets', metadata,
Column('id', Integer, primary_key=True),
Column('owner_id', Integer, ForeignKey('principals.id'), nullable=False),
Column('subject', String(200), default='[subject](no)'))
for name, value in metadata.tables.items():
locals()[name](name) = value
class Principal(object):
pass
class Group(Principal):
pass
class User(Principal):
pass
class Ticket(object):
pass
mapper(Principal, principals,
polymorphic_on=principals.c.principal_type)
mapper(User, users,
inherits=Principal,
polymorphic_identity='User')
mapper(Group, groups,
inherits=Principal,
polymorphic_identity='Group')
mapper(Ticket, tickets, properties={
'owner': relation(Principal, backref='tickets',
primaryjoin=(tickets.c.owner_id ==
principals.c.id))
})
def data():
principals.insert().execute(
{'id': 1, 'principal_type': 'User'},
{'id': 2, 'principal_type': 'Group'},
{'id': 3, 'principal_type': 'Group'},
{'id': 4, 'principal_type': 'User'})
users.insert().execute(
{'id': 1, 'name': 'user @ 1'},
{'id': 4, 'name': 'user @ 4'})
groups.insert().execute(
{'id': 2, 'name': 'group @ 2'},
{'id': 3, 'name': 'group @ 3'})
tickets.insert().execute(
{'id': 1, 'owner_id': 1, 'subject': 'Tix @ 1'},
{'id': 2, 'owner_id': 2, 'subject': 'Tix @ 2'},
{'id': 3, 'owner_id': 1, 'subject': 'Tix @ 3'},
{'id': 4, 'owner_id': 1, 'subject': 'Tix @ 4'})
def test():
s = create_session()
s.query(Ticket).options(eagerload(Ticket.owner)).with_polymorphic(User).first()
if __name__ == '__main__':
# passes on sqlite
metadata.bind = 'postgres:///test'
metadata.create_all()
try:
data()
test()
finally:
metadata.drop_all()"><pre class="notranslate"><code class="notranslate">(ProgrammingError) invalid reference to FROM-clause entry for table "principals" at character 737
HINT: There is an entry for table "principals", but it cannot be referenced from this part of the query.
'SELECT anon_1.tickets_owner_id AS anon_1_tickets_owner_id, anon_1.tickets_id AS anon_1_tickets_id, anon_1.tickets_subject AS anon_1_tickets_subject, anon_1.principals_id AS anon_1_principals_id, anon_1.users_id AS anon_1_users_id, anon_1.principals_principal_type AS anon_1_principals_principal_type, anon_1.users_name AS anon_1_users_name,
principals_1.id AS principals_1_id, principals_1.principal_type AS principals_1_principal_type
FROM (SELECT tickets.owner_id AS tickets_owner_id, tickets.id AS tickets_id, tickets.subject AS tickets_subject, principals.id AS principals_id, users.id AS users_id, principals.principal_type AS principals_principal_type, users.name AS users_name
FROM principals, tickets LEFT OUTER JOIN users ON principals.id = users.id
LIMIT 1 OFFSET 0) AS anon_1
LEFT OUTER JOIN principals AS principals_1 ON anon_1.tickets_owner_id = principals_1.id'
#!python
from sqlalchemy import *
from sqlalchemy.orm import *
metadata = MetaData()
Table('principals', metadata,
Column('id', Integer, primary_key=True),
Column('principal_type', String(16), nullable=False))
Table('users', metadata,
Column('id', Integer, ForeignKey('principals.id'), primary_key=True),
Column('name', String(200), nullable=False))
Table('groups', metadata,
Column('id', Integer, ForeignKey('principals.id'), primary_key=True),
Column('name', String(200), nullable=False),
Column('description', String(255)))
Table('tickets', metadata,
Column('id', Integer, primary_key=True),
Column('owner_id', Integer, ForeignKey('principals.id'), nullable=False),
Column('subject', String(200), default='[subject](no)'))
for name, value in metadata.tables.items():
locals()[name](name) = value
class Principal(object):
pass
class Group(Principal):
pass
class User(Principal):
pass
class Ticket(object):
pass
mapper(Principal, principals,
polymorphic_on=principals.c.principal_type)
mapper(User, users,
inherits=Principal,
polymorphic_identity='User')
mapper(Group, groups,
inherits=Principal,
polymorphic_identity='Group')
mapper(Ticket, tickets, properties={
'owner': relation(Principal, backref='tickets',
primaryjoin=(tickets.c.owner_id ==
principals.c.id))
})
def data():
principals.insert().execute(
{'id': 1, 'principal_type': 'User'},
{'id': 2, 'principal_type': 'Group'},
{'id': 3, 'principal_type': 'Group'},
{'id': 4, 'principal_type': 'User'})
users.insert().execute(
{'id': 1, 'name': 'user @ 1'},
{'id': 4, 'name': 'user @ 4'})
groups.insert().execute(
{'id': 2, 'name': 'group @ 2'},
{'id': 3, 'name': 'group @ 3'})
tickets.insert().execute(
{'id': 1, 'owner_id': 1, 'subject': 'Tix @ 1'},
{'id': 2, 'owner_id': 2, 'subject': 'Tix @ 2'},
{'id': 3, 'owner_id': 1, 'subject': 'Tix @ 3'},
{'id': 4, 'owner_id': 1, 'subject': 'Tix @ 4'})
def test():
s = create_session()
s.query(Ticket).options(eagerload(Ticket.owner)).with_polymorphic(User).first()
if __name__ == '__main__':
# passes on sqlite
metadata.bind = 'postgres:///test'
metadata.create_all()
try:
data()
test()
finally:
metadata.drop_all()
</code></pre></div> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/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">after npm i material-ui-codemod<br>
expected to find node_modules/material-ui-codemod/lib/v1.0.0/svg-icon-imports files</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">node_modules/material-ui-codemod/lib/v1.0.0/svg-icon-imports is missing</p>
<p dir="auto">Cheers ! & thx for reading :)</p> | <p dir="auto">The Select API docs for type are missing an array of strings.</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">Should display (or something like this).</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="union: $ReadOnlyArray<string, number>
string
number"><pre class="notranslate"><code class="notranslate">union: $ReadOnlyArray<string, number>
string
number
</code></pre></div>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6938575/32432715-7a188b38-c2d0-11e7-97a4-1dd8a393e89f.png"><img src="https://user-images.githubusercontent.com/6938575/32432715-7a188b38-c2d0-11e7-97a4-1dd8a393e89f.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><a href="https://material-ui.com/api/select/" rel="nofollow">https://material-ui.com/api/select/</a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6938575/32432797-c5581e1a-c2d0-11e7-923f-4c6b85f2fd22.png"><img src="https://user-images.githubusercontent.com/6938575/32432797-c5581e1a-c2d0-11e7-923f-4c6b85f2fd22.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><a href="https://github.com/callemall/material-ui/blob/v1-beta/src/Select/Select.js#L121">https://github.com/callemall/material-ui/blob/v1-beta/src/Select/Select.js#L121</a></p> | 0 |
<p dir="auto">Got this error while trying to compile a simple program (<a href="https://gist.github.com/darkstalker/c8c605ddc56aa4d31fc8">https://gist.github.com/darkstalker/c8c605ddc56aa4d31fc8</a>). It uses the num 0.1.24 crate.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" error: internal compiler error: Impl DefId { krate: 2, node: 24906 } was matchable against Obligation(predicate=Binder(TraitPredicate(core::ops::Mul<_>)),depth=1) but now is not
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/beta-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:209"><pre class="notranslate"><code class="notranslate"> error: internal compiler error: Impl DefId { krate: 2, node: 24906 } was matchable against Obligation(predicate=Binder(TraitPredicate(core::ops::Mul<_>)),depth=1) but now is not
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/beta-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:209
</code></pre></div>
<p dir="auto">The stack trace and rustc version are here: <a href="https://gist.github.com/darkstalker/f4ce878d18a4f5c489d7">https://gist.github.com/darkstalker/f4ce878d18a4f5c489d7</a></p> | <p dir="auto">I got an internal compiler error when <code class="notranslate">cargo test</code>ing my code, and I was unfortunately unable to reproduce on a small sample. The code is <a href="https://github.com/honzasp/spiral/tree/bf84c70e067a19c9da20cf1c088f304dd159e8df">here on Github</a>, to reproduce the error, change the literal on <a href="https://github.com/honzasp/spiral/blob/bf84c70e067a19c9da20cf1c088f304dd159e8df/src/spiral/to_spine.rs#L642">one line in test</a> from <code class="notranslate">42.0</code> to <code class="notranslate">42</code>.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc --version --verbose
rustc 1.0.0-nightly (522d09dfe 2015-02-19) (built 2015-02-21)
binary: rustc
commit-hash: 522d09dfecbeca1595f25ac58c6d0178bbd21d7d
commit-date: 2015-02-19
build-date: 2015-02-21
host: i686-unknown-linux-gnu
release: 1.0.0-nightly
$ RUST_BACKTRACE=1 cargo test --verbose
Compiling spiral v0.0.1 (file:///[...]/spiral)
Running `rustc src/main.rs --crate-name spiral --crate-type bin -g --test -C metadata=1ade813d3d860ac1 -C extra-filename=-1ade813d3d860ac1 --out-dir [...]/spiral/target --emit=dep-info,link -L dependency=[...]/spiral/target -L dependency=[...]/spiral/target/deps`
error: internal compiler error: Impl DefId { krate: 2, node: 74181 } was matchable against Obligation(predicate=Binder(TraitPredicate(core::cmp::PartialEq<_>)),depth=1) but now is not
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:189
stack backtrace:
1: 0xb7231280 - sys::backtrace::write::hb58c665617e5cee2KlC
2: 0xb725b8b0 - panicking::on_panic::hd4d4fc652390cdd8tXL
3: 0xb7195ac0 - rt::unwind::begin_unwind_inner::h6797c7a781aac698RBL
4: 0xb5656fd0 - rt::unwind::begin_unwind::h13117811778590822301
5: 0xb5657800 - diagnostic::Handler::bug::h0b9167776bd8dc1aw4E
6: 0xb61b5310 - middle::traits::select::SelectionContext<'cx, 'tcx>::rematch_impl::h7f3f2e654c4ffad9kHU
7: 0xb61b4c30 - middle::infer::InferCtxt<'a, 'tcx>::try::h13523729267676866609
8: 0xb619dd90 - middle::traits::select::SelectionContext<'cx, 'tcx>::confirm_candidate::ha4efb7af28b19263S8T
9: 0xb61784f0 - middle::traits::select::SelectionContext<'cx, 'tcx>::select::h5394e35b0e7c70a6lhS
10: 0xb6174160 - middle::traits::fulfill::FulfillmentContext<'tcx>::select::hbef8233dc9336219B0P
11: 0xb6173ac0 - middle::traits::fulfill::FulfillmentContext<'tcx>::select_where_possible::hbd71b9b88c61613cHZP
12: 0xb6cdddc0 - check::vtable::select_fcx_obligations_where_possible::hffd3ec74dffa624eVRb
13: 0xb6d1a6f0 - check::FnCtxt<'a, 'tcx>::resolve_type_vars_if_possible::he1da80c3c9c1dda2rJo
14: 0xb6cca360 - check::structurally_resolved_type::hb6535b94e7bbe37bNPt
15: 0xb6e00220 - check::check_expr_with_unifier::h9614455191220309796
16: 0xb6dbad90 - check::check_expr_with_unifier::check_binop::hbf8de0ab08b2ba09JMq
17: 0xb6df3370 - check::check_expr_with_unifier::h6092115828992963581
18: 0xb6dd9240 - check::check_expr_with_unifier::h3884107362083173097
19: 0xb6dbad90 - check::check_expr_with_unifier::check_binop::hbf8de0ab08b2ba09JMq
20: 0xb6df3370 - check::check_expr_with_unifier::h6092115828992963581
21: 0xb6df3370 - check::check_expr_with_unifier::h6092115828992963581
22: 0xb6dd9240 - check::check_expr_with_unifier::h3884107362083173097
23: 0xb6dd0200 - check::check_expr_with_unifier::check_then_else::h483da0d6a4f3eab2MEq
24: 0xb6decc20 - check::check_expr_with_unifier::h17365000147061483630
25: 0xb6da6d80 - check::check_block_with_expected::hf29cd5d4f1823991zys
26: 0xb6decc20 - check::check_expr_with_unifier::h17365000147061483630
27: 0xb6ccafe0 - check::_match::check_match::closure.29042
28: 0xb6ccac10 - check::_match::check_match::h77807f1365a779d3V1a
29: 0xb6decc20 - check::check_expr_with_unifier::h17365000147061483630
30: 0xb6da6d80 - check::check_block_with_expected::hf29cd5d4f1823991zys
31: 0xb6df9ad0 - check::check_expr_with_unifier::h14838318111108599859
32: 0xb6da6d80 - check::check_block_with_expected::hf29cd5d4f1823991zys
33: 0xb6d85a80 - check::check_fn::h9733b23b5bb31869JKn
34: 0xb6da3700 - check::check_bare_fn::hc0a904b0aabec0a4Wzn
35: 0xb6d9aa00 - check::check_item::heaa17bb09891b8a9nTn
36: 0xb6da19f0 - visit::walk_item::h334270929839752142
37: 0xb6da19f0 - visit::walk_item::h334270929839752142
38: 0xb6da19f0 - visit::walk_item::h334270929839752142
39: 0xb6e7f750 - check_crate::closure.35867
40: 0xb6e78b60 - check_crate::h74f1efb9c9ad0cecVjC
41: 0xb769c480 - driver::phase_3_run_analysis_passes::ha81485be033381d8gHa
42: 0xb7680c20 - driver::compile_input::h55e2c5089100dcc0Gba
43: 0xb7760430 - run_compiler::h7c1df0ae32ef6a57Zbc
44: 0xb775e810 - thunk::F.Invoke<A, R>::invoke::h4956589150906656218
45: 0xb775d680 - rt::unwind::try::try_fn::h3108213307196454525
46: 0xb72d5b30 - rust_try_inner
47: 0xb72d5b00 - rust_try
48: 0xb775d9b0 - thunk::F.Invoke<A, R>::invoke::h9387302087009601825
49: 0xb72474c0 - sys::thread::thread_start::hb380b1da46a95e5393G
50: 0xb2f29ea0 - start_thread
51: 0xb7049502 - clone
52: 0x0 - <unknown>
Could not compile `spiral`.
Caused by:
Process didn't exit successfully: `rustc src/main.rs --crate-name spiral --crate-type bin -g --test -C metadata=1ade813d3d860ac1 -C extra-filename=-1ade813d3d860ac1 --out-dir [...]/spiral/target --emit=dep-info,link -L dependency=[...]/spiral/target -L dependency=[...]/spiral/target/deps` (status=101)"><pre class="notranslate"><code class="notranslate">$ rustc --version --verbose
rustc 1.0.0-nightly (522d09dfe 2015-02-19) (built 2015-02-21)
binary: rustc
commit-hash: 522d09dfecbeca1595f25ac58c6d0178bbd21d7d
commit-date: 2015-02-19
build-date: 2015-02-21
host: i686-unknown-linux-gnu
release: 1.0.0-nightly
$ RUST_BACKTRACE=1 cargo test --verbose
Compiling spiral v0.0.1 (file:///[...]/spiral)
Running `rustc src/main.rs --crate-name spiral --crate-type bin -g --test -C metadata=1ade813d3d860ac1 -C extra-filename=-1ade813d3d860ac1 --out-dir [...]/spiral/target --emit=dep-info,link -L dependency=[...]/spiral/target -L dependency=[...]/spiral/target/deps`
error: internal compiler error: Impl DefId { krate: 2, node: 74181 } was matchable against Obligation(predicate=Binder(TraitPredicate(core::cmp::PartialEq<_>)),depth=1) but now is not
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:189
stack backtrace:
1: 0xb7231280 - sys::backtrace::write::hb58c665617e5cee2KlC
2: 0xb725b8b0 - panicking::on_panic::hd4d4fc652390cdd8tXL
3: 0xb7195ac0 - rt::unwind::begin_unwind_inner::h6797c7a781aac698RBL
4: 0xb5656fd0 - rt::unwind::begin_unwind::h13117811778590822301
5: 0xb5657800 - diagnostic::Handler::bug::h0b9167776bd8dc1aw4E
6: 0xb61b5310 - middle::traits::select::SelectionContext<'cx, 'tcx>::rematch_impl::h7f3f2e654c4ffad9kHU
7: 0xb61b4c30 - middle::infer::InferCtxt<'a, 'tcx>::try::h13523729267676866609
8: 0xb619dd90 - middle::traits::select::SelectionContext<'cx, 'tcx>::confirm_candidate::ha4efb7af28b19263S8T
9: 0xb61784f0 - middle::traits::select::SelectionContext<'cx, 'tcx>::select::h5394e35b0e7c70a6lhS
10: 0xb6174160 - middle::traits::fulfill::FulfillmentContext<'tcx>::select::hbef8233dc9336219B0P
11: 0xb6173ac0 - middle::traits::fulfill::FulfillmentContext<'tcx>::select_where_possible::hbd71b9b88c61613cHZP
12: 0xb6cdddc0 - check::vtable::select_fcx_obligations_where_possible::hffd3ec74dffa624eVRb
13: 0xb6d1a6f0 - check::FnCtxt<'a, 'tcx>::resolve_type_vars_if_possible::he1da80c3c9c1dda2rJo
14: 0xb6cca360 - check::structurally_resolved_type::hb6535b94e7bbe37bNPt
15: 0xb6e00220 - check::check_expr_with_unifier::h9614455191220309796
16: 0xb6dbad90 - check::check_expr_with_unifier::check_binop::hbf8de0ab08b2ba09JMq
17: 0xb6df3370 - check::check_expr_with_unifier::h6092115828992963581
18: 0xb6dd9240 - check::check_expr_with_unifier::h3884107362083173097
19: 0xb6dbad90 - check::check_expr_with_unifier::check_binop::hbf8de0ab08b2ba09JMq
20: 0xb6df3370 - check::check_expr_with_unifier::h6092115828992963581
21: 0xb6df3370 - check::check_expr_with_unifier::h6092115828992963581
22: 0xb6dd9240 - check::check_expr_with_unifier::h3884107362083173097
23: 0xb6dd0200 - check::check_expr_with_unifier::check_then_else::h483da0d6a4f3eab2MEq
24: 0xb6decc20 - check::check_expr_with_unifier::h17365000147061483630
25: 0xb6da6d80 - check::check_block_with_expected::hf29cd5d4f1823991zys
26: 0xb6decc20 - check::check_expr_with_unifier::h17365000147061483630
27: 0xb6ccafe0 - check::_match::check_match::closure.29042
28: 0xb6ccac10 - check::_match::check_match::h77807f1365a779d3V1a
29: 0xb6decc20 - check::check_expr_with_unifier::h17365000147061483630
30: 0xb6da6d80 - check::check_block_with_expected::hf29cd5d4f1823991zys
31: 0xb6df9ad0 - check::check_expr_with_unifier::h14838318111108599859
32: 0xb6da6d80 - check::check_block_with_expected::hf29cd5d4f1823991zys
33: 0xb6d85a80 - check::check_fn::h9733b23b5bb31869JKn
34: 0xb6da3700 - check::check_bare_fn::hc0a904b0aabec0a4Wzn
35: 0xb6d9aa00 - check::check_item::heaa17bb09891b8a9nTn
36: 0xb6da19f0 - visit::walk_item::h334270929839752142
37: 0xb6da19f0 - visit::walk_item::h334270929839752142
38: 0xb6da19f0 - visit::walk_item::h334270929839752142
39: 0xb6e7f750 - check_crate::closure.35867
40: 0xb6e78b60 - check_crate::h74f1efb9c9ad0cecVjC
41: 0xb769c480 - driver::phase_3_run_analysis_passes::ha81485be033381d8gHa
42: 0xb7680c20 - driver::compile_input::h55e2c5089100dcc0Gba
43: 0xb7760430 - run_compiler::h7c1df0ae32ef6a57Zbc
44: 0xb775e810 - thunk::F.Invoke<A, R>::invoke::h4956589150906656218
45: 0xb775d680 - rt::unwind::try::try_fn::h3108213307196454525
46: 0xb72d5b30 - rust_try_inner
47: 0xb72d5b00 - rust_try
48: 0xb775d9b0 - thunk::F.Invoke<A, R>::invoke::h9387302087009601825
49: 0xb72474c0 - sys::thread::thread_start::hb380b1da46a95e5393G
50: 0xb2f29ea0 - start_thread
51: 0xb7049502 - clone
52: 0x0 - <unknown>
Could not compile `spiral`.
Caused by:
Process didn't exit successfully: `rustc src/main.rs --crate-name spiral --crate-type bin -g --test -C metadata=1ade813d3d860ac1 -C extra-filename=-1ade813d3d860ac1 --out-dir [...]/spiral/target --emit=dep-info,link -L dependency=[...]/spiral/target -L dependency=[...]/spiral/target/deps` (status=101)
</code></pre></div>
<p dir="auto">I am sorry for such a crude report, but I could not come with a better sample, as the origin of the error is a bit unclear to me.</p> | 1 |
<p dir="auto">This is 100% a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="59835725" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/9984" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/9984/hovercard" href="https://github.com/elastic/elasticsearch/issues/9984">#9984</a>, however it's pretty old and nobody will likely notice that a comment was made on it, so I figure I'd recreate it to give it some attention.</p>
<p dir="auto">I'd be more than happy to implement this feature, as I found myself wishing it existed for the same reason the OP did all those months ago, however, I'm stuck at a bit of a crossroads when it comes the actual implementation.</p>
<p dir="auto">Here's a rundown of my understanding of the situation and work involved in this feature. I'd love some feedback on whether I'm right or wrong on some points, completely talking out of my ass, etc.; as well as some advice on what the ES team would consider the preferred approach:</p>
<p dir="auto">When a snapshot of an index is taken, it dumps blobs of the data of each shard, along with the entirety of an index's metadata (mappings, aliases, etc.) to a blobstore (s3, azure storage, etc.)</p>
<p dir="auto">Later, when restoring, the restoration process effectively:</p>
<ol dir="auto">
<li>Replaces an existing index's metadata with that which is in the snapshot if the index already exists in the cluster; if not, it creates a new index with the same name and metadata in the snapshot. (or uses other name/metadata/etc. if the operator specified it in the restore request)</li>
<li>Allocates new shards, and fills them with the data in the snapshot's blobs, and sets the index's shard routing table to these "new" restored shards. The old shards, if they existed, somehow get reaped.</li>
</ol>
<p dir="auto">In essence, if an index already existed and gets restored from a snapshot, it effectively gets completely replaced with a completely different index containing the snapshot's data, just one that happens to have all the same metadata and naming, etc. of the snapshotted one.</p>
<p dir="auto">This means that fundamentally, to restore specific shard(s), I just need to create "new" shards for the shards I want to restore, and then update the routing for the index to use those new shards and keep the shards that I'm not restoring untouched.</p>
<p dir="auto">The RestoreService is very intimately coupled with all of conveniences that the snapshot restore feature gives you such as renaming the index, changing the number of replicas, etc. that (IMO) do not apply to the operation of restoring specific shards. Furthermore, some of these conveniences are only possible because of the fact that a restored index is really just a brand new index.</p>
<p dir="auto">In the scenarios that I can imagine for restoring specific shards, one would just want a no-bullshit, replacement of (a) corrupt shard(s), ASAP, without affecting the rest of the index properties.</p>
<p dir="auto">Inside <a href="https://github.com/elastic/elasticsearch/blob/4ea19995cff603ce8472e985c902dd2f8fadebee/core/src/main/java/org/elasticsearch/snapshots/RestoreService.java#L266-L268">o.e.s.RestoreService.restoreSnapshot$ClusterStateUpdateTask.execute (at lines 266-268)</a> (see also, <a href="https://github.com/elastic/elasticsearch/blob/4ea19995cff603ce8472e985c902dd2f8fadebee/core/src/main/java/org/elasticsearch/snapshots/RestoreService.java#L341-L347">lines 341-347</a>) there's an <code class="notranslate">ignoredShards</code> Set that gets generated during the restore operation which is used when the <code class="notranslate">partial</code> flag is enabled for a snapshot restore. The <code class="notranslate">partial</code> flag tells ES, "if you have any trouble restoring a shard from snapshot for this restore operation, just create an empty one instead of failing the restore". These "troublesome" shards are put into <code class="notranslate">ignoredShards</code>.</p>
<p dir="auto">This means that I am left with two choices:</p>
<h3 dir="auto">1)</h3>
<p dir="auto">Modify RestoreService, RestoreRequest, RestoreSnapshotRequest, TransportRestoreSnapshotAction, and probably others to take an <code class="notranslate">"only_restore_shards": [int]</code> field.<br>
If this new field is given, it prohibits you from performing metadata changes (by giving the operator a stern talking to if they try to do metadata updates in a shard-only restore via an error message), which should hopefully simplify the implementation a little bit.<br>
Furthermore, an <code class="notranslate">only_restore_shards</code> implies a <code class="notranslate">partial</code> restore, <strong>with the major caveat being</strong>,<br>
the meaning of a <code class="notranslate">partial</code> restore gets changed (see the point under 50/50). After this change, in a <code class="notranslate">partial</code> restore, if the index already existed and there are shards in <code class="notranslate">ignoredShards</code>, they're actually ignored as opposed to replaced with blanks. i.e., shards IDs that are listed in <code class="notranslate">ignoreShards</code> and exist in the index get reused. (keep reading and this will all make sense)</p>
<p dir="auto">Benefits:</p>
<ul dir="auto">
<li>The <code class="notranslate">ignoredShards</code> Set actually works as expected, and you can fill it with the difference of the set of all shards numbers in the index and the set of the shard numbers you want to restore (i.e., in <code class="notranslate">only_restore_shards</code>; meaning it ignores [reuses] the existing [unaffected] ones) and the code makes a bit more intuitive sense.</li>
<li>Compared to option 2, there's a lot less boilerplate code to be written, and minimal modifications to the API.</li>
<li>If the snapshot you're restoring from has bad shards, and you've opted for a "partial" restore, instead of you potentially losing the data in those shards, at least some data gets kept. This is great for PoLA in the intuitive sense of "partial". Additionally, an <code class="notranslate">only_restore_shards</code> operation implies a "partial" restore in the intuitive sense, which ties into the next point:</li>
</ul>
<p dir="auto">50/50:</p>
<ul dir="auto">
<li>The semantics of a <code class="notranslate">partial</code> restore get inverted, rather than you getting a "partially complete" index restored, you're "partially restoring" the index. (I want to say that this leans a bit towards a drawback, given that ES has had this semantic for a while now, <em>buuuuuuuuut</em> it's certainly more in line with what you would intuitively expect a "partial" restore to mean)</li>
</ul>
<p dir="auto">Drawbacks:</p>
<ul dir="auto">
<li>Due to the previously mentioned intimate coupling, this will make the RestoreService even more complicated than it already is.</li>
<li>It creates the need for a bunch of additional validations and potential edge cases that will need to be considered inside the Requests and their builders.</li>
<li>This is my first deep foray into patching ES, and I'm more than confident that I'll probably break something that tests might not catch and nobody would have even thought possible :P</li>
<li>More room for potentially odd bugs in RestoreService due to its increased complexity.</li>
</ul>
<h3 dir="auto">2)</h3>
<p dir="auto">Create a RestoreShardsService/RestoreShardsRequest/etc./etc./etc. along with a new REST endpoint such as /_snapshots/etc/etc/_restore_shards as well as a corresponding TransportAction.</p>
<p dir="auto">Benefits:</p>
<ul dir="auto">
<li>Cleaner implementation and separation of concerns by starting from a clean slate and not further complicating RestoreService.</li>
<li>Less likely to break anything as all the logic is separated out into its own module</li>
<li>No weird short circuits or retrofits around the whole "an <code class="notranslate">ignoredShard</code> is really just replaced with an empty shard" logic.</li>
<li>Full backwards compatibility (assuming someone uses the current <code class="notranslate">partial</code> semantics to their advantage somehow?).</li>
<li>No need for particularly crazy validations, as the _restore_shards action really just takes a snapshot, a single index and a list of shards to restore from it. As long as the snapshot can satisfy the shards to be restored, there's no reason for it to fail.</li>
</ul>
<p dir="auto">50/50:</p>
<ul dir="auto">
<li>You don't get to invert the semantics of a <code class="notranslate">partial</code> restore to be more intuitive. On the other hand, this might not be necessary since you can now always cherry pick the shards to restore, meaning a full index restore (which is the only way to do it as is), would only get used in the worst case that your index is totally fucked. In which case, if the shards in the snapshot are bad, you're proper fucked anyway.</li>
<li>An entire <code class="notranslate">ClusterService</code> seems kinda heavy for something that should really be an extension of the RestoreService anyway, but on the other hand RestoreService is a pretty damn big chunk of code.</li>
</ul>
<p dir="auto">Drawbacks:</p>
<ul dir="auto">
<li>Tons of boilerplate code that bloats up the codebase for request objects, builders, actions, transport, etc.</li>
<li>I'd be effectively duplicating a lot of logic that's in RestoreService to perform a very specific operation, which is invariably a code smell.</li>
</ul>
<p dir="auto">Thanks for taking the time to read this wall of text, and apologies if it's in poor form to self-bump by making a new issue!</p> | <p dir="auto">It would be really useful for time based indices to be able to indicate recovery priority so that we can indicate that the latest index should be recovered first. This will allow us to resume indexing more quickly.</p> | 0 |
<p dir="auto">I called method in my code like this ( Share.share("some text to share"); ) and received an exception :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="E/flutter ( 3361): [ERROR:flutter/shell/common/shell.cc(181)] Dart Error: Unhandled exception:
E/flutter ( 3361): MissingPluginException(No implementation found for method share on channel plugins.flutter.io/share)
E/flutter ( 3361): #0 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:278:7)
E/flutter ( 3361): <asynchronous suspension>
E/flutter ( 3361): #1 Share.share (package:share/share.dart:44:20)
E/flutter ( 3361): #2 SignalCard.build.<anonymous closure> (package:airzup/ui/widget/signal_card.dart:103:45)
E/flutter ( 3361): #3 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:507:14)
E/flutter ( 3361): #4 _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:562:30)
E/flutter ( 3361): #5 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:102:24)
E/flutter ( 3361): #6 TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:242:9)
E/flutter ( 3361): #7 TapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:204:7)
E/flutter ( 3361): #8 GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)
E/flutter ( 3361): #9 _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:147:20)
E/flutter ( 3361): #10 _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:121:22)
E/flutter ( 3361): #11 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:101:7)
E/flutter ( 3361): #12 _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:64:7)
E/flutter ( 3361): #13 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:48:7)
E/flutter ( 3361): #14 _invoke1 (dart:ui/hooks.dart:153:13)
E/flutter ( 3361): #15 _dispatchPointerDataPacket (dart:ui/hooks.dart:107:5)"><pre class="notranslate"><code class="notranslate">E/flutter ( 3361): [ERROR:flutter/shell/common/shell.cc(181)] Dart Error: Unhandled exception:
E/flutter ( 3361): MissingPluginException(No implementation found for method share on channel plugins.flutter.io/share)
E/flutter ( 3361): #0 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:278:7)
E/flutter ( 3361): <asynchronous suspension>
E/flutter ( 3361): #1 Share.share (package:share/share.dart:44:20)
E/flutter ( 3361): #2 SignalCard.build.<anonymous closure> (package:airzup/ui/widget/signal_card.dart:103:45)
E/flutter ( 3361): #3 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:507:14)
E/flutter ( 3361): #4 _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:562:30)
E/flutter ( 3361): #5 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:102:24)
E/flutter ( 3361): #6 TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:242:9)
E/flutter ( 3361): #7 TapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:204:7)
E/flutter ( 3361): #8 GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)
E/flutter ( 3361): #9 _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:147:20)
E/flutter ( 3361): #10 _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:121:22)
E/flutter ( 3361): #11 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:101:7)
E/flutter ( 3361): #12 _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:64:7)
E/flutter ( 3361): #13 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:48:7)
E/flutter ( 3361): #14 _invoke1 (dart:ui/hooks.dart:153:13)
E/flutter ( 3361): #15 _dispatchPointerDataPacket (dart:ui/hooks.dart:107:5)
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Flutter doctor output:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v0.9.4, on Microsoft Windows [Version 10.0.17134.345], locale ru-RU)
[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[√] Android Studio (version 3.1)
[!] IntelliJ IDEA Community Edition (version 2018.2)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
[√] IntelliJ IDEA Ultimate Edition (version 2018.1)
[√] Connected devices (1 available)
! Doctor found issues in 1 category."><pre class="notranslate"><code class="notranslate">Flutter doctor output:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v0.9.4, on Microsoft Windows [Version 10.0.17134.345], locale ru-RU)
[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[√] Android Studio (version 3.1)
[!] IntelliJ IDEA Community Edition (version 2018.2)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
[√] IntelliJ IDEA Ultimate Edition (version 2018.1)
[√] Connected devices (1 available)
! Doctor found issues in 1 category.
</code></pre></div> | <p dir="auto">I have 3 <code class="notranslate">ListView</code>, so I create a page just like the <code class="notranslate">TabBarView</code> Demo in Gallery Sample.<br>
But I found there are serveral bugs:</p>
<ol dir="auto">
<li>
<p dir="auto">If I set the <code class="notranslate">unselectedLabelStyle</code> to <code class="notranslate">regular</code> and set <code class="notranslate">labelStyle</code> to <code class="notranslate">medium</code>, the display is strange, only one <code class="notranslate">unselectedLabel</code> updated.</p>
</li>
<li>
<p dir="auto">if the <code class="notranslate">ListView</code> has only few items, can not scroll up and down.</p>
</li>
<li>
<p dir="auto">The <code class="notranslate">RefreshProgressIndicator</code> can not display, if I set <code class="notranslate">displacement = 80</code>, then I could see it, but the position is wrong.</p>
</li>
</ol> | 0 |
<h1 dir="auto">Bug report</h1>
<p dir="auto"><strong>What is the current behavior?</strong><br>
when debuging an vuejs project with firefox , the genereate source map is not dispalyed correctly. on chrome it is Ok</p>
<p dir="auto">i have two generated bundle: <code class="notranslate">main.js</code> <code class="notranslate">chunk-verndor.js</code> and two source map: <code class="notranslate">main.js.map</code>, <code class="notranslate">chunk-vendor.js.map</code></p>
<p dir="auto">this is the screen shot for firefox :<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/733502/89769802-b4992700-daf5-11ea-88d3-f0d9a8b0d32f.png"><img src="https://user-images.githubusercontent.com/733502/89769802-b4992700-daf5-11ea-88d3-f0d9a8b0d32f.png" alt="Screenshot from 2020-08-10 10-37-04" style="max-width: 100%;"></a><br>
the displayed text:<br>
<code class="notranslate">import mod from "-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FileChart.vue?vue&type=script&lang=js&"; export default mod; export * from "-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FileChart.vue?vue&type=script&lang=js&"</code></p>
<p dir="auto">this is the screenshot for chrome:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/733502/89769896-e0b4a800-daf5-11ea-95ed-e0111693ea98.png"><img src="https://user-images.githubusercontent.com/733502/89769896-e0b4a800-daf5-11ea-95ed-e0111693ea98.png" alt="Screenshot from 2020-08-10 10-39-44" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br>
build vuejs with source map</p>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
firefox should display like chrome</p>
<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version: 4.44.1<br>
Node.js version: v10.21.0<br>
Operating System: ubutun 20<br>
Additional tools: @vue/cli 4.4.6</p> | <p dir="auto">I've put together a quick repo to demonstrate the problem: <a href="https://github.com/Stuk/webpack-sourcemaps-firefox">https://github.com/Stuk/webpack-sourcemaps-firefox</a></p>
<p dir="auto">And here's a gif of the issue in action:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/48019/8346824/1b3e9ada-1ab7-11e5-8848-271aa7933b2c.gif"><img src="https://cloud.githubusercontent.com/assets/48019/8346824/1b3e9ada-1ab7-11e5-8848-271aa7933b2c.gif" alt="screencap" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">I've checked Uglify, and Firefox has no issues there. I've tried the different config options for <code class="notranslate">devtool</code>:</p>
<ul dir="auto">
<li><code class="notranslate">eval</code> - works</li>
<li><code class="notranslate">cheap-eval-source-map</code> - works</li>
<li><code class="notranslate">cheap-source-map</code> - does not work</li>
<li><code class="notranslate">cheap-module-eval-source-map</code> - works</li>
<li><code class="notranslate">cheap-module-source-map</code> - does not work</li>
<li><code class="notranslate">eval-source-map</code> - works</li>
<li><code class="notranslate">source-map</code> - does not work</li>
</ul>
<p dir="auto">So seems like eval is file, but an external sourcemap for multiple files does not.</p>
<p dir="auto">Any thoughts about what's going on?</p>
<p dir="auto">I've also filed an issue on Bugzilla, in case this is a FF devtools issue: <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1177329" rel="nofollow">https://bugzilla.mozilla.org/show_bug.cgi?id=1177329</a></p> | 1 |
<p dir="auto">How can this common <code class="notranslate">Windows 7</code> error be fixed? I'm using the Java bindings and I'm about to go nuts since I tried everything and nothing worked:</p>
<ol dir="auto">
<li>Running the system file checker <code class="notranslate">sfc /scannow</code> (no violations found)</li>
<li>Searching for each DLL in the Windows search (all DLLs are found)</li>
<li>Repairing the system image <code class="notranslate">Dism /Online /Cleanup-Image /RestoreHealth</code> (does not work on <code class="notranslate">Windows 7</code>)</li>
<li><a href="https://opencv.org/releases.html" rel="nofollow">Downloading <code class="notranslate">OpenCV</code></a> and extract the <code class="notranslate">DLL</code>s to the Java application's root folder (does not fix the issue)</li>
<li>Installing the <a href="https://www.microsoft.com/en-us/download/details.aspx?id=35" rel="nofollow"><code class="notranslate">DirectX End-User Runtime Web Installer</code></a> (does not fix the issue)</li>
<li>Rebooting after all previous mentioned points (does not fix the issue)</li>
</ol>
<p dir="auto"><a href="https://stackoverflow.com/questions/53100890" rel="nofollow">This</a> is a related <code class="notranslate">StackOverflow</code> question with additional information.</p>
<p dir="auto">Thank you.</p> | <p dir="auto">the installed opencv_world342.dll need "Api-ms-win-downlevel-shlwapi-l1-1-0.dll" which is not in Windows 7. (vc2015_redist.exe already installed).</p>
<p dir="auto">when I copy it from windows10, it works.</p> | 1 |
<p dir="auto">Build the Android apk</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter build apk --release"><pre class="notranslate"><code class="notranslate">flutter build apk --release
</code></pre></div>
<p dir="auto">Creates apk with:<br>
<code class="notranslate">armeabi-v7a/libflutter.so</code></p>
<p dir="auto">but it is missing <code class="notranslate">libflutter.so</code> in:<br>
<code class="notranslate">arm64-v8a/</code></p>
<p dir="auto">From the build help I see that I can choose arm64</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter build apk -h
--target-platform [android-arm (default), android-arm64]"><pre class="notranslate"><code class="notranslate">flutter build apk -h
--target-platform [android-arm (default), android-arm64]
</code></pre></div>
<p dir="auto">Running</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter build apk --release --target-platform android-arm64"><pre class="notranslate"><code class="notranslate">flutter build apk --release --target-platform android-arm64
</code></pre></div>
<p dir="auto">includes <code class="notranslate">libflutter.so</code> in <code class="notranslate">arm64-v8a</code> but not <code class="notranslate">armeabi-v7a</code></p>
<p dir="auto">For the play store it multiple APKs can be uploaded but for our continues integration it would be handy to be able to make a fat APK that include all the platforms and work on all phones without special instructions.</p>
<p dir="auto">Something like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter build apk --release --target-platforms [android-arm,android-arm64]"><pre class="notranslate"><code class="notranslate">flutter build apk --release --target-platforms [android-arm,android-arm64]
</code></pre></div> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="15:39:00.293: I/flutter : ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
15:39:00.296: I/flutter : The following assertion was thrown building Flexible(flex: 1):
15:39:00.300: I/flutter : scheduleBuildFor() called for a widget for which a build was already scheduled.
15:39:00.303: I/flutter : The method was called for the following element:
15:39:00.306: I/flutter : DecoratedBox(dirty; renderObject: RenderDecoratedBox DETACHED)
15:39:00.309: I/flutter : The current dirty list consists of:
15:39:00.312: I/flutter : [DecoratedBox(dirty; renderObject: RenderDecoratedBox DETACHED), RawGestureDetector(state:
15:39:00.315: I/flutter : RawGestureDetectorState(192277613; gestures: tap; behavior: opaque)), Text("Suggestion Ichi";
15:39:00.318: I/flutter : inherit: true; color: Color(0xffffffff); size: 16.0; letterSpacing: 1.92x; height: 1.5x),
15:39:00.321: I/flutter : Image(image: AssetImage(bundle: null, name: packages/armadillo/res/flutter-mark-square-100.png);
15:39:00.324: I/flutter : color: Color(0xffffffff); fit: ImageFit.cover; state: _ImageState(623862140; stream:
15:39:00.327: I/flutter : ImageStream(OneFrameImageStreamCompleter; [100×100] @ 1.0x; 65 listeners); pixels: [100×100] @
15:39:00.330: I/flutter : 1.0x)), Image(image: AssetImage(bundle: null, name: packages/armadillo/res/Armadillo.png); fit:
15:39:00.333: I/flutter : ImageFit.cover; state: _ImageState(435251538; stream: ImageStream(OneFrameImageStreamCompleter;
15:39:00.336: I/flutter : [1230×1230] @ 1.0x; 25 listeners); pixels: [1230×1230] @ 1.0x)), DecoratedBox(renderObject:
15:39:00.340: I/flutter : RenderDecoratedBox), RawGestureDetector(state: RawGestureDetectorState(604374343; gestures: tap;
15:39:00.342: I/flutter : behavior: opaque)), Text("Suggestion Ni"; inherit: true; color: Color(0xffffffff); size: 16.0;
15:39:00.345: I/flutter : letterSpacing: 1.92x; height: 1.5x), Image(image: AssetImage(bundle: null, name:
15:39:00.348: I/flutter : packages/armadillo/res/flutter-mark-square-100.png); color: Color(0xffffffff); fit:
15:39:00.351: I/flutter : ImageFit.cover; state: _ImageState(460373810; stream: ImageStream(OneFrameImageStreamCompleter;
15:39:00.353: I/flutter : [100×100] @ 1.0x; 65 listeners); pixels: [100×100] @ 1.0x)), Image(image: AssetImage(bundle: null,
15:39:00.356: I/flutter : name: packages/armadillo/res/Armadillo.png); fit: ImageFit.cover; state: _ImageState(224197766;
15:39:00.359: I/flutter : stream: ImageStream(OneFrameImageStreamCompleter; [1230×1230] @ 1.0x; 25 listeners); pixels:
15:39:00.362: I/flutter : [1230×1230] @ 1.0x))]
15:39:00.364: I/flutter : This usually indicates that a widget was rebuilt outside the build phase (thus marking the element
15:39:00.367: I/flutter : as clean even though it is still in the dirty list). This should not be possible and is probably
15:39:00.370: I/flutter : caused by a bug in the widgets framework. Please report it:
15:39:00.373: I/flutter : https://github.com/flutter/flutter/issues/new
15:39:00.376: I/flutter : To debug this issue, consider setting the debugPrintScheduleBuildForStacks and
15:39:00.379: I/flutter : debugPrintBuildDirtyElements flags to true and looking for a call to scheduleBuildFor for a widget
15:39:00.382: I/flutter : that is labeled "ALREADY IN LIST".
15:39:00.642: I/flutter :
15:39:00.646: I/flutter : When the exception was thrown, this was the stack:
15:39:00.659: I/flutter : #0 BuildOwner.scheduleBuildFor.<anonymous closure> (package:flutter/src/widgets/framework.dart:1522:9)
15:39:00.662: I/flutter : #2 BuildOwner.scheduleBuildFor (package:flutter/src/widgets/framework.dart:1518:12)
15:39:00.665: I/flutter : #3 BuildableElement.markNeedsBuild (package:flutter/src/widgets/framework.dart:2528:11)
15:39:00.668: I/flutter : #4 BuildableElement.dependenciesChanged (package:flutter/src/widgets/framework.dart:2587:5)
15:39:00.671: I/flutter : #5 BuildableElement.activate (package:flutter/src/widgets/framework.dart:2602:7)
15:39:00.673: I/flutter : #6 Element._activateRecursively (package:flutter/src/widgets/framework.dart:2185:13)
15:39:00.676: I/flutter : #7 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:2693:14)
15:39:00.679: I/flutter : #8 Element._activateRecursively (package:flutter/src/widgets/framework.dart:2187:13)
15:39:00.682: I/flutter : #9 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:3427:14)
15:39:00.685: I/flutter : #10 Element._activateRecursively (package:flutter/src/widgets/framework.dart:2187:13)
15:39:00.688: I/flutter : #11 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:3427:14)
15:39:00.691: I/flutter : #12 Element._activateRecursively (package:flutter/src/widgets/framework.dart:2187:13)
15:39:00.693: I/flutter : #13 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:3427:14)
15:39:00.696: I/flutter : #14 Element._activateRecursively (package:flutter/src/widgets/framework.dart:2187:13)
15:39:00.699: I/flutter : #15 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:2693:14)
15:39:00.702: I/flutter : #16 Element._activateRecursively (package:flutter/src/widgets/framework.dart:2187:13)
15:39:00.705: I/flutter : #17 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:2693:14)
15:39:00.708: I/flutter : #18 Element._activateRecursively (package:flutter/src/widgets/framework.dart:2187:13)
15:39:00.711: I/flutter : #19 Element._activateWithParent (package:flutter/src/widgets/framework.dart:2178:5)
15:39:00.714: I/flutter : #20 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2122:18)
15:39:00.717: I/flutter : #21 Element.updateChild (package:flutter/src/widgets/framework.dart:1961:12)
15:39:00.720: I/flutter : #22 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3446:14)
15:39:00.723: I/flutter : #23 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.726: I/flutter : #24 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:2681:16)
15:39:00.729: I/flutter : #25 BuildableElement.rebuild (package:flutter/src/widgets/framework.dart:2570:5)
15:39:00.732: I/flutter : #26 ProxyElement.update (package:flutter/src/widgets/framework.dart:2908:5)
15:39:00.734: I/flutter : #27 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.737: I/flutter : #28 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:3172:26)
15:39:00.740: I/flutter : #29 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3545:17)
15:39:00.744: I/flutter : #30 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.747: I/flutter : #31 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:3172:26)
15:39:00.749: I/flutter : #32 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3545:17)
15:39:00.752: I/flutter : #33 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.754: I/flutter : #34 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3446:14)
15:39:00.757: I/flutter : #35 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.760: I/flutter : #36 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3446:14)
15:39:00.762: I/flutter : #37 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.765: I/flutter : #38 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3446:14)
15:39:00.767: I/flutter : #39 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.771: I/flutter : #40 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3446:14)
15:39:00.773: I/flutter : #41 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.777: I/flutter : #42 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:2681:16)
15:39:00.780: I/flutter : #43 BuildableElement.rebuild (package:flutter/src/widgets/framework.dart:2570:5)
15:39:00.783: I/flutter : #44 StatefulElement.update (package:flutter/src/widgets/framework.dart:2790:5)
15:39:00.785: I/flutter : #45 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.788: I/flutter : #46 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:2681:16)
15:39:00.791: I/flutter : #47 BuildableElement.rebuild (package:flutter/src/widgets/framework.dart:2570:5)
15:39:00.794: I/flutter : #48 StatefulElement.update (package:flutter/src/widgets/framework.dart:2790:5)
15:39:00.796: I/flutter : #49 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.799: I/flutter : #50 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:2681:16)
15:39:00.802: I/flutter : #51 BuildableElement.rebuild (package:flutter/src/widgets/framework.dart:2570:5)
15:39:00.806: I/flutter : #52 StatelessElement.update (package:flutter/src/widgets/framework.dart:2719:5)
15:39:00.809: I/flutter : #53 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.812: I/flutter : #54 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:2681:16)
15:39:00.815: I/flutter : #55 BuildableElement.rebuild (package:flutter/src/widgets/framework.dart:2570:5)
15:39:00.818: I/flutter : #56 StatelessElement.update (package:flutter/src/widgets/framework.dart:2719:5)
15:39:00.821: I/flutter : #57 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.823: I/flutter : #58 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3446:14)
15:39:00.826: I/flutter : #59 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.829: I/flutter : #60 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3446:14)
15:39:00.832: I/flutter : #61 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.835: I/flutter : #62 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:2681:16)
15:39:00.838: I/flutter : #63 BuildableElement.rebuild (package:flutter/src/widgets/framework.dart:2570:5)
15:39:00.841: I/flutter : #64 ProxyElement.update (package:flutter/src/widgets/framework.dart:2908:5)
15:39:00.844: I/flutter : #65 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.846: I/flutter : #66 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:3172:26)
15:39:00.849: I/flutter : #67 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3545:17)
15:39:00.852: I/flutter : #68 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.855: I/flutter : #69 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:2681:16)
15:39:00.858: I/flutter : #70 BuildableElement.rebuild (package:flutter/src/widgets/framework.dart:2570:5)
15:39:00.861: I/flutter : #71 StatefulElement.update (package:flutter/src/widgets/framework.dart:2790:5)
15:39:00.864: I/flutter : #72 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.866: I/flutter : #73 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:3172:26)
15:39:00.869: I/flutter : #74 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3545:17)
15:39:00.872: I/flutter : #75 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.875: I/flutter : #76 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3446:14)
15:39:00.878: I/flutter : #77 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.880: I/flutter : #78 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3446:14)
15:39:00.883: I/flutter : #79 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.886: I/flutter : #80 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3446:14)
15:39:00.889: I/flutter : #81 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.892: I/flutter : #82 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:2681:16)
15:39:00.895: I/flutter : #83 BuildableElement.rebuild (package:flutter/src/widgets/framework.dart:2570:5)
15:39:00.898: I/flutter : #84 StatelessElement.update (package:flutter/src/widgets/framework.dart:2719:5)
15:39:00.901: I/flutter : #85 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.904: I/flutter : #86 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:3172:26)
15:39:00.907: I/flutter : #87 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3545:17)
15:39:00.910: I/flutter : #88 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.913: I/flutter : #89 _LayoutBuilderElement._layout.<anonymous closure> (package:flutter/src/widgets/layout_builder.dart:120:18)
15:39:00.916: I/flutter : #90 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:1640:19)
15:39:00.919: I/flutter : #91 _LayoutBuilderElement._layout (package:flutter/src/widgets/layout_builder.dart:108:11)
15:39:00.922: I/flutter : #92 RenderObject.invokeLayoutCallback.<anonymous closure> (package:flutter/src/rendering/object.dart:1669:58)
15:39:00.925: I/flutter : #93 PipelineOwner._enableMutationsToDirtySubtrees (package:flutter/src/rendering/object.dart:919:15)
15:39:00.928: I/flutter : #94 RenderObject.invokeLayoutCallback (package:flutter/src/rendering/object.dart:1669:13)
15:39:00.931: I/flutter : #95 _RenderLayoutBuilder.performLayout (package:flutter/src/widgets/layout_builder.dart:207:5)
15:39:00.934: I/flutter : #96 RenderObject.layout (package:flutter/src/rendering/object.dart:1571:21)
15:39:00.936: I/flutter : #97 RenderStack.performLayout (package:flutter/src/rendering/stack.dart:354:15)
15:39:00.939: I/flutter : #98 RenderObject.layout (package:flutter/src/rendering/object.dart:1571:21)
15:39:00.942: I/flutter : #99 _RenderLayoutBuilder.performLayout (package:flutter/src/widgets/layout_builder.dart:209:13)
15:39:00.945: I/flutter : #100 RenderObject.layout (package:flutter/src/rendering/object.dart:1571:21)
15:39:00.948: I/flutter : #101 RenderFlex.performLayout (package:flutter/src/rendering/flex.dart:516:17)
15:39:00.951: I/flutter : #102 RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1448:21)
15:39:00.953: I/flutter : #103 PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:897:18)
15:39:00.956: I/flutter : #104 BindingBase&SchedulerBinding&GestureBinding&ServicesBinding&RendererBinding.beginFrame (package:flutter/src/rendering/binding.dart:207:19)
15:39:00.959: I/flutter : #105 BindingBase&SchedulerBinding&GestureBinding&ServicesBinding&RendererBinding&WidgetsBinding.beginFrame (package:flutter/src/widgets/binding.dart:297:23)
15:39:00.962: I/flutter : #106 BindingBase&SchedulerBinding&GestureBinding&ServicesBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:152:5)
15:39:00.965: I/flutter : #107 BindingBase&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:608:15)
15:39:00.968: I/flutter : #108 BindingBase&SchedulerBinding.handleBeginFrame (package:flutter/src/scheduler/binding.dart:543:9)
15:39:00.970: I/flutter : #109 _beginFrame (file:///b/build/slave/Linux_Engine/build/src/flutter/lib/ui/hooks.dart:48)
15:39:00.973: I/flutter : (elided one frame from class _AssertionError)
15:39:00.976: I/flutter : ════════════════════════════════════════════════════════════════════════════════════════════════════"><pre class="notranslate"><code class="notranslate">15:39:00.293: I/flutter : ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
15:39:00.296: I/flutter : The following assertion was thrown building Flexible(flex: 1):
15:39:00.300: I/flutter : scheduleBuildFor() called for a widget for which a build was already scheduled.
15:39:00.303: I/flutter : The method was called for the following element:
15:39:00.306: I/flutter : DecoratedBox(dirty; renderObject: RenderDecoratedBox DETACHED)
15:39:00.309: I/flutter : The current dirty list consists of:
15:39:00.312: I/flutter : [DecoratedBox(dirty; renderObject: RenderDecoratedBox DETACHED), RawGestureDetector(state:
15:39:00.315: I/flutter : RawGestureDetectorState(192277613; gestures: tap; behavior: opaque)), Text("Suggestion Ichi";
15:39:00.318: I/flutter : inherit: true; color: Color(0xffffffff); size: 16.0; letterSpacing: 1.92x; height: 1.5x),
15:39:00.321: I/flutter : Image(image: AssetImage(bundle: null, name: packages/armadillo/res/flutter-mark-square-100.png);
15:39:00.324: I/flutter : color: Color(0xffffffff); fit: ImageFit.cover; state: _ImageState(623862140; stream:
15:39:00.327: I/flutter : ImageStream(OneFrameImageStreamCompleter; [100×100] @ 1.0x; 65 listeners); pixels: [100×100] @
15:39:00.330: I/flutter : 1.0x)), Image(image: AssetImage(bundle: null, name: packages/armadillo/res/Armadillo.png); fit:
15:39:00.333: I/flutter : ImageFit.cover; state: _ImageState(435251538; stream: ImageStream(OneFrameImageStreamCompleter;
15:39:00.336: I/flutter : [1230×1230] @ 1.0x; 25 listeners); pixels: [1230×1230] @ 1.0x)), DecoratedBox(renderObject:
15:39:00.340: I/flutter : RenderDecoratedBox), RawGestureDetector(state: RawGestureDetectorState(604374343; gestures: tap;
15:39:00.342: I/flutter : behavior: opaque)), Text("Suggestion Ni"; inherit: true; color: Color(0xffffffff); size: 16.0;
15:39:00.345: I/flutter : letterSpacing: 1.92x; height: 1.5x), Image(image: AssetImage(bundle: null, name:
15:39:00.348: I/flutter : packages/armadillo/res/flutter-mark-square-100.png); color: Color(0xffffffff); fit:
15:39:00.351: I/flutter : ImageFit.cover; state: _ImageState(460373810; stream: ImageStream(OneFrameImageStreamCompleter;
15:39:00.353: I/flutter : [100×100] @ 1.0x; 65 listeners); pixels: [100×100] @ 1.0x)), Image(image: AssetImage(bundle: null,
15:39:00.356: I/flutter : name: packages/armadillo/res/Armadillo.png); fit: ImageFit.cover; state: _ImageState(224197766;
15:39:00.359: I/flutter : stream: ImageStream(OneFrameImageStreamCompleter; [1230×1230] @ 1.0x; 25 listeners); pixels:
15:39:00.362: I/flutter : [1230×1230] @ 1.0x))]
15:39:00.364: I/flutter : This usually indicates that a widget was rebuilt outside the build phase (thus marking the element
15:39:00.367: I/flutter : as clean even though it is still in the dirty list). This should not be possible and is probably
15:39:00.370: I/flutter : caused by a bug in the widgets framework. Please report it:
15:39:00.373: I/flutter : https://github.com/flutter/flutter/issues/new
15:39:00.376: I/flutter : To debug this issue, consider setting the debugPrintScheduleBuildForStacks and
15:39:00.379: I/flutter : debugPrintBuildDirtyElements flags to true and looking for a call to scheduleBuildFor for a widget
15:39:00.382: I/flutter : that is labeled "ALREADY IN LIST".
15:39:00.642: I/flutter :
15:39:00.646: I/flutter : When the exception was thrown, this was the stack:
15:39:00.659: I/flutter : #0 BuildOwner.scheduleBuildFor.<anonymous closure> (package:flutter/src/widgets/framework.dart:1522:9)
15:39:00.662: I/flutter : #2 BuildOwner.scheduleBuildFor (package:flutter/src/widgets/framework.dart:1518:12)
15:39:00.665: I/flutter : #3 BuildableElement.markNeedsBuild (package:flutter/src/widgets/framework.dart:2528:11)
15:39:00.668: I/flutter : #4 BuildableElement.dependenciesChanged (package:flutter/src/widgets/framework.dart:2587:5)
15:39:00.671: I/flutter : #5 BuildableElement.activate (package:flutter/src/widgets/framework.dart:2602:7)
15:39:00.673: I/flutter : #6 Element._activateRecursively (package:flutter/src/widgets/framework.dart:2185:13)
15:39:00.676: I/flutter : #7 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:2693:14)
15:39:00.679: I/flutter : #8 Element._activateRecursively (package:flutter/src/widgets/framework.dart:2187:13)
15:39:00.682: I/flutter : #9 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:3427:14)
15:39:00.685: I/flutter : #10 Element._activateRecursively (package:flutter/src/widgets/framework.dart:2187:13)
15:39:00.688: I/flutter : #11 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:3427:14)
15:39:00.691: I/flutter : #12 Element._activateRecursively (package:flutter/src/widgets/framework.dart:2187:13)
15:39:00.693: I/flutter : #13 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:3427:14)
15:39:00.696: I/flutter : #14 Element._activateRecursively (package:flutter/src/widgets/framework.dart:2187:13)
15:39:00.699: I/flutter : #15 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:2693:14)
15:39:00.702: I/flutter : #16 Element._activateRecursively (package:flutter/src/widgets/framework.dart:2187:13)
15:39:00.705: I/flutter : #17 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:2693:14)
15:39:00.708: I/flutter : #18 Element._activateRecursively (package:flutter/src/widgets/framework.dart:2187:13)
15:39:00.711: I/flutter : #19 Element._activateWithParent (package:flutter/src/widgets/framework.dart:2178:5)
15:39:00.714: I/flutter : #20 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2122:18)
15:39:00.717: I/flutter : #21 Element.updateChild (package:flutter/src/widgets/framework.dart:1961:12)
15:39:00.720: I/flutter : #22 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3446:14)
15:39:00.723: I/flutter : #23 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.726: I/flutter : #24 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:2681:16)
15:39:00.729: I/flutter : #25 BuildableElement.rebuild (package:flutter/src/widgets/framework.dart:2570:5)
15:39:00.732: I/flutter : #26 ProxyElement.update (package:flutter/src/widgets/framework.dart:2908:5)
15:39:00.734: I/flutter : #27 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.737: I/flutter : #28 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:3172:26)
15:39:00.740: I/flutter : #29 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3545:17)
15:39:00.744: I/flutter : #30 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.747: I/flutter : #31 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:3172:26)
15:39:00.749: I/flutter : #32 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3545:17)
15:39:00.752: I/flutter : #33 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.754: I/flutter : #34 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3446:14)
15:39:00.757: I/flutter : #35 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.760: I/flutter : #36 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3446:14)
15:39:00.762: I/flutter : #37 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.765: I/flutter : #38 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3446:14)
15:39:00.767: I/flutter : #39 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.771: I/flutter : #40 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3446:14)
15:39:00.773: I/flutter : #41 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.777: I/flutter : #42 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:2681:16)
15:39:00.780: I/flutter : #43 BuildableElement.rebuild (package:flutter/src/widgets/framework.dart:2570:5)
15:39:00.783: I/flutter : #44 StatefulElement.update (package:flutter/src/widgets/framework.dart:2790:5)
15:39:00.785: I/flutter : #45 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.788: I/flutter : #46 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:2681:16)
15:39:00.791: I/flutter : #47 BuildableElement.rebuild (package:flutter/src/widgets/framework.dart:2570:5)
15:39:00.794: I/flutter : #48 StatefulElement.update (package:flutter/src/widgets/framework.dart:2790:5)
15:39:00.796: I/flutter : #49 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.799: I/flutter : #50 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:2681:16)
15:39:00.802: I/flutter : #51 BuildableElement.rebuild (package:flutter/src/widgets/framework.dart:2570:5)
15:39:00.806: I/flutter : #52 StatelessElement.update (package:flutter/src/widgets/framework.dart:2719:5)
15:39:00.809: I/flutter : #53 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.812: I/flutter : #54 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:2681:16)
15:39:00.815: I/flutter : #55 BuildableElement.rebuild (package:flutter/src/widgets/framework.dart:2570:5)
15:39:00.818: I/flutter : #56 StatelessElement.update (package:flutter/src/widgets/framework.dart:2719:5)
15:39:00.821: I/flutter : #57 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.823: I/flutter : #58 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3446:14)
15:39:00.826: I/flutter : #59 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.829: I/flutter : #60 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3446:14)
15:39:00.832: I/flutter : #61 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.835: I/flutter : #62 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:2681:16)
15:39:00.838: I/flutter : #63 BuildableElement.rebuild (package:flutter/src/widgets/framework.dart:2570:5)
15:39:00.841: I/flutter : #64 ProxyElement.update (package:flutter/src/widgets/framework.dart:2908:5)
15:39:00.844: I/flutter : #65 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.846: I/flutter : #66 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:3172:26)
15:39:00.849: I/flutter : #67 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3545:17)
15:39:00.852: I/flutter : #68 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.855: I/flutter : #69 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:2681:16)
15:39:00.858: I/flutter : #70 BuildableElement.rebuild (package:flutter/src/widgets/framework.dart:2570:5)
15:39:00.861: I/flutter : #71 StatefulElement.update (package:flutter/src/widgets/framework.dart:2790:5)
15:39:00.864: I/flutter : #72 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.866: I/flutter : #73 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:3172:26)
15:39:00.869: I/flutter : #74 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3545:17)
15:39:00.872: I/flutter : #75 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.875: I/flutter : #76 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3446:14)
15:39:00.878: I/flutter : #77 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.880: I/flutter : #78 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3446:14)
15:39:00.883: I/flutter : #79 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.886: I/flutter : #80 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3446:14)
15:39:00.889: I/flutter : #81 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.892: I/flutter : #82 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:2681:16)
15:39:00.895: I/flutter : #83 BuildableElement.rebuild (package:flutter/src/widgets/framework.dart:2570:5)
15:39:00.898: I/flutter : #84 StatelessElement.update (package:flutter/src/widgets/framework.dart:2719:5)
15:39:00.901: I/flutter : #85 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.904: I/flutter : #86 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:3172:26)
15:39:00.907: I/flutter : #87 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:3545:17)
15:39:00.910: I/flutter : #88 Element.updateChild (package:flutter/src/widgets/framework.dart:1954:15)
15:39:00.913: I/flutter : #89 _LayoutBuilderElement._layout.<anonymous closure> (package:flutter/src/widgets/layout_builder.dart:120:18)
15:39:00.916: I/flutter : #90 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:1640:19)
15:39:00.919: I/flutter : #91 _LayoutBuilderElement._layout (package:flutter/src/widgets/layout_builder.dart:108:11)
15:39:00.922: I/flutter : #92 RenderObject.invokeLayoutCallback.<anonymous closure> (package:flutter/src/rendering/object.dart:1669:58)
15:39:00.925: I/flutter : #93 PipelineOwner._enableMutationsToDirtySubtrees (package:flutter/src/rendering/object.dart:919:15)
15:39:00.928: I/flutter : #94 RenderObject.invokeLayoutCallback (package:flutter/src/rendering/object.dart:1669:13)
15:39:00.931: I/flutter : #95 _RenderLayoutBuilder.performLayout (package:flutter/src/widgets/layout_builder.dart:207:5)
15:39:00.934: I/flutter : #96 RenderObject.layout (package:flutter/src/rendering/object.dart:1571:21)
15:39:00.936: I/flutter : #97 RenderStack.performLayout (package:flutter/src/rendering/stack.dart:354:15)
15:39:00.939: I/flutter : #98 RenderObject.layout (package:flutter/src/rendering/object.dart:1571:21)
15:39:00.942: I/flutter : #99 _RenderLayoutBuilder.performLayout (package:flutter/src/widgets/layout_builder.dart:209:13)
15:39:00.945: I/flutter : #100 RenderObject.layout (package:flutter/src/rendering/object.dart:1571:21)
15:39:00.948: I/flutter : #101 RenderFlex.performLayout (package:flutter/src/rendering/flex.dart:516:17)
15:39:00.951: I/flutter : #102 RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1448:21)
15:39:00.953: I/flutter : #103 PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:897:18)
15:39:00.956: I/flutter : #104 BindingBase&SchedulerBinding&GestureBinding&ServicesBinding&RendererBinding.beginFrame (package:flutter/src/rendering/binding.dart:207:19)
15:39:00.959: I/flutter : #105 BindingBase&SchedulerBinding&GestureBinding&ServicesBinding&RendererBinding&WidgetsBinding.beginFrame (package:flutter/src/widgets/binding.dart:297:23)
15:39:00.962: I/flutter : #106 BindingBase&SchedulerBinding&GestureBinding&ServicesBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:152:5)
15:39:00.965: I/flutter : #107 BindingBase&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:608:15)
15:39:00.968: I/flutter : #108 BindingBase&SchedulerBinding.handleBeginFrame (package:flutter/src/scheduler/binding.dart:543:9)
15:39:00.970: I/flutter : #109 _beginFrame (file:///b/build/slave/Linux_Engine/build/src/flutter/lib/ui/hooks.dart:48)
15:39:00.973: I/flutter : (elided one frame from class _AssertionError)
15:39:00.976: I/flutter : ════════════════════════════════════════════════════════════════════════════════════════════════════
</code></pre></div> | 0 |
<p dir="auto">Can VScode inherit cold folding from Visual Studio:</p>
<table role="table">
<thead>
<tr>
<th align="center">Normal:</th>
<th align="center">On Hover:</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6901336/13731861/e31a29d0-e941-11e5-9a41-dc3f63a56aa9.png"><img src="https://cloud.githubusercontent.com/assets/6901336/13731861/e31a29d0-e941-11e5-9a41-dc3f63a56aa9.png" alt="image" style="max-width: 100%;"></a></td>
<td align="center"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6901336/13731855/d67e369e-e941-11e5-9828-5069333bbb97.png"><img src="https://cloud.githubusercontent.com/assets/6901336/13731855/d67e369e-e941-11e5-9828-5069333bbb97.png" alt="image" style="max-width: 100%;"></a></td>
</tr>
</tbody>
</table>
<p dir="auto">and having the fold on the same line like this:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6901336/13731870/0feb5178-e942-11e5-9fe7-90fa1b325510.png"><img src="https://cloud.githubusercontent.com/assets/6901336/13731870/0feb5178-e942-11e5-9fe7-90fa1b325510.png" alt="image" style="max-width: 100%;"></a></p> | <p dir="auto">I would like to see more options with code folding and with bracket matching.<br>
It seems the user base is quite split on how they want the collapsed region to display, so I think this should be a user configuration setting along with the other features listed.</p>
<h3 dir="auto">Feature Requests</h3>
<ol dir="auto">
<li>Collapse fold to a single line <a href="https://github.com/Microsoft/vscode/issues/2948#issuecomment-183540068" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/2948/hovercard">Related#2 Alternative Designs#1</a></li>
<li>Bracket anchors/leads/lines seen in <code class="notranslate">pictures #2 and #3</code> + <a href="https://github.com/Microsoft/vscode/issues/2948#issuecomment-183540068" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/2948/hovercard">Related#2 Alternative Designs#2</a></li>
<li>Peek at top bracket when hovering the bottom bracket <code class="notranslate">pictures #3</code> This should only happen when the top matching bracket isn't visible on the current viewport.</li>
<li>Highlight current region. In <code class="notranslate">pictures #1 and #2</code> it highlights the current block you're on</li>
<li>Collapse block from bottom bracket. In <code class="notranslate">pictures #1 and #3</code> you can collapse a block region from the lower bracket which can be really nice, it can be a quick way to see what the bracket belongs to w/o feature <code class="notranslate">request #3</code></li>
</ol>
<h3 dir="auto">Picture examples</h3>
<ol dir="auto">
<li>Single line collapse<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12663081/22518992/9aacab42-e863-11e6-8c41-068ed3e629f8.png"><img src="https://cloud.githubusercontent.com/assets/12663081/22518992/9aacab42-e863-11e6-8c41-068ed3e629f8.png" alt="image" style="max-width: 100%;"></a></li>
<li>Anchor / leads / lines<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12663081/22526296/87ce5d88-e87f-11e6-9065-5cf626a7441c.png"><img src="https://cloud.githubusercontent.com/assets/12663081/22526296/87ce5d88-e87f-11e6-9065-5cf626a7441c.png" alt="image" style="max-width: 100%;"></a></li>
<li>Peek at top bracket<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12663081/22526602/b7da2380-e880-11e6-99fd-6f22296eccb1.png"><img src="https://cloud.githubusercontent.com/assets/12663081/22526602/b7da2380-e880-11e6-99fd-6f22296eccb1.png" alt="image" style="max-width: 100%;"></a></li>
</ol>
<h3 dir="auto">Related</h3>
<ol dir="auto">
<li>Collapse to same line <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135795757" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3352" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3352/hovercard" href="https://github.com/microsoft/vscode/issues/3352">#3352</a></li>
<li>Icons for folding <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="133083360" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/2948" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/2948/hovercard" href="https://github.com/microsoft/vscode/issues/2948">#2948</a></li>
</ol>
<h4 dir="auto">Labels</h4>
<ul dir="auto">
<li>editor</li>
<li>editor-folding</li>
<li>feature-request</li>
</ul> | 1 |
<h1 dir="auto">Summary</h1>
<p dir="auto">Installing TypeScript 1.7 tooling for Visual Studio causes different behaviour from 1.6 when publishing web applications, both from within Visual Studio (right click > publish) and via msbuild.exe (<code class="notranslate">/p:DeployOnBuild=true</code>).</p>
<p dir="auto">This issue has only been observed using a file system publish.</p>
<h1 dir="auto">Symptoms</h1>
<p dir="auto">Generated JavaScript is no longer included in the packaged / published output.</p>
<h1 dir="auto">Observations</h1>
<p dir="auto">It appears there is a difference in the MSBuild <code class="notranslate">Content</code> ItemGroup's metadata. I believe that previously the generated JavaScript files were being included in the <code class="notranslate">Content</code> ItemGroup as paths relative to the <code class="notranslate">.csproj</code> file:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Scripts\App.js "><pre class="notranslate"><code class="notranslate">Scripts\App.js
</code></pre></div>
<p dir="auto">As of 1.7 it appears the generated JavaScript files are now being included in <code class="notranslate">Content</code> as absolute paths:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\Projects\Solution\Web\Scripts\App.js"><pre class="notranslate"><code class="notranslate">C:\Projects\Solution\Web\Scripts\App.js
</code></pre></div>
<p dir="auto">Perhaps this is causing a problem for the web publishing mechanism?</p> | <p dir="auto">TypeScript 1.4 allows variables to be used before they are initialized.<br>
For example, both:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function dd(): number {
var x: number;
return x;
}"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">dd</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">number</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">x</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-s1">x</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">and</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function ddd() {
var x: number;
x++;
}"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">ddd</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">x</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-s1">x</span><span class="pl-c1">++</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">are allowed.</p>
<p dir="auto">It would be useful to have a compiler flag such as --noUseBeforeInit that would turn variable use before initialization into an error.</p>
<p dir="auto">This suggestion fits in with <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="38927924" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/274" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/274/hovercard" href="https://github.com/microsoft/TypeScript/issues/274">#274</a> meta-bug.</p> | 0 |
<p dir="auto">Why was the dedup plugin deprecated? Without it my build is several kb larger.</p> | <p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p>
<p dir="auto">Feature! <g-emoji class="g-emoji" alias="tada" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f389.png">🎉</g-emoji></p>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto">(This is gonna be a bit longer.)</p>
<p dir="auto">Let’s imagine working on a project using <a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API" rel="nofollow">WebWorkers</a>. Let’s say I am using this great new shiny library <a href="https://github.com/GoogleChromeLabs/comlink">Comlink</a>. It’s needed by both <code class="notranslate">main.js</code> and <code class="notranslate">worker.js</code> as Comlink is an abstraction over <code class="notranslate">postMessage</code>. Of course both <code class="notranslate">main.js</code> and <code class="notranslate">worker.js</code> have other dependencies besides Comlink.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/234957/36124715-048b2918-1049-11e8-8f4f-815b3a5e4148.png"><img src="https://user-images.githubusercontent.com/234957/36124715-048b2918-1049-11e8-8f4f-815b3a5e4148.png" alt="dependencies" style="max-width: 100%;"></a></p>
<p dir="auto">(You might already be able to tell where I’m going with this)</p>
<p dir="auto"><strong>Attempt 1: Entry points</strong></p>
<p dir="auto">Listing both <code class="notranslate">worker.js</code> and <code class="notranslate">main.js</code> as entry points doesn’t yield the expected results as all static imports will be inlined. Comlink will be (down)loaded twice. The semantics of entry points are that only one entry point will be loaded at a time. In the context of my example, though, two entry points are loaded in parallel.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/234957/36125110-a067fa04-104a-11e8-9f56-704ca86b76d8.png"><img src="https://user-images.githubusercontent.com/234957/36125110-a067fa04-104a-11e8-9f56-704ca86b76d8.png" alt="suboptimalchunk" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Attempt 2: Dynamic loading</strong></p>
<p dir="auto">I tried some hackery with <code class="notranslate">import()</code>, but the problem is that WebPack (rightly) assumes that there’s is a global registry of loaded modules. <code class="notranslate">worker.js</code>, however, runs in a different realm and has a separate global scope to <code class="notranslate">main.js</code></p>
<p dir="auto"><strong>Workaround: Force a common chunk</strong></p>
<p dir="auto">My current workaround is to use the entry point approach and manually maintain a list of shared modules that need to be put in a separate chunk using <code class="notranslate">CommonChunksPlugin</code>:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module.exports = {
entry: {
main: './src/main.js',
worker: './src/worker.js',
},
output: {
filename: '[name].js',
},
plugins: [
// Force comlink into its own bundle
new webpack.optimize.CommonsChunkPlugin({
name: 'comlink',
minChunks: 2,
}),
],
};"><pre class="notranslate"><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">entry</span>: <span class="pl-kos">{</span>
<span class="pl-c1">main</span>: <span class="pl-s">'./src/main.js'</span><span class="pl-kos">,</span>
<span class="pl-c1">worker</span>: <span class="pl-s">'./src/worker.js'</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">output</span>: <span class="pl-kos">{</span>
<span class="pl-c1">filename</span>: <span class="pl-s">'[name].js'</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-c">// Force comlink into its own bundle</span>
<span class="pl-k">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">optimize</span><span class="pl-kos">.</span><span class="pl-c1">CommonsChunkPlugin</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">name</span>: <span class="pl-s">'comlink'</span><span class="pl-kos">,</span>
<span class="pl-c1">minChunks</span>: <span class="pl-c1">2</span><span class="pl-kos">,</span>
<span class="pl-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>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">Under the assumption that there’s good caching headers, the optimal behavior is to put Comlink in it’s own chunk (or a chunk for shared modules) so it’s only downloaded once. The second request by the worker will hit the HTTP cache and re-use the already downloaded shared chunk.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/234957/36125059-67bd99d4-104a-11e8-8e92-a2005b23a26a.png"><img src="https://user-images.githubusercontent.com/234957/36125059-67bd99d4-104a-11e8-8e92-a2005b23a26a.png" alt="optimalchunk" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>API</strong></p>
<p dir="auto">I’m not sure what the API for this would look like. This API would not only be useful for workers, but also for pages that load another entry point in an iframe (although, tbh, I struggle to find a good example for this <g-emoji class="g-emoji" alias="man_shrugging" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f937-2642.png">🤷♂️</g-emoji> )</p>
<p dir="auto">I think the most straight-forward way would to add a <code class="notranslate">realmEndpoints</code> (name pending lol) to the webpack config which lists entry points that can be loaded in parallel to <em>one</em> of the main entry points.</p>
<p dir="auto">What do y’all think? API suggestions/corrections? Am I just holding it wrong?</p>
<p dir="auto"><strong>If this is a feature request, what is motivation or use case for changing the behavior?</strong></p>
<p dir="auto"><strong>Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.</strong></p> | 0 |
<p dir="auto">NOTE: Only file GitHub issues for bugs and feature requests. All other topics will be closed.</p>
<p dir="auto">For general support from the community, see <a href="https://stackoverflow.com/questions/tagged/tensorflow" rel="nofollow">StackOverflow</a>.<br>
To make bugs and feature requests more easy to find and organize, we close issues that are deemed<br>
out of scope for GitHub Issues and point people to StackOverflow.</p>
<p dir="auto">For bugs or installation issues, please provide the following information.<br>
The more information you provide, the more easily we will be able to offer<br>
help and advice.</p>
<h3 dir="auto">Currently trying to run tensorflow android code downloaded from Github facing following error</h3>
<p dir="auto">Error:Execution failed for task ':buildNativeMake'.<br>
A problem occurred starting process 'command 'tensorflow/contrib/makefile/build_all_android.sh''</p>
<h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System: 64 bit<br>
Android Studio : 2.3<br>
Bazel: 0.3.0<br>
python: 3.5<br>
JDK: 8</p>
<p dir="auto">Please get back to us today ASAP<br>
Thanking you in advance.</p>
<p dir="auto"><a href="https://github.com/tensorflow/tensorflow/files/878702/build_gradle.txt">build_gradle.txt</a></p> | <p dir="auto">NOTE: Only file GitHub issues for bugs and feature requests. All other topics will be closed.</p>
<p dir="auto">For general support from the community, see <a href="https://stackoverflow.com/questions/tagged/tensorflow" rel="nofollow">StackOverflow</a>.<br>
To make bugs and feature requests more easy to find and organize, we close issues that are deemed<br>
out of scope for GitHub Issues and point people to StackOverflow.</p>
<p dir="auto">For bugs or installation issues, please provide the following information.<br>
The more information you provide, the more easily we will be able to offer<br>
help and advice.</p>
<h3 dir="auto">What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?</h3>
<h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System:</p>
<p dir="auto">Installed version of CUDA and cuDNN:<br>
(please attach the output of <code class="notranslate">ls -l /path/to/cuda/lib/libcud*</code>):</p>
<p dir="auto">If installed from binary pip package, provide:</p>
<ol dir="auto">
<li>A link to the pip package you installed:</li>
<li>The output from <code class="notranslate">python -c "import tensorflow; print(tensorflow.__version__)"</code>.</li>
</ol>
<p dir="auto">If installed from source, provide</p>
<ol dir="auto">
<li>The commit hash (<code class="notranslate">git rev-parse HEAD</code>)</li>
<li>The output of <code class="notranslate">bazel version</code></li>
</ol>
<h3 dir="auto">If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)</h3>
<h3 dir="auto">What other attempted solutions have you tried?</h3>
<h3 dir="auto">Logs or other output that would be helpful</h3>
<p dir="auto">(If logs are large, please upload as attachment or provide link).</p> | 1 |
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [v1.XX]</li>
<li>Operating System: [All, Windows 11, Ubuntu 20, macOS 13.2, etc.]</li>
<li>Browser: [All, Chromium, Firefox, WebKit]</li>
<li>Other info:</li>
</ul>
<h3 dir="auto">Source code</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I provided exact source code that allows reproducing the issue locally.</li>
</ul>
<p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p>
<p dir="auto">[https://github.com/your_profile/playwright_issue_title]</p>
<p dir="auto">or</p>
<p dir="auto"><strong>Config file</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// playwright.config.ts
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'], },
},
});"><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">defineConfig</span><span class="pl-kos">,</span> <span class="pl-s1">devices</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-en">defineConfig</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">projects</span>: <span class="pl-kos">[</span>
<span class="pl-kos">{</span>
<span class="pl-c1">name</span>: <span class="pl-s">'chromium'</span><span class="pl-kos">,</span>
<span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Desktop Chrome'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos"></span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Test file (self-contained)</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="it('should check the box using setChecked', async ({ page }) => {
await page.setContent(`<input id='checkbox' type='checkbox'></input>`);
await page.getByRole('checkbox').check();
await expect(page.getByRole('checkbox')).toBeChecked();
});"><pre class="notranslate"><span class="pl-en">it</span><span class="pl-kos">(</span><span class="pl-s">'should check the box using setChecked'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">setContent</span><span class="pl-kos">(</span><span class="pl-s">`<input id='checkbox' type='checkbox'></input>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'checkbox'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">check</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'checkbox'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeChecked</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Steps</strong></p>
<ul dir="auto">
<li>[Run the test]</li>
<li>[...]</li>
</ul>
<p dir="auto"><strong>Expected</strong></p>
<p dir="auto">[Describe expected behavior]</p>
<p dir="auto"><strong>Actual</strong></p>
<p dir="auto">[Describe actual behavior]</p> | <p dir="auto">Context:<br>
In Page Object Model, I would create a page object like this</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { Locator, Page } from '@playwright/test';
export class PlaywrightDevPage {
readonly page: Page;
readonly getStartedLink: Locator;
constructor(page: Page) {
this.page = page;
this.getStartedLink = page.locator('text=Get started');
}
async goto() {
await this.page.goto('https://playwright.dev');
// duplicate selector appearence
await this.page.waitForSelector(''text=Get started'');
}
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">Locator</span><span class="pl-kos">,</span> <span class="pl-v">Page</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-v">PlaywrightDevPage</span> <span class="pl-kos">{</span>
<span class="pl-c1">readonly</span> <span class="pl-s1">page</span>: <span class="pl-v">Page</span><span class="pl-kos">;</span>
<span class="pl-c1">readonly</span> <span class="pl-s1">getStartedLink</span>: <span class="pl-v">Locator</span><span class="pl-kos">;</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">page</span>: <span class="pl-v">Page</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">page</span> <span class="pl-c1">=</span> <span class="pl-s1">page</span><span class="pl-kos">;</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">getStartedLink</span> <span class="pl-c1">=</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'text=Get started'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">async</span> <span class="pl-en">goto</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-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'https://playwright.dev'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// duplicate selector appearence</span>
<span class="pl-k">await</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">page</span><span class="pl-kos">.</span><span class="pl-en">waitForSelector</span><span class="pl-kos">(</span><span class="pl-s">''</span><span class="pl-s1">text</span><span class="pl-c1">=</span><span class="pl-v">Get</span> <span class="pl-s1">started</span><span class="pl-s">''</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">Because Locator.isVisible() does not wait for the element to become visible and returns immediately, I have to use waitForSelector method. But there is no supported function like page.waitForSelector(locator: Locator) or page.waitForLocator(locator: Locator) or Locator.waitUtil(state: State).</p> | 0 |
<h4 dir="auto">A small, complete example of the issue</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd
import numpy as np
from multiprocessing import Pool
import warnings
# To avoid natural name warnings
warnings.filterwarnings('ignore')
def init(hdf_store):
global hdf_buff
hdf_buff = hdf_store
def reader(name):
df = hdf_buff[name]
return (name, df)
def main():
# Creating the store
with pd.HDFStore('storage.h5', 'w') as store:
for i in range(100):
df = pd.DataFrame(np.random.rand(5,3), columns=list('abc'))
store.append(str(i), df, index=False, expectedrows=5)
# Reading concurrently with one connection
with pd.HDFStore('storage.h5', 'r') as store:
with Pool(4, initializer=init, initargs=(store,)) as p:
ret = pd.concat(dict(p.map(reader, [str(i) for i in range(100)])))
if __name__ == '__main__':
main()
"><pre class="notranslate"><code class="notranslate">import pandas as pd
import numpy as np
from multiprocessing import Pool
import warnings
# To avoid natural name warnings
warnings.filterwarnings('ignore')
def init(hdf_store):
global hdf_buff
hdf_buff = hdf_store
def reader(name):
df = hdf_buff[name]
return (name, df)
def main():
# Creating the store
with pd.HDFStore('storage.h5', 'w') as store:
for i in range(100):
df = pd.DataFrame(np.random.rand(5,3), columns=list('abc'))
store.append(str(i), df, index=False, expectedrows=5)
# Reading concurrently with one connection
with pd.HDFStore('storage.h5', 'r') as store:
with Pool(4, initializer=init, initargs=(store,)) as p:
ret = pd.concat(dict(p.map(reader, [str(i) for i in range(100)])))
if __name__ == '__main__':
main()
</code></pre></div>
<p dir="auto">The above code either fails loudly with the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tables.exceptions.HDF5ExtError: HDF5 error back trace
File "H5Dio.c", line 173, in H5Dread
can't read data
File "H5Dio.c", line 554, in H5D__read
can't read data
File "H5Dchunk.c", line 1856, in H5D__chunk_read
error looking up chunk address
File "H5Dchunk.c", line 2441, in H5D__chunk_lookup
can't query chunk address
File "H5Dbtree.c", line 998, in H5D__btree_idx_get_addr
can't get chunk info
File "H5B.c", line 340, in H5B_find
unable to load B-tree node
File "H5AC.c", line 1262, in H5AC_protect
H5C_protect() failed.
File "H5C.c", line 3574, in H5C_protect
can't load entry
File "H5C.c", line 7954, in H5C_load_entry
unable to load entry
File "H5Bcache.c", line 143, in H5B__load
wrong B-tree signature
End of HDF5 error back trace"><pre class="notranslate"><code class="notranslate">tables.exceptions.HDF5ExtError: HDF5 error back trace
File "H5Dio.c", line 173, in H5Dread
can't read data
File "H5Dio.c", line 554, in H5D__read
can't read data
File "H5Dchunk.c", line 1856, in H5D__chunk_read
error looking up chunk address
File "H5Dchunk.c", line 2441, in H5D__chunk_lookup
can't query chunk address
File "H5Dbtree.c", line 998, in H5D__btree_idx_get_addr
can't get chunk info
File "H5B.c", line 340, in H5B_find
unable to load B-tree node
File "H5AC.c", line 1262, in H5AC_protect
H5C_protect() failed.
File "H5C.c", line 3574, in H5C_protect
can't load entry
File "H5C.c", line 7954, in H5C_load_entry
unable to load entry
File "H5Bcache.c", line 143, in H5B__load
wrong B-tree signature
End of HDF5 error back trace
</code></pre></div>
<p dir="auto">Or with the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/kartik/miniconda3/lib/python3.5/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/kartik/miniconda3/lib/python3.5/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "/home/kartik/Documents/Code/Scripts/Benchmarking and optimization stuff/HDF_Concurrent.py", line 13, in reader
df = hdf_buff[name]
File "/home/kartik/miniconda3/lib/python3.5/site-packages/pandas/io/pytables.py", line 461, in __getitem__
return self.get(key)
File "/home/kartik/miniconda3/lib/python3.5/site-packages/pandas/io/pytables.py", line 677, in get
raise KeyError('No object named %s in the file' % key)
KeyError: 'No object named 7 in the file'
""""><pre class="notranslate"><code class="notranslate">multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/kartik/miniconda3/lib/python3.5/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/kartik/miniconda3/lib/python3.5/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "/home/kartik/Documents/Code/Scripts/Benchmarking and optimization stuff/HDF_Concurrent.py", line 13, in reader
df = hdf_buff[name]
File "/home/kartik/miniconda3/lib/python3.5/site-packages/pandas/io/pytables.py", line 461, in __getitem__
return self.get(key)
File "/home/kartik/miniconda3/lib/python3.5/site-packages/pandas/io/pytables.py", line 677, in get
raise KeyError('No object named %s in the file' % key)
KeyError: 'No object named 7 in the file'
"""
</code></pre></div>
<p dir="auto">But in this case, <code class="notranslate">object 7</code> clearly exists in the table. Any help?</p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<h2 dir="auto">INSTALLED VERSIONS</h2>
<p dir="auto">commit: None<br>
python: 3.5.2.final.0<br>
python-bits: 64<br>
OS: Linux<br>
OS-release: 4.4.0-47-generic<br>
machine: x86_64<br>
processor: x86_64<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: en_US.UTF-8<br>
LOCALE: en_US.UTF-8</p>
<p dir="auto">pandas: 0.19.0<br>
nose: None<br>
pip: 8.1.2<br>
setuptools: 27.2.0<br>
Cython: 0.25.1<br>
numpy: 1.11.2<br>
scipy: 0.18.1<br>
statsmodels: 0.6.1<br>
xarray: 0.8.2<br>
IPython: 5.1.0<br>
sphinx: None<br>
patsy: 0.4.1<br>
dateutil: 2.5.3<br>
pytz: 2016.7<br>
blosc: None<br>
bottleneck: 1.1.0<br>
tables: 3.3.0<br>
numexpr: 2.6.1<br>
matplotlib: 1.5.3<br>
openpyxl: None<br>
xlrd: None<br>
xlwt: None<br>
xlsxwriter: 0.9.3<br>
lxml: None<br>
bs4: None<br>
html5lib: None<br>
httplib2: None<br>
apiclient: None<br>
sqlalchemy: None<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.8<br>
boto: None<br>
pandas_datareader: None</p>
</details> | <p dir="auto">I find the <code class="notranslate">Index.to_series</code> method is a convenient way to allow indices to act as columns of a dataframe where desired. However, the behavior of <code class="notranslate">MultiIndex.to_series</code>, which gives a <code class="notranslate">Series</code> of tuples, is less useful.</p>
<p dir="auto">Would it be convenient to provide a <code class="notranslate">to_dataframe</code> method for index classes? This would be a natural extension of the utility of <code class="notranslate">to_series</code>, and more useful for <code class="notranslate">MultiIndex</code> objects I would think.</p>
<p dir="auto">I'm something equivalent to:</p>
<blockquote>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def to_dataframe(self):
DataFrame(self.tolist(), columns=self.names, index=self)"><pre class="notranslate"><code class="notranslate">def to_dataframe(self):
DataFrame(self.tolist(), columns=self.names, index=self)
</code></pre></div>
</blockquote> | 0 |
<h3 dir="auto">Is there an existing issue for this?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li>
</ul>
<h3 dir="auto">This issue exists in the latest npm version</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I am using the latest npm</li>
</ul>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto">I have two packages <code class="notranslate">ajs</code> and <code class="notranslate">bjs</code>. Due to some reason I intend to merge both. Right now, I am installing <code class="notranslate">ajs</code> with <code class="notranslate">npm install ajs</code> and <code class="notranslate">bjs</code> with <code class="notranslate">npm install bjs</code>. But after the merge I wish to install <code class="notranslate">bjs</code> when <code class="notranslate">ajs</code> (<code class="notranslate">npm i ajs</code>) is installed.</p>
<p dir="auto">I am aware of manual installation of <code class="notranslate">npm i <alias>@npm:<package></code>. It does not solve my purpose. I did try searching a couple of times around this but did not find any documentation related to this. I doubt this is even directly possible. I wish not to copy one repo to another to maintain the sanity of the deprecated repository upgraded to another. The only option I see is update the github url in the repository. But I doubt it solves the purpose. Any help is welcome.</p>
<p dir="auto"><a href="https://stackoverflow.com/questions/72554667/install-package-x-when-a-request-for-package-y-installation-is-made" rel="nofollow">https://stackoverflow.com/questions/72554667/install-package-x-when-a-request-for-package-y-installation-is-made</a></p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Add documentation to redirect installation of one package(<code class="notranslate">ajs</code>) when installing another(<code class="notranslate">bjs</code>) package. Alternatively allow for the same as a feature.</p>
<h3 dir="auto">Steps To Reproduce</h3>
<p dir="auto">NA. Feature</p>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>npm: 8.5.5</li>
<li>Node.js: 16.15.0</li>
<li>OS Name: Windows/Linux</li>
<li>System Model Name: Dell Vostro OEM 3590 - i5 x64 Arch</li>
<li>npm config:</li>
</ul>
<div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="; copy and paste output from `npm config ls` here
; node bin location = C:\Users\ganes\OneDrive\Documents\binaries\node\node.exe
; cwd = C:\Users\ganes\OneDrive\Documents\projects\github\cgi-js
; HOME = C:\Users\ganes
; Run `npm config ls -l` to show all defaults.
C:\Users\ganes\OneDrive\Documents\projects\github\cgi-js>npm config ls -l
; "default" config from default values
_auth = (protected)
access = null
all = false
allow-same-version = false
also = null
audit = true
audit-level = null
auth-type = "legacy"
before = null
bin-links = true
browser = null
ca = null
cache = "C:\\Users\\ganes\\AppData\\Local\\npm-cache"
cache-max = null
cache-min = 0
cafile = null
call = ""
cert = null
ci-name = null
cidr = null
color = true
commit-hooks = true
depth = null
description = true
dev = false
diff = []
diff-dst-prefix = "b/"
diff-ignore-all-space = false
diff-name-only = false
diff-no-prefix = false
diff-src-prefix = "a/"
diff-text = false
diff-unified = 3
dry-run = false
editor = "notepad.exe"
engine-strict = false
fetch-retries = 2
fetch-retry-factor = 10
fetch-retry-maxtimeout = 60000
fetch-retry-mintimeout = 10000
fetch-timeout = 300000
force = false
foreground-scripts = false
format-package-lock = true
fund = true
git = "git"
git-tag-version = true
global = false
global-style = false
globalconfig = "C:\\Users\\ganes\\OneDrive\\Documents\\binaries\\node\\etc\\npmrc"
heading = "npm"
https-proxy = null
if-present = false
ignore-scripts = false
include = []
include-staged = false
include-workspace-root = false
init-author-email = ""
init-author-name = ""
init-author-url = ""
init-license = "ISC"
init-module = "C:\\Users\\ganes\\.npm-init.js"
init-version = "1.0.0"
init.author.email = ""
init.author.name = ""
init.author.url = ""
init.license = "ISC"
init.module = "C:\\Users\\ganes\\.npm-init.js"
init.version = "1.0.0"
json = false
key = null
legacy-bundling = false
legacy-peer-deps = false
link = false
local-address = null
location = "user"
lockfile-version = null
loglevel = "notice"
logs-max = 10
; long = false ; overridden by cli
maxsockets = 15
message = "%s"
metrics-registry = "https://registry.npmjs.org/"
node-options = null
node-version = "v16.15.0"
noproxy = [""]
npm-version = "8.5.5"
offline = false
omit = []
only = null
optional = null
otp = null
pack-destination = "."
package = []
package-lock = true
package-lock-only = false
parseable = false
prefer-offline = false
prefer-online = false
prefix = "C:\\Users\\ganes\\OneDrive\\Documents\\binaries\\node"
preid = ""
production = null
progress = true
proxy = null
read-only = false
rebuild-bundle = true
registry = "https://registry.npmjs.org/"
save = true
save-bundle = false
save-dev = false
save-exact = false
save-optional = false
save-peer = false
save-prefix = "^"
save-prod = false
scope = ""
script-shell = null
searchexclude = ""
searchlimit = 20
searchopts = ""
searchstaleness = 900
shell = "C:\\Windows\\system32\\cmd.exe"
shrinkwrap = true
sign-git-commit = false
sign-git-tag = false
sso-poll-frequency = 500
sso-type = "oauth"
strict-peer-deps = false
strict-ssl = true
tag = "latest"
tag-version-prefix = "v"
timing = false
tmp = "C:\\Users\\ganes\\AppData\\Local\\Temp"
umask = 0
unicode = true
update-notifier = true
usage = false
user-agent = "npm/{npm-version} node/{node-version} {platform} {arch} workspaces/{workspaces} {ci}"
userconfig = "C:\\Users\\ganes\\.npmrc"
version = false
versions = false
viewer = "browser"
which = null
workspace = []
workspaces = null
yes = null
; "cli" config from command line options
long = true"><pre class="notranslate"><span class="pl-c"><span class="pl-c">;</span> copy and paste output from `npm config ls` here</span>
<span class="pl-c"><span class="pl-c">;</span> node bin location = C:\Users\ganes\OneDrive\Documents\binaries\node\node.exe</span>
<span class="pl-c"><span class="pl-c">;</span> cwd = C:\Users\ganes\OneDrive\Documents\projects\github\cgi-js</span>
<span class="pl-c"><span class="pl-c">;</span> HOME = C:\Users\ganes</span>
<span class="pl-c"><span class="pl-c">;</span> Run `npm config ls -l` to show all defaults.</span>
C:\Users\ganes\OneDrive\Documents\projects\github\cgi-js>npm config ls -l
<span class="pl-c"><span class="pl-c">;</span> "default" config from default values</span>
<span class="pl-k">_auth</span> = (protected)
<span class="pl-k">access</span> = null
<span class="pl-k">all</span> = false
<span class="pl-k">allow-same-version</span> = false
<span class="pl-k">also</span> = null
<span class="pl-k">audit</span> = true
<span class="pl-k">audit-level</span> = null
<span class="pl-k">auth-type</span> = <span class="pl-s"><span class="pl-pds">"</span>legacy<span class="pl-pds">"</span></span>
<span class="pl-k">before</span> = null
<span class="pl-k">bin-links</span> = true
<span class="pl-k">browser</span> = null
<span class="pl-k">ca</span> = null
<span class="pl-k">cache</span> = <span class="pl-s"><span class="pl-pds">"</span>C:\\Users\\ganes\\AppData\\Local\\npm-cache<span class="pl-pds">"</span></span>
<span class="pl-k">cache-max</span> = null
<span class="pl-k">cache-min</span> = 0
<span class="pl-k">cafile</span> = null
<span class="pl-k">call</span> = <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-k">cert</span> = null
<span class="pl-k">ci-name</span> = null
<span class="pl-k">cidr</span> = null
<span class="pl-k">color</span> = true
<span class="pl-k">commit-hooks</span> = true
<span class="pl-k">depth</span> = null
<span class="pl-k">description</span> = true
<span class="pl-k">dev</span> = false
<span class="pl-k">diff</span> = []
<span class="pl-k">diff-dst-prefix</span> = <span class="pl-s"><span class="pl-pds">"</span>b/<span class="pl-pds">"</span></span>
<span class="pl-k">diff-ignore-all-space</span> = false
<span class="pl-k">diff-name-only</span> = false
<span class="pl-k">diff-no-prefix</span> = false
<span class="pl-k">diff-src-prefix</span> = <span class="pl-s"><span class="pl-pds">"</span>a/<span class="pl-pds">"</span></span>
<span class="pl-k">diff-text</span> = false
<span class="pl-k">diff-unified</span> = 3
<span class="pl-k">dry-run</span> = false
<span class="pl-k">editor</span> = <span class="pl-s"><span class="pl-pds">"</span>notepad.exe<span class="pl-pds">"</span></span>
<span class="pl-k">engine-strict</span> = false
<span class="pl-k">fetch-retries</span> = 2
<span class="pl-k">fetch-retry-factor</span> = 10
<span class="pl-k">fetch-retry-maxtimeout</span> = 60000
<span class="pl-k">fetch-retry-mintimeout</span> = 10000
<span class="pl-k">fetch-timeout</span> = 300000
<span class="pl-k">force</span> = false
<span class="pl-k">foreground-scripts</span> = false
<span class="pl-k">format-package-lock</span> = true
<span class="pl-k">fund</span> = true
<span class="pl-k">git</span> = <span class="pl-s"><span class="pl-pds">"</span>git<span class="pl-pds">"</span></span>
<span class="pl-k">git-tag-version</span> = true
<span class="pl-k">global</span> = false
<span class="pl-k">global-style</span> = false
<span class="pl-k">globalconfig</span> = <span class="pl-s"><span class="pl-pds">"</span>C:\\Users\\ganes\\OneDrive\\Documents\\binaries\\node\\etc\\npmrc<span class="pl-pds">"</span></span>
<span class="pl-k">heading</span> = <span class="pl-s"><span class="pl-pds">"</span>npm<span class="pl-pds">"</span></span>
<span class="pl-k">https-proxy</span> = null
<span class="pl-k">if-present</span> = false
<span class="pl-k">ignore-scripts</span> = false
<span class="pl-k">include</span> = []
<span class="pl-k">include-staged</span> = false
<span class="pl-k">include-workspace-root</span> = false
<span class="pl-k">init-author-email</span> = <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-k">init-author-name</span> = <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-k">init-author-url</span> = <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-k">init-license</span> = <span class="pl-s"><span class="pl-pds">"</span>ISC<span class="pl-pds">"</span></span>
<span class="pl-k">init-module</span> = <span class="pl-s"><span class="pl-pds">"</span>C:\\Users\\ganes\\.npm-init.js<span class="pl-pds">"</span></span>
<span class="pl-k">init-version</span> = <span class="pl-s"><span class="pl-pds">"</span>1.0.0<span class="pl-pds">"</span></span>
<span class="pl-k">init.author.email</span> = <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-k">init.author.name</span> = <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-k">init.author.url</span> = <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-k">init.license</span> = <span class="pl-s"><span class="pl-pds">"</span>ISC<span class="pl-pds">"</span></span>
<span class="pl-k">init.module</span> = <span class="pl-s"><span class="pl-pds">"</span>C:\\Users\\ganes\\.npm-init.js<span class="pl-pds">"</span></span>
<span class="pl-k">init.version</span> = <span class="pl-s"><span class="pl-pds">"</span>1.0.0<span class="pl-pds">"</span></span>
<span class="pl-k">json</span> = false
<span class="pl-k">key</span> = null
<span class="pl-k">legacy-bundling</span> = false
<span class="pl-k">legacy-peer-deps</span> = false
<span class="pl-k">link</span> = false
<span class="pl-k">local-address</span> = null
<span class="pl-k">location</span> = <span class="pl-s"><span class="pl-pds">"</span>user<span class="pl-pds">"</span></span>
<span class="pl-k">lockfile-version</span> = null
<span class="pl-k">loglevel</span> = <span class="pl-s"><span class="pl-pds">"</span>notice<span class="pl-pds">"</span></span>
<span class="pl-k">logs-max</span> = 10
<span class="pl-c"><span class="pl-c">;</span> long = false ; overridden by cli</span>
<span class="pl-k">maxsockets</span> = 15
<span class="pl-k">message</span> = <span class="pl-s"><span class="pl-pds">"</span>%s<span class="pl-pds">"</span></span>
<span class="pl-k">metrics-registry</span> = <span class="pl-s"><span class="pl-pds">"</span>https://registry.npmjs.org/<span class="pl-pds">"</span></span>
<span class="pl-k">node-options</span> = null
<span class="pl-k">node-version</span> = <span class="pl-s"><span class="pl-pds">"</span>v16.15.0<span class="pl-pds">"</span></span>
<span class="pl-k">noproxy</span> = [<span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>]
<span class="pl-k">npm-version</span> = <span class="pl-s"><span class="pl-pds">"</span>8.5.5<span class="pl-pds">"</span></span>
<span class="pl-k">offline</span> = false
<span class="pl-k">omit</span> = []
<span class="pl-k">only</span> = null
<span class="pl-k">optional</span> = null
<span class="pl-k">otp</span> = null
<span class="pl-k">pack-destination</span> = <span class="pl-s"><span class="pl-pds">"</span>.<span class="pl-pds">"</span></span>
<span class="pl-k">package</span> = []
<span class="pl-k">package-lock</span> = true
<span class="pl-k">package-lock-only</span> = false
<span class="pl-k">parseable</span> = false
<span class="pl-k">prefer-offline</span> = false
<span class="pl-k">prefer-online</span> = false
<span class="pl-k">prefix</span> = <span class="pl-s"><span class="pl-pds">"</span>C:\\Users\\ganes\\OneDrive\\Documents\\binaries\\node<span class="pl-pds">"</span></span>
<span class="pl-k">preid</span> = <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-k">production</span> = null
<span class="pl-k">progress</span> = true
<span class="pl-k">proxy</span> = null
<span class="pl-k">read-only</span> = false
<span class="pl-k">rebuild-bundle</span> = true
<span class="pl-k">registry</span> = <span class="pl-s"><span class="pl-pds">"</span>https://registry.npmjs.org/<span class="pl-pds">"</span></span>
<span class="pl-k">save</span> = true
<span class="pl-k">save-bundle</span> = false
<span class="pl-k">save-dev</span> = false
<span class="pl-k">save-exact</span> = false
<span class="pl-k">save-optional</span> = false
<span class="pl-k">save-peer</span> = false
<span class="pl-k">save-prefix</span> = <span class="pl-s"><span class="pl-pds">"</span>^<span class="pl-pds">"</span></span>
<span class="pl-k">save-prod</span> = false
<span class="pl-k">scope</span> = <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-k">script-shell</span> = null
<span class="pl-k">searchexclude</span> = <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-k">searchlimit</span> = 20
<span class="pl-k">searchopts</span> = <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-k">searchstaleness</span> = 900
<span class="pl-k">shell</span> = <span class="pl-s"><span class="pl-pds">"</span>C:\\Windows\\system32\\cmd.exe<span class="pl-pds">"</span></span>
<span class="pl-k">shrinkwrap</span> = true
<span class="pl-k">sign-git-commit</span> = false
<span class="pl-k">sign-git-tag</span> = false
<span class="pl-k">sso-poll-frequency</span> = 500
<span class="pl-k">sso-type</span> = <span class="pl-s"><span class="pl-pds">"</span>oauth<span class="pl-pds">"</span></span>
<span class="pl-k">strict-peer-deps</span> = false
<span class="pl-k">strict-ssl</span> = true
<span class="pl-k">tag</span> = <span class="pl-s"><span class="pl-pds">"</span>latest<span class="pl-pds">"</span></span>
<span class="pl-k">tag-version-prefix</span> = <span class="pl-s"><span class="pl-pds">"</span>v<span class="pl-pds">"</span></span>
<span class="pl-k">timing</span> = false
<span class="pl-k">tmp</span> = <span class="pl-s"><span class="pl-pds">"</span>C:\\Users\\ganes\\AppData\\Local\\Temp<span class="pl-pds">"</span></span>
<span class="pl-k">umask</span> = 0
<span class="pl-k">unicode</span> = true
<span class="pl-k">update-notifier</span> = true
<span class="pl-k">usage</span> = false
<span class="pl-k">user-agent</span> = <span class="pl-s"><span class="pl-pds">"</span>npm/{npm-version} node/{node-version} {platform} {arch} workspaces/{workspaces} {ci}<span class="pl-pds">"</span></span>
<span class="pl-k">userconfig</span> = <span class="pl-s"><span class="pl-pds">"</span>C:\\Users\\ganes\\.npmrc<span class="pl-pds">"</span></span>
<span class="pl-k">version</span> = false
<span class="pl-k">versions</span> = false
<span class="pl-k">viewer</span> = <span class="pl-s"><span class="pl-pds">"</span>browser<span class="pl-pds">"</span></span>
<span class="pl-k">which</span> = null
<span class="pl-k">workspace</span> = []
<span class="pl-k">workspaces</span> = null
<span class="pl-k">yes</span> = null
<span class="pl-c"><span class="pl-c">;</span> "cli" config from command line options</span>
<span class="pl-k">long</span> = true</pre></div> | <h3 dir="auto">Is there an existing issue for this?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li>
</ul>
<h3 dir="auto">This issue exists in the latest npm version</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I am using the latest npm</li>
</ul>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto">When dealing with a scoped package, the file created on disk is of the format <code class="notranslate">scope-package-1.0.0.tgz</code>.<br>
The filename that is reported by <code class="notranslate">npm pack --json</code> is incorrect as it's reported as <code class="notranslate">@scope/package-1.0.0.tgz</code> instead.<br>
The filename reported by <code class="notranslate">npm pack</code> (without <code class="notranslate">--json</code>) is correct.</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">When running <code class="notranslate">npm pack --json</code> the reported <code class="notranslate">filename</code> property should be <code class="notranslate">scope-package-1.0.0.tgz</code> instead of <code class="notranslate">@scope/package-1.0.0.tgz</code>.</p>
<h3 dir="auto">Steps To Reproduce</h3>
<p dir="auto">Given a <code class="notranslate">package.json</code> with the following:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"name": "@scope/package",
"version": "1.0.0",
}"><pre class="notranslate">{
<span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>@scope/package<span class="pl-pds">"</span></span>,
<span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>1.0.0<span class="pl-pds">"</span></span>,
}</pre></div>
<p dir="auto">The output of <code class="notranslate">npm pack</code> is the following, which includes the correct filename:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm notice
npm notice 📦 @scope/[email protected]
npm notice === Tarball Contents ===
npm notice 0B index.js
npm notice 53B package.json
npm notice === Tarball Details ===
npm notice name: @scope/package
npm notice version: 1.0.0
npm notice filename: @scope/package-1.0.0.tgz
npm notice package size: 167 B
npm notice unpacked size: 53 B
npm notice shasum: ad1ef62b3d84c83033c896f0aee03b701c75b1e8
npm notice integrity: sha512-NNdAGvap0FZo6[...]oW6ok5Rejsmag==
npm notice total files: 2
npm notice
scope-package-1.0.0.tgz"><pre class="notranslate"><code class="notranslate">npm notice
npm notice 📦 @scope/[email protected]
npm notice === Tarball Contents ===
npm notice 0B index.js
npm notice 53B package.json
npm notice === Tarball Details ===
npm notice name: @scope/package
npm notice version: 1.0.0
npm notice filename: @scope/package-1.0.0.tgz
npm notice package size: 167 B
npm notice unpacked size: 53 B
npm notice shasum: ad1ef62b3d84c83033c896f0aee03b701c75b1e8
npm notice integrity: sha512-NNdAGvap0FZo6[...]oW6ok5Rejsmag==
npm notice total files: 2
npm notice
scope-package-1.0.0.tgz
</code></pre></div>
<p dir="auto">The output of <code class="notranslate">npm pack --json</code> is the following, which includes an incorrect <code class="notranslate">filename</code> property:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[
{
"id": "@scope/[email protected]",
"name": "@scope/package",
"version": "1.0.0",
"size": 167,
"unpackedSize": 53,
"shasum": "ad1ef62b3d84c83033c896f0aee03b701c75b1e8",
"integrity": "sha512-NNdAGvap0FZo6aufrgCcRTxV3u9JxwmcHS1wmm9zaNfoD4nQnoGzO4JyRkvozpMadxv1pnhhfoW6ok5Rejsmag==",
"filename": "@scope/package-1.0.0.tgz",
"files": [
{
"path": "index.js",
"size": 0,
"mode": 420
},
{
"path": "package.json",
"size": 53,
"mode": 420
}
],
"entryCount": 2,
"bundled": []
}
]"><pre class="notranslate">[
{
<span class="pl-ent">"id"</span>: <span class="pl-s"><span class="pl-pds">"</span>@scope/[email protected]<span class="pl-pds">"</span></span>,
<span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>@scope/package<span class="pl-pds">"</span></span>,
<span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>1.0.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"size"</span>: <span class="pl-c1">167</span>,
<span class="pl-ent">"unpackedSize"</span>: <span class="pl-c1">53</span>,
<span class="pl-ent">"shasum"</span>: <span class="pl-s"><span class="pl-pds">"</span>ad1ef62b3d84c83033c896f0aee03b701c75b1e8<span class="pl-pds">"</span></span>,
<span class="pl-ent">"integrity"</span>: <span class="pl-s"><span class="pl-pds">"</span>sha512-NNdAGvap0FZo6aufrgCcRTxV3u9JxwmcHS1wmm9zaNfoD4nQnoGzO4JyRkvozpMadxv1pnhhfoW6ok5Rejsmag==<span class="pl-pds">"</span></span>,
<span class="pl-ent">"filename"</span>: <span class="pl-s"><span class="pl-pds">"</span>@scope/package-1.0.0.tgz<span class="pl-pds">"</span></span>,
<span class="pl-ent">"files"</span>: [
{
<span class="pl-ent">"path"</span>: <span class="pl-s"><span class="pl-pds">"</span>index.js<span class="pl-pds">"</span></span>,
<span class="pl-ent">"size"</span>: <span class="pl-c1">0</span>,
<span class="pl-ent">"mode"</span>: <span class="pl-c1">420</span>
},
{
<span class="pl-ent">"path"</span>: <span class="pl-s"><span class="pl-pds">"</span>package.json<span class="pl-pds">"</span></span>,
<span class="pl-ent">"size"</span>: <span class="pl-c1">53</span>,
<span class="pl-ent">"mode"</span>: <span class="pl-c1">420</span>
}
],
<span class="pl-ent">"entryCount"</span>: <span class="pl-c1">2</span>,
<span class="pl-ent">"bundled"</span>: []
}
]</pre></div>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>npm: 8.18.0</li>
<li>Node.js: v16.15.1</li>
<li>OS Name: macOS</li>
<li>npm config:</li>
</ul>
<div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="; "user" config from /Users/__redacted__/.npmrc
//registry.npmjs.org/:_authToken = (protected)
; node bin location = /Users/__redacted__/.volta/tools/image/node/16.15.1/bin/node
; node version = v16.15.1
; npm local prefix = /Users/__redacted__/Code/cs-apps/packages/app/dist
; npm version = 8.18.0
; cwd = /Users/__redacted__/Code/cs-apps/packages/app/dist
; HOME = /Users/__redacted__"><pre class="notranslate"><span class="pl-c"><span class="pl-c">;</span> "user" config from /Users/__redacted__/.npmrc</span>
//registry.npmjs.org/:<span class="pl-k">_authToken</span> = (protected)
<span class="pl-c"><span class="pl-c">;</span> node bin location = /Users/__redacted__/.volta/tools/image/node/16.15.1/bin/node</span>
<span class="pl-c"><span class="pl-c">;</span> node version = v16.15.1</span>
<span class="pl-c"><span class="pl-c">;</span> npm local prefix = /Users/__redacted__/Code/cs-apps/packages/app/dist</span>
<span class="pl-c"><span class="pl-c">;</span> npm version = 8.18.0</span>
<span class="pl-c"><span class="pl-c">;</span> cwd = /Users/__redacted__/Code/cs-apps/packages/app/dist</span>
<span class="pl-c"><span class="pl-c">;</span> HOME = /Users/__redacted__</span></pre></div> | 0 |
<ul dir="auto">
<li>[x ] 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">importing parts of material-ui should be available from the top level folder</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">The following list produces a typescript error ".../material-ui/index has no exported member "</p>
<p dir="auto">InputAdornment (I believe this has already been resolved) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="270630019" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/8959" data-hovercard-type="pull_request" data-hovercard-url="/mui/material-ui/pull/8959/hovercard" href="https://github.com/mui/material-ui/pull/8959">#8959</a><br>
Theme<br>
StyleRulesCallback<br>
TableFooter<br>
TablePagination## Your Environment</p>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td><a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/next/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/next">@next</a></td>
</tr>
<tr>
<td>React</td>
<td>16.2.0</td>
</tr>
</tbody>
</table> | <p dir="auto">For each color palette (<code class="notranslate">primary</code>, <code class="notranslate">accent</code>, <code class="notranslate">error</code>, etc.), we have to either use default material design hues or provide our own. This requires a set of 15 hues. It is not clear to me (and so far haven't been able to find it here or in the docs, or on material.io) which hue is used in which context.</p>
<p dir="auto">For example, why is A400 used <a href="https://github.com/callemall/material-ui/blob/353f64d896eca71399c1e97a5c02d3ed5d78050c/src/Input/Input.js#L89">here</a> ?</p>
<p dir="auto">It would be helpful to understand why and where hues are used, to make customization easier.</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>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>next</td>
</tr>
</tbody>
</table> | 0 |
<ol dir="auto">
<li>Open some directories in tree view</li>
<li>Creating a new file or folder on the root path, or delete a root folder</li>
<li>All open directories collapse</li>
</ol>
<p dir="auto">Expected: everything stays open</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/1fd9b9faf4966bb1310e2989bdb2172baa782a1506657f76e52385a13db57fde/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f36343035302f3833313235362f62663731633463302d663163332d313165322d383632332d3232306565643864366365332e676966"><img src="https://camo.githubusercontent.com/1fd9b9faf4966bb1310e2989bdb2172baa782a1506657f76e52385a13db57fde/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f36343035302f3833313235362f62663731633463302d663163332d313165322d383632332d3232306565643864366365332e676966" alt="treeview" data-animated-image="" data-canonical-src="https://f.cloud.github.com/assets/64050/831256/bf71c4c0-f1c3-11e2-8623-220eed8d6ce3.gif" style="max-width: 100%;"></a></p> | <p dir="auto">If we plan to deprecate the space pen <code class="notranslate">View</code> class, we need a story for what folks can move to. Some kind of system that interoperates with custom elements. Something that UI heavy packages like settings view and fnr can use.</p>
<ul dir="auto">
<li>Maybe it looks like space pen (space-pencil)?</li>
<li>Maybe it's react?</li>
</ul>
<p dir="auto">We need to do more thinking.</p> | 0 |
<p dir="auto">When I use ColumnTransformer to preprocess different columns (include numeric, category, text) with pipeline, I cannot get the feature names of the final transformed data, which is hard for debugging.</p>
<p dir="auto">Here is the code:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="titanic_url = ('https://raw.githubusercontent.com/amueller/'
'scipy-2017-sklearn/091d371/notebooks/datasets/titanic3.csv')
data = pd.read_csv(titanic_url)
target = data.pop('survived')
numeric_columns = ['age','sibsp','parch']
category_columns = ['pclass','sex','embarked']
text_columns = ['name','home.dest']
numeric_transformer = Pipeline(steps=[
('impute',SimpleImputer(strategy='median')),
('scaler',StandardScaler()
)
])
category_transformer = Pipeline(steps=[
('impute',SimpleImputer(strategy='constant',fill_value='missing')),
('ohe',OneHotEncoder(handle_unknown='ignore'))
])
text_transformer = Pipeline(steps=[
('cntvec',CountVectorizer())
])
preprocesser = ColumnTransformer(transformers=[
('numeric',numeric_transformer,numeric_columns),
('category',category_transformer,category_columns),
('text',text_transformer,text_columns[0])
])
preprocesser.fit_transform(data)"><pre class="notranslate"><span class="pl-s1">titanic_url</span> <span class="pl-c1">=</span> (<span class="pl-s">'https://raw.githubusercontent.com/amueller/'</span>
<span class="pl-s">'scipy-2017-sklearn/091d371/notebooks/datasets/titanic3.csv'</span>)
<span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-s1">titanic_url</span>)
<span class="pl-s1">target</span> <span class="pl-c1">=</span> <span class="pl-s1">data</span>.<span class="pl-en">pop</span>(<span class="pl-s">'survived'</span>)
<span class="pl-s1">numeric_columns</span> <span class="pl-c1">=</span> [<span class="pl-s">'age'</span>,<span class="pl-s">'sibsp'</span>,<span class="pl-s">'parch'</span>]
<span class="pl-s1">category_columns</span> <span class="pl-c1">=</span> [<span class="pl-s">'pclass'</span>,<span class="pl-s">'sex'</span>,<span class="pl-s">'embarked'</span>]
<span class="pl-s1">text_columns</span> <span class="pl-c1">=</span> [<span class="pl-s">'name'</span>,<span class="pl-s">'home.dest'</span>]
<span class="pl-s1">numeric_transformer</span> <span class="pl-c1">=</span> <span class="pl-v">Pipeline</span>(<span class="pl-s1">steps</span><span class="pl-c1">=</span>[
(<span class="pl-s">'impute'</span>,<span class="pl-v">SimpleImputer</span>(<span class="pl-s1">strategy</span><span class="pl-c1">=</span><span class="pl-s">'median'</span>)),
(<span class="pl-s">'scaler'</span>,<span class="pl-v">StandardScaler</span>()
)
])
<span class="pl-s1">category_transformer</span> <span class="pl-c1">=</span> <span class="pl-v">Pipeline</span>(<span class="pl-s1">steps</span><span class="pl-c1">=</span>[
(<span class="pl-s">'impute'</span>,<span class="pl-v">SimpleImputer</span>(<span class="pl-s1">strategy</span><span class="pl-c1">=</span><span class="pl-s">'constant'</span>,<span class="pl-s1">fill_value</span><span class="pl-c1">=</span><span class="pl-s">'missing'</span>)),
(<span class="pl-s">'ohe'</span>,<span class="pl-v">OneHotEncoder</span>(<span class="pl-s1">handle_unknown</span><span class="pl-c1">=</span><span class="pl-s">'ignore'</span>))
])
<span class="pl-s1">text_transformer</span> <span class="pl-c1">=</span> <span class="pl-v">Pipeline</span>(<span class="pl-s1">steps</span><span class="pl-c1">=</span>[
(<span class="pl-s">'cntvec'</span>,<span class="pl-v">CountVectorizer</span>())
])
<span class="pl-s1">preprocesser</span> <span class="pl-c1">=</span> <span class="pl-v">ColumnTransformer</span>(<span class="pl-s1">transformers</span><span class="pl-c1">=</span>[
(<span class="pl-s">'numeric'</span>,<span class="pl-s1">numeric_transformer</span>,<span class="pl-s1">numeric_columns</span>),
(<span class="pl-s">'category'</span>,<span class="pl-s1">category_transformer</span>,<span class="pl-s1">category_columns</span>),
(<span class="pl-s">'text'</span>,<span class="pl-s1">text_transformer</span>,<span class="pl-s1">text_columns</span>[<span class="pl-c1">0</span>])
])
<span class="pl-s1">preprocesser</span>.<span class="pl-en">fit_transform</span>(<span class="pl-s1">data</span>)</pre></div>
<ol dir="auto">
<li><code class="notranslate">preprocesser.get_feature_names()</code> will get error:<br>
<code class="notranslate">AttributeError: Transformer numeric (type Pipeline) does not provide get_feature_names.</code></li>
<li>In <code class="notranslate">ColumnTransformer</code>,<code class="notranslate">text_transformer</code> can only process a string (eg 'Sex'), but not a list of string as <code class="notranslate">text_columns</code></li>
</ol> | <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="134096165" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/6372" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/6372/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/6372">#6372</a> adds <code class="notranslate">get_feature_names</code> to <code class="notranslate">PolynomialFeatures</code>. It accepts a list of names of <code class="notranslate">input_features</code> (or substitutes with defaults) and constructs feature name strings that are human-readable and informative. Similar support should be available for other transformers, including feature selectors, feature agglomeration, <code class="notranslate">FunctionTransformer</code>, and perhaps even PCA (giving the top contributors to each component). <code class="notranslate">FeatureUnion</code> should be modified to handle the case where an argument is supplied. A proposal for support in <code class="notranslate">Pipeline</code> is given in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135590071" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/6424" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/6424/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/6424">#6424</a>.</p>
<p dir="auto">Modelled on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="134096165" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/6372" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/6372/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/6372">#6372</a>, each enhancement can be contributed as a separate PR. Note that default names for features are <code class="notranslate">[x0, x1, ...]</code></p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">PolynomialFeatures</code> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/amueller/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/amueller">@amueller</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="134096165" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/6372" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/6372/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/6372">#6372</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> feature selection and randomized L1 <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/yenchenlin1994/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/yenchenlin1994">@yenchenlin1994</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> feature agglomeration <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/yenchenlin1994/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/yenchenlin1994">@yenchenlin1994</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">FunctionTransformer</code> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nelson-liu/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nelson-liu">@nelson-liu</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135753025" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/6431" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/6431/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/6431">#6431</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> scalers, normalizers and imputers: should be trivial like <code class="notranslate">FunctionTransformer</code> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135753025" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/6431" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/6431/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/6431">#6431</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">Binarizer</code> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135753025" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/6431" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/6431/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/6431">#6431</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">OneHotEncoder</code> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135957352" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/6441" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/6441/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/6441">#6441</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">FeatureUnion</code> <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/yenchenlin1994/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/yenchenlin1994">@yenchenlin1994</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> PCA?</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">SparseRandomProjection</code>?</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">GaussianRandomProjection</code>??</li>
<li>other transformers?</li>
</ul> | 1 |
<h3 dir="auto">System Information</h3>
<p dir="auto">OpenCV version: 4.7 release<br>
OpenCV Python version: 4.7.0.68<br>
OS: macOS 13.0.1<br>
Python version: 3.9.6<br>
Compiler: Apple clang version 14.0.0 (clang-1400.0.29.202)</p>
<h3 dir="auto">Detailed description</h3>
<p dir="auto">I made two attention models of ONNX format. They have the same structure and the only difference is input shape:</p>
<ul dir="auto">
<li>
<p dir="auto">One is [1, 197, 768], the original shape from a vision transformer; Click to download <a href="https://github.com/opencv/opencv/files/10719607/multi_head_attention.onnx.zip">multi_head_attention.onnx.zip</a>.</p>
</li>
<li>
<p dir="auto">The other one is [1, 5, 12], a shrinked shape for debugging and stuff. Click to download <a href="https://github.com/opencv/opencv/files/10719613/multi_head_attention.onnx.zip">multi_head_attention.onnx.zip</a>.</p>
</li>
</ul>
<p dir="auto">I found if using Python interfaces with the correct shape set, the one of input shape [1, 197, 768] can run successfully, but the other one of input shape [1, 5, 12] fails:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ERROR:[email protected]] global net_impl.cpp:1164 getLayerShapesRecursively OPENCV/DNN: [Permute]:(onnx_node_output_0!Transpose.0.out): getMemoryShapes() throws exception. inputs=1 outputs=0/1 blobs=0
[ERROR:[email protected]] global net_impl.cpp:1167 getLayerShapesRecursively input[0] = [ 1 5 ]
[ERROR:[email protected]] global net_impl.cpp:1177 getLayerShapesRecursively Exception message: OpenCV(4.7.0) /Users/opencv-cn/GHA-OCV-1/_work/opencv-python/opencv-python/opencv/modules/dnn/src/layers/permute_layer.cpp:163: error: (-215:Assertion failed) (int)_numAxes == inputs[0].size() in function 'getMemoryShapes'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cv2.error: OpenCV(4.7.0) /Users/opencv-cn/GHA-OCV-1/_work/opencv-python/opencv-python/opencv/modules/dnn/src/layers/permute_layer.cpp:163: error: (-215:Assertion failed) (int)_numAxes == inputs[0].size() in function 'getMemoryShapes'"><pre class="notranslate"><code class="notranslate">[ERROR:[email protected]] global net_impl.cpp:1164 getLayerShapesRecursively OPENCV/DNN: [Permute]:(onnx_node_output_0!Transpose.0.out): getMemoryShapes() throws exception. inputs=1 outputs=0/1 blobs=0
[ERROR:[email protected]] global net_impl.cpp:1167 getLayerShapesRecursively input[0] = [ 1 5 ]
[ERROR:[email protected]] global net_impl.cpp:1177 getLayerShapesRecursively Exception message: OpenCV(4.7.0) /Users/opencv-cn/GHA-OCV-1/_work/opencv-python/opencv-python/opencv/modules/dnn/src/layers/permute_layer.cpp:163: error: (-215:Assertion failed) (int)_numAxes == inputs[0].size() in function 'getMemoryShapes'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cv2.error: OpenCV(4.7.0) /Users/opencv-cn/GHA-OCV-1/_work/opencv-python/opencv-python/opencv/modules/dnn/src/layers/permute_layer.cpp:163: error: (-215:Assertion failed) (int)_numAxes == inputs[0].size() in function 'getMemoryShapes'
</code></pre></div>
<p dir="auto">But if I try to debug in C++, for example adding test cases in <code class="notranslate">test_onnx_importer.cpp</code>, they all pass. <strong>So I guess there is something wrong with the python interface</strong>. Reproducers are attached below.</p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Python:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
import cv2 as cv
# This passes!
net = cv.dnn.readNet("original_scale/models/multi_head_attention.onnx")
x = np.random.rand(1, 197, 768).astype(np.float32)
net.setInput(x)
net.forward()
# This fails!
net = cv.dnn.readNet("scale_1_5_12/models/multi_head_attention.onnx")
x = np.random.rand(1, 5, 12).astype(np.float32)
net.setInput(x)
net.forward()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">import</span> <span class="pl-s1">cv2</span> <span class="pl-k">as</span> <span class="pl-s1">cv</span>
<span class="pl-c"># This passes!</span>
<span class="pl-s1">net</span> <span class="pl-c1">=</span> <span class="pl-s1">cv</span>.<span class="pl-s1">dnn</span>.<span class="pl-en">readNet</span>(<span class="pl-s">"original_scale/models/multi_head_attention.onnx"</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">rand</span>(<span class="pl-c1">1</span>, <span class="pl-c1">197</span>, <span class="pl-c1">768</span>).<span class="pl-en">astype</span>(<span class="pl-s1">np</span>.<span class="pl-s1">float32</span>)
<span class="pl-s1">net</span>.<span class="pl-en">setInput</span>(<span class="pl-s1">x</span>)
<span class="pl-s1">net</span>.<span class="pl-en">forward</span>()
<span class="pl-c"># This fails!</span>
<span class="pl-s1">net</span> <span class="pl-c1">=</span> <span class="pl-s1">cv</span>.<span class="pl-s1">dnn</span>.<span class="pl-en">readNet</span>(<span class="pl-s">"scale_1_5_12/models/multi_head_attention.onnx"</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">rand</span>(<span class="pl-c1">1</span>, <span class="pl-c1">5</span>, <span class="pl-c1">12</span>).<span class="pl-en">astype</span>(<span class="pl-s1">np</span>.<span class="pl-s1">float32</span>)
<span class="pl-s1">net</span>.<span class="pl-en">setInput</span>(<span class="pl-s1">x</span>)
<span class="pl-s1">net</span>.<span class="pl-en">forward</span>()</pre></div>
<p dir="auto">C++: Add the following test cases in <code class="notranslate">test_onnx_importer.cpp</code></p>
<div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="TEST_P(Test_ONNX_layers, MHA_ORIG)
{
Net net = readNet(findDataFile("original_scale/models/multi_head_attention.onnx", true));
std::vector<int> blob_shape{1, 197, 768};
Mat blob(blob_shape, CV_32FC1);
randn(blob, 1.f, 0.f);
net.setInput(blob);
net.forward();
}
TEST_P(Test_ONNX_layers, MHA_SMALL_SCALE)
{
Net net = readNet(findDataFile("scale_1_5_12/models/multi_head_attention.onnx", true));
std::vector<int> blob_shape{1, 5, 12};
Mat blob(blob_shape, CV_32FC1);
randn(blob, 1.f, 0.f);
net.setInput(blob);
net.forward();
}"><pre class="notranslate"><span class="pl-en">TEST_P</span>(Test_ONNX_layers, MHA_ORIG)
{
Net net = <span class="pl-c1">readNet</span>(<span class="pl-c1">findDataFile</span>(<span class="pl-s"><span class="pl-pds">"</span>original_scale/models/multi_head_attention.onnx<span class="pl-pds">"</span></span>, <span class="pl-c1">true</span>));
std::vector<<span class="pl-k">int</span>> blob_shape{<span class="pl-c1">1</span>, <span class="pl-c1">197</span>, <span class="pl-c1">768</span>};
Mat <span class="pl-smi">blob</span>(blob_shape, CV_32FC1);
<span class="pl-c1">randn</span>(blob, <span class="pl-c1">1</span>.<span class="pl-smi">f</span>, <span class="pl-c1">0</span>.<span class="pl-smi">f</span>);
net.<span class="pl-c1">setInput</span>(blob);
net.<span class="pl-c1">forward</span>();
}
<span class="pl-en">TEST_P</span>(Test_ONNX_layers, MHA_SMALL_SCALE)
{
Net net = <span class="pl-c1">readNet</span>(<span class="pl-c1">findDataFile</span>(<span class="pl-s"><span class="pl-pds">"</span>scale_1_5_12/models/multi_head_attention.onnx<span class="pl-pds">"</span></span>, <span class="pl-c1">true</span>));
std::vector<<span class="pl-k">int</span>> blob_shape{<span class="pl-c1">1</span>, <span class="pl-c1">5</span>, <span class="pl-c1">12</span>};
Mat <span class="pl-smi">blob</span>(blob_shape, CV_32FC1);
<span class="pl-c1">randn</span>(blob, <span class="pl-c1">1</span>.<span class="pl-smi">f</span>, <span class="pl-c1">0</span>.<span class="pl-smi">f</span>);
net.<span class="pl-c1">setInput</span>(blob);
net.<span class="pl-c1">forward</span>();
}</pre></div>
<h3 dir="auto">Issue submission checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I report the issue, it's not a question</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I updated to the latest OpenCV version and the issue is still there</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> There is reproducer code and related data files (videos, images, onnx, etc)</li>
</ul> | <p dir="auto">Currently OpenCV Python bindings "automatically" converts 3D NumPy arrays into 2D <code class="notranslate">cv::Mat</code> with wrapping last dimension onto number of channels (to simulate <code class="notranslate">Image</code> with colors):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="a = np.zeros((2,3,4), dtype='f')
print(a.shape)
info = cv.utils.dumpInputArray(a)
print(info)"><pre class="notranslate"><code class="notranslate">a = np.zeros((2,3,4), dtype='f')
print(a.shape)
info = cv.utils.dumpInputArray(a)
print(info)
</code></pre></div>
<p dir="auto">output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(2, 3, 4)
InputArray: empty()=false kind=0x00010000 flags=0x01010000 total(-1)=6 dims(-1)=2 size(-1)=3x2 type(-1)=CV_32FC4"><pre class="notranslate"><code class="notranslate">(2, 3, 4)
InputArray: empty()=false kind=0x00010000 flags=0x01010000 total(-1)=6 dims(-1)=2 size(-1)=3x2 type(-1)=CV_32FC4
</code></pre></div>
<hr>
<p dir="auto">Related code is <a href="https://github.com/opencv/opencv/blame/dd1494eebf205b0262c362bbdc57cef212464d1d/modules/python/src2/cv2.cpp#L507">here</a> (previous variant of similar code is <a href="https://github.com/opencv/opencv/blame/a717b7cbedd50b129428d72b2a15ab0168a4c46c/modules/python/src2/cv2.cpp#L262">here</a> from 2010). By initial design there is support for 2D matrices and 1D arrays only.</p>
<p dir="auto">So currently there is no way to pass 3D <code class="notranslate">cv::Mat</code> (1-channel) from Python to C++ code.</p>
<p dir="auto">Just changing of mentioned code is not an option due to breaking of many user applications.<br>
Compatibility should be preserved.</p>
<p dir="auto"><strong>Note</strong>: There is such issue in Java because Java's <code class="notranslate">Mat</code> type is used.<br>
Python's bindings relies on <code class="notranslate">np.array</code> type which leads to mentioned reinterpretation issues.</p>
<hr>
<p dir="auto">relates <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="616851584" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/17272" data-hovercard-type="issue" data-hovercard-url="/opencv/opencv/issues/17272/hovercard" href="https://github.com/opencv/opencv/issues/17272">#17272</a><br>
relates <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="756166051" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/19001" data-hovercard-type="issue" data-hovercard-url="/opencv/opencv/issues/19001/hovercard" href="https://github.com/opencv/opencv/issues/19001">#19001</a><br>
probably relates <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="708334893" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/18413" data-hovercard-type="issue" data-hovercard-url="/opencv/opencv/issues/18413/hovercard" href="https://github.com/opencv/opencv/issues/18413">#18413</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="629320425" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/17456" data-hovercard-type="issue" data-hovercard-url="/opencv/opencv/issues/17456/hovercard" href="https://github.com/opencv/opencv/issues/17456">#17456</a></p> | 1 |
<p dir="auto">can expose 'cv::partition' function to Java?</p>
<p dir="auto">I download OpenCV 4.1(Win pack) and install it on my Windows-10 64 Bit.<br>
I want to use it in my Java program but 'partition' function is not in java wrapper.</p> | <p dir="auto">can expose 'cv::partition' function to python?</p>
<ul dir="auto">
<li>OpenCV => 3.4.1(python-opencv)</li>
<li>Operating System / Platform => Windows 64 Bit</li>
<li>Compiler => Visual Studio 2015</li>
</ul> | 1 |
<h3 dir="auto">Version</h3>
<p dir="auto">2.6.8</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://codesandbox.io/s/54v49n1nzn" rel="nofollow">https://codesandbox.io/s/54v49n1nzn</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">The repro shows the issue directly.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<Child
v-bind="{
appleColor: 'objective red',
bird: 'objective sparrow'
}"
:apple-color="`proper red`"
:bird="`proper sparrow`"
/>"><pre class="notranslate"><code class="notranslate"><Child
v-bind="{
appleColor: 'objective red',
bird: 'objective sparrow'
}"
:apple-color="`proper red`"
:bird="`proper sparrow`"
/>
</code></pre></div>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">I wanted to know what takes precedence when something is bound using <code class="notranslate">v-bind={}</code> vs set explicitly as a prop. I would expect this to always be one or the other, or to be resolved in order of declaration as when merging objects in JS ({...boundProps, specificProp })</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">The precedence is determined based on whether a prop has multiple words. duplicate keys are set by the object when they are declared in dash-case, and set by the prop/attribute if they are camelCase or a single word.</p>
<hr>
<p dir="auto">This can be made 'consistent' by declaring multiword props using camelcase, but that's against the recommendations in the styleguide which suggest using dash case for multiword props inside templates: <a href="https://vuejs.org/v2/style-guide/#Prop-name-casing-strongly-recommended" rel="nofollow">https://vuejs.org/v2/style-guide/#Prop-name-casing-strongly-recommended</a>.</p>
<p dir="auto">I ran into this when an undefined value bound to a parent was overriding the same value explicitly set in the child, but it wasn't happening consistently depending on what the names of the props were.</p> | <h3 dir="auto">Version</h3>
<p dir="auto">2.6.11</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://jsfiddle.net/pvzkc51t/4/" rel="nofollow">https://jsfiddle.net/pvzkc51t/4/</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>open the jsfiddle.</li>
<li>wait page loaded.</li>
<li>input some charactor in element.</li>
<li>see the console.</li>
</ol>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">nothing in console.</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">"Why should I update" outputs in console.</p>
<hr>
<p dir="auto">$attrs and $listeners appeared to reduce workload.<br>
But they occur with form element will cause component update catastrophically.<br>
Event though nothing change in $attrs.</p> | 0 |
<p dir="auto">As you can see in the image bellow, If we go on with the example of the Hoizontal Form and don't have the checkbox, then the button will render without margins and ugly.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/dd2db93900f92758035eb5f15f91cb61790d8d5fe4e1f063b0ea537c0368c7c1/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3837383636372f3930333937382f64343837303466322d666262382d313165322d383262342d3633373363656165366335662e6a7067"><img src="https://camo.githubusercontent.com/dd2db93900f92758035eb5f15f91cb61790d8d5fe4e1f063b0ea537c0368c7c1/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3837383636372f3930333937382f64343837303466322d666262382d313165322d383262342d3633373363656165366335662e6a7067" alt="bt_bug" data-canonical-src="https://f.cloud.github.com/assets/878667/903978/d48704f2-fbb8-11e2-82b4-6373ceae6c5f.jpg" style="max-width: 100%;"></a></p>
<p dir="auto">But if we have the checkbox, it will render good.</p>
<p dir="auto">Why don't have something like button class for divs? (Same as what we have in the example for checkbox):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<div class="checkbox">
<label>
<input type="checkbox"> Remember me
</label>
</div>
<button type="submit" class="btn btn-default">Sign in</button>"><pre class="notranslate"><code class="notranslate"><div class="checkbox">
<label>
<input type="checkbox"> Remember me
</label>
</div>
<button type="submit" class="btn btn-default">Sign in</button>
</code></pre></div> | <p dir="auto">In the horizontal form example (<a href="http://getbootstrap.com/css/#forms-horizontal" rel="nofollow">http://getbootstrap.com/css/#forms-horizontal</a>) everything looks great because the checkbox div has 10 pixels of top and bottom margin.</p>
<p dir="auto">However, if you delete the checkbox div then the button is right up against the text field. Unless you have a checkbox or radio button at the end of your form it will not look very nice without adding custom styling.</p> | 1 |
<p dir="auto">Posted this issue to the HuggingFace forums without a response.</p>
<p dir="auto">Having a weird issue with DialoGPT Large model deployment. From PyTorch 1.8.0 and Transformers 4.3.3 using model.save_pretrained and tokenizer.save_pretrained, the exported pytorch_model.bin is almost twice the size of the model card repo and results in OOM on a reasonably equipped machine that when using the standard transformers download process it works fine (I am building a CI pipeline to containerize the model hence the pre-populated model requirement):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Model card:
pytorch_model.bin 1.6GB
model.save_pretrained and tokenizer.save_pretrained:
-rw-r--r-- 1 jrandel jrandel 800 Mar 6 16:51 config.json
-rw-r--r-- 1 jrandel jrandel 446K Mar 6 16:51 merges.txt
-rw-r--r-- 1 jrandel jrandel 3.0G Mar 6 16:51 pytorch_model.bin
-rw-r--r-- 1 jrandel jrandel 357 Mar 6 16:51 special_tokens_map.json
-rw-r--r-- 1 jrandel jrandel 580 Mar 6 16:51 tokenizer_config.json
-rw-r--r-- 1 jrandel jrandel 780K Mar 6 16:51 vocab.json"><pre class="notranslate"><code class="notranslate">Model card:
pytorch_model.bin 1.6GB
model.save_pretrained and tokenizer.save_pretrained:
-rw-r--r-- 1 jrandel jrandel 800 Mar 6 16:51 config.json
-rw-r--r-- 1 jrandel jrandel 446K Mar 6 16:51 merges.txt
-rw-r--r-- 1 jrandel jrandel 3.0G Mar 6 16:51 pytorch_model.bin
-rw-r--r-- 1 jrandel jrandel 357 Mar 6 16:51 special_tokens_map.json
-rw-r--r-- 1 jrandel jrandel 580 Mar 6 16:51 tokenizer_config.json
-rw-r--r-- 1 jrandel jrandel 780K Mar 6 16:51 vocab.json
</code></pre></div>
<p dir="auto">When I download the model card files directly however, I’m getting the following errors:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="curl -L https://huggingface.co/microsoft/DialoGPT-large/resolve/main/config.json -o ./model/config.json
curl -L https://huggingface.co/microsoft/DialoGPT-large/resolve/main/pytorch_model.bin -o ./model/pytorch_model.bin
curl https://huggingface.co/microsoft/DialoGPT-large/resolve/main/tokenizer_config.json -o ./model/tokenizer_config.json
curl https://huggingface.co/microsoft/DialoGPT-large/resolve/main/config.json -o ./model/config.json
curl https://huggingface.co/microsoft/DialoGPT-large/resolve/main/merges.txt -o ./model/merges.txt
curl https://huggingface.co/microsoft/DialoGPT-large/resolve/main/special_tokens_map.json -o ./model/special_tokens_map.json
curl https://huggingface.co/microsoft/DialoGPT-large/resolve/main/vocab.json -o ./model/vocab.json
<snip>
tokenizer = AutoTokenizer.from_pretrained("model/")
File "/var/lang/lib/python3.8/site-packages/transformers/models/auto/tokenization_auto.py", line 395, in from_pretrained
return tokenizer_class_fast.from_pretrained(pretrained_model_name_or_path, *inputs, **kwargs)
File "/var/lang/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 1788, in from_pretrained
return cls._from_pretrained(
File "/var/lang/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 1801, in _from_pretrained
slow_tokenizer = (cls.slow_tokenizer_class)._from_pretrained(
File "/var/lang/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 1876, in _from_pretrained
special_tokens_map = json.load(special_tokens_map_handle)
File "/var/lang/lib/python3.8/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/var/lang/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/var/lang/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/var/lang/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/runtime/bootstrap.py", line 481, in <module>
main()
File "/var/runtime/bootstrap.py", line 458, in main
lambda_runtime_client.post_init_error(to_json(error_result))
File "/var/runtime/lambda_runtime_client.py", line 42, in post_init_error
response = runtime_connection.getresponse()
File "/var/lang/lib/python3.8/http/client.py", line 1347, in getresponse
response.begin()
File "/var/lang/lib/python3.8/http/client.py", line 307, in begin
version, status, reason = self._read_status()
File "/var/lang/lib/python3.8/http/client.py", line 276, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
time="2021-03-08T09:01:39.33" level=warning msg="First fatal error stored in appctx: Runtime.ExitError"
time="2021-03-08T09:01:39.33" level=warning msg="Process 14(bootstrap) exited: Runtime exited with error: exit status 1"
time="2021-03-08T09:01:39.33" level=error msg="Init failed" InvokeID= error="Runtime exited with error: exit status 1"
time="2021-03-08T09:01:39.33" level=warning msg="Failed to send default error response: ErrInvalidInvokeID"
time="2021-03-08T09:01:39.33" level=error msg="INIT DONE failed: Runtime.ExitError"
time="2021-03-08T09:01:39.33" level=warning msg="Reset initiated: ReserveFail""><pre class="notranslate"><code class="notranslate">curl -L https://huggingface.co/microsoft/DialoGPT-large/resolve/main/config.json -o ./model/config.json
curl -L https://huggingface.co/microsoft/DialoGPT-large/resolve/main/pytorch_model.bin -o ./model/pytorch_model.bin
curl https://huggingface.co/microsoft/DialoGPT-large/resolve/main/tokenizer_config.json -o ./model/tokenizer_config.json
curl https://huggingface.co/microsoft/DialoGPT-large/resolve/main/config.json -o ./model/config.json
curl https://huggingface.co/microsoft/DialoGPT-large/resolve/main/merges.txt -o ./model/merges.txt
curl https://huggingface.co/microsoft/DialoGPT-large/resolve/main/special_tokens_map.json -o ./model/special_tokens_map.json
curl https://huggingface.co/microsoft/DialoGPT-large/resolve/main/vocab.json -o ./model/vocab.json
<snip>
tokenizer = AutoTokenizer.from_pretrained("model/")
File "/var/lang/lib/python3.8/site-packages/transformers/models/auto/tokenization_auto.py", line 395, in from_pretrained
return tokenizer_class_fast.from_pretrained(pretrained_model_name_or_path, *inputs, **kwargs)
File "/var/lang/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 1788, in from_pretrained
return cls._from_pretrained(
File "/var/lang/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 1801, in _from_pretrained
slow_tokenizer = (cls.slow_tokenizer_class)._from_pretrained(
File "/var/lang/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 1876, in _from_pretrained
special_tokens_map = json.load(special_tokens_map_handle)
File "/var/lang/lib/python3.8/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/var/lang/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/var/lang/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/var/lang/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/runtime/bootstrap.py", line 481, in <module>
main()
File "/var/runtime/bootstrap.py", line 458, in main
lambda_runtime_client.post_init_error(to_json(error_result))
File "/var/runtime/lambda_runtime_client.py", line 42, in post_init_error
response = runtime_connection.getresponse()
File "/var/lang/lib/python3.8/http/client.py", line 1347, in getresponse
response.begin()
File "/var/lang/lib/python3.8/http/client.py", line 307, in begin
version, status, reason = self._read_status()
File "/var/lang/lib/python3.8/http/client.py", line 276, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
time="2021-03-08T09:01:39.33" level=warning msg="First fatal error stored in appctx: Runtime.ExitError"
time="2021-03-08T09:01:39.33" level=warning msg="Process 14(bootstrap) exited: Runtime exited with error: exit status 1"
time="2021-03-08T09:01:39.33" level=error msg="Init failed" InvokeID= error="Runtime exited with error: exit status 1"
time="2021-03-08T09:01:39.33" level=warning msg="Failed to send default error response: ErrInvalidInvokeID"
time="2021-03-08T09:01:39.33" level=error msg="INIT DONE failed: Runtime.ExitError"
time="2021-03-08T09:01:39.33" level=warning msg="Reset initiated: ReserveFail"
</code></pre></div>
<p dir="auto">So what would be causing the large file variance between save_pretrained models and the model card repo? And any ideas why the directly downloaded model card files aren’t working in this example?</p>
<p dir="auto">Thanks in advance</p> | <p dir="auto">Having a weird issue with DialoGPT Large model deployment. From PyTorch 1.8.0 and Transformers 4.3.3 using model.save_pretrained and tokenizer.save_pretrained, the exported pytorch_model.bin is almost twice the size of the model card repo and results in OOM on a reasonably equipped machine that when using the standard transformers download process it works fine (I am building a CI pipeline to containerize the model hence the pre-populated model requirement):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Model card:
pytorch_model.bin 1.6GB
model.save_pretrained and tokenizer.save_pretrained:
-rw-r--r-- 1 jrandel jrandel 800 Mar 6 16:51 config.json
-rw-r--r-- 1 jrandel jrandel 446K Mar 6 16:51 merges.txt
-rw-r--r-- 1 jrandel jrandel 3.0G Mar 6 16:51 pytorch_model.bin
-rw-r--r-- 1 jrandel jrandel 357 Mar 6 16:51 special_tokens_map.json
-rw-r--r-- 1 jrandel jrandel 580 Mar 6 16:51 tokenizer_config.json
-rw-r--r-- 1 jrandel jrandel 780K Mar 6 16:51 vocab.json"><pre class="notranslate"><code class="notranslate">Model card:
pytorch_model.bin 1.6GB
model.save_pretrained and tokenizer.save_pretrained:
-rw-r--r-- 1 jrandel jrandel 800 Mar 6 16:51 config.json
-rw-r--r-- 1 jrandel jrandel 446K Mar 6 16:51 merges.txt
-rw-r--r-- 1 jrandel jrandel 3.0G Mar 6 16:51 pytorch_model.bin
-rw-r--r-- 1 jrandel jrandel 357 Mar 6 16:51 special_tokens_map.json
-rw-r--r-- 1 jrandel jrandel 580 Mar 6 16:51 tokenizer_config.json
-rw-r--r-- 1 jrandel jrandel 780K Mar 6 16:51 vocab.json
</code></pre></div>
<p dir="auto">When I download the model card files directly however, I’m getting the following errors:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="curl -L https://huggingface.co/microsoft/DialoGPT-large/resolve/main/config.json -o ./model/config.json
curl -L https://huggingface.co/microsoft/DialoGPT-large/resolve/main/pytorch_model.bin -o ./model/pytorch_model.bin
curl https://huggingface.co/microsoft/DialoGPT-large/resolve/main/tokenizer_config.json -o ./model/tokenizer_config.json
curl https://huggingface.co/microsoft/DialoGPT-large/resolve/main/config.json -o ./model/config.json
curl https://huggingface.co/microsoft/DialoGPT-large/resolve/main/merges.txt -o ./model/merges.txt
curl https://huggingface.co/microsoft/DialoGPT-large/resolve/main/special_tokens_map.json -o ./model/special_tokens_map.json
curl https://huggingface.co/microsoft/DialoGPT-large/resolve/main/vocab.json -o ./model/vocab.json
<snip>
tokenizer = AutoTokenizer.from_pretrained("model/")
File "/var/lang/lib/python3.8/site-packages/transformers/models/auto/tokenization_auto.py", line 395, in from_pretrained
return tokenizer_class_fast.from_pretrained(pretrained_model_name_or_path, *inputs, **kwargs)
File "/var/lang/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 1788, in from_pretrained
return cls._from_pretrained(
File "/var/lang/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 1801, in _from_pretrained
slow_tokenizer = (cls.slow_tokenizer_class)._from_pretrained(
File "/var/lang/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 1876, in _from_pretrained
special_tokens_map = json.load(special_tokens_map_handle)
File "/var/lang/lib/python3.8/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/var/lang/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/var/lang/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/var/lang/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/runtime/bootstrap.py", line 481, in <module>
main()
File "/var/runtime/bootstrap.py", line 458, in main
lambda_runtime_client.post_init_error(to_json(error_result))
File "/var/runtime/lambda_runtime_client.py", line 42, in post_init_error
response = runtime_connection.getresponse()
File "/var/lang/lib/python3.8/http/client.py", line 1347, in getresponse
response.begin()
File "/var/lang/lib/python3.8/http/client.py", line 307, in begin
version, status, reason = self._read_status()
File "/var/lang/lib/python3.8/http/client.py", line 276, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
time="2021-03-08T09:01:39.33" level=warning msg="First fatal error stored in appctx: Runtime.ExitError"
time="2021-03-08T09:01:39.33" level=warning msg="Process 14(bootstrap) exited: Runtime exited with error: exit status 1"
time="2021-03-08T09:01:39.33" level=error msg="Init failed" InvokeID= error="Runtime exited with error: exit status 1"
time="2021-03-08T09:01:39.33" level=warning msg="Failed to send default error response: ErrInvalidInvokeID"
time="2021-03-08T09:01:39.33" level=error msg="INIT DONE failed: Runtime.ExitError"
time="2021-03-08T09:01:39.33" level=warning msg="Reset initiated: ReserveFail""><pre class="notranslate"><code class="notranslate">curl -L https://huggingface.co/microsoft/DialoGPT-large/resolve/main/config.json -o ./model/config.json
curl -L https://huggingface.co/microsoft/DialoGPT-large/resolve/main/pytorch_model.bin -o ./model/pytorch_model.bin
curl https://huggingface.co/microsoft/DialoGPT-large/resolve/main/tokenizer_config.json -o ./model/tokenizer_config.json
curl https://huggingface.co/microsoft/DialoGPT-large/resolve/main/config.json -o ./model/config.json
curl https://huggingface.co/microsoft/DialoGPT-large/resolve/main/merges.txt -o ./model/merges.txt
curl https://huggingface.co/microsoft/DialoGPT-large/resolve/main/special_tokens_map.json -o ./model/special_tokens_map.json
curl https://huggingface.co/microsoft/DialoGPT-large/resolve/main/vocab.json -o ./model/vocab.json
<snip>
tokenizer = AutoTokenizer.from_pretrained("model/")
File "/var/lang/lib/python3.8/site-packages/transformers/models/auto/tokenization_auto.py", line 395, in from_pretrained
return tokenizer_class_fast.from_pretrained(pretrained_model_name_or_path, *inputs, **kwargs)
File "/var/lang/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 1788, in from_pretrained
return cls._from_pretrained(
File "/var/lang/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 1801, in _from_pretrained
slow_tokenizer = (cls.slow_tokenizer_class)._from_pretrained(
File "/var/lang/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 1876, in _from_pretrained
special_tokens_map = json.load(special_tokens_map_handle)
File "/var/lang/lib/python3.8/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/var/lang/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/var/lang/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/var/lang/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/runtime/bootstrap.py", line 481, in <module>
main()
File "/var/runtime/bootstrap.py", line 458, in main
lambda_runtime_client.post_init_error(to_json(error_result))
File "/var/runtime/lambda_runtime_client.py", line 42, in post_init_error
response = runtime_connection.getresponse()
File "/var/lang/lib/python3.8/http/client.py", line 1347, in getresponse
response.begin()
File "/var/lang/lib/python3.8/http/client.py", line 307, in begin
version, status, reason = self._read_status()
File "/var/lang/lib/python3.8/http/client.py", line 276, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
time="2021-03-08T09:01:39.33" level=warning msg="First fatal error stored in appctx: Runtime.ExitError"
time="2021-03-08T09:01:39.33" level=warning msg="Process 14(bootstrap) exited: Runtime exited with error: exit status 1"
time="2021-03-08T09:01:39.33" level=error msg="Init failed" InvokeID= error="Runtime exited with error: exit status 1"
time="2021-03-08T09:01:39.33" level=warning msg="Failed to send default error response: ErrInvalidInvokeID"
time="2021-03-08T09:01:39.33" level=error msg="INIT DONE failed: Runtime.ExitError"
time="2021-03-08T09:01:39.33" level=warning msg="Reset initiated: ReserveFail"
</code></pre></div>
<p dir="auto">So what would be causing the large file variance between save_pretrained models and the model card repo? And any ideas why the directly downloaded model card files aren’t working in this example?</p>
<p dir="auto">Thanks in advance</p> | 1 |
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/768" rel="nofollow">http://projects.scipy.org/scipy/ticket/768</a> on 2008-10-31 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pbrod/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pbrod">@pbrod</a>, assigned to unknown.</em></p>
<p dir="auto">The generalized pareto cumulative distribution in standard form [1]_ is defined as:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="F(x;c) = 1-(1-c*x)**(1/c) for c>0 and c<0"><pre class="notranslate"><code class="notranslate">F(x;c) = 1-(1-c*x)**(1/c) for c>0 and c<0
</code></pre></div>
<p dir="auto">where c is the shape parameter.</p>
<p dir="auto">The limiting case as c->0 is the exponential cdf defined as</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="F(x;c=0) = 1-exp(-x)"><pre class="notranslate"><code class="notranslate">F(x;c=0) = 1-exp(-x)
</code></pre></div>
<p dir="auto">and is not implemented in the scipy.stats.distributions.genpareto distribution.</p>
<p dir="auto">To add this limiting case to scipy.stats.distributions.genpareto would<br>
greatly simplify statistical analysis. Through inference on the shape parameter, c, the data themselves determine the most approprate type of tailbehavior and there is no need for making subjective a priori judgement of which individual extremevalue family to adopt.</p>
<p dir="auto">.. [1] Stuart Coles (2000),<br>
"An Introduction to Statistical Modeling of Extreme Values"</p> | <p dir="auto">As discussed here <a href="https://github.com/scipy/scipy/pull/337/files#r2227022">https://github.com/scipy/scipy/pull/337/files#r2227022</a> , Numpy's rfftn is not included in SciPy.</p>
<p dir="auto">However, SciPy's version of rfft (2 real results per frequency bin) behaves differently from numpy's (1 complex result per frequency bin), so it may be confusing to just import it side-by-side.</p>
<p dir="auto">In an old discussion, most people seem to agree that numpy's rfft output is superior:</p>
<p dir="auto"><a href="http://mail.scipy.org/pipermail/numpy-discussion/2006-September/022977.html" rel="nofollow">[Numpy-discussion] rfft different in numpy vs scipy, Sep 11 2006</a></p>
<p dir="auto">especially because that format matches the format for complex <code class="notranslate">fft</code> and works for N-dimensions, while SciPy's does not:</p>
<blockquote>
<p dir="auto">the <em>reason</em> why FFTW's r2c routines produce unpacked output is largely because "packed" formats do not generalize well to multi-dimensional FFTs, while the "unpacked" format does.</p>
</blockquote>
<p dir="auto">Does it make sense to replace Scipy's rfft with numpy's? Or to rename it or make its output behavior an option, with numpy's behavior as default?</p>
<p dir="auto">Illustration:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: a = [9, -9, 1, 3]
In [2]: numpy.fft.fft(a)
Out[2]: array([ 4. +0.j, 8.+12.j, 16. +0.j, 8.-12.j])
In [3]: numpy.fft.rfft(a)
Out[3]: array([ 4. +0.j, 8.+12.j, 16. +0.j])
In [4]: numpy.fft.rfftn(a)
Out[4]: array([ 4. +0.j, 8.+12.j, 16. +0.j])
In [5]: scipy.fftpack.fft(a)
Out[5]: array([ 4. +0.j, 8.+12.j, 16. +0.j, 8.-12.j])
In [6]: scipy.fftpack.rfft(a)
Out[6]: array([ 4., 8., 12., 16.])"><pre class="notranslate"><code class="notranslate">In [1]: a = [9, -9, 1, 3]
In [2]: numpy.fft.fft(a)
Out[2]: array([ 4. +0.j, 8.+12.j, 16. +0.j, 8.-12.j])
In [3]: numpy.fft.rfft(a)
Out[3]: array([ 4. +0.j, 8.+12.j, 16. +0.j])
In [4]: numpy.fft.rfftn(a)
Out[4]: array([ 4. +0.j, 8.+12.j, 16. +0.j])
In [5]: scipy.fftpack.fft(a)
Out[5]: array([ 4. +0.j, 8.+12.j, 16. +0.j, 8.-12.j])
In [6]: scipy.fftpack.rfft(a)
Out[6]: array([ 4., 8., 12., 16.])
</code></pre></div>
<p dir="auto">Other confused people:</p>
<ul dir="auto">
<li><a href="http://stackoverflow.com/q/34788424/125507" rel="nofollow">Why does scipy.fftpack.rfft return real values? (SO, 2016)</a></li>
<li><a href="http://stackoverflow.com/questions/21517998/python-scipy-fftpack-rfft-frequency-bin-mapping" rel="nofollow">Python scipy.fftpack.rfft frequency bin mapping (SO, 2014)</a></li>
<li><a href="http://dsp.stackexchange.com/questions/14175/python-scipy-fftpack-rfft-frequency-bin-mapping" rel="nofollow">Python scipy.fftpack.rfft frequency bin mapping (DSP.SE, 2014)</a></li>
<li><a href="https://mail.scipy.org/pipermail/scipy-user/2009-February/020130.html" rel="nofollow">[SciPy-user] Numpy/Scipy rfft transformations do not match?, Feb 28 2009</a></li>
<li><a href="http://stackoverflow.com/questions/18537184/how-should-i-multiply-scipy-fftpack-output-vectors-together" rel="nofollow">How should I multiply scipy.fftpack output vectors together? (SO, 2013)</a></li>
</ul> | 0 |
<p dir="auto">I don't know if this is a known issue and supposed to be this way, but I find it a little bit annoying.</p>
<p dir="auto">If you are on a small laptop screen and for example scroll through the <a href="http://twitter.github.io/bootstrap/components/" rel="nofollow">components</a> page there are a few sections where you can't reach the lower half of the navigation on the left side, simply because with all the subsections of the current section there are to many items to display to fit onto the screen and there is no way to scoll on the navigation itself.</p>
<p dir="auto">If this is a stupid issue and meant this way, simply close this issue ;-)</p> | <p dir="auto">When you display some item that has a lot of subitems, the nav grows so much that it doesn't fit on some resolutions, and some of the items aren't shown.</p>
<p dir="auto"><a href="http://oi43.tinypic.com/2ivjtyv.jpg" rel="nofollow">http://oi43.tinypic.com/2ivjtyv.jpg</a></p>
<p dir="auto">On that screenshot, nav items are shown up to badges, missing the remaining. I've tested it on latest Firefox and Chrome at 1366x768.</p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.6</li>
<li>Operating System version: Win10</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>import spring-cloud-starter-dubb</li>
<li>config consumer:</li>
</ol>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" dubbo:
consumer:
check: false
# timeout: 5000
protocol:
name: dubbo
port: -1
cloud:
subscribed-services: 'spring-cloud-alibaba-dubbo-provider'"><pre class="notranslate"> <span class="pl-ent">dubbo</span>:
<span class="pl-ent">consumer</span>:
<span class="pl-ent">check</span>: <span class="pl-c1">false</span>
<span class="pl-c"><span class="pl-c">#</span> timeout: 5000</span>
<span class="pl-ent">protocol</span>:
<span class="pl-ent">name</span>: <span class="pl-s">dubbo</span>
<span class="pl-ent">port</span>: <span class="pl-c1">-1</span>
<span class="pl-ent">cloud</span>:
<span class="pl-ent">subscribed-services</span>: <span class="pl-s"><span class="pl-pds">'</span>spring-cloud-alibaba-dubbo-provider<span class="pl-pds">'</span></span></pre></div>
<ol start="3" dir="auto">
<li>config provider</li>
</ol>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
dubbo:
scan:
base-packages: com.example.test.dubbo.provider.service
protocol:
name: dubbo
port: -1
registry:
address: spring-cloud://localhost
cloud:
subscribed-services: ''"><pre class="notranslate"><span class="pl-ent">dubbo</span>:
<span class="pl-ent">scan</span>:
<span class="pl-ent">base-packages</span>: <span class="pl-s">com.example.test.dubbo.provider.service</span>
<span class="pl-ent">protocol</span>:
<span class="pl-ent">name</span>: <span class="pl-s">dubbo</span>
<span class="pl-ent">port</span>: <span class="pl-c1">-1</span>
<span class="pl-ent">registry</span>:
<span class="pl-ent">address</span>: <span class="pl-s">spring-cloud://localhost</span>
<span class="pl-ent">cloud</span>:
<span class="pl-ent">subscribed-services</span>: <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span></pre></div>
<ol start="4" dir="auto">
<li>run provider and consumer</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?<br>
no error log</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">Console print an error log:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="2020-05-28 18:41:20.682 [spring-cloud-alibaba-dubbo-consumer,,,,] 22320 --- [ main] .a.d.m.s.InMemoryWritableMetadataService : [DUBBO] publishProvider interfaceName is empty . providerUrl: consumer://10.176.128.248/com.alibaba.cloud.dubbo.service.DubboMetadataService?application=spring-cloud-alibaba-dubbo-consumer&check=false&dubbo=2.0.2&generic=true&group=spring-cloud-alibaba-dubbo-provider&interface=com.alibaba.cloud.dubbo.service.DubboMetadataService&pid=22320&qos.enable=false&release=2.7"><pre class="notranslate">2020-05-28 18:41:20.682 [spring-cloud-alibaba-dubbo-consumer,,,,] 22320 --- [ main] .a.d.m.s.InMemoryWritableMetadataService <span class="pl-c1">:</span> [DUBBO] publishProvider interfaceName is empty <span class="pl-c1">.</span> providerUrl: consumer://10.176.128.248/com.alibaba.cloud.dubbo.service.DubboMetadataService<span class="pl-k">?</span>application=spring-cloud-alibaba-dubbo-consumer<span class="pl-k">&</span>check=false<span class="pl-k">&</span>dubbo=2.0.2<span class="pl-k">&</span>generic=true<span class="pl-k">&</span>group=spring-cloud-alibaba-dubbo-provider<span class="pl-k">&</span>interface=com.alibaba.cloud.dubbo.service.DubboMetadataService<span class="pl-k">&</span>pid=22320<span class="pl-k">&</span>qos.enable=false<span class="pl-k">&</span>release=2.7</pre></div>
<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>
<p dir="auto">Reference code:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" public void publishServiceDefinition(URL providerUrl) {
try {
String interfaceName = providerUrl.getParameter(INTERFACE_KEY);
if (StringUtils.isNotEmpty(interfaceName)
&& !ProtocolUtils.isGeneric(providerUrl.getParameter(GENERIC_KEY))) {
Class interfaceClass = Class.forName(interfaceName);
ServiceDefinition serviceDefinition = ServiceDefinitionBuilder.build(interfaceClass);
Gson gson = new Gson();
String data = gson.toJson(serviceDefinition);
serviceDefinitions.put(providerUrl.getServiceKey(), data);
return;
}
logger.error("publishProvider interfaceName is empty . providerUrl: " + providerUrl.toFullString());
} catch (ClassNotFoundException e) {
//ignore error
logger.error("publishProvider getServiceDescriptor error. providerUrl: " + providerUrl.toFullString(), e);
}
}"><pre class="notranslate"> <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-s1">publishServiceDefinition</span>(<span class="pl-smi">URL</span> <span class="pl-s1">providerUrl</span>) {
<span class="pl-k">try</span> {
<span class="pl-smi">String</span> <span class="pl-s1">interfaceName</span> = <span class="pl-s1">providerUrl</span>.<span class="pl-en">getParameter</span>(<span class="pl-c1">INTERFACE_KEY</span>);
<span class="pl-k">if</span> (<span class="pl-smi">StringUtils</span>.<span class="pl-en">isNotEmpty</span>(<span class="pl-s1">interfaceName</span>)
&& !<span class="pl-smi">ProtocolUtils</span>.<span class="pl-en">isGeneric</span>(<span class="pl-s1">providerUrl</span>.<span class="pl-en">getParameter</span>(<span class="pl-c1">GENERIC_KEY</span>))) {
<span class="pl-smi">Class</span> <span class="pl-s1">interfaceClass</span> = <span class="pl-smi">Class</span>.<span class="pl-en">forName</span>(<span class="pl-s1">interfaceName</span>);
<span class="pl-smi">ServiceDefinition</span> <span class="pl-s1">serviceDefinition</span> = <span class="pl-smi">ServiceDefinitionBuilder</span>.<span class="pl-en">build</span>(<span class="pl-s1">interfaceClass</span>);
<span class="pl-smi">Gson</span> <span class="pl-s1">gson</span> = <span class="pl-k">new</span> <span class="pl-smi">Gson</span>();
<span class="pl-smi">String</span> <span class="pl-s1">data</span> = <span class="pl-s1">gson</span>.<span class="pl-en">toJson</span>(<span class="pl-s1">serviceDefinition</span>);
<span class="pl-s1">serviceDefinitions</span>.<span class="pl-en">put</span>(<span class="pl-s1">providerUrl</span>.<span class="pl-en">getServiceKey</span>(), <span class="pl-s1">data</span>);
<span class="pl-k">return</span>;
}
<span class="pl-s1">logger</span>.<span class="pl-en">error</span>(<span class="pl-s">"publishProvider interfaceName is empty . providerUrl: "</span> + <span class="pl-s1">providerUrl</span>.<span class="pl-en">toFullString</span>());
} <span class="pl-k">catch</span> (<span class="pl-smi">ClassNotFoundException</span> <span class="pl-s1">e</span>) {
<span class="pl-c">//ignore error</span>
<span class="pl-s1">logger</span>.<span class="pl-en">error</span>(<span class="pl-s">"publishProvider getServiceDescriptor error. providerUrl: "</span> + <span class="pl-s1">providerUrl</span>.<span class="pl-en">toFullString</span>(), <span class="pl-s1">e</span>);
}
}</pre></div>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public static boolean isGeneric(String generic) {
return StringUtils.isNotEmpty(generic)
&& (GENERIC_SERIALIZATION_DEFAULT.equalsIgnoreCase(generic) /* Normal generalization cal */
|| GENERIC_SERIALIZATION_NATIVE_JAVA.equalsIgnoreCase(generic) /* Streaming generalization call supporting jdk serialization */
|| GENERIC_SERIALIZATION_BEAN.equalsIgnoreCase(generic)
|| GENERIC_SERIALIZATION_PROTOBUF.equalsIgnoreCase(generic)
|| GENERIC_RAW_RETURN.equalsIgnoreCase(generic));
}"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-k">static</span> <span class="pl-smi">boolean</span> <span class="pl-s1">isGeneric</span>(<span class="pl-smi">String</span> <span class="pl-s1">generic</span>) {
<span class="pl-k">return</span> <span class="pl-smi">StringUtils</span>.<span class="pl-en">isNotEmpty</span>(<span class="pl-s1">generic</span>)
&& (<span class="pl-smi">GENERIC_SERIALIZATION_DEFAULT</span>.<span class="pl-en">equalsIgnoreCase</span>(<span class="pl-s1">generic</span>) <span class="pl-c">/* Normal generalization cal */</span>
|| <span class="pl-smi">GENERIC_SERIALIZATION_NATIVE_JAVA</span>.<span class="pl-en">equalsIgnoreCase</span>(<span class="pl-s1">generic</span>) <span class="pl-c">/* Streaming generalization call supporting jdk serialization */</span>
|| <span class="pl-smi">GENERIC_SERIALIZATION_BEAN</span>.<span class="pl-en">equalsIgnoreCase</span>(<span class="pl-s1">generic</span>)
|| <span class="pl-smi">GENERIC_SERIALIZATION_PROTOBUF</span>.<span class="pl-en">equalsIgnoreCase</span>(<span class="pl-s1">generic</span>)
|| <span class="pl-smi">GENERIC_RAW_RETURN</span>.<span class="pl-en">equalsIgnoreCase</span>(<span class="pl-s1">generic</span>));
}</pre></div>
<p dir="auto">How to eliminate this error?</p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 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> | 0 |
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] bug report => search github for a similar issue or PR before submitting
[x ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ ] bug report => search github for a similar issue or PR before submitting
[x ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
To share CSS common to all components in an angular2 app, we have to currently Add a to a stylesheet with all the common CSS in the application's index.html (or add the styles to the application's root component and turn off view encapsulation for each component that wants to share this CSS? - not sure if this option works)</p>
<p dir="auto"><strong>Expected behavior</strong><br>
A well-documented and recommended way to share CSS across components - whether one of the current options above, or a newer option that makes it easier to add root-level CSS to share among components.</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
Ease of use, trying to share CSS among components now involves lots of trial and error and stack overflow-ing for me right now, without knowing the pros/cons of each method.</p>
<p dir="auto"><strong>Please tell us about your environment:</strong><br>
All</p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.0-rc.X<br>
2.0.0 final</li>
</ul> | <p dir="auto"><strong>I'm submitting a ...</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] feature request"><pre class="notranslate"><code class="notranslate">[x] feature request
</code></pre></div>
<p dir="auto"><strong>Expected/desired behavior</strong><br>
Introduce a way to bundle css with the help of NgModules (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163204090" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/9726" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/9726/hovercard" href="https://github.com/angular/angular/issues/9726">#9726</a>). These styles would only be usable/scoped to the components inside the NgModules.</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
Sharing styles between multiple components is currently not supported out of the box. The user either has to insert these styles globally into the head, or copy them into each component's individual stylesheet. Both of these solutions are problematic.</p> | 1 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.836]
PowerToys version: 0.18.1
PowerToy module for which you are reporting the bug (if applicable): PowerToys Run"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.836]
PowerToys version: 0.18.1
PowerToy module for which you are reporting the bug (if applicable): PowerToys Run
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Set the default shortcut to Alt + Space. Press Alt + Space to open the PowerToys Run</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Expecting the PowerToys Run to open the quick launcher</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Pressing Alt + Space on any active window brings the window's context menu. Not having any active window open does not do anything</p>
<h1 dir="auto">Note</h1>
<p dir="auto">PowerToys Run works on v0.18.0</p>
<h1 dir="auto">Screenshots</h1>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4000139/83157872-22e46500-a115-11ea-89e0-beb7140fa5e0.png"><img src="https://user-images.githubusercontent.com/4000139/83157872-22e46500-a115-11ea-89e0-beb7140fa5e0.png" alt="PowerRun" style="max-width: 100%;"></a></p> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [Version 10.0.18362.836]
PowerToys version: v0.18.1
PowerToys: PowerToys Run"><pre class="notranslate"><code class="notranslate">Windows build number: [Version 10.0.18362.836]
PowerToys version: v0.18.1
PowerToys: PowerToys Run
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">With PowerToys installed and running, press <kbd>Alt</kbd> + <kbd>Space</kbd> from any screen.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">PowerToys Run popup shows up to start typing a command or a search term</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">window menu (Restore / Move / Size / Minimize / Maximize / Close) shows up in the top left corner of the focused window if the focus is on a window or nothing at all if the focus is on the desktop.</p>
<h1 dir="auto">Screenshots</h1>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7889660/82753718-c1905f00-9dbf-11ea-9c59-00d439b9aece.png"><img src="https://user-images.githubusercontent.com/7889660/82753718-c1905f00-9dbf-11ea-9c59-00d439b9aece.png" alt="capture" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">For <code class="notranslate">f</code> a function, type <code class="notranslate">typeof(f).<TAB></code> and get:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> typeof(f).┌ Error: Error in the keymap
│ exception =
│ type does not have a definite number of fields
│ Stacktrace:
│ [1] error at ./error.jl:33 [inlined]
│ [2] fieldcount(::Any) at ./reflection.jl:578
│ [3] fieldnames(::DataType) at ./reflection.jl:156
│ [4] complete_symbol(::String, ::getfield(REPL.REPLCompletions, Symbol("##15#17"))) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/REPLCompletions.jl:97
│ [5] completions(::String, ::Int64) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/REPLCompletions.jl:619
│ [6] complete_line(::REPL.REPLCompletionProvider, ::REPL.LineEdit.PromptState) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/REPL.jl:341
│ [7] complete_line(::REPL.LineEdit.PromptState, ::Int64) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/LineEdit.jl:310
│ [8] complete_line(::REPL.LineEdit.MIState) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/LineEdit.jl:301
│ [9] edit_tab(::REPL.LineEdit.MIState, ::Bool, ::Bool) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/LineEdit.jl:1911 (repeats 2 times)
│ [10] (::getfield(REPL.LineEdit, Symbol("##108#160")))(::REPL.LineEdit.MIState, ::REPL.LineEditREPL, ::Vararg{Any,N} where N) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/LineEdit.jl:1952
│ [11] top-level scope
│ [12] eval at ./boot.jl:309 [inlined]
│ [13] eval at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/LineEdit.jl:3 [inlined]
│ [14] (::getfield(REPL.LineEdit, Symbol("##27#28")){getfield(REPL.LineEdit, Symbol("##108#160")),String})(::REPL.LineEdit.MIState, ::REPL.LineEditREPL) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/LineEdit.jl:1301
│ [15] prompt!(::REPL.Terminals.TTYTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/LineEdit.jl:2317
│ [16] run_interface(::REPL.Terminals.TTYTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/LineEdit.jl:2218
│ [17] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/REPL.jl:1017
│ [18] run_repl(::REPL.LineEditREPL, ::getfield(Base, Symbol("##687#689"))) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/REPL.jl:188
│ [19] (::getfield(Base, Symbol("##686#688")){Bool,Bool,Bool,Bool})(::Module) at ./client.jl:414
│ [20] (::getfield(Base, Symbol("#inner#4")){Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}},getfield(Base, Symbol("##686#688")){Bool,Bool,Bool,Bool},Tuple{Module}})() at ./essentials.jl:641
│ [21] #invokelatest#3 at ./essentials.jl:642 [inlined]
│ [22] invokelatest at ./essentials.jl:641 [inlined]
│ [23] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:398
│ [24] exec_options(::Base.JLOptions) at ./client.jl:338
│ [25] _start() at ./client.jl:455
└ @ REPL.LineEdit LineEdit.jl:2319"><pre class="notranslate"><code class="notranslate">julia> typeof(f).┌ Error: Error in the keymap
│ exception =
│ type does not have a definite number of fields
│ Stacktrace:
│ [1] error at ./error.jl:33 [inlined]
│ [2] fieldcount(::Any) at ./reflection.jl:578
│ [3] fieldnames(::DataType) at ./reflection.jl:156
│ [4] complete_symbol(::String, ::getfield(REPL.REPLCompletions, Symbol("##15#17"))) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/REPLCompletions.jl:97
│ [5] completions(::String, ::Int64) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/REPLCompletions.jl:619
│ [6] complete_line(::REPL.REPLCompletionProvider, ::REPL.LineEdit.PromptState) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/REPL.jl:341
│ [7] complete_line(::REPL.LineEdit.PromptState, ::Int64) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/LineEdit.jl:310
│ [8] complete_line(::REPL.LineEdit.MIState) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/LineEdit.jl:301
│ [9] edit_tab(::REPL.LineEdit.MIState, ::Bool, ::Bool) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/LineEdit.jl:1911 (repeats 2 times)
│ [10] (::getfield(REPL.LineEdit, Symbol("##108#160")))(::REPL.LineEdit.MIState, ::REPL.LineEditREPL, ::Vararg{Any,N} where N) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/LineEdit.jl:1952
│ [11] top-level scope
│ [12] eval at ./boot.jl:309 [inlined]
│ [13] eval at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/LineEdit.jl:3 [inlined]
│ [14] (::getfield(REPL.LineEdit, Symbol("##27#28")){getfield(REPL.LineEdit, Symbol("##108#160")),String})(::REPL.LineEdit.MIState, ::REPL.LineEditREPL) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/LineEdit.jl:1301
│ [15] prompt!(::REPL.Terminals.TTYTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/LineEdit.jl:2317
│ [16] run_interface(::REPL.Terminals.TTYTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/LineEdit.jl:2218
│ [17] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/REPL.jl:1017
│ [18] run_repl(::REPL.LineEditREPL, ::getfield(Base, Symbol("##687#689"))) at /home/keno/julia-comparison/usr/share/julia/site/v0.7/REPL/src/REPL.jl:188
│ [19] (::getfield(Base, Symbol("##686#688")){Bool,Bool,Bool,Bool})(::Module) at ./client.jl:414
│ [20] (::getfield(Base, Symbol("#inner#4")){Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}},getfield(Base, Symbol("##686#688")){Bool,Bool,Bool,Bool},Tuple{Module}})() at ./essentials.jl:641
│ [21] #invokelatest#3 at ./essentials.jl:642 [inlined]
│ [22] invokelatest at ./essentials.jl:641 [inlined]
│ [23] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:398
│ [24] exec_options(::Base.JLOptions) at ./client.jl:338
│ [25] _start() at ./client.jl:455
└ @ REPL.LineEdit LineEdit.jl:2319
</code></pre></div> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> typeof(+).<tab>
┌ Error: Error in the keymap
│ exception =
│ ArgumentError: type does not have a definite number of fields
│ Stacktrace:
│ [1] fieldcount(::Any) at ./reflection.jl:682
│ [2] fieldnames(::DataType) at ./reflection.jl:172
│ [3] complete_symbol(::String, ::getfield(REPL.REPLCompletions, Symbol("##21#25")), ::Module) at /data/vtjnash/julia/usr/share/julia/stdlib/v1.3/REPL/src/REPLCompletions
.jl:157
│ [4] completions(::String, ::Int64, ::Module) at /data/vtjnash/julia/usr/share/julia/stdlib/v1.3/REPL/src/REPLCompletions.jl:705
│ [5] completions(::String, ::Int64) at /data/vtjnash/julia/usr/share/julia/stdlib/v1.3/REPL/src/REPLCompletions.jl:575
│ [6] complete_line(::REPL.REPLCompletionProvider, ::Any) at /data/vtjnash/julia/usr/share/julia/stdlib/v1.3/REPL/src/REPL.jl:362
│ [7] complete_line(::REPL.LineEdit.PromptState, ::Any) at /data/vtjnash/julia/usr/share/julia/stdlib/v1.3/REPL/src/LineEdit.jl:324
│ [8] complete_line(::REPL.LineEdit.MIState) at /data/vtjnash/julia/usr/share/julia/stdlib/v1.3/REPL/src/LineEdit.jl:315
│ [9] edit_tab(::REPL.LineEdit.MIState, ::Any, ::Any) at /data/vtjnash/julia/usr/share/julia/stdlib/v1.3/REPL/src/LineEdit.jl:1987 (repeats 2 times)"><pre class="notranslate"><code class="notranslate">julia> typeof(+).<tab>
┌ Error: Error in the keymap
│ exception =
│ ArgumentError: type does not have a definite number of fields
│ Stacktrace:
│ [1] fieldcount(::Any) at ./reflection.jl:682
│ [2] fieldnames(::DataType) at ./reflection.jl:172
│ [3] complete_symbol(::String, ::getfield(REPL.REPLCompletions, Symbol("##21#25")), ::Module) at /data/vtjnash/julia/usr/share/julia/stdlib/v1.3/REPL/src/REPLCompletions
.jl:157
│ [4] completions(::String, ::Int64, ::Module) at /data/vtjnash/julia/usr/share/julia/stdlib/v1.3/REPL/src/REPLCompletions.jl:705
│ [5] completions(::String, ::Int64) at /data/vtjnash/julia/usr/share/julia/stdlib/v1.3/REPL/src/REPLCompletions.jl:575
│ [6] complete_line(::REPL.REPLCompletionProvider, ::Any) at /data/vtjnash/julia/usr/share/julia/stdlib/v1.3/REPL/src/REPL.jl:362
│ [7] complete_line(::REPL.LineEdit.PromptState, ::Any) at /data/vtjnash/julia/usr/share/julia/stdlib/v1.3/REPL/src/LineEdit.jl:324
│ [8] complete_line(::REPL.LineEdit.MIState) at /data/vtjnash/julia/usr/share/julia/stdlib/v1.3/REPL/src/LineEdit.jl:315
│ [9] edit_tab(::REPL.LineEdit.MIState, ::Any, ::Any) at /data/vtjnash/julia/usr/share/julia/stdlib/v1.3/REPL/src/LineEdit.jl:1987 (repeats 2 times)
</code></pre></div> | 1 |
<p dir="auto">I'm seeing an issue in Chrome 58.0.3029.83 on Android 7.0.0 where the visible viewport is getting clipped.</p>
<p dir="auto">Here's: <a href="https://threejs.org/examples/#webgl_animation_cloth" rel="nofollow">https://threejs.org/examples/#webgl_animation_cloth</a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1334393/26452523/29608c08-4158-11e7-9a33-ba604a2d5d45.png"><img src="https://cloud.githubusercontent.com/assets/1334393/26452523/29608c08-4158-11e7-9a33-ba604a2d5d45.png" alt="screenshot_20170525-132558" style="max-width: 100%;"></a></p>
<p dir="auto">And <a href="https://threejs.org/examples/#webgl_camera" rel="nofollow">https://threejs.org/examples/#webgl_camera</a>:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1334393/26452565/488e4002-4158-11e7-95cf-f9955534b166.png"><img src="https://cloud.githubusercontent.com/assets/1334393/26452565/488e4002-4158-11e7-95cf-f9955534b166.png" alt="screenshot_20170525-132547" style="max-width: 100%;"></a></p>
<p dir="auto">My own application is also exhibiting this problem:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1334393/26452594/6abf63f4-4158-11e7-9c4a-a85986895388.png"><img src="https://cloud.githubusercontent.com/assets/1334393/26452594/6abf63f4-4158-11e7-9c4a-a85986895388.png" alt="screenshot_20170525-132615" style="max-width: 100%;"></a></p>
<p dir="auto">Some other examples are fine however:</p>
<p dir="auto"><a href="https://threejs.org/examples/#webgl_clipping" rel="nofollow">https://threejs.org/examples/#webgl_clipping</a><br>
<a href="https://threejs.org/examples/#webgl_loader_obj" rel="nofollow">https://threejs.org/examples/#webgl_loader_obj</a></p>
<p dir="auto">Unable to discern the difference between these cases...</p>
<h5 dir="auto">Three.js version</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Dev</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r85</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li>
</ul>
<h5 dir="auto">Browser</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Chrome</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li>
</ul>
<h5 dir="auto">OS</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Android</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li>
</ul>
<h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5>
<p dir="auto">Nexus 6 phone</p> | <p dir="auto">Hey Three.js team,<br>
I found this weird bug that I thought you might find interesting.</p>
<p dir="auto">When I attempt the cloth animation three.js example (<a href="https://threejs.org/examples/#webgl_animation_cloth" rel="nofollow">https://threejs.org/examples/#webgl_animation_cloth</a>) on this tablet in Chrome, it only shows a small part of the rendered canvas.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3382216/26263123/5c9cb662-3ca5-11e7-8783-5eea55eadecc.png"><img src="https://cloud.githubusercontent.com/assets/3382216/26263123/5c9cb662-3ca5-11e7-8783-5eea55eadecc.png" alt="screenshot_20170519-150642" style="max-width: 100%;"></a><br>
(What it looks like on device)</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3382216/26263099/4541fe5a-3ca5-11e7-94e7-df0949b342c5.png"><img src="https://cloud.githubusercontent.com/assets/3382216/26263099/4541fe5a-3ca5-11e7-94e7-df0949b342c5.png" alt="image" style="max-width: 100%;"></a><br>
(What it looks like normally)</p>
<p dir="auto">I debugged this a little bit. When setSize is usually called, it edits a _canvas variable, which usually adjusts the screen immediately after being set. However, in Chrome on this device this does not happen. To make a weird case even weirder, this example actually works on mobile Firefox on the same device.</p>
<p dir="auto">Is this something that can be fixed from inside three.js, or is this something to developers of WebGL have to address?</p>
<p dir="auto">Thanks so much!</p>
<h5 dir="auto">Three.js version</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Dev</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r85</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li>
</ul>
<h5 dir="auto">Browser</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Chrome</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li>
</ul>
<h5 dir="auto">OS</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Android 7</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li>
</ul>
<p dir="auto">Hardware requirements for the device are right here: <a href="https://www.cnet.com/products/sony-xperia-z4-tablet-sgp771-tablet-android-6-0-marshmallow-32-gb-10-1-3g-4g/specs/" rel="nofollow">https://www.cnet.com/products/sony-xperia-z4-tablet-sgp771-tablet-android-6-0-marshmallow-32-gb-10-1-3g-4g/specs/</a> (however, I tested this on Android 7, not 6)</p> | 1 |
<p dir="auto">Receiving errors in vscode from the Deno Language Server</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<--- Last few GCs --->
[77365:0x7fe610008000] 156574 ms: Scavenge (reduce) 1397.1 (1422.7) -> 1396.5 (1423.0) MB, 2.21 / 0.00 ms (average mu = 0.145, current mu = 0.011) allocation failure;
[77365:0x7fe610008000] 156796 ms: Mark-Compact (reduce) 1397.2 (1423.0) -> 1396.3 (1423.2) MB, 218.90 / 0.00 ms (average mu = 0.102, current mu = 0.058) allocation failure; scavenge might not succeed
<--- JS stacktrace --->
#
# Fatal JavaScript out of memory: Ineffective mark-compacts near heap limit
#"><pre class="notranslate"><code class="notranslate"><--- Last few GCs --->
[77365:0x7fe610008000] 156574 ms: Scavenge (reduce) 1397.1 (1422.7) -> 1396.5 (1423.0) MB, 2.21 / 0.00 ms (average mu = 0.145, current mu = 0.011) allocation failure;
[77365:0x7fe610008000] 156796 ms: Mark-Compact (reduce) 1397.2 (1423.0) -> 1396.3 (1423.2) MB, 218.90 / 0.00 ms (average mu = 0.102, current mu = 0.058) allocation failure; scavenge might not succeed
<--- JS stacktrace --->
#
# Fatal JavaScript out of memory: Ineffective mark-compacts near heap limit
#
</code></pre></div>
<p dir="auto">After investigating it seems like importing certain packages can trigger this. I am able to cause this error and stop receiving this error merely by adding or removing this package:</p>
<p dir="auto"><code class="notranslate">import * as goog from "https://esm.sh/[email protected]";</code></p> | <p dir="auto">Hi, I need to reimport script after changes (by others) at runtime, but deno doesn't want to recompile sources.<br>
Simple test:<br>
File test.ts</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="await import("./abc.ts");
await Deno.writeTextFile("./abc.ts", "console.log('After changes');");
await import("./abc.ts");"><pre class="notranslate"><span class="pl-k">await</span> <span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s">"./abc.ts"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-en">writeTextFile</span><span class="pl-kos">(</span><span class="pl-s">"./abc.ts"</span><span class="pl-kos">,</span> <span class="pl-s">"console.log('After changes');"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s">"./abc.ts"</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">File abc.ts</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="console.log('Before changes');"><pre class="notranslate"><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'Before changes'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Execute:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno run --unstable --allow-all test.ts"><pre class="notranslate">deno run --unstable --allow-all test.ts</pre></div>
<p dir="auto">Console output:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ubuntu@deno:~/workspace/deno$ deno run --unstable --allow-all test.ts
Compile file:///home/ubuntu/workspace/deno/test.ts
Before changes
ubuntu@deno:~/workspace/deno$ "><pre class="notranslate">ubuntu@deno:<span class="pl-k">~</span>/workspace/deno$ deno run --unstable --allow-all test.ts
Compile file:///home/ubuntu/workspace/deno/test.ts
Before changes
ubuntu@deno:<span class="pl-k">~</span>/workspace/deno$ </pre></div>
<p dir="auto">File abc.ts after run:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="console.log('After changes');"><pre class="notranslate"><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'After changes'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Deno version</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno 1.0.2
v8 8.4.300
typescript 3.9.2"><pre class="notranslate"><code class="notranslate">deno 1.0.2
v8 8.4.300
typescript 3.9.2
</code></pre></div>
<p dir="auto">OS Linux</p> | 0 |
<p dir="auto">Pop over on ios safari doesn’t disallow scrolling and this change the intended behavior if someone scrolls down while pop up is on</p>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">popover to be removed before scrolling is allowed</p>
<h2 dir="auto">Behavior</h2>
<p dir="auto">If you scroll on ios safari browser while popover is on the popover doesn’t disappear</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">use any demo app with popover you can check it on the demo page</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. (keywords searched: <code class="notranslate">hot</code> <code class="notranslate">load</code> <code class="notranslate">muiFormControl</code> <code class="notranslate">Input</code>)</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">When using <code class="notranslate">react-hot-loader</code> in an application with MUI form controls, such as <code class="notranslate">TextField</code>, I expect that making a change to my source code will trigger a successful hot reload.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Making a change to my source code works fine until i add a <code class="notranslate">TextField</code> to my component.<br>
Once there's a <code class="notranslate">TextField</code> visible, any changes that trigger a hot reload will cause the page to fail to hot-reload, showing errors in the console:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught TypeError: Cannot read property 'muiFormControl' of undefined
at formControlState (Input.js:264)
at ProxyComponent.componentWillUpdate (Input.js:372)
at next (hotReplacementRender.js:204)
at hotReplacementRender.js:229
at Array.forEach (<anonymous>)
at hotReplacementRender (hotReplacementRender.js:191)
at next (hotReplacementRender.js:207)
at hotReplacementRender.js:229
at Array.forEach (<anonymous>)
at hotReplacementRender (hotReplacementRender.js:191)
at next (hotReplacementRender.js:207)
at hotReplacementRender.js:216
at Array.forEach (<anonymous>)
at hotReplacementRender (hotReplacementRender.js:191)
at next (hotReplacementRender.js:207)
at hotReplacementRender.js:229
at Array.forEach (<anonymous>)
at hotReplacementRender (hotReplacementRender.js:191)
at next (hotReplacementRender.js:207)
at hotReplacementRender.js:229
at Array.forEach (<anonymous>)
at hotReplacementRender (hotReplacementRender.js:191)
at next (hotReplacementRender.js:207)
at hotReplacementRender.js:229
at Array.forEach (<anonymous>)
at hotReplacementRender (hotReplacementRender.js:191)
at next (hotReplacementRender.js:207)
at hotReplacementRender.js:216
at Array.forEach (<anonymous>)
at hotReplacementRender (hotReplacementRender.js:191)
at next (hotReplacementRender.js:207)
at hotReplacementRender.js:229
at Array.forEach (<anonymous>)
at hotReplacementRender (hotReplacementRender.js:191)
at next (hotReplacementRender.js:207)
at hotReplacementRender.js:229
at Array.forEach (<anonymous>)
at hotReplacementRender (hotReplacementRender.js:191)
at next (hotReplacementRender.js:207)
at hotReplacementRender.js:229
at Array.forEach (<anonymous>)
at hotReplacementRender (hotReplacementRender.js:191)
at next (hotReplacementRender.js:207)
at hotReplacementRender.js:216
at Array.forEach (<anonymous>)
at hotReplacementRender (hotReplacementRender.js:191)
at next (hotReplacementRender.js:207)
at hotReplacementRender.js:229
at Array.forEach (<anonymous>)
at hotReplacementRender (hotReplacementRender.js:191)
index.js:2177 The above error occurred in the <AppContainer> component:
in AppContainer (created by HotExportedWithStyles(Component))
in HotExportedWithStyles(Component)
in Router (created by ConnectedRouter)
in ConnectedRouter
in Provider (at index.js:20)
in MuiThemeProvider (at index.js:19)"><pre class="notranslate"><code class="notranslate">Uncaught TypeError: Cannot read property 'muiFormControl' of undefined
at formControlState (Input.js:264)
at ProxyComponent.componentWillUpdate (Input.js:372)
at next (hotReplacementRender.js:204)
at hotReplacementRender.js:229
at Array.forEach (<anonymous>)
at hotReplacementRender (hotReplacementRender.js:191)
at next (hotReplacementRender.js:207)
at hotReplacementRender.js:229
at Array.forEach (<anonymous>)
at hotReplacementRender (hotReplacementRender.js:191)
at next (hotReplacementRender.js:207)
at hotReplacementRender.js:216
at Array.forEach (<anonymous>)
at hotReplacementRender (hotReplacementRender.js:191)
at next (hotReplacementRender.js:207)
at hotReplacementRender.js:229
at Array.forEach (<anonymous>)
at hotReplacementRender (hotReplacementRender.js:191)
at next (hotReplacementRender.js:207)
at hotReplacementRender.js:229
at Array.forEach (<anonymous>)
at hotReplacementRender (hotReplacementRender.js:191)
at next (hotReplacementRender.js:207)
at hotReplacementRender.js:229
at Array.forEach (<anonymous>)
at hotReplacementRender (hotReplacementRender.js:191)
at next (hotReplacementRender.js:207)
at hotReplacementRender.js:216
at Array.forEach (<anonymous>)
at hotReplacementRender (hotReplacementRender.js:191)
at next (hotReplacementRender.js:207)
at hotReplacementRender.js:229
at Array.forEach (<anonymous>)
at hotReplacementRender (hotReplacementRender.js:191)
at next (hotReplacementRender.js:207)
at hotReplacementRender.js:229
at Array.forEach (<anonymous>)
at hotReplacementRender (hotReplacementRender.js:191)
at next (hotReplacementRender.js:207)
at hotReplacementRender.js:229
at Array.forEach (<anonymous>)
at hotReplacementRender (hotReplacementRender.js:191)
at next (hotReplacementRender.js:207)
at hotReplacementRender.js:216
at Array.forEach (<anonymous>)
at hotReplacementRender (hotReplacementRender.js:191)
at next (hotReplacementRender.js:207)
at hotReplacementRender.js:229
at Array.forEach (<anonymous>)
at hotReplacementRender (hotReplacementRender.js:191)
index.js:2177 The above error occurred in the <AppContainer> component:
in AppContainer (created by HotExportedWithStyles(Component))
in HotExportedWithStyles(Component)
in Router (created by ConnectedRouter)
in ConnectedRouter
in Provider (at index.js:20)
in MuiThemeProvider (at index.js:19)
</code></pre></div>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">could not get codesandbox to work with hot loader so including zipped client app.</p>
<p dir="auto"><a href="https://github.com/mui-org/material-ui/files/1650417/ClientApp.zip">ClientApp.zip</a></p>
<ol dir="auto">
<li><code class="notranslate">yarn install</code></li>
<li><code class="notranslate">yarn start</code></li>
<li>click on <code class="notranslate">New List</code> at top right (drawer should open)</li>
<li>make a change to JSS somewhere in a component (<code class="notranslate">IssueListEditor.js</code> for example)</li>
<li>watch react try to reload and page go blank, then observe errors in console.</li>
</ol>
<p dir="auto">Repeat the whole process after commenting out the <code class="notranslate"><TextField/></code> on line 109 of <code class="notranslate">IssueListEditor.js</code>.</p>
<p dir="auto">You should not be able to repro the broken hot-load without it.</p>
<h2 dir="auto">Context</h2>
<p dir="auto">react hot loading is a basic part of the dev workflow for me personally and at my company. we also love material-ui's look-and-feel, flexibility, and customizability. But not being able to hot-reload when there are form fields in the app is a major problem for development.</p>
<h2 dir="auto">Your Environment</h2>
<p dir="auto">osx</p>
<p dir="auto">yarn: 1.2.3<br>
node: 8.9.3<br>
npm: 4.6.1<br>
react-scripts: 1.0.17<br>
react-hot-loader: 4.0.0-beta.14</p>
<p dir="auto"><a href="https://github.com/mui-org/material-ui/files/1650418/package.json.zip">package.json.zip</a></p>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>1.0.0-beta.30</td>
</tr>
<tr>
<td>React</td>
<td>16.2.0</td>
</tr>
<tr>
<td>browser</td>
<td>chrome latest</td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">I have install the tensorflow by pip on windows 10 64bit</p>
<p dir="auto">tensorflow have no Problem.<br>
but,Tensorboard can't run.</p>
<h2 dir="auto">this is Log</h2>
<p dir="auto">D:\Python35\Lib\site-packages\tensorflow\tensorboard>d:\Python35\python.exe tensorboard.py --logdir=D:\tensorBoard --debug<br>
INFO:tensorflow:TensorBoard is in debug mode.<br>
INFO:tensorflow:Starting TensorBoard in directory D:\Python35\Lib\site-packages\tensorflow\tensorboard<br>
INFO:tensorflow:TensorBoard path_to_run is: {'D:\tensorBoard': 'D'}<br>
INFO:tensorflow:Event Multiplexer initializing.<br>
INFO:tensorflow:Event Multiplexer done initializing<br>
INFO:tensorflow:TensorBoard reload process beginning<br>
INFO:tensorflow:Starting AddRunsFromDirectory: D:\tensorBoard<br>
INFO:tensorflow:Adding events from directory D:\tensorBoard<br>
INFO:tensorflow:Constructing EventAccumulator for D:\tensorBoard<br>
INFO:tensorflow:Done with AddRunsFromDirectory: D:\tensorBoard<br>
INFO:tensorflow:TensorBoard reload process: Reload the whole Multiplexer<br>
INFO:tensorflow:Beginning EventMultiplexer.Reload()<br>
DEBUG:tensorflow:Opening a record reader pointing at D:\tensorBoard\events.out.tfevents.1480577231.SHPC052<br>
DEBUG:tensorflow:No more events in D:\tensorBoard\events.out.tfevents.1480577231.SHPC052<br>
INFO:tensorflow:No path found after D:\tensorBoard\events.out.tfevents.1480577231.SHPC052<br>
INFO:tensorflow:Finished with EventMultiplexer.Reload()<br>
INFO:tensorflow:TensorBoard done reloading. Load took 0.008 secs<br>
INFO:tensorflow:TensorBoard is tag: b'39'<br>
Starting TensorBoard b'39' on port 6006<br>
(You can navigate to <a href="http://10.237.101.186:6006" rel="nofollow">http://10.237.101.186:6006</a>)<br>
INFO:tensorflow:path ../external\webcomponentsjs/webcomponents-lite.min.js not found, sending 404<br>
INFO:tensorflow:returning 404 to 127.0.0.1 for /webcomponentsjs/webcomponents-lite.min.js<br>
INFO:tensorflow:path ../external\plottable/plottable.css not found, sending 404<br>
INFO:tensorflow:returning 404 to 127.0.0.1 for /plottable/plottable.css<br>
INFO:tensorflow:TensorBoard reload process beginning<br>
INFO:tensorflow:Starting AddRunsFromDirectory: D:\tensorBoard<br>
INFO:tensorflow:Adding events from directory D:\tensorBoard<br>
INFO:tensorflow:Done with AddRunsFromDirectory: D:\tensorBoard<br>
INFO:tensorflow:TensorBoard reload process: Reload the whole Multiplexer<br>
INFO:tensorflow:Beginning EventMultiplexer.Reload()<br>
DEBUG:tensorflow:No more events in D:\tensorBoard\events.out.tfevents.1480577231.SHPC052<br>
INFO:tensorflow:No path found after D:\tensorBoard\events.out.tfevents.1480577231.SHPC052<br>
INFO:tensorflow:Finished with EventMultiplexer.Reload()<br>
INFO:tensorflow:TensorBoard done reloading. Load took 0.009 secs</p>
<hr>
<p dir="auto">this is like 404 problem.</p>
<p dir="auto">INFO:tensorflow:path ../external\webcomponentsjs/webcomponents-lite.min.js not found, sending 404<br>
INFO:tensorflow:returning 404 to 127.0.0.1 for /webcomponentsjs/webcomponents-lite.min.js<br>
INFO:tensorflow:path ../external\plottable/plottable.css not found, sending 404<br>
INFO:tensorflow:returning 404 to 127.0.0.1 for /plottable/plottable.css</p>
<p dir="auto">Can anyone help me?<br>
Thank you very much.</p> | <p dir="auto">I installed the tensorflow for windows with<br>
<code class="notranslate">pip install --upgrade --ignore-installed https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl</code><br>
(I added the '--ignore-installed', for the official one didn't work on my pc)</p>
<p dir="auto">Then I tried some code and ran tensorboard, however the browser shows nothing<br>
When running with '--debug' there appears some 404.<br>
I also tried tensorboard on mac os, it worked well, so the problem is not caused by the .tfevent file<br>
I've read through a bunch of related issues, and found that maybe the pip install didn't install tensorflow completely. And I searched the tensorflow file and did not found some certain files appears in mac os tensorflow, such as 'paper-toolkit'</p> | 1 |
<p dir="auto">I was trying to use a tf.while loop inside another tf.while loop . I cross checked many times , but I am getting this error . If somehow managed to get over this error , I am getting another error called nothing to read from index 0 of tensor array , as nothing has been written to it . If you guys want , I can post the full code . This code is based on the modification of code by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alrojo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alrojo">@alrojo</a> , from his wondeful tutorial .</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/10637096/20048372/1d95eeda-a4e2-11e6-8011-36fdfaf35f8c.png"><img src="https://cloud.githubusercontent.com/assets/10637096/20048372/1d95eeda-a4e2-11e6-8011-36fdfaf35f8c.png" alt="issue1" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/10637096/20048373/1d96cf9e-a4e2-11e6-9c78-e8e8836767f9.png"><img src="https://cloud.githubusercontent.com/assets/10637096/20048373/1d96cf9e-a4e2-11e6-9c78-e8e8836767f9.png" alt="issue2" style="max-width: 100%;"></a></p> | <p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10 x64</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:</li>
<li>TensorFlow installed from (source or binary): source</li>
<li>TensorFlow version: git tag v2.0.0_beta1</li>
<li>Python version: 3.6.7</li>
<li>Installed using virtualenv? pip? conda?:</li>
<li>Bazel version (if compiling from source): bazel release 0.24.1</li>
<li>GCC/Compiler version (if compiling from source): "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC//bin/amd64/cl.exe"<br>
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24234.1 for x64</li>
<li>CUDA/cuDNN version: 10.1/7.6.1</li>
<li>GPU model and memory: GeForce GTX 1060 (6GB)</li>
</ul>
<p dir="auto"><strong>Describe the problem</strong><br>
Build fails, each time with other .h file, that it can't find.<br>
All files are available.</p>
<p dir="auto">Run 1:<br>
ERROR: D:/data/users/andrey/projects/tensorflow_gpu_v2.0_3/tensorflow/core/kernels/data/BUILD:1012:1: C++ compilation of rule '//tensorflow/core/kernels/data:optional_ops_gpu' failed (Exit 2): python.exe failed: error executing command<br>
cd C:/users/andrey/_bazel_andrey/ntapso4i/execroot/org_tensorflow<br>
SET CUDA_TOOLKIT_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1<br>
SET INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt;<br>
SET LIB=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB\amd64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64;<br>
SET PATH=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64;C:\windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64;;C:\windows\system32<br>
SET PWD=/proc/self/cwd<br>
SET PYTHON_BIN_PATH=D:/Data/Users/andrey/AppData/Local/Programs/Python/Python36/python.exe<br>
SET PYTHON_LIB_PATH=D:/Data/Users/andrey/AppData/Local/Programs/Python/Python36/lib/site-packages<br>
SET TEMP=C:\Users\andrey\AppData\Local\Temp<br>
SET TF_CONFIGURE_IOS=0<br>
SET TF_CUDA_COMPUTE_CAPABILITIES=6.1<br>
SET TF_CUDA_PATHS=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1,C:/Program Files/cudnn-10.1-windows10-x64-v7.6.1.34<br>
SET TF_CUDA_VERSION=10.1<br>
SET TF_CUDNN_VERSION=7.6.1<br>
SET TF_NEED_CUDA=1<br>
SET TMP=C:\Users\andrey\AppData\Local\Temp<br>
D:/Data/Users/andrey/AppData/Local/Programs/Python/Python36/python.exe -B external/local_config_cuda/crosstool/windows/msvc_wrapper_for_nvcc.py /nologo /DCOMPILER_MSVC /DNOMINMAX /D_WIN32_WINNT=0x0600 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS /D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS /bigobj /Zm500 /J /Gy /GF /EHsc /wd4351 /wd4291 /wd4250 /wd4996 /I. /Ibazel-out/x64_windows-opt/genfiles /Ibazel-out/x64_windows-opt/bin /Iexternal/com_google_absl /Ibazel-out/x64_windows-opt/genfiles/external/com_google_absl /Ibazel-out/x64_windows-opt/bin/external/com_google_absl /Iexternal/eigen_archive /Ibazel-out/x64_windows-opt/genfiles/external/eigen_archive /Ibazel-out/x64_windows-opt/bin/external/eigen_archive /Iexternal/local_config_sycl /Ibazel-out/x64_windows-opt/genfiles/external/local_config_sycl /Ibazel-out/x64_windows-opt/bin/external/local_config_sycl /Iexternal/nsync /Ibazel-out/x64_windows-opt/genfiles/external/nsync /Ibazel-out/x64_windows-opt/bin/external/nsync /Iexternal/gif_archive /Ibazel-out/x64_windows-opt/genfiles/external/gif_archive /Ibazel-out/x64_windows-opt/bin/external/gif_archive /Iexternal/jpeg /Ibazel-out/x64_windows-opt/genfiles/external/jpeg /Ibazel-out/x64_windows-opt/bin/external/jpeg /Iexternal/protobuf_archive /Ibazel-out/x64_windows-opt/genfiles/external/protobuf_archive /Ibazel-out/x64_windows-opt/bin/external/protobuf_archive /Iexternal/com_googlesource_code_re2 /Ibazel-out/x64_windows-opt/genfiles/external/com_googlesource_code_re2 /Ibazel-out/x64_windows-opt/bin/external/com_googlesource_code_re2 /Iexternal/farmhash_archive /Ibazel-out/x64_windows-opt/genfiles/external/farmhash_archive /Ibazel-out/x64_windows-opt/bin/external/farmhash_archive /Iexternal/fft2d /Ibazel-out/x64_windows-opt/genfiles/external/fft2d /Ibazel-out/x64_windows-opt/bin/external/fft2d /Iexternal/highwayhash /Ibazel-out/x64_windows-opt/genfiles/external/highwayhash /Ibazel-out/x64_windows-opt/bin/external/highwayhash /Iexternal/zlib_archive /Ibazel-out/x64_windows-opt/genfiles/external/zlib_archive /Ibazel-out/x64_windows-opt/bin/external/zlib_archive /Iexternal/double_conversion /Ibazel-out/x64_windows-opt/genfiles/external/double_conversion /Ibazel-out/x64_windows-opt/bin/external/double_conversion /Iexternal/snappy /Ibazel-out/x64_windows-opt/genfiles/external/snappy /Ibazel-out/x64_windows-opt/bin/external/snappy /Iexternal/local_config_cuda /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda/_virtual_includes/cuda_headers_virtual /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda/<em>virtual_includes/cudnn_header /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda/<em>virtual_includes/cublas_headers_virtual /Iexternal/eigen_archive /Ibazel-out/x64_windows-opt/genfiles/external/eigen_archive /Ibazel-out/x64_windows-opt/bin/external/eigen_archive /Iexternal/nsync/public /Ibazel-out/x64_windows-opt/genfiles/external/nsync/public /Ibazel-out/x64_windows-opt/bin/external/nsync/public /Iexternal/gif_archive/lib /Ibazel-out/x64_windows-opt/genfiles/external/gif_archive/lib /Ibazel-out/x64_windows-opt/bin/external/gif_archive/lib /Iexternal/gif_archive/windows /Ibazel-out/x64_windows-opt/genfiles/external/gif_archive/windows /Ibazel-out/x64_windows-opt/bin/external/gif_archive/windows /Iexternal/protobuf_archive/src /Ibazel-out/x64_windows-opt/genfiles/external/protobuf_archive/src /Ibazel-out/x64_windows-opt/bin/external/protobuf_archive/src /Iexternal/farmhash_archive/src /Ibazel-out/x64_windows-opt/genfiles/external/farmhash_archive/src /Ibazel-out/x64_windows-opt/bin/external/farmhash_archive/src /Iexternal/zlib_archive /Ibazel-out/x64_windows-opt/genfiles/external/zlib_archive /Ibazel-out/x64_windows-opt/bin/external/zlib_archive /Iexternal/double_conversion /Ibazel-out/x64_windows-opt/genfiles/external/double_conversion /Ibazel-out/x64_windows-opt/bin/external/double_conversion /Iexternal/local_config_cuda/cuda /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda/cuda /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda /Iexternal/local_config_cuda/cuda/cuda/include /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda/cuda/cuda/include /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda/cuda/include /Iexternal/local_config_cuda/cuda/cublas/include /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda/cuda/cublas/include /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda/cublas/include /D__CLANG_SUPPORT_DYN_ANNOTATION</em></em> /DEIGEN_MPL2_ONLY /DEIGEN_MAX_ALIGN_BYTES=64 /DEIGEN_HAS_TYPE_TRAITS=0 /DTF_USE_SNAPPY /showIncludes /MD /O2 /DNDEBUG -w -DWIN32_LEAN_AND_MEAN -DNOGDI /arch:AVX2 -nvcc_options=disable-warnings -DGOOGLE_CUDA=1 -DTENSORFLOW_MONOLITHIC_BUILD /DPLATFORM_WINDOWS /DEIGEN_HAS_C99_MATH /DTENSORFLOW_USE_EIGEN_THREADPOOL /DEIGEN_AVOID_STL_ARRAY /Iexternal/gemmlowp /wd4018 /wd4577 /DNOGDI /DTF_COMPILE_LIBRARY -x cuda -DGOOGLE_CUDA=1 -nvcc_options=relaxed-constexpr -nvcc_options=ftz=true /Fobazel-out/x64_windows-opt/bin/tensorflow/core/kernels/data/_objs/optional_ops_gpu/optional_ops.cu.o /c tensorflow/core/kernels/data/optional_ops.cu.cc<br>
Execution platform: @bazel_tools//platforms:host_platform<br>
c1xx: fatal error C1083: Cannot open source file: 'tensorflow/core/kernels/data/optional_ops.cu.cc': No such file or directory<br>
Target //tensorflow/tools/pip_package:build_pip_package failed to build</p>
<p dir="auto">Run 2:<br>
ERROR: D:/data/users/andrey/projects/tensorflow_gpu_v2.0_3/tensorflow/contrib/framework/BUILD:111:1: C++ compilation of rule '//tensorflow/contrib/framework:python/ops/_variable_ops_gpu' failed (Exit 2): python.exe failed: error executing command<br>
cd C:/users/andrey/<em>bazel_andrey/ntapso4i/execroot/org_tensorflow<br>
SET CUDA_TOOLKIT_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1<br>
SET INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt;<br>
SET LIB=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB\amd64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64;<br>
SET PATH=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64;C:\windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64;;C:\windows\system32<br>
SET PWD=/proc/self/cwd<br>
SET PYTHON_BIN_PATH=D:/Data/Users/andrey/AppData/Local/Programs/Python/Python36/python.exe<br>
SET PYTHON_LIB_PATH=D:/Data/Users/andrey/AppData/Local/Programs/Python/Python36/lib/site-packages<br>
SET TEMP=C:\Users\andrey\AppData\Local\Temp<br>
SET TF_CONFIGURE_IOS=0<br>
SET TF_CUDA_COMPUTE_CAPABILITIES=6.1<br>
SET TF_CUDA_PATHS=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1,C:/Program Files/cudnn-10.1-windows10-x64-v7.6.1.34<br>
SET TF_CUDA_VERSION=10.1<br>
SET TF_CUDNN_VERSION=7.6.1<br>
SET TF_NEED_CUDA=1<br>
SET TMP=C:\Users\andrey\AppData\Local\Temp<br>
D:/Data/Users/andrey/AppData/Local/Programs/Python/Python36/python.exe -B external/local_config_cuda/crosstool/windows/msvc_wrapper_for_nvcc.py /nologo /DCOMPILER_MSVC /DNOMINMAX /D_WIN32_WINNT=0x0600 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS /D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS /bigobj /Zm500 /J /Gy /GF /EHsc /wd4351 /wd4291 /wd4250 /wd4996 /I. /Ibazel-out/x64_windows-opt/genfiles /Ibazel-out/x64_windows-opt/bin /Iexternal/protobuf_archive /Ibazel-out/x64_windows-opt/genfiles/external/protobuf_archive /Ibazel-out/x64_windows-opt/bin/external/protobuf_archive /Iexternal/eigen_archive /Ibazel-out/x64_windows-opt/genfiles/external/eigen_archive /Ibazel-out/x64_windows-opt/bin/external/eigen_archive /Iexternal/local_config_sycl /Ibazel-out/x64_windows-opt/genfiles/external/local_config_sycl /Ibazel-out/x64_windows-opt/bin/external/local_config_sycl /Iexternal/com_google_absl /Ibazel-out/x64_windows-opt/genfiles/external/com_google_absl /Ibazel-out/x64_windows-opt/bin/external/com_google_absl /Iexternal/local_config_cuda /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda/<em>virtual_includes/cuda_headers_virtual /Iexternal/protobuf_archive/src /Ibazel-out/x64_windows-opt/genfiles/external/protobuf_archive/src /Ibazel-out/x64_windows-opt/bin/external/protobuf_archive/src /Iexternal/eigen_archive /Ibazel-out/x64_windows-opt/genfiles/external/eigen_archive /Ibazel-out/x64_windows-opt/bin/external/eigen_archive /Iexternal/local_config_cuda/cuda /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda/cuda /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda /Iexternal/local_config_cuda/cuda/cuda/include /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda/cuda/cuda/include /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda/cuda/include /DEIGEN_MPL2_ONLY /DEIGEN_MAX_ALIGN_BYTES=64 /DEIGEN_HAS_TYPE_TRAITS=0 /D__CLANG_SUPPORT_DYN_ANNOTATION</em></em> /showIncludes /MD /O2 /DNDEBUG -w -DWIN32_LEAN_AND_MEAN -DNOGDI /arch:AVX2 -nvcc_options=disable-warnings /DEIGEN_STRONG_INLINE=inline -x cuda -DGOOGLE_CUDA=1 -nvcc_options=relaxed-constexpr -nvcc_options=ftz=true /Fobazel-out/x64_windows-opt/bin/tensorflow/contrib/framework/_objs/python/ops/_variable_ops_gpu/zero_initializer_op_gpu.cu.o /c tensorflow/contrib/framework/kernels/zero_initializer_op_gpu.cu.cc<br>
Execution platform: @bazel_tools//platforms:host_platform<br>
c1xx: fatal error C1083: Cannot open source file: 'tensorflow/contrib/framework/kernels/zero_initializer_op_gpu.cu.cc': No such file or directory<br>
Target //tensorflow/tools/pip_package:build_pip_package failed to build</p>
<p dir="auto">Run 3:<br>
ERROR: D:/data/users/andrey/projects/tensorflow_gpu_v2.0_3/tensorflow/contrib/rnn/BUILD:199:1: C++ compilation of rule '//tensorflow/contrib/rnn:python/ops/_gru_ops_gpu' failed (Exit 2): python.exe failed: error executing command<br>
cd C:/users/andrey/<em>bazel_andrey/ntapso4i/execroot/org_tensorflow<br>
SET CUDA_TOOLKIT_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1<br>
SET INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt;<br>
SET LIB=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB\amd64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64;<br>
SET PATH=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64;C:\windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64;;C:\windows\system32<br>
SET PWD=/proc/self/cwd<br>
SET PYTHON_BIN_PATH=D:/Data/Users/andrey/AppData/Local/Programs/Python/Python36/python.exe<br>
SET PYTHON_LIB_PATH=D:/Data/Users/andrey/AppData/Local/Programs/Python/Python36/lib/site-packages<br>
SET TEMP=C:\Users\andrey\AppData\Local\Temp<br>
SET TF_CONFIGURE_IOS=0<br>
SET TF_CUDA_COMPUTE_CAPABILITIES=6.1<br>
SET TF_CUDA_PATHS=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1,C:/Program Files/cudnn-10.1-windows10-x64-v7.6.1.34<br>
SET TF_CUDA_VERSION=10.1<br>
SET TF_CUDNN_VERSION=7.6.1<br>
SET TF_NEED_CUDA=1<br>
SET TMP=C:\Users\andrey\AppData\Local\Temp<br>
D:/Data/Users/andrey/AppData/Local/Programs/Python/Python36/python.exe -B external/local_config_cuda/crosstool/windows/msvc_wrapper_for_nvcc.py /nologo /DCOMPILER_MSVC /DNOMINMAX /D_WIN32_WINNT=0x0600 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS /D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS /bigobj /Zm500 /J /Gy /GF /EHsc /wd4351 /wd4291 /wd4250 /wd4996 /I. /Ibazel-out/x64_windows-opt/genfiles /Ibazel-out/x64_windows-opt/bin /Iexternal/eigen_archive /Ibazel-out/x64_windows-opt/genfiles/external/eigen_archive /Ibazel-out/x64_windows-opt/bin/external/eigen_archive /Iexternal/local_config_sycl /Ibazel-out/x64_windows-opt/genfiles/external/local_config_sycl /Ibazel-out/x64_windows-opt/bin/external/local_config_sycl /Iexternal/protobuf_archive /Ibazel-out/x64_windows-opt/genfiles/external/protobuf_archive /Ibazel-out/x64_windows-opt/bin/external/protobuf_archive /Iexternal/com_google_absl /Ibazel-out/x64_windows-opt/genfiles/external/com_google_absl /Ibazel-out/x64_windows-opt/bin/external/com_google_absl /Iexternal/local_config_cuda /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda/<em>virtual_includes/cuda_headers_virtual /Iexternal/eigen_archive /Ibazel-out/x64_windows-opt/genfiles/external/eigen_archive /Ibazel-out/x64_windows-opt/bin/external/eigen_archive /Iexternal/protobuf_archive/src /Ibazel-out/x64_windows-opt/genfiles/external/protobuf_archive/src /Ibazel-out/x64_windows-opt/bin/external/protobuf_archive/src /Iexternal/local_config_cuda/cuda /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda/cuda /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda /Iexternal/local_config_cuda/cuda/cuda/include /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda/cuda/cuda/include /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda/cuda/include /DEIGEN_MPL2_ONLY /DEIGEN_MAX_ALIGN_BYTES=64 /DEIGEN_HAS_TYPE_TRAITS=0 /D__CLANG_SUPPORT_DYN_ANNOTATION</em></em> /showIncludes /MD /O2 /DNDEBUG -w -DWIN32_LEAN_AND_MEAN -DNOGDI /arch:AVX2 -nvcc_options=disable-warnings /DEIGEN_STRONG_INLINE=inline -x cuda -DGOOGLE_CUDA=1 -nvcc_options=relaxed-constexpr -nvcc_options=ftz=true /Fobazel-out/x64_windows-opt/bin/tensorflow/contrib/rnn/_objs/python/ops/_gru_ops_gpu/gru_ops_gpu.cu.o /c tensorflow/contrib/rnn/kernels/gru_ops_gpu.cu.cc<br>
Execution platform: @bazel_tools//platforms:host_platform<br>
c1xx: fatal error C1083: Cannot open source file: 'tensorflow/contrib/rnn/kernels/gru_ops_gpu.cu.cc': No such file or directory<br>
Target //tensorflow/tools/pip_package:build_pip_package failed to build</p>
<p dir="auto">Run 4:<br>
ERROR: D:/data/users/andrey/projects/tensorflow_gpu_v2.0_3/tensorflow/core/kernels/BUILD:321:1: C++ compilation of rule '//tensorflow/core/kernels:extract_volume_patches_op_gpu' failed (Exit 2): python.exe failed: error executing command<br>
cd C:/users/andrey/_bazel_andrey/ntapso4i/execroot/org_tensorflow<br>
SET CUDA_TOOLKIT_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1<br>
SET INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt;<br>
SET LIB=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB\amd64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64;<br>
SET PATH=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64;C:\windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64;;C:\windows\system32<br>
SET PWD=/proc/self/cwd<br>
SET PYTHON_BIN_PATH=D:/Data/Users/andrey/AppData/Local/Programs/Python/Python36/python.exe<br>
SET PYTHON_LIB_PATH=D:/Data/Users/andrey/AppData/Local/Programs/Python/Python36/lib/site-packages<br>
SET TEMP=C:\Users\andrey\AppData\Local\Temp<br>
SET TF_CONFIGURE_IOS=0<br>
SET TF_CUDA_COMPUTE_CAPABILITIES=6.1<br>
SET TF_CUDA_PATHS=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1,C:/Program Files/cudnn-10.1-windows10-x64-v7.6.1.34<br>
SET TF_CUDA_VERSION=10.1<br>
SET TF_CUDNN_VERSION=7.6.1<br>
SET TF_NEED_CUDA=1<br>
SET TMP=C:\Users\andrey\AppData\Local\Temp<br>
D:/Data/Users/andrey/AppData/Local/Programs/Python/Python36/python.exe -B external/local_config_cuda/crosstool/windows/msvc_wrapper_for_nvcc.py /nologo /DCOMPILER_MSVC /DNOMINMAX /D_WIN32_WINNT=0x0600 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS /D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS /bigobj /Zm500 /J /Gy /GF /EHsc /wd4351 /wd4291 /wd4250 /wd4996 /I. /Ibazel-out/x64_windows-opt/genfiles /Ibazel-out/x64_windows-opt/bin /Iexternal/com_google_absl /Ibazel-out/x64_windows-opt/genfiles/external/com_google_absl /Ibazel-out/x64_windows-opt/bin/external/com_google_absl /Iexternal/eigen_archive /Ibazel-out/x64_windows-opt/genfiles/external/eigen_archive /Ibazel-out/x64_windows-opt/bin/external/eigen_archive /Iexternal/local_config_sycl /Ibazel-out/x64_windows-opt/genfiles/external/local_config_sycl /Ibazel-out/x64_windows-opt/bin/external/local_config_sycl /Iexternal/mkl_dnn /Ibazel-out/x64_windows-opt/genfiles/external/mkl_dnn /Ibazel-out/x64_windows-opt/bin/external/mkl_dnn /Iexternal/nsync /Ibazel-out/x64_windows-opt/genfiles/external/nsync /Ibazel-out/x64_windows-opt/bin/external/nsync /Iexternal/gif_archive /Ibazel-out/x64_windows-opt/genfiles/external/gif_archive /Ibazel-out/x64_windows-opt/bin/external/gif_archive /Iexternal/jpeg /Ibazel-out/x64_windows-opt/genfiles/external/jpeg /Ibazel-out/x64_windows-opt/bin/external/jpeg /Iexternal/protobuf_archive /Ibazel-out/x64_windows-opt/genfiles/external/protobuf_archive /Ibazel-out/x64_windows-opt/bin/external/protobuf_archive /Iexternal/com_googlesource_code_re2 /Ibazel-out/x64_windows-opt/genfiles/external/com_googlesource_code_re2 /Ibazel-out/x64_windows-opt/bin/external/com_googlesource_code_re2 /Iexternal/farmhash_archive /Ibazel-out/x64_windows-opt/genfiles/external/farmhash_archive /Ibazel-out/x64_windows-opt/bin/external/farmhash_archive /Iexternal/fft2d /Ibazel-out/x64_windows-opt/genfiles/external/fft2d /Ibazel-out/x64_windows-opt/bin/external/fft2d /Iexternal/highwayhash /Ibazel-out/x64_windows-opt/genfiles/external/highwayhash /Ibazel-out/x64_windows-opt/bin/external/highwayhash /Iexternal/zlib_archive /Ibazel-out/x64_windows-opt/genfiles/external/zlib_archive /Ibazel-out/x64_windows-opt/bin/external/zlib_archive /Iexternal/double_conversion /Ibazel-out/x64_windows-opt/genfiles/external/double_conversion /Ibazel-out/x64_windows-opt/bin/external/double_conversion /Iexternal/snappy /Ibazel-out/x64_windows-opt/genfiles/external/snappy /Ibazel-out/x64_windows-opt/bin/external/snappy /Iexternal/local_config_cuda /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda/_virtual_includes/cuda_headers_virtual /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda/<em>virtual_includes/cublas_headers_virtual /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda/<em>virtual_includes/cudnn_header /Iexternal/eigen_archive /Ibazel-out/x64_windows-opt/genfiles/external/eigen_archive /Ibazel-out/x64_windows-opt/bin/external/eigen_archive /Iexternal/mkl_dnn/include /Ibazel-out/x64_windows-opt/genfiles/external/mkl_dnn/include /Ibazel-out/x64_windows-opt/bin/external/mkl_dnn/include /Iexternal/mkl_dnn/src /Ibazel-out/x64_windows-opt/genfiles/external/mkl_dnn/src /Ibazel-out/x64_windows-opt/bin/external/mkl_dnn/src /Iexternal/mkl_dnn/src/common /Ibazel-out/x64_windows-opt/genfiles/external/mkl_dnn/src/common /Ibazel-out/x64_windows-opt/bin/external/mkl_dnn/src/common /Iexternal/mkl_dnn/src/cpu /Ibazel-out/x64_windows-opt/genfiles/external/mkl_dnn/src/cpu /Ibazel-out/x64_windows-opt/bin/external/mkl_dnn/src/cpu /Iexternal/mkl_dnn/src/cpu/gemm /Ibazel-out/x64_windows-opt/genfiles/external/mkl_dnn/src/cpu/gemm /Ibazel-out/x64_windows-opt/bin/external/mkl_dnn/src/cpu/gemm /Iexternal/mkl_dnn/src/cpu/xbyak /Ibazel-out/x64_windows-opt/genfiles/external/mkl_dnn/src/cpu/xbyak /Ibazel-out/x64_windows-opt/bin/external/mkl_dnn/src/cpu/xbyak /Iexternal/nsync/public /Ibazel-out/x64_windows-opt/genfiles/external/nsync/public /Ibazel-out/x64_windows-opt/bin/external/nsync/public /Iexternal/gif_archive/lib /Ibazel-out/x64_windows-opt/genfiles/external/gif_archive/lib /Ibazel-out/x64_windows-opt/bin/external/gif_archive/lib /Iexternal/gif_archive/windows /Ibazel-out/x64_windows-opt/genfiles/external/gif_archive/windows /Ibazel-out/x64_windows-opt/bin/external/gif_archive/windows /Iexternal/protobuf_archive/src /Ibazel-out/x64_windows-opt/genfiles/external/protobuf_archive/src /Ibazel-out/x64_windows-opt/bin/external/protobuf_archive/src /Iexternal/farmhash_archive/src /Ibazel-out/x64_windows-opt/genfiles/external/farmhash_archive/src /Ibazel-out/x64_windows-opt/bin/external/farmhash_archive/src /Iexternal/zlib_archive /Ibazel-out/x64_windows-opt/genfiles/external/zlib_archive /Ibazel-out/x64_windows-opt/bin/external/zlib_archive /Iexternal/double_conversion /Ibazel-out/x64_windows-opt/genfiles/external/double_conversion /Ibazel-out/x64_windows-opt/bin/external/double_conversion /Iexternal/local_config_cuda/cuda /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda/cuda /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda /Iexternal/local_config_cuda/cuda/cuda/include /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda/cuda/cuda/include /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda/cuda/include /Iexternal/local_config_cuda/cuda/cublas/include /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda/cuda/cublas/include /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda/cublas/include /D__CLANG_SUPPORT_DYN_ANNOTATION</em></em> /DEIGEN_MPL2_ONLY /DEIGEN_MAX_ALIGN_BYTES=64 /DEIGEN_HAS_TYPE_TRAITS=0 /DTENSORFLOW_USE_CUSTOM_CONTRACTION_KERNEL /DTENSORFLOW_USE_MKLDNN_CONTRACTION_KERNEL /DTF_USE_SNAPPY /showIncludes /MD /O2 /DNDEBUG -w -DWIN32_LEAN_AND_MEAN -DNOGDI /arch:AVX2 -nvcc_options=disable-warnings -DGOOGLE_CUDA=1 -DTENSORFLOW_MONOLITHIC_BUILD /DPLATFORM_WINDOWS /DEIGEN_HAS_C99_MATH /DTENSORFLOW_USE_EIGEN_THREADPOOL /DEIGEN_AVOID_STL_ARRAY /Iexternal/gemmlowp /wd4018 /wd4577 /DNOGDI /DTF_COMPILE_LIBRARY -x cuda -DGOOGLE_CUDA=1 -nvcc_options=relaxed-constexpr -nvcc_options=ftz=true /Fobazel-out/x64_windows-opt/bin/tensorflow/core/kernels/_objs/extract_volume_patches_op_gpu/extract_volume_patches_op_gpu.cu.o /c tensorflow/core/kernels/extract_volume_patches_op_gpu.cu.cc<br>
Execution platform: @bazel_tools//platforms:host_platform<br>
c1xx: fatal error C1083: Cannot open source file: 'tensorflow/core/kernels/extract_volume_patches_op_gpu.cu.cc': No such file or directory<br>
Target //tensorflow/tools/pip_package:build_pip_package failed to build</p>
<p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong><br>
bazel build --config=opt --config=cuda --copt=-nvcc_options=disable-warnings //tensorflow/tools/pip_package:build_pip_package</p>
<p dir="auto"><strong>Any other info / logs</strong><br>
.tf_configure.bazelrc<br>
build --action_env PYTHON_BIN_PATH="D:/Data/Users/andrey/AppData/Local/Programs/Python/Python36/python.exe"<br>
build --action_env PYTHON_LIB_PATH="D:/Data/Users/andrey/AppData/Local/Programs/Python/Python36/lib/site-packages"<br>
build --python_path="D:/Data/Users/andrey/AppData/Local/Programs/Python/Python36/python.exe"<br>
build:xla --define with_xla_support=false<br>
build --action_env TF_CUDA_VERSION="10.1"<br>
build --action_env TF_CUDNN_VERSION="7.6.1"<br>
build --action_env TF_CUDA_PATHS="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1,C:/Program Files/cudnn-10.1-windows10-x64-v7.6.1.34"<br>
build --action_env CUDA_TOOLKIT_PATH="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1"<br>
build --action_env TF_CUDA_COMPUTE_CAPABILITIES="6.1"<br>
build --config=cuda<br>
build:opt --copt=/arch:AVX2<br>
build:opt --define with_default_optimizations=true<br>
build --config monolithic<br>
build --copt=-w --host_copt=-w<br>
build --copt=-DWIN32_LEAN_AND_MEAN --host_copt=-DWIN32_LEAN_AND_MEAN --copt=-DNOGDI --host_copt=-DNOGDI<br>
build --verbose_failures<br>
build --distinct_host_configuration=false<br>
build --define=override_eigen_strong_inline=true<br>
build:v2 --define=tf_api_version=2<br>
test --flaky_test_attempts=3<br>
test --test_size_filters=small,medium<br>
test --test_tag_filters=-benchmark-test,-no_oss,-oss_serial<br>
test --build_tag_filters=-benchmark-test,-no_oss<br>
test --test_tag_filters=-no_windows,-gpu<br>
test --build_tag_filters=-no_windows,-gpu<br>
build --action_env TF_CONFIGURE_IOS="0"</p> | 0 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=condor" rel="nofollow">Condor</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2076?redirect=false" rel="nofollow">SPR-2076</a></strong> and commented</p>
<p dir="auto">It would be nice if the HTML tags would contain support for message code resolving for the title, alt, accessKey and itemLabel attributes (just like the Struts HTML taglib).</p>
<p dir="auto">I suggest adding titleCode, altCode, accessKeyCode and itemLabelCode attributes to specify a message code instead of a value.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0 RC1</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398070528" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7255" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7255/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7255">#7255</a> form:label/ should have MessageSource support (<em><strong>"duplicates"</strong></em>)</li>
</ul> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=klr8" rel="nofollow">Erwin Vervaet</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9046?redirect=false" rel="nofollow">SPR-9046</a></strong> and commented</p>
<p dir="auto">When using <code class="notranslate">@ActiveProfiles</code> to activate certain profiles in a test that uses AnnotationConfigContextLoader to load a <code class="notranslate">@Configuration</code> context definition which imports XML application context definitions using <code class="notranslate">@ImportResource</code>, the active profiles are not considered when loading the XML context definition.</p>
<p dir="auto">See the attached files for a test reproducing the problem. This test fails with the following error:</p>
<p dir="auto">org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [test.ContextLoadingProblem$Bar] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {<code class="notranslate">@org</code>.springframework.beans.factory.annotation.Autowired(required=true)}</p>
<p dir="auto">Note that if you use XML throughout (i.e. import one XML context definition from another), the problem does not arise.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1 GA</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/19325/bar-context.xml" rel="nofollow">bar-context.xml</a> (<em>613 bytes</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/19326/ContextLoadingProblem.java" rel="nofollow">ContextLoadingProblem.java</a> (<em>1.31 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="398116450" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13632" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13632/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13632">#13632</a> <code class="notranslate">@ActiveProfiles</code> are not cascaded down to contexts loaded via <code class="notranslate">@ImportResource</code> (<em><strong>"duplicates"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398112653" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13040" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13040/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13040">#13040</a> AnnotatedBeanDefinitionReader's constructor should inherit Environment of supplied BeanDefinitionRegistry</li>
</ul> | 0 |
<p dir="auto">I am trying to make a loss function with varying input sizes. I am getting the following error:<br>
<code class="notranslate">TypeError: __int__ returned non-int (type NoneType)</code> when compiling the model</p>
<p dir="auto">Steps to get the error:<br>
Make architecture in Keras with None type as input: <code class="notranslate">input_image = Input(shape=(None, None, 3))</code><br>
Then make a custom loss function and try to access the size of the tensor</p>
<p dir="auto"><code class="notranslate">def custom_loss(y_true, y_pred):</code><br>
<code class="notranslate">yp_size = [int(y_pred.get_shape()[0]), int(y_pred.get_shape()[1]), int(y_pred.get_shape()[2]), int(y_pred.get_shape()[3])]</code><br>
<code class="notranslate">cell_x = tf.tile(tf.range(yp_size[1]), [yp_size[2]]) # And code will go on eventually returning loss</code></p>
<p dir="auto">Then compile model:<br>
<code class="notranslate">model.compile(loss=custom_loss, optimizer=optimizer)</code></p>
<p dir="auto">Theoretically the method should run fine at runtime but it is showing this error. Can I get any workaround for this?</p>
<p dir="auto">P.S. I don't want to pad my tensors to a fixed size. And sorry if the issue got uploaded multiple times.</p> | <p dir="auto">I am trying to make a loss function with varying input sizes. I am getting the following error:<br>
<code class="notranslate">TypeError: __int__ returned non-int (type NoneType)</code> when compiling the model</p>
<p dir="auto">Steps to get the error:<br>
Make architecture in Keras with None type as input: <code class="notranslate">input_image = Input(shape=(None, None, 3))</code><br>
Then make a custom loss function and try to access the size of the tensor</p>
<p dir="auto"><code class="notranslate">def custom_loss(y_true, y_pred):</code><br>
<code class="notranslate">yp_size = [int(y_pred.get_shape()[0]), int(y_pred.get_shape()[1]), int(y_pred.get_shape()[2]), int(y_pred.get_shape()[3])]</code><br>
<code class="notranslate">cell_x = tf.tile(tf.range(yp_size[1]), [yp_size[2]]) # And code will go on eventually returning loss</code></p>
<p dir="auto">Then compile model:<br>
<code class="notranslate">model.compile(loss=custom_loss, optimizer=optimizer)</code></p>
<p dir="auto">Theoretically the method should run fine at runtime but it is showing this error. Can I get any workaround for this?</p>
<p dir="auto">P.S. I don't want to pad my tensors to a fixed size</p> | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.