text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<p dir="auto">See <a href="http://plnkr.co/edit/fj6lzemiFQUP5XsdjQHN?p=preview" rel="nofollow">Plunker</a> and select its <em>Launch the preview in a separate window</em> in order to see resulting url:</p>
<ul dir="auto">
<li><code class="notranslate">['/Parent', {}, 'Child']">/Parent', {}, 'Child']</code> raises runtime error during application start</li>
<li><code class="notranslate">['/Parent2', {par:1, w:0, x:1}, 'Child2', {id:2, y:10, z:11}]</code> produces this url: <code class="notranslate">#/parent2/1/child2/2;y=10;z=11?w=0&x=1</code>, with some incostincency in processing extra parent-child attributes. I can expect <code class="notranslate">#/parent2/1/child2/2?y=10&z=11&w=0&x=1</code></li>
</ul> | <p dir="auto"><em>Using the <code class="notranslate">routerLink</code> directive as documented <a href="https://angular.io/docs/ts/latest/api/router/RouterLink-directive.html" rel="nofollow">here</a>.</em></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<a [routerLink]="['Hub', {}, 'Child']">Hub/Child</a>"><pre class="notranslate"><code class="notranslate"><a [routerLink]="['Hub', {}, 'Child']">Hub/Child</a>
</code></pre></div>
<p dir="auto">It results in a SyntaxError:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dom_element_schema_registry.ts:43 EXCEPTION: SyntaxError: Unexpected token )"><pre class="notranslate"><code class="notranslate">dom_element_schema_registry.ts:43 EXCEPTION: SyntaxError: Unexpected token )
</code></pre></div>
<p dir="auto">This only happens if the parameter 'object' is left empty.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<a [routerLink]="['Hub', {something: 333}, 'Child']">Hub/Child</a> -- Works
<a [routerLink]="['Hub', 'Child']">Hub/Child</a> -- Works
<a [routerLink]="['Hub', {}, 'Child']">Hub</a> -- Fails
<a [routerLink]="['Hub', {}]">Hub</a> -- Fails"><pre class="notranslate"><code class="notranslate"><a [routerLink]="['Hub', {something: 333}, 'Child']">Hub/Child</a> -- Works
<a [routerLink]="['Hub', 'Child']">Hub/Child</a> -- Works
<a [routerLink]="['Hub', {}, 'Child']">Hub</a> -- Fails
<a [routerLink]="['Hub', {}]">Hub</a> -- Fails
</code></pre></div> | 1 |
<h5 dir="auto">Issue Type: Bug report</h5>
<h5 dir="auto">Ansible Version: 1.6.6</h5>
<h5 dir="auto">Environment: OS X 10.9.4</h5>
<h5 dir="auto">Summary: Duplicate entires in output</h5>
<h5 dir="auto">Steps To Reproduce: Used "when" conditional for variable</h5>
<h5 dir="auto">Expected Results: For ansible to be able to parse and act upon result of testing variable</h5>
<h5 dir="auto">Actual Results: Duplicate info in error message:</h5>
<p dir="auto">ERROR: Syntax Error while loading YAML script, roundcube.yml<br>
Note: The error may actually appear before this position: line 129, column 28</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="command: /usr/sbin/setsebool -P httpd_can_network_connect_db 1
when: "{{rc_db_host}}" == "localhost"
^"><pre class="notranslate"><code class="notranslate">command: /usr/sbin/setsebool -P httpd_can_network_connect_db 1
when: "{{rc_db_host}}" == "localhost"
^
</code></pre></div>
<p dir="auto">We could be wrong, but this one looks like it might be an issue with<br>
unbalanced quotes. If starting a value with a quote, make sure the<br>
line ends with the same set of quotes. For instance this arbitrary<br>
example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo: "bad" "wolf""><pre class="notranslate"><code class="notranslate">foo: "bad" "wolf"
</code></pre></div>
<p dir="auto">Could be written as:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo: '"bad" "wolf"'"><pre class="notranslate"><code class="notranslate">foo: '"bad" "wolf"'
</code></pre></div>
<p dir="auto">We could be wrong, but this one looks like it might be an issue with<br>
missing quotes. Always quote template expression brackets when they<br>
start a value. For instance:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="with_items:
- {{ foo }}"><pre class="notranslate"><code class="notranslate">with_items:
- {{ foo }}
</code></pre></div>
<p dir="auto">Should be written as:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="with_items:
- "{{ foo }}" "><pre class="notranslate"><code class="notranslate">with_items:
- "{{ foo }}"
</code></pre></div>
<p dir="auto">We could be wrong, but this one looks like it might be an issue with<br>
unbalanced quotes. If starting a value with a quote, make sure the<br>
line ends with the same set of quotes. For instance this arbitrary<br>
example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo: "bad" "wolf""><pre class="notranslate"><code class="notranslate">foo: "bad" "wolf"
</code></pre></div>
<p dir="auto">Could be written as:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo: '"bad" "wolf"'"><pre class="notranslate"><code class="notranslate">foo: '"bad" "wolf"'
</code></pre></div> | <p dir="auto">The user module uses a list operation (extend) on a set, which causes ansible to crash (stacktrace). I will create a pull request.</p> | 0 |
<p dir="auto">I use the following command to run my scripts:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno run --watch --allow-net --allow-env --allow-read --unstable ./src/index.ts"><pre class="notranslate">deno run --watch --allow-net --allow-env --allow-read --unstable ./src/index.ts</pre></div>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// index.ts
Deno.serve(opts, (req) => {
return new Response()
})"><pre class="notranslate"><span class="pl-c">// index.ts</span>
<span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-en">serve</span><span class="pl-kos">(</span><span class="pl-s1">opts</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">req</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-smi">Response</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">Whenever I change the code in that file, I will get an error like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Uncaught (in promise) AddrInUse: Address already in use (os error 48)
Watcher Process finished. Restarting on file change..."><pre class="notranslate"><code class="notranslate">error: Uncaught (in promise) AddrInUse: Address already in use (os error 48)
Watcher Process finished. Restarting on file change...
</code></pre></div>
<p dir="auto">Which does not happen for the <code class="notranslate">std/http</code> api</p> | <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Deno.serve(() => new Response("Hello, world!"));"><pre class="notranslate"><span class="pl-v">Deno</span><span class="pl-kos">.</span><span class="pl-en">serve</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-k">new</span> <span class="pl-v">Response</span><span class="pl-kos">(</span><span class="pl-s">"Hello, world!"</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ deno run --allow-all --unstable --watch test.js"><pre class="notranslate"><code class="notranslate">$ deno run --allow-all --unstable --watch test.js
</code></pre></div>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Deno.serve(() => new Response("Hello, world!2")); //Save"><pre class="notranslate"><span class="pl-v">Deno</span><span class="pl-kos">.</span><span class="pl-en">serve</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-k">new</span> <span class="pl-v">Response</span><span class="pl-kos">(</span><span class="pl-s">"Hello, world!2"</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//Save</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Platform: linux x86_64
Version: 1.25.0
Args: ["deno", "run", "--allow-all", "--unstable", "--watch", "test.js"]
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', ext/flash/lib.rs:1316:42
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace"><pre class="notranslate"><code class="notranslate">Platform: linux x86_64
Version: 1.25.0
Args: ["deno", "run", "--allow-all", "--unstable", "--watch", "test.js"]
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', ext/flash/lib.rs:1316:42
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</code></pre></div> | 1 |
<p dir="auto">hi, i discover a question today<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12891899/70315431-87082980-1854-11ea-9866-342589663a32.png"><img src="https://user-images.githubusercontent.com/12891899/70315431-87082980-1854-11ea-9866-342589663a32.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12891899/70315512-b6b73180-1854-11ea-842a-68e785ac14bc.png"><img src="https://user-images.githubusercontent.com/12891899/70315512-b6b73180-1854-11ea-842a-68e785ac14bc.png" alt="微信图片_20191206181539" style="max-width: 100%;"></a></p>
<p dir="auto">Suggestion: You need to add a judgment that result is not equal to null, and ignore result equal to null</p> | <h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<p dir="auto">4.0.0-RC1</p>
<h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3>
<p dir="auto">sharding-proxy</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">I hope Navicat can connect sharding-proxy</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Navicat connection failed ,report No database selected</p>
<h3 dir="auto">Reason analyze (If you can)</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.shardingsphere.shardingproxy.backend.text.query;
import lombok.RequiredArgsConstructor;
import org.apache.shardingsphere.shardingproxy.backend.communication.DatabaseCommunicationEngine;
import org.apache.shardingsphere.shardingproxy.backend.communication.DatabaseCommunicationEngineFactory;
import org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.connection.BackendConnection;
import org.apache.shardingsphere.shardingproxy.backend.exception.NoDatabaseSelectedException;
import org.apache.shardingsphere.shardingproxy.backend.response.BackendResponse;
import org.apache.shardingsphere.shardingproxy.backend.response.error.ErrorResponse;
import org.apache.shardingsphere.shardingproxy.backend.response.query.QueryData;
import org.apache.shardingsphere.shardingproxy.backend.text.TextProtocolBackendHandler;
import java.sql.SQLException;
/**
* Backend handler with query.
*
* @author zhangliang
*/
@RequiredArgsConstructor
public final class QueryBackendHandler implements TextProtocolBackendHandler {
private final DatabaseCommunicationEngineFactory databaseCommunicationEngineFactory = DatabaseCommunicationEngineFactory.getInstance();
private final String sql;
private final BackendConnection backendConnection;
private DatabaseCommunicationEngine databaseCommunicationEngine;
@Override
public BackendResponse execute() {
if (null == backendConnection.getLogicSchema()) {
return new ErrorResponse(new NoDatabaseSelectedException());
}
databaseCommunicationEngine = databaseCommunicationEngineFactory.newTextProtocolInstance(backendConnection.getLogicSchema(), sql, backendConnection);
return databaseCommunicationEngine.execute();
}
@Override
public boolean next() throws SQLException {
return databaseCommunicationEngine.next();
}
@Override
public QueryData getQueryData() throws SQLException {
return databaseCommunicationEngine.getQueryData();
}
}
"><pre class="notranslate"><code class="notranslate">/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.shardingsphere.shardingproxy.backend.text.query;
import lombok.RequiredArgsConstructor;
import org.apache.shardingsphere.shardingproxy.backend.communication.DatabaseCommunicationEngine;
import org.apache.shardingsphere.shardingproxy.backend.communication.DatabaseCommunicationEngineFactory;
import org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.connection.BackendConnection;
import org.apache.shardingsphere.shardingproxy.backend.exception.NoDatabaseSelectedException;
import org.apache.shardingsphere.shardingproxy.backend.response.BackendResponse;
import org.apache.shardingsphere.shardingproxy.backend.response.error.ErrorResponse;
import org.apache.shardingsphere.shardingproxy.backend.response.query.QueryData;
import org.apache.shardingsphere.shardingproxy.backend.text.TextProtocolBackendHandler;
import java.sql.SQLException;
/**
* Backend handler with query.
*
* @author zhangliang
*/
@RequiredArgsConstructor
public final class QueryBackendHandler implements TextProtocolBackendHandler {
private final DatabaseCommunicationEngineFactory databaseCommunicationEngineFactory = DatabaseCommunicationEngineFactory.getInstance();
private final String sql;
private final BackendConnection backendConnection;
private DatabaseCommunicationEngine databaseCommunicationEngine;
@Override
public BackendResponse execute() {
if (null == backendConnection.getLogicSchema()) {
return new ErrorResponse(new NoDatabaseSelectedException());
}
databaseCommunicationEngine = databaseCommunicationEngineFactory.newTextProtocolInstance(backendConnection.getLogicSchema(), sql, backendConnection);
return databaseCommunicationEngine.execute();
}
@Override
public boolean next() throws SQLException {
return databaseCommunicationEngine.next();
}
@Override
public QueryData getQueryData() throws SQLException {
return databaseCommunicationEngine.getQueryData();
}
}
</code></pre></div>
<p dir="auto">Throw in this method</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" @Override
public BackendResponse execute() {
if (null == backendConnection.getLogicSchema()) {
return new ErrorResponse(new NoDatabaseSelectedException());
}
databaseCommunicationEngine = databaseCommunicationEngineFactory.newTextProtocolInstance(backendConnection.getLogicSchema(), sql, backendConnection);
return databaseCommunicationEngine.execute();
}"><pre class="notranslate"><code class="notranslate"> @Override
public BackendResponse execute() {
if (null == backendConnection.getLogicSchema()) {
return new ErrorResponse(new NoDatabaseSelectedException());
}
databaseCommunicationEngine = databaseCommunicationEngineFactory.newTextProtocolInstance(backendConnection.getLogicSchema(), sql, backendConnection);
return databaseCommunicationEngine.execute();
}
</code></pre></div>
<h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3>
<p dir="auto">[INFO ] 17:24:17.483 [nioEventLoopGroup-2-1] i.n.handler.logging.LoggingHandler - [id: 0xcd0eea40, L:/0:0:0:0:0:0:0:0:3307] READ: [id: 0x3dded63d, L:/127.0.0.1:3307 - R:/127.0.0.1:53670]<br>
[INFO ] 17:24:17.486 [nioEventLoopGroup-2-1] i.n.handler.logging.LoggingHandler - [id: 0xcd0eea40, L:/0:0:0:0:0:0:0:0:3307] READ COMPLETE<br>
[INFO ] 17:24:17.498 [ShardingSphere-Command-14] ShardingSphere-SQL - Rule Type: sharding<br>
[INFO ] 17:24:17.498 [ShardingSphere-Command-14] ShardingSphere-SQL - Logic SQL: SET NAMES utf8mb4<br>
[INFO ] 17:24:17.498 [ShardingSphere-Command-14] ShardingSphere-SQL - SQLStatement: DALStatement(super=AbstractSQLStatement(type=DAL, tables=Tables(tables=[]), routeConditions=Conditions(orCondition=OrCondition(andConditions=[])), encryptConditions=Conditions(orCondition=OrCondition(andConditions=[])), sqlTokens=[], parametersIndex=0, logicSQL=null))<br>
[INFO ] 17:24:17.498 [ShardingSphere-Command-14] ShardingSphere-SQL - Actual SQL: ds_0 ::: SET NAMES utf8mb4<br>
[INFO ] 17:24:21.656 [ShardingSphere-Command-15] ShardingSphere-SQL - Rule Type: sharding<br>
[INFO ] 17:24:21.656 [ShardingSphere-Command-15] ShardingSphere-SQL - Logic SQL: SHOW VARIABLES LIKE 'lower_case_%'; SHOW VARIABLES LIKE 'sql_mode'; SELECT COUNT(<em>) AS support_ndb FROM information_schema.ENGINES WHERE Engine = 'ndbcluster'<br>
[INFO ] 17:24:21.656 [ShardingSphere-Command-15] ShardingSphere-SQL - SQLStatement: DALStatement(super=AbstractSQLStatement(type=DAL, tables=Tables(tables=[]), routeConditions=Conditions(orCondition=OrCondition(andConditions=[])), encryptConditions=Conditions(orCondition=OrCondition(andConditions=[])), sqlTokens=[], parametersIndex=0, logicSQL=null))<br>
[INFO ] 17:24:21.656 [ShardingSphere-Command-15] ShardingSphere-SQL - Actual SQL: ds_0 ::: SHOW VARIABLES LIKE 'lower_case_%'; SHOW VARIABLES LIKE 'sql_mode'; SELECT COUNT(</em>) AS support_ndb FROM information_schema.ENGINES WHERE Engine = 'ndbcluster'<br>
[INFO ] 17:24:22.773 [ShardingSphere-Command-0] ShardingSphere-SQL - Rule Type: sharding<br>
[INFO ] 17:24:22.774 [ShardingSphere-Command-0] ShardingSphere-SQL - Logic SQL: SHOW VARIABLES LIKE 'lower_case_%'<br>
[INFO ] 17:24:22.774 [ShardingSphere-Command-0] ShardingSphere-SQL - SQLStatement: DALStatement(super=AbstractSQLStatement(type=DAL, tables=Tables(tables=[]), routeConditions=Conditions(orCondition=OrCondition(andConditions=[])), encryptConditions=Conditions(orCondition=OrCondition(andConditions=[])), sqlTokens=[], parametersIndex=0, logicSQL=null))<br>
[INFO ] 17:24:22.774 [ShardingSphere-Command-0] ShardingSphere-SQL - Actual SQL: ds_0 ::: SHOW VARIABLES LIKE 'lower_case_%'<br>
[INFO ] 17:24:23.911 [ShardingSphere-Command-1] ShardingSphere-SQL - Rule Type: sharding<br>
[INFO ] 17:24:23.911 [ShardingSphere-Command-1] ShardingSphere-SQL - Logic SQL: SHOW VARIABLES LIKE 'sql_mode'<br>
[INFO ] 17:24:23.911 [ShardingSphere-Command-1] ShardingSphere-SQL - SQLStatement: DALStatement(super=AbstractSQLStatement(type=DAL, tables=Tables(tables=[]), routeConditions=Conditions(orCondition=OrCondition(andConditions=[])), encryptConditions=Conditions(orCondition=OrCondition(andConditions=[])), sqlTokens=[], parametersIndex=0, logicSQL=null))<br>
[INFO ] 17:24:23.911 [ShardingSphere-Command-1] ShardingSphere-SQL - Actual SQL: ds_0 ::: SHOW VARIABLES LIKE 'sql_mode'</p>
<h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>
<p dir="auto">config-sharding.yaml</p>
<p dir="auto">schemaName: sharding_db</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dataSources:
ds_0:
# 局域网
# url: jdbc:mysql://***/***?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8
username: ***
password: ***
connectionTimeoutMilliseconds: 30000
idleTimeoutMilliseconds: 60000
maxLifetimeMilliseconds: 1800000
maxPoolSize: 50
minPoolSize: 1
maintenanceIntervalMilliseconds: 30000
shardingRule:
tables:
service_attendance_detail:
actualDataNodes: ds_0.service_attendance_detail_2021_0$->{1..9},ds_0.service_attendance_detail_2021_1$->{0..2}
tableStrategy:
inline:
shardingColumn: course_date
algorithmExpression: service_attendance_detail_2021_$->{course_date[5..6]} "><pre class="notranslate"><code class="notranslate">dataSources:
ds_0:
# 局域网
# url: jdbc:mysql://***/***?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8
username: ***
password: ***
connectionTimeoutMilliseconds: 30000
idleTimeoutMilliseconds: 60000
maxLifetimeMilliseconds: 1800000
maxPoolSize: 50
minPoolSize: 1
maintenanceIntervalMilliseconds: 30000
shardingRule:
tables:
service_attendance_detail:
actualDataNodes: ds_0.service_attendance_detail_2021_0$->{1..9},ds_0.service_attendance_detail_2021_1$->{0..2}
tableStrategy:
inline:
shardingColumn: course_date
algorithmExpression: service_attendance_detail_2021_$->{course_date[5..6]}
</code></pre></div>
<p dir="auto">server.yaml</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="authentication:
username: root
password: root
#
props:
max.connections.size.per.query: 1
acceptor.size: 16 # The default value is available processors count * 2.
executor.size: 16 # Infinite by default.
# proxy.frontend.flush.threshold: 128 # The default value is 128.
# # LOCAL: Proxy will run with LOCAL transaction.
# # XA: Proxy will run with XA transaction.
# # BASE: Proxy will run with B.A.S.E transaction.
# proxy.transaction.type: LOCAL
# proxy.opentracing.enabled: false
sql.show: true"><pre class="notranslate"><code class="notranslate">authentication:
username: root
password: root
#
props:
max.connections.size.per.query: 1
acceptor.size: 16 # The default value is available processors count * 2.
executor.size: 16 # Infinite by default.
# proxy.frontend.flush.threshold: 128 # The default value is 128.
# # LOCAL: Proxy will run with LOCAL transaction.
# # XA: Proxy will run with XA transaction.
# # BASE: Proxy will run with B.A.S.E transaction.
# proxy.transaction.type: LOCAL
# proxy.opentracing.enabled: false
sql.show: true
</code></pre></div> | 0 |
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<ul dir="auto">
<li>synchronize</li>
</ul>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2.3.0.0"><pre class="notranslate"><code class="notranslate">2.3.0.0
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<ul dir="auto">
<li>ansible.cfg</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ssh_connection]
ssh_args = -o ControlMaster=auto -o ControlPersist=600s
control_path = %(directory)s/%%h-%%r
pipelining = True"><pre class="notranslate"><code class="notranslate">[ssh_connection]
ssh_args = -o ControlMaster=auto -o ControlPersist=600s
control_path = %(directory)s/%%h-%%r
pipelining = True
</code></pre></div>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Linux 4.10.10-1-MANJARO"><pre class="notranslate"><code class="notranslate">Linux 4.10.10-1-MANJARO
</code></pre></div>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Rsync synchronization does not work on 2.3.0.0, works on 2.2.2.0</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="- name: Rsync upload to server
synchronize: src={{ config_local_path }} dest={{ rails_release_path }} rsync_opts=--exclude-from='{{ config_local_path }}.gitignore' owner=no group=no
become: yes
become_user: "{{ user }}""><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Rsync upload to server</span>
<span class="pl-ent">synchronize</span>: <span class="pl-s">src={{ config_local_path }} dest={{ rails_release_path }} rsync_opts=--exclude-from='{{ config_local_path }}.gitignore' owner=no group=no</span>
<span class="pl-ent">become</span>: <span class="pl-s">yes</span>
<span class="pl-ent">become_user</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ user }}<span class="pl-pds">"</span></span></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">On version 2.2.2.0 works as expected, executing</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/usr/bin/rsync --delay-updates -F --compress --archive --no-owner --no-group --rsh 'ssh -S none -o StrictHostKeyChecking=no' --rsync-path=\"sudo rsync\" --exclude-from='/home/kostafun/Projects/domain.com/.gitignore' --out-format='<<CHANGED>>%i %n%L' \"/home/kostafun/Projects/domain.com/\" \"[email protected]:/home/bk/domain/releases/20170423080009\""><pre class="notranslate"><code class="notranslate">/usr/bin/rsync --delay-updates -F --compress --archive --no-owner --no-group --rsh 'ssh -S none -o StrictHostKeyChecking=no' --rsync-path=\"sudo rsync\" --exclude-from='/home/kostafun/Projects/domain.com/.gitignore' --out-format='<<CHANGED>>%i %n%L' \"/home/kostafun/Projects/domain.com/\" \"[email protected]:/home/bk/domain/releases/20170423080009\"
</code></pre></div>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">On 2.3.0.0 executing</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" /usr/bin/rsync --delay-updates -F --compress --archive --no-owner --no-group --rsh=/usr/bin/ssh -S none -o StrictHostKeyChecking=no --rsync-path=sudo rsync --exclude-from='/home/kostafun/Projects/domain.com/.gitignore' --out-format=<<CHANGED>>%i %n%L /home/kostafun/Projects/domain.com/ [email protected]:/home/bk/domain/releases/20170423070910"><pre class="notranslate"><code class="notranslate"> /usr/bin/rsync --delay-updates -F --compress --archive --no-owner --no-group --rsh=/usr/bin/ssh -S none -o StrictHostKeyChecking=no --rsync-path=sudo rsync --exclude-from='/home/kostafun/Projects/domain.com/.gitignore' --out-format=<<CHANGED>>%i %n%L /home/kostafun/Projects/domain.com/ [email protected]:/home/bk/domain/releases/20170423070910
</code></pre></div>
<p dir="auto">with the following results</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rsync: failed to open exclude file '/home/kostafun/Projects/domain.com/.gitignore': No such file or directory (2)\nrsync error: error in file IO (code 11) at exclude.c(1178) [client=3.1.2]\n"><pre class="notranslate"><code class="notranslate">rsync: failed to open exclude file '/home/kostafun/Projects/domain.com/.gitignore': No such file or directory (2)\nrsync error: error in file IO (code 11) at exclude.c(1178) [client=3.1.2]\n
</code></pre></div>
<p dir="auto">Note no quotes --rsync-path=sudo rsync --out-format=<>%i %n%L<br>
Commit <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="218342588" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/23157" data-hovercard-type="pull_request" data-hovercard-url="/ansible/ansible/pull/23157/hovercard" href="https://github.com/ansible/ansible/pull/23157">#23157</a> ?</p>
<p dir="auto">Complete -vvv output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Using module file /usr/lib/python2.7/site-packages/ansible/modules/files/synchronize.py
<2.2.2.2> ESTABLISH LOCAL CONNECTION FOR USER: kostafun
<2.2.2.2> EXEC /bin/sh -c '/usr/bin/python2 && sleep 0'
fatal: [2.2.2.2]: FAILED! => {
"changed": false,
"cmd": "/usr/bin/rsync --delay-updates -F --compress --archive --no-owner --no-group --rsh=/usr/bin/ssh -S none -o StrictHostKeyChecking=no --rsync-path=sudo rsync --exclude-from='/home/kostafun/Projects/domain.com/.gitignore' --out-format=<<CHANGED>>%i %n%L /home/kostafun/Projects/domain.com/ [email protected]:/home/bk/domain/releases/20170423070910",
"failed": true,
"invocation": {
"module_args": {
"_local_rsync_path": "rsync",
"_substitute_controller": false,
"archive": true,
"checksum": false,
"compress": true,
"copy_links": false,
"delete": false,
"dest": "[email protected]:/home/bk/domain/releases/20170423070910",
"dest_port": null,
"dirs": false,
"existing_only": false,
"group": false,
"links": null,
"mode": "push",
"owner": false,
"partial": false,
"perms": null,
"private_key": null,
"recursive": null,
"rsync_opts": [
"--exclude-from='/home/kostafun/Projects/domain.com/.gitignore'"
],
"rsync_path": "sudo rsync",
"rsync_timeout": 0,
"set_remote_user": true,
"src": "/home/kostafun/Projects/domain.com/",
"ssh_args": null,
"times": null,
"verify_host": false
}
},
"msg": "rsync: failed to open exclude file '/home/kostafun/Projects/domain.com/.gitignore': No such file or directory (2)\nrsync error: error in file IO (code 11) at exclude.c(1178) [client=3.1.2]\n",
"rc": 11
}
"><pre class="notranslate"><code class="notranslate">Using module file /usr/lib/python2.7/site-packages/ansible/modules/files/synchronize.py
<2.2.2.2> ESTABLISH LOCAL CONNECTION FOR USER: kostafun
<2.2.2.2> EXEC /bin/sh -c '/usr/bin/python2 && sleep 0'
fatal: [2.2.2.2]: FAILED! => {
"changed": false,
"cmd": "/usr/bin/rsync --delay-updates -F --compress --archive --no-owner --no-group --rsh=/usr/bin/ssh -S none -o StrictHostKeyChecking=no --rsync-path=sudo rsync --exclude-from='/home/kostafun/Projects/domain.com/.gitignore' --out-format=<<CHANGED>>%i %n%L /home/kostafun/Projects/domain.com/ [email protected]:/home/bk/domain/releases/20170423070910",
"failed": true,
"invocation": {
"module_args": {
"_local_rsync_path": "rsync",
"_substitute_controller": false,
"archive": true,
"checksum": false,
"compress": true,
"copy_links": false,
"delete": false,
"dest": "[email protected]:/home/bk/domain/releases/20170423070910",
"dest_port": null,
"dirs": false,
"existing_only": false,
"group": false,
"links": null,
"mode": "push",
"owner": false,
"partial": false,
"perms": null,
"private_key": null,
"recursive": null,
"rsync_opts": [
"--exclude-from='/home/kostafun/Projects/domain.com/.gitignore'"
],
"rsync_path": "sudo rsync",
"rsync_timeout": 0,
"set_remote_user": true,
"src": "/home/kostafun/Projects/domain.com/",
"ssh_args": null,
"times": null,
"verify_host": false
}
},
"msg": "rsync: failed to open exclude file '/home/kostafun/Projects/domain.com/.gitignore': No such file or directory (2)\nrsync error: error in file IO (code 11) at exclude.c(1178) [client=3.1.2]\n",
"rc": 11
}
</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">synchronize</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 = /tmp/ansible-test/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.13 (default, Jan 12 2017, 17:59:37) [GCC 6.3.1 20161221 (Red Hat 6.3.1-1)]"><pre class="notranslate"><code class="notranslate">ansible 2.3.0.0
config file = /tmp/ansible-test/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.13 (default, Jan 12 2017, 17:59:37) [GCC 6.3.1 20161221 (Red Hat 6.3.1-1)]
</code></pre></div>
<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">synchronize doesn't handle <code class="notranslate">rsync_opts</code> correctly.<br>
In my case, the <code class="notranslate">--exclude</code> option was ignored, fscking up my webserver config.</p>
<p dir="auto">ansible 2.2.2.0 works fine, though.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto"><a href="https://gist.github.com/philfry/9b7d4ac4ce2dc511accc3ba8e150ef40">https://gist.github.com/philfry/9b7d4ac4ce2dc511accc3ba8e150ef40</a></p>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto"><code class="notranslate">*.conf</code> get synchronized, <code class="notranslate">*.module</code> are left untouched.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/tmp/foo-dest/dontdeleteme2.module
/tmp/foo-dest/dontdeleteme1.module
/tmp/foo-dest/someconfig.conf
/tmp/foo-dest/overwriteme.conf
/tmp/foo-dest/anotherconf.conf
/tmp/foo-src/anotherconf.conf
/tmp/foo-src/overwriteme.conf"><pre class="notranslate"><code class="notranslate">/tmp/foo-dest/dontdeleteme2.module
/tmp/foo-dest/dontdeleteme1.module
/tmp/foo-dest/someconfig.conf
/tmp/foo-dest/overwriteme.conf
/tmp/foo-dest/anotherconf.conf
/tmp/foo-src/anotherconf.conf
/tmp/foo-src/overwriteme.conf
</code></pre></div>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto"><code class="notranslate">*.conf</code> get synchronized, <code class="notranslate">*.module</code> get deleted.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/tmp/foo-dest/overwriteme.conf
/tmp/foo-dest/anotherconf.conf
/tmp/foo-src/anotherconf.conf
/tmp/foo-src/overwriteme.conf"><pre class="notranslate"><code class="notranslate">/tmp/foo-dest/overwriteme.conf
/tmp/foo-dest/anotherconf.conf
/tmp/foo-src/anotherconf.conf
/tmp/foo-src/overwriteme.conf
</code></pre></div>
<p dir="auto"><a href="https://gist.github.com/philfry/d5e3c38c94f3ad631196aff37aea22de">https://gist.github.com/philfry/d5e3c38c94f3ad631196aff37aea22de</a></p> | 1 |
<h2 dir="auto">Issue description</h2>
<p dir="auto">The error <code class="notranslate">LINK : fatal error LNK1189: library limit of 65535 objects exceeded</code> occurred when linking caffe2 using Visual Studio 2015.</p>
<h2 dir="auto">Code example</h2>
<div class="highlight highlight-source-batchfile notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="set "VS150COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build"
set CMAKE_GENERATOR=Visual Studio 15 2017 Win64
set DISTUTILS_USE_SDK=1
REM The following line is needed for Python 2.7, but the support for it is very experimental.
set MSSdk=1
call "%VS150COMNTOOLS%\vcvarsall.bat" x64 -vcvars_ver=14.11
python setup.py install"><pre class="notranslate"><span class="pl-k">set</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">VS150COMNTOOLS</span><span class="pl-k">=</span>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build<span class="pl-pds">"</span></span>
<span class="pl-k">set</span> <span class="pl-smi">CMAKE_GENERATOR</span><span class="pl-k">=</span>Visual Studio <span class="pl-c1">15</span> <span class="pl-c1">2017</span> Win64
<span class="pl-k">set</span> <span class="pl-smi">DISTUTILS_USE_SDK</span><span class="pl-k">=</span><span class="pl-c1">1</span>
<span class="pl-c"><span class="pl-k">REM</span> The following line is needed for Python 2.7, but the support for it is very experimental.</span>
<span class="pl-k">set</span> <span class="pl-smi">MSSdk</span><span class="pl-k">=</span><span class="pl-c1">1</span>
<span class="pl-k">call</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">%VS150COMNTOOLS%</span>\vcvarsall.bat<span class="pl-pds">"</span></span> x64 -vcvars_ver=14.11
python setup.py install</pre></div>
<h2 dir="auto">System Info</h2>
<p dir="auto">PyTorch or Caffe2: PyTorch<br>
PyTorch version: 0.4.0<br>
Is debug build: No<br>
CUDA used to build PyTorch: 9.0</p>
<p dir="auto">OS: Microsoft Windows 10 Pro<br>
GCC version: (Rev2, Built by MSYS2 project) 7.1.0<br>
CMake version: version 3.8.1</p>
<p dir="auto">Python version: 3.6<br>
Is CUDA available: Yes<br>
CUDA runtime version: 9.0.176<br>
GPU models and configuration: GPU 0: GeForce GTX 1070<br>
Nvidia driver version: 398.36<br>
cuDNN version: Probably one of the following:<br>
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin\cudnn64_7.dll</p>
<p dir="auto">Versions of relevant libraries:<br>
[pip] numpy (1.13.3)<br>
[pip] torch (0.4.0)<br>
[pip] torchfile (0.1.0)<br>
[pip] torchnet (0.0.1)<br>
[pip] torchtext (0.2.1)<br>
[pip] torchvision (0.1.9)<br>
[pip] warpctc-pytorch (0.1)<br>
[conda] torchfile 0.1.0 <br>
[conda] torchnet 0.0.1 <br>
[conda] torchtext 0.2.1 <br>
[conda] torchvision 0.1.9 <br>
[conda] warpctc-pytorch 0.1 </p> | <h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>follow the instruction here <a href="https://colab.research.google.com/github/pytorch/tutorials/blob/gh-pages/_downloads/super_resolution_with_caffe2.ipynb#scrollTo=fUI45vwDNZR6" rel="nofollow">https://colab.research.google.com/github/pytorch/tutorials/blob/gh-pages/_downloads/super_resolution_with_caffe2.ipynb#scrollTo=fUI45vwDNZR6</a></li>
<li>use onnx to convert pytorch to onnx</li>
</ol>
<h2 dir="auto">Code to execute</h2>
<p dir="auto">model = SegNet_Small(<br>
input_channels=1,<br>
num_classes=4,<br>
skip_type="mul",<br>
BR_bool=False,<br>
separable_conv=False,<br>
)<br>
model = model.to(device)<br>
x = torch.randn(1, 1, 184, 184, requires_grad=True).to(device)<br>
torch.onnx.export(model, x, "test.onnx", verbose=True)</p>
<h2 dir="auto">Error information</h2>
<hr>
<p dir="auto">RuntimeError Traceback (most recent call last)<br>
in <br>
3<br>
4 # Export the model<br>
----> 5 torch.onnx.export(model, x, "test.onnx", verbose=True)<br>
6<br>
7 # torch_out = torch.onnx._export(model, # model being run<br>
..................<br>
~/anaconda3/lib/python3.7/site-packages/torch/onnx/symbolic_registry.py in get_registered_op(opname, domain, version)<br>
107 else:<br>
108 msg += "Please open a bug to request ONNX export support for the missing operator."<br>
--> 109 raise RuntimeError(msg)<br>
110 return _registry[(domain, version)][opname]</p>
<p dir="auto"><strong>RuntimeError: Exporting the operator max_unpool2d to ONNX opset version 9 is not supported. Please open a bug to request ONNX export support for the missing operator.</strong></p>
<h2 dir="auto">Environment</h2>
<ul dir="auto">
<li>PyTorch Versio: 1.6.0</li>
<li>OS (e.g., Linux): Fedora release 30 (Thirty) (x86_64)</li>
<li>How you installed PyTorch: conda</li>
<li>Python version: 3.7</li>
<li>CUDA/cuDNN version: 10.0.130 / 7.5.0</li>
<li>GPU models and configuration: TITAN RTX</li>
<li>Any other relevant information:</li>
</ul>
<h2 dir="auto">Additional context</h2>
<p dir="auto">Versions of relevant libraries:<br>
[pip3] numpy==1.18.1<br>
[conda] _pytorch_select 0.2 gpu_0<br>
[conda] blas 1.0 mkl<br>
[conda] cudatoolkit 10.2.89 hfd86e86_1<br>
[conda] mkl 2019.4 243<br>
[conda] mkl-service 2.3.0 py37he904b0f_0<br>
[conda] mkl_fft 1.0.15 py37ha843d7b_0<br>
[conda] mkl_random 1.1.0 py37hd6b4f25_0<br>
[conda] numpy 1.18.1 py37h4f9e942_0<br>
[conda] numpy-base 1.18.1 py37hde5b4d6_1<br>
[conda] numpydoc 0.9.2 py_0<br>
[conda] pytorch 1.6.0 py3.7_cuda10.2.89_cudnn7.6.5_0 pytorch<br>
[conda] pytorch-lightning 0.7.5 pypi_0 pypi<br>
[conda] pytorch-nn-tools 0.1.3 pypi_0 pypi<br>
[conda] torchvision 0.7.0 py37_cu102 pytorch</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/houseroad/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/houseroad">@houseroad</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/spandantiwari/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/spandantiwari">@spandantiwari</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lara-hdr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lara-hdr">@lara-hdr</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/BowenBao/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/BowenBao">@BowenBao</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/neginraoof/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/neginraoof">@neginraoof</a></p> | 0 |
<p dir="auto">Just quite simply, the 20news dataset in sklearn is noisy!<br>
Beware just using this dataset out-of-the-box<br>
For example, in "test" there are impossibly noisy samples (length of tokens < 5):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="SHORT text found: [['Not', 'this', 'again'], ['talk.politics.misc']]
SHORT text found: [['SUBSCRIBE', 'XPERT', '[email protected]'], ['comp.windows.x']]
SHORT text found: [['1B', 'Career', 'DON', 'MATTINGLY'], ['rec.sport.baseball']]
SHORT text found: [['please', 'subscrive', 'me', '[email protected]'], ['comp.windows.x']]
SHORT text found: [['very', 'good'], ['sci.med']]
SHORT text found: [['alt.religion.spam'], ['talk.religion.misc']]
SHORT text found: [['BULLSHIT'], ['sci.med']]
SHORT text found: [['cheek'], ['rec.autos']]
SHORT text found: [['unsubscribe'], ['comp.windows.x']]
SHORT text found: [['shut', 'up', 'andi'], ['talk.politics.mideast']]
SHORT text found: [['unsubscribe'], ['comp.windows.x']]
SHORT text found: [['please', 'subscrive', 'me', '[email protected]'], ['comp.windows.x']]
SHORT text found: [['Brandon', 'Wise', '[email protected]'], ['comp.os.ms-windows.misc']]
SHORT text found: [['unfortunately', 'not', 'Legalize', 'Freedom'], ['talk.religion.misc']]
SHORT text found: [['urn', 'll', 'he', 'uckers'], ['talk.politics.guns']]
SHORT text found: [['Test'], ['misc.forsale']]
SHORT text found: [['Harvested', 'to', 'order'], ['sci.med']]
SHORT text found: [['Does', 'Autodesk', 'has', 'BBS'], ['comp.graphics']]
SHORT text found: [['ignore'], ['rec.motorcycles']]
SHORT text found: [['exit'], ['sci.space']]
SHORT text found: [['Ditto', 'Great', 'post', '[email protected]'], ['talk.politics.guns']]
SHORT text found: [['Ken'], ['misc.forsale']]
SHORT text found: [['this', 'is', 'test', 'Erme'], ['comp.sys.mac.hardware']]
SHORT text found: [['Israel', 'Happy', '45th', 'Birthday'], ['talk.politics.mideast']]
SHORT text found: [['Just', 'kidding'], ['talk.politics.mideast']]
SHORT text found: [['Inguiry', 'by', 'address:[email protected]'], ['misc.forsale']]
SHORT text found: [['400included', 'shipping'], ['misc.forsale']]
SHORT text found: [['Bo', 'Bilinsky'], ['rec.sport.baseball']]
SHORT text found: [['This', 'is', 'test', 'Thanks'], ['misc.forsale']]
SHORT text found: [['Please', 'get', 'REAL', 'life'], ['sci.space']]
SHORT text found: [['subscribe', 'comp.graphics', 'quit'], ['comp.graphics']]
SHORT text found: [['this', 'is', 'tesrt'], ['talk.politics.misc']]
SHORT text found: [['Narrative', 'narrative', 'narrative', 'C.B'], ['talk.politics.misc']]
SHORT text found: [['test'], ['rec.motorcycles']]
SHORT text found: [['AM', 'Satan'], ['soc.religion.christian']]
SHORT text found: [['subscribe', '[email protected]'], ['comp.windows.x']]
SHORT text found: [['[email protected]', 'Thanks', 'lot'], ['sci.electronics']]
SHORT text found: [['David'], ['rec.sport.hockey']]
SHORT text found: [['Rawley', 'Eastwick'], ['rec.sport.baseball']]
SHORT text found: [['art'], ['comp.sys.mac.hardware']]
SHORT text found: [['this', 'is', 'test'], ['comp.sys.mac.hardware']]
SHORT text found: [['Good', 'luck'], ['rec.autos']]
SHORT text found: [['Need', 'say', 'more'], ['rec.sport.hockey']]
SHORT text found: [['critus'], ['talk.religion.misc']]
SHORT text found: [["It's", 'only', 'test', 'message'], ['rec.sport.hockey']]
SHORT text found: [['hello', 'testing'], ['rec.autos']]
SHORT text found: [['Inguiry', 'by', 'address:[email protected]'], ['misc.forsale']]
SHORT text found: [['and', 'VGA', 'monitor', 'e-mail'], ['misc.forsale']]
SHORT text found: [['subscribe', '[email protected]'], ['comp.windows.x']]"><pre class="notranslate"><code class="notranslate">SHORT text found: [['Not', 'this', 'again'], ['talk.politics.misc']]
SHORT text found: [['SUBSCRIBE', 'XPERT', '[email protected]'], ['comp.windows.x']]
SHORT text found: [['1B', 'Career', 'DON', 'MATTINGLY'], ['rec.sport.baseball']]
SHORT text found: [['please', 'subscrive', 'me', '[email protected]'], ['comp.windows.x']]
SHORT text found: [['very', 'good'], ['sci.med']]
SHORT text found: [['alt.religion.spam'], ['talk.religion.misc']]
SHORT text found: [['BULLSHIT'], ['sci.med']]
SHORT text found: [['cheek'], ['rec.autos']]
SHORT text found: [['unsubscribe'], ['comp.windows.x']]
SHORT text found: [['shut', 'up', 'andi'], ['talk.politics.mideast']]
SHORT text found: [['unsubscribe'], ['comp.windows.x']]
SHORT text found: [['please', 'subscrive', 'me', '[email protected]'], ['comp.windows.x']]
SHORT text found: [['Brandon', 'Wise', '[email protected]'], ['comp.os.ms-windows.misc']]
SHORT text found: [['unfortunately', 'not', 'Legalize', 'Freedom'], ['talk.religion.misc']]
SHORT text found: [['urn', 'll', 'he', 'uckers'], ['talk.politics.guns']]
SHORT text found: [['Test'], ['misc.forsale']]
SHORT text found: [['Harvested', 'to', 'order'], ['sci.med']]
SHORT text found: [['Does', 'Autodesk', 'has', 'BBS'], ['comp.graphics']]
SHORT text found: [['ignore'], ['rec.motorcycles']]
SHORT text found: [['exit'], ['sci.space']]
SHORT text found: [['Ditto', 'Great', 'post', '[email protected]'], ['talk.politics.guns']]
SHORT text found: [['Ken'], ['misc.forsale']]
SHORT text found: [['this', 'is', 'test', 'Erme'], ['comp.sys.mac.hardware']]
SHORT text found: [['Israel', 'Happy', '45th', 'Birthday'], ['talk.politics.mideast']]
SHORT text found: [['Just', 'kidding'], ['talk.politics.mideast']]
SHORT text found: [['Inguiry', 'by', 'address:[email protected]'], ['misc.forsale']]
SHORT text found: [['400included', 'shipping'], ['misc.forsale']]
SHORT text found: [['Bo', 'Bilinsky'], ['rec.sport.baseball']]
SHORT text found: [['This', 'is', 'test', 'Thanks'], ['misc.forsale']]
SHORT text found: [['Please', 'get', 'REAL', 'life'], ['sci.space']]
SHORT text found: [['subscribe', 'comp.graphics', 'quit'], ['comp.graphics']]
SHORT text found: [['this', 'is', 'tesrt'], ['talk.politics.misc']]
SHORT text found: [['Narrative', 'narrative', 'narrative', 'C.B'], ['talk.politics.misc']]
SHORT text found: [['test'], ['rec.motorcycles']]
SHORT text found: [['AM', 'Satan'], ['soc.religion.christian']]
SHORT text found: [['subscribe', '[email protected]'], ['comp.windows.x']]
SHORT text found: [['[email protected]', 'Thanks', 'lot'], ['sci.electronics']]
SHORT text found: [['David'], ['rec.sport.hockey']]
SHORT text found: [['Rawley', 'Eastwick'], ['rec.sport.baseball']]
SHORT text found: [['art'], ['comp.sys.mac.hardware']]
SHORT text found: [['this', 'is', 'test'], ['comp.sys.mac.hardware']]
SHORT text found: [['Good', 'luck'], ['rec.autos']]
SHORT text found: [['Need', 'say', 'more'], ['rec.sport.hockey']]
SHORT text found: [['critus'], ['talk.religion.misc']]
SHORT text found: [["It's", 'only', 'test', 'message'], ['rec.sport.hockey']]
SHORT text found: [['hello', 'testing'], ['rec.autos']]
SHORT text found: [['Inguiry', 'by', 'address:[email protected]'], ['misc.forsale']]
SHORT text found: [['and', 'VGA', 'monitor', 'e-mail'], ['misc.forsale']]
SHORT text found: [['subscribe', '[email protected]'], ['comp.windows.x']]
</code></pre></div> | <p dir="auto">I found that <code class="notranslate">feature_selection</code> based on <code class="notranslate">f_classif</code> (i.e. F-test) can break if one feature has a constant value (e.g. all zeros).</p>
<p dir="auto">The best way to test this is to add a column of all zeros to <code class="notranslate">X</code> in the example <code class="notranslate">plot_feature_selection.py</code>, e.g.: see the column <code class="notranslate">dummy</code> below</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Some noisy data not correlated
E = np.random.uniform(0, 0.1, size=(len(iris.data), 20))
# Add the noisy data to the informative features
X = np.hstack((iris.data, E))
dummy = np.zeros((X.shape[0],3))
X = np.hstack((iris.data, E, dummy))
y = iris.target"><pre class="notranslate"><code class="notranslate"># Some noisy data not correlated
E = np.random.uniform(0, 0.1, size=(len(iris.data), 20))
# Add the noisy data to the informative features
X = np.hstack((iris.data, E))
dummy = np.zeros((X.shape[0],3))
X = np.hstack((iris.data, E, dummy))
y = iris.target
</code></pre></div>
<p dir="auto"><code class="notranslate">f_classif</code> already throws a warning whenever multiple columns (multiple features) are duplicates of each other. It may be a good idea to also warn the user when a feature is constant across all instances.</p> | 0 |
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="a = pd.DataFrame({
'ID': [1, 1, 2, 2],
'GENDER': ['male', 'male', 'female', 'female'],
})
a.GENDER = a.GENDER.astype('category')
a.groupby('ID').last().GENDER
"><pre class="notranslate"><span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({
<span class="pl-s">'ID'</span>: [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>],
<span class="pl-s">'GENDER'</span>: [<span class="pl-s">'male'</span>, <span class="pl-s">'male'</span>, <span class="pl-s">'female'</span>, <span class="pl-s">'female'</span>],
})
<span class="pl-s1">a</span>.<span class="pl-v">GENDER</span> <span class="pl-c1">=</span> <span class="pl-s1">a</span>.<span class="pl-v">GENDER</span>.<span class="pl-en">astype</span>(<span class="pl-s">'category'</span>)
<span class="pl-s1">a</span>.<span class="pl-en">groupby</span>(<span class="pl-s">'ID'</span>).<span class="pl-en">last</span>().<span class="pl-v">GENDER</span></pre></div>
<p dir="auto">Output</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ID
1 male
2 female
Name: GENDER, dtype: object"><pre class="notranslate"><code class="notranslate">ID
1 male
2 female
Name: GENDER, dtype: object
</code></pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">I would expect that categoricals are preserved by such transformations. At best, the transformation returns an updated categorical if some categories are missing in the process.</p>
<h4 dir="auto">Expected output</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ID
1 male
2 female
Name: GENDER, dtype: category
Categories (2, object): [female, male]"><pre class="notranslate"><code class="notranslate">ID
1 male
2 female
Name: GENDER, dtype: category
Categories (2, object): [female, male]
</code></pre></div>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<h2 dir="auto">INSTALLED VERSIONS</h2>
<p dir="auto">commit: None<br>
python: 3.6.3.final.0<br>
python-bits: 64<br>
OS: Windows<br>
OS-release: 10<br>
machine: AMD64<br>
processor: Intel64 Family 6 Model 69 Stepping 1, GenuineIntel<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: None<br>
LOCALE: None.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.13.3<br>
scipy: 0.19.1<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.3<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.3.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</p>
</details> | <h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Your code here
In [1]: df=pd.DataFrame(dict(payload=[-1,-2,-1,-2], col=pd.Categorical(["foo", "bar", "bar", "qux"], ordered=True)));df
Out[1]:
col payload
0 foo -1
1 bar -2
2 bar -1
3 qux -2
In [2]: df.groupby("payload").first().col.dtype
Out[2]: dtype('O')
"><pre class="notranslate"><span class="pl-c"># Your code here</span>
<span class="pl-v">In</span> [<span class="pl-c1">1</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-en">dict</span>(<span class="pl-s1">payload</span><span class="pl-c1">=</span>[<span class="pl-c1">-</span><span class="pl-c1">1</span>,<span class="pl-c1">-</span><span class="pl-c1">2</span>,<span class="pl-c1">-</span><span class="pl-c1">1</span>,<span class="pl-c1">-</span><span class="pl-c1">2</span>], <span class="pl-s1">col</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-v">Categorical</span>([<span class="pl-s">"foo"</span>, <span class="pl-s">"bar"</span>, <span class="pl-s">"bar"</span>, <span class="pl-s">"qux"</span>], <span class="pl-s1">ordered</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)));<span class="pl-s1">df</span>
<span class="pl-v">Out</span>[<span class="pl-c1">1</span>]:
<span class="pl-s1">col</span> <span class="pl-s1">payload</span>
<span class="pl-c1">0</span> <span class="pl-s1">foo</span> <span class="pl-c1">-</span><span class="pl-c1">1</span>
<span class="pl-c1">1</span> <span class="pl-s1">bar</span> <span class="pl-c1">-</span><span class="pl-c1">2</span>
<span class="pl-c1">2</span> <span class="pl-s1">bar</span> <span class="pl-c1">-</span><span class="pl-c1">1</span>
<span class="pl-c1">3</span> <span class="pl-s1">qux</span> <span class="pl-c1">-</span><span class="pl-c1">2</span>
<span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-s1">df</span>.<span class="pl-en">groupby</span>(<span class="pl-s">"payload"</span>).<span class="pl-en">first</span>().<span class="pl-s1">col</span>.<span class="pl-s1">dtype</span>
<span class="pl-v">Out</span>[<span class="pl-c1">2</span>]: <span class="pl-en">dtype</span>(<span class="pl-s">'O'</span>)</pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">Grouping shouldn't coerce a categorical into object. Categorical dtypes should be preserved as long as possible for efficiency and correctness.</p>
<h4 dir="auto">Expected Output</h4>
<p dir="auto">The result dtype should be CategoricalDtype(categories=['bar', 'foo', 'qux'], ordered=True), just like it is here:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" In [6]: df.groupby("payload").head().col.dtype
Out[6]: CategoricalDtype(categories=['bar', 'foo', 'qux'], ordered=True
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.4.3.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-98-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.21.0
pytest: 3.2.5
pip: 9.0.1
setuptools: 36.5.0
Cython: 0.20.1post0
numpy: 1.13.3
scipy: 0.13.3
pyarrow: None
xarray: 0.9.6
IPython: 6.2.0
sphinx: None
patsy: None
dateutil: 2.6.1
pytz: 2017.3
blosc: None
bottleneck: None
tables: 3.1.1
numexpr: 2.6.4
feather: None
matplotlib: 1.3.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.2.1
html5lib: 0.999
sqlalchemy: 0.8.4
pymysql: None
psycopg2: None
jinja2: 2.7.2
s3fs: 0.1.2
fastparquet: None
pandas_gbq: None
pandas_datareader: None
[paste the output of ``pd.show_versions()`` here below this line]
</details>"><pre class="notranslate"> <span class="pl-v">In</span> [<span class="pl-c1">6</span>]: <span class="pl-s1">df</span>.<span class="pl-en">groupby</span>(<span class="pl-s">"payload"</span>).<span class="pl-en">head</span>().<span class="pl-s1">col</span>.<span class="pl-s1">dtype</span>
<span class="pl-v">Out</span>[<span class="pl-c1">6</span>]: <span class="pl-v">CategoricalDtype</span>(<span class="pl-s1">categories</span><span class="pl-c1">=</span>[<span class="pl-s">'bar'</span>, <span class="pl-s">'foo'</span>, <span class="pl-s">'qux'</span>], <span class="pl-s1">ordered</span><span class="pl-c1">=</span><span class="pl-c1">True</span>
<span class="pl-c">#### Output of ``pd.show_versions()``</span>
<span class="pl-c1"><</span><span class="pl-s1">details</span><span class="pl-c1">></span>
<span class="pl-v">INSTALLED</span> <span class="pl-v">VERSIONS</span>
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span>
<span class="pl-s1">commit</span>: <span class="pl-c1">None</span>
<span class="pl-s1">python</span>: <span class="pl-c1">3.4</span><span class="pl-c1">.3</span>.<span class="pl-s1">final</span><span class="pl-c1">.0</span>
<span class="pl-s1">python</span><span class="pl-c1">-</span><span class="pl-s1">bits</span>: <span class="pl-c1">64</span>
<span class="pl-v">OS</span>: <span class="pl-v">Linux</span>
<span class="pl-v">OS</span><span class="pl-c1">-</span><span class="pl-s1">release</span>: <span class="pl-c1">4.4</span><span class="pl-c1">.0</span><span class="pl-c1">-</span><span class="pl-c1">98</span><span class="pl-c1">-</span><span class="pl-s1">generic</span>
<span class="pl-s1">machine</span>: <span class="pl-s1">x86_64</span>
<span class="pl-s1">processor</span>: <span class="pl-s1">x86_64</span>
<span class="pl-s1">byteorder</span>: <span class="pl-s1">little</span>
<span class="pl-v">LC_ALL</span>: <span class="pl-c1">None</span>
<span class="pl-v">LANG</span>: <span class="pl-s1">en_US</span>.<span class="pl-v">UTF</span><span class="pl-c1">-</span><span class="pl-c1">8</span>
<span class="pl-v">LOCALE</span>: <span class="pl-s1">en_US</span>.<span class="pl-v">UTF</span><span class="pl-c1">-</span><span class="pl-c1">8</span>
<span class="pl-s1">pandas</span>: <span class="pl-c1">0.21</span>.<span class="pl-c1">0</span>
<span class="pl-s1">pytest</span>: <span class="pl-c1">3.2</span>.<span class="pl-c1">5</span>
<span class="pl-s1">pip</span>: <span class="pl-c1">9.0</span>.<span class="pl-c1">1</span>
<span class="pl-s1">setuptools</span>: <span class="pl-c1">36.5</span>.<span class="pl-c1">0</span>
<span class="pl-v">Cython</span>: <span class="pl-c1">0.20</span>.<span class="pl-c1">1</span><span class="pl-s1">post0</span>
<span class="pl-s1">numpy</span>: <span class="pl-c1">1.13</span>.<span class="pl-c1">3</span>
<span class="pl-s1">scipy</span>: <span class="pl-c1">0.13</span>.<span class="pl-c1">3</span>
<span class="pl-s1">pyarrow</span>: <span class="pl-c1">None</span>
<span class="pl-s1">xarray</span>: <span class="pl-c1">0.9</span>.<span class="pl-c1">6</span>
<span class="pl-v">IPython</span>: <span class="pl-c1">6.2</span>.<span class="pl-c1">0</span>
<span class="pl-s1">sphinx</span>: <span class="pl-c1">None</span>
<span class="pl-s1">patsy</span>: <span class="pl-c1">None</span>
<span class="pl-s1">dateutil</span>: <span class="pl-c1">2.6</span>.<span class="pl-c1">1</span>
<span class="pl-s1">pytz</span>: <span class="pl-c1">2017.3</span>
<span class="pl-s1">blosc</span>: <span class="pl-c1">None</span>
<span class="pl-s1">bottleneck</span>: <span class="pl-c1">None</span>
<span class="pl-s1">tables</span>: <span class="pl-c1">3.1</span>.<span class="pl-c1">1</span>
<span class="pl-s1">numexpr</span>: <span class="pl-c1">2.6</span>.<span class="pl-c1">4</span>
<span class="pl-s1">feather</span>: <span class="pl-c1">None</span>
<span class="pl-s1">matplotlib</span>: <span class="pl-c1">1.3</span>.<span class="pl-c1">1</span>
<span class="pl-s1">openpyxl</span>: <span class="pl-c1">None</span>
<span class="pl-s1">xlrd</span>: <span class="pl-c1">None</span>
<span class="pl-s1">xlwt</span>: <span class="pl-c1">None</span>
<span class="pl-s1">xlsxwriter</span>: <span class="pl-c1">None</span>
<span class="pl-s1">lxml</span>: <span class="pl-c1">None</span>
<span class="pl-s1">bs4</span>: <span class="pl-c1">4.2</span>.<span class="pl-c1">1</span>
<span class="pl-s1">html5lib</span>: <span class="pl-c1">0.999</span>
<span class="pl-s1">sqlalchemy</span>: <span class="pl-c1">0.8</span>.<span class="pl-c1">4</span>
<span class="pl-s1">pymysql</span>: <span class="pl-c1">None</span>
<span class="pl-s1">psycopg2</span>: <span class="pl-c1">None</span>
<span class="pl-s1">jinja2</span>: <span class="pl-c1">2.7</span>.<span class="pl-c1">2</span>
<span class="pl-s1">s3fs</span>: <span class="pl-c1">0.1</span>.<span class="pl-c1">2</span>
<span class="pl-s1">fastparquet</span>: <span class="pl-c1">None</span>
<span class="pl-s1">pandas_gbq</span>: <span class="pl-c1">None</span>
<span class="pl-s1">pandas_datareader</span>: <span class="pl-c1">None</span>
[<span class="pl-s1">paste</span> <span class="pl-s1">the</span> <span class="pl-s1">output</span> <span class="pl-s1">of</span> <span class="pl-s">``</span><span class="pl-s1">pd</span>.<span class="pl-en">show_versions</span>()<span class="pl-s">``</span> <span class="pl-s1">here</span> <span class="pl-s1">below</span> <span class="pl-s1">this</span> <span class="pl-s1">line</span>]
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-s1">details</span><span class="pl-c1">></span></pre></div> | 1 |
<p dir="auto">Challenge <a href="http://beta.freecodecamp.com/en/challenges/data-visualization-with-d3/update-the-height-of-an-element-dynamically" rel="nofollow">update-the-height-of-an-element-dynamically</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">One key bug I am noticing on the beta is that it doesnt reset variables for every iteration you test so it faults every time unless you define a new variable for each iteration.</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
<style>
.bar {
width: 25px;
height: 100px;
display: inline-block;
background-color: blue;
}
</style>
<body>
<script>
const dataset = [12, 31, 22, 17, 25, 18, 29, 14, 9];
d3.select("body").selectAll("div")
.data(dataset)
.enter()
.append("div")
.attr("class", "bar")
// Add your code below this line
// Add your code above this line
</script>
</body>
"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">style</span><span class="pl-kos">></span>
.<span class="pl-c1">bar</span> {
<span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">25<span class="pl-smi">px</span></span>;
<span class="pl-c1">height</span><span class="pl-kos">:</span> <span class="pl-c1">100<span class="pl-smi">px</span></span>;
<span class="pl-c1">display</span><span class="pl-kos">:</span> inline-block;
<span class="pl-c1">background-color</span><span class="pl-kos">:</span> blue;
}
<span class="pl-kos"></</span><span class="pl-ent">style</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">body</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">script</span><span class="pl-kos">></span>
<span class="pl-k">const</span> <span class="pl-s1">dataset</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-c1">12</span><span class="pl-kos">,</span> <span class="pl-c1">31</span><span class="pl-kos">,</span> <span class="pl-c1">22</span><span class="pl-kos">,</span> <span class="pl-c1">17</span><span class="pl-kos">,</span> <span class="pl-c1">25</span><span class="pl-kos">,</span> <span class="pl-c1">18</span><span class="pl-kos">,</span> <span class="pl-c1">29</span><span class="pl-kos">,</span> <span class="pl-c1">14</span><span class="pl-kos">,</span> <span class="pl-c1">9</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-s1">d3</span><span class="pl-kos">.</span><span class="pl-en">select</span><span class="pl-kos">(</span><span class="pl-s">"body"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">selectAll</span><span class="pl-kos">(</span><span class="pl-s">"div"</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">data</span><span class="pl-kos">(</span><span class="pl-s1">dataset</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">enter</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">append</span><span class="pl-kos">(</span><span class="pl-s">"div"</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">attr</span><span class="pl-kos">(</span><span class="pl-s">"class"</span><span class="pl-kos">,</span> <span class="pl-s">"bar"</span><span class="pl-kos">)</span>
<span class="pl-c">// Add your code below this line</span>
<span class="pl-c">// Add your code above this line</span>
<span class="pl-kos"></</span><span class="pl-ent">script</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">body</span><span class="pl-kos">></span></pre></div> | <p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-use-clockwise-notation-to-specify-the-margin-of-an-element" rel="nofollow">http://freecodecamp.com/challenges/waypoint-use-clockwise-notation-to-specify-the-margin-of-an-element</a> has an issue.</p>
<p dir="auto">Just thought the instructions at the end would benefit from being a bit more specific to prevent the camper having to look at the tests. Something like:</p>
<p dir="auto">"Use Clockwise Notation to give the element with a class of <strong>green-box</strong> a margin of 40px on its top and left side, but only 20px on its bottom and right side."</p> | 0 |
<h3 dir="auto">Current Behavior:</h3>
<p dir="auto">When using <code class="notranslate">npm version from-git</code>, the command should not fail.</p>
<h3 dir="auto">Expected Behavior:</h3>
<p dir="auto">The command fails, because it tries to create a git tag (which already exists)</p>
<h3 dir="auto">Steps To Reproduce:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm i -g npm@7
mkdir foo && cd foo
git init .
npm init -y
git add package.json
git commit -m 'initial commit'
git tag -m 1.0.1 v1.0.1
npm version from-git"><pre class="notranslate"><code class="notranslate">npm i -g npm@7
mkdir foo && cd foo
git init .
npm init -y
git add package.json
git commit -m 'initial commit'
git tag -m 1.0.1 v1.0.1
npm version from-git
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! code 128
npm ERR! command failed
npm ERR! command /usr/bin/git tag -m 1.0.1 v1.0.1
npm ERR! fatal: tag 'v5.0.0' already exists
npm ERR! A complete log of this run can be found in:"><pre class="notranslate"><code class="notranslate">npm ERR! code 128
npm ERR! command failed
npm ERR! command /usr/bin/git tag -m 1.0.1 v1.0.1
npm ERR! fatal: tag 'v5.0.0' already exists
npm ERR! A complete log of this run can be found in:
</code></pre></div>
<h3 dir="auto">Environment:</h3>
<ul dir="auto">
<li>Node: 15.0.1</li>
<li>npm: 7.6.3</li>
</ul> | <p dir="auto">I have found many and many issues related to <a href="https://docs.npmjs.com/cli/v7/using-npm/scripts#user" rel="nofollow">this</a> breaking change:</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1173350027" data-permission-text="Title is private" data-url="https://github.com/npm/cli/issues/4589" data-hovercard-type="issue" data-hovercard-url="/npm/cli/issues/4589/hovercard" href="https://github.com/npm/cli/issues/4589">#4589</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1064126786" data-permission-text="Title is private" data-url="https://github.com/npm/cli/issues/4095" data-hovercard-type="issue" data-hovercard-url="/npm/cli/issues/4095/hovercard" href="https://github.com/npm/cli/issues/4095">#4095</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1000023477" data-permission-text="Title is private" data-url="https://github.com/npm/cli/issues/3773" data-hovercard-type="issue" data-hovercard-url="/npm/cli/issues/3773/hovercard" href="https://github.com/npm/cli/issues/3773">#3773</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="863310533" data-permission-text="Title is private" data-url="https://github.com/npm/cli/issues/3110" data-hovercard-type="issue" data-hovercard-url="/npm/cli/issues/3110/hovercard" href="https://github.com/npm/cli/issues/3110">#3110</a></p>
<p dir="auto">Giving that there is no workaround to this except changing the directory permissions before running a command (that looks awful) could someone consider adding a flag to npm command or/and npm config that allows to override this?</p>
<p dir="auto">The change is explained <a href="https://github.com/npm/cli/issues/3110#issuecomment-826979929" data-hovercard-type="issue" data-hovercard-url="/npm/cli/issues/3110/hovercard">here</a></p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wraithgar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wraithgar">@wraithgar</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ruyadorno/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ruyadorno">@ruyadorno</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lukekarrys/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lukekarrys">@lukekarrys</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fritzy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fritzy">@fritzy</a></p>
<p dir="auto">I can consider creating a PR if you agree with this</p> | 0 |
<p dir="auto">Hello,<br>
when <code class="notranslate">import tensorflow</code> it will output some info which is boring to me , how to disable this dispaly without compile again? set CUDA_VISIBLE_DEVICES seems no work.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: import tensorflow as tf;
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.so.7.5 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcudnn.so.5.1 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcufft.so.7.5 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcurand.so.7.5 locally"><pre class="notranslate"><code class="notranslate">In [1]: import tensorflow as tf;
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.so.7.5 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcudnn.so.5.1 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcufft.so.7.5 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcurand.so.7.5 locally
</code></pre></div>
<p dir="auto">thanks</p> | <p dir="auto">I am using TF 0.6.0 with python 2.7.10 on both ubuntu linux and osx 10.9.5. TF base functionality is working fine. The issue is logging - I want to suppress the following messages that are emitted whenever I construct the first tensorflow Session:</p>
<p dir="auto">I tensorflow/core/common_runtime/local_device.cc:40] Local device intra op parallelism threads: 2<br>
I tensorflow/core/common_runtime/direct_session.cc:58] Direct session inter op parallelism threads: 2</p>
<p dir="auto">They do not appear to be transmitted through the normal python logging mechanism. Any ideas? Did I just miss something?</p>
<p dir="auto">I don't want to turn off all log messages, I just want TF to stop generating these two specific messages - and perhaps if you can tell me how to turn off all INFO messages from this particular (seemingly non-pythonic) source, that would be fine too.</p> | 1 |
<p dir="auto">Hi,</p>
<p dir="auto">I am a student and I can not install and use Atom since I do not have root access on any school computer.<br>
Is there a way to download directly a binary like Sublime Text?</p>
<p dir="auto">This could be also useful for anyone that would like Atom on a thumb drive.</p>
<p dir="auto">May be this join <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="37697547" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/2939" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/2939/hovercard" href="https://github.com/atom/atom/issues/2939">#2939</a></p> | <p dir="auto">I don’t really stick to one computer to program, and some computers don’t have editors. Currently I use Sublime Text portable, but it would be great if there was a portable version of Atom.</p> | 1 |
<ul dir="auto">
<li>VSCode Version:1.2</li>
<li>OS Version:win10 10240</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>ctrl+`</li>
<li>terminal doesn't have scrollbar (not working on my laptop except mouse scroll)</li>
</ol> | <ul dir="auto">
<li>VSCode Version: 0.10.11</li>
<li>OS Version: Win 7 , SP 1</li>
</ul>
<p dir="auto">Steps to Reproduce:<br>
Assume you have a document with the following lines:<br>
// 1<br>
// 2<br>
// 3</p>
<ol dir="auto">
<li>Open search window (ctrl+f) and activate search with regex ( alt+R)</li>
<li>type in search box : //\s1<br>
Expected Result : One match</li>
<li>add \n or \r to the end of search regex (now search regex will be : //\s1(\n|\r)<br>
Bug: No Result!!</li>
</ol> | 0 |
<p dir="auto">Shouldn't below code give me red squiggles on the duplicate overloaded signature?</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function f(a: string, b: number): boolean;
function f(a: string, b: number): boolean;
function f(a: string, b?: string | number, c?: string): boolean {
return true;
}"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-s1">f</span><span class="pl-kos">(</span><span class="pl-s1">a</span>: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-s1">b</span>: <span class="pl-smi">number</span><span class="pl-kos">)</span>: <span class="pl-smi">boolean</span><span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-s1">f</span><span class="pl-kos">(</span><span class="pl-s1">a</span>: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-s1">b</span>: <span class="pl-smi">number</span><span class="pl-kos">)</span>: <span class="pl-smi">boolean</span><span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-en">f</span><span class="pl-kos">(</span><span class="pl-s1">a</span>: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-s1">b</span>?: <span class="pl-smi">string</span> <span class="pl-c1">|</span> <span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-s1">c</span>?: <span class="pl-smi">string</span><span class="pl-kos">)</span>: <span class="pl-smi">boolean</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-c1">true</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div> | <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface A {
a();
a();
a();
} "><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span>
<span class="pl-c1">a</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c1">a</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c1">a</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">Expected:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="file.ts(2,5): error TSxxxx: Duplicate overload signature for 'a'.
file.ts(3,5): error TSxxxx: Duplicate overload signature for 'a'.
file.ts(4,5): error TSxxxx: Duplicate overload signature for 'a'."><pre class="notranslate"><code class="notranslate">file.ts(2,5): error TSxxxx: Duplicate overload signature for 'a'.
file.ts(3,5): error TSxxxx: Duplicate overload signature for 'a'.
file.ts(4,5): error TSxxxx: Duplicate overload signature for 'a'.
</code></pre></div>
<p dir="auto">Actual:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<p dir="auto">(no error)</p>
<hr>
<p dir="auto">Apparently the following also gives no error:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function f();
function f();
function f() {
}"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-s1">f</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-s1">f</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-en">f</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span></pre></div> | 1 |
<p dir="auto">According to <a href="https://firebase.google.com/docs/auth/admin/custom-claims#propagate_custom_claims_to_the_client" rel="nofollow">https://firebase.google.com/docs/auth/admin/custom-claims#propagate_custom_claims_to_the_client</a> one can update the claims locally by calling <code class="notranslate">currentUser.getIdToken(true)</code>.</p>
<p dir="auto">In flutter I guess one should be able to do the same with:</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="final user = await FirebaseAuth.instance.currentUser();
await user.getIdToken(refresh: true);"><pre class="notranslate"><span class="pl-k">final</span> user <span class="pl-k">=</span> <span class="pl-k">await</span> <span class="pl-c1">FirebaseAuth</span>.instance.<span class="pl-en">currentUser</span>();
<span class="pl-k">await</span> user.<span class="pl-en">getIdToken</span>(refresh<span class="pl-k">:</span> <span class="pl-c1">true</span>);</pre></div>
<p dir="auto">Sadly this seems not reflected when I try to use firestore. After updating claims through a cloud function and then calling getIdToken as above it will still not have the claims correct in firestore rules. It returns "PERMISSION_DENIED". When I then close the app and reopen the app, firestore rules go through correctly though (seems like claims then get updated).</p>
<p dir="auto">Additional problem is, that I can not see if the claims locally got updated or not because the API for that is not yet implemented (see separate issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="347712029" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/20238" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/20238/hovercard" href="https://github.com/flutter/flutter/issues/20238">#20238</a>).</p>
<p dir="auto">Now the issue is: How can force propagation of the claims in flutter? The way the documentation says seems not to be correct. Is this a bug in the documentation or a bug in the flutter client?</p>
<p dir="auto">flutter: v0.8.2<br>
cloud_firestore: 0.8.1<br>
firebase_auth: 0.5.20</p>
<h3 dir="auto">Edit</h3>
<p dir="auto">After further investigations it seems to only be happening on Android. On iOS the claims seem to be updated nicely (seems to work even without calling getIdToken() ). So this problem seems Android specific.</p> | <p dir="auto">Hi community, I don't know if it's the right place to ask this. I use firebase for authenticating my users and I really need access to custom claims to have different behaviors in my applications based on some informations inside the custom claims.<br>
The doc <a href="https://firebase.google.com/docs/auth/admin/custom-claims" rel="nofollow">https://firebase.google.com/docs/auth/admin/custom-claims</a> provides example for android, I've looked into the firebase_auth doc and code and found nothing related.<br>
In my opinion it's a really important feature, maybe I've missed something somewhere, if it's the case I'm sorry.</p> | 1 |
<p dir="auto">I'm hoping to utilize the storageState functionality discussed here: <a href="https://playwright.dev/docs/auth#session-storage" rel="nofollow">https://playwright.dev/docs/auth#session-storage</a></p>
<p dir="auto">I want to log in once, store the state in a json file, and then use it for all subsequent tests in a spec.</p>
<p dir="auto">The problem is that the login credentials json / state info is only valid in our application for a few hours. It will then fail to login in when I try to use it.</p>
<p dir="auto">As a result, I cannot just store it in a hard coded manner indefinitely. I need an initial test to log in, save the storageState to JSON, and then for my tests to use it.</p>
<p dir="auto">The page linked above refers to this flow but provides no working example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Logging in via the UI and then reusing authentication state can be combined to implement login once and run multiple scenarios. The lifecycle looks like:
Run tests (for example, with npm run test).
Login via UI and retrieve authentication state.
In Jest, this can be executed in globalSetup.
In each test, load authentication state in beforeEach or beforeAll step.
This approach will also work in CI environments, since it does not rely on any external state."><pre class="notranslate"><code class="notranslate">Logging in via the UI and then reusing authentication state can be combined to implement login once and run multiple scenarios. The lifecycle looks like:
Run tests (for example, with npm run test).
Login via UI and retrieve authentication state.
In Jest, this can be executed in globalSetup.
In each test, load authentication state in beforeEach or beforeAll step.
This approach will also work in CI environments, since it does not rely on any external state.
</code></pre></div>
<p dir="auto">Could some example code be added? How do you implement it so an initial log in test will always run first, store the data, and then let all tests use it?</p> | <p dir="auto">Do you support any version of Internet Explorer?</p> | 0 |
<p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ahes/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ahes">@ahes</a> on 2016-11-08T16:10:24Z</p>
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">apt</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.0.0"><pre class="notranslate"><code class="notranslate">ansible 2.2.0.0
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">Default</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Debian Jessie 64 GNU/Linux</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">When installing packages and using update_cache option apt module always returns state CHANGED even if packages are already installed.</p>
<p dir="auto">In my opinion expected behavior would be:</p>
<ol dir="auto">
<li>when using update_cache AND installing package(s) return status CHANGED only when package has been installed or updated, no matter if cache has been updated or not.</li>
<li>when using update_cache without installing any package(s) return status CHANGED when cache has been updated.</li>
</ol>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
---
- hosts: localhost
gather_facts: no
become: yes
tasks:
- apt:
name: htop
update_cache: yes"><pre class="notranslate"><code class="notranslate">
---
- hosts: localhost
gather_facts: no
become: yes
tasks:
- apt:
name: htop
update_cache: yes
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">As in ansible 2.1:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [localhost] ***************************************************************
TASK [apt] *********************************************************************
ok: [localhost]
PLAY RECAP *********************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate">PLAY [localhost] ***************************************************************
TASK [apt] *********************************************************************
ok: [localhost]
PLAY RECAP *********************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=0
</code></pre></div>
<p dir="auto">Part of debug output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ok: [localhost] => {"cache_update_time": 1478621386, "cache_updated": true, "changed": false, "invocation": {"module_args": {"allow_unauthenticated": false, "autoremove": false, "cache_valid_time": null, "deb": null, "default_release": null, "dpkg_options": "force-confdef,force-confold", "force": false, "install_recommends": null, "name": "htop", "only_upgrade": false, "package": ["htop"], "purge": false, "state": "present", "update_cache": true, "upgrade": null}, "module_name": "apt"}}"><pre class="notranslate"><code class="notranslate">ok: [localhost] => {"cache_update_time": 1478621386, "cache_updated": true, "changed": false, "invocation": {"module_args": {"allow_unauthenticated": false, "autoremove": false, "cache_valid_time": null, "deb": null, "default_release": null, "dpkg_options": "force-confdef,force-confold", "force": false, "install_recommends": null, "name": "htop", "only_upgrade": false, "package": ["htop"], "purge": false, "state": "present", "update_cache": true, "upgrade": null}, "module_name": "apt"}}
</code></pre></div>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [localhost] ***************************************************************
TASK [apt] *********************************************************************
changed: [localhost]
PLAY RECAP *********************************************************************
localhost : ok=1 changed=1 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate">PLAY [localhost] ***************************************************************
TASK [apt] *********************************************************************
changed: [localhost]
PLAY RECAP *********************************************************************
localhost : ok=1 changed=1 unreachable=0 failed=0
</code></pre></div>
<p dir="auto">Part of debug output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="changed: [localhost] => {
"cache_update_time": 1478621193,
"cache_updated": true,
"changed": true,
"invocation": {
"module_args": {
"allow_unauthenticated": false,
"autoremove": false,
"cache_valid_time": 0,
"deb": null,
"default_release": null,
"dpkg_options": "force-confdef,force-confold",
"force": false,
"install_recommends": null,
"name": "htop",
"only_upgrade": false,
"package": [
"htop"
],
"purge": false,
"state": "present",
"update_cache": true,
"upgrade": null
},
"module_name": "apt"
}
}"><pre class="notranslate"><code class="notranslate">changed: [localhost] => {
"cache_update_time": 1478621193,
"cache_updated": true,
"changed": true,
"invocation": {
"module_args": {
"allow_unauthenticated": false,
"autoremove": false,
"cache_valid_time": 0,
"deb": null,
"default_release": null,
"dpkg_options": "force-confdef,force-confold",
"force": false,
"install_recommends": null,
"name": "htop",
"only_upgrade": false,
"package": [
"htop"
],
"purge": false,
"state": "present",
"update_cache": true,
"upgrade": null
},
"module_name": "apt"
}
}
</code></pre></div>
<p dir="auto">Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="188033702" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/5532" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/5532/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/5532">ansible/ansible-modules-core#5532</a></p> | <p dir="auto">So I have some playbooks here: <a href="https://github.com/jsmartin/ansible-examples/tree/riak/riak">https://github.com/jsmartin/ansible-examples/tree/riak/riak</a></p>
<p dir="auto">As you will see, notifies for 10.42.0.6 seem to be ocurring twice.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook -u vagrant site.yml -i ~/work/vms/ansible-riak/hosts -k
SSH password:
PLAY [riak_cluster] ***********************************************************
GATHERING FACTS ***************************************************************
ok: [10.42.0.7]
ok: [10.42.0.8]
ok: [10.42.0.6]
TASK: [update pam configuration] **********************************************
changed: [10.42.0.8]
changed: [10.42.0.6]
changed: [10.42.0.7]
TASK: [mount the riak volume with optmized settings] **************************
changed: [10.42.0.8]
changed: [10.42.0.7]
changed: [10.42.0.6]
TASK: [remount the partition] *************************************************
changed: [10.42.0.8]
changed: [10.42.0.6]
changed: [10.42.0.7]
TASK: [confgure rc.local] *****************************************************
changed: [10.42.0.6]
changed: [10.42.0.8]
changed: [10.42.0.7]
TASK: [create sysctl.d] *******************************************************
ok: [10.42.0.6]
ok: [10.42.0.8]
ok: [10.42.0.7]
TASK: [configure sysctl] ******************************************************
changed: [10.42.0.6]
changed: [10.42.0.7]
changed: [10.42.0.8]
TASK: [update system ulimit settings] *****************************************
ok: [10.42.0.7]
ok: [10.42.0.8]
ok: [10.42.0.6]
NOTIFIED: [update sysctl] *****************************************************
changed: [10.42.0.6]
changed: [10.42.0.7]
changed: [10.42.0.8]
NOTIFIED: [source rclocal] ****************************************************
changed: [10.42.0.8]
changed: [10.42.0.6]
changed: [10.42.0.7]
TASK: [group_by key={{ansible_distribution}}] *********************************
changed: [10.42.0.6]
NOTIFIED: [update sysctl] *****************************************************
changed: [10.42.0.6]
NOTIFIED: [source rclocal] ****************************************************
changed: [10.42.0.6]
PLAY [Ubuntu] *****************************************************************
TASK: [set the riak ulimit] ***************************************************
changed: [10.42.0.6]
changed: [10.42.0.7]
changed: [10.42.0.8]
TASK: [update pam configuration] **********************************************
changed: [10.42.0.8] => (item=/etc/pam.d/common-session)
changed: [10.42.0.6] => (item=/etc/pam.d/common-session)
changed: [10.42.0.7] => (item=/etc/pam.d/common-session)
changed: [10.42.0.8] => (item=/etc/pam.d/common-session-noninteractive)
changed: [10.42.0.6] => (item=/etc/pam.d/common-session-noninteractive)
changed: [10.42.0.7] => (item=/etc/pam.d/common-session-noninteractive)
TASK: [get the basho apt key] *************************************************
changed: [10.42.0.8]
changed: [10.42.0.6]
changed: [10.42.0.7]
TASK: [configure the basho repository] ****************************************
changed: [10.42.0.6]
changed: [10.42.0.8]
changed: [10.42.0.7]
TASK: [install riak] **********************************************************
changed: [10.42.0.6]
changed: [10.42.0.8]
changed: [10.42.0.7]
TASK: [configure iptables] ****************************************************
changed: [10.42.0.7]
changed: [10.42.0.6]
changed: [10.42.0.8]
NOTIFIED: [restore iptables] **************************************************
changed: [10.42.0.8]
changed: [10.42.0.6]
changed: [10.42.0.7]
NOTIFIED: [restore iptables] **************************************************
changed: [10.42.0.6]
PLAY [CentOS] *****************************************************************
skipping: no hosts matched
PLAY [riak_cluster] ***********************************************************
TASK: [configure app.config] **************************************************
changed: [10.42.0.6]
changed: [10.42.0.8]
changed: [10.42.0.7]
TASK: [configure vm.args] *****************************************************
changed: [10.42.0.6]
changed: [10.42.0.7]
changed: [10.42.0.8]
TASK: [start riak] ************************************************************
changed: [10.42.0.7]
changed: [10.42.0.6]
changed: [10.42.0.8]
TASK: [wait for port to become active] ****************************************
ok: [10.42.0.7]
ok: [10.42.0.6]
ok: [10.42.0.8]
TASK: [wait for riak_kv service to start] *************************************
ok: [10.42.0.8]
ok: [10.42.0.6]
ok: [10.42.0.7]
NOTIFIED: [restart riak] ******************************************************
changed: [10.42.0.7]
changed: [10.42.0.8]
changed: [10.42.0.6]
NOTIFIED: [wait for http] *****************************************************
ok: [10.42.0.8]
ok: [10.42.0.6]
ok: [10.42.0.7]
NOTIFIED: [wait for kv] *******************************************************
ok: [10.42.0.7]
ok: [10.42.0.6]
ok: [10.42.0.8]
NOTIFIED: [restart riak] ******************************************************
changed: [10.42.0.6]
NOTIFIED: [wait for http] *****************************************************
ok: [10.42.0.6]
NOTIFIED: [wait for kv] *******************************************************
ok: [10.42.0.6]
PLAY [riak_cluster] ***********************************************************
TASK: [Create a group based on riak node type.] *******************************
changed: [10.42.0.6]
TASK: [collect riak facts] ****************************************************
ok: [10.42.0.8]
ok: [10.42.0.6]
ok: [10.42.0.7]
PLAY [middle:last] ************************************************************
TASK: [debug msg='primary {{hostvars[groups['primary'][0]]['riak_outputs']['node_name']}}'] ***
ok: [10.42.0.7]
ok: [10.42.0.8]
TASK: [join riak cluster] *****************************************************
changed: [10.42.0.8]
changed: [10.42.0.7]
PLAY [last] *******************************************************************
TASK: [plan cluster changes] **************************************************
changed: [10.42.0.8]
NOTIFIED: [commit cluster changes] ********************************************
<job 374120038072> polling, 590s remaining
<job 374120038072> polling, 580s remaining
<job 374120038072> polling, 570s remaining
<job 374120038072> polling, 560s remaining
<job 374120038072> polling, 550s remaining
<job 374120038072> polling, 540s remaining
<job 374120038072> polling, 530s remaining
ok: [10.42.0.8]
<job 374120038072> finished on 10.42.0.8
PLAY RECAP ********************************************************************
10.42.0.6 : ok=34 changed=24 unreachable=0 failed=0
10.42.0.7 : ok=30 changed=21 unreachable=0 failed=0
10.42.0.8 : ok=33 changed=22 unreachable=0 failed=0 "><pre class="notranslate"><code class="notranslate">ansible-playbook -u vagrant site.yml -i ~/work/vms/ansible-riak/hosts -k
SSH password:
PLAY [riak_cluster] ***********************************************************
GATHERING FACTS ***************************************************************
ok: [10.42.0.7]
ok: [10.42.0.8]
ok: [10.42.0.6]
TASK: [update pam configuration] **********************************************
changed: [10.42.0.8]
changed: [10.42.0.6]
changed: [10.42.0.7]
TASK: [mount the riak volume with optmized settings] **************************
changed: [10.42.0.8]
changed: [10.42.0.7]
changed: [10.42.0.6]
TASK: [remount the partition] *************************************************
changed: [10.42.0.8]
changed: [10.42.0.6]
changed: [10.42.0.7]
TASK: [confgure rc.local] *****************************************************
changed: [10.42.0.6]
changed: [10.42.0.8]
changed: [10.42.0.7]
TASK: [create sysctl.d] *******************************************************
ok: [10.42.0.6]
ok: [10.42.0.8]
ok: [10.42.0.7]
TASK: [configure sysctl] ******************************************************
changed: [10.42.0.6]
changed: [10.42.0.7]
changed: [10.42.0.8]
TASK: [update system ulimit settings] *****************************************
ok: [10.42.0.7]
ok: [10.42.0.8]
ok: [10.42.0.6]
NOTIFIED: [update sysctl] *****************************************************
changed: [10.42.0.6]
changed: [10.42.0.7]
changed: [10.42.0.8]
NOTIFIED: [source rclocal] ****************************************************
changed: [10.42.0.8]
changed: [10.42.0.6]
changed: [10.42.0.7]
TASK: [group_by key={{ansible_distribution}}] *********************************
changed: [10.42.0.6]
NOTIFIED: [update sysctl] *****************************************************
changed: [10.42.0.6]
NOTIFIED: [source rclocal] ****************************************************
changed: [10.42.0.6]
PLAY [Ubuntu] *****************************************************************
TASK: [set the riak ulimit] ***************************************************
changed: [10.42.0.6]
changed: [10.42.0.7]
changed: [10.42.0.8]
TASK: [update pam configuration] **********************************************
changed: [10.42.0.8] => (item=/etc/pam.d/common-session)
changed: [10.42.0.6] => (item=/etc/pam.d/common-session)
changed: [10.42.0.7] => (item=/etc/pam.d/common-session)
changed: [10.42.0.8] => (item=/etc/pam.d/common-session-noninteractive)
changed: [10.42.0.6] => (item=/etc/pam.d/common-session-noninteractive)
changed: [10.42.0.7] => (item=/etc/pam.d/common-session-noninteractive)
TASK: [get the basho apt key] *************************************************
changed: [10.42.0.8]
changed: [10.42.0.6]
changed: [10.42.0.7]
TASK: [configure the basho repository] ****************************************
changed: [10.42.0.6]
changed: [10.42.0.8]
changed: [10.42.0.7]
TASK: [install riak] **********************************************************
changed: [10.42.0.6]
changed: [10.42.0.8]
changed: [10.42.0.7]
TASK: [configure iptables] ****************************************************
changed: [10.42.0.7]
changed: [10.42.0.6]
changed: [10.42.0.8]
NOTIFIED: [restore iptables] **************************************************
changed: [10.42.0.8]
changed: [10.42.0.6]
changed: [10.42.0.7]
NOTIFIED: [restore iptables] **************************************************
changed: [10.42.0.6]
PLAY [CentOS] *****************************************************************
skipping: no hosts matched
PLAY [riak_cluster] ***********************************************************
TASK: [configure app.config] **************************************************
changed: [10.42.0.6]
changed: [10.42.0.8]
changed: [10.42.0.7]
TASK: [configure vm.args] *****************************************************
changed: [10.42.0.6]
changed: [10.42.0.7]
changed: [10.42.0.8]
TASK: [start riak] ************************************************************
changed: [10.42.0.7]
changed: [10.42.0.6]
changed: [10.42.0.8]
TASK: [wait for port to become active] ****************************************
ok: [10.42.0.7]
ok: [10.42.0.6]
ok: [10.42.0.8]
TASK: [wait for riak_kv service to start] *************************************
ok: [10.42.0.8]
ok: [10.42.0.6]
ok: [10.42.0.7]
NOTIFIED: [restart riak] ******************************************************
changed: [10.42.0.7]
changed: [10.42.0.8]
changed: [10.42.0.6]
NOTIFIED: [wait for http] *****************************************************
ok: [10.42.0.8]
ok: [10.42.0.6]
ok: [10.42.0.7]
NOTIFIED: [wait for kv] *******************************************************
ok: [10.42.0.7]
ok: [10.42.0.6]
ok: [10.42.0.8]
NOTIFIED: [restart riak] ******************************************************
changed: [10.42.0.6]
NOTIFIED: [wait for http] *****************************************************
ok: [10.42.0.6]
NOTIFIED: [wait for kv] *******************************************************
ok: [10.42.0.6]
PLAY [riak_cluster] ***********************************************************
TASK: [Create a group based on riak node type.] *******************************
changed: [10.42.0.6]
TASK: [collect riak facts] ****************************************************
ok: [10.42.0.8]
ok: [10.42.0.6]
ok: [10.42.0.7]
PLAY [middle:last] ************************************************************
TASK: [debug msg='primary {{hostvars[groups['primary'][0]]['riak_outputs']['node_name']}}'] ***
ok: [10.42.0.7]
ok: [10.42.0.8]
TASK: [join riak cluster] *****************************************************
changed: [10.42.0.8]
changed: [10.42.0.7]
PLAY [last] *******************************************************************
TASK: [plan cluster changes] **************************************************
changed: [10.42.0.8]
NOTIFIED: [commit cluster changes] ********************************************
<job 374120038072> polling, 590s remaining
<job 374120038072> polling, 580s remaining
<job 374120038072> polling, 570s remaining
<job 374120038072> polling, 560s remaining
<job 374120038072> polling, 550s remaining
<job 374120038072> polling, 540s remaining
<job 374120038072> polling, 530s remaining
ok: [10.42.0.8]
<job 374120038072> finished on 10.42.0.8
PLAY RECAP ********************************************************************
10.42.0.6 : ok=34 changed=24 unreachable=0 failed=0
10.42.0.7 : ok=30 changed=21 unreachable=0 failed=0
10.42.0.8 : ok=33 changed=22 unreachable=0 failed=0
</code></pre></div> | 0 |
<p dir="auto">I'm using the Atom for Windows Alpha from the Atom website (not Chocolatey), version 0.136.0 (as viewed in the Help menu and with <code class="notranslate">--version</code> in the command line, the <code class="notranslate">version</code> file in the Atom folder says v0.17.1; it was downloaded around 12:30AM US Eastern on October 14, 2014 if that helps) on Windows 8.1. I set <code class="notranslate">text-rendering: optimizeLegibility;</code> for <code class="notranslate">.editor</code> in <code class="notranslate">styles.less</code> (because otherwise the ligatures aren't in effect and I get each individual character). This happens regardless of whether hardware acceleration is enabled. It also happens in <code class="notranslate">--safe</code> mode, and the developer tools console shows no errors.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4254261/4624455/bad18f5a-5364-11e4-9a0f-8c59596bcd59.png"><img src="https://cloud.githubusercontent.com/assets/4254261/4624455/bad18f5a-5364-11e4-9a0f-8c59596bcd59.png" alt="temp" style="max-width: 100%;"></a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(<*>)::Functor f=>(a->b)->(f a->f b)
fmap::Functor f=>(a->b)->(f a->f b)"><pre class="notranslate"><code class="notranslate">(<*>)::Functor f=>(a->b)->(f a->f b)
fmap::Functor f=>(a->b)->(f a->f b)
</code></pre></div>
<p dir="auto">in <a href="https://github.com/i-tu/Hasklig">Hasklig</a>, which has ligatures for <code class="notranslate"><*></code>, <code class="notranslate">::</code>, <code class="notranslate">=></code>, and <code class="notranslate">-></code>.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4254261/4624502/6b794cee-5365-11e4-8d85-a129dee8ae1d.png"><img src="https://cloud.githubusercontent.com/assets/4254261/4624502/6b794cee-5365-11e4-8d85-a129dee8ae1d.png" alt="temp" style="max-width: 100%;"></a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fifififififififififi"><pre class="notranslate"><code class="notranslate">fifififififififififi
</code></pre></div>
<p dir="auto">in Calibri, using the ligature for <code class="notranslate">fi</code>. The cursor is at the end of the line, and the misspell underline only leads up to that point as well. The ligature for <code class="notranslate">ff</code> in Calibri has the opposite effect; the cursor and underline extend farther than text on the screen if you put enough f's on a line.</p>
<p dir="auto">I can provide more details if you need them.</p> | <p dir="auto">This is more of a discussion than a concrete list of actionable items. Since Atom's launch, I've started to notice more things seeking my attention in an increasingly aggressive manner. They seem small in isolation, but when you add them up and make them recurring, Atom can begin to nag you.</p>
<p dir="auto">Below is the most recent example. I wanted to take a quick look at some docs, so I run <code class="notranslate">atom .</code></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/25/7800438/3c7af9e6-02ca-11e5-8dbe-b321bf2f7cde.png"><img src="https://cloud.githubusercontent.com/assets/25/7800438/3c7af9e6-02ca-11e5-8dbe-b321bf2f7cde.png" alt="screen shot 2015-05-25 at 10 30 25 am" style="max-width: 100%;"></a></p>
<p dir="auto">a. <strong>Non-fatal errors are blocking content</strong> - Is this dialog necessary given b.?<br>
b. <strong>Duplicate update notices</strong> - How can Atom minimize these or get rid of them completely?<br>
c. <strong>The <code class="notranslate">!</code> feels unnecessary</strong> - Deprecation and update notices now contain an <code class="notranslate">!</code> mark. It's small, but this changes the tone of the message from informing me, to shouting at me.<br>
d. <strong>More packages. more notices</strong> - It seems logical that the longer you are an Atom user, the more package you install, the more notices you are going to get.</p>
<h4 dir="auto">Deprecation notices</h4>
<p dir="auto">When you click on the deprecation notice text in the status bar, you are taken to this screen:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/25/7800595/a39f238e-02cc-11e5-8864-90a7e4d5bf04.png"><img src="https://cloud.githubusercontent.com/assets/25/7800595/a39f238e-02cc-11e5-8864-90a7e4d5bf04.png" alt="screen shot 2015-05-25 at 10 55 40 am" style="max-width: 100%;"></a></p>
<p dir="auto">This screen feels unnecessary to anyone <em>using</em> Atom. Unless I'm a developer or I'm specifically trying to debug packages, I'm not too concerned with what methods in what packages are deprecated. I would like the deprecation message to go away so I can get back to work. How can Atom help me do that? Could the "Check for updates" step happen automatically? Could updates be installed during relaunch or during idle time?</p>
<h4 dir="auto">Package updates</h4>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/25/7800708/52e0e5fc-02ce-11e5-86ca-9e0fb9bc78df.png"><img src="https://cloud.githubusercontent.com/assets/25/7800708/52e0e5fc-02ce-11e5-86ca-9e0fb9bc78df.png" alt="screen shot 2015-05-25 at 11 07 37 am" style="max-width: 100%;"></a></p>
<p dir="auto">There's 1 update available. When I click the notice in the status bar, I'm taken to this screen that runs an additional check for updates and then lists the packages that have updates. Does Atom need to run this check again since it knows I have a package that needs an update already?</p>
<h4 dir="auto">Some considerations</h4>
<p dir="auto">In the spirit of GitHub Zen, here are a few things to consider:</p>
<ul dir="auto">
<li>Atom should strive to not block content for non-fatal errors.</li>
<li>Atom should strive to keep notifications to a minimum.</li>
<li>Atom should strive to reduce manual administrative overhead (updating packages, atom, etc.).</li>
</ul>
<p dir="auto"><g-emoji class="g-emoji" alias="bow" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f647.png">🙇</g-emoji> Thanks for the fantastic work</p> | 0 |
<h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<p dir="auto">sharding-jdbc-4.0.0-RC4-SNAPSHOT</p>
<h3 dir="auto">Which project did you use? Sharding-JDBC or Sharding-Proxy?</h3>
<p dir="auto">sharding-jdbc</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto"><code class="notranslate">insert into user_info (cust_id, unique_id, name, ident, mobile, password, reg_time, modify_time, reg_source, reg_app_channel, reg_device_info, status, is_mobile_authed, complate_cust_info, time_inst, time_upd, has_checked, system) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, now() , ?, ?, ?) ON DUPLICATE KEY UPDATE id = 1, ident = ?, reg_source= ? </code><br>
the sql above can work fine.</p>
<h3 dir="auto">Actual behavior</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2020-01-03 10:48:12.687 INFO 28800 --- [batis-jap-test0] ShardingSphere-SQL : Rule Type: encrypt
2020-01-03 10:48:12.688 INFO 28800 --- [batis-jap-test0] ShardingSphere-SQL : SQL: insert into user_info (cust_id, unique_id, name_enc, name,
ident_enc, ident, mobile_enc, mobile, password,
reg_time, modify_time, reg_source,
reg_app_channel, reg_device_info, status,
is_mobile_authed, complate_cust_info, time_inst,
time_upd, has_checked, system)
values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, now(), ?, ?, ?)
ON DUPLICATE KEY UPDATE id = 1, ident = ?, reg_source = ?
2020-01-03 10:48:13.563 INFO 28800 --- [batis-jap-test0] o.s.b.f.xml.XmlBeanDefinitionReader : Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]
2020-01-03 10:48:13.616 INFO 28800 --- [batis-jap-test0] o.s.jdbc.support.SQLErrorCodesFactory : SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase, Hana]
2020-01-03 10:48:13.624 ERROR 28800 --- [batis-jap-test0] t.ThreadMybatisAndJPATest$Half :
org.springframework.jdbc.BadSqlGrammarException:
### Error updating database. Cause: java.sql.SQLException: No value specified for parameter 21
### The error may involve transparent.mybatis.mapper.UserInfoMapper.insertOnDuplicateKey-Inline
### The error occurred while setting parameters
### SQL: insert into user_info (cust_id, unique_id, name, ident, mobile, password, reg_time, modify_time, reg_source, reg_app_channel, reg_device_info, status, is_mobile_authed, complate_cust_info, time_inst, time_upd, has_checked, system) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, now() , ?, ?, ?) ON DUPLICATE KEY UPDATE id = 1, ident = ?, reg_source = ?
### Cause: java.sql.SQLException: No value specified for parameter 21
; bad SQL grammar []; nested exception is java.sql.SQLException: No value specified for parameter 21
at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:99)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:73)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:446)
at com.sun.proxy.$Proxy107.insert(Unknown Source)
at org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:278)
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:58)
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:59)
at com.sun.proxy.$Proxy116.insertOnDuplicateKey(Unknown Source)
at transparent.ThreadMybatisAndJPATest.testMybatis(ThreadMybatisAndJPATest.java:96)
at transparent.ThreadMybatisAndJPATest$Half.call(ThreadMybatisAndJPATest.java:227)
at transparent.ThreadMybatisAndJPATest$Half.call(ThreadMybatisAndJPATest.java:216)
at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
at java.util.concurrent.FutureTask.run(FutureTask.java)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: No value specified for parameter 21
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:861)
at com.mysql.jdbc.PreparedStatement.checkAllParametersSet(PreparedStatement.java:2211)
at com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.java:2191)
at com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.java:2121)
at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1162)
at com.alibaba.druid.pool.DruidPooledPreparedStatement.execute(DruidPooledPreparedStatement.java:493)
at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.EncryptPreparedStatement.execute(EncryptPreparedStatement.java:142)
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:497)
at org.apache.ibatis.logging.jdbc.PreparedStatementLogger.invoke(PreparedStatementLogger.java:59)
at com.sun.proxy.$Proxy120.execute(Unknown Source)
at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:46)
at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:74)
at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:50)
at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:117)
at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:76)
at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:198)
at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:185)
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:497)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:433)
... 13 common frames omitted"><pre class="notranslate"><code class="notranslate">2020-01-03 10:48:12.687 INFO 28800 --- [batis-jap-test0] ShardingSphere-SQL : Rule Type: encrypt
2020-01-03 10:48:12.688 INFO 28800 --- [batis-jap-test0] ShardingSphere-SQL : SQL: insert into user_info (cust_id, unique_id, name_enc, name,
ident_enc, ident, mobile_enc, mobile, password,
reg_time, modify_time, reg_source,
reg_app_channel, reg_device_info, status,
is_mobile_authed, complate_cust_info, time_inst,
time_upd, has_checked, system)
values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, now(), ?, ?, ?)
ON DUPLICATE KEY UPDATE id = 1, ident = ?, reg_source = ?
2020-01-03 10:48:13.563 INFO 28800 --- [batis-jap-test0] o.s.b.f.xml.XmlBeanDefinitionReader : Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]
2020-01-03 10:48:13.616 INFO 28800 --- [batis-jap-test0] o.s.jdbc.support.SQLErrorCodesFactory : SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase, Hana]
2020-01-03 10:48:13.624 ERROR 28800 --- [batis-jap-test0] t.ThreadMybatisAndJPATest$Half :
org.springframework.jdbc.BadSqlGrammarException:
### Error updating database. Cause: java.sql.SQLException: No value specified for parameter 21
### The error may involve transparent.mybatis.mapper.UserInfoMapper.insertOnDuplicateKey-Inline
### The error occurred while setting parameters
### SQL: insert into user_info (cust_id, unique_id, name, ident, mobile, password, reg_time, modify_time, reg_source, reg_app_channel, reg_device_info, status, is_mobile_authed, complate_cust_info, time_inst, time_upd, has_checked, system) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, now() , ?, ?, ?) ON DUPLICATE KEY UPDATE id = 1, ident = ?, reg_source = ?
### Cause: java.sql.SQLException: No value specified for parameter 21
; bad SQL grammar []; nested exception is java.sql.SQLException: No value specified for parameter 21
at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:99)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:73)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:446)
at com.sun.proxy.$Proxy107.insert(Unknown Source)
at org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:278)
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:58)
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:59)
at com.sun.proxy.$Proxy116.insertOnDuplicateKey(Unknown Source)
at transparent.ThreadMybatisAndJPATest.testMybatis(ThreadMybatisAndJPATest.java:96)
at transparent.ThreadMybatisAndJPATest$Half.call(ThreadMybatisAndJPATest.java:227)
at transparent.ThreadMybatisAndJPATest$Half.call(ThreadMybatisAndJPATest.java:216)
at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
at java.util.concurrent.FutureTask.run(FutureTask.java)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: No value specified for parameter 21
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:861)
at com.mysql.jdbc.PreparedStatement.checkAllParametersSet(PreparedStatement.java:2211)
at com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.java:2191)
at com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.java:2121)
at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1162)
at com.alibaba.druid.pool.DruidPooledPreparedStatement.execute(DruidPooledPreparedStatement.java:493)
at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.EncryptPreparedStatement.execute(EncryptPreparedStatement.java:142)
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:497)
at org.apache.ibatis.logging.jdbc.PreparedStatementLogger.invoke(PreparedStatementLogger.java:59)
at com.sun.proxy.$Proxy120.execute(Unknown Source)
at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:46)
at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:74)
at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:50)
at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:117)
at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:76)
at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:198)
at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:185)
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:497)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:433)
... 13 common frames omitted
</code></pre></div>
<h3 dir="auto">Reason analyze (If you can)</h3>
<p dir="auto">no preparedStatement parameter after <code class="notranslate">on duplicate key update</code> work fine.<br>
such as this sql:<br>
<code class="notranslate">insert into user_info (cust_id, unique_id, name, ident, mobile, password, reg_time, modify_time, reg_source, reg_app_channel, reg_device_info, status, is_mobile_authed, complate_cust_info, time_inst, time_upd, has_checked, system) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, now() , ?, ?, ?) ON DUPLICATE KEY UPDATE id = 1</code></p>
<h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3>
<h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3> | <h3 dir="auto">Error updating database. Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Incorrect datetime value: 'now()' for column 'UPDATE_TIME' at row 1</h3>
<h3 dir="auto">The error may involve defaultParameterMap</h3>
<h3 dir="auto">The error occurred while setting parameters</h3>
<h3 dir="auto">SQL: insert into ts_anshitianxia_node_data(ID, PARENT_ID,NODE_ID,TAGS, IMAGE, NAME, ALIAS, UNIT,NUM,TS_NODE_PATH,COMPANY_ID,TABLE_NAME,GOODS_ID,UPDATE_TIME,CREATE_USER,UPDATE_USER,IS_DEL,HASHCODE,PRODUCT_COMP_CODE,SLA_COMP_CODE,COMPANY_CODE) values (?,?,?,?,?,?,?,?,?,?,?,?,?,now(),?,?,0,?,?,?,?)</h3>
<h3 dir="auto">Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Incorrect datetime value: 'now()' for column 'UPDATE_TIME' at row 1</h3>
<p dir="auto">; Data truncation: Incorrect datetime value: 'now()' for column 'UPDATE_TIME' at row 1; nested exception is com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Incorrect datetime value: 'now()' for column 'UPDATE_TIME' at row 1</p>
<p dir="auto">Is the now() expression not supported in insert statements?</p> | 0 |
<p dir="auto">this article suggests that React Router was being consider around version 5.<br>
<a href="https://react-etc.net/entry/next-js-to-adopt-react-router" rel="nofollow">https://react-etc.net/entry/next-js-to-adopt-react-router</a></p>
<p dir="auto">is Next supporting the React Router in version 9?</p>
<p dir="auto">thanks</p> | <p dir="auto">Is it possible to use next.js with the new react router v4?</p> | 1 |
<p dir="auto">I ran into this error when running <code class="notranslate">python .\tools\test.py</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="E:\Workspace\Github\deno\out\debug\deno.exe E:\Workspace\Github\deno\tests\003_relative_import.ts --reload
E:\Workspace\Github\deno\out\debug\deno.exe E:\Workspace\Github\deno\tests\004_set_timeout.ts --reload
E:\Workspace\Github\deno\out\debug\deno.exe E:\Workspace\Github\deno\tests\005_more_imports.ts --reload
E:\Workspace\Github\deno\out\debug\deno.exe E:\Workspace\Github\deno\tests\006_url_imports.ts --reload
127.0.0.1 - - [23/Sep/2018 20:32:26] "GET /tests/subdir/mod2.ts HTTP/1.1" 200 -
127.0.0.1 - - [23/Sep/2018 20:32:27] "GET /tests/subdir/print_hello.ts HTTP/1.1" 200 -
Expected success but got error. Output:
Downloading http://localhost:4545/tests/subdir/mod2.ts
Downloading http://localhost:4545/tests/subdir/print_hello.ts
error TS5009: Cannot find the common subdirectory path for the input files."><pre class="notranslate"><code class="notranslate">E:\Workspace\Github\deno\out\debug\deno.exe E:\Workspace\Github\deno\tests\003_relative_import.ts --reload
E:\Workspace\Github\deno\out\debug\deno.exe E:\Workspace\Github\deno\tests\004_set_timeout.ts --reload
E:\Workspace\Github\deno\out\debug\deno.exe E:\Workspace\Github\deno\tests\005_more_imports.ts --reload
E:\Workspace\Github\deno\out\debug\deno.exe E:\Workspace\Github\deno\tests\006_url_imports.ts --reload
127.0.0.1 - - [23/Sep/2018 20:32:26] "GET /tests/subdir/mod2.ts HTTP/1.1" 200 -
127.0.0.1 - - [23/Sep/2018 20:32:27] "GET /tests/subdir/print_hello.ts HTTP/1.1" 200 -
Expected success but got error. Output:
Downloading http://localhost:4545/tests/subdir/mod2.ts
Downloading http://localhost:4545/tests/subdir/print_hello.ts
error TS5009: Cannot find the common subdirectory path for the input files.
</code></pre></div>
<p dir="auto">OS: Windows 10 x64<br>
Node version: v8.12.0<br>
NPM version: v6.4.1</p>
<p dir="auto">How to solve this issue?</p>
<p dir="auto">P.S. Similar issue was faced <a href="https://github.com/ivogabe/gulp-typescript/issues/193" data-hovercard-type="issue" data-hovercard-url="/ivogabe/gulp-typescript/issues/193/hovercard">here</a> and <a href="https://github.com/Microsoft/TypeScript/issues/11727" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/11727/hovercard">here</a> not sure if both are relevent but I can't figure it out still.</p> | <p dir="auto">There is some problem on Windows WRT to module resolution and the <code class="notranslate">$DENO_DIR</code> environmental variable.<br>
I've seen it in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="391397416" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/1356" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/1356/hovercard" href="https://github.com/denoland/deno/pull/1356">#1356</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="393200425" data-permission-text="Title is private" data-url="https://github.com/denoland/deno_std/issues/37" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno_std/pull/37/hovercard" href="https://github.com/denoland/deno_std/pull/37">denoland/deno_std#37</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2018-12-20T21:08:48.3095557Z C:\Users\VssAdministrator\.deno\bin\deno.exe test.ts --allow-run --allow-net
2018-12-20T21:08:48.3724814Z ##[command]"C:\Windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "D:\a\_temp\eaf9adfb-fc74-4aa4-9a31-70201da22e50.cmd""
2018-12-20T21:08:48.9943938Z Compiling D:/a/1/s/test.ts
2018-12-20T21:08:49.6446393Z Downloading https://deno.land/x/testing/testing.ts...
2018-12-20T21:08:49.8951715Z Downloading https://deno.land/x/testing/util... NOT FOUND
2018-12-20T21:08:50.1296920Z Downloading https://deno.land/x/testing/util.ts...
2018-12-20T21:08:51.0053504Z error TS5009: Cannot find the common subdirectory path for the input files.
2018-12-20T21:08:51.0054022Z "><pre class="notranslate"><code class="notranslate">2018-12-20T21:08:48.3095557Z C:\Users\VssAdministrator\.deno\bin\deno.exe test.ts --allow-run --allow-net
2018-12-20T21:08:48.3724814Z ##[command]"C:\Windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "D:\a\_temp\eaf9adfb-fc74-4aa4-9a31-70201da22e50.cmd""
2018-12-20T21:08:48.9943938Z Compiling D:/a/1/s/test.ts
2018-12-20T21:08:49.6446393Z Downloading https://deno.land/x/testing/testing.ts...
2018-12-20T21:08:49.8951715Z Downloading https://deno.land/x/testing/util... NOT FOUND
2018-12-20T21:08:50.1296920Z Downloading https://deno.land/x/testing/util.ts...
2018-12-20T21:08:51.0053504Z error TS5009: Cannot find the common subdirectory path for the input files.
2018-12-20T21:08:51.0054022Z
</code></pre></div>
<p dir="auto">You can reproduce this by cloning <a href="https://github.com/denoland/deno_std">https://github.com/denoland/deno_std</a> and running <code class="notranslate">deno test.ts</code></p> | 1 |
<p dir="auto">GradientBoostingClassifier does not work correctly, when the BasePredictor (init) is set to something like linear_model.LogisticRegression().</p>
<p dir="auto">I thinks the source of the error is in in BaseGradientBoosting.fit() where<br>
# init predictions<br>
y_pred = self.init_.predict(X)</p>
<p dir="auto">y_pred should be initialized by class probabilities and not with the winner class.</p>
<p dir="auto">Replacing y_pred = self.init_.predict(X) with y_pred = self.init_.predict_proba(X) can solve the problem.</p> | <p dir="auto">here is a tiny script which reproduces the crash.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sklearn.datasets import load_iris
from sklearn import ensemble
from sklearn.cross_validation import train_test_split
iris = load_iris()
X, y = iris.data, iris.target
X, y = X[y < 2], y[y < 2] # make it binary
X_train, X_test, y_train, y_test = train_test_split(X, y)
# Fit GBT init with RF
rf = ensemble.RandomForestClassifier()
clf = ensemble.GradientBoostingClassifier(init=rf)
clf.fit(X_train, y_train)
acc = clf.score(X_test, y_test)
print("Accuracy: {:.4f}".format(acc))"><pre class="notranslate"><code class="notranslate">from sklearn.datasets import load_iris
from sklearn import ensemble
from sklearn.cross_validation import train_test_split
iris = load_iris()
X, y = iris.data, iris.target
X, y = X[y < 2], y[y < 2] # make it binary
X_train, X_test, y_train, y_test = train_test_split(X, y)
# Fit GBT init with RF
rf = ensemble.RandomForestClassifier()
clf = ensemble.GradientBoostingClassifier(init=rf)
clf.fit(X_train, y_train)
acc = clf.score(X_test, y_test)
print("Accuracy: {:.4f}".format(acc))
</code></pre></div>
<p dir="auto">It also seems that the init param in GradientBoostingClassifier is<br>
not really tested.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pprett/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pprett">@pprett</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/glouppe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/glouppe">@glouppe</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ogrisel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ogrisel">@ogrisel</a></p> | 1 |
<p dir="auto">Currently, if a static_argnums or static_argname doesn't exist for the function, nothing happens<br>
This can be an issue if a function is updated but the jax.jit not being updated</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import jax
import functools
@functools.partial(jax.jit, static_argnames=('b', 'd'))
def f(a, b, c):
return a + b + c
print(f(1., 2., 3.))
@functools.partial(jax.jit, static_argnums=(1, 3))
def g(a, b, c):
return a + b + c
print(g(1., 2., 3.))"><pre class="notranslate"><code class="notranslate">import jax
import functools
@functools.partial(jax.jit, static_argnames=('b', 'd'))
def f(a, b, c):
return a + b + c
print(f(1., 2., 3.))
@functools.partial(jax.jit, static_argnums=(1, 3))
def g(a, b, c):
return a + b + c
print(g(1., 2., 3.))
</code></pre></div>
<p dir="auto">I propose that a warning is raised if an arg num or arg name doesn't exist such that code will still run if the arg num or name doesn't exist but the programmer is made aware of the issue (and can silence if necessary)<br>
Is there a good reason for this not existing already?</p>
<p dir="auto">[x] I can't find a previous issue on this</p> | <p dir="auto">Hi There,</p>
<p dir="auto">I've just done an install of jax on a fresh install of Ubuntu 18.04 LTS --- as vanilla as possible.<br>
I followed the installation instructions for CPU+GPU support.</p>
<p dir="auto">When I try to import jax in python I get the following:</p>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<p dir="auto">Python 3.6.9 (default, Nov 7 2019, 10:44:02)<br>
Type "copyright", "credits" or "license" for more information.</p>
<p dir="auto">IPython 5.5.0 -- An enhanced Interactive Python.<br>
? -> Introduction and overview of IPython's features.<br>
%quickref -> Quick reference.<br>
help -> Python's own help system.<br>
object? -> Details about 'object', use 'object??' for extra details.</p>
<h2 dir="auto">In [1]: import jax</h2>
<h2 dir="auto">RuntimeError Traceback (most recent call last)<br>
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb</h2>
<h2 dir="auto">RuntimeError Traceback (most recent call last)<br>
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb</h2>
<p dir="auto">ImportError Traceback (most recent call last)<br>
in ()<br>
----> 1 import jax</p>
<p dir="auto">/home/case/.local/lib/python3.6/site-packages/jax/<strong>init</strong>.py in ()<br>
17<br>
18 from jax.version import <strong>version</strong><br>
---> 19 from jax.api import *<br>
20 from jax import nn<br>
21 from jax import random</p>
<p dir="auto">/home/case/.local/lib/python3.6/site-packages/jax/api.py in ()<br>
35 from contextlib import contextmanager<br>
36<br>
---> 37 from . import core<br>
38 from . import linear_util as lu<br>
39 from . import ad_util</p>
<p dir="auto">/home/case/.local/lib/python3.6/site-packages/jax/core.py in ()<br>
28 import numpy as onp<br>
29<br>
---> 30 from . import dtypes<br>
31 from . import linear_util as lu<br>
32</p>
<p dir="auto">/home/case/.local/lib/python3.6/site-packages/jax/dtypes.py in ()<br>
29 from . import util<br>
30 from .config import flags<br>
---> 31 from .lib import xla_client<br>
32<br>
33 FLAGS = flags.FLAGS</p>
<p dir="auto">/home/case/.local/lib/python3.6/site-packages/jax/lib/<strong>init</strong>.py in ()<br>
50 except:<br>
51 tpu_client = None<br>
---> 52 from jaxlib import xla_client<br>
53 from jaxlib import lapack<br>
54</p>
<p dir="auto">/home/case/.local/lib/python3.6/site-packages/jaxlib/xla_client.py in ()<br>
35 # and TensorFlow may fail with duplicate protocol buffer message definitions.<br>
36<br>
---> 37 from . import xla_extension as _xla<br>
38 from .xla_extension import ops<br>
39</p>
<p dir="auto">ImportError: Unable to initialize Numpy API</p>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<p dir="auto">I've tried searching for this issue and looking through these archives, but can't find anyone with this problem.<br>
Any idea where I should start with trying to figure out the install?<br>
As mentioned, I tried to keep everything as vanilla as possible: fresh Ubuntu 18.04 install, installed nvidia drivers with no issue, installed cuda 10.1 with no issue, the install instructions appeared to worked for jax.<br>
So it seems quite possible that others may run into the issue.</p>
<p dir="auto">Any help appreciated.</p> | 0 |
<p dir="auto"><a href="http://www.material-ui.com/#/components/table" rel="nofollow">http://www.material-ui.com/#/components/table</a><br>
Is there any way to add on the sorting function in tables in material design way?</p> | <p dir="auto">I would like there to be sortable columns for the data table similar to those shown in google material design: <a href="http://www.google.com/design/spec/components/data-tables.html#data-tables-interaction" rel="nofollow">http://www.google.com/design/spec/components/data-tables.html#data-tables-interaction</a></p> | 1 |
<p dir="auto">I tried this code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="struct ostage<'a> {
nodes: Vec<Node<'a>>
}
impl<'a> ostage<'a> {
fn append_nodes(&self, Vec<Node>) {
self.nodes.append(&mut new_nodes);
}
}"><pre class="notranslate"><code class="notranslate">struct ostage<'a> {
nodes: Vec<Node<'a>>
}
impl<'a> ostage<'a> {
fn append_nodes(&self, Vec<Node>) {
self.nodes.append(&mut new_nodes);
}
}
</code></pre></div>
<p dir="auto">(definition of <code class="notranslate">Node</code> ommitted, the bug already occurs in this short snippet)</p>
<p dir="auto">I expected to see this happen: The compiler should complain about the not existent naming of the second parameter of <code class="notranslate">append_nodes</code>.</p>
<p dir="auto">Instead, this happened: Compiler said:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bug_example.rs:7:28: 7:31 error: internal compiler error: ident only path should have been covered already
bug_example.rs:7 fn append_nodes(&self, Vec<Node>) {
^~~
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:129"><pre class="notranslate"><code class="notranslate">bug_example.rs:7:28: 7:31 error: internal compiler error: ident only path should have been covered already
bug_example.rs:7 fn append_nodes(&self, Vec<Node>) {
^~~
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:129
</code></pre></div>
<h2 dir="auto">Meta</h2>
<p dir="auto"><code class="notranslate">rustc --version --verbose</code>:</p>
<ul dir="auto">
<li>1.0.0-nightly (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/522d09dfecbeca1595f25ac58c6d0178bbd21d7d/hovercard" href="https://github.com/rust-lang/rust/commit/522d09dfecbeca1595f25ac58c6d0178bbd21d7d"><tt>522d09d</tt></a> 2015-02-19) (built 2015-02-21)</li>
<li>binary: rustc</li>
<li>commit-hash: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/522d09dfecbeca1595f25ac58c6d0178bbd21d7d/hovercard" href="https://github.com/rust-lang/rust/commit/522d09dfecbeca1595f25ac58c6d0178bbd21d7d"><tt>522d09d</tt></a></li>
<li>commit-date: 2015-02-19</li>
<li>build-date: 2015-02-21</li>
<li>host: x86_64-unknown-linux-gnu</li>
<li>release: 1.0.0-nightly</li>
</ul>
<p dir="auto">Backtrace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 1: 0x7fbbc5e7b210 - sys::backtrace::write::h252031bd050bf19aKlC
2: 0x7fbbc5ea3ac0 - panicking::on_panic::h8a07e978260e2c7btXL
3: 0x7fbbc5de4720 - rt::unwind::begin_unwind_inner::h322bcb3f35268c19RBL
4: 0x7fbbc30d2aa0 - rt::unwind::begin_unwind::h14707831790480024292
5: 0x7fbbc30d2a30 - diagnostic::SpanHandler::span_bug::hc8a5aaa027e1ffe4vYE
6: 0x7fbbc30f5440 - parse::parser::Parser<'a>::parse_pat::hb2ecf80c7f350654wLL
7: 0x7fbbc30ede80 - parse::parser::Parser<'a>::parse_arg_general::hcec437b628467db684J
8: 0x7fbbc311c860 - parse::parser::Parser<'a>::parse_seq_to_before_end::h6260280699255559793
9: 0x7fbbc3119b30 - parse::parser::Parser<'a>::parse_method::h0d3e8afbedb80840ZWM
10: 0x7fbbc311d5c0 - parse::parser::Parser<'a>::parse_item_impl::hd52de03300e36175z4M
11: 0x7fbbc310e370 - parse::parser::Parser<'a>::parse_item_::h60b4bcefd23d6140zUN
12: 0x7fbbc311f8e0 - parse::parser::Parser<'a>::parse_mod_items::h79ee3c5e427ceaaaPjN
13: 0x7fbbc312ae30 - parse::parser::Parser<'a>::parse_crate_mod::h221baa0e96bbcf97FlO
14: 0x7fbbc313dcf0 - parse::parse_crate_from_file::h14706417f2de711evNV
15: 0x7fbbc6505340 - driver::phase_1_parse_input::closure.16948
16: 0x7fbbc64df670 - driver::phase_1_parse_input::ha93ec06764e22311Qra
17: 0x7fbbc64dc070 - driver::compile_input::h0c8d8120f6194473Gba
18: 0x7fbbc65ab2b0 - run_compiler::heccd2f43b844857cZbc
19: 0x7fbbc65a9bb0 - thunk::F.Invoke<A, R>::invoke::h14556331494175157254
20: 0x7fbbc65a8aa0 - rt::unwind::try::try_fn::h8181016918202193540
21: 0x7fbbc5f10880 - rust_try_inner
22: 0x7fbbc5f10870 - rust_try
23: 0x7fbbc65a8da0 - thunk::F.Invoke<A, R>::invoke::h12418455792421810631
24: 0x7fbbc5e8fb60 - sys::thread::thread_start::h3defdaea150d8cd693G
25: 0x7fbbbfd912b0 - start_thread
26: 0x7fbbc5a6d249 - __clone
27: 0x0 - <unknown>"><pre class="notranslate"><code class="notranslate"> 1: 0x7fbbc5e7b210 - sys::backtrace::write::h252031bd050bf19aKlC
2: 0x7fbbc5ea3ac0 - panicking::on_panic::h8a07e978260e2c7btXL
3: 0x7fbbc5de4720 - rt::unwind::begin_unwind_inner::h322bcb3f35268c19RBL
4: 0x7fbbc30d2aa0 - rt::unwind::begin_unwind::h14707831790480024292
5: 0x7fbbc30d2a30 - diagnostic::SpanHandler::span_bug::hc8a5aaa027e1ffe4vYE
6: 0x7fbbc30f5440 - parse::parser::Parser<'a>::parse_pat::hb2ecf80c7f350654wLL
7: 0x7fbbc30ede80 - parse::parser::Parser<'a>::parse_arg_general::hcec437b628467db684J
8: 0x7fbbc311c860 - parse::parser::Parser<'a>::parse_seq_to_before_end::h6260280699255559793
9: 0x7fbbc3119b30 - parse::parser::Parser<'a>::parse_method::h0d3e8afbedb80840ZWM
10: 0x7fbbc311d5c0 - parse::parser::Parser<'a>::parse_item_impl::hd52de03300e36175z4M
11: 0x7fbbc310e370 - parse::parser::Parser<'a>::parse_item_::h60b4bcefd23d6140zUN
12: 0x7fbbc311f8e0 - parse::parser::Parser<'a>::parse_mod_items::h79ee3c5e427ceaaaPjN
13: 0x7fbbc312ae30 - parse::parser::Parser<'a>::parse_crate_mod::h221baa0e96bbcf97FlO
14: 0x7fbbc313dcf0 - parse::parse_crate_from_file::h14706417f2de711evNV
15: 0x7fbbc6505340 - driver::phase_1_parse_input::closure.16948
16: 0x7fbbc64df670 - driver::phase_1_parse_input::ha93ec06764e22311Qra
17: 0x7fbbc64dc070 - driver::compile_input::h0c8d8120f6194473Gba
18: 0x7fbbc65ab2b0 - run_compiler::heccd2f43b844857cZbc
19: 0x7fbbc65a9bb0 - thunk::F.Invoke<A, R>::invoke::h14556331494175157254
20: 0x7fbbc65a8aa0 - rt::unwind::try::try_fn::h8181016918202193540
21: 0x7fbbc5f10880 - rust_try_inner
22: 0x7fbbc5f10870 - rust_try
23: 0x7fbbc65a8da0 - thunk::F.Invoke<A, R>::invoke::h12418455792421810631
24: 0x7fbbc5e8fb60 - sys::thread::thread_start::h3defdaea150d8cd693G
25: 0x7fbbbfd912b0 - start_thread
26: 0x7fbbc5a6d249 - __clone
27: 0x0 - <unknown>
</code></pre></div> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc 1.0.0-dev (f0f7ca27d 2015-02-23) (built 2015-02-23)"><pre class="notranslate"><code class="notranslate">rustc 1.0.0-dev (f0f7ca27d 2015-02-23) (built 2015-02-23)
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="building application
Compiling android_glue v0.0.1 (file:///mnt/host/kmcg3413.net/FireRoute/android-clui)
/mnt/host/kmcg3413.net/FireRoute/apk-builder/glue/src/lowglue/mod.rs:39:25: 39:28 error: internal compiler error: ident only path should have been covered already
/mnt/host/kmcg3413.net/FireRoute/apk-builder/glue/src/lowglue/mod.rs:39 pub fn android_main(Arc<ActivityState>);
^~~
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>', /mnt/host/kmcg3413.net/rust/src/libsyntax/diagnostic.rs:129
stack backtrace:
1: 0x7fd0ca974090 - sys::backtrace::write::h4e9a31aa2e8023179rC
2: 0x7fd0ca99cca0 - panicking::on_panic::hc7167c0722a05a78b9L
3: 0x7fd0ca8dc860 - rt::unwind::begin_unwind_inner::h8d46481699e3751fwNL
4: 0x7fd0c7bd5430 - rt::unwind::begin_unwind::h14067791790174494748
5: 0x7fd0c7bd53c0 - diagnostic::SpanHandler::span_bug::h85d108ba45cb62f281E
6: 0x7fd0c7bf7e70 - parse::parser::Parser<'a>::parse_pat::h6d0073e3d8694344ZPL
7: 0x7fd0c7bf08b0 - parse::parser::Parser<'a>::parse_arg_general::h8114594c0bc8a45ei9J
8: 0x7fd0c7c1bde0 - parse::parser::Parser<'a>::parse_seq_to_before_end::h1598884596488876550
9: 0x7fd0c7bef6c0 - parse::parser::Parser<'a>::parse_fn_args::h47c7163922b1aa1b1EM
10: 0x7fd0c7c1c470 - parse::parser::Parser<'a>::parse_fn_decl::h2b34c90f31c289d7wHM
11: 0x7fd0c7c2d020 - parse::parser::Parser<'a>::parse_foreign_item::hb5b9d02987c373a3rdO
12: 0x7fd0c7c29880 - parse::parser::Parser<'a>::parse_foreign_mod_items::h608317c1fc7b75890JN
13: 0x7fd0c7c11540 - parse::parser::Parser<'a>::parse_item_::h5342af3cfac016bc3YN
14: 0x7fd0c7c22ab0 - parse::parser::Parser<'a>::parse_mod_items::hcf50c5d5eff08ba3ioN
15: 0x7fd0c7c23e40 - parse::parser::Parser<'a>::eval_src_mod::hefec9279931acc91iwN
16: 0x7fd0c7c11540 - parse::parser::Parser<'a>::parse_item_::h5342af3cfac016bc3YN
17: 0x7fd0c7c22ab0 - parse::parser::Parser<'a>::parse_mod_items::hcf50c5d5eff08ba3ioN
18: 0x7fd0c7c2dfe0 - parse::parser::Parser<'a>::parse_crate_mod::h3a386f4cf831334c9pO
19: 0x7fd0c7c40d30 - parse::parse_crate_from_file::he93fe4d172bcd8ccjSV
20: 0x7fd0caffe510 - driver::phase_1_parse_input::closure.15704
21: 0x7fd0cafd8840 - driver::phase_1_parse_input::h4fb166827a2f9cbcYra
22: 0x7fd0cafd5240 - driver::compile_input::h0bec8d7ff7428d7dGba
23: 0x7fd0cb0a4330 - run_compiler::h71833f9bcc896daaWbc
24: 0x7fd0cb0a2c30 - thunk::F.Invoke<A, R>::invoke::h14347372239080705007
25: 0x7fd0cb0a1b20 - rt::unwind::try::try_fn::h10841254516551992180
26: 0x7fd0caa0a280 - rust_try_inner
27: 0x7fd0caa0a270 - rust_try
28: 0x7fd0cb0a1e20 - thunk::F.Invoke<A, R>::invoke::h15709534366616734131
29: 0x7fd0ca988a70 - sys::thread::thread_start::h15e840368764388fGdH
30: 0x7fd0c49cda80 - start_thread
31: 0x0 - <unknown>
Could not compile `android_glue`.
To learn more, run the command again with --verbose.
installing application"><pre class="notranslate"><code class="notranslate">building application
Compiling android_glue v0.0.1 (file:///mnt/host/kmcg3413.net/FireRoute/android-clui)
/mnt/host/kmcg3413.net/FireRoute/apk-builder/glue/src/lowglue/mod.rs:39:25: 39:28 error: internal compiler error: ident only path should have been covered already
/mnt/host/kmcg3413.net/FireRoute/apk-builder/glue/src/lowglue/mod.rs:39 pub fn android_main(Arc<ActivityState>);
^~~
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>', /mnt/host/kmcg3413.net/rust/src/libsyntax/diagnostic.rs:129
stack backtrace:
1: 0x7fd0ca974090 - sys::backtrace::write::h4e9a31aa2e8023179rC
2: 0x7fd0ca99cca0 - panicking::on_panic::hc7167c0722a05a78b9L
3: 0x7fd0ca8dc860 - rt::unwind::begin_unwind_inner::h8d46481699e3751fwNL
4: 0x7fd0c7bd5430 - rt::unwind::begin_unwind::h14067791790174494748
5: 0x7fd0c7bd53c0 - diagnostic::SpanHandler::span_bug::h85d108ba45cb62f281E
6: 0x7fd0c7bf7e70 - parse::parser::Parser<'a>::parse_pat::h6d0073e3d8694344ZPL
7: 0x7fd0c7bf08b0 - parse::parser::Parser<'a>::parse_arg_general::h8114594c0bc8a45ei9J
8: 0x7fd0c7c1bde0 - parse::parser::Parser<'a>::parse_seq_to_before_end::h1598884596488876550
9: 0x7fd0c7bef6c0 - parse::parser::Parser<'a>::parse_fn_args::h47c7163922b1aa1b1EM
10: 0x7fd0c7c1c470 - parse::parser::Parser<'a>::parse_fn_decl::h2b34c90f31c289d7wHM
11: 0x7fd0c7c2d020 - parse::parser::Parser<'a>::parse_foreign_item::hb5b9d02987c373a3rdO
12: 0x7fd0c7c29880 - parse::parser::Parser<'a>::parse_foreign_mod_items::h608317c1fc7b75890JN
13: 0x7fd0c7c11540 - parse::parser::Parser<'a>::parse_item_::h5342af3cfac016bc3YN
14: 0x7fd0c7c22ab0 - parse::parser::Parser<'a>::parse_mod_items::hcf50c5d5eff08ba3ioN
15: 0x7fd0c7c23e40 - parse::parser::Parser<'a>::eval_src_mod::hefec9279931acc91iwN
16: 0x7fd0c7c11540 - parse::parser::Parser<'a>::parse_item_::h5342af3cfac016bc3YN
17: 0x7fd0c7c22ab0 - parse::parser::Parser<'a>::parse_mod_items::hcf50c5d5eff08ba3ioN
18: 0x7fd0c7c2dfe0 - parse::parser::Parser<'a>::parse_crate_mod::h3a386f4cf831334c9pO
19: 0x7fd0c7c40d30 - parse::parse_crate_from_file::he93fe4d172bcd8ccjSV
20: 0x7fd0caffe510 - driver::phase_1_parse_input::closure.15704
21: 0x7fd0cafd8840 - driver::phase_1_parse_input::h4fb166827a2f9cbcYra
22: 0x7fd0cafd5240 - driver::compile_input::h0bec8d7ff7428d7dGba
23: 0x7fd0cb0a4330 - run_compiler::h71833f9bcc896daaWbc
24: 0x7fd0cb0a2c30 - thunk::F.Invoke<A, R>::invoke::h14347372239080705007
25: 0x7fd0cb0a1b20 - rt::unwind::try::try_fn::h10841254516551992180
26: 0x7fd0caa0a280 - rust_try_inner
27: 0x7fd0caa0a270 - rust_try
28: 0x7fd0cb0a1e20 - thunk::F.Invoke<A, R>::invoke::h15709534366616734131
29: 0x7fd0ca988a70 - sys::thread::thread_start::h15e840368764388fGdH
30: 0x7fd0c49cda80 - start_thread
31: 0x0 - <unknown>
Could not compile `android_glue`.
To learn more, run the command again with --verbose.
installing application
</code></pre></div> | 1 |
<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong> v12.0.0-beta.28</li>
<li><strong>Operating System:</strong> macOS 11.1</li>
</ul>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1093313/108893624-50742580-7637-11eb-8aed-43f522583a81.png"><img width="713" alt="Screenshot 2021-02-24 at 12 29 08 AM" src="https://user-images.githubusercontent.com/1093313/108893624-50742580-7637-11eb-8aed-43f522583a81.png" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1093313/108894344-2b33e700-7638-11eb-9d2d-b7f81b76b02c.png"><img width="80" alt="Screenshot 2021-02-24 at 12 35 13 AM" src="https://user-images.githubusercontent.com/1093313/108894344-2b33e700-7638-11eb-9d2d-b7f81b76b02c.png" style="max-width: 100%;"></a></p>
<p dir="auto">The borders are incorrectly drawn. It was fine in macOS Catalina.</p>
<h3 dir="auto">To Reproduce</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" const mainWindow = new BrowserWindow({
width: 800,
height: 600,
titleBarStyle: 'hiddenInset',
vibrancy: 'sidebar'
})"><pre class="notranslate"><code class="notranslate"> const mainWindow = new BrowserWindow({
width: 800,
height: 600,
titleBarStyle: 'hiddenInset',
vibrancy: 'sidebar'
})
</code></pre></div>
<p dir="auto">Fiddle Gist: <a href="https://gist.github.com/0d9f9327689a795cc95f1c046cbed488">https://gist.github.com/0d9f9327689a795cc95f1c046cbed488</a></p> | <h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>11x</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>macOS 11.1 [Big Sur]</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>
</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">when using BrowserWindow vibrancy effects eg: <code class="notranslate">vibrancy: 'sidebar'</code>, the corners of the window are squared.</p>
<h3 dir="auto">Actual Behavior</h3>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">Create a new BrowserWindow with vibrancy effects eg: <code class="notranslate">vibrancy: 'sidebar'</code>.</p>
<p dir="auto"><a href="https://gist.github.com/262108f4d281d9aa780ecc18f7ade2ba">https://gist.github.com/262108f4d281d9aa780ecc18f7ade2ba</a></p>
<h3 dir="auto">Screenshots</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1267580/102683285-fcc90400-41cf-11eb-84af-e379d4aba23b.png"><img width="454" alt="squared-corners" src="https://user-images.githubusercontent.com/1267580/102683285-fcc90400-41cf-11eb-84af-e379d4aba23b.png" style="max-width: 100%;"></a></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">Adding <code class="notranslate">titleBarStyle: 'hidden'</code> rounds the corners, but the corner radius is smaller that normal windows in Big Sur.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1267580/102683360-b6c07000-41d0-11eb-9dac-59d882f38422.png"><img width="114" alt="small-radius" src="https://user-images.githubusercontent.com/1267580/102683360-b6c07000-41d0-11eb-9dac-59d882f38422.png" style="max-width: 100%;"></a><br>
Which seems to be the issue shown here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="769507676" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/27061" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/27061/hovercard" href="https://github.com/electron/electron/issues/27061">#27061</a></p> | 1 |
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> using LinearAlgebra
julia> @which Matrix(Diagonal(rand(3)))
(::Type{Array{T,2} where T})(D::Diagonal) in LinearAlgebra at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/LinearAlgebra/src/diagonal.jl:56
julia> versioninfo()
Julia Version 0.7.0-beta.201
Commit cdd4e84ac9 (2018-07-07 22:13 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin14.5.0)
CPU: Intel(R) Core(TM) i7-3820QM CPU @ 2.70GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.0 (ORCJIT, ivybridge)"><pre class="notranslate">julia<span class="pl-k">></span> <span class="pl-k">using</span> LinearAlgebra
julia<span class="pl-k">></span> <span class="pl-c1">@which</span> <span class="pl-c1">Matrix</span>(<span class="pl-c1">Diagonal</span>(<span class="pl-c1">rand</span>(<span class="pl-c1">3</span>)))
(<span class="pl-k">::</span><span class="pl-c1">Type{Array{T,2} where T}</span>)(D<span class="pl-k">::</span><span class="pl-c1">Diagonal</span>) <span class="pl-k">in</span> LinearAlgebra at <span class="pl-k">/</span>Users<span class="pl-k">/</span>osx<span class="pl-k">/</span>buildbot<span class="pl-k">/</span>slave<span class="pl-k">/</span>package_osx64<span class="pl-k">/</span>build<span class="pl-k">/</span>usr<span class="pl-k">/</span>share<span class="pl-k">/</span>julia<span class="pl-k">/</span>stdlib<span class="pl-k">/</span>v0.<span class="pl-c1">7</span><span class="pl-k">/</span>LinearAlgebra<span class="pl-k">/</span>src<span class="pl-k">/</span>diagonal<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">56</span>
julia<span class="pl-k">></span> <span class="pl-c1">versioninfo</span>()
Julia Version <span class="pl-c1">0.7</span>.<span class="pl-c1">0</span><span class="pl-k">-</span>beta.<span class="pl-c1">201</span>
Commit cdd4e84ac9 (<span class="pl-c1">2018</span><span class="pl-k">-</span><span class="pl-c1">07</span><span class="pl-k">-</span><span class="pl-c1">07</span> <span class="pl-c1">22</span><span class="pl-k">:</span><span class="pl-c1">13</span> UTC)
Platform Info<span class="pl-k">:</span>
OS<span class="pl-k">:</span> macOS (x86_64<span class="pl-k">-</span>apple<span class="pl-k">-</span>darwin14.<span class="pl-c1">5.0</span>)
CPU<span class="pl-k">:</span> <span class="pl-c1">Intel</span>(R) <span class="pl-c1">Core</span>(TM) i7<span class="pl-k">-</span><span class="pl-c1">3820</span>QM CPU @ <span class="pl-c1">2.70</span>GHz
WORD_SIZE<span class="pl-k">:</span> <span class="pl-c1">64</span>
LIBM<span class="pl-k">:</span> libopenlibm
LLVM<span class="pl-k">:</span> libLLVM<span class="pl-k">-</span><span class="pl-c1">6.0</span>.<span class="pl-c1">0</span> (ORCJIT, ivybridge)</pre></div> | <p dir="auto">Seems to be two, possibly disjoint problems observed here:</p>
<ol dir="auto">
<li>"repeated 387 more times" and the immediately subsequent "repeated 166 more times" are precisely the same stacktrace</li>
<li>the interpreter duplicates <code class="notranslate">f28442</code> on the callstack</li>
</ol>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ ./julia --compile=min -q
julia> begin
f28442(c) = g28442(c + 1)
g28442(c) = c > 2000 ? (return backtrace()) : f28442(c + 1)
bt = f28442(1)
Base.show_backtrace(stdout, bt)
end
Stacktrace:
[1] g28442(::Int64) at REPL[0]:3
[2] f28442(::Int64) at REPL[0]:2
... (the last 2 lines are repeated 442 more times)
[887] g28442(::Int64) at REPL[0]:3
[888] f28442(::Int64) at REPL[0]:2 (repeats 2 times)
[889] g28442(::Int64) at REPL[0]:3
... (the last 2 lines are repeated 387 more times)
[1664] f28442(::Int64) at REPL[0]:2 (repeats 2 times)
[1665] g28442(::Int64) at REPL[0]:3
... (the last 2 lines are repeated 166 more times)
[1998] f28442(::Int64) at REPL[0]:2
[1999] top-level scope at REPL[0]:4
[2000] eval(::Module, ::Any) at ./boot.jl:319
[2001] eval_user_input(::Any, ::REPL.REPLBackend) at REPL.jl:85
[2002] macro expansion at REPL.jl:117 [inlined]"><pre class="notranslate"><span class="pl-k">$</span> <span class="pl-k">./</span>julia <span class="pl-k">--</span>compile<span class="pl-k">=</span>min <span class="pl-k">-</span>q
julia<span class="pl-k">></span> <span class="pl-k">begin</span>
<span class="pl-en">f28442</span>(c) <span class="pl-k">=</span> <span class="pl-c1">g28442</span>(c <span class="pl-k">+</span> <span class="pl-c1">1</span>)
<span class="pl-en">g28442</span>(c) <span class="pl-k">=</span> c <span class="pl-k">></span> <span class="pl-c1">2000</span> <span class="pl-k">?</span> (<span class="pl-k">return</span> <span class="pl-c1">backtrace</span>()) <span class="pl-k">:</span> <span class="pl-c1">f28442</span>(c <span class="pl-k">+</span> <span class="pl-c1">1</span>)
bt <span class="pl-k">=</span> <span class="pl-c1">f28442</span>(<span class="pl-c1">1</span>)
Base<span class="pl-k">.</span><span class="pl-c1">show_backtrace</span>(<span class="pl-c1">stdout</span>, bt)
<span class="pl-k">end</span>
Stacktrace<span class="pl-k">:</span>
[<span class="pl-c1">1</span>] <span class="pl-c1">g28442</span>(<span class="pl-k">::</span><span class="pl-c1">Int64</span>) at REPL[<span class="pl-c1">0</span>]<span class="pl-k">:</span><span class="pl-c1">3</span>
[<span class="pl-c1">2</span>] <span class="pl-c1">f28442</span>(<span class="pl-k">::</span><span class="pl-c1">Int64</span>) at REPL[<span class="pl-c1">0</span>]<span class="pl-k">:</span><span class="pl-c1">2</span>
<span class="pl-k">...</span> (the last <span class="pl-c1">2</span> lines are repeated <span class="pl-c1">442</span> more times)
[<span class="pl-c1">887</span>] <span class="pl-c1">g28442</span>(<span class="pl-k">::</span><span class="pl-c1">Int64</span>) at REPL[<span class="pl-c1">0</span>]<span class="pl-k">:</span><span class="pl-c1">3</span>
[<span class="pl-c1">888</span>] <span class="pl-c1">f28442</span>(<span class="pl-k">::</span><span class="pl-c1">Int64</span>) at REPL[<span class="pl-c1">0</span>]<span class="pl-k">:</span><span class="pl-c1">2</span> (repeats <span class="pl-c1">2</span> times)
[<span class="pl-c1">889</span>] <span class="pl-c1">g28442</span>(<span class="pl-k">::</span><span class="pl-c1">Int64</span>) at REPL[<span class="pl-c1">0</span>]<span class="pl-k">:</span><span class="pl-c1">3</span>
<span class="pl-k">...</span> (the last <span class="pl-c1">2</span> lines are repeated <span class="pl-c1">387</span> more times)
[<span class="pl-c1">1664</span>] <span class="pl-c1">f28442</span>(<span class="pl-k">::</span><span class="pl-c1">Int64</span>) at REPL[<span class="pl-c1">0</span>]<span class="pl-k">:</span><span class="pl-c1">2</span> (repeats <span class="pl-c1">2</span> times)
[<span class="pl-c1">1665</span>] <span class="pl-c1">g28442</span>(<span class="pl-k">::</span><span class="pl-c1">Int64</span>) at REPL[<span class="pl-c1">0</span>]<span class="pl-k">:</span><span class="pl-c1">3</span>
<span class="pl-k">...</span> (the last <span class="pl-c1">2</span> lines are repeated <span class="pl-c1">166</span> more times)
[<span class="pl-c1">1998</span>] <span class="pl-c1">f28442</span>(<span class="pl-k">::</span><span class="pl-c1">Int64</span>) at REPL[<span class="pl-c1">0</span>]<span class="pl-k">:</span><span class="pl-c1">2</span>
[<span class="pl-c1">1999</span>] top<span class="pl-k">-</span>level scope at REPL[<span class="pl-c1">0</span>]<span class="pl-k">:</span><span class="pl-c1">4</span>
[<span class="pl-c1">2000</span>] <span class="pl-c1">eval</span>(<span class="pl-k">::</span><span class="pl-c1">Module</span>, <span class="pl-k">::</span><span class="pl-c1">Any</span>) at <span class="pl-k">./</span>boot<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">319</span>
[<span class="pl-c1">2001</span>] <span class="pl-c1">eval_user_input</span>(<span class="pl-k">::</span><span class="pl-c1">Any</span>, <span class="pl-k">::</span><span class="pl-c1">REPL.REPLBackend</span>) at REPL<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">85</span>
[<span class="pl-c1">2002</span>] <span class="pl-k">macro</span> expansion at REPL<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">117</span> [inlined]</pre></div> | 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=""> I have checked the<br>
<a href="https://github.com/celery/celery/issues/3932/" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/3932/hovercard">celery issues 3932</a><br>
<a href="https://github.com/celery/kombu/issues/931" data-hovercard-type="issue" data-hovercard-url="/celery/kombu/issues/931/hovercard">kombu issue 931</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 included all related issues and possible duplicate issues<br>
in this issue (If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Mandatory Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br>
(if you are not able to do this, then at least specify the Celery<br>
version affected).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br>
to reproduce this bug.</li>
</ul>
<h2 dir="auto">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="216299501" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/3932" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/3932/hovercard" href="https://github.com/celery/celery/issues/3932">#3932</a></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="370842185" data-permission-text="Title is private" data-url="https://github.com/celery/kombu/issues/931" data-hovercard-type="issue" data-hovercard-url="/celery/kombu/issues/931/hovercard" href="https://github.com/celery/kombu/issues/931">celery/kombu#931</a></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>Celery version</strong>:</p>
<details>
<summary><b><code class="notranslate">celery report</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -> celery:4.4.2 (cliffs) kombu:4.6.11 py:3.7.6
billiard:3.6.3.0 py-amqp:2.6.0
platform -> system:Linux arch:64bit
kernel version:4.15.0-1065-aws imp:CPython
loader -> celery.loaders.default.Loader
settings -> transport:amqp results:disabled"><pre class="notranslate"><code class="notranslate">software -> celery:4.4.2 (cliffs) kombu:4.6.11 py:3.7.6
billiard:3.6.3.0 py-amqp:2.6.0
platform -> system:Linux arch:64bit
kernel version:4.15.0-1065-aws imp:CPython
loader -> celery.loaders.default.Loader
settings -> transport:amqp results:disabled
</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.7.6 imp: CPython</li>
<li><strong>Minimal Celery Version</strong>: 4.4.2</li>
<li><strong>Minimal Kombu Version</strong>: 4.6.11</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>: GNU Linux Ubuntu x86_64 18.04</li>
<li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li>
</ul>
<h3 dir="auto">Python Packages</h3>
<details>
<summary><b><code class="notranslate">pip freeze</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="aiohttp==3.6.2
amqp==2.6.0
argh==0.26.2
asgiref==3.2.10
async-timeout==3.0.1
attrs==19.3.0
billiard==3.6.3.0
boto3==1.12.39
botocore==1.15.49
celery==4.4.2
certifi==2020.6.20
chardet==3.0.4
ddtrace==0.37.0
Django==3.0.4
docutils==0.15.2
future==0.18.2
gunicorn==20.0.4
idna==2.10
jmespath==0.10.0
kombu==4.6.11
msgpack==1.0.0
multidict==4.7.6
pathtools==0.1.2
psycopg2-binary==2.8.4
python-dateutil==2.8.1
python-dotenv==0.12.0
pytz==2020.1
PyYAML==5.3.1
requests==2.23.0
s3transfer==0.3.3
setproctitle==1.1.10
six==1.15.0
slackclient==2.5.0
sqlparse==0.3.1
urllib3==1.25.9
vine==1.3.0
yarl==1.4.2"><pre class="notranslate"><code class="notranslate">aiohttp==3.6.2
amqp==2.6.0
argh==0.26.2
asgiref==3.2.10
async-timeout==3.0.1
attrs==19.3.0
billiard==3.6.3.0
boto3==1.12.39
botocore==1.15.49
celery==4.4.2
certifi==2020.6.20
chardet==3.0.4
ddtrace==0.37.0
Django==3.0.4
docutils==0.15.2
future==0.18.2
gunicorn==20.0.4
idna==2.10
jmespath==0.10.0
kombu==4.6.11
msgpack==1.0.0
multidict==4.7.6
pathtools==0.1.2
psycopg2-binary==2.8.4
python-dateutil==2.8.1
python-dotenv==0.12.0
pytz==2020.1
PyYAML==5.3.1
requests==2.23.0
s3transfer==0.3.3
setproctitle==1.1.10
six==1.15.0
slackclient==2.5.0
sqlparse==0.3.1
urllib3==1.25.9
vine==1.3.0
yarl==1.4.2
</code></pre></div>
<p dir="auto"></p>
</details>
<h3 dir="auto">Other Dependencies</h3>
<details>
<p dir="auto">
N/A
</p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<details>
<p dir="auto">
It depends. The issue is occurring when we will get a connection lost error.
```python
```
</p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">Got this in logs.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2020-06-03 01:36:35,499: WARNING/MainProcess] consumer: Connection to broker lost. Trying to re-establish the connection...
Traceback (most recent call last):
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/urllib3/connection.py", line 160, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/urllib3/util/connection.py", line 61, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/opt/pyenv/versions/3.7.6/lib/python3.7/socket.py", line 752, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/httpsession.py", line 263, in send
chunked=self._chunked(request.headers),
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/urllib3/connectionpool.py", line 725, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/urllib3/util/retry.py", line 379, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/urllib3/packages/six.py", line 735, in reraise
raise value
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/urllib3/connectionpool.py", line 677, in urlopen
chunked=chunked,
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/urllib3/connectionpool.py", line 381, in _make_request
self._validate_conn(conn)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/urllib3/connectionpool.py", line 976, in _validate_conn
conn.connect()
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/urllib3/connection.py", line 308, in connect
conn = self._new_conn()
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/urllib3/connection.py", line 172, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <botocore.awsrequest.AWSHTTPSConnection object at 0x7f910d7373d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/celery/worker/consumer/consumer.py", line 318, in start
blueprint.start(self)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/celery/bootsteps.py", line 119, in start
step.start(parent)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/celery/worker/consumer/consumer.py", line 599, in start
c.loop(*c.loop_args())
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/celery/worker/loops.py", line 83, in asynloop
next(loop)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/kombu/asynchronous/hub.py", line 301, in create_loop
item()
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/vine/promises.py", line 170, in __call__
return self.throw()
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/vine/promises.py", line 167, in __call__
retval = fun(*final_args, **final_kwargs)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/kombu/transport/SQS.py", line 390, in _schedule_queue
queue, callback=promise(self._loop1, (queue,)),
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/kombu/transport/SQS.py", line 406, in _get_bulk_async
return self._get_async(queue, maxcount, callback=callback)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/kombu/transport/SQS.py", line 417, in _get_async
callback=transform(self._on_messages_ready, callback, q, queue),
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/kombu/transport/SQS.py", line 442, in _get_from_sqs
queue_url = connection.get_queue_url(queue)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/kombu/asynchronous/aws/sqs/connection.py", line 45, in get_queue_url
res = self.sqs_connection.get_queue_url(QueueName=queue)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/client.py", line 316, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/ddtrace/contrib/botocore/patch.py", line 70, in patched_api_call
result = original_func(*args, **kwargs)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/client.py", line 613, in _make_api_call
operation_model, request_dict, request_context)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/client.py", line 632, in _make_request
return self._endpoint.make_request(operation_model, request_dict)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
return self._send_request(request_dict, operation_model)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/endpoint.py", line 137, in _send_request
success_response, exception):
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/endpoint.py", line 231, in _needs_retry
caught_exception=caught_exception, request_dict=request_dict)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/hooks.py", line 356, in emit
return self._emitter.emit(aliased_event_name, **kwargs)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/hooks.py", line 228, in emit
return self._emit(event_name, kwargs)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/hooks.py", line 211, in _emit
response = handler(**kwargs)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/retryhandler.py", line 183, in __call__
if self._checker(attempts, response, caught_exception):
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/retryhandler.py", line 251, in __call__
caught_exception)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/retryhandler.py", line 277, in _should_retry
return self._checker(attempt_number, response, caught_exception)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/retryhandler.py", line 317, in __call__
caught_exception)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/retryhandler.py", line 223, in __call__
attempt_number, caught_exception)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/retryhandler.py", line 359, in _check_caught_exception
raise caught_exception
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/endpoint.py", line 200, in _do_get_response
http_response = self._send(request)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/endpoint.py", line 244, in _send
return self.http_session.send(request)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/httpsession.py", line 283, in send
raise EndpointConnectionError(endpoint_url=request.url, error=e)
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "https://queue.amazonaws.com/"
[2020-06-03 01:36:47,080: ERROR/MainProcess] consumer: Cannot connect to sqs://localhost//: Could not connect to the endpoint URL: "https://queue.amazonaws.com/".
Trying again in 2.00 seconds... (1/100)
[2020-06-03 01:36:57,674: INFO/MainProcess] Connected to sqs://localhost//
"><pre class="notranslate"><code class="notranslate">[2020-06-03 01:36:35,499: WARNING/MainProcess] consumer: Connection to broker lost. Trying to re-establish the connection...
Traceback (most recent call last):
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/urllib3/connection.py", line 160, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/urllib3/util/connection.py", line 61, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/opt/pyenv/versions/3.7.6/lib/python3.7/socket.py", line 752, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/httpsession.py", line 263, in send
chunked=self._chunked(request.headers),
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/urllib3/connectionpool.py", line 725, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/urllib3/util/retry.py", line 379, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/urllib3/packages/six.py", line 735, in reraise
raise value
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/urllib3/connectionpool.py", line 677, in urlopen
chunked=chunked,
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/urllib3/connectionpool.py", line 381, in _make_request
self._validate_conn(conn)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/urllib3/connectionpool.py", line 976, in _validate_conn
conn.connect()
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/urllib3/connection.py", line 308, in connect
conn = self._new_conn()
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/urllib3/connection.py", line 172, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <botocore.awsrequest.AWSHTTPSConnection object at 0x7f910d7373d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/celery/worker/consumer/consumer.py", line 318, in start
blueprint.start(self)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/celery/bootsteps.py", line 119, in start
step.start(parent)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/celery/worker/consumer/consumer.py", line 599, in start
c.loop(*c.loop_args())
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/celery/worker/loops.py", line 83, in asynloop
next(loop)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/kombu/asynchronous/hub.py", line 301, in create_loop
item()
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/vine/promises.py", line 170, in __call__
return self.throw()
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/vine/promises.py", line 167, in __call__
retval = fun(*final_args, **final_kwargs)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/kombu/transport/SQS.py", line 390, in _schedule_queue
queue, callback=promise(self._loop1, (queue,)),
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/kombu/transport/SQS.py", line 406, in _get_bulk_async
return self._get_async(queue, maxcount, callback=callback)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/kombu/transport/SQS.py", line 417, in _get_async
callback=transform(self._on_messages_ready, callback, q, queue),
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/kombu/transport/SQS.py", line 442, in _get_from_sqs
queue_url = connection.get_queue_url(queue)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/kombu/asynchronous/aws/sqs/connection.py", line 45, in get_queue_url
res = self.sqs_connection.get_queue_url(QueueName=queue)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/client.py", line 316, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/ddtrace/contrib/botocore/patch.py", line 70, in patched_api_call
result = original_func(*args, **kwargs)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/client.py", line 613, in _make_api_call
operation_model, request_dict, request_context)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/client.py", line 632, in _make_request
return self._endpoint.make_request(operation_model, request_dict)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
return self._send_request(request_dict, operation_model)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/endpoint.py", line 137, in _send_request
success_response, exception):
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/endpoint.py", line 231, in _needs_retry
caught_exception=caught_exception, request_dict=request_dict)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/hooks.py", line 356, in emit
return self._emitter.emit(aliased_event_name, **kwargs)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/hooks.py", line 228, in emit
return self._emit(event_name, kwargs)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/hooks.py", line 211, in _emit
response = handler(**kwargs)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/retryhandler.py", line 183, in __call__
if self._checker(attempts, response, caught_exception):
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/retryhandler.py", line 251, in __call__
caught_exception)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/retryhandler.py", line 277, in _should_retry
return self._checker(attempt_number, response, caught_exception)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/retryhandler.py", line 317, in __call__
caught_exception)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/retryhandler.py", line 223, in __call__
attempt_number, caught_exception)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/retryhandler.py", line 359, in _check_caught_exception
raise caught_exception
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/endpoint.py", line 200, in _do_get_response
http_response = self._send(request)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/endpoint.py", line 244, in _send
return self.http_session.send(request)
File "/home/$USER/.local/share/virtualenvs/$PROJECT_NAME-zlr2NI-5/lib/python3.7/site-packages/botocore/httpsession.py", line 283, in send
raise EndpointConnectionError(endpoint_url=request.url, error=e)
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "https://queue.amazonaws.com/"
[2020-06-03 01:36:47,080: ERROR/MainProcess] consumer: Cannot connect to sqs://localhost//: Could not connect to the endpoint URL: "https://queue.amazonaws.com/".
Trying again in 2.00 seconds... (1/100)
[2020-06-03 01:36:57,674: INFO/MainProcess] Connected to sqs://localhost//
</code></pre></div>
<p dir="auto">And after the last line logs are empty because celery stops handling any message.</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 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"> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all related issues and possible duplicate issues<br>
in this issue (If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Mandatory Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" 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"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br>
to reproduce this bug.</li>
</ul>
<h2 dir="auto">Optional Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br>
and/or implementation.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br>
result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br>
broker and/or result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br>
ETA/Countdown & rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br>
and/or upgrading Celery and its dependencies.</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h2 dir="auto">Environment & Settings</h2>
<p dir="auto"><strong>Celery version</strong>:</p>
<details>
<summary><b><code class="notranslate">celery report</code> Output:software -> celery:4.3.0 (rhubarb) kombu:4.6.3 py:3.6.5
billiard:3.6.0.0 py-amqp:2.5.0
platform -> system:Linux arch:64bit
kernel version:4.15.0-54-generic imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:amqp results:rpc:///
</b><p dir="auto"><b>accept_content: ['pickle']<br>
broker_url: 'amqp://amitc005:********<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/localhost/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/localhost">@localhost</a>:5672/rest'<br>
include: ['srm_rest_email.email.views']<br>
result_backend: 'rpc:///'<br>
result_expires: 3000<br>
result_extended: True<br>
task_default_queue: 'email'<br>
task_serializer: 'pickle'<br>
task_track_started: True</b></p></summary><p dir="auto"></p>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<h2 dir="auto">Required Dependencies</h2>
<ul dir="auto">
<li><strong>Minimal Python Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Celery Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li>
<li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li>
</ul>
<h3 dir="auto">Python Packages</h3>
<details>
<summary><b><code class="notranslate">pip freeze</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<p dir="auto"></p>
</details>
<h3 dir="auto">Problem Description</h3>
<p dir="auto">When I was passing files immutiable dict object by calling a .delay() method, celery is throwing exception,</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2019-07-19 10:58:48,420: CRITICAL/MainProcess] Can't decode message body: DecodeError(RecursionError('maximum recursion depth exceeded while calling a Python object',),) [type:'application/x-python-serialize' encoding:'binary' headers:{'lang': 'py', 'task': 'srm_rest_email.email.views.send_async_email', 'id': 'a6891a6e-e428-460b-bb98-940df5f430b2', 'shadow': None, 'eta': None, 'expires': None, 'group': None, 'retries': 0, 'timelimit': [None, None], 'root_id': 'a6891a6e-e428-460b-bb98-940df5f430b2', 'parent_id': None, 'argsrepr': "({'file': <FileStorage: '2019-05-07.png' ('image/png')>}, {'exp': 1563589252, 'iat': 1563546052, 'sub': 'HTTPie/0.9.9', 'jti': '06df3341-c1cc-49ce-a7a8-d4a4983469ad', 'client_id': 'test_client', 'company_id': 1, 'operator_id': 'SC'})", 'kwargsrepr': '{}', 'origin': 'gen4932@achavhan-ThinkPad-X1-Carbon-6th'}]
body: b'\x80\x02cwerkzeug.datastructures\nImmutableMultiDict\nq\x00]q\x01X\x04\x00\x00\x00fileq\x02cwerkzeug.datastructures\nFileStorage\nq\x03)\x81q\x04c_codecs\nencode\nq\x05XH\x9f\x00\x00\xc2\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x03h\x00\x00\x01\x05\x08\x02\x00\x00\x00\x19\xc2\x81S\xc3\x87\x00\x00\x00\x03sBIT\x08\x08\x08\xc3\x9b\xc3\xa1O\xc3\xa0\x00\x00\x00_zTXtRaw profile type APP1\x00\x00\x08\xc2\x99\xc3\xa3JO\xc3\x8dK-\xc3\x8aLV((\xc3\x8aO\xc3\x8b\xc3\x8cI\xc3\xa5R\x00\x03c\x13.\x13K\x13K\xc2\xa3D\x03\x03\x03\x0b\x03\x0804006\x04\xc2\x92F@\xc2\xb69T(\xc3\x91\x00\x05\xc2\x98\xc2\x98\xc2\x9b\xc2\xa5\x01\xc2\xa1\xc2\xb9Y\xc2\xb2\xc2\x99)\xc2\x88\xc3\x8f\x05\x00O\xc2\xba\x15h\x1b-\xc3\x98\xc2\x8c\x00\x00... (41213b)
Traceback (most recent call last):
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/serialization.py", line 50, in _reraise_errors
yield
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/serialization.py", line 263, in loads
return decode(data)
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/serialization.py", line 337, in unpickle
return pickle_loads(str_to_bytes(s))
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/serialization.py", line 59, in pickle_loads
return load(BytesIO(s))
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/werkzeug/datastructures.py", line 2821, in __getattr__
return getattr(self.stream, name)
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/werkzeug/datastructures.py", line 2821, in __getattr__
return getattr(self.stream, name)
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/werkzeug/datastructures.py", line 2821, in __getattr__
return getattr(self.stream, name)
[Previous line repeated 314 more times]
RecursionError: maximum recursion depth exceeded while calling a Python object
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/celery/worker/consumer/consumer.py", line 568, in on_task_received
callbacks,
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/celery/worker/strategy.py", line 137, in task_message_handler
if body is None and 'args' not in message.payload:
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/message.py", line 208, in payload
return self._decoded_cache if self._decoded_cache else self.decode()
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/message.py", line 193, in decode
self._decoded_cache = self._decode()
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/message.py", line 198, in _decode
self.content_encoding, accept=self.accept)
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/serialization.py", line 263, in loads
return decode(data)
File "/usr/local/lib/python3.6/contextlib.py", line 99, in __exit__
self.gen.throw(type, value, traceback)
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/serialization.py", line 54, in _reraise_errors
reraise(wrapper, wrapper(exc), sys.exc_info()[2])
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/vine/five.py", line 194, in reraise
raise value.with_traceback(tb)
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/serialization.py", line 50, in _reraise_errors
yield
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/serialization.py", line 263, in loads
return decode(data)
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/serialization.py", line 337, in unpickle
return pickle_loads(str_to_bytes(s))
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/serialization.py", line 59, in pickle_loads
return load(BytesIO(s))
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/werkzeug/datastructures.py", line 2821, in __getattr__
return getattr(self.stream, name)
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/werkzeug/datastructures.py", line 2821, in __getattr__
return getattr(self.stream, name)
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/werkzeug/datastructures.py", line 2821, in __getattr__
return getattr(self.stream, name)
[Previous line repeated 314 more times]
kombu.exceptions.DecodeError: maximum recursion depth exceeded while calling a Python object"><pre class="notranslate"><code class="notranslate">[2019-07-19 10:58:48,420: CRITICAL/MainProcess] Can't decode message body: DecodeError(RecursionError('maximum recursion depth exceeded while calling a Python object',),) [type:'application/x-python-serialize' encoding:'binary' headers:{'lang': 'py', 'task': 'srm_rest_email.email.views.send_async_email', 'id': 'a6891a6e-e428-460b-bb98-940df5f430b2', 'shadow': None, 'eta': None, 'expires': None, 'group': None, 'retries': 0, 'timelimit': [None, None], 'root_id': 'a6891a6e-e428-460b-bb98-940df5f430b2', 'parent_id': None, 'argsrepr': "({'file': <FileStorage: '2019-05-07.png' ('image/png')>}, {'exp': 1563589252, 'iat': 1563546052, 'sub': 'HTTPie/0.9.9', 'jti': '06df3341-c1cc-49ce-a7a8-d4a4983469ad', 'client_id': 'test_client', 'company_id': 1, 'operator_id': 'SC'})", 'kwargsrepr': '{}', 'origin': 'gen4932@achavhan-ThinkPad-X1-Carbon-6th'}]
body: b'\x80\x02cwerkzeug.datastructures\nImmutableMultiDict\nq\x00]q\x01X\x04\x00\x00\x00fileq\x02cwerkzeug.datastructures\nFileStorage\nq\x03)\x81q\x04c_codecs\nencode\nq\x05XH\x9f\x00\x00\xc2\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x03h\x00\x00\x01\x05\x08\x02\x00\x00\x00\x19\xc2\x81S\xc3\x87\x00\x00\x00\x03sBIT\x08\x08\x08\xc3\x9b\xc3\xa1O\xc3\xa0\x00\x00\x00_zTXtRaw profile type APP1\x00\x00\x08\xc2\x99\xc3\xa3JO\xc3\x8dK-\xc3\x8aLV((\xc3\x8aO\xc3\x8b\xc3\x8cI\xc3\xa5R\x00\x03c\x13.\x13K\x13K\xc2\xa3D\x03\x03\x03\x0b\x03\x0804006\x04\xc2\x92F@\xc2\xb69T(\xc3\x91\x00\x05\xc2\x98\xc2\x98\xc2\x9b\xc2\xa5\x01\xc2\xa1\xc2\xb9Y\xc2\xb2\xc2\x99)\xc2\x88\xc3\x8f\x05\x00O\xc2\xba\x15h\x1b-\xc3\x98\xc2\x8c\x00\x00... (41213b)
Traceback (most recent call last):
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/serialization.py", line 50, in _reraise_errors
yield
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/serialization.py", line 263, in loads
return decode(data)
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/serialization.py", line 337, in unpickle
return pickle_loads(str_to_bytes(s))
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/serialization.py", line 59, in pickle_loads
return load(BytesIO(s))
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/werkzeug/datastructures.py", line 2821, in __getattr__
return getattr(self.stream, name)
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/werkzeug/datastructures.py", line 2821, in __getattr__
return getattr(self.stream, name)
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/werkzeug/datastructures.py", line 2821, in __getattr__
return getattr(self.stream, name)
[Previous line repeated 314 more times]
RecursionError: maximum recursion depth exceeded while calling a Python object
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/celery/worker/consumer/consumer.py", line 568, in on_task_received
callbacks,
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/celery/worker/strategy.py", line 137, in task_message_handler
if body is None and 'args' not in message.payload:
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/message.py", line 208, in payload
return self._decoded_cache if self._decoded_cache else self.decode()
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/message.py", line 193, in decode
self._decoded_cache = self._decode()
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/message.py", line 198, in _decode
self.content_encoding, accept=self.accept)
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/serialization.py", line 263, in loads
return decode(data)
File "/usr/local/lib/python3.6/contextlib.py", line 99, in __exit__
self.gen.throw(type, value, traceback)
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/serialization.py", line 54, in _reraise_errors
reraise(wrapper, wrapper(exc), sys.exc_info()[2])
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/vine/five.py", line 194, in reraise
raise value.with_traceback(tb)
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/serialization.py", line 50, in _reraise_errors
yield
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/serialization.py", line 263, in loads
return decode(data)
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/serialization.py", line 337, in unpickle
return pickle_loads(str_to_bytes(s))
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/kombu/serialization.py", line 59, in pickle_loads
return load(BytesIO(s))
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/werkzeug/datastructures.py", line 2821, in __getattr__
return getattr(self.stream, name)
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/werkzeug/datastructures.py", line 2821, in __getattr__
return getattr(self.stream, name)
File "/home/achavhan/srm_rest_email/env/lib/python3.6/site-packages/werkzeug/datastructures.py", line 2821, in __getattr__
return getattr(self.stream, name)
[Previous line repeated 314 more times]
kombu.exceptions.DecodeError: maximum recursion depth exceeded while calling a Python object
</code></pre></div> | 0 |
<p dir="auto">The <code class="notranslate">eigen</code> / <code class="notranslate">eigen!</code> functions of the <code class="notranslate">LinearAlgebra</code> package fail with the <code class="notranslate">Adjoint</code> and <code class="notranslate">Transposed</code> types.</p>
<p dir="auto">Given a square matrix <code class="notranslate">A</code> (e.g. a <code class="notranslate">10×10 Array{Float64,2}</code>), both the following statements fail:<br>
<code class="notranslate">E = eigen(A')</code><br>
<code class="notranslate">E = eigen(transpose(A))</code><br>
with errors<br>
<code class="notranslate">ERROR: MethodError: no method matching eigen(::Adjoint{Float64,Array{Float64,2}})</code><br>
and<br>
<code class="notranslate">ERROR: MethodError: no method matching eigen(::Transpose{Float64,Array{Float64,2}})</code><br>
respectively.</p>
<p dir="auto">A simple fix could be to define the method<br>
<code class="notranslate">LinearAlgebra.eigen(x::Union{Transpose{T, A}, Adjoint{T, A}}) where {T, A<:AbstractMatrix} = eigen(copy(x))</code> (credit: Twan Koolen on discourse).</p>
<p dir="auto">However, it could be more efficient to use LAPACK functions directly computing left eigenvectors (i.e. eigenvectors of the transposed) without making another copy of the matrix. It looks like the wrapper <code class="notranslate">LinearAlgebra.LAPACK.geevx!</code> has such a feature. In <code class="notranslate">eigen.jl</code>, the lower level LAPACK call (line 40 as of tag <code class="notranslate">v1.0.0</code>) is<br>
<code class="notranslate">A, WR, WI, VL, VR, _ = LAPACK.geevx!(permute ? (scale ? 'B' : 'P') : (scale ? 'S' : 'N'), 'N', 'V', 'N', A)</code><br>
According to the <a href="https://docs.julialang.org/en/v1.0.0/stdlib/LinearAlgebra/#LinearAlgebra.LAPACK.geevx!" rel="nofollow">documentation</a>,<br>
<code class="notranslate">A, WR, WI, VL, VR, _ = LAPACK.geevx!(permute ? (scale ? 'B' : 'P') : (scale ? 'S' : 'N'), 'V', 'N', 'N', A)</code><br>
should compute left eigenvectors instead.</p>
<p dir="auto">I am very new to Julia (I have been mostly a Matlab programmer so far), so I am not quite sure what is a clean way to insert such a fix into <code class="notranslate">eigen.jl</code>. At least, duplicating the <code class="notranslate">eigen!</code> code in <code class="notranslate">eigen.jl</code> does not seem to be a very good idea. Also, adding this may not cover all <code class="notranslate">eigen</code> methods for special matrices. (The <code class="notranslate">eigen!</code> method in <code class="notranslate">eigen.jl</code> applies to <code class="notranslate">StridedMatrix{T}</code>, which I assume excludes at least sparse matrices.)</p>
<p dir="auto">Note: this issue is similar to Issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="323934505" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/27132" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/27132/hovercard" href="https://github.com/JuliaLang/julia/issues/27132">#27132</a> regarding <code class="notranslate">svdfact</code> (now <code class="notranslate">svd</code>) which was fixed in PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="337857438" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/27916" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/27916/hovercard" href="https://github.com/JuliaLang/julia/pull/27916">#27916</a> . The fix for <code class="notranslate">svd</code> will not work here though.</p> | <p dir="auto">I use Julia (official distribution) on macOS.</p>
<p dir="auto">Recently I set Terminal.app to start a non-default shell (see screenshot below). Now double-clicking Julia.app no longer starts Julia correctly. It just opens a terminal window.</p>
<p dir="auto">Julia.app seems to use the following AppleScript to launch julia in a new Terminal.app window:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="set RootPath to POSIX path of (path to me)
tell application id "com.apple.terminal"
do script ("exec '" & RootPath & "Contents/Resources/julia/bin/julia'")
activate
end tell"><pre class="notranslate"><code class="notranslate">set RootPath to POSIX path of (path to me)
tell application id "com.apple.terminal"
do script ("exec '" & RootPath & "Contents/Resources/julia/bin/julia'")
activate
end tell
</code></pre></div>
<p dir="auto">It is the <code class="notranslate">do script</code> that seems to not work under these circumstances, but I don't know how to fix it.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1212871/59556168-3b1faa80-8fbe-11e9-9d74-fdcce062eb30.png"><img src="https://user-images.githubusercontent.com/1212871/59556168-3b1faa80-8fbe-11e9-9d74-fdcce062eb30.png" alt="image" style="max-width: 100%;"></a></p> | 0 |
<ul dir="auto">
<li>Electron Version: 1.8.7/2.0.0</li>
<li>Operating System (Platform and Version): Windows 10</li>
<li>Last known working Electron version: Don't know</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong><br>
Keep the webview available to interact.</p>
<p dir="auto"><strong>Actual behavior</strong><br>
Every time the webview execute <code class="notranslate">window.close()</code>, it's crashing the webview itself.</p>
<p dir="auto"><strong>To Reproduce</strong></p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/saenzramiro/electron-window-close-bug.git
$ npm install
$ npm start || electron ."><pre class="notranslate">$ git clone https://github.com/saenzramiro/electron-window-close-bug.git
$ npm install
$ npm start <span class="pl-k">||</span> electron <span class="pl-c1">.</span></pre></div>
<p dir="auto"><strong>Additional Information</strong><br>
I realized this because of Slack's. Every time you log in or log out, they redirect to a page that executes <code class="notranslate">window.close()</code>. I searched of this here but no luck, sorry if this is duplicated.</p> | <ul dir="auto">
<li>Output of <code class="notranslate">node_modules/.bin/electron --version</code>: 3.0.0</li>
<li>Operating System (Platform and Version): macOS Sierra 10.12.6</li>
<li>Output of <code class="notranslate">node_modules/.bin/electron --version</code> on last known working Electron version (if applicable): 3.0.0-beta.1</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong><br>
creating a new browserWindow with titleBarStyle: hiddenInset, hidden or customButtonsOnHover, should generate the 'traffic lights' in macOS.</p>
<p dir="auto"><strong>Actual behavior</strong><br>
The window doesn't generate the traffic lights, making impossible to control the window. (The buttons actions are still in the same visual place, it's just not being rendered).</p>
<p dir="auto"><strong>To Reproduce</strong><br>
Just create a browser window and set the titleBarStyle to one of the options available.</p> | 0 |
<h5 dir="auto">TLDR</h5>
<p dir="auto">If you render to a <code class="notranslate">CubeCamera</code> and</p>
<ul dir="auto">
<li>
<p dir="auto">have <code class="notranslate">renderer.outputEncoding != renderTarget.texture.encoding</code>, at each render, for each material a <code class="notranslate">.acuireProgram()</code> will be called, which is slow. (<a href="https://jsfiddle.net/ebvr4xmw/" rel="nofollow">Example</a>) (covered by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="595236749" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/19056" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/19056/hovercard" href="https://github.com/mrdoob/three.js/issues/19056">#19056</a>)</p>
</li>
<li>
<p dir="auto">have light-based materials, at each render for each material a new <code class="notranslate">.initMaterial()</code> will be called, which is slow due to <code class="notranslate">.cloneUniforms()</code>(<a href="https://jsfiddle.net/1muvze3k/" rel="nofollow">Example</a>) (covered by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="307373360" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/13656" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/13656/hovercard" href="https://github.com/mrdoob/three.js/issues/13656">#13656</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="325721720" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/14121" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/14121/hovercard" href="https://github.com/mrdoob/three.js/issues/14121">#14121</a> and now <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="639509793" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/19673" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/19673/hovercard" href="https://github.com/mrdoob/three.js/pull/19673">#19673</a>)</p>
</li>
</ul>
<h5 dir="auto">Description of the problem</h5>
<p dir="auto">I noticed a severe performance regression when updating to latest THREE version (r117), causing my rendering times to increase from ~3ms to ~200ms. My scenes heavily rely on CubeCamera's, and I noticed an unusually high amount of material recompiles.</p>
<p dir="auto">It appears that if you render a <code class="notranslate">CubeCamera</code> and you either</p>
<ul dir="auto">
<li>have <code class="notranslate">renderer.outputEncoding != renderTarget.texture.encoding</code> <strong>or</strong></li>
<li>have a light based material in your scene</li>
</ul>
<p dir="auto">that <code class="notranslate">lightsStateVersion</code> property will flip/flop between the CubeCamera and main cameras renderStates, causing unnecessary calls to <code class="notranslate">initMaterial</code>. Even if the material does not need to be recompiled, the calculation of <code class="notranslate">programCacheKey</code> takes longer than usual, probably because it now involves cloning of the material's uniforms.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
{
lightsStateVersion: 6,
materialProperties.lightsStateVersion: 5,
//^^^^^this causes the recompile^^^^^^
parameters.shaderID: "basic",
program: WebGLProgram {name: "MeshBasicMaterial", id: 81, getUniforms: ƒ, getAttributes: ƒ, destroy: ƒ, …},
program.cacheKey: "basic,highp,false,true,3000,false,false,3000,false,3000,false,,3000,false,false,3000,false,false,3000,false,false,false,false,false,false,false,false,false,false,false,false,false,0,false,,false,false,false,true,,false,,false,false,0,true,false,,8,4,false,0,0,0,0,0,0,0,0,false,1,0,false,0,false,false,0,0,false,false,false,3001,2,...",
programCacheKey: "basic,highp,false,true,3001,false,false,3000,false,3000,false,,3000,false,false,3000,false,false,3000,false,false,false,false,false,false,false,false,false,false,false,false,false,0,false,,false,false,false,true,,false,,false,false,0,true,false,,8,4,false,0,0,0,0,0,0,0,0,false,1,0,false,0,false,false,0,0,false,false,false,3001,2,...",
programChange: true
}"><pre class="notranslate"><code class="notranslate">
{
lightsStateVersion: 6,
materialProperties.lightsStateVersion: 5,
//^^^^^this causes the recompile^^^^^^
parameters.shaderID: "basic",
program: WebGLProgram {name: "MeshBasicMaterial", id: 81, getUniforms: ƒ, getAttributes: ƒ, destroy: ƒ, …},
program.cacheKey: "basic,highp,false,true,3000,false,false,3000,false,3000,false,,3000,false,false,3000,false,false,3000,false,false,false,false,false,false,false,false,false,false,false,false,false,0,false,,false,false,false,true,,false,,false,false,0,true,false,,8,4,false,0,0,0,0,0,0,0,0,false,1,0,false,0,false,false,0,0,false,false,false,3001,2,...",
programCacheKey: "basic,highp,false,true,3001,false,false,3000,false,3000,false,,3000,false,false,3000,false,false,3000,false,false,false,false,false,false,false,false,false,false,false,false,false,0,false,,false,false,false,true,,false,,false,false,0,true,false,,8,4,false,0,0,0,0,0,0,0,0,false,1,0,false,0,false,false,0,0,false,false,false,3001,2,...",
programChange: true
}
</code></pre></div>
<p dir="auto">You can find an example here:</p>
<ul dir="auto">
<li><a href="https://jsfiddle.net/ebvr4xmw/" rel="nofollow">TextureEncodings</a></li>
<li><a href="https://jsfiddle.net/1muvze3k/" rel="nofollow">Light-based material</a></li>
</ul>
<p dir="auto">I didn't bisect the commit in question, but it appears to have happened between [r112,r115].</p>
<p dir="auto"><strong>TextureEncoding</strong><br>
I don't expect all involved renderTargets to have the same encodings, but if that should be the case, I would recommend a corresponding warning message. On the other hand, IMHO the encoding of the renderTarget should not affect caching of the object's material at all? Although if it does, it might make sense to cache the material multiple times for each different encoding instead of flip/flopping between both encoding and causing a recompilation every time.</p>
<p dir="auto">Thanks for investigating, please let me know if I can supply additional information.</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" checked=""> Dev</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r117</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r116</li>
<li>[?] ....</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> r111</li>
</ul>
<h5 dir="auto">Browser</h5>
<ul class="contains-task-list">
<li>[?] 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" checked=""> Firefox</li>
<li>[?] Internet Explorer</li>
</ul>
<h5 dir="auto">OS</h5>
<ul class="contains-task-list">
<li>[?] All of them</li>
<li>[?] Windows</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> macOS</li>
<li>[?] 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" checked=""> iOS</li>
</ul> | <h5 dir="auto">Description of the problem</h5>
<p dir="auto">Hi there,</p>
<p dir="auto">I'm working on an application that renders the same scene twice in a single frame, once without post processing and once using EffectsComposer. The use case is basically an editor with a thumbnail preview of the scene with postfx.</p>
<p dir="auto">This seems to trigger a shader recompilation, as has been discovered in a few other issues*. The advice so far has been to only use EffectsComposer and apply gamma correction as a pass in the effects chain, but this is pretty problematic for our use case as we use line rendering quite a bit for e.g. reference grids so losing hardware AA when using RTT results in unacceptable image quality.</p>
<p dir="auto">A potential work around is setting the encoding of all render targets in the EffectComposer chain to use sRGB encoding, but I'm not certain what problems this might produce and feels brittle since there is no way to <em>force</em> every pass to use the correct encoding as far as I know. But results should still be correct, since my understanding of using sRGB encoding for a texture is that hardware then performs the appropriate conversions on reads/writes, so shaders can still run code as if the data was linear.</p>
<p dir="auto">It seems that the necessary conditions to reproduce are:</p>
<ul dir="auto">
<li>sRGB encoding for <code class="notranslate">renderer.outputEncoding</code></li>
<li>using two different cameras</li>
<li>RTT (EffectsComposer in this case)</li>
</ul>
<p dir="auto">Stepping through the code it seems specifically to do with the <a href="https://github.com/mrdoob/three.js/issues/14121" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/14121/hovercard"><code class="notranslate">renderContext.state.lights</code> version</a> being different for each camera, which then triggers a check of the various properties against those when the program was created, which in will fail due to the different renderTargets and their encoding.</p>
<p dir="auto"><a href="https://jsfiddle.net/BruOps/qy6o74pn/9/" rel="nofollow">https://jsfiddle.net/BruOps/qy6o74pn/9/</a></p>
<ul dir="auto">
<li>Related:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="580514624" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/18893" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/18893/hovercard" href="https://github.com/mrdoob/three.js/issues/18893">#18893</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="568974772" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/18699" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/18699/hovercard" href="https://github.com/mrdoob/three.js/issues/18699">#18699</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="547689143" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/18355" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/18355/hovercard" href="https://github.com/mrdoob/three.js/issues/18355">#18355</a><br>
<del><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="325721720" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/14121" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/14121/hovercard" href="https://github.com/mrdoob/three.js/issues/14121">#14121</a></del></li>
</ul>
<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" checked=""> Dev</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r115</li>
</ul>
<p dir="auto">Introduced in r112</p>
<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" checked=""> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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" checked=""> 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"> 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">None</p> | 1 |
<p dir="auto">Hello,</p>
<p dir="auto">I was working on a personal project, and I could not figure out why my expressions were not getting rebound in my views after new data. I was not getting any compile or console errors. Eventually I found out that I was not linking to angular2-polyfills in my index.html.</p>
<p dir="auto">I know that the quickstart tutorial tells you to include the link, but I think it would be helpful to raise some sort of error if angular2-polyfills is not imported.</p> | <p dir="auto">Currently, the application will bootstrap, and the first digest will run successfully. But after that the application will stop reacting to changes, which is extremely confusing.</p> | 1 |
<p dir="auto">How would you suggest I extend THREE.BinaryLoader? I'd like to augment it by adding support for morph targets after the current loading code.</p>
<p dir="auto">Would it be possible to add createBinModel() and parseMetaData() to THREE.BinaryLoader (and change the call from THREE.BinaryLoader.prototype.createBinModel( xhr.response, callback, texturePath, json.materials ); to this.createBinModel( xhr.response, callback, texturePath, json.materials ); ) so we could override them as necessary in a subclass, or maybe add THREE.BrinaryLoader.init_extra_data( data, start )?</p>
<p dir="auto">Thanks!</p> | <p dir="auto"><code class="notranslate">BufferGeometry.fromDirectGeometry</code> will import indices from <code class="notranslate">DirectGeometry</code> if they exist, and <code class="notranslate">BufferGeometry.fromGeometry</code> passes through <code class="notranslate">DirectGeometry.fromGeometry</code> first (as of r72 dev). But the indices get lost in the middle because <code class="notranslate">DirectGeometry.fromGeometry</code> does not create indices from faces in <code class="notranslate">THREE.Geometry</code>.</p>
<p dir="auto">In <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="67631040" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/6377" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/6377/hovercard" href="https://github.com/mrdoob/three.js/pull/6377">#6377</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mrdoob/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mrdoob">@mrdoob</a> <a href="https://github.com/mrdoob/three.js/pull/6377#issuecomment-91962875" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/6377/hovercard">asked</a>:</p>
<blockquote>
<p dir="auto">Any reason you want indexed buffers out of <code class="notranslate">THREE.Geometry</code>? If it's for performance reasons I would, instead, focus on converting the primitives and loaders to <code class="notranslate">BufferGeometry</code> (or <code class="notranslate">DynamicGeometry</code>).</p>
</blockquote>
<p dir="auto"><code class="notranslate">THREE.Geometry</code> is easier to manipulate, so sometimes it's useful to start there and then convert it to <code class="notranslate">BufferGeometry</code> for rendering.</p>
<p dir="auto">Related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="60186495" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/6191" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/6191/hovercard" href="https://github.com/mrdoob/three.js/issues/6191">#6191</a></p> | 0 |
<p dir="auto">Qhull apparently has limits on how many input points it can handle. Scipy should check that before trying to use it for too big problems.<br>
<a href="http://mail.scipy.org/pipermail/scipy-dev/2015-June/020820.html" rel="nofollow">http://mail.scipy.org/pipermail/scipy-dev/2015-June/020820.html</a></p> | <p dir="auto">As <a href="https://github.com/scipy/scipy/pull/6768#issuecomment-263086512" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/6768/hovercard">discussed</a> with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rgommers/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rgommers">@rgommers</a> based on my <code class="notranslate">ConvexHull</code> <a href="https://github.com/scipy/scipy/pull/6768#issuecomment-262762632" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/6768/hovercard">stress tests</a> for the maximum number of input points tolerated, it would perhaps be useful for <code class="notranslate">ConvexHull</code> to capture inputs over the maximum handled size & fail gracefully rather than segfaulting.</p>
<p dir="auto">So, this issue is mostly a reminder / place to discuss possible ways to do this, or if we even need to. The approximate upper limit appears to be around 238 million points (see above links for details).</p>
<p dir="auto">We could also check the quickhull publication for details on space complexity:<br>
Barber, C.B., Dobkin, D.P., and Huhdanpaa, H.T., "The Quickhull algorithm for convex hulls," ACM Trans. on Mathematical Software, 22(4):469-483, Dec 1996</p>
<ul dir="auto">
<li><a href="http://www.cise.ufl.edu/~ungor/courses/fall06/papers/QuickHull.pdf" rel="nofollow">free article PDF</a> -- note that this paper has been cited 3501 times.</li>
</ul> | 1 |
<p dir="auto">Ubuntu 14.04<br>
commit used: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/a154b6a7826760f30e368e84f51048218002d376/hovercard" href="https://github.com/tensorflow/tensorflow/commit/a154b6a7826760f30e368e84f51048218002d376"><tt>a154b6a</tt></a></p>
<p dir="auto">Simply changed num_gpus to 2. I have 2 GPUs. A 1060 and 970. Shows this error:</p>
<p dir="auto"><code class="notranslate">ValueError: Variable tower_1/tower_1/conv1/weight_loss/avg/biased does not exist, or was not created with tf.get_variable(). Did you mean to set reuse=None in VarScope?</code></p> | <h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System: Ubuntu</p>
<p dir="auto">Installed version of CUDA and cuDNN: 8.0 and 5</p>
<ol dir="auto">
<li>The commit hash (<code class="notranslate">git rev-parse HEAD</code>): <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/3d41cf77d624aeee0482f92121a9300b29db2809/hovercard" href="https://github.com/tensorflow/tensorflow/commit/3d41cf77d624aeee0482f92121a9300b29db2809"><tt>3d41cf7</tt></a></li>
<li>The output of <code class="notranslate">bazel version</code>:<br>
Build label: 0.3.2<br>
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar<br>
Build time: Fri Oct 7 17:25:10 2016 (1475861110)<br>
Build timestamp: 1475861110<br>
Build timestamp as int: 1475861110</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>
<p dir="auto">python cifar10_multi_gpu_train.py --num_gpus=2</p>
<p dir="auto">Both cifar10_train.py and cifar10_multi_gpu_train.py (without specifying num_gpus, so running on a single GPU) work.</p>
<h3 dir="auto">Logs or other output that would be helpful</h3>
<p dir="auto">I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcublas.so locally<br>
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcudnn.so locally<br>
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcufft.so locally<br>
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcuda.so.1 locally<br>
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcurand.so locally<br>
Filling queue with 20000 CIFAR images before starting to train. This will take a few minutes.<br>
Filling queue with 20000 CIFAR images before starting to train. This will take a few minutes.<br>
Traceback (most recent call last):<br>
File "cifar10_multi_gpu_train.py", line 280, in <br>
tf.app.run()<br>
File "/data/github/tensorflow/_python_build/tensorflow/python/platform/app.py", line 43, in run<br>
sys.exit(main(sys.argv[:1] + flags_passthrough))<br>
File "cifar10_multi_gpu_train.py", line 276, in main<br>
train()<br>
File "cifar10_multi_gpu_train.py", line 180, in train<br>
loss = tower_loss(scope)<br>
File "cifar10_multi_gpu_train.py", line 92, in tower_loss<br>
loss_averages_op = loss_averages.apply(losses + [total_loss])<br>
File "/data/github/tensorflow/_python_build/tensorflow/python/training/moving_averages.py", line 391, in apply<br>
self._averages[var], var, decay, zero_debias=zero_debias))<br>
File "/data/github/tensorflow/_python_build/tensorflow/python/training/moving_averages.py", line 70, in assign_moving_average<br>
update_delta = _zero_debias(variable, value, decay)<br>
File "/data/github/tensorflow/_python_build/tensorflow/python/training/moving_averages.py", line 177, in _zero_debias<br>
trainable=False)<br>
File "/data/github/tensorflow/_python_build/tensorflow/python/ops/variable_scope.py", line 1024, in get_variable<br>
custom_getter=custom_getter)<br>
File "/data/github/tensorflow/_python_build/tensorflow/python/ops/variable_scope.py", line 850, in get_variable<br>
custom_getter=custom_getter)<br>
File "/data/github/tensorflow/_python_build/tensorflow/python/ops/variable_scope.py", line 346, in get_variable<br>
validate_shape=validate_shape)<br>
File "/data/github/tensorflow/_python_build/tensorflow/python/ops/variable_scope.py", line 331, in _true_getter<br>
caching_device=caching_device, validate_shape=validate_shape)<br>
File "/data/github/tensorflow/_python_build/tensorflow/python/ops/variable_scope.py", line 650, in _get_single_variable<br>
"VarScope?" % name)<br>
ValueError: Variable tower_1/tower_1/conv1/weight_loss/avg/biased does not exist, or was not created with tf.get_variable(). Did you mean to set reuse=None in VarScope?</p> | 1 |
<p dir="auto">Initial window height is off by titlebar height. This got regressed by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="515647698" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/3394" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/terminal/pull/3394/hovercard" href="https://github.com/microsoft/terminal/pull/3394">#3394</a> in:</p>
<p dir="auto"></p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/microsoft/terminal/blob/357e835f5d37492812e33eac1dd995232c19de63/src/cascadia/WindowsTerminal/AppHost.cpp#L197-L210">terminal/src/cascadia/WindowsTerminal/AppHost.cpp</a>
</p>
<p class="mb-0 color-fg-muted">
Lines 197 to 210
in
<a data-pjax="true" class="commit-tease-sha" href="/microsoft/terminal/commit/357e835f5d37492812e33eac1dd995232c19de63">357e835</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="L197" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="197"></td>
<td id="LC197" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> RECT islandFrame = {}; </td>
</tr>
<tr class="border-0">
<td id="L198" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="198"></td>
<td id="LC198" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">bool</span> succeeded = <span class="pl-c1">AdjustWindowRectExForDpi</span>(&islandFrame, WS_OVERLAPPEDWINDOW, <span class="pl-c1">false</span>, <span class="pl-c1">0</span>, dpix); </td>
</tr>
<tr class="border-0">
<td id="L199" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="199"></td>
<td id="LC199" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">//</span> If we failed to get the correct window size for whatever reason, log</span> </td>
</tr>
<tr class="border-0">
<td id="L200" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="200"></td>
<td id="LC200" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">//</span> the error and go on. We'll use whatever the control proposed as the</span> </td>
</tr>
<tr class="border-0">
<td id="L201" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="201"></td>
<td id="LC201" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">//</span> size of our window, which will be at least close.</span> </td>
</tr>
<tr class="border-0">
<td id="L202" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="202"></td>
<td id="LC202" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">LOG_LAST_ERROR_IF</span>(!succeeded); </td>
</tr>
<tr class="border-0">
<td id="L203" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="203"></td>
<td id="LC203" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L204" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="204"></td>
<td id="LC204" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> (_useNonClientArea) </td>
</tr>
<tr class="border-0">
<td id="L205" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="205"></td>
<td id="LC205" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> { </td>
</tr>
<tr class="border-0">
<td id="L206" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="206"></td>
<td id="LC206" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> islandFrame.<span class="pl-smi">top</span> = -NonClientIslandWindow::topBorderVisibleHeight; </td>
</tr>
<tr class="border-0">
<td id="L207" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="207"></td>
<td id="LC207" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> } </td>
</tr>
<tr class="border-0">
<td id="L208" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="208"></td>
<td id="LC208" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L209" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="209"></td>
<td id="LC209" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> adjustedWidth = -islandFrame.<span class="pl-smi">left</span> + islandWidth + islandFrame.<span class="pl-smi">right</span>; </td>
</tr>
<tr class="border-0">
<td id="L210" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="210"></td>
<td id="LC210" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> adjustedHeight = -islandFrame.<span class="pl-smi">top</span> + islandHeight + islandFrame.<span class="pl-smi">bottom</span>; </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto">That also blocks <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="506354568" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/3181" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/terminal/pull/3181/hovercard" href="https://github.com/microsoft/terminal/pull/3181">#3181</a> which relys on this size calculation.</p>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Set <code class="notranslate">fontSize</code> to 50</li>
<li>Set <code class="notranslate">initialRows</code> to 2</li>
<li>Launch terminal</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">2 rows should fit in the window</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">About 1.5 of a row fits.</p>
<p dir="auto">cc @greg904.</p> | <h1 dir="auto">Environment</h1>
<p dir="auto">Windows build number: 10.0.18362.239<br>
Windows Terminal version (if applicable): 0.3.2171.0</p>
<h1 dir="auto">Steps to reproduce</h1>
<ul dir="auto">
<li>Open Windows Terminal (Preview)</li>
<li>The default Powershell tab opens, with the title "c:\windows\system32\WindowsPowerShell\v1.0\powershell.exe"</li>
<li>click the <strong>+</strong> button to open a new tab</li>
<li>A second tab opens. the title "c:\windows\system32\WindowsPowerShell\v1.0\powershell.exe" does not fit inside the tab, and is cut off at "...\pow" before the new Tab <em>+</em> button</li>
</ul>
<h1 dir="auto">Expected behavior</h1>
<ul dir="auto">
<li>The <strong>x</strong> to close the second tab would be visible, after the truncated window title, and before the New Tab <strong>+</strong> button, to allow the tab to be closed.</li>
</ul>
<h1 dir="auto">Actual behavior</h1>
<ul dir="auto">
<li>There is no <strong>x</strong> to close the tab available. It is truncated along with the window title.</li>
</ul>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3262046/62661009-096e0300-b9b3-11e9-93d0-c59b947ef63f.png"><img src="https://user-images.githubusercontent.com/3262046/62661009-096e0300-b9b3-11e9-93d0-c59b947ef63f.png" alt="terminal-preview-tab-noX" style="max-width: 100%;"></a></p> | 0 |
<h5 dir="auto">Description of the problem</h5>
<p dir="auto">I am trying to render a scene into another scene using <strong>WebGLRenderTarget</strong> in VR mode. I created two scenes - <code class="notranslate">mainScene</code> and <code class="notranslate">bufferScene</code>. I draw a red cube in <code class="notranslate">bufferScene</code>, then render the <code class="notranslate">bufferScene</code> to the texture <code class="notranslate">bufferTexture</code> using <strong>WebGLRenderTarget</strong> . <code class="notranslate">bufferTexture</code> as the texture of <code class="notranslate">mainScene</code>.<br>
When I enter VR mode and turn the head to observe the entire scene, <code class="notranslate">mainScene</code> is fine, but the cube in <code class="notranslate">bufferScene</code> is rendered by split screen, and it will follow my head movement. Generally speaking, in the vr scene, the object should not follow the head movement. What caused this situation?<br>
I have put the code in <a href="https://codepen.io/zhudongwork/pen/LMwZjv" rel="nofollow">codeopen</a>.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var mainScene = new THREE.Scene();
mainScene.position.set(0,0,0);
var width = window.innerWidth;
var height = window.innerHeight;
var camera = new THREE.PerspectiveCamera( 70, window.innerWidth / window.innerHeight, 1, 1000 );
camera.position.z = 10;
var renderer = new THREE.WebGLRenderer();
renderer.setSize( window.innerWidth, window.innerHeight );
renderer.vr.enabled = true;
document.body.appendChild( renderer.domElement );
document.body.appendChild( WEBVR.createButton( renderer ) );
//This is where we create our off-screen render target
//Create a different scene to hold our buffer objects
var bufferScene = new THREE.Scene();
//Create the texture that will store our result
var bufferTexture = new THREE.WebGLRenderTarget( window.innerWidth, window.innerHeight,
{ minFilter: THREE.LinearFilter,
magFilter: THREE.NearestFilter});
//Let's create a red box
var redMaterial = new THREE.MeshBasicMaterial({color:0xF06565});
var boxGeometry = new THREE.BoxGeometry( 5, 5, 5 );
var boxObject = new THREE.Mesh( boxGeometry, redMaterial );
boxObject.position.z = -10;
bufferScene.add(boxObject);//We add it to the bufferScene instead of the normal scene!
////////////////////////////Now we use our bufferTexture as a material to render it onto our main scene
var boxMaterial = new THREE.MeshBasicMaterial({map:bufferTexture.texture});
var boxGeometry2 = new THREE.BoxGeometry( 5, 5, 5 );
var mainBoxObject = new THREE.Mesh(boxGeometry2,boxMaterial);
mainBoxObject.position.set(0,0,-10);
mainScene.add(mainBoxObject);
///And a blue plane behind it
var blueMaterial = new THREE.MeshBasicMaterial({color:0x7074FF})
var plane = new THREE.PlaneBufferGeometry( window.innerWidth, window.innerHeight );
var planeObject = new THREE.Mesh(plane,blueMaterial);
planeObject.position.z = -15;
mainScene.add(planeObject);
//Render everything!
function render() {
renderer.setAnimationLoop( render );
renderer.render(bufferScene,camera,bufferTexture,true);
renderer.render( mainScene, camera );
}
render();"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">mainScene</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">Scene</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">mainScene</span><span class="pl-kos">.</span><span class="pl-c1">position</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">width</span> <span class="pl-c1">=</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">innerWidth</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">height</span> <span class="pl-c1">=</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">innerHeight</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">camera</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">PerspectiveCamera</span><span class="pl-kos">(</span> <span class="pl-c1">70</span><span class="pl-kos">,</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">innerWidth</span> <span class="pl-c1">/</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">innerHeight</span><span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">1000</span> <span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">camera</span><span class="pl-kos">.</span><span class="pl-c1">position</span><span class="pl-kos">.</span><span class="pl-c1">z</span> <span class="pl-c1">=</span> <span class="pl-c1">10</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">renderer</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">WebGLRenderer</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">setSize</span><span class="pl-kos">(</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">innerWidth</span><span class="pl-kos">,</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">innerHeight</span> <span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-c1">vr</span><span class="pl-kos">.</span><span class="pl-c1">enabled</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span>
<span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-c1">body</span><span class="pl-kos">.</span><span class="pl-en">appendChild</span><span class="pl-kos">(</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-c1">domElement</span> <span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-c1">body</span><span class="pl-kos">.</span><span class="pl-en">appendChild</span><span class="pl-kos">(</span> <span class="pl-c1">WEBVR</span><span class="pl-kos">.</span><span class="pl-en">createButton</span><span class="pl-kos">(</span> <span class="pl-s1">renderer</span> <span class="pl-kos">)</span> <span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">//This is where we create our off-screen render target</span>
<span class="pl-c">//Create a different scene to hold our buffer objects</span>
<span class="pl-k">var</span> <span class="pl-s1">bufferScene</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">Scene</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">//Create the texture that will store our result</span>
<span class="pl-k">var</span> <span class="pl-s1">bufferTexture</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">WebGLRenderTarget</span><span class="pl-kos">(</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">innerWidth</span><span class="pl-kos">,</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">innerHeight</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span> <span class="pl-c1">minFilter</span>: <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">LinearFilter</span><span class="pl-kos">,</span>
<span class="pl-c1">magFilter</span>: <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">NearestFilter</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">//Let's create a red box</span>
<span class="pl-k">var</span> <span class="pl-s1">redMaterial</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">MeshBasicMaterial</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">color</span>:<span class="pl-c1">0xF06565</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">boxGeometry</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">BoxGeometry</span><span class="pl-kos">(</span> <span class="pl-c1">5</span><span class="pl-kos">,</span> <span class="pl-c1">5</span><span class="pl-kos">,</span> <span class="pl-c1">5</span> <span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">boxObject</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">Mesh</span><span class="pl-kos">(</span> <span class="pl-s1">boxGeometry</span><span class="pl-kos">,</span> <span class="pl-s1">redMaterial</span> <span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">boxObject</span><span class="pl-kos">.</span><span class="pl-c1">position</span><span class="pl-kos">.</span><span class="pl-c1">z</span> <span class="pl-c1">=</span> <span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-kos">;</span>
<span class="pl-s1">bufferScene</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span><span class="pl-s1">boxObject</span><span class="pl-kos">)</span><span class="pl-kos">;</span><span class="pl-c">//We add it to the bufferScene instead of the normal scene!</span>
<span class="pl-c">////////////////////////////Now we use our bufferTexture as a material to render it onto our main scene</span>
<span class="pl-k">var</span> <span class="pl-s1">boxMaterial</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">MeshBasicMaterial</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">map</span>:<span class="pl-s1">bufferTexture</span><span class="pl-kos">.</span><span class="pl-c1">texture</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">boxGeometry2</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">BoxGeometry</span><span class="pl-kos">(</span> <span class="pl-c1">5</span><span class="pl-kos">,</span> <span class="pl-c1">5</span><span class="pl-kos">,</span> <span class="pl-c1">5</span> <span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">mainBoxObject</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">Mesh</span><span class="pl-kos">(</span><span class="pl-s1">boxGeometry2</span><span class="pl-kos">,</span><span class="pl-s1">boxMaterial</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">mainBoxObject</span><span class="pl-kos">.</span><span class="pl-c1">position</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">mainScene</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span><span class="pl-s1">mainBoxObject</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">///And a blue plane behind it</span>
<span class="pl-k">var</span> <span class="pl-s1">blueMaterial</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">MeshBasicMaterial</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">color</span>:<span class="pl-c1">0x7074FF</span><span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-k">var</span> <span class="pl-s1">plane</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">PlaneBufferGeometry</span><span class="pl-kos">(</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">innerWidth</span><span class="pl-kos">,</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">innerHeight</span> <span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">planeObject</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">Mesh</span><span class="pl-kos">(</span><span class="pl-s1">plane</span><span class="pl-kos">,</span><span class="pl-s1">blueMaterial</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">planeObject</span><span class="pl-kos">.</span><span class="pl-c1">position</span><span class="pl-kos">.</span><span class="pl-c1">z</span> <span class="pl-c1">=</span> <span class="pl-c1">-</span><span class="pl-c1">15</span><span class="pl-kos">;</span>
<span class="pl-s1">mainScene</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span><span class="pl-s1">planeObject</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">//Render everything!</span>
<span class="pl-k">function</span> <span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">setAnimationLoop</span><span class="pl-kos">(</span> <span class="pl-s1">render</span> <span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-s1">bufferScene</span><span class="pl-kos">,</span><span class="pl-s1">camera</span><span class="pl-kos">,</span><span class="pl-s1">bufferTexture</span><span class="pl-kos">,</span><span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span> <span class="pl-s1">mainScene</span><span class="pl-kos">,</span> <span class="pl-s1">camera</span> <span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<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=""> r100</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" checked=""> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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" checked=""> 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"> 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> | <h5 dir="auto">Description of the problem</h5>
<p dir="auto">Similar to the <a href="https://github.com/mrdoob/three.js/pull/14132" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/14132/hovercard">addition of renderer.setFramebuffer</a> which fixes this issue specifically for shadow maps, the issue also applies to any WebGLRenderTarget usage.</p>
<p dir="auto">I have some ideas how to fix this, no stripped down test case yet.</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=""> r99</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li>
</ul> | 1 |
<p dir="auto">The docs don't have an entry for <code class="notranslate">A_ldiv_B!</code>, but it has (in version 0.4.0-rc3) 37 methods. Adding a short entry to the docs specifying the order of the arguments would be very helpful.</p> | <p dir="auto">Documentation for <code class="notranslate">A_ldiv_B!</code> and company is missing.<br>
Is it correct that it does in-place replacement of <code class="notranslate">A</code> by <code class="notranslate">A / B</code> ? If so, I'll add docs for these functions.</p> | 1 |
<p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>Playwright Version: 1.16.0</li>
<li>Operating System: Windows</li>
<li>Node.js version: 14.6.1</li>
<li>Browser: Chrome</li>
<li>Extra: WebStorm IDE</li>
</ul>
<p dir="auto"><strong>Code Snippet</strong></p>
<p dir="auto"><strong>-----Used Method-----</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" await expect(waitingMask).toHaveCount(0, {timeout: 40000});"><pre class="notranslate"> <span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">waitingMask</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveCount</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-c1">timeout</span>: <span class="pl-c1">40000</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>-----Test file-----</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {expect, test} from "@playwright/test";
import BasePage from "../../../../Common/BasePage";
import UnifyLoginPage from "../../../../Unify/Pages/UnifyLoginPage";
import UnifyBasePage from "../../../../Unify/Pages/UnifyBasePage";
import ApplicationUrl from "../../../../Helpers/ApplicationUrl";
import SalesPage from "../../../../Unify/Pages/Sales/SalesPage";
import SalesSidePanel from "../../../../Unify/Pages/Sales/SalesSidePanel";
import {ModulesEnum} from "../../../../Unify/NavigationEnums/ModulesEnum";
import { SalesLeftSideMenuEnum } from "../../../../Unify/NavigationEnums/SalesLeftSideMenuEnum";
import SeatListPage from "../../../../Unify/Pages/Sales/SeatListPage";
test.describe.only("Seat List Tests @run", async () => {
let basePage: BasePage;
let unifyBasePage: UnifyBasePage;
let unifyLoginPage: UnifyLoginPage;
let salesPage: SalesPage;
let salesSidePanel: SalesSidePanel;
let seatListPage: SeatListPage;
test.beforeEach(async ({page}) => {
basePage = new BasePage(page);
unifyBasePage = new UnifyBasePage(page);
unifyLoginPage = new UnifyLoginPage(page);
salesPage = new SalesPage(page);
salesSidePanel = new SalesSidePanel(page);
seatListPage = new SeatListPage(page);
//Login and navigate to seat list
await basePage.loadApplication(ApplicationUrl.UNIFY);
await page.setViewportSize({width: 1400, height: 900});
await unifyLoginPage.loginToUnify("sro", "1");
await unifyBasePage.validateLogin();
await unifyBasePage.navigateToModule(ModulesEnum.SALES);
await salesPage.selectCategory(SalesLeftSideMenuEnum.SEAT_LIST);
});
test.afterEach(async ({context}) => {
await context.clearCookies();
});
test("Validate apply button is disabled when 'change' and 'to' are empty", async ({page}) => {
await test.step("Select Filter and Search", async () => {
await seatListPage.selectShowTypeByIndex(0);
await seatListPage.search();
});
await test.step("Switch to Manage Mode", async () => {
await seatListPage.selectManageMode();
});
await test.step("Select First Search Result", async () => {
await seatListPage.selectSearchResultByIndex(0);
});
//Validate apply button is disabled when 'change' and 'to' are empty
await seatListPage.validateApplyButtonDisabled();
})
})"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-s1">expect</span><span class="pl-kos">,</span> <span class="pl-s1">test</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"@playwright/test"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-v">BasePage</span> <span class="pl-k">from</span> <span class="pl-s">"../../../../Common/BasePage"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-v">UnifyLoginPage</span> <span class="pl-k">from</span> <span class="pl-s">"../../../../Unify/Pages/UnifyLoginPage"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-v">UnifyBasePage</span> <span class="pl-k">from</span> <span class="pl-s">"../../../../Unify/Pages/UnifyBasePage"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-v">ApplicationUrl</span> <span class="pl-k">from</span> <span class="pl-s">"../../../../Helpers/ApplicationUrl"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-v">SalesPage</span> <span class="pl-k">from</span> <span class="pl-s">"../../../../Unify/Pages/Sales/SalesPage"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-v">SalesSidePanel</span> <span class="pl-k">from</span> <span class="pl-s">"../../../../Unify/Pages/Sales/SalesSidePanel"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-v">ModulesEnum</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"../../../../Unify/NavigationEnums/ModulesEnum"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">SalesLeftSideMenuEnum</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"../../../../Unify/NavigationEnums/SalesLeftSideMenuEnum"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-v">SeatListPage</span> <span class="pl-k">from</span> <span class="pl-s">"../../../../Unify/Pages/Sales/SeatListPage"</span><span class="pl-kos">;</span>
<span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-c1">describe</span><span class="pl-kos">.</span><span class="pl-en">only</span><span class="pl-kos">(</span><span class="pl-s">"Seat List Tests @run"</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> <span class="pl-s1">basePage</span>: <span class="pl-v">BasePage</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">unifyBasePage</span>: <span class="pl-v">UnifyBasePage</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">unifyLoginPage</span>: <span class="pl-v">UnifyLoginPage</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">salesPage</span>: <span class="pl-v">SalesPage</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">salesSidePanel</span>: <span class="pl-v">SalesSidePanel</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">seatListPage</span>: <span class="pl-v">SeatListPage</span><span class="pl-kos">;</span>
<span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">beforeEach</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-s1">basePage</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">BasePage</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">unifyBasePage</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">UnifyBasePage</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">unifyLoginPage</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">UnifyLoginPage</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">salesPage</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">SalesPage</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">salesSidePanel</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">SalesSidePanel</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">seatListPage</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">SeatListPage</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">//Login and navigate to seat list</span>
<span class="pl-k">await</span> <span class="pl-s1">basePage</span><span class="pl-kos">.</span><span class="pl-en">loadApplication</span><span class="pl-kos">(</span><span class="pl-v">ApplicationUrl</span><span class="pl-kos">.</span><span class="pl-c1">UNIFY</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">setViewportSize</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">width</span>: <span class="pl-c1">1400</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">900</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">unifyLoginPage</span><span class="pl-kos">.</span><span class="pl-en">loginToUnify</span><span class="pl-kos">(</span><span class="pl-s">"sro"</span><span class="pl-kos">,</span> <span class="pl-s">"1"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">unifyBasePage</span><span class="pl-kos">.</span><span class="pl-en">validateLogin</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">unifyBasePage</span><span class="pl-kos">.</span><span class="pl-en">navigateToModule</span><span class="pl-kos">(</span><span class="pl-v">ModulesEnum</span><span class="pl-kos">.</span><span class="pl-c1">SALES</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">salesPage</span><span class="pl-kos">.</span><span class="pl-en">selectCategory</span><span class="pl-kos">(</span><span class="pl-v">SalesLeftSideMenuEnum</span><span class="pl-kos">.</span><span class="pl-c1">SEAT_LIST</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-s1">test</span><span class="pl-kos">.</span><span class="pl-en">afterEach</span><span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span>context<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">context</span><span class="pl-kos">.</span><span class="pl-en">clearCookies</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">"Validate apply button is disabled when 'change' and 'to' are empty"</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">test</span><span class="pl-kos">.</span><span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">"Select Filter and Search"</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">await</span> <span class="pl-s1">seatListPage</span><span class="pl-kos">.</span><span class="pl-en">selectShowTypeByIndex</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">seatListPage</span><span class="pl-kos">.</span><span class="pl-en">search</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">"Switch to Manage Mode"</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">await</span> <span class="pl-s1">seatListPage</span><span class="pl-kos">.</span><span class="pl-en">selectManageMode</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">"Select First Search Result"</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">await</span> <span class="pl-s1">seatListPage</span><span class="pl-kos">.</span><span class="pl-en">selectSearchResultByIndex</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">//Validate apply button is disabled when 'change' and 'to' are empty</span>
<span class="pl-k">await</span> <span class="pl-s1">seatListPage</span><span class="pl-kos">.</span><span class="pl-en">validateApplyButtonDisabled</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>-----Output-----</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
Starting test Validate apply button is disabled when 'change' and 'to' are empty
Tests\Unify\Sales\SeatList\VerifyApplyButtonDisablement.spec.ts:44:5 › Seat List Tests @run › Validate apply button is disabled when 'change' and 'to' are empty
2021-10-22 07:05:47.343 ERROR [myLogger Common\BasePage.ts:99 UnifyLoginPage.waitUntilWaitingMaskInvisible] Error: expect(received).toHaveCount(expected) // deep equality
Expected: 0
Received: undefined
Call log:
- waiting for selector "[class="waitingMask"]"
- selector resolved to 0 elements
2021-10-22 07:06:27.409 ERROR [myLogger Common\BasePage.ts:99 UnifyLoginPage.waitUntilWaitingMaskInvisible] Error: expect(received).toHaveCount(expected) // deep equality
Expected: 0
Received: undefined
Call log:
- waiting for selector "[class="waitingMask"]"
- selector resolved to 0 elements
2021-10-22 07:07:07.527 ERROR [myLogger Common\BasePage.ts:99 UnifyLoginPage.waitUntilWaitingMaskInvisible] Error: expect(received).toHaveCount(expected) // deep equality
Expected: 0
Received: undefined
Call log:
- waiting for selector "[class="waitingMask"]"
- selector resolved to 0 elements
2021-10-22 07:07:07.530 INFO [myLogger Common\BasePage.ts:62 UnifyLoginPage.clickElement] Clicked Locator@[name="__RIA_userName"] successfully
2021-10-22 07:07:47.607 ERROR [myLogger Common\BasePage.ts:99 UnifyLoginPage.waitUntilWaitingMaskInvisible] Error: expect(received).toHaveCount(expected) // deep equality
Expected: 0
Received: undefined
Call log:
- waiting for selector "[class="waitingMask"]"
- selector resolved to 0 elements
2021-10-22 07:08:27.677 ERROR [myLogger Common\BasePage.ts:99 UnifyLoginPage.waitUntilWaitingMaskInvisible] Error: expect(received).toHaveCount(expected) // deep equality
Expected: 0
Received: undefined
Call log:
- waiting for selector "[class="waitingMask"]"
- selector resolved to 0 elements
2021-10-22 07:09:07.761 ERROR [myLogger Common\BasePage.ts:99 UnifyLoginPage.waitUntilWaitingMaskInvisible] Error: expect(received).toHaveCount(expected) // deep equality
Expected: 0
Received: undefined
Call log:
- waiting for selector "[class="waitingMask"]"
- selector resolved to 0 elements
x Tests\Unify\Sales\SeatList\VerifyApplyButtonDisablement.spec.ts:44:5 › Seat List Tests @run › Validate apply button is disabled when 'change' and 'to' are empty (4m)
2021-10-22 07:09:09.554 ERROR [myLogger Common\BasePage.ts:99 UnifyLoginPage.waitUntilWaitingMaskInvisible] Error: expect(received).toHaveCount(expected) // deep equality
Expected: 0
Received: undefined
Call log:
- waiting for selector "[class="waitingMask"]"
- selector resolved to 0 elements
2021-10-22 07:09:09.572 ERROR [myLogger Common\BasePage.ts:65 UnifyLoginPage.clickElement] Click on .screenLogin.loginBtn failed
2021-10-22 07:09:09.583 ERROR [myLogger Common\BasePage.ts:65 UnifyLoginPage.clickElement] Click on .screenLogin.loginBtn failed
Finished the test Validate apply button is disabled when 'change' and 'to' are empty: failed
Finished the run: failed
1) Tests\Unify\Sales\SeatList\VerifyApplyButtonDisablement.spec.ts:44:5 › Seat List Tests @run › Validate apply button is disabled when 'change' and 'to' are empty
Pending operations:
- expect.toHaveCount at Common\BasePage.ts:76:39
page.waitForSelector: Target closed
=========================== logs ===========================
waiting for selector "[data-uitestingname="Home"]" to be visible
============================================================
32 | await page.setViewportSize({width: 1400, height: 900});
33 | await unifyLoginPage.loginToUnify("sro", "1");
> 34 | await unifyBasePage.validateLogin();
| ^
35 | await unifyBasePage.navigateToModule(ModulesEnum.SALES);
36 | await salesPage.selectCategory(SalesLeftSideMenuEnum.SEAT_LIST);
37 |
at Validator.validateElementVisible (D:\projects\sro4\uiAutomation\PlaywrightTest\Common\Validator.ts:17:25)
at UnifyBasePage.validateLogin (D:\projects\sro4\uiAutomation\PlaywrightTest\Unify\Pages\UnifyBasePage.ts:35:30)
at D:\projects\sro4\uiAutomation\PlaywrightTest\Tests\Unify\Sales\SeatList\VerifyApplyButtonDisablement.spec.ts:34:29
at WorkerRunner._runHooks (D:\projects\sro4\uiAutomation\PlaywrightTest\node_modules\@playwright\test\lib\workerRunner.js:544:9)
at WorkerRunner._runBeforeHooks (D:\projects\sro4\uiAutomation\PlaywrightTest\node_modules\@playwright\test\lib\workerRunner.js:450:7)
at WorkerRunner._runTestWithBeforeHooks (D:\projects\sro4\uiAutomation\PlaywrightTest\node_modules\@playwright\test\lib\workerRunner.js:470:32)
attachment #1: video (video/webm) --------------------------------------------------------------
test-results\Tests-Unify-Sales-SeatList-VerifyApplyButtonDisablement-Seat-List-Tests-run-Validate-apply-button-is-disabled-when-change-and-to-are-empty\8106389fe1d8c874687d13264038
2d50.webm
------------------------------------------------------------------------------------------------
attachment #2: trace (application/zip) ---------------------------------------------------------
test-results\Tests-Unify-Sales-SeatList-VerifyApplyButtonDisablement-Seat-List-Tests-run-Validate-apply-button-is-disabled-when-change-and-to-are-empty\trace.zip
Usage:
npx playwright show-trace test-results\Tests-Unify-Sales-SeatList-VerifyApplyButtonDisablement-Seat-List-Tests-run-Validate-apply-button-is-disabled-when-change-and-to-are-empt
y\trace.zip
------------------------------------------------------------------------------------------------
attachment #3: screenshot (image/png) ----------------------------------------------------------
test-results\Tests-Unify-Sales-SeatList-VerifyApplyButtonDisablement-Seat-List-Tests-run-Validate-apply-button-is-disabled-when-change-and-to-are-empty\test-failed-1.png
------------------------------------------------------------------------------------------------
--- Test output ------------------------------------------------------------------------------------
2021-10-22 07:05:47.343 ERROR [myLogger Common\BasePage.ts:99 UnifyLoginPage.waitUntilWaitingMaskInvisible] Error: expect(received).toHaveCount(expected) // deep equality
Expected: 0
Received: undefined
Call log:
- waiting for selector "[class="waitingMask"]"
- selector resolved to 0 elements
2021-10-22 07:06:27.409 ERROR [myLogger Common\BasePage.ts:99 UnifyLoginPage.waitUntilWaitingMaskInvisible] Error: expect(received).toHaveCount(expected) // deep equality
Expected: 0
Received: undefined
Call log:
- waiting for selector "[class="waitingMask"]"
- selector resolved to 0 elements
2021-10-22 07:07:07.527 ERROR [myLogger Common\BasePage.ts:99 UnifyLoginPage.waitUntilWaitingMaskInvisible] Error: expect(received).toHaveCount(expected) // deep equality
Expected: 0
Received: undefined
Call log:
- waiting for selector "[class="waitingMask"]"
- selector resolved to 0 elements
2021-10-22 07:07:07.530 INFO [myLogger Common\BasePage.ts:62 UnifyLoginPage.clickElement] Clicked Locator@[name="__RIA_userName"] successfully
2021-10-22 07:07:47.607 ERROR [myLogger Common\BasePage.ts:99 UnifyLoginPage.waitUntilWaitingMaskInvisible] Error: expect(received).toHaveCount(expected) // deep equality
Expected: 0
Received: undefined
Call log:
- waiting for selector "[class="waitingMask"]"
- selector resolved to 0 elements
2021-10-22 07:08:27.677 ERROR [myLogger Common\BasePage.ts:99 UnifyLoginPage.waitUntilWaitingMaskInvisible] Error: expect(received).toHaveCount(expected) // deep equality
Expected: 0
Received: undefined
Call log:
- waiting for selector "[class="waitingMask"]"
- selector resolved to 0 elements
2021-10-22 07:09:07.761 ERROR [myLogger Common\BasePage.ts:99 UnifyLoginPage.waitUntilWaitingMaskInvisible] Error: expect(received).toHaveCount(expected) // deep equality
Expected: 0
Received: undefined
Call log:
- waiting for selector "[class="waitingMask"]"
- selector resolved to 0 elements
2021-10-22 07:09:07.764 INFO [myLogger Common\BasePage.ts:62 UnifyLoginPage.clickElement] Clicked Locator@[name="__RIA_password"] successfully
2021-10-22 07:09:09.554 ERROR [myLogger Common\BasePage.ts:99 UnifyLoginPage.waitUntilWaitingMaskInvisible] Error: expect(received).toHaveCount(expected) // deep equality
Expected: 0
Received: undefined
Call log:
- waiting for selector "[class="waitingMask"]"
- selector resolved to 0 elements
2021-10-22 07:09:09.572 ERROR [myLogger Common\BasePage.ts:65 UnifyLoginPage.clickElement] Click on .screenLogin.loginBtn failed
2021-10-22 07:09:09.583 ERROR [myLogger Common\BasePage.ts:65 UnifyLoginPage.clickElement] Click on .screenLogin.loginBtn failed
----------------------------------------------------------------------------------------------------
Slow test: Tests\Unify\Sales\SeatList\VerifyApplyButtonDisablement.spec.ts (4m)
1 failed
Tests\Unify\Sales\SeatList\VerifyApplyButtonDisablement.spec.ts:44:5 › Seat List Tests @run › Validate apply button is disabled when 'change' and 'to' are empty
"><pre class="notranslate"> <span class="pl-v">Starting</span> <span class="pl-s1">test</span> <span class="pl-v">Validate</span> <span class="pl-s1">apply</span> <span class="pl-s1">button</span> <span class="pl-s1">is</span> <span class="pl-s1">disabled</span> <span class="pl-s1">when</span> <span class="pl-s">'change'</span> <span class="pl-s1">and</span> <span class="pl-s">'to'</span> <span class="pl-s1">are</span> <span class="pl-s1">empty</span>
<span class="pl-v">Tests</span>\U<span class="pl-s1">nify</span>\S<span class="pl-s1">ales</span>\S<span class="pl-s1">eatList</span>\V<span class="pl-s1">erifyApplyButtonDisablement</span><span class="pl-kos">.</span><span class="pl-c1">spec</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">44</span>:<span class="pl-c1">5</span> <span class="pl-s1">›</span> <span class="pl-v">Seat</span> <span class="pl-v">List</span> <span class="pl-v">Tests</span> @<span class="pl-s1">run</span> <span class="pl-s1">›</span> <span class="pl-v">Validate</span> <span class="pl-s1">apply</span> <span class="pl-s1">button</span> <span class="pl-s1">is</span> <span class="pl-s1">disabled</span> <span class="pl-s1">when</span> <span class="pl-s">'change'</span> <span class="pl-s1">and</span> <span class="pl-s">'to'</span> <span class="pl-s1">are</span> <span class="pl-s1">empty</span>
<span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">22</span> <span class="pl-c1">07</span>:<span class="pl-c1">05</span>:<span class="pl-c1">47.343</span> <span class="pl-c1">ERROR</span> <span class="pl-kos">[</span><span class="pl-s1">myLogger</span> <span class="pl-v">Common</span>\B<span class="pl-s1">asePage</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">99</span> <span class="pl-v">UnifyLoginPage</span><span class="pl-kos">.</span><span class="pl-c1">waitUntilWaitingMaskInvisible</span><span class="pl-kos">]</span><span class="pl-kos"></span> Error: <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">received</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveCount</span><span class="pl-kos">(</span><span class="pl-s1">expected</span><span class="pl-kos">)</span> <span class="pl-c">// deep equality</span>
Expected: <span class="pl-c1">0</span>
Received: <span class="pl-c1">undefined</span>
Call <span class="pl-s1">log</span>:
<span class="pl-c1">-</span> <span class="pl-s1">waiting</span> <span class="pl-s1">for</span> <span class="pl-s1">selector</span> <span class="pl-s">"[class="</span><span class="pl-s1">waitingMask</span><span class="pl-s">"]"</span>
<span class="pl-c1">-</span> <span class="pl-s1">selector</span> <span class="pl-s1">resolved</span> <span class="pl-s1">to</span> <span class="pl-c1">0</span> <span class="pl-s1">elements</span>
<span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">22</span> <span class="pl-c1">07</span>:<span class="pl-c1">06</span>:<span class="pl-c1">27.409</span> <span class="pl-c1">ERROR</span> <span class="pl-kos">[</span><span class="pl-s1">myLogger</span> <span class="pl-v">Common</span>\B<span class="pl-s1">asePage</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">99</span> <span class="pl-v">UnifyLoginPage</span><span class="pl-kos">.</span><span class="pl-c1">waitUntilWaitingMaskInvisible</span><span class="pl-kos">]</span><span class="pl-kos"></span> Error: <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">received</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveCount</span><span class="pl-kos">(</span><span class="pl-s1">expected</span><span class="pl-kos">)</span> <span class="pl-c">// deep equality</span>
Expected: <span class="pl-c1">0</span>
Received: <span class="pl-c1">undefined</span>
Call <span class="pl-s1">log</span>:
<span class="pl-c1">-</span> <span class="pl-s1">waiting</span> <span class="pl-s1">for</span> <span class="pl-s1">selector</span> <span class="pl-s">"[class="</span><span class="pl-s1">waitingMask</span><span class="pl-s">"]"</span>
<span class="pl-c1">-</span> <span class="pl-s1">selector</span> <span class="pl-s1">resolved</span> <span class="pl-s1">to</span> <span class="pl-c1">0</span> <span class="pl-s1">elements</span>
<span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">22</span> <span class="pl-c1">07</span>:<span class="pl-c1">07</span>:<span class="pl-c1">07.527</span> <span class="pl-c1">ERROR</span> <span class="pl-kos">[</span><span class="pl-s1">myLogger</span> <span class="pl-v">Common</span>\B<span class="pl-s1">asePage</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">99</span> <span class="pl-v">UnifyLoginPage</span><span class="pl-kos">.</span><span class="pl-c1">waitUntilWaitingMaskInvisible</span><span class="pl-kos">]</span><span class="pl-kos"></span> Error: <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">received</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveCount</span><span class="pl-kos">(</span><span class="pl-s1">expected</span><span class="pl-kos">)</span> <span class="pl-c">// deep equality</span>
Expected: <span class="pl-c1">0</span>
Received: <span class="pl-c1">undefined</span>
Call <span class="pl-s1">log</span>:
<span class="pl-c1">-</span> <span class="pl-s1">waiting</span> <span class="pl-s1">for</span> <span class="pl-s1">selector</span> <span class="pl-s">"[class="</span><span class="pl-s1">waitingMask</span><span class="pl-s">"]"</span>
<span class="pl-c1">-</span> <span class="pl-s1">selector</span> <span class="pl-s1">resolved</span> <span class="pl-s1">to</span> <span class="pl-c1">0</span> <span class="pl-s1">elements</span>
<span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">22</span> <span class="pl-c1">07</span>:<span class="pl-c1">07</span>:<span class="pl-c1">07.530</span> <span class="pl-c1">INFO</span> <span class="pl-kos">[</span><span class="pl-s1">myLogger</span> <span class="pl-v">Common</span>\B<span class="pl-s1">asePage</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">62</span> <span class="pl-v">UnifyLoginPage</span><span class="pl-kos">.</span><span class="pl-c1">clickElement</span><span class="pl-kos">]</span> <span class="pl-v">Clicked</span> <span class="pl-v">Locator</span>@<span class="pl-kos">[</span><span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"__RIA_userName"</span><span class="pl-kos">]</span> <span class="pl-s1">successfully</span>
<span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">22</span> <span class="pl-c1">07</span>:<span class="pl-c1">07</span>:<span class="pl-c1">47.607</span> <span class="pl-c1">ERROR</span> <span class="pl-kos">[</span><span class="pl-s1">myLogger</span> <span class="pl-v">Common</span>\B<span class="pl-s1">asePage</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">99</span> <span class="pl-v">UnifyLoginPage</span><span class="pl-kos">.</span><span class="pl-c1">waitUntilWaitingMaskInvisible</span><span class="pl-kos">]</span><span class="pl-kos"></span> Error: <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">received</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveCount</span><span class="pl-kos">(</span><span class="pl-s1">expected</span><span class="pl-kos">)</span> <span class="pl-c">// deep equality</span>
Expected: <span class="pl-c1">0</span>
Received: <span class="pl-c1">undefined</span>
Call <span class="pl-s1">log</span>:
<span class="pl-c1">-</span> <span class="pl-s1">waiting</span> <span class="pl-s1">for</span> <span class="pl-s1">selector</span> <span class="pl-s">"[class="</span><span class="pl-s1">waitingMask</span><span class="pl-s">"]"</span>
<span class="pl-c1">-</span> <span class="pl-s1">selector</span> <span class="pl-s1">resolved</span> <span class="pl-s1">to</span> <span class="pl-c1">0</span> <span class="pl-s1">elements</span>
<span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">22</span> <span class="pl-c1">07</span>:<span class="pl-c1">08</span>:<span class="pl-c1">27.677</span> <span class="pl-c1">ERROR</span> <span class="pl-kos">[</span><span class="pl-s1">myLogger</span> <span class="pl-v">Common</span>\B<span class="pl-s1">asePage</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">99</span> <span class="pl-v">UnifyLoginPage</span><span class="pl-kos">.</span><span class="pl-c1">waitUntilWaitingMaskInvisible</span><span class="pl-kos">]</span><span class="pl-kos"></span> Error: <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">received</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveCount</span><span class="pl-kos">(</span><span class="pl-s1">expected</span><span class="pl-kos">)</span> <span class="pl-c">// deep equality</span>
Expected: <span class="pl-c1">0</span>
Received: <span class="pl-c1">undefined</span>
Call <span class="pl-s1">log</span>:
<span class="pl-c1">-</span> <span class="pl-s1">waiting</span> <span class="pl-s1">for</span> <span class="pl-s1">selector</span> <span class="pl-s">"[class="</span><span class="pl-s1">waitingMask</span><span class="pl-s">"]"</span>
<span class="pl-c1">-</span> <span class="pl-s1">selector</span> <span class="pl-s1">resolved</span> <span class="pl-s1">to</span> <span class="pl-c1">0</span> <span class="pl-s1">elements</span>
<span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">22</span> <span class="pl-c1">07</span>:<span class="pl-c1">09</span>:<span class="pl-c1">07.761</span> <span class="pl-c1">ERROR</span> <span class="pl-kos">[</span><span class="pl-s1">myLogger</span> <span class="pl-v">Common</span>\B<span class="pl-s1">asePage</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">99</span> <span class="pl-v">UnifyLoginPage</span><span class="pl-kos">.</span><span class="pl-c1">waitUntilWaitingMaskInvisible</span><span class="pl-kos">]</span><span class="pl-kos"></span> Error: <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">received</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveCount</span><span class="pl-kos">(</span><span class="pl-s1">expected</span><span class="pl-kos">)</span> <span class="pl-c">// deep equality</span>
Expected: <span class="pl-c1">0</span>
Received: <span class="pl-c1">undefined</span>
Call <span class="pl-s1">log</span>:
<span class="pl-c1">-</span> <span class="pl-s1">waiting</span> <span class="pl-s1">for</span> <span class="pl-s1">selector</span> <span class="pl-s">"[class="</span><span class="pl-s1">waitingMask</span><span class="pl-s">"]"</span>
<span class="pl-c1">-</span> <span class="pl-s1">selector</span> <span class="pl-s1">resolved</span> <span class="pl-s1">to</span> <span class="pl-c1">0</span> <span class="pl-s1">elements</span>
<span class="pl-s1">x</span> <span class="pl-v">Tests</span>\U<span class="pl-s1">nify</span>\S<span class="pl-s1">ales</span>\S<span class="pl-s1">eatList</span>\V<span class="pl-s1">erifyApplyButtonDisablement</span><span class="pl-kos">.</span><span class="pl-c1">spec</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">44</span>:<span class="pl-c1">5</span> <span class="pl-s1">›</span> <span class="pl-v">Seat</span> <span class="pl-v">List</span> <span class="pl-v">Tests</span> @<span class="pl-s1">run</span> <span class="pl-s1">›</span> <span class="pl-v">Validate</span> <span class="pl-s1">apply</span> <span class="pl-s1">button</span> <span class="pl-s1">is</span> <span class="pl-s1">disabled</span> <span class="pl-s1">when</span> <span class="pl-s">'change'</span> <span class="pl-s1">and</span> <span class="pl-s">'to'</span> <span class="pl-s1">are</span> <span class="pl-en">empty</span> <span class="pl-kos">(</span><span class="pl-c1">4</span><span class="pl-s1">m</span><span class="pl-kos">)</span>
<span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">22</span> <span class="pl-c1">07</span>:<span class="pl-c1">09</span>:<span class="pl-c1">09.554</span> <span class="pl-c1">ERROR</span> <span class="pl-kos">[</span><span class="pl-s1">myLogger</span> <span class="pl-v">Common</span>\B<span class="pl-s1">asePage</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">99</span> <span class="pl-v">UnifyLoginPage</span><span class="pl-kos">.</span><span class="pl-c1">waitUntilWaitingMaskInvisible</span><span class="pl-kos">]</span><span class="pl-kos"></span> Error: <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">received</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveCount</span><span class="pl-kos">(</span><span class="pl-s1">expected</span><span class="pl-kos">)</span> <span class="pl-c">// deep equality</span>
Expected: <span class="pl-c1">0</span>
Received: <span class="pl-c1">undefined</span>
Call <span class="pl-s1">log</span>:
<span class="pl-c1">-</span> <span class="pl-s1">waiting</span> <span class="pl-s1">for</span> <span class="pl-s1">selector</span> <span class="pl-s">"[class="</span><span class="pl-s1">waitingMask</span><span class="pl-s">"]"</span>
<span class="pl-c1">-</span> <span class="pl-s1">selector</span> <span class="pl-s1">resolved</span> <span class="pl-s1">to</span> <span class="pl-c1">0</span> <span class="pl-s1">elements</span>
<span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">22</span> <span class="pl-c1">07</span>:<span class="pl-c1">09</span>:<span class="pl-c1">09.572</span> <span class="pl-c1">ERROR</span> <span class="pl-kos">[</span><span class="pl-s1">myLogger</span> <span class="pl-v">Common</span>\B<span class="pl-s1">asePage</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">65</span> <span class="pl-v">UnifyLoginPage</span><span class="pl-kos">.</span><span class="pl-c1">clickElement</span><span class="pl-kos">]</span> <span class="pl-v">Click</span> <span class="pl-s1">on</span> <span class="pl-kos">.</span><span class="pl-c1">screenLogin</span><span class="pl-kos">.</span><span class="pl-c1">loginBtn</span> <span class="pl-s1">failed</span>
<span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">22</span> <span class="pl-c1">07</span>:<span class="pl-c1">09</span>:<span class="pl-c1">09.583</span> <span class="pl-c1">ERROR</span> <span class="pl-kos">[</span><span class="pl-s1">myLogger</span> <span class="pl-v">Common</span>\B<span class="pl-s1">asePage</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">65</span> <span class="pl-v">UnifyLoginPage</span><span class="pl-kos">.</span><span class="pl-c1">clickElement</span><span class="pl-kos">]</span> <span class="pl-v">Click</span> <span class="pl-s1">on</span> <span class="pl-kos">.</span><span class="pl-c1">screenLogin</span><span class="pl-kos">.</span><span class="pl-c1">loginBtn</span> <span class="pl-s1">failed</span>
<span class="pl-v">Finished</span> <span class="pl-s1">the</span> <span class="pl-s1">test</span> <span class="pl-v">Validate</span> <span class="pl-s1">apply</span> <span class="pl-s1">button</span> <span class="pl-s1">is</span> <span class="pl-s1">disabled</span> <span class="pl-s1">when</span> <span class="pl-s">'change'</span> <span class="pl-s1">and</span> <span class="pl-s">'to'</span> <span class="pl-s1">are</span> empty: <span class="pl-s1">failed</span>
Finished <span class="pl-s1">the</span> <span class="pl-s1">run</span>: <span class="pl-s1">failed</span>
<span class="pl-c1">1</span><span class="pl-kos">)</span> <span class="pl-v">Tests</span>\U<span class="pl-s1">nify</span>\S<span class="pl-s1">ales</span>\S<span class="pl-s1">eatList</span>\V<span class="pl-s1">erifyApplyButtonDisablement</span><span class="pl-kos">.</span><span class="pl-c1">spec</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">44</span>:<span class="pl-c1">5</span> <span class="pl-s1">›</span> <span class="pl-v">Seat</span> <span class="pl-v">List</span> <span class="pl-v">Tests</span> @<span class="pl-s1">run</span> <span class="pl-s1">›</span> <span class="pl-v">Validate</span> <span class="pl-s1">apply</span> <span class="pl-s1">button</span> <span class="pl-s1">is</span> <span class="pl-s1">disabled</span> <span class="pl-s1">when</span> <span class="pl-s">'change'</span> <span class="pl-s1">and</span> <span class="pl-s">'to'</span> <span class="pl-s1">are</span> <span class="pl-s1">empty</span>
Pending <span class="pl-s1">operations</span>:
<span class="pl-c1">-</span> <span class="pl-s1">expect</span><span class="pl-kos">.</span><span class="pl-c1">toHaveCount</span> <span class="pl-s1">at</span> <span class="pl-v">Common</span>\B<span class="pl-s1">asePage</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">76</span>:<span class="pl-c1">39</span>
<span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-c1">waitForSelector</span>: <span class="pl-v">Target</span> <span class="pl-s1">closed</span>
<span class="pl-c1">===</span><span class="pl-c1">=</span><span class="pl-c1">===</span><span class="pl-c1">=</span><span class="pl-c1">===</span><span class="pl-c1">=</span><span class="pl-c1">===</span><span class="pl-c1">=</span><span class="pl-c1">===</span><span class="pl-c1">=</span><span class="pl-c1">===</span><span class="pl-c1">=</span><span class="pl-c1">===</span> <span class="pl-s1">logs</span> <span class="pl-c1">===</span><span class="pl-c1">=</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">==</span>
<span class="pl-s1">waiting</span> <span class="pl-s1">for</span> <span class="pl-s1">selector</span> <span class="pl-s">"[data-uitestingname="</span><span class="pl-v">Home</span><span class="pl-s">"]"</span> <span class="pl-s1">to</span> <span class="pl-s1">be</span> <span class="pl-s1">visible</span>
<span class="pl-c1">===</span><span class="pl-c1">=</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">===</span><span class="pl-c1">==</span>
<span class="pl-c1">32</span> <span class="pl-c1">|</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">setViewportSize</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">width</span>: <span class="pl-c1">1400</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">900</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c1">33</span> <span class="pl-c1">|</span> <span class="pl-k">await</span> <span class="pl-s1">unifyLoginPage</span><span class="pl-kos">.</span><span class="pl-en">loginToUnify</span><span class="pl-kos">(</span><span class="pl-s">"sro"</span><span class="pl-kos">,</span> <span class="pl-s">"1"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c1">></span> <span class="pl-c1">34</span> <span class="pl-c1">|</span> <span class="pl-k">await</span> <span class="pl-s1">unifyBasePage</span><span class="pl-kos">.</span><span class="pl-en">validateLogin</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c1">|</span> <span class="pl-c1">^</span>
<span class="pl-c1">35</span> <span class="pl-c1">|</span> <span class="pl-k">await</span> <span class="pl-s1">unifyBasePage</span><span class="pl-kos">.</span><span class="pl-en">navigateToModule</span><span class="pl-kos">(</span><span class="pl-v">ModulesEnum</span><span class="pl-kos">.</span><span class="pl-c1">SALES</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c1">36</span> <span class="pl-c1">|</span> <span class="pl-k">await</span> <span class="pl-s1">salesPage</span><span class="pl-kos">.</span><span class="pl-en">selectCategory</span><span class="pl-kos">(</span><span class="pl-v">SalesLeftSideMenuEnum</span><span class="pl-kos">.</span><span class="pl-c1">SEAT_LIST</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c1">37</span> <span class="pl-c1">|</span>
<span class="pl-s1">at</span> <span class="pl-v">Validator</span><span class="pl-kos">.</span><span class="pl-en">validateElementVisible</span> <span class="pl-kos">(</span><span class="pl-v">D</span>:\p<span class="pl-s1">rojects</span>\s<span class="pl-s1">ro4</span>\u<span class="pl-s1">iAutomation</span>\P<span class="pl-s1">laywrightTest</span>\C<span class="pl-s1">ommon</span>\V<span class="pl-s1">alidator</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">17</span>:<span class="pl-c1">25</span><span class="pl-kos">)</span>
<span class="pl-s1">at</span><span class="pl-kos"></span> <span class="pl-v">UnifyBasePage</span><span class="pl-kos">.</span><span class="pl-en">validateLogin</span> <span class="pl-kos">(</span><span class="pl-v">D</span>:\p<span class="pl-s1">rojects</span>\s<span class="pl-s1">ro4</span>\u<span class="pl-s1">iAutomation</span>\P<span class="pl-s1">laywrightTest</span>\U<span class="pl-s1">nify</span>\P<span class="pl-s1">ages</span>\U<span class="pl-s1">nifyBasePage</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">35</span>:<span class="pl-c1">30</span><span class="pl-kos">)</span>
at <span class="pl-v">D</span>:\p<span class="pl-s1">rojects</span>\s<span class="pl-s1">ro4</span>\u<span class="pl-s1">iAutomation</span>\P<span class="pl-s1">laywrightTest</span>\T<span class="pl-s1">ests</span>\U<span class="pl-s1">nify</span>\S<span class="pl-s1">ales</span>\S<span class="pl-s1">eatList</span>\V<span class="pl-s1">erifyApplyButtonDisablement</span><span class="pl-kos">.</span><span class="pl-c1">spec</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">34</span>:<span class="pl-c1">29</span>
<span class="pl-s1">at</span><span class="pl-kos"></span> <span class="pl-v">WorkerRunner</span><span class="pl-kos">.</span><span class="pl-en">_runHooks</span> <span class="pl-kos">(</span><span class="pl-v">D</span>:\p<span class="pl-s1">rojects</span>\s<span class="pl-s1">ro4</span>\u<span class="pl-s1">iAutomation</span>\P<span class="pl-s1">laywrightTest</span>\n<span class="pl-s1">ode_modules</span>\@<span class="pl-s1">playwright</span>\t<span class="pl-s1">est</span>\l<span class="pl-s1">ib</span>\w<span class="pl-s1">orkerRunner</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">544</span>:<span class="pl-c1">9</span><span class="pl-kos">)</span>
<span class="pl-s1">at</span><span class="pl-kos"></span> <span class="pl-v">WorkerRunner</span><span class="pl-kos">.</span><span class="pl-en">_runBeforeHooks</span> <span class="pl-kos">(</span><span class="pl-v">D</span>:\p<span class="pl-s1">rojects</span>\s<span class="pl-s1">ro4</span>\u<span class="pl-s1">iAutomation</span>\P<span class="pl-s1">laywrightTest</span>\n<span class="pl-s1">ode_modules</span>\@<span class="pl-s1">playwright</span>\t<span class="pl-s1">est</span>\l<span class="pl-s1">ib</span>\w<span class="pl-s1">orkerRunner</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">450</span>:<span class="pl-c1">7</span><span class="pl-kos">)</span>
<span class="pl-s1">at</span><span class="pl-kos"></span> <span class="pl-v">WorkerRunner</span><span class="pl-kos">.</span><span class="pl-en">_runTestWithBeforeHooks</span> <span class="pl-kos">(</span><span class="pl-v">D</span>:\p<span class="pl-s1">rojects</span>\s<span class="pl-s1">ro4</span>\u<span class="pl-s1">iAutomation</span>\P<span class="pl-s1">laywrightTest</span>\n<span class="pl-s1">ode_modules</span>\@<span class="pl-s1">playwright</span>\t<span class="pl-s1">est</span>\l<span class="pl-s1">ib</span>\w<span class="pl-s1">orkerRunner</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">470</span>:<span class="pl-c1">32</span><span class="pl-kos">)</span>
attachment #<span class="pl-c1">1</span>: <span class="pl-en">video</span> <span class="pl-kos">(</span><span class="pl-s1">video</span><span class="pl-c1">/</span><span class="pl-s1">webm</span><span class="pl-kos">)</span> <span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span>
<span class="pl-s1">test</span><span class="pl-c1">-</span><span class="pl-s1">results</span>\T<span class="pl-s1">ests</span><span class="pl-c1">-</span><span class="pl-v">Unify</span><span class="pl-c1">-</span><span class="pl-v">Sales</span><span class="pl-c1">-</span><span class="pl-v">SeatList</span><span class="pl-c1">-</span><span class="pl-v">VerifyApplyButtonDisablement</span><span class="pl-c1">-</span><span class="pl-v">Seat</span><span class="pl-c1">-</span><span class="pl-v">List</span><span class="pl-c1">-</span><span class="pl-v">Tests</span><span class="pl-c1">-</span><span class="pl-s1">run</span><span class="pl-c1">-</span><span class="pl-v">Validate</span><span class="pl-c1">-</span><span class="pl-s1">apply</span><span class="pl-c1">-</span><span class="pl-s1">button</span><span class="pl-c1">-</span><span class="pl-s1">is</span><span class="pl-c1">-</span><span class="pl-s1">disabled</span><span class="pl-c1">-</span><span class="pl-s1">when</span><span class="pl-c1">-</span><span class="pl-s1">change</span><span class="pl-c1">-</span><span class="pl-s1">and</span><span class="pl-c1">-</span><span class="pl-s1">to</span><span class="pl-c1">-</span><span class="pl-s1">are</span><span class="pl-c1">-</span><span class="pl-s1">empty</span>\8<span class="pl-c1">106389</span><span class="pl-s1">fe1d8c874687d13264038</span>
<span class="pl-c1">2</span><span class="pl-s1">d50</span><span class="pl-kos">.</span><span class="pl-c1">webm</span>
<span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span>
<span class="pl-en">attachment</span> #<span class="pl-c1">2</span>: <span class="pl-s1">trace</span> <span class="pl-kos">(</span><span class="pl-s1">application</span><span class="pl-c1">/</span><span class="pl-s1">zip</span><span class="pl-kos">)</span> <span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">-</span>
<span class="pl-s1">test</span><span class="pl-c1">-</span><span class="pl-s1">results</span>\T<span class="pl-s1">ests</span><span class="pl-c1">-</span><span class="pl-v">Unify</span><span class="pl-c1">-</span><span class="pl-v">Sales</span><span class="pl-c1">-</span><span class="pl-v">SeatList</span><span class="pl-c1">-</span><span class="pl-v">VerifyApplyButtonDisablement</span><span class="pl-c1">-</span><span class="pl-v">Seat</span><span class="pl-c1">-</span><span class="pl-v">List</span><span class="pl-c1">-</span><span class="pl-v">Tests</span><span class="pl-c1">-</span><span class="pl-s1">run</span><span class="pl-c1">-</span><span class="pl-v">Validate</span><span class="pl-c1">-</span><span class="pl-s1">apply</span><span class="pl-c1">-</span><span class="pl-s1">button</span><span class="pl-c1">-</span><span class="pl-s1">is</span><span class="pl-c1">-</span><span class="pl-s1">disabled</span><span class="pl-c1">-</span><span class="pl-s1">when</span><span class="pl-c1">-</span><span class="pl-s1">change</span><span class="pl-c1">-</span><span class="pl-s1">and</span><span class="pl-c1">-</span><span class="pl-s1">to</span><span class="pl-c1">-</span><span class="pl-s1">are</span><span class="pl-c1">-</span><span class="pl-s1">empty</span>\t<span class="pl-s1">race</span><span class="pl-kos">.</span><span class="pl-c1">zip</span>
Usage:
<span class="pl-s1">npx</span> <span class="pl-s1">playwright</span> <span class="pl-s1">show</span><span class="pl-c1">-</span><span class="pl-s1">trace</span> <span class="pl-s1">test</span><span class="pl-c1">-</span><span class="pl-s1">results</span>\T<span class="pl-s1">ests</span><span class="pl-c1">-</span><span class="pl-v">Unify</span><span class="pl-c1">-</span><span class="pl-v">Sales</span><span class="pl-c1">-</span><span class="pl-v">SeatList</span><span class="pl-c1">-</span><span class="pl-v">VerifyApplyButtonDisablement</span><span class="pl-c1">-</span><span class="pl-v">Seat</span><span class="pl-c1">-</span><span class="pl-v">List</span><span class="pl-c1">-</span><span class="pl-v">Tests</span><span class="pl-c1">-</span><span class="pl-s1">run</span><span class="pl-c1">-</span><span class="pl-v">Validate</span><span class="pl-c1">-</span><span class="pl-s1">apply</span><span class="pl-c1">-</span><span class="pl-s1">button</span><span class="pl-c1">-</span><span class="pl-s1">is</span><span class="pl-c1">-</span><span class="pl-s1">disabled</span><span class="pl-c1">-</span><span class="pl-s1">when</span><span class="pl-c1">-</span><span class="pl-s1">change</span><span class="pl-c1">-</span><span class="pl-s1">and</span><span class="pl-c1">-</span><span class="pl-s1">to</span><span class="pl-c1">-</span><span class="pl-s1">are</span><span class="pl-c1">-</span><span class="pl-s1">empt</span>
<span class="pl-s1">y</span>\t<span class="pl-s1">race</span><span class="pl-kos">.</span><span class="pl-c1">zip</span>
<span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span>
<span class="pl-s1">attachment</span> #<span class="pl-c1">3</span>: <span class="pl-en">screenshot</span> <span class="pl-kos">(</span><span class="pl-s1">image</span><span class="pl-c1">/</span><span class="pl-s1">png</span><span class="pl-kos">)</span> <span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span>
<span class="pl-s1">test</span><span class="pl-c1">-</span><span class="pl-s1">results</span>\T<span class="pl-s1">ests</span><span class="pl-c1">-</span><span class="pl-v">Unify</span><span class="pl-c1">-</span><span class="pl-v">Sales</span><span class="pl-c1">-</span><span class="pl-v">SeatList</span><span class="pl-c1">-</span><span class="pl-v">VerifyApplyButtonDisablement</span><span class="pl-c1">-</span><span class="pl-v">Seat</span><span class="pl-c1">-</span><span class="pl-v">List</span><span class="pl-c1">-</span><span class="pl-v">Tests</span><span class="pl-c1">-</span><span class="pl-s1">run</span><span class="pl-c1">-</span><span class="pl-v">Validate</span><span class="pl-c1">-</span><span class="pl-s1">apply</span><span class="pl-c1">-</span><span class="pl-s1">button</span><span class="pl-c1">-</span><span class="pl-s1">is</span><span class="pl-c1">-</span><span class="pl-s1">disabled</span><span class="pl-c1">-</span><span class="pl-s1">when</span><span class="pl-c1">-</span><span class="pl-s1">change</span><span class="pl-c1">-</span><span class="pl-s1">and</span><span class="pl-c1">-</span><span class="pl-s1">to</span><span class="pl-c1">-</span><span class="pl-s1">are</span><span class="pl-c1">-</span><span class="pl-s1">empty</span>\t<span class="pl-s1">est</span><span class="pl-c1">-</span><span class="pl-s1">failed</span><span class="pl-c1">-</span><span class="pl-c1">1.</span><span class="pl-s1">png</span>
<span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span>
<span class="pl-c1">--</span><span class="pl-c1">-</span> <span class="pl-v">Test</span> <span class="pl-s1">output</span> <span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span>
<span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">22</span> <span class="pl-c1">07</span>:<span class="pl-c1">05</span>:<span class="pl-c1">47.343</span> <span class="pl-c1">ERROR</span> <span class="pl-kos">[</span><span class="pl-s1">myLogger</span> <span class="pl-v">Common</span>\B<span class="pl-s1">asePage</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">99</span> <span class="pl-v">UnifyLoginPage</span><span class="pl-kos">.</span><span class="pl-c1">waitUntilWaitingMaskInvisible</span><span class="pl-kos">]</span><span class="pl-kos"></span> Error: <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">received</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveCount</span><span class="pl-kos">(</span><span class="pl-s1">expected</span><span class="pl-kos">)</span> <span class="pl-c">// deep equality</span>
Expected: <span class="pl-c1">0</span>
Received: <span class="pl-c1">undefined</span>
Call <span class="pl-s1">log</span>:
<span class="pl-c1">-</span> <span class="pl-s1">waiting</span> <span class="pl-s1">for</span> <span class="pl-s1">selector</span> <span class="pl-s">"[class="</span><span class="pl-s1">waitingMask</span><span class="pl-s">"]"</span>
<span class="pl-c1">-</span> <span class="pl-s1">selector</span> <span class="pl-s1">resolved</span> <span class="pl-s1">to</span> <span class="pl-c1">0</span> <span class="pl-s1">elements</span>
<span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">22</span> <span class="pl-c1">07</span>:<span class="pl-c1">06</span>:<span class="pl-c1">27.409</span> <span class="pl-c1">ERROR</span> <span class="pl-kos">[</span><span class="pl-s1">myLogger</span> <span class="pl-v">Common</span>\B<span class="pl-s1">asePage</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">99</span> <span class="pl-v">UnifyLoginPage</span><span class="pl-kos">.</span><span class="pl-c1">waitUntilWaitingMaskInvisible</span><span class="pl-kos">]</span><span class="pl-kos"></span> Error: <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">received</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveCount</span><span class="pl-kos">(</span><span class="pl-s1">expected</span><span class="pl-kos">)</span> <span class="pl-c">// deep equality</span>
Expected: <span class="pl-c1">0</span>
Received: <span class="pl-c1">undefined</span>
Call <span class="pl-s1">log</span>:
<span class="pl-c1">-</span> <span class="pl-s1">waiting</span> <span class="pl-s1">for</span> <span class="pl-s1">selector</span> <span class="pl-s">"[class="</span><span class="pl-s1">waitingMask</span><span class="pl-s">"]"</span>
<span class="pl-c1">-</span> <span class="pl-s1">selector</span> <span class="pl-s1">resolved</span> <span class="pl-s1">to</span> <span class="pl-c1">0</span> <span class="pl-s1">elements</span>
<span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">22</span> <span class="pl-c1">07</span>:<span class="pl-c1">07</span>:<span class="pl-c1">07.527</span> <span class="pl-c1">ERROR</span> <span class="pl-kos">[</span><span class="pl-s1">myLogger</span> <span class="pl-v">Common</span>\B<span class="pl-s1">asePage</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">99</span> <span class="pl-v">UnifyLoginPage</span><span class="pl-kos">.</span><span class="pl-c1">waitUntilWaitingMaskInvisible</span><span class="pl-kos">]</span><span class="pl-kos"></span> Error: <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">received</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveCount</span><span class="pl-kos">(</span><span class="pl-s1">expected</span><span class="pl-kos">)</span> <span class="pl-c">// deep equality</span>
Expected: <span class="pl-c1">0</span>
Received: <span class="pl-c1">undefined</span>
Call <span class="pl-s1">log</span>:
<span class="pl-c1">-</span> <span class="pl-s1">waiting</span> <span class="pl-s1">for</span> <span class="pl-s1">selector</span> <span class="pl-s">"[class="</span><span class="pl-s1">waitingMask</span><span class="pl-s">"]"</span>
<span class="pl-c1">-</span> <span class="pl-s1">selector</span> <span class="pl-s1">resolved</span> <span class="pl-s1">to</span> <span class="pl-c1">0</span> <span class="pl-s1">elements</span>
<span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">22</span> <span class="pl-c1">07</span>:<span class="pl-c1">07</span>:<span class="pl-c1">07.530</span> <span class="pl-c1">INFO</span> <span class="pl-kos">[</span><span class="pl-s1">myLogger</span> <span class="pl-v">Common</span>\B<span class="pl-s1">asePage</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">62</span> <span class="pl-v">UnifyLoginPage</span><span class="pl-kos">.</span><span class="pl-c1">clickElement</span><span class="pl-kos">]</span> <span class="pl-v">Clicked</span> <span class="pl-v">Locator</span>@<span class="pl-kos">[</span><span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"__RIA_userName"</span><span class="pl-kos">]</span> <span class="pl-s1">successfully</span>
<span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">22</span> <span class="pl-c1">07</span>:<span class="pl-c1">07</span>:<span class="pl-c1">47.607</span> <span class="pl-c1">ERROR</span> <span class="pl-kos">[</span><span class="pl-s1">myLogger</span> <span class="pl-v">Common</span>\B<span class="pl-s1">asePage</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">99</span> <span class="pl-v">UnifyLoginPage</span><span class="pl-kos">.</span><span class="pl-c1">waitUntilWaitingMaskInvisible</span><span class="pl-kos">]</span><span class="pl-kos"></span> Error: <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">received</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveCount</span><span class="pl-kos">(</span><span class="pl-s1">expected</span><span class="pl-kos">)</span> <span class="pl-c">// deep equality</span>
Expected: <span class="pl-c1">0</span>
Received: <span class="pl-c1">undefined</span>
Call <span class="pl-s1">log</span>:
<span class="pl-c1">-</span> <span class="pl-s1">waiting</span> <span class="pl-s1">for</span> <span class="pl-s1">selector</span> <span class="pl-s">"[class="</span><span class="pl-s1">waitingMask</span><span class="pl-s">"]"</span>
<span class="pl-c1">-</span> <span class="pl-s1">selector</span> <span class="pl-s1">resolved</span> <span class="pl-s1">to</span> <span class="pl-c1">0</span> <span class="pl-s1">elements</span>
<span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">22</span> <span class="pl-c1">07</span>:<span class="pl-c1">08</span>:<span class="pl-c1">27.677</span> <span class="pl-c1">ERROR</span> <span class="pl-kos">[</span><span class="pl-s1">myLogger</span> <span class="pl-v">Common</span>\B<span class="pl-s1">asePage</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">99</span> <span class="pl-v">UnifyLoginPage</span><span class="pl-kos">.</span><span class="pl-c1">waitUntilWaitingMaskInvisible</span><span class="pl-kos">]</span><span class="pl-kos"></span> Error: <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">received</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveCount</span><span class="pl-kos">(</span><span class="pl-s1">expected</span><span class="pl-kos">)</span> <span class="pl-c">// deep equality</span>
Expected: <span class="pl-c1">0</span>
Received: <span class="pl-c1">undefined</span>
Call <span class="pl-s1">log</span>:
<span class="pl-c1">-</span> <span class="pl-s1">waiting</span> <span class="pl-s1">for</span> <span class="pl-s1">selector</span> <span class="pl-s">"[class="</span><span class="pl-s1">waitingMask</span><span class="pl-s">"]"</span>
<span class="pl-c1">-</span> <span class="pl-s1">selector</span> <span class="pl-s1">resolved</span> <span class="pl-s1">to</span> <span class="pl-c1">0</span> <span class="pl-s1">elements</span>
<span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">22</span> <span class="pl-c1">07</span>:<span class="pl-c1">09</span>:<span class="pl-c1">07.761</span> <span class="pl-c1">ERROR</span> <span class="pl-kos">[</span><span class="pl-s1">myLogger</span> <span class="pl-v">Common</span>\B<span class="pl-s1">asePage</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">99</span> <span class="pl-v">UnifyLoginPage</span><span class="pl-kos">.</span><span class="pl-c1">waitUntilWaitingMaskInvisible</span><span class="pl-kos">]</span><span class="pl-kos"></span> Error: <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">received</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveCount</span><span class="pl-kos">(</span><span class="pl-s1">expected</span><span class="pl-kos">)</span> <span class="pl-c">// deep equality</span>
Expected: <span class="pl-c1">0</span>
Received: <span class="pl-c1">undefined</span>
Call <span class="pl-s1">log</span>:
<span class="pl-c1">-</span> <span class="pl-s1">waiting</span> <span class="pl-s1">for</span> <span class="pl-s1">selector</span> <span class="pl-s">"[class="</span><span class="pl-s1">waitingMask</span><span class="pl-s">"]"</span>
<span class="pl-c1">-</span> <span class="pl-s1">selector</span> <span class="pl-s1">resolved</span> <span class="pl-s1">to</span> <span class="pl-c1">0</span> <span class="pl-s1">elements</span>
<span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">22</span> <span class="pl-c1">07</span>:<span class="pl-c1">09</span>:<span class="pl-c1">07.764</span> <span class="pl-c1">INFO</span> <span class="pl-kos">[</span><span class="pl-s1">myLogger</span> <span class="pl-v">Common</span>\B<span class="pl-s1">asePage</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">62</span> <span class="pl-v">UnifyLoginPage</span><span class="pl-kos">.</span><span class="pl-c1">clickElement</span><span class="pl-kos">]</span> <span class="pl-v">Clicked</span> <span class="pl-v">Locator</span>@<span class="pl-kos">[</span><span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"__RIA_password"</span><span class="pl-kos">]</span> <span class="pl-s1">successfully</span>
<span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">22</span> <span class="pl-c1">07</span>:<span class="pl-c1">09</span>:<span class="pl-c1">09.554</span> <span class="pl-c1">ERROR</span> <span class="pl-kos">[</span><span class="pl-s1">myLogger</span> <span class="pl-v">Common</span>\B<span class="pl-s1">asePage</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">99</span> <span class="pl-v">UnifyLoginPage</span><span class="pl-kos">.</span><span class="pl-c1">waitUntilWaitingMaskInvisible</span><span class="pl-kos">]</span><span class="pl-kos"></span> Error: <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">received</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveCount</span><span class="pl-kos">(</span><span class="pl-s1">expected</span><span class="pl-kos">)</span> <span class="pl-c">// deep equality</span>
Expected: <span class="pl-c1">0</span>
Received: <span class="pl-c1">undefined</span>
Call <span class="pl-s1">log</span>:
<span class="pl-c1">-</span> <span class="pl-s1">waiting</span> <span class="pl-s1">for</span> <span class="pl-s1">selector</span> <span class="pl-s">"[class="</span><span class="pl-s1">waitingMask</span><span class="pl-s">"]"</span>
<span class="pl-c1">-</span> <span class="pl-s1">selector</span> <span class="pl-s1">resolved</span> <span class="pl-s1">to</span> <span class="pl-c1">0</span> <span class="pl-s1">elements</span>
<span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">22</span> <span class="pl-c1">07</span>:<span class="pl-c1">09</span>:<span class="pl-c1">09.572</span> <span class="pl-c1">ERROR</span> <span class="pl-kos">[</span><span class="pl-s1">myLogger</span> <span class="pl-v">Common</span>\B<span class="pl-s1">asePage</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">65</span> <span class="pl-v">UnifyLoginPage</span><span class="pl-kos">.</span><span class="pl-c1">clickElement</span><span class="pl-kos">]</span> <span class="pl-v">Click</span> <span class="pl-s1">on</span> <span class="pl-kos">.</span><span class="pl-c1">screenLogin</span><span class="pl-kos">.</span><span class="pl-c1">loginBtn</span> <span class="pl-s1">failed</span>
<span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">22</span> <span class="pl-c1">07</span>:<span class="pl-c1">09</span>:<span class="pl-c1">09.583</span> <span class="pl-c1">ERROR</span> <span class="pl-kos">[</span><span class="pl-s1">myLogger</span> <span class="pl-v">Common</span>\B<span class="pl-s1">asePage</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">65</span> <span class="pl-v">UnifyLoginPage</span><span class="pl-kos">.</span><span class="pl-c1">clickElement</span><span class="pl-kos">]</span> <span class="pl-v">Click</span> <span class="pl-s1">on</span> <span class="pl-kos">.</span><span class="pl-c1">screenLogin</span><span class="pl-kos">.</span><span class="pl-c1">loginBtn</span> <span class="pl-s1">failed</span>
<span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span><span class="pl-c1">--</span>
<span class="pl-v">Slow</span> <span class="pl-s1">test</span>: <span class="pl-v">Tests</span>\U<span class="pl-s1">nify</span>\S<span class="pl-s1">ales</span>\S<span class="pl-s1">eatList</span>\V<span class="pl-s1">erifyApplyButtonDisablement</span><span class="pl-kos">.</span><span class="pl-c1">spec</span><span class="pl-kos">.</span><span class="pl-en">ts</span> <span class="pl-kos">(</span><span class="pl-c1">4</span><span class="pl-s1">m</span><span class="pl-kos">)</span>
<span class="pl-c1">1</span><span class="pl-kos"></span> <span class="pl-s1">failed</span>
<span class="pl-v">Tests</span>\U<span class="pl-s1">nify</span>\S<span class="pl-s1">ales</span>\S<span class="pl-s1">eatList</span>\V<span class="pl-s1">erifyApplyButtonDisablement</span><span class="pl-kos">.</span><span class="pl-c1">spec</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>:<span class="pl-c1">44</span>:<span class="pl-c1">5</span> <span class="pl-s1">›</span> <span class="pl-v">Seat</span> <span class="pl-v">List</span> <span class="pl-v">Tests</span> @<span class="pl-s1">run</span> <span class="pl-s1">›</span> <span class="pl-v">Validate</span> <span class="pl-s1">apply</span> <span class="pl-s1">button</span> <span class="pl-s1">is</span> <span class="pl-s1">disabled</span> <span class="pl-s1">when</span> <span class="pl-s">'change'</span> <span class="pl-s1">and</span> <span class="pl-s">'to'</span> <span class="pl-s1">are</span> <span class="pl-s1">empty</span>
</pre></div>
<p dir="auto"><strong>Describe the bug</strong></p>
<p dir="auto">As can be seen from the output of the IDE - even though the assertion of the toHaveCount(0) failed - the test continued and failed after several assertions because the element of the next step was not found. The expected behavior of the assertion is to stop the test in case the assertion was not resolved successfully, isn't it?</p> | <p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>GOOD Playwright Version: 1.15</li>
<li>BAD Playwright Version: 1.16</li>
</ul>
<p dir="auto"><strong>Code Snippet</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { test, expect } from '@playwright/test';
test('should display zero initial items', async ({ page }) => {
await page.goto('https://todomvc.com/examples/vanilla-es6/');
await expect(page.locator('.todo-list li')).toHaveCount(0);
});
"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">test</span><span class="pl-kos">,</span> <span class="pl-s1">expect</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span>
<span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'should display zero initial items'</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">goto</span><span class="pl-kos">(</span><span class="pl-s">'https://todomvc.com/examples/vanilla-es6/'</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">locator</span><span class="pl-kos">(</span><span class="pl-s">'.todo-list li'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveCount</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Describe the bug</strong></p>
<p dir="auto">Expected: Was passing<br>
Actual: Not passing anymore</p>
<p dir="auto">Getting:</p>
<div class="highlight highlight-text-adblock notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
Error: expect(received).toHaveCount(expected) // deep equality
Expected: 0
Received: undefined
Call log:
- waiting for selector ".todo-list li"
- selector resolved to 0 elements
3 | test('should display zero initial items', async ({ page }) => {
4 | await page.goto('https://todomvc.com/examples/vanilla-es6/');
> 5 | await expect(page.locator('.todo-list li')).toHaveCount(0);
| ^
6 | });"><pre class="notranslate"> Error: expect(received).toHaveCount(expected) // deep equality
Expected: 0
Received: undefined
Call log:
- waiting for selector ".todo-list li"
- selector resolved to 0 elements
3 | test('should display zero initial items', async ({ page }) => {
4 | await page.goto('https://todomvc.com/examples/vanilla-es6/');
> 5 | await expect(page.locator('.todo-list li')).toHaveCount(0);
| <span class="pl-k">^</span>
6 | });</pre></div> | 1 |
<p dir="auto"><strong>Elasticsearch version</strong>: 2.3.2</p>
<p dir="auto"><strong>JVM version</strong>: openjdk-7-jre-headless:amd64 7u101-2.6.6-1~deb8u1</p>
<p dir="auto"><strong>OS version</strong>: Debian 8 64bit</p>
<p dir="auto"><strong>Description of the problem including expected versus actual behaviour</strong>:<br>
The number of file descriptors set by the Debian systemd service file mismatches Elasticsearches' startup check triggering a WARNing.</p>
<p dir="auto"><strong>Steps to reproduce</strong>:</p>
<ol dir="auto">
<li>Install elasticsearch package on Debian 8</li>
<li>Start elasticsearch</li>
<li>Watch the elasticsearch logfile</li>
</ol>
<p dir="auto"><strong>Provide logs (if relevant)</strong>:<br>
[2016-04-28 13:03:53,452][WARN ][env ] [node-1] max file descriptors [65535] for elasticsearch process likely too low, consider increasing to at least [65536]</p> | <p dir="auto">Using a dateHistogram query with <code class="notranslate">pre_zone</code> adjustment together with <code class="notranslate">pre_zone_adjust_large_interval = true</code> and <code class="notranslate">min_doc_count = 0</code> leads to an infinite loop and consequently OutOfMemory error.</p>
<p dir="auto">We have observed this in v1.0.2 and verified that the same issue is still in v1.3.1.</p>
<p dir="auto">To verify this, we used the <code class="notranslate">DateHistogramTests</code> test case <code class="notranslate">singleValue_WithPreZone_WithAadjustLargeInterval</code> and added the line <code class="notranslate">.minDocCount(0L)</code> to the <code class="notranslate">dateHistogram</code> builder.</p>
<p dir="auto">The issue seems to be in <code class="notranslate">InternalHistogram.reduce(ReduceContext)</code> in the <code class="notranslate">if (minDocCount == 0) {</code> branch. For the previous test case, the line <code class="notranslate">while (key != nextBucket.key) {</code> loops endlessly because the zone adjustments seem not to be taken into account.</p>
<p dir="auto">We have seen similar things with post_zone (unfortunately, I could not reproduce it with a test case).</p> | 0 |
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>Load the model in the asset folder from here: <a href="http://download.tensorflow.org/models/image/imagenet/inception-2015-12-05.tgz" rel="nofollow">http://download.tensorflow.org/models/image/imagenet/inception-2015-12-05.tgz</a><br>
rather than here: <a href="https://storage.googleapis.com/download.tensorflow.org/models/inception5h.zip" rel="nofollow">https://storage.googleapis.com/download.tensorflow.org/models/inception5h.zip</a><br>
This step loads the model which is used in image_retrain, label_image and classify examples. The link for the model in the android demo is old and has some differences that don't work with the other demos as mentioned in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135792082" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/1253" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/1253/hovercard" href="https://github.com/tensorflow/tensorflow/issues/1253">#1253</a></li>
<li>Change the input_width and input_mean in TensorflowImageListener.java</li>
<li>Change the input tensor name and output tensor name as follows in the tensorflow_jni.cc</li>
</ol>
<h3 dir="auto">What have you tried?</h3>
<ol dir="auto">
<li>I changed the input_width from 224 to 299 and input_mean from 117 to 128.</li>
<li>When the input tensor name was <strong>input:0</strong> and output tensor name was <strong>output:0</strong> I got the following node not found error</li>
</ol>
<p dir="auto"><code class="notranslate">02-23 23:56:11.066 15084-15105/org.tensorflow.demo I/native: tensorflow/examples/android/jni/tensorflow_jni.cc:271 Width: 299 02-23 23:56:11.066 15084-15105/org.tensorflow.demo I/native: tensorflow/examples/android/jni/tensorflow_jni.cc:272 Stride: 1196 02-23 23:56:11.066 15084-15105/org.tensorflow.demo I/native: tensorflow/examples/android/jni/tensorflow_jni.cc:176 Tensorflow: Copying Data. 02-23 23:56:11.070 15084-15105/org.tensorflow.demo I/native: tensorflow/examples/android/jni/tensorflow_jni.cc:194 Start computing. 02-23 23:56:11.157 15084-15105/org.tensorflow.demo I/native: tensorflow/examples/android/jni/tensorflow_jni.cc:205 End computing. Ran in 86ms (91ms avg over 7 runs) 02-23 23:56:11.157 15084-15105/org.tensorflow.demo E/native: tensorflow/examples/android/jni/tensorflow_jni.cc:210 Error during inference: Not found: FetchOutputs node output:0: not found</code></p>
<ol dir="auto">
<li>When the input tensor name was <strong>Mul:0</strong> and output tensor name was <strong>softmax:0</strong> I got the following error</li>
</ol>
<p dir="auto"><code class="notranslate">02-24 00:07:46.149 23093-23123/org.tensorflow.demo I/native: tensorflow/examples/android/jni/tensorflow_jni.cc:270 Height: 299 02-24 00:07:46.149 23093-23123/org.tensorflow.demo I/native: tensorflow/examples/android/jni/tensorflow_jni.cc:271 Width: 299 02-24 00:07:46.149 23093-23123/org.tensorflow.demo I/native: tensorflow/examples/android/jni/tensorflow_jni.cc:272 Stride: 1196 02-24 00:07:46.149 23093-23123/org.tensorflow.demo I/native: tensorflow/examples/android/jni/tensorflow_jni.cc:176 Tensorflow: Copying Data. 02-24 00:07:46.152 23093-23123/org.tensorflow.demo I/native: tensorflow/examples/android/jni/tensorflow_jni.cc:194 Start computing. 02-24 00:07:46.222 23093-23123/org.tensorflow.demo I/native: tensorflow/examples/android/jni/tensorflow_jni.cc:205 End computing. Ran in 70ms (77ms avg over 35 runs) 02-24 00:07:46.222 23093-23123/org.tensorflow.demo E/native: tensorflow/examples/android/jni/tensorflow_jni.cc:210 Error during inference: Invalid argument: No OpKernel was registered to support Op 'BatchNormWithGlobalNormalization' with these attrs [[Node: conv/batchnorm = BatchNormWithGlobalNormalization[T=DT_FLOAT, scale_after_normalization=false, variance_epsilon=0.001](conv/Conv2D, conv/batchnorm/moving_mean, conv/batchnorm/moving_variance, conv/batchnorm/beta, conv/batchnorm/gamma)]] </code></p>
<p dir="auto">That's good news that the android demo code is finding the nodes in the new model after the changes. However, I have no idea what this error means. I would really appreciate if someone can explain. (Although this issue is being taken care of in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135792082" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/1253" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/1253/hovercard" href="https://github.com/tensorflow/tensorflow/issues/1253">#1253</a>, I am still doing it myself in an attempt to learn more about tensorflow)<br>
<code class="notranslate">No OpKernel was registered to support Op 'BatchNormWithGlobalNormalization' with these attrs [[Node: conv/batchnorm = BatchNormWithGlobalNormalization[T=DT_FLOAT, scale_after_normalization=false, variance_epsilon=0.001](conv/Conv2D, conv/batchnorm/moving_mean, conv/batchnorm/moving_variance, conv/batchnorm/beta, conv/batchnorm/gamma)]]</code></p>
<p dir="auto">Looking at the main.cc in the label_image example, I see something about "normalized" in the ReadTensorFromImage function. Don't know if that's helpful information.</p> | <p dir="auto">I could not find the documentation for tensorflow::ops::Const starting from the C++ API documentation. I figured out it is declared in ops/const_op.h, but there is no link from the main C++ docs:<br>
<a href="https://www.tensorflow.org/api_docs/cc/" rel="nofollow">https://www.tensorflow.org/api_docs/cc/</a></p>
<p dir="auto">A search returns this, but it looks orphaned:<br>
<a href="https://www.tensorflow.org/api_docs/cc/group/const-op" rel="nofollow">https://www.tensorflow.org/api_docs/cc/group/const-op</a></p>
<p dir="auto">So I guess there is something wrong in the docs.</p> | 0 |
<p dir="auto">Hi all, am seeing this with <code class="notranslate">1.14.5</code>, will try to investigate but hoped for some pointers. NOTE :: This could be down to some of the local patches we apply. I will try to remove those next and close if that fixes this!</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="======================================================================
FAIL: numpy.core.tests.test_arrayprint.TestComplexArray.test_str
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_arrayprint.py", line 201, in test_str
assert_equal(res, val)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '[0.0.j]'
DESIRED: '[0.+0.j]'
======================================================================
FAIL: Check formatting.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 24, in check_float_type
err_msg='Failed str formatting for type %s' % tp)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal: Failed str formatting for type <type 'numpy.float128'>
ACTUAL: '0.'
DESIRED: '0.0'
======================================================================
FAIL: Check formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 64, in check_complex_type
err_msg='Failed str formatting for type %s' % tp)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal: Failed str formatting for type <type 'numpy.complex256'>
ACTUAL: '0.j'
DESIRED: '0j'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '(nan0.j)'
DESIRED: '(nan+0j)'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '(nan1.j)'
DESIRED: '(nan+1j)'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '(1.-infj)'
DESIRED: '(1-infj)'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '(nan0.j)'
DESIRED: '(nan+0j)'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '(1.+nanj)'
DESIRED: '(1+nanj)'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '(-inf0.j)'
DESIRED: '(-inf+0j)'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '(1.+infj)'
DESIRED: '(1+infj)'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '(inf0.j)'
DESIRED: '(inf+0j)'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '(inf1.j)'
DESIRED: '(inf+1j)'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '(nan1.j)'
DESIRED: '(nan+1j)'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '(1.+nanj)'
DESIRED: '(1+nanj)'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '(-inf1.j)'
DESIRED: '(-inf+1j)'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '-nanj'
DESIRED: 'nanj'
======================================================================
FAIL: Check formatting when using print
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 137, in check_float_type_print
_test_redirected_print(float(x), tp)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 133, in _test_redirected_print
err_msg='print failed for type%s' % tp)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal: print failed for type<type 'numpy.float128'>
ACTUAL: '0.0\n'
DESIRED: '0.\n'
======================================================================
FAIL: Check formatting when using print
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 152, in check_complex_type_print
_test_redirected_print(complex(x), tp)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 133, in _test_redirected_print
err_msg='print failed for type%s' % tp)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal: print failed for type<type 'numpy.complex256'>
ACTUAL: '0j\n'
DESIRED: '0.j\n'
======================================================================
FAIL: numpy.core.tests.test_print.test_locale_longdouble
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 228, in wrapper
return func(*args, **kwargs)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 243, in test_locale_longdouble
assert_equal(str(np.longdouble('1.2')), str(float(1.2)))
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '1,2'
DESIRED: '1.2'
======================================================================
FAIL: numpy.core.tests.test_scalarprint.TestRealScalars.test_dragon4_interface
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_scalarprint.py", line 218, in test_dragon4_interface
assert_equal(fpos(tp('1.0'), pad_left=4, pad_right=4), " 1. ")
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '1.'
DESIRED: ' 1. '
======================================================================
FAIL: numpy.core.tests.test_scalarprint.TestRealScalars.test_str
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_scalarprint.py", line 30, in test_str
assert_equal(str(styp(val)), want, err_msg=msg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal: for str(float128(0.0))
ACTUAL: '0.'
DESIRED: '0.0'
======================================================================
FAIL: numpy.core.tests.test_umath.TestComplexFunctions.test_loss_of_precision_longcomplex
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/decorators.py", line 217, in knownfailer
return f(*args, **kwargs)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_umath.py", line 2398, in test_loss_of_precision_longcomplex
self.check_loss_of_precision(np.longcomplex)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_umath.py", line 2349, in check_loss_of_precision
check(x_series, 50*eps)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_umath.py", line 2322, in check
'arcsinh'))
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 93, in assert_
raise AssertionError(smsg)
AssertionError: (131, 1.549874e-09, 4.003517e-19, 'arcsinh')
----------------------------------------------------------------------"><pre class="notranslate"><code class="notranslate">======================================================================
FAIL: numpy.core.tests.test_arrayprint.TestComplexArray.test_str
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_arrayprint.py", line 201, in test_str
assert_equal(res, val)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '[0.0.j]'
DESIRED: '[0.+0.j]'
======================================================================
FAIL: Check formatting.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 24, in check_float_type
err_msg='Failed str formatting for type %s' % tp)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal: Failed str formatting for type <type 'numpy.float128'>
ACTUAL: '0.'
DESIRED: '0.0'
======================================================================
FAIL: Check formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 64, in check_complex_type
err_msg='Failed str formatting for type %s' % tp)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal: Failed str formatting for type <type 'numpy.complex256'>
ACTUAL: '0.j'
DESIRED: '0j'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '(nan0.j)'
DESIRED: '(nan+0j)'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '(nan1.j)'
DESIRED: '(nan+1j)'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '(1.-infj)'
DESIRED: '(1-infj)'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '(nan0.j)'
DESIRED: '(nan+0j)'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '(1.+nanj)'
DESIRED: '(1+nanj)'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '(-inf0.j)'
DESIRED: '(-inf+0j)'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '(1.+infj)'
DESIRED: '(1+infj)'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '(inf0.j)'
DESIRED: '(inf+0j)'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '(inf1.j)'
DESIRED: '(inf+1j)'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '(nan1.j)'
DESIRED: '(nan+1j)'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '(1.+nanj)'
DESIRED: '(1+nanj)'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '(-inf1.j)'
DESIRED: '(-inf+1j)'
======================================================================
FAIL: Check inf/nan formatting of complex types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 114, in _check_complex_inf_nan
assert_equal(str(dtype(c)), s)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '-nanj'
DESIRED: 'nanj'
======================================================================
FAIL: Check formatting when using print
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 137, in check_float_type_print
_test_redirected_print(float(x), tp)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 133, in _test_redirected_print
err_msg='print failed for type%s' % tp)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal: print failed for type<type 'numpy.float128'>
ACTUAL: '0.0\n'
DESIRED: '0.\n'
======================================================================
FAIL: Check formatting when using print
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 152, in check_complex_type_print
_test_redirected_print(complex(x), tp)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 133, in _test_redirected_print
err_msg='print failed for type%s' % tp)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal: print failed for type<type 'numpy.complex256'>
ACTUAL: '0j\n'
DESIRED: '0.j\n'
======================================================================
FAIL: numpy.core.tests.test_print.test_locale_longdouble
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 228, in wrapper
return func(*args, **kwargs)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_print.py", line 243, in test_locale_longdouble
assert_equal(str(np.longdouble('1.2')), str(float(1.2)))
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '1,2'
DESIRED: '1.2'
======================================================================
FAIL: numpy.core.tests.test_scalarprint.TestRealScalars.test_dragon4_interface
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_scalarprint.py", line 218, in test_dragon4_interface
assert_equal(fpos(tp('1.0'), pad_left=4, pad_right=4), " 1. ")
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '1.'
DESIRED: ' 1. '
======================================================================
FAIL: numpy.core.tests.test_scalarprint.TestRealScalars.test_str
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_scalarprint.py", line 30, in test_str
assert_equal(str(styp(val)), want, err_msg=msg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 411, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal: for str(float128(0.0))
ACTUAL: '0.'
DESIRED: '0.0'
======================================================================
FAIL: numpy.core.tests.test_umath.TestComplexFunctions.test_loss_of_precision_longcomplex
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/decorators.py", line 217, in knownfailer
return f(*args, **kwargs)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_umath.py", line 2398, in test_loss_of_precision_longcomplex
self.check_loss_of_precision(np.longcomplex)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_umath.py", line 2349, in check_loss_of_precision
check(x_series, 50*eps)
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/core/tests/test_umath.py", line 2322, in check
'arcsinh'))
File "/opt/conda/conda-bld/numpy_and_dev_1530448912024/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/python2.7/site-packages/numpy/testing/nose_tools/utils.py", line 93, in assert_
raise AssertionError(smsg)
AssertionError: (131, 1.549874e-09, 4.003517e-19, 'arcsinh')
----------------------------------------------------------------------
</code></pre></div> | <p dir="auto">Reminder/issue to keep track of the fact that we need to fix the float128 dragon4 code for IBM's "double-double" float format on ppc.</p>
<p dir="auto">I'm working on it, should be done soon.</p> | 1 |
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2>
<p dir="auto">Build 1.0 from source (tried today) has failed on CPU-only macOS. Looks like a linker error, but perhaps something else. Please help!</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<p dir="auto">Three commands on command line.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="git clone --recursive https://github.com/pytorch/pytorch
cd pytorch
NO_CUDA=1 USE_CUDA=0 CC=clang CXX=clang++ python3 setup.py install"><pre class="notranslate"><code class="notranslate">git clone --recursive https://github.com/pytorch/pytorch
cd pytorch
NO_CUDA=1 USE_CUDA=0 CC=clang CXX=clang++ python3 setup.py install
</code></pre></div>
<p dir="auto"><strong>Stack trace for build (output in full below in <a href="#additional-context">Additional context</a></strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[snipped]
[ 40%] Built target onnx
[ 40%] Linking CXX shared library ../lib/libcaffe2.dylib
ld: warning: directory not found for option '-L/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/lib'
duplicate symbol __ZN2at6native13pixel_shuffleERKNS_6TensorEx in:
CMakeFiles/caffe2.dir/__/aten/src/ATen/native/PixelShuffle_2.cpp.o
CMakeFiles/caffe2.dir/__/aten/src/ATen/native/PixelShuffle.cpp.o
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libcaffe2.dylib] Error 1
make[1]: *** [caffe2/CMakeFiles/caffe2.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 40%] Built target python_copy_files
make: *** [all] Error 2
Failed to run 'bash ../tools/build_pytorch_libs.sh --use-nnpack caffe2 libshm THD'"><pre class="notranslate"><code class="notranslate">[snipped]
[ 40%] Built target onnx
[ 40%] Linking CXX shared library ../lib/libcaffe2.dylib
ld: warning: directory not found for option '-L/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/lib'
duplicate symbol __ZN2at6native13pixel_shuffleERKNS_6TensorEx in:
CMakeFiles/caffe2.dir/__/aten/src/ATen/native/PixelShuffle_2.cpp.o
CMakeFiles/caffe2.dir/__/aten/src/ATen/native/PixelShuffle.cpp.o
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libcaffe2.dylib] Error 1
make[1]: *** [caffe2/CMakeFiles/caffe2.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 40%] Built target python_copy_files
make: *** [all] Error 2
Failed to run 'bash ../tools/build_pytorch_libs.sh --use-nnpack caffe2 libshm THD'
</code></pre></div>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">PyTorch build from source such that we can <code class="notranslate">import torch</code>.</p>
<h2 dir="auto">Environment</h2>
<p dir="auto">Please copy and paste the output from our<br>
[environment collection script - does not run because torch is not installed]</p>
<ul dir="auto">
<li>PyTorch Version (e.g., 1.0): <strong>PyTorch source version (1.0 currently)</strong></li>
<li>OS (e.g., Linux): <strong>macOS High Sierra</strong></li>
<li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): <strong>source</strong></li>
<li>Build command you used (if compiling from source):</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="NO_CUDA=1 USE_CUDA=0 CC=clang CXX=clang++ python3 setup.py install"><pre class="notranslate"><code class="notranslate">NO_CUDA=1 USE_CUDA=0 CC=clang CXX=clang++ python3 setup.py install
</code></pre></div>
<ul dir="auto">
<li>Python version:</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 26 2018, 19:50:54)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin"><pre class="notranslate"><code class="notranslate">Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 26 2018, 19:50:54)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
</code></pre></div>
<ul dir="auto">
<li>CUDA/cuDNN version: <strong>N/A (not building with CUDA, or this is the goal as system is CPU-only)</strong></li>
<li>GPU models and configuration: <strong>N/A</strong></li>
<li>Any other relevant information: <strong>The system does have CUDA 10.0 and cuDNN 7.3.0, but this is not a target.</strong></li>
</ul>
<h2 dir="auto">Additional context</h2>
<p dir="auto">Entire output from build:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="umwhat:pytorch micheleenharris$ NO_CUDA=1 USE_CUDA=0 CC=clang CXX=clang++ python3 setup.py install
Building wheel torch-1.0.0a0+9c49bb9
running install
setup.py::run()
running build_deps
setup.py::build_deps::run()
+ SYNC_COMMAND=cp
++ command -v rsync
+ '[' -x /usr/bin/rsync ']'
+ SYNC_COMMAND='rsync -lptgoD'
+ USE_CUDA=0
+ USE_ROCM=0
+ USE_NNPACK=0
+ USE_MKLDNN=0
+ USE_GLOO_IBVERBS=0
+ CAFFE2_STATIC_LINK_CUDA=0
+ RERUN_CMAKE=1
+ [[ 4 -gt 0 ]]
+ case "$1" in
+ USE_NNPACK=1
+ shift
+ [[ 3 -gt 0 ]]
+ case "$1" in
+ break
+ CMAKE_INSTALL='make install'
+ BUILD_SHARED_LIBS=ON
+ USER_CFLAGS=
+ USER_LDFLAGS=
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
++ uname
+ '[' Darwin == Darwin ']'
+ '[' -d /usr/local/opt/ccache/libexec ']'
+++ dirname ../tools/build_pytorch_libs.sh
++ cd ../tools/..
+++ pwd
++ printf '%q\n' /Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch
+ BASE_DIR=/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch
+ TORCH_LIB_DIR=/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib
+ INSTALL_DIR=/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install
+ THIRD_PARTY_DIR=/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/third_party
+ CMAKE_VERSION=cmake
+ C_FLAGS=' -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/TH" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THC" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THS" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THCS" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THNN" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THCUNN"'
+ C_FLAGS=' -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/TH" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THC" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THS" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THCS" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THNN" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THCUNN" -DOMPI_SKIP_MPICXX=1'
+ LDFLAGS='-L"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/lib" '
+ LD_POSTFIX=.so
++ uname
+ [[ Darwin == \D\a\r\w\i\n ]]
+ LDFLAGS='-L"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/lib" -Wl,-rpath,@loader_path'
+ LD_POSTFIX=.dylib
+ CPP_FLAGS=' -std=c++11 '
+ GLOO_FLAGS='-DBUILD_TEST=OFF '
+ THD_FLAGS=
+ NCCL_ROOT_DIR=/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install
+ [[ 0 -eq 1 ]]
+ [[ 0 -eq 1 ]]
+ CWRAP_FILES='/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/ATen/Declarations.cwrap;/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/THNN/generic/THNN.h;/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/THCUNN/generic/THCUNN.h;/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/ATen/nn.yaml'
+ CUDA_NVCC_FLAGS=' -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/TH" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THC" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THS" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THCS" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THNN" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THCUNN" -DOMPI_SKIP_MPICXX=1'
+ [[ -z '' ]]
+ CUDA_DEVICE_DEBUG=0
+ '[' -z '' ']'
++ getconf _NPROCESSORS_ONLN
+ MAX_JOBS=8
+ BUILD_TYPE=Release
+ [[ -n '' ]]
+ [[ -n '' ]]
+ echo 'Building in Release mode'
Building in Release mode
+ mkdir -p /Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install
+ for arg in '"$@"'
+ [[ caffe2 == \n\c\c\l ]]
+ [[ caffe2 == \g\l\o\o ]]
+ [[ caffe2 == \c\a\f\f\e\2 ]]
+ build_caffe2
+ [[ -z '' ]]
+ EXTRA_CAFFE2_CMAKE_FLAGS=()
+ [[ -n '' ]]
+ [[ -n /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages ]]
+ EXTRA_CAFFE2_CMAKE_FLAGS+=("-DCMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH")
+ [[ 1 -eq 1 ]]
+ cmake /Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch -DCMAKE_INSTALL_MESSAGE=LAZY -DPYTHON_EXECUTABLE=/Library/Frameworks/Python.framework/Versions/3.6/bin/python3 -DBUILDING_WITH_TORCH_LIBS=ON -DTORCH_BUILD_VERSION=1.0.0a0+9c49bb9 -DCMAKE_BUILD_TYPE=Release -DBUILD_TORCH=ON -DBUILD_PYTHON=ON -DBUILD_SHARED_LIBS=ON -DBUILD_BINARY=OFF -DBUILD_TEST=ON -DINSTALL_TEST=ON -DBUILD_CAFFE2_OPS=ON -DONNX_NAMESPACE=onnx_torch -DUSE_CUDA=0 -DCAFFE2_STATIC_LINK_CUDA=0 -DUSE_ROCM=0 -DUSE_NNPACK=1 -DUSE_LEVELDB=OFF -DUSE_LMDB=OFF -DUSE_OPENCV=OFF -DUSE_GLOG=OFF -DUSE_GFLAGS=OFF -DUSE_SYSTEM_EIGEN_INSTALL=OFF -DCUDNN_INCLUDE_DIR= -DCUDNN_LIB_DIR=//Developer/NVIDIA/CUDA-10.0/lib -DCUDNN_LIBRARY= -DUSE_MKLDNN=0 -DMKLDNN_INCLUDE_DIR= -DMKLDNN_LIB_DIR= -DMKLDNN_LIBRARY= -DCMAKE_INSTALL_PREFIX=/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_C_FLAGS= -DCMAKE_CXX_FLAGS= '-DCMAKE_EXE_LINKER_FLAGS=-L"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/lib" -Wl,-rpath,@loader_path ' '-DCMAKE_SHARED_LINKER_FLAGS=-L"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/lib" -Wl,-rpath,@loader_path ' -DCMAKE_PREFIX_PATH=/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
-- CLANG_VERSION_STRING: 9.1
-- Need to define long as a separate typeid.
-- std::exception_ptr is supported.
-- NUMA is disabled
-- Turning off deprecation warning due to glog.
-- Current compiler supports avx2 extention. Will build perfkernels.
-- Building using own protobuf under third_party per request.
-- Use custom protobuf build.
-- Caffe2 protobuf include directory: $<BUILD_INTERFACE:/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/third_party/protobuf/src>$<INSTALL_INTERFACE:include>
-- The BLAS backend of choice:MKL
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - guide - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - guide - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - guide - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - guide - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl - guide - pthread - m]
-- Library mkl: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - guide - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - guide - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - guide - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - guide - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl - guide - pthread - m]
-- Library mkl: not found
CMake Warning at cmake/Dependencies.cmake:74 (message):
MKL could not be found. Defaulting to Eigen
Call Stack (most recent call first):
CMakeLists.txt:179 (include)
-- Brace yourself, we are building NNPACK
-- Found PythonInterp: /Library/Frameworks/Python.framework/Versions/3.6/bin/python3 (found version "3.6.6")
-- LLVM FileCheck Found: /usr/local/opt/llvm/bin/FileCheck
-- git Version: v1.4.0-505be96a
-- Version: 1.4.0
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES -- failed to compile
-- Performing Test HAVE_STD_REGEX -- success
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Using third party subdirectory Eigen.
Python 3.6.6
-- Setting Python's include dir to /Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m from distutils.sysconfig
-- Setting Python's library to /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
-- Found PythonInterp: /Library/Frameworks/Python.framework/Versions/3.6/bin/python3 (found suitable version "3.6.6", minimum required is "2.7")
-- NumPy ver. 1.15.2 found (include: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/core/include)
-- Could NOT find pybind11 (missing: pybind11_DIR)
-- Could NOT find pybind11 (missing: pybind11_INCLUDE_DIR)
-- Using third_party/pybind11.
--
-- ******** Summary ********
-- CMake version : 3.9.0-rc5
-- CMake command : /usr/local/bin/cmake
-- System : Darwin
-- C++ compiler : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- C++ compiler version : 9.1.0.9020039
-- CXX flags : -Wno-deprecated -fvisibility-inlines-hidden -Wno-deprecated-declarations
-- Build type : Release
-- Compile definitions :
-- CMAKE_PREFIX_PATH : /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
-- CMAKE_INSTALL_PREFIX : /Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install
-- CMAKE_MODULE_PATH : /Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/cmake/Modules
--
-- ONNX version : 1.3.0
-- ONNX NAMESPACE : onnx_torch
-- ONNX_BUILD_TESTS : OFF
-- ONNX_BUILD_BENCHMARKS : OFF
-- ONNX_USE_LITE_PROTO : OFF
-- ONNXIFI_DUMMY_BACKEND : OFF
--
-- Protobuf compiler :
-- Protobuf includes :
-- Protobuf libraries :
-- BUILD_ONNX_PYTHON : OFF
-- Could not find CUDA with FP16 support, compiling without torch.CudaHalfTensor
-- Removing -DNDEBUG from compile flags
-- MAGMA not found. Compiling without MAGMA support
-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this machine.
-- No OMAP4 processor on this machine.
-- SSE2 Found
-- SSE3 Found
-- AVX Found
-- AVX2 Found
-- Atomics: using GCC intrinsics
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - guide - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - guide - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - guide - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - guide - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl - guide - pthread - m]
-- Library mkl: not found
-- MKL library not found
-- Checking for [Accelerate]
-- Library Accelerate: /System/Library/Frameworks/Accelerate.framework
-- This BLAS uses the F2C return conventions
-- Found a library with BLAS API (accelerate).
-- Found a library with LAPACK API. (accelerate)
disabling CUDA because NOT USE_CUDA is set
-- CuDNN not found. Compiling without CuDNN support
disabling ROCM because NOT USE_ROCM is set
-- MIOpen not found. Compiling without MIOpen support
-- Could NOT find MKLDNN (missing: MKLDNN_INCLUDE_DIR MKLDNN_LIBRARY)
-- MKLDNN not found. Compiling without MKLDNN support
-- Using python found in /Library/Frameworks/Python.framework/Versions/3.6/bin/python3
disabling CUDA because USE_CUDA is set false
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) (found version "1.0")
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) (found version "1.0")
-- Configuring build for SLEEF-v3.2
Target system: Darwin-17.7.0
Target processor: x86_64
Host system: Darwin-17.7.0
Host processor: x86_64
Detected C compiler: AppleClang @ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Using option `-Wall -Wno-unused -Wno-attributes -Wno-unused-result -ffp-contract=off -fno-math-errno -fno-trapping-math` to compile libsleef
-- Building shared libs : OFF
-- MPFR : /usr/local/lib/libmpfr.dylib
-- MPFR header file in /usr/local/include
-- GMP : /usr/local/lib/libgmp.dylib
-- RUNNING_ON_TRAVIS : 0
-- COMPILER_SUPPORTS_OPENMP :
-- Using python found in /Library/Frameworks/Python.framework/Versions/3.6/bin/python3
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) (found version "1.0")
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) (found version "1.0")
-- NCCL operators skipped due to no CUDA support
-- Excluding ideep operators as we are not using ideep
-- Excluding image processing operators due to no opencv
-- Excluding video processing operators due to no opencv
-- Excluding mkl operators as we are not using mkl
-- MPI operators skipped due to no MPI support
-- Include Observer library
-- Using lib/python3.6/site-packages as python relative installation path
-- Automatically generating missing __init__.py files.
-- A previous caffe2 cmake run already created the __init__.py files.
CMake Warning at CMakeLists.txt:363 (message):
Generated cmake files are only fully tested if one builds with system glog,
gflags, and protobuf. Other settings may generate files that are not well
tested.
--
-- ******** Summary ********
-- General:
-- CMake version : 3.9.0-rc5
-- CMake command : /usr/local/bin/cmake
-- System : Darwin
-- C++ compiler : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- C++ compiler version : 9.1.0.9020039
-- BLAS : MKL
-- CXX flags : -msse4.2 --std=c++11 -Wno-deprecated -fvisibility-inlines-hidden -Wno-deprecated-declarations -O2 -fPIC -Wno-narrowing -Wall -Wextra -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -Wno-invalid-partial-specialization -Wno-typedef-redefinition -Wno-unknown-warning-option -Wno-unused-private-field -Wno-inconsistent-missing-override -Wno-aligned-allocation-unavailable -Wno-c++14-extensions -Wno-constexpr-not-const -Wno-missing-braces -Qunused-arguments -faligned-new -Wno-unused-private-field -Wno-missing-braces -Wno-c++14-extensions -Wno-constexpr-not-const
-- Build type : Release
-- Compile definitions : ONNX_NAMESPACE=onnx_torch;USE_GCC_ATOMICS=1;HAVE_MMAP=1;_FILE_OFFSET_BITS=64;HAVE_SHM_OPEN=1;HAVE_SHM_UNLINK=1
-- CMAKE_PREFIX_PATH : /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
-- CMAKE_INSTALL_PREFIX : /Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install
--
-- TORCH_VERSION : 1.0.0
-- CAFFE2_VERSION : 1.0.0
-- BUILD_ATEN_MOBILE : OFF
-- BUILD_BINARY : OFF
-- BUILD_CUSTOM_PROTOBUF : ON
-- Link local protobuf : ON
-- BUILD_DOCS : OFF
-- BUILD_PYTHON : ON
-- Python version : 3.6.6
-- Python executable : /Library/Frameworks/Python.framework/Versions/3.6/bin/python3
-- Pythonlibs version : 3.6.6
-- Python library : /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
-- Python includes : /Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m
-- Python site-packages: lib/python3.6/site-packages
-- BUILD_CAFFE2_OPS : ON
-- BUILD_SHARED_LIBS : ON
-- BUILD_TEST : ON
-- USE_ASAN : OFF
-- USE_CUDA : 0
-- USE_ROCM : OFF
-- USE_EIGEN_FOR_BLAS : ON
-- USE_FFMPEG : OFF
-- USE_GFLAGS : OFF
-- USE_GLOG : OFF
-- USE_LEVELDB : OFF
-- USE_LITE_PROTO : OFF
-- USE_LMDB : OFF
-- USE_METAL : OFF
-- USE_MKL :
-- USE_MOBILE_OPENGL : OFF
-- USE_NCCL : OFF
-- USE_NERVANA_GPU : OFF
-- USE_NNPACK : 1
-- USE_OBSERVERS : ON
-- USE_OPENCL : OFF
-- USE_OPENCV : OFF
-- USE_OPENMP : OFF
-- USE_PROF : OFF
-- USE_REDIS : OFF
-- USE_ROCKSDB : OFF
-- USE_ZMQ : OFF
-- USE_DISTRIBUTED : ON
-- USE_MPI : OFF
-- USE_GLOO : OFF
-- USE_GLOO_IBVERBS : OFF
-- Public Dependencies : Threads::Threads
-- Private Dependencies : nnpack;cpuinfo;aten_op_header_gen;onnxifi_loader
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CUDNN_LIB_DIR
-- Build files have been written to: /Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/build
+ '[' -f /Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/lib/libnccl.so ']'
+ make install -j8
[ 0%] Built target js_embed
[ 0%] Built target pthreadpool
[ 0%] Built target onnxifi_loader
[ 1%] Built target gtest
[ 1%] Built target clog
[ 3%] Built target benchmark
[ 5%] Built target libprotobuf-lite
[ 5%] Built target onnxifi_dummy
[ 5%] Built target mkrename
[ 5%] Built target common
[ 6%] Built target c10
[ 7%] Built target mkdisp
[ 7%] Built target mkalias
[ 7%] Built target ATEN_CPU_FILES_GEN_TARGET
[ 7%] Built target mkmasked_gnuabi
[ 7%] Built target arraymap
[ 7%] Built target mkrename_gnuabi
[ 11%] Built target c10_utils_hip
[ 13%] Built target libprotobuf
[ 13%] Built target c10_utils_gpu
[ 13%] Built target c10_utils_cpu
[ 14%] Built target nnpack_reference_layers
[ 14%] Built target benchmark_main
[ 14%] Built target gtest_main
[ 15%] Built target onnxifi_wrapper
[ 17%] Built target cpuinfo
[ 18%] Built target renamedsp256.h_generated
[ 18%] Built target dispavx.c_generated
[ 18%] Built target renameSSE2.h_generated
[ 18%] Built target renameAVX.h_generated
[ 18%] Built target renameFMA4.h_generated
[ 19%] Built target headers
[ 19%] Built target renameSSE4.h_generated
[ 19%] Built target renameAVX2128.h_generated
[ 19%] Built target renameAVX2.h_generated
[ 19%] Built target dispsse.c_generated
[ 19%] Built target renamedsp128.h_generated
[ 19%] Built target renameAVX512F.h_generated
[ 19%] Generating alias_avx512f.h
[ 20%] Built target __aten_op_header_gen
[ 20%] Built target c10_utils_gpu_test
[ 20%] Built target c10_utils_hip_test
[ 21%] Built target c10_utils_cpu_test
[ 21%] Built target alias_avx512f.h_generated
[ 23%] Built target nnpack
[ 23%] Built target c10_registry_test
[ 23%] Built target dispavx_obj
[ 23%] Built target sleefsse2
[ 24%] Built target sleefavx
[ 25%] Built target sleeffma4
[ 25%] Built target sleefsse4
[ 25%] Built target sleefavx2128
[ 25%] Built target sleefavx2
[ 25%] Built target dispsse_obj
[ 25%] Built target sleefavx512f
[ 25%] Built target sleef
[ 33%] Built target libprotoc
[ 33%] Built target protoc
[ 33%] Built target gen_onnx_proto
[ 34%] Built target Caffe2_PROTO
[ 34%] Built target onnx_proto
[ 35%] Built target caffe2_protos
[ 35%] Built target Caffe2_perfkernels_avx
[ 36%] Built target dispatch
[ 37%] Built target Caffe2_perfkernels_avx2
[ 37%] Built target dispatch_test
[ 40%] Built target onnx
[ 40%] Linking CXX shared library ../lib/libcaffe2.dylib
ld: warning: directory not found for option '-L/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/lib'
duplicate symbol __ZN2at6native13pixel_shuffleERKNS_6TensorEx in:
CMakeFiles/caffe2.dir/__/aten/src/ATen/native/PixelShuffle_2.cpp.o
CMakeFiles/caffe2.dir/__/aten/src/ATen/native/PixelShuffle.cpp.o
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libcaffe2.dylib] Error 1
make[1]: *** [caffe2/CMakeFiles/caffe2.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 40%] Built target python_copy_files
make: *** [all] Error 2
Failed to run 'bash ../tools/build_pytorch_libs.sh --use-nnpack caffe2 libshm THD'"><pre class="notranslate"><code class="notranslate">umwhat:pytorch micheleenharris$ NO_CUDA=1 USE_CUDA=0 CC=clang CXX=clang++ python3 setup.py install
Building wheel torch-1.0.0a0+9c49bb9
running install
setup.py::run()
running build_deps
setup.py::build_deps::run()
+ SYNC_COMMAND=cp
++ command -v rsync
+ '[' -x /usr/bin/rsync ']'
+ SYNC_COMMAND='rsync -lptgoD'
+ USE_CUDA=0
+ USE_ROCM=0
+ USE_NNPACK=0
+ USE_MKLDNN=0
+ USE_GLOO_IBVERBS=0
+ CAFFE2_STATIC_LINK_CUDA=0
+ RERUN_CMAKE=1
+ [[ 4 -gt 0 ]]
+ case "$1" in
+ USE_NNPACK=1
+ shift
+ [[ 3 -gt 0 ]]
+ case "$1" in
+ break
+ CMAKE_INSTALL='make install'
+ BUILD_SHARED_LIBS=ON
+ USER_CFLAGS=
+ USER_LDFLAGS=
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
++ uname
+ '[' Darwin == Darwin ']'
+ '[' -d /usr/local/opt/ccache/libexec ']'
+++ dirname ../tools/build_pytorch_libs.sh
++ cd ../tools/..
+++ pwd
++ printf '%q\n' /Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch
+ BASE_DIR=/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch
+ TORCH_LIB_DIR=/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib
+ INSTALL_DIR=/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install
+ THIRD_PARTY_DIR=/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/third_party
+ CMAKE_VERSION=cmake
+ C_FLAGS=' -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/TH" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THC" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THS" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THCS" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THNN" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THCUNN"'
+ C_FLAGS=' -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/TH" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THC" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THS" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THCS" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THNN" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THCUNN" -DOMPI_SKIP_MPICXX=1'
+ LDFLAGS='-L"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/lib" '
+ LD_POSTFIX=.so
++ uname
+ [[ Darwin == \D\a\r\w\i\n ]]
+ LDFLAGS='-L"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/lib" -Wl,-rpath,@loader_path'
+ LD_POSTFIX=.dylib
+ CPP_FLAGS=' -std=c++11 '
+ GLOO_FLAGS='-DBUILD_TEST=OFF '
+ THD_FLAGS=
+ NCCL_ROOT_DIR=/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install
+ [[ 0 -eq 1 ]]
+ [[ 0 -eq 1 ]]
+ CWRAP_FILES='/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/ATen/Declarations.cwrap;/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/THNN/generic/THNN.h;/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/THCUNN/generic/THCUNN.h;/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/ATen/nn.yaml'
+ CUDA_NVCC_FLAGS=' -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/TH" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THC" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THS" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THCS" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THNN" -I"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/include/THCUNN" -DOMPI_SKIP_MPICXX=1'
+ [[ -z '' ]]
+ CUDA_DEVICE_DEBUG=0
+ '[' -z '' ']'
++ getconf _NPROCESSORS_ONLN
+ MAX_JOBS=8
+ BUILD_TYPE=Release
+ [[ -n '' ]]
+ [[ -n '' ]]
+ echo 'Building in Release mode'
Building in Release mode
+ mkdir -p /Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install
+ for arg in '"$@"'
+ [[ caffe2 == \n\c\c\l ]]
+ [[ caffe2 == \g\l\o\o ]]
+ [[ caffe2 == \c\a\f\f\e\2 ]]
+ build_caffe2
+ [[ -z '' ]]
+ EXTRA_CAFFE2_CMAKE_FLAGS=()
+ [[ -n '' ]]
+ [[ -n /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages ]]
+ EXTRA_CAFFE2_CMAKE_FLAGS+=("-DCMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH")
+ [[ 1 -eq 1 ]]
+ cmake /Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch -DCMAKE_INSTALL_MESSAGE=LAZY -DPYTHON_EXECUTABLE=/Library/Frameworks/Python.framework/Versions/3.6/bin/python3 -DBUILDING_WITH_TORCH_LIBS=ON -DTORCH_BUILD_VERSION=1.0.0a0+9c49bb9 -DCMAKE_BUILD_TYPE=Release -DBUILD_TORCH=ON -DBUILD_PYTHON=ON -DBUILD_SHARED_LIBS=ON -DBUILD_BINARY=OFF -DBUILD_TEST=ON -DINSTALL_TEST=ON -DBUILD_CAFFE2_OPS=ON -DONNX_NAMESPACE=onnx_torch -DUSE_CUDA=0 -DCAFFE2_STATIC_LINK_CUDA=0 -DUSE_ROCM=0 -DUSE_NNPACK=1 -DUSE_LEVELDB=OFF -DUSE_LMDB=OFF -DUSE_OPENCV=OFF -DUSE_GLOG=OFF -DUSE_GFLAGS=OFF -DUSE_SYSTEM_EIGEN_INSTALL=OFF -DCUDNN_INCLUDE_DIR= -DCUDNN_LIB_DIR=//Developer/NVIDIA/CUDA-10.0/lib -DCUDNN_LIBRARY= -DUSE_MKLDNN=0 -DMKLDNN_INCLUDE_DIR= -DMKLDNN_LIB_DIR= -DMKLDNN_LIBRARY= -DCMAKE_INSTALL_PREFIX=/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_C_FLAGS= -DCMAKE_CXX_FLAGS= '-DCMAKE_EXE_LINKER_FLAGS=-L"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/lib" -Wl,-rpath,@loader_path ' '-DCMAKE_SHARED_LINKER_FLAGS=-L"/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/lib" -Wl,-rpath,@loader_path ' -DCMAKE_PREFIX_PATH=/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
-- CLANG_VERSION_STRING: 9.1
-- Need to define long as a separate typeid.
-- std::exception_ptr is supported.
-- NUMA is disabled
-- Turning off deprecation warning due to glog.
-- Current compiler supports avx2 extention. Will build perfkernels.
-- Building using own protobuf under third_party per request.
-- Use custom protobuf build.
-- Caffe2 protobuf include directory: $<BUILD_INTERFACE:/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/third_party/protobuf/src>$<INSTALL_INTERFACE:include>
-- The BLAS backend of choice:MKL
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - guide - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - guide - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - guide - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - guide - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl - guide - pthread - m]
-- Library mkl: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - guide - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - guide - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - guide - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - guide - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl - guide - pthread - m]
-- Library mkl: not found
CMake Warning at cmake/Dependencies.cmake:74 (message):
MKL could not be found. Defaulting to Eigen
Call Stack (most recent call first):
CMakeLists.txt:179 (include)
-- Brace yourself, we are building NNPACK
-- Found PythonInterp: /Library/Frameworks/Python.framework/Versions/3.6/bin/python3 (found version "3.6.6")
-- LLVM FileCheck Found: /usr/local/opt/llvm/bin/FileCheck
-- git Version: v1.4.0-505be96a
-- Version: 1.4.0
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES -- failed to compile
-- Performing Test HAVE_STD_REGEX -- success
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Using third party subdirectory Eigen.
Python 3.6.6
-- Setting Python's include dir to /Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m from distutils.sysconfig
-- Setting Python's library to /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
-- Found PythonInterp: /Library/Frameworks/Python.framework/Versions/3.6/bin/python3 (found suitable version "3.6.6", minimum required is "2.7")
-- NumPy ver. 1.15.2 found (include: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/core/include)
-- Could NOT find pybind11 (missing: pybind11_DIR)
-- Could NOT find pybind11 (missing: pybind11_INCLUDE_DIR)
-- Using third_party/pybind11.
--
-- ******** Summary ********
-- CMake version : 3.9.0-rc5
-- CMake command : /usr/local/bin/cmake
-- System : Darwin
-- C++ compiler : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- C++ compiler version : 9.1.0.9020039
-- CXX flags : -Wno-deprecated -fvisibility-inlines-hidden -Wno-deprecated-declarations
-- Build type : Release
-- Compile definitions :
-- CMAKE_PREFIX_PATH : /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
-- CMAKE_INSTALL_PREFIX : /Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install
-- CMAKE_MODULE_PATH : /Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/cmake/Modules
--
-- ONNX version : 1.3.0
-- ONNX NAMESPACE : onnx_torch
-- ONNX_BUILD_TESTS : OFF
-- ONNX_BUILD_BENCHMARKS : OFF
-- ONNX_USE_LITE_PROTO : OFF
-- ONNXIFI_DUMMY_BACKEND : OFF
--
-- Protobuf compiler :
-- Protobuf includes :
-- Protobuf libraries :
-- BUILD_ONNX_PYTHON : OFF
-- Could not find CUDA with FP16 support, compiling without torch.CudaHalfTensor
-- Removing -DNDEBUG from compile flags
-- MAGMA not found. Compiling without MAGMA support
-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this machine.
-- No OMAP4 processor on this machine.
-- SSE2 Found
-- SSE3 Found
-- AVX Found
-- AVX2 Found
-- Atomics: using GCC intrinsics
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - guide - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - guide - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - guide - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - guide - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m]
-- Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
-- Library mkl_intel: not found
-- Checking for [mkl - guide - pthread - m]
-- Library mkl: not found
-- MKL library not found
-- Checking for [Accelerate]
-- Library Accelerate: /System/Library/Frameworks/Accelerate.framework
-- This BLAS uses the F2C return conventions
-- Found a library with BLAS API (accelerate).
-- Found a library with LAPACK API. (accelerate)
disabling CUDA because NOT USE_CUDA is set
-- CuDNN not found. Compiling without CuDNN support
disabling ROCM because NOT USE_ROCM is set
-- MIOpen not found. Compiling without MIOpen support
-- Could NOT find MKLDNN (missing: MKLDNN_INCLUDE_DIR MKLDNN_LIBRARY)
-- MKLDNN not found. Compiling without MKLDNN support
-- Using python found in /Library/Frameworks/Python.framework/Versions/3.6/bin/python3
disabling CUDA because USE_CUDA is set false
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) (found version "1.0")
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) (found version "1.0")
-- Configuring build for SLEEF-v3.2
Target system: Darwin-17.7.0
Target processor: x86_64
Host system: Darwin-17.7.0
Host processor: x86_64
Detected C compiler: AppleClang @ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Using option `-Wall -Wno-unused -Wno-attributes -Wno-unused-result -ffp-contract=off -fno-math-errno -fno-trapping-math` to compile libsleef
-- Building shared libs : OFF
-- MPFR : /usr/local/lib/libmpfr.dylib
-- MPFR header file in /usr/local/include
-- GMP : /usr/local/lib/libgmp.dylib
-- RUNNING_ON_TRAVIS : 0
-- COMPILER_SUPPORTS_OPENMP :
-- Using python found in /Library/Frameworks/Python.framework/Versions/3.6/bin/python3
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) (found version "1.0")
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) (found version "1.0")
-- NCCL operators skipped due to no CUDA support
-- Excluding ideep operators as we are not using ideep
-- Excluding image processing operators due to no opencv
-- Excluding video processing operators due to no opencv
-- Excluding mkl operators as we are not using mkl
-- MPI operators skipped due to no MPI support
-- Include Observer library
-- Using lib/python3.6/site-packages as python relative installation path
-- Automatically generating missing __init__.py files.
-- A previous caffe2 cmake run already created the __init__.py files.
CMake Warning at CMakeLists.txt:363 (message):
Generated cmake files are only fully tested if one builds with system glog,
gflags, and protobuf. Other settings may generate files that are not well
tested.
--
-- ******** Summary ********
-- General:
-- CMake version : 3.9.0-rc5
-- CMake command : /usr/local/bin/cmake
-- System : Darwin
-- C++ compiler : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- C++ compiler version : 9.1.0.9020039
-- BLAS : MKL
-- CXX flags : -msse4.2 --std=c++11 -Wno-deprecated -fvisibility-inlines-hidden -Wno-deprecated-declarations -O2 -fPIC -Wno-narrowing -Wall -Wextra -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -Wno-invalid-partial-specialization -Wno-typedef-redefinition -Wno-unknown-warning-option -Wno-unused-private-field -Wno-inconsistent-missing-override -Wno-aligned-allocation-unavailable -Wno-c++14-extensions -Wno-constexpr-not-const -Wno-missing-braces -Qunused-arguments -faligned-new -Wno-unused-private-field -Wno-missing-braces -Wno-c++14-extensions -Wno-constexpr-not-const
-- Build type : Release
-- Compile definitions : ONNX_NAMESPACE=onnx_torch;USE_GCC_ATOMICS=1;HAVE_MMAP=1;_FILE_OFFSET_BITS=64;HAVE_SHM_OPEN=1;HAVE_SHM_UNLINK=1
-- CMAKE_PREFIX_PATH : /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
-- CMAKE_INSTALL_PREFIX : /Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install
--
-- TORCH_VERSION : 1.0.0
-- CAFFE2_VERSION : 1.0.0
-- BUILD_ATEN_MOBILE : OFF
-- BUILD_BINARY : OFF
-- BUILD_CUSTOM_PROTOBUF : ON
-- Link local protobuf : ON
-- BUILD_DOCS : OFF
-- BUILD_PYTHON : ON
-- Python version : 3.6.6
-- Python executable : /Library/Frameworks/Python.framework/Versions/3.6/bin/python3
-- Pythonlibs version : 3.6.6
-- Python library : /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
-- Python includes : /Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m
-- Python site-packages: lib/python3.6/site-packages
-- BUILD_CAFFE2_OPS : ON
-- BUILD_SHARED_LIBS : ON
-- BUILD_TEST : ON
-- USE_ASAN : OFF
-- USE_CUDA : 0
-- USE_ROCM : OFF
-- USE_EIGEN_FOR_BLAS : ON
-- USE_FFMPEG : OFF
-- USE_GFLAGS : OFF
-- USE_GLOG : OFF
-- USE_LEVELDB : OFF
-- USE_LITE_PROTO : OFF
-- USE_LMDB : OFF
-- USE_METAL : OFF
-- USE_MKL :
-- USE_MOBILE_OPENGL : OFF
-- USE_NCCL : OFF
-- USE_NERVANA_GPU : OFF
-- USE_NNPACK : 1
-- USE_OBSERVERS : ON
-- USE_OPENCL : OFF
-- USE_OPENCV : OFF
-- USE_OPENMP : OFF
-- USE_PROF : OFF
-- USE_REDIS : OFF
-- USE_ROCKSDB : OFF
-- USE_ZMQ : OFF
-- USE_DISTRIBUTED : ON
-- USE_MPI : OFF
-- USE_GLOO : OFF
-- USE_GLOO_IBVERBS : OFF
-- Public Dependencies : Threads::Threads
-- Private Dependencies : nnpack;cpuinfo;aten_op_header_gen;onnxifi_loader
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CUDNN_LIB_DIR
-- Build files have been written to: /Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/build
+ '[' -f /Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/lib/libnccl.so ']'
+ make install -j8
[ 0%] Built target js_embed
[ 0%] Built target pthreadpool
[ 0%] Built target onnxifi_loader
[ 1%] Built target gtest
[ 1%] Built target clog
[ 3%] Built target benchmark
[ 5%] Built target libprotobuf-lite
[ 5%] Built target onnxifi_dummy
[ 5%] Built target mkrename
[ 5%] Built target common
[ 6%] Built target c10
[ 7%] Built target mkdisp
[ 7%] Built target mkalias
[ 7%] Built target ATEN_CPU_FILES_GEN_TARGET
[ 7%] Built target mkmasked_gnuabi
[ 7%] Built target arraymap
[ 7%] Built target mkrename_gnuabi
[ 11%] Built target c10_utils_hip
[ 13%] Built target libprotobuf
[ 13%] Built target c10_utils_gpu
[ 13%] Built target c10_utils_cpu
[ 14%] Built target nnpack_reference_layers
[ 14%] Built target benchmark_main
[ 14%] Built target gtest_main
[ 15%] Built target onnxifi_wrapper
[ 17%] Built target cpuinfo
[ 18%] Built target renamedsp256.h_generated
[ 18%] Built target dispavx.c_generated
[ 18%] Built target renameSSE2.h_generated
[ 18%] Built target renameAVX.h_generated
[ 18%] Built target renameFMA4.h_generated
[ 19%] Built target headers
[ 19%] Built target renameSSE4.h_generated
[ 19%] Built target renameAVX2128.h_generated
[ 19%] Built target renameAVX2.h_generated
[ 19%] Built target dispsse.c_generated
[ 19%] Built target renamedsp128.h_generated
[ 19%] Built target renameAVX512F.h_generated
[ 19%] Generating alias_avx512f.h
[ 20%] Built target __aten_op_header_gen
[ 20%] Built target c10_utils_gpu_test
[ 20%] Built target c10_utils_hip_test
[ 21%] Built target c10_utils_cpu_test
[ 21%] Built target alias_avx512f.h_generated
[ 23%] Built target nnpack
[ 23%] Built target c10_registry_test
[ 23%] Built target dispavx_obj
[ 23%] Built target sleefsse2
[ 24%] Built target sleefavx
[ 25%] Built target sleeffma4
[ 25%] Built target sleefsse4
[ 25%] Built target sleefavx2128
[ 25%] Built target sleefavx2
[ 25%] Built target dispsse_obj
[ 25%] Built target sleefavx512f
[ 25%] Built target sleef
[ 33%] Built target libprotoc
[ 33%] Built target protoc
[ 33%] Built target gen_onnx_proto
[ 34%] Built target Caffe2_PROTO
[ 34%] Built target onnx_proto
[ 35%] Built target caffe2_protos
[ 35%] Built target Caffe2_perfkernels_avx
[ 36%] Built target dispatch
[ 37%] Built target Caffe2_perfkernels_avx2
[ 37%] Built target dispatch_test
[ 40%] Built target onnx
[ 40%] Linking CXX shared library ../lib/libcaffe2.dylib
ld: warning: directory not found for option '-L/Users/micheleenharris/Documents/bin/github/pytorch-mask-rcnn-samples/pytorch/torch/lib/tmp_install/lib'
duplicate symbol __ZN2at6native13pixel_shuffleERKNS_6TensorEx in:
CMakeFiles/caffe2.dir/__/aten/src/ATen/native/PixelShuffle_2.cpp.o
CMakeFiles/caffe2.dir/__/aten/src/ATen/native/PixelShuffle.cpp.o
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libcaffe2.dylib] Error 1
make[1]: *** [caffe2/CMakeFiles/caffe2.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 40%] Built target python_copy_files
make: *** [all] Error 2
Failed to run 'bash ../tools/build_pytorch_libs.sh --use-nnpack caffe2 libshm THD'
</code></pre></div> | <p dir="auto">For advanced indexing with the duplicate indexes, it is expected that the last one should win, e.g. with the input</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 0 1 2 3 4
5 6 7 8 9
10 11 12 13 14
15 16 17 18 19"><pre class="notranslate"><code class="notranslate"> 0 1 2 3 4
5 6 7 8 9
10 11 12 13 14
15 16 17 18 19
</code></pre></div>
<p dir="auto"><code class="notranslate">indexer = [slice(None, None, None), [0, 1, 1, 2, 2]]</code> and val</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 16 12 0 14 10
19 17 2 7 4
5 9 6 1 15
13 11 3 8 18"><pre class="notranslate"><code class="notranslate"> 16 12 0 14 10
19 17 2 7 4
5 9 6 1 15
13 11 3 8 18
</code></pre></div>
<p dir="auto">the expected output of <code class="notranslate">input[indexer]=val</code> is</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="16 0 10 3 4
19 2 4 8 9
5 6 15 13 14
13 3 18 18 19"><pre class="notranslate"><code class="notranslate">16 0 10 3 4
19 2 4 8 9
5 6 15 13 14
13 3 18 18 19
</code></pre></div>
<p dir="auto">there are tests checking that. Yet the kernels doing the indexing (indexCopyLargeIndex and indexCopySmallIndex) provide no such guarantee - if the same dstOffset is shared by several threads, there is no guarantee on which write would be last, and no effort is made before launching the kernels to make sure that dstOffsets would be unique for all threads. This is not really fixable until the indices are de-duplicated and only the unique dstOffsets are present in those kernels. I don't know the best way to handle this. Disable advanced indexing with dupes, say results is undefined, de-dupe the indices? <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/killeent/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/killeent">@killeent</a></p> | 0 |
<h2 dir="auto">🐛 Bug</h2>
<p dir="auto">PyTorch programs that use autograd crash on exit with Python 3.9.0a6. The underlying cause is the same as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="615936766" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/38228" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/38228/hovercard" href="https://github.com/pytorch/pytorch/issues/38228">#38228</a>, but changes to the implementation of <code class="notranslate">PyEval_RestoreThread</code> means this happens much more frequently in Python 3.9.0a6 than with previous Python versions.</p>
<p dir="auto">In previous Python releases, threads that called <code class="notranslate">PyEval_RestoreThread</code> after the interpreter shutdown would deadlock. Now they call <code class="notranslate">pthread_exit(0)</code>, which triggers the issue in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="615936766" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/38228" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/38228/hovercard" href="https://github.com/pytorch/pytorch/issues/38228">#38228</a>.</p>
<p dir="auto">The implementation of <code class="notranslate">PyEval_RestoreThread</code> has changed between alpha releases of 3.9.0 and may change in the future, so we might not want to rush any fixes.</p>
<p dir="auto">The crash happens on exit with a message like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="terminate called without an active exception
Aborted"><pre class="notranslate"><code class="notranslate">terminate called without an active exception
Aborted
</code></pre></div>
<p dir="auto">Example:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch
torch.set_num_threads(1) # optional
x = torch.randn(10, requires_grad=True)
x.sum().backward()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span>
<span class="pl-s1">torch</span>.<span class="pl-en">set_num_threads</span>(<span class="pl-c1">1</span>) <span class="pl-c"># optional</span>
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">randn</span>(<span class="pl-c1">10</span>, <span class="pl-s1">requires_grad</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">x</span>.<span class="pl-en">sum</span>().<span class="pl-en">backward</span>()</pre></div>
<p dir="auto">Tested on PyTorch master (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pytorch/pytorch/commit/324dc1623e2f91892038fb1b151450a7c6529dd9/hovercard" href="https://github.com/pytorch/pytorch/commit/324dc1623e2f91892038fb1b151450a7c6529dd9"><tt>324dc16</tt></a>) and Python 3.9.0a6.</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bdhirsh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bdhirsh">@bdhirsh</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jbschlosser/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jbschlosser">@jbschlosser</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/albanD/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/albanD">@albanD</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gqchen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gqchen">@gqchen</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pearu/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pearu">@pearu</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nikitaved/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nikitaved">@nikitaved</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/soulitzer/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/soulitzer">@soulitzer</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ssnl/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ssnl">@ssnl</a></p> | <h2 dir="auto">🐛 Bug</h2>
<p dir="auto">A simple code segfaults in nightly builds with python 3.9 but works with python 3.8</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Content of <code class="notranslate">Dockerfile</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FROM python:3.9-slim-buster
# works with 3.8
USER root
WORKDIR /root
RUN apt-get update && apt-get install git build-essential --yes
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install --pre torch==1.8.0.dev20210102+cpu -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
RUN python3 -m pip install Pillow
RUN git clone https://github.com/pytorch/vision/
ENV PYTHONPATH=./vision
COPY test-backbone.py /
RUN python /test-backbone.py"><pre class="notranslate"><code class="notranslate">FROM python:3.9-slim-buster
# works with 3.8
USER root
WORKDIR /root
RUN apt-get update && apt-get install git build-essential --yes
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install --pre torch==1.8.0.dev20210102+cpu -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
RUN python3 -m pip install Pillow
RUN git clone https://github.com/pytorch/vision/
ENV PYTHONPATH=./vision
COPY test-backbone.py /
RUN python /test-backbone.py
</code></pre></div>
<p dir="auto">Content of <code class="notranslate">test-backbone.py</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from torchvision.models import resnet50
import torch
if __name__ == "__main__":
backbone = resnet50(pretrained=True)
img = torch.randn((2, 3, 256, 288))
features = backbone(img)
loss = features.sum()
loss.backward()
print("exiting")"><pre class="notranslate"><code class="notranslate">from torchvision.models import resnet50
import torch
if __name__ == "__main__":
backbone = resnet50(pretrained=True)
img = torch.randn((2, 3, 256, 288))
features = backbone(img)
loss = features.sum()
loss.backward()
print("exiting")
</code></pre></div>
<p dir="auto">Run <code class="notranslate">docker build -t py39:v0 .</code></p>
<p dir="auto">Logs:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Step 11/11 : RUN python /test-backbone.py
---> Running in 31a88ed05b3d
Downloading: "https://download.pytorch.org/models/resnet50-19c8e357.pth" to /root/.cache/torch/hub/checkpoints/resnet50-19c8e357.pth
100.0%
exiting
Segmentation fault (core dumped)
The command '/bin/sh -c python /test-backbone.py' returned a non-zero code: 139
"><pre class="notranslate"><code class="notranslate">Step 11/11 : RUN python /test-backbone.py
---> Running in 31a88ed05b3d
Downloading: "https://download.pytorch.org/models/resnet50-19c8e357.pth" to /root/.cache/torch/hub/checkpoints/resnet50-19c8e357.pth
100.0%
exiting
Segmentation fault (core dumped)
The command '/bin/sh -c python /test-backbone.py' returned a non-zero code: 139
</code></pre></div>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bdhirsh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bdhirsh">@bdhirsh</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jbschlosser/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jbschlosser">@jbschlosser</a></p> | 1 |
<p dir="auto"><a href="https://github.com/SimonSapin/rust-casefold/tree/7fffc29797eb8bffe8f8bf4633212cfc63f27e56">rust-casefold</a> used to pass its tests every night on Travis-CI, until a few nightlies ago. In rustc 1.0.0-nightly (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/522d09dfecbeca1595f25ac58c6d0178bbd21d7d/hovercard" href="https://github.com/rust-lang/rust/commit/522d09dfecbeca1595f25ac58c6d0178bbd21d7d"><tt>522d09d</tt></a> 2015-02-19) (built 2015-02-21), it now causes an ICE:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="% RUST_BACKTRACE=1 cargo build --verbose
Fresh regex v0.1.15
Compiling caseless v0.0.1 (file:///home/simon/projects/rust-casefold)
Running `rustc src/lib.rs --crate-name caseless --crate-type lib -g -C metadata=8dd51172a0ed213f -C extra-filename=-8dd51172a0ed213f --out-dir /home/simon/projects/rust-casefold/target --emit=dep-info,link -L dependency=/home/simon/projects/rust-casefold/target -L dependency=/home/simon/projects/rust-casefold/target/deps`
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Trying to convert unsized value to lval', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc_trans/trans/datum.rs:495
stack backtrace:
1: 0x7f837e8b3210 - sys::backtrace::write::h252031bd050bf19aKlC
2: 0x7f837e8dbac0 - panicking::on_panic::h8a07e978260e2c7btXL
3: 0x7f837e81c720 - rt::unwind::begin_unwind_inner::h322bcb3f35268c19RBL
4: 0x7f837d4c8590 - rt::unwind::begin_unwind::h8757258989833155500
5: 0x7f837d5411e0 - trans::datum::Datum<'tcx, Expr>::to_lvalue_datum::h4c859596f8252b6ehYf
6: 0x7f837d5737c0 - trans::expr::trans_index::h700966d3e1a7a6016Ei
7: 0x7f837d560dd0 - trans::expr::trans_unadjusted::h964cf47356d964c2sqi
8: 0x7f837d518360 - trans::expr::trans::ha0e2a08ab1f695a2HMh
9: 0x7f837d578be0 - trans::expr::trans_field::h10880054022304515065
10: 0x7f837d560dd0 - trans::expr::trans_unadjusted::h964cf47356d964c2sqi
11: 0x7f837d518360 - trans::expr::trans::ha0e2a08ab1f695a2HMh
12: 0x7f837d516cc0 - trans::expr::trans_into::hbe2ad59d17caa991pGh
13: 0x7f837d595e60 - trans::expr::trans_adt::h5375342382b003c3zvj
14: 0x7f837d551600 - trans::base::trans_named_tuple_constructor::h67d0c2e9e4926af7vwu
15: 0x7f837d558040 - trans::callee::trans_call_inner::h14909791323518108589
16: 0x7f837d561990 - trans::expr::trans_rvalue_dps_unadjusted::h2f62e3fa23f391ad9Wi
17: 0x7f837d516cc0 - trans::expr::trans_into::hbe2ad59d17caa991pGh
18: 0x7f837d603260 - trans::_match::trans_match_inner::h755825b289633425aMx
19: 0x7f837d561990 - trans::expr::trans_rvalue_dps_unadjusted::h2f62e3fa23f391ad9Wi
20: 0x7f837d516cc0 - trans::expr::trans_into::hbe2ad59d17caa991pGh
21: 0x7f837d517830 - trans::controlflow::trans_block::h717e6f4441ba9a815ee
22: 0x7f837d5e4d70 - trans::base::trans_closure::h966338b3741dc0e7phu
23: 0x7f837d503b30 - trans::base::trans_fn::hd5e20febd5f53650Gsu
24: 0x7f837d4fed50 - trans::base::trans_item::h5bf53079c2f2baddzRu
25: 0x7f837d5ec2e0 - trans::base::trans_crate::h22d6b6c0d890fedf1Ov
26: 0x7f837ef3a290 - driver::phase_4_translate_to_llvm::h9c18e73369736a67qPa
27: 0x7f837ef14070 - driver::compile_input::h0c8d8120f6194473Gba
28: 0x7f837efe32b0 - run_compiler::heccd2f43b844857cZbc
29: 0x7f837efe1bb0 - thunk::F.Invoke<A, R>::invoke::h14556331494175157254
30: 0x7f837efe0aa0 - rt::unwind::try::try_fn::h8181016918202193540
31: 0x7f837e948880 - rust_try_inner
32: 0x7f837e948870 - rust_try
33: 0x7f837efe0da0 - thunk::F.Invoke<A, R>::invoke::h12418455792421810631
34: 0x7f837e8c7b60 - sys::thread::thread_start::h3defdaea150d8cd693G
35: 0x7f83787c92b0 - start_thread
36: 0x7f837e4a5249 - __clone
37: 0x0 - <unknown>
Could not compile `caseless`.
Caused by:
Process didn't exit successfully: `rustc src/lib.rs --crate-name caseless --crate-type lib -g -C metadata=8dd51172a0ed213f -C extra-filename=-8dd51172a0ed213f --out-dir /home/simon/projects/rust-casefold/target --emit=dep-info,link -L dependency=/home/simon/projects/rust-casefold/target -L dependency=/home/simon/projects/rust-casefold/target/deps` (status=101)"><pre class="notranslate"><code class="notranslate">% RUST_BACKTRACE=1 cargo build --verbose
Fresh regex v0.1.15
Compiling caseless v0.0.1 (file:///home/simon/projects/rust-casefold)
Running `rustc src/lib.rs --crate-name caseless --crate-type lib -g -C metadata=8dd51172a0ed213f -C extra-filename=-8dd51172a0ed213f --out-dir /home/simon/projects/rust-casefold/target --emit=dep-info,link -L dependency=/home/simon/projects/rust-casefold/target -L dependency=/home/simon/projects/rust-casefold/target/deps`
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Trying to convert unsized value to lval', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc_trans/trans/datum.rs:495
stack backtrace:
1: 0x7f837e8b3210 - sys::backtrace::write::h252031bd050bf19aKlC
2: 0x7f837e8dbac0 - panicking::on_panic::h8a07e978260e2c7btXL
3: 0x7f837e81c720 - rt::unwind::begin_unwind_inner::h322bcb3f35268c19RBL
4: 0x7f837d4c8590 - rt::unwind::begin_unwind::h8757258989833155500
5: 0x7f837d5411e0 - trans::datum::Datum<'tcx, Expr>::to_lvalue_datum::h4c859596f8252b6ehYf
6: 0x7f837d5737c0 - trans::expr::trans_index::h700966d3e1a7a6016Ei
7: 0x7f837d560dd0 - trans::expr::trans_unadjusted::h964cf47356d964c2sqi
8: 0x7f837d518360 - trans::expr::trans::ha0e2a08ab1f695a2HMh
9: 0x7f837d578be0 - trans::expr::trans_field::h10880054022304515065
10: 0x7f837d560dd0 - trans::expr::trans_unadjusted::h964cf47356d964c2sqi
11: 0x7f837d518360 - trans::expr::trans::ha0e2a08ab1f695a2HMh
12: 0x7f837d516cc0 - trans::expr::trans_into::hbe2ad59d17caa991pGh
13: 0x7f837d595e60 - trans::expr::trans_adt::h5375342382b003c3zvj
14: 0x7f837d551600 - trans::base::trans_named_tuple_constructor::h67d0c2e9e4926af7vwu
15: 0x7f837d558040 - trans::callee::trans_call_inner::h14909791323518108589
16: 0x7f837d561990 - trans::expr::trans_rvalue_dps_unadjusted::h2f62e3fa23f391ad9Wi
17: 0x7f837d516cc0 - trans::expr::trans_into::hbe2ad59d17caa991pGh
18: 0x7f837d603260 - trans::_match::trans_match_inner::h755825b289633425aMx
19: 0x7f837d561990 - trans::expr::trans_rvalue_dps_unadjusted::h2f62e3fa23f391ad9Wi
20: 0x7f837d516cc0 - trans::expr::trans_into::hbe2ad59d17caa991pGh
21: 0x7f837d517830 - trans::controlflow::trans_block::h717e6f4441ba9a815ee
22: 0x7f837d5e4d70 - trans::base::trans_closure::h966338b3741dc0e7phu
23: 0x7f837d503b30 - trans::base::trans_fn::hd5e20febd5f53650Gsu
24: 0x7f837d4fed50 - trans::base::trans_item::h5bf53079c2f2baddzRu
25: 0x7f837d5ec2e0 - trans::base::trans_crate::h22d6b6c0d890fedf1Ov
26: 0x7f837ef3a290 - driver::phase_4_translate_to_llvm::h9c18e73369736a67qPa
27: 0x7f837ef14070 - driver::compile_input::h0c8d8120f6194473Gba
28: 0x7f837efe32b0 - run_compiler::heccd2f43b844857cZbc
29: 0x7f837efe1bb0 - thunk::F.Invoke<A, R>::invoke::h14556331494175157254
30: 0x7f837efe0aa0 - rt::unwind::try::try_fn::h8181016918202193540
31: 0x7f837e948880 - rust_try_inner
32: 0x7f837e948870 - rust_try
33: 0x7f837efe0da0 - thunk::F.Invoke<A, R>::invoke::h12418455792421810631
34: 0x7f837e8c7b60 - sys::thread::thread_start::h3defdaea150d8cd693G
35: 0x7f83787c92b0 - start_thread
36: 0x7f837e4a5249 - __clone
37: 0x0 - <unknown>
Could not compile `caseless`.
Caused by:
Process didn't exit successfully: `rustc src/lib.rs --crate-name caseless --crate-type lib -g -C metadata=8dd51172a0ed213f -C extra-filename=-8dd51172a0ed213f --out-dir /home/simon/projects/rust-casefold/target --emit=dep-info,link -L dependency=/home/simon/projects/rust-casefold/target -L dependency=/home/simon/projects/rust-casefold/target/deps` (status=101)
</code></pre></div> | <p dir="auto">I got this compiling a fairly large app:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Trying to convert unsized value to lval', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/librustc_trans/trans/datum.rs:402
stack backtrace:
1: 0x10c85ecd7 - sys::backtrace::write::h4ee5c5ad264b65f5mbu
2: 0x10c884e9c - failure::on_fail::h55e5ff39107f11fcHbB
3: 0x10c7e6618 - rt::unwind::begin_unwind_inner::habba3c5d37f59591DTA
4: 0x10904eca5 - rt::unwind::begin_unwind::h5615917778268573803
5: 0x1090d753e - trans::datum::Datum<'tcx, Expr>::to_lvalue_datum::h9595aad7c2992d4cZSf
6: 0x1090feaac - trans::expr::trans_index::h33588fb9dd7ce121yzi
7: 0x1090e75a3 - trans::expr::trans_unadjusted::h4bfe4622405612c0Vki
8: 0x10909f7d4 - trans::expr::trans::h87900629b98dec94YCh
9: 0x109101448 - trans::expr::trans_addr_of::he4d93cb9897bf566uHj
10: 0x1090e779e - trans::expr::trans_unadjusted::h4bfe4622405612c0Vki
11: 0x10909f7d4 - trans::expr::trans::h87900629b98dec94YCh
12: 0x10909e521 - trans::expr::trans_into::h8d099f5179d39277uzh
13: 0x10911d773 - trans::expr::trans_adt::h04652ea6bac31317Drj
14: 0x1090b0cdf - trans::base::trans_named_tuple_constructor::h27bf054814ac4386Dcu
15: 0x1090e25a6 - trans::callee::trans_call_inner::h12337891083913942824
16: 0x1090e9b77 - trans::expr::trans_rvalue_dps_unadjusted::h76d104b0c393ded0ITi
17: 0x10909e762 - trans::expr::trans_into::h8d099f5179d39277uzh
18: 0x10909f339 - trans::controlflow::trans_block::ha4c3bc4d960bd55aT3d
19: 0x1090e8c91 - trans::expr::trans_rvalue_dps_unadjusted::h76d104b0c393ded0ITi
20: 0x10909e762 - trans::expr::trans_into::h8d099f5179d39277uzh
21: 0x10909f339 - trans::controlflow::trans_block::ha4c3bc4d960bd55aT3d
22: 0x10916c644 - trans::base::trans_closure::hc2f7f2fc0f6c7df0WXt
23: 0x10908b1c9 - trans::base::trans_fn::he8bb083f0eb63cd3Q8t
24: 0x109086f0b - trans::base::trans_item::h6e886ccbd5f66d227vu
25: 0x10916de29 - trans::base::trans_mod::hacffe7d798632c0cIBu
26: 0x10908664e - trans::base::trans_item::h6e886ccbd5f66d227vu
27: 0x109172a8c - trans::base::trans_crate::h03f93f510f95d199hrv
28: 0x108f29f6e - driver::phase_4_translate_to_llvm::hf01e1f3e6069eac9mOa
29: 0x108f05f3c - driver::compile_input::h8e0204b8bb9ea44bBba
30: 0x108fced3e - run_compiler::h322f9334a9a1d7e6l9b
31: 0x108fcbd7f - thunk::F.Invoke<A, R>::invoke::h14356237310415989951
32: 0x108fcaa10 - rt::unwind::try::try_fn::h798029436104877783
33: 0x10c8fb329 - rust_try_inner
34: 0x10c8fb316 - rust_try
35: 0x108fcb0d4 - thunk::F.Invoke<A, R>::invoke::h15628186897385384602
36: 0x10c86f553 - sys::thread::thread_start::h3f48e8c893476626A3w
37: 0x7fff854c5899 - _pthread_body
38: 0x7fff854c572a - _pthread_struct_init"><pre class="notranslate"><code class="notranslate">error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Trying to convert unsized value to lval', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/librustc_trans/trans/datum.rs:402
stack backtrace:
1: 0x10c85ecd7 - sys::backtrace::write::h4ee5c5ad264b65f5mbu
2: 0x10c884e9c - failure::on_fail::h55e5ff39107f11fcHbB
3: 0x10c7e6618 - rt::unwind::begin_unwind_inner::habba3c5d37f59591DTA
4: 0x10904eca5 - rt::unwind::begin_unwind::h5615917778268573803
5: 0x1090d753e - trans::datum::Datum<'tcx, Expr>::to_lvalue_datum::h9595aad7c2992d4cZSf
6: 0x1090feaac - trans::expr::trans_index::h33588fb9dd7ce121yzi
7: 0x1090e75a3 - trans::expr::trans_unadjusted::h4bfe4622405612c0Vki
8: 0x10909f7d4 - trans::expr::trans::h87900629b98dec94YCh
9: 0x109101448 - trans::expr::trans_addr_of::he4d93cb9897bf566uHj
10: 0x1090e779e - trans::expr::trans_unadjusted::h4bfe4622405612c0Vki
11: 0x10909f7d4 - trans::expr::trans::h87900629b98dec94YCh
12: 0x10909e521 - trans::expr::trans_into::h8d099f5179d39277uzh
13: 0x10911d773 - trans::expr::trans_adt::h04652ea6bac31317Drj
14: 0x1090b0cdf - trans::base::trans_named_tuple_constructor::h27bf054814ac4386Dcu
15: 0x1090e25a6 - trans::callee::trans_call_inner::h12337891083913942824
16: 0x1090e9b77 - trans::expr::trans_rvalue_dps_unadjusted::h76d104b0c393ded0ITi
17: 0x10909e762 - trans::expr::trans_into::h8d099f5179d39277uzh
18: 0x10909f339 - trans::controlflow::trans_block::ha4c3bc4d960bd55aT3d
19: 0x1090e8c91 - trans::expr::trans_rvalue_dps_unadjusted::h76d104b0c393ded0ITi
20: 0x10909e762 - trans::expr::trans_into::h8d099f5179d39277uzh
21: 0x10909f339 - trans::controlflow::trans_block::ha4c3bc4d960bd55aT3d
22: 0x10916c644 - trans::base::trans_closure::hc2f7f2fc0f6c7df0WXt
23: 0x10908b1c9 - trans::base::trans_fn::he8bb083f0eb63cd3Q8t
24: 0x109086f0b - trans::base::trans_item::h6e886ccbd5f66d227vu
25: 0x10916de29 - trans::base::trans_mod::hacffe7d798632c0cIBu
26: 0x10908664e - trans::base::trans_item::h6e886ccbd5f66d227vu
27: 0x109172a8c - trans::base::trans_crate::h03f93f510f95d199hrv
28: 0x108f29f6e - driver::phase_4_translate_to_llvm::hf01e1f3e6069eac9mOa
29: 0x108f05f3c - driver::compile_input::h8e0204b8bb9ea44bBba
30: 0x108fced3e - run_compiler::h322f9334a9a1d7e6l9b
31: 0x108fcbd7f - thunk::F.Invoke<A, R>::invoke::h14356237310415989951
32: 0x108fcaa10 - rt::unwind::try::try_fn::h798029436104877783
33: 0x10c8fb329 - rust_try_inner
34: 0x10c8fb316 - rust_try
35: 0x108fcb0d4 - thunk::F.Invoke<A, R>::invoke::h15628186897385384602
36: 0x10c86f553 - sys::thread::thread_start::h3f48e8c893476626A3w
37: 0x7fff854c5899 - _pthread_body
38: 0x7fff854c572a - _pthread_struct_init
</code></pre></div>
<p dir="auto">The problem appears to be in this function:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pub fn chunk_containing(&self, abs_x: u32, abs_y: u32) -> Option<&Chunk> {
// x_idx and y_idx are indices int the chunks array.
let x_idx: usize = abs_x.div_floor(&self.chunk_x_size) as usize;
let y_idx: usize = abs_y.div_floor(&self.chunk_y_size) as usize;
if ((x_idx as u32) < self.x_chunks && (y_idx as u32) < self.y_chunks) {
Some(&self.chunks[y_idx][x_idx])
} else {
None
}
}"><pre class="notranslate"><code class="notranslate">pub fn chunk_containing(&self, abs_x: u32, abs_y: u32) -> Option<&Chunk> {
// x_idx and y_idx are indices int the chunks array.
let x_idx: usize = abs_x.div_floor(&self.chunk_x_size) as usize;
let y_idx: usize = abs_y.div_floor(&self.chunk_y_size) as usize;
if ((x_idx as u32) < self.x_chunks && (y_idx as u32) < self.y_chunks) {
Some(&self.chunks[y_idx][x_idx])
} else {
None
}
}
</code></pre></div>
<p dir="auto">And specifically, the problem appears to be this line:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Some(&self.chunks[y_idx][x_idx])"><pre class="notranslate"><code class="notranslate">Some(&self.chunks[y_idx][x_idx])
</code></pre></div>
<p dir="auto">I reached that conclusion because replacing the above line with <code class="notranslate">None</code> clears the error. The type of <code class="notranslate">self.chunks</code> is <code class="notranslate">[[Chunk]]</code>. Changing its type to <code class="notranslate">Vec<Vec<Chunk>></code> also clears the error.</p>
<p dir="auto">OSX 10.9.5<br>
rustc 1.0.0-nightly (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/1d00c545ede609b9d43fdf9f252c15da5a66dac7/hovercard" href="https://github.com/rust-lang/rust/commit/1d00c545ede609b9d43fdf9f252c15da5a66dac7"><tt>1d00c54</tt></a> 2015-01-30 19:56:34 +0000)<br>
binary: rustc<br>
commit-hash: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/1d00c545ede609b9d43fdf9f252c15da5a66dac7/hovercard" href="https://github.com/rust-lang/rust/commit/1d00c545ede609b9d43fdf9f252c15da5a66dac7"><tt>1d00c54</tt></a><br>
commit-date: 2015-01-30 19:56:34 +0000<br>
host: x86_64-apple-darwin<br>
release: 1.0.0-nightly</p> | 1 |
<h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>Current behavior</strong></p>
<ul dir="auto">
<li><a href="babeljs.io/repl">REPL</a>, <a href="https://codesandbox.io/s/babel-repl-custom-plugin-7s08o?file=/src/index.js" rel="nofollow">Codesandbox</a>, or GitHub Repo helps!</li>
</ul>
<p dir="auto"><strong>Input Code</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const some_func = ({arg1, arg2, arg3}: {arg1: string, arg2: string, arg3: string}): string => {
// bruh
}"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-en">some_func</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">{</span>arg1<span class="pl-kos">,</span> arg2<span class="pl-kos">,</span> arg3<span class="pl-kos">}</span>: <span class="pl-kos">{</span><span class="pl-c1">arg1</span>: <span class="pl-s1">string</span><span class="pl-kos">,</span> <span class="pl-c1">arg2</span>: <span class="pl-s1">string</span><span class="pl-kos">,</span> <span class="pl-c1">arg3</span>: <span class="pl-s1">string</span><span class="pl-kos">}</span><span class="pl-kos">)</span>: <span class="pl-s1">string</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-c">// bruh</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">Can be converted parsed and compiled</p>
<p dir="auto"><strong>Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)</strong><br>
Using <code class="notranslate">webpacker</code> + <code class="notranslate">babal-loader</code><br>
Filename: <code class="notranslate">babel_loader_builder.js</code></p>
<details>
<summary>File content</summary>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
const validEnv = ["development", "test", "production"]
const currentEnv = process.env.NODE_ENV || "unknown"
const isDevelopmentEnv = currentEnv === "development"
const isProductionEnv = currentEnv === "production"
const isTestEnv = currentEnv === "test"
if (!validEnv.includes(currentEnv)) {
throw new Error(
"Please specify a valid `NODE_ENV` or " +
"`BABEL_ENV` environment variables. Valid values are \"development\", " +
"\"test\", and \"production\". Instead, received: " +
JSON.stringify(currentEnv) +
"."
)
}
module.exports = (targets, extra_options={}) => {
const generated_options = {
babelrc: false,
presets: [
isTestEnv && [
require("@babel/preset-env").default,
{
targets: {
node: "current",
},
},
],
(isProductionEnv || isDevelopmentEnv) && [
require("@babel/preset-env").default,
{
modules: false,
targets: targets,
forceAllTransforms: false,
useBuiltIns: false,
// Only useful when using `useBuiltIns`
// So setting this to `false` to avoid annoying warning messages
corejs: false,
exclude: ["transform-typeof-symbol"],
// We are specifying mutiple browser target sets
ignoreBrowserslistConfig: true,
},
],
"@babel/preset-flow",
"@babel/preset-typescript",
].filter(Boolean),
plugins: [
// require("babel-plugin-macros"),
require("@babel/plugin-syntax-dynamic-import").default,
isTestEnv && require("babel-plugin-dynamic-import-node"),
require("@babel/plugin-transform-exponentiation-operator").default,
require("@babel/plugin-transform-destructuring").default,
[
require("@babel/plugin-proposal-class-properties").default,
{
loose: true,
},
],
[
require("@babel/plugin-proposal-object-rest-spread").default,
{
useBuiltIns: true,
},
],
[
require("@babel/plugin-transform-runtime").default,
{
helpers: false,
regenerator: true,
// Fix for core-js
// https://github.com/rails/webpacker/pull/2116/files
corejs: false,
},
],
[
require("@babel/plugin-transform-regenerator").default,
{
async: false,
},
],
"syntax-trailing-function-commas",
].filter(Boolean),
}
return {
loader: "babel-loader",
options: Object.assign({}, generated_options, extra_options),
}
}
"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">validEnv</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-s">"development"</span><span class="pl-kos">,</span> <span class="pl-s">"test"</span><span class="pl-kos">,</span> <span class="pl-s">"production"</span><span class="pl-kos">]</span>
<span class="pl-k">const</span> <span class="pl-s1">currentEnv</span> <span class="pl-c1">=</span> <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">NODE_ENV</span> <span class="pl-c1">||</span> <span class="pl-s">"unknown"</span>
<span class="pl-k">const</span> <span class="pl-s1">isDevelopmentEnv</span> <span class="pl-c1">=</span> <span class="pl-s1">currentEnv</span> <span class="pl-c1">===</span> <span class="pl-s">"development"</span>
<span class="pl-k">const</span> <span class="pl-s1">isProductionEnv</span> <span class="pl-c1">=</span> <span class="pl-s1">currentEnv</span> <span class="pl-c1">===</span> <span class="pl-s">"production"</span>
<span class="pl-k">const</span> <span class="pl-s1">isTestEnv</span> <span class="pl-c1">=</span> <span class="pl-s1">currentEnv</span> <span class="pl-c1">===</span> <span class="pl-s">"test"</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-s1">validEnv</span><span class="pl-kos">.</span><span class="pl-en">includes</span><span class="pl-kos">(</span><span class="pl-s1">currentEnv</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-v">Error</span><span class="pl-kos">(</span>
<span class="pl-s">"Please specify a valid `NODE_ENV` or "</span> <span class="pl-c1">+</span>
<span class="pl-s">"`BABEL_ENV` environment variables. Valid values are \"development\", "</span> <span class="pl-c1">+</span>
<span class="pl-s">"\"test\", and \"production\". Instead, received: "</span> <span class="pl-c1">+</span>
<span class="pl-c1">JSON</span><span class="pl-kos">.</span><span class="pl-en">stringify</span><span class="pl-kos">(</span><span class="pl-s1">currentEnv</span><span class="pl-kos">)</span> <span class="pl-c1">+</span>
<span class="pl-s">"."</span>
<span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-en">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">targets</span><span class="pl-kos">,</span> <span class="pl-s1">extra_options</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">generated_options</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">babelrc</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">presets</span>: <span class="pl-kos">[</span>
<span class="pl-s1">isTestEnv</span> <span class="pl-c1">&&</span> <span class="pl-kos">[</span>
<span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"@babel/preset-env"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">targets</span>: <span class="pl-kos">{</span>
<span class="pl-c1">node</span>: <span class="pl-s">"current"</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-s1">isProductionEnv</span> <span class="pl-c1">||</span> <span class="pl-s1">isDevelopmentEnv</span><span class="pl-kos">)</span> <span class="pl-c1">&&</span> <span class="pl-kos">[</span>
<span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"@babel/preset-env"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">modules</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">targets</span>: <span class="pl-s1">targets</span><span class="pl-kos">,</span>
<span class="pl-c1">forceAllTransforms</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">useBuiltIns</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c">// Only useful when using `useBuiltIns`</span>
<span class="pl-c">// So setting this to `false` to avoid annoying warning messages</span>
<span class="pl-c1">corejs</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">exclude</span>: <span class="pl-kos">[</span><span class="pl-s">"transform-typeof-symbol"</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-c">// We are specifying mutiple browser target sets</span>
<span class="pl-c1">ignoreBrowserslistConfig</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/preset-flow"</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-kos">.</span><span class="pl-en">filter</span><span class="pl-kos">(</span><span class="pl-v">Boolean</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">// require("babel-plugin-macros"),</span>
<span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"@babel/plugin-syntax-dynamic-import"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">,</span>
<span class="pl-s1">isTestEnv</span> <span class="pl-c1">&&</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"babel-plugin-dynamic-import-node"</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"@babel/plugin-transform-exponentiation-operator"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">,</span>
<span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"@babel/plugin-transform-destructuring"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span>
<span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"@babel/plugin-proposal-class-properties"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">loose</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span>
<span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"@babel/plugin-proposal-object-rest-spread"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">useBuiltIns</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span>
<span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"@babel/plugin-transform-runtime"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">helpers</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">regenerator</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c">// Fix for core-js</span>
<span class="pl-c">// https://github.com/rails/webpacker/pull/2116/files</span>
<span class="pl-c1">corejs</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span>
<span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"@babel/plugin-transform-regenerator"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">async</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"syntax-trailing-function-commas"</span><span class="pl-kos">,</span>
<span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">filter</span><span class="pl-kos">(</span><span class="pl-v">Boolean</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span>
<span class="pl-k">return</span> <span class="pl-kos">{</span>
<span class="pl-c1">loader</span>: <span class="pl-s">"babel-loader"</span><span class="pl-kos">,</span>
<span class="pl-c1">options</span>: <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">assign</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s1">generated_options</span><span class="pl-kos">,</span> <span class="pl-s1">extra_options</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
</details>
<p dir="auto">File name: <code class="notranslate">.eslintrc.json</code></p>
<details>
<summary>File content</summary>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"parser": "@typescript-eslint/parser",
"plugins": [
"flowtype"
],
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"extends": [
"plugin:flowtype/recommended",
"eslint:recommended"
],
"parserOptions": {
"sourceType": "module"
},
"rules": {
"complexity": ["warn", 10],
"indent": [
"warn",
2,
{
"MemberExpression": 0,
"SwitchCase": 1,
"VariableDeclarator": { "var": 2, "let": 2, "const": 3 },
"CallExpression": {"arguments": "first"},
"ArrayExpression": 1,
"ObjectExpression": 1,
"ImportDeclaration": 1
}
],
"linebreak-style": [
"warn",
"unix"
],
"quotes": [
"warn",
"double"
],
"semi": [
"off"
],
"no-unexpected-multiline": [
"warn"
],
"key-spacing": [
"warn",
{
"afterColon": true,
"mode": "minimum",
"align": "value"
}
],
"strict": [
"warn",
"safe"
],
"no-new-require": [
"warn"
],
"global-require": [
"warn"
],
"no-template-curly-in-string": [
"warn"
],
"no-unsafe-negation": [
"warn"
],
"block-scoped-var": [
"warn"
],
"func-call-spacing": [
"warn",
"never"
],
"no-extra-semi": [
"warn"
],
"no-empty-function": [
"warn"
],
"no-eval": [
"warn"
],
"no-extend-native": [
"warn"
],
"no-floating-decimal": [
"warn"
],
"no-global-assign": [
"warn"
],
"no-implied-eval": [
"warn"
],
"no-lone-blocks": [
"warn"
],
"no-loop-func": [
"warn"
],
"no-param-reassign": [
"warn",
{
"props": false
}
],
"no-return-assign": [
"warn"
],
"no-self-compare": [
"warn"
],
"no-sequences": [
"warn"
],
"no-throw-literal": [
"warn"
],
"no-useless-escape": [
"warn"
],
"no-void": [
"warn"
],
"no-with": [
"warn"
],
"vars-on-top": [
"warn"
],
"no-catch-shadow": [
"warn"
],
"no-label-var": [
"warn"
],
"no-shadow-restricted-names": [
"warn"
],
"no-shadow": [
"warn"
],
"no-undef-init": [
"warn"
],
"no-undefined": [
"warn"
],
"no-use-before-define": [
"warn",
{
"functions": false,
"classes": true
}
],
"comma-dangle": [
"warn",
"always-multiline"
],
"no-eq-null": [
"off"
],
"eqeqeq": [
"warn",
"always",
{"null": "ignore"}
],
"no-import-assign": [
"warn"
],
"prefer-regex-literals": [
"warn"
],
"default-param-last": [
"warn"
],
"no-unused-vars": [
"warn",
{
"vars": "all",
"args": "after-used",
"argsIgnorePattern": "^_"
}
],
"flowtype/space-after-type-colon": [
"off"
],
"flowtype/no-types-missing-file-annotation": "off"
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
}
}
"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-s">"parser"</span>: <span class="pl-s">"@typescript-eslint/parser"</span><span class="pl-kos">,</span>
<span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"flowtype"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"env"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"browser"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-s">"commonjs"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-s">"es6"</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"extends"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"plugin:flowtype/recommended"</span><span class="pl-kos">,</span>
<span class="pl-s">"eslint:recommended"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"parserOptions"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"sourceType"</span>: <span class="pl-s">"module"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"rules"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"complexity"</span>: <span class="pl-kos">[</span><span class="pl-s">"warn"</span><span class="pl-kos">,</span> <span class="pl-c1">10</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"indent"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span><span class="pl-kos">,</span>
<span class="pl-c1">2</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-s">"MemberExpression"</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span>
<span class="pl-s">"SwitchCase"</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span>
<span class="pl-s">"VariableDeclarator"</span>: <span class="pl-kos">{</span> <span class="pl-s">"var"</span>: <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-s">"let"</span>: <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-s">"const"</span>: <span class="pl-c1">3</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"CallExpression"</span>: <span class="pl-kos">{</span><span class="pl-s">"arguments"</span>: <span class="pl-s">"first"</span><span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"ArrayExpression"</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span>
<span class="pl-s">"ObjectExpression"</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span>
<span class="pl-s">"ImportDeclaration"</span>: <span class="pl-c1">1</span>
<span class="pl-kos">}</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"linebreak-style"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span><span class="pl-kos">,</span>
<span class="pl-s">"unix"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"quotes"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span><span class="pl-kos">,</span>
<span class="pl-s">"double"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"semi"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"off"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-unexpected-multiline"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"key-spacing"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-s">"afterColon"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-s">"mode"</span>: <span class="pl-s">"minimum"</span><span class="pl-kos">,</span>
<span class="pl-s">"align"</span>: <span class="pl-s">"value"</span>
<span class="pl-kos">}</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"strict"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span><span class="pl-kos">,</span>
<span class="pl-s">"safe"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-new-require"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"global-require"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-template-curly-in-string"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-unsafe-negation"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"block-scoped-var"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"func-call-spacing"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span><span class="pl-kos">,</span>
<span class="pl-s">"never"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-extra-semi"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-empty-function"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-eval"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-extend-native"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-floating-decimal"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-global-assign"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-implied-eval"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-lone-blocks"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-loop-func"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-param-reassign"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-s">"props"</span>: <span class="pl-c1">false</span>
<span class="pl-kos">}</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-return-assign"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-self-compare"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-sequences"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-throw-literal"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-useless-escape"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-void"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-with"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"vars-on-top"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-catch-shadow"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-label-var"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-shadow-restricted-names"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-shadow"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-undef-init"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-undefined"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-use-before-define"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-s">"functions"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-s">"classes"</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-s">"comma-dangle"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span><span class="pl-kos">,</span>
<span class="pl-s">"always-multiline"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-eq-null"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"off"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"eqeqeq"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span><span class="pl-kos">,</span>
<span class="pl-s">"always"</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span><span class="pl-s">"null"</span>: <span class="pl-s">"ignore"</span><span class="pl-kos">}</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-import-assign"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"prefer-regex-literals"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"default-param-last"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"no-unused-vars"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"warn"</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-s">"vars"</span>: <span class="pl-s">"all"</span><span class="pl-kos">,</span>
<span class="pl-s">"args"</span>: <span class="pl-s">"after-used"</span><span class="pl-kos">,</span>
<span class="pl-s">"argsIgnorePattern"</span>: <span class="pl-s">"^_"</span>
<span class="pl-kos">}</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"flowtype/space-after-type-colon"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"off"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"flowtype/no-types-missing-file-annotation"</span>: <span class="pl-s">"off"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"settings"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"flowtype"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"onlyFilesWithFlowAnnotation"</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
</details>
<p dir="auto"><strong>Environment</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" System:
OS: macOS 10.15.7
Binaries:
Node: 12.18.4 - ~/.nvm/versions/node/v12.18.4/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 6.14.6 - ~/.nvm/versions/node/v12.18.4/bin/npm
npmPackages:
@babel/plugin-proposal-class-properties: >= 7.0.0 => 7.12.1
@babel/plugin-proposal-object-rest-spread: >= 7.0.0 => 7.12.1
@babel/plugin-syntax-dynamic-import: >= 7.0.0 => 7.8.3
@babel/plugin-syntax-flow: >= 7.0.0 => 7.12.1
@babel/plugin-transform-exponentiation-operator: >= 7.0.0 => 7.12.1
@babel/plugin-transform-flow-strip-types: >= 7.0.0 => 7.12.1
@babel/preset-env: >= 1.6.1 => 7.12.1
@babel/preset-flow: ^7.0.0 => 7.12.1
@babel/preset-typescript: ^7.3.3 => 7.12.1
babel-eslint: >= 10.0.1 => 10.1.0
babel-plugin-syntax-trailing-function-commas: >= 6.0.0 => 6.22.0
eslint: >= 5.16.0 => 7.11.0
"><pre class="notranslate"><code class="notranslate"> System:
OS: macOS 10.15.7
Binaries:
Node: 12.18.4 - ~/.nvm/versions/node/v12.18.4/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 6.14.6 - ~/.nvm/versions/node/v12.18.4/bin/npm
npmPackages:
@babel/plugin-proposal-class-properties: >= 7.0.0 => 7.12.1
@babel/plugin-proposal-object-rest-spread: >= 7.0.0 => 7.12.1
@babel/plugin-syntax-dynamic-import: >= 7.0.0 => 7.8.3
@babel/plugin-syntax-flow: >= 7.0.0 => 7.12.1
@babel/plugin-transform-exponentiation-operator: >= 7.0.0 => 7.12.1
@babel/plugin-transform-flow-strip-types: >= 7.0.0 => 7.12.1
@babel/preset-env: >= 1.6.1 => 7.12.1
@babel/preset-flow: ^7.0.0 => 7.12.1
@babel/preset-typescript: ^7.3.3 => 7.12.1
babel-eslint: >= 10.0.1 => 10.1.0
babel-plugin-syntax-trailing-function-commas: >= 6.0.0 => 6.22.0
eslint: >= 5.16.0 => 7.11.0
</code></pre></div>
<ul dir="auto">
<li>Babel version(s): 7.12.1</li>
<li>Node/npm version: Node v12.18.4/npm 6.14.6</li>
<li>OS: OSX 10.15.7</li>
<li>Monorepo: [e.g. yes/no/Lerna]</li>
<li>How you are using Babel: <code class="notranslate">webpacker</code> + <code class="notranslate">babal-loader</code></li>
</ul>
<p dir="auto"><strong>Possible Solution</strong></p>
<p dir="auto"><em>Workarounds not solutions</em></p>
<ul dir="auto">
<li>Revert the upgrade of packages in <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/babel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/babel">@babel</a></li>
<li>Remove type annotations<br>
e.g.</li>
</ul>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const some_func = ({arg1, arg2, arg3}) => {
// bruh
}"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-en">some_func</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">{</span>arg1<span class="pl-kos">,</span> arg2<span class="pl-kos">,</span> arg3<span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-c">// bruh</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Additional context</strong></p>
<p dir="auto">Diff of babel package versions in <code class="notranslate">yarn.lock</code> before/after upgrade</p>
<details>
<summary>Diff content</summary>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="diff --git a/yarn.lock b/yarn.lock
index 20e879d57f..6a0ec253e4 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -14,24 +14,24 @@
dependencies:
"@babel/highlight" "^7.10.4"
-"@babel/compat-data@^7.12.0", "@babel/compat-data@^7.12.1":
+"@babel/compat-data@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.12.1.tgz#d7386a689aa0ddf06255005b4b991988021101a0"
integrity sha512-725AQupWJZ8ba0jbKceeFblZTY90McUBWMwHhkFQ9q1zKPJ95GUktljFcgcsIVwRnTnRKlcYzfiNImg5G9m6ZQ==
"@babel/core@>=7.9.0", "@babel/core@^7.11.1":
- version "7.12.0"
- resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.12.0.tgz#e42e07a086e978cdd4c61f4078d8230fb817cc86"
- integrity sha512-iV7Gwg0DePKvdDZZWRTkj4MW+6/AbVWd4ZCg+zk8H1RVt5xBpUZS6vLQWwb3pyLg4BFTaGiQCPoJ4Ibmbne4fA==
+ version "7.12.1"
+ resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.12.1.tgz#980b115a05929ef3ce1b6af9bf50e5a5cf668667"
+ integrity sha512-6bGmltqzIJrinwRRdczQsMhruSi9Sqty9Te+/5hudn4Izx/JYRhW1QELpR+CIL0gC/c9A7WroH6FmkDGxmWx3w==
dependencies:
"@babel/code-frame" "^7.10.4"
- "@babel/generator" "^7.12.0"
- "@babel/helper-module-transforms" "^7.12.0"
- "@babel/helpers" "^7.10.4"
- "@babel/parser" "^7.12.0"
+ "@babel/generator" "^7.12.1"
+ "@babel/helper-module-transforms" "^7.12.1"
+ "@babel/helpers" "^7.12.1"
+ "@babel/parser" "^7.12.1"
"@babel/template" "^7.10.4"
- "@babel/traverse" "^7.12.0"
- "@babel/types" "^7.12.0"
+ "@babel/traverse" "^7.12.1"
+ "@babel/types" "^7.12.1"
convert-source-map "^1.7.0"
debug "^4.1.0"
gensync "^1.0.0-beta.1"
@@ -41,7 +41,7 @@
semver "^5.4.1"
source-map "^0.5.0"
-"@babel/generator@^7.12.0", "@babel/generator@^7.12.1":
+"@babel/generator@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.12.1.tgz#0d70be32bdaa03d7c51c8597dda76e0df1f15468"
integrity sha512-DB+6rafIdc9o72Yc3/Ph5h+6hUjeOp66pF0naQBgUFFuPqzQwIlPTm3xZR7YNvduIMtkDIj2t21LSQwnbCrXvg==
@@ -65,7 +65,7 @@
"@babel/helper-explode-assignable-expression" "^7.10.4"
"@babel/types" "^7.10.4"
-"@babel/helper-compilation-targets@^7.12.0", "@babel/helper-compilation-targets@^7.12.1":
+"@babel/helper-compilation-targets@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.12.1.tgz#310e352888fbdbdd8577be8dfdd2afb9e7adcf50"
integrity sha512-jtBEif7jsPwP27GPHs06v4WBV0KrE8a/P7n0N0sSvHn2hwUCYnolP/CLmz51IzAW4NlN+HuoBtb9QcwnRo9F/g==
@@ -141,14 +141,14 @@
dependencies:
"@babel/types" "^7.12.1"
-"@babel/helper-module-imports@^7.10.4", "@babel/helper-module-imports@^7.12.1":
+"@babel/helper-module-imports@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.12.1.tgz#1644c01591a15a2f084dd6d092d9430eb1d1216c"
integrity sha512-ZeC1TlMSvikvJNy1v/wPIazCu3NdOwgYZLIkmIyAsGhqkNpiDoQQRmaCK8YP4Pq3GPTLPV9WXaPCJKvx06JxKA==
dependencies:
"@babel/types" "^7.12.1"
-"@babel/helper-module-transforms@^7.12.0", "@babel/helper-module-transforms@^7.12.1":
+"@babel/helper-module-transforms@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.12.1.tgz#7954fec71f5b32c48e4b303b437c34453fd7247c"
integrity sha512-QQzehgFAZ2bbISiCpmVGfiGux8YVFXQ0abBic2Envhej22DVXV9nCFaS5hIQbkyo1AdGb+gNME2TSh3hYJVV/w==
@@ -227,7 +227,7 @@
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz#a78c7a7251e01f616512d31b10adcf52ada5e0d2"
integrity sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw==
-"@babel/helper-validator-option@^7.12.0", "@babel/helper-validator-option@^7.12.1":
+"@babel/helper-validator-option@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.12.1.tgz#175567380c3e77d60ff98a54bb015fe78f2178d9"
integrity sha512-YpJabsXlJVWP0USHjnC/AQDTLlZERbON577YUVO/wLpqyj6HAtVYnWaQaN0iUN+1/tWn3c+uKKXjRut5115Y2A==
@@ -242,14 +242,14 @@
"@babel/traverse" "^7.10.4"
"@babel/types" "^7.10.4"
-"@babel/helpers@^7.10.4":
- version "7.10.4"
- resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.10.4.tgz#2abeb0d721aff7c0a97376b9e1f6f65d7a475044"
- integrity sha512-L2gX/XeUONeEbI78dXSrJzGdz4GQ+ZTA/aazfUsFaWjSe95kiCuOZ5HsXvkiw3iwF+mFHSRUfJU8t6YavocdXA==
+"@babel/helpers@^7.12.1":
+ version "7.12.1"
+ resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.12.1.tgz#8a8261c1d438ec18cb890434df4ec768734c1e79"
+ integrity sha512-9JoDSBGoWtmbay98efmT2+mySkwjzeFeAL9BuWNoVQpkPFQF8SIIFUfY5os9u8wVzglzoiPRSW7cuJmBDUt43g==
dependencies:
"@babel/template" "^7.10.4"
- "@babel/traverse" "^7.10.4"
- "@babel/types" "^7.10.4"
+ "@babel/traverse" "^7.12.1"
+ "@babel/types" "^7.12.1"
"@babel/highlight@^7.10.4", "@babel/highlight@^7.9.0":
version "7.10.4"
@@ -260,17 +260,12 @@
chalk "^2.0.0"
js-tokens "^4.0.0"
-"@babel/parser@^7.10.4", "@babel/parser@^7.12.0", "@babel/parser@^7.12.1":
+"@babel/parser@^7.10.4", "@babel/parser@^7.12.1", "@babel/parser@^7.7.0":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.12.1.tgz#dc03f543a0ed51396d4081463df66ecb3a2efa53"
integrity sha512-xjZsx0sBjb6J2+QkoHI69UeD2EWbsyUW0WyZKOoJ9sBrQLxfOApWEefR9dIVOYJVj97VRXnLKLDvnn3dPDNgww==
-"@babel/parser@^7.7.0":
- version "7.12.0"
- resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.12.0.tgz#2ad388f3960045b22f9b7d4bf85e80b15a1c9e3a"
- integrity sha512-dYmySMYnlus2jwl7JnnajAj11obRStZoW9cG04wh4ZuhozDn11tDUrhHcUZ9iuNHqALAhh60XqNaYXpvuuE/Gg==
-
-"@babel/plugin-proposal-async-generator-functions@^7.10.4", "@babel/plugin-proposal-async-generator-functions@^7.12.1":
+"@babel/plugin-proposal-async-generator-functions@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.12.1.tgz#dc6c1170e27d8aca99ff65f4925bd06b1c90550e"
integrity sha512-d+/o30tJxFxrA1lhzJqiUcEJdI6jKlNregCv5bASeGf2Q4MXmnwH7viDo7nhx1/ohf09oaH8j1GVYG/e3Yqk6A==
@@ -287,7 +282,7 @@
"@babel/helper-create-class-features-plugin" "^7.12.1"
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-proposal-dynamic-import@^7.10.4", "@babel/plugin-proposal-dynamic-import@^7.12.1":
+"@babel/plugin-proposal-dynamic-import@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.12.1.tgz#43eb5c2a3487ecd98c5c8ea8b5fdb69a2749b2dc"
integrity sha512-a4rhUSZFuq5W8/OO8H7BL5zspjnc1FLd9hlOxIK/f7qG4a0qsqk8uvF/ywgBA8/OmjsapjpvaEOYItfGG1qIvQ==
@@ -295,7 +290,7 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-syntax-dynamic-import" "^7.8.0"
-"@babel/plugin-proposal-export-namespace-from@^7.12.0", "@babel/plugin-proposal-export-namespace-from@^7.12.1":
+"@babel/plugin-proposal-export-namespace-from@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.12.1.tgz#8b9b8f376b2d88f5dd774e4d24a5cc2e3679b6d4"
integrity sha512-6CThGf0irEkzujYS5LQcjBx8j/4aQGiVv7J9+2f7pGfxqyKh3WnmVJYW3hdrQjyksErMGBPQrCnHfOtna+WLbw==
@@ -303,7 +298,7 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-syntax-export-namespace-from" "^7.8.3"
-"@babel/plugin-proposal-json-strings@^7.10.4", "@babel/plugin-proposal-json-strings@^7.12.1":
+"@babel/plugin-proposal-json-strings@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.12.1.tgz#d45423b517714eedd5621a9dfdc03fa9f4eb241c"
integrity sha512-GoLDUi6U9ZLzlSda2Df++VSqDJg3CG+dR0+iWsv6XRw1rEq+zwt4DirM9yrxW6XWaTpmai1cWJLMfM8qQJf+yw==
@@ -311,7 +306,7 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-syntax-json-strings" "^7.8.0"
-"@babel/plugin-proposal-logical-assignment-operators@^7.12.0", "@babel/plugin-proposal-logical-assignment-operators@^7.12.1":
+"@babel/plugin-proposal-logical-assignment-operators@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.12.1.tgz#f2c490d36e1b3c9659241034a5d2cd50263a2751"
integrity sha512-k8ZmVv0JU+4gcUGeCDZOGd0lCIamU/sMtIiX3UWnUc5yzgq6YUGyEolNYD+MLYKfSzgECPcqetVcJP9Afe/aCA==
@@ -319,7 +314,7 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-syntax-logical-assignment-operators" "^7.10.4"
-"@babel/plugin-proposal-nullish-coalescing-operator@^7.12.0", "@babel/plugin-proposal-nullish-coalescing-operator@^7.12.1":
+"@babel/plugin-proposal-nullish-coalescing-operator@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.12.1.tgz#3ed4fff31c015e7f3f1467f190dbe545cd7b046c"
integrity sha512-nZY0ESiaQDI1y96+jk6VxMOaL4LPo/QDHBqL+SF3/vl6dHkTwHlOI8L4ZwuRBHgakRBw5zsVylel7QPbbGuYgg==
@@ -327,7 +322,7 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.0"
-"@babel/plugin-proposal-numeric-separator@^7.12.0", "@babel/plugin-proposal-numeric-separator@^7.12.1":
+"@babel/plugin-proposal-numeric-separator@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.12.1.tgz#0e2c6774c4ce48be412119b4d693ac777f7685a6"
integrity sha512-MR7Ok+Af3OhNTCxYVjJZHS0t97ydnJZt/DbR4WISO39iDnhiD8XHrY12xuSJ90FFEGjir0Fzyyn7g/zY6hxbxA==
@@ -335,7 +330,7 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-syntax-numeric-separator" "^7.10.4"
-"@babel/plugin-proposal-object-rest-spread@>= 7.0.0", "@babel/plugin-proposal-object-rest-spread@^7.11.0", "@babel/plugin-proposal-object-rest-spread@^7.12.1":
+"@babel/plugin-proposal-object-rest-spread@>= 7.0.0", "@babel/plugin-proposal-object-rest-spread@^7.10.1", "@babel/plugin-proposal-object-rest-spread@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.12.1.tgz#def9bd03cea0f9b72283dac0ec22d289c7691069"
integrity sha512-s6SowJIjzlhx8o7lsFx5zmY4At6CTtDvgNQDdPzkBQucle58A6b/TTeEBYtyDgmcXjUTM+vE8YOGHZzzbc/ioA==
@@ -344,16 +339,7 @@
"@babel/plugin-syntax-object-rest-spread" "^7.8.0"
"@babel/plugin-transform-parameters" "^7.12.1"
-"@babel/plugin-proposal-object-rest-spread@^7.10.1":
- version "7.11.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.11.0.tgz#bd81f95a1f746760ea43b6c2d3d62b11790ad0af"
- integrity sha512-wzch41N4yztwoRw0ak+37wxwJM2oiIiy6huGCoqkvSTA9acYWcPfn9Y4aJqmFFJ70KTJUu29f3DQ43uJ9HXzEA==
- dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
- "@babel/plugin-syntax-object-rest-spread" "^7.8.0"
- "@babel/plugin-transform-parameters" "^7.10.4"
-
-"@babel/plugin-proposal-optional-catch-binding@^7.10.4", "@babel/plugin-proposal-optional-catch-binding@^7.12.1":
+"@babel/plugin-proposal-optional-catch-binding@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.12.1.tgz#ccc2421af64d3aae50b558a71cede929a5ab2942"
integrity sha512-hFvIjgprh9mMw5v42sJWLI1lzU5L2sznP805zeT6rySVRA0Y18StRhDqhSxlap0oVgItRsB6WSROp4YnJTJz0g==
@@ -361,7 +347,7 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-syntax-optional-catch-binding" "^7.8.0"
-"@babel/plugin-proposal-optional-chaining@^7.12.0", "@babel/plugin-proposal-optional-chaining@^7.12.1":
+"@babel/plugin-proposal-optional-chaining@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.12.1.tgz#cce122203fc8a32794296fc377c6dedaf4363797"
integrity sha512-c2uRpY6WzaVDzynVY9liyykS+kVU+WRZPMPYpkelXH8KBt1oXoI89kPbZKKG/jDT5UK92FTW2fZkZaJhdiBabw==
@@ -370,7 +356,7 @@
"@babel/helper-skip-transparent-expression-wrappers" "^7.12.1"
"@babel/plugin-syntax-optional-chaining" "^7.8.0"
-"@babel/plugin-proposal-private-methods@^7.10.4", "@babel/plugin-proposal-private-methods@^7.12.1":
+"@babel/plugin-proposal-private-methods@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.12.1.tgz#86814f6e7a21374c980c10d38b4493e703f4a389"
integrity sha512-mwZ1phvH7/NHK6Kf8LP7MYDogGV+DKB1mryFOEwx5EBNQrosvIczzZFTUmWaeujd5xT6G1ELYWUz3CutMhjE1w==
@@ -378,7 +364,7 @@
"@babel/helper-create-class-features-plugin" "^7.12.1"
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-proposal-unicode-property-regex@^7.10.4", "@babel/plugin-proposal-unicode-property-regex@^7.12.1", "@babel/plugin-proposal-unicode-property-regex@^7.4.4":
+"@babel/plugin-proposal-unicode-property-regex@^7.12.1", "@babel/plugin-proposal-unicode-property-regex@^7.4.4":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.12.1.tgz#2a183958d417765b9eae334f47758e5d6a82e072"
integrity sha512-MYq+l+PvHuw/rKUz1at/vb6nCnQ2gmJBNaM62z0OgH7B2W1D9pvkpYtlti9bGtizNIU1K3zm4bZF9F91efVY0w==
@@ -393,7 +379,7 @@
dependencies:
"@babel/helper-plugin-utils" "^7.8.0"
-"@babel/plugin-syntax-class-properties@^7.10.4", "@babel/plugin-syntax-class-properties@^7.12.1":
+"@babel/plugin-syntax-class-properties@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.1.tgz#bcb297c5366e79bebadef509549cd93b04f19978"
integrity sha512-U40A76x5gTwmESz+qiqssqmeEsKvcSyvtgktrm0uzcARAmM9I1jR221f6Oq+GmHrcD+LvZDag1UTOTe2fL3TeA==
@@ -470,7 +456,7 @@
dependencies:
"@babel/helper-plugin-utils" "^7.8.0"
-"@babel/plugin-syntax-top-level-await@^7.10.4", "@babel/plugin-syntax-top-level-await@^7.12.1":
+"@babel/plugin-syntax-top-level-await@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.12.1.tgz#dd6c0b357ac1bb142d98537450a319625d13d2a0"
integrity sha512-i7ooMZFS+a/Om0crxZodrTzNEPJHZrlMVGMTEpFAj6rYY/bKCddB0Dk/YxfPuYXOopuhKk/e1jV6h+WUU9XN3A==
@@ -484,14 +470,14 @@
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-arrow-functions@^7.10.4", "@babel/plugin-transform-arrow-functions@^7.12.1":
+"@babel/plugin-transform-arrow-functions@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.12.1.tgz#8083ffc86ac8e777fbe24b5967c4b2521f3cb2b3"
integrity sha512-5QB50qyN44fzzz4/qxDPQMBCTHgxg3n0xRBLJUmBlLoU/sFvxVWGZF/ZUfMVDQuJUKXaBhbupxIzIfZ6Fwk/0A==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-async-to-generator@^7.10.4", "@babel/plugin-transform-async-to-generator@^7.12.1":
+"@babel/plugin-transform-async-to-generator@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.12.1.tgz#3849a49cc2a22e9743cbd6b52926d30337229af1"
integrity sha512-SDtqoEcarK1DFlRJ1hHRY5HvJUj5kX4qmtpMAm2QnhOlyuMC4TMdCRgW6WXpv93rZeYNeLP22y8Aq2dbcDRM1A==
@@ -500,21 +486,21 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/helper-remap-async-to-generator" "^7.12.1"
-"@babel/plugin-transform-block-scoped-functions@^7.10.4", "@babel/plugin-transform-block-scoped-functions@^7.12.1":
+"@babel/plugin-transform-block-scoped-functions@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.12.1.tgz#f2a1a365bde2b7112e0a6ded9067fdd7c07905d9"
integrity sha512-5OpxfuYnSgPalRpo8EWGPzIYf0lHBWORCkj5M0oLBwHdlux9Ri36QqGW3/LR13RSVOAoUUMzoPI/jpE4ABcHoA==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-block-scoping@^7.10.4", "@babel/plugin-transform-block-scoping@^7.12.1":
+"@babel/plugin-transform-block-scoping@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.12.1.tgz#f0ee727874b42a208a48a586b84c3d222c2bbef1"
integrity sha512-zJyAC9sZdE60r1nVQHblcfCj29Dh2Y0DOvlMkcqSo0ckqjiCwNiUezUKw+RjOCwGfpLRwnAeQ2XlLpsnGkvv9w==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-classes@^7.10.4", "@babel/plugin-transform-classes@^7.12.1":
+"@babel/plugin-transform-classes@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.12.1.tgz#65e650fcaddd3d88ddce67c0f834a3d436a32db6"
integrity sha512-/74xkA7bVdzQTBeSUhLLJgYIcxw/dpEpCdRDiHgPJ3Mv6uC11UhjpOhl72CgqbBCmt1qtssCyB2xnJm1+PFjog==
@@ -528,28 +514,21 @@
"@babel/helper-split-export-declaration" "^7.10.4"
globals "^11.1.0"
-"@babel/plugin-transform-computed-properties@^7.10.4", "@babel/plugin-transform-computed-properties@^7.12.1":
+"@babel/plugin-transform-computed-properties@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.12.1.tgz#d68cf6c9b7f838a8a4144badbe97541ea0904852"
integrity sha512-vVUOYpPWB7BkgUWPo4C44mUQHpTZXakEqFjbv8rQMg7TC6S6ZhGZ3otQcRH6u7+adSlE5i0sp63eMC/XGffrzg==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-destructuring@^7.10.1":
- version "7.10.4"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.10.4.tgz#70ddd2b3d1bea83d01509e9bb25ddb3a74fc85e5"
- integrity sha512-+WmfvyfsyF603iPa6825mq6Qrb7uLjTOsa3XOFzlYcYDHSS4QmpOWOL0NNBY5qMbvrcf3tq0Cw+v4lxswOBpgA==
- dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
-
-"@babel/plugin-transform-destructuring@^7.10.4", "@babel/plugin-transform-destructuring@^7.12.1":
+"@babel/plugin-transform-destructuring@^7.10.1", "@babel/plugin-transform-destructuring@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.12.1.tgz#b9a570fe0d0a8d460116413cb4f97e8e08b2f847"
integrity sha512-fRMYFKuzi/rSiYb2uRLiUENJOKq4Gnl+6qOv5f8z0TZXg3llUwUhsNNwrwaT/6dUhJTzNpBr+CUvEWBtfNY1cw==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-dotall-regex@^7.10.4", "@babel/plugin-transform-dotall-regex@^7.12.1", "@babel/plugin-transform-dotall-regex@^7.4.4":
+"@babel/plugin-transform-dotall-regex@^7.12.1", "@babel/plugin-transform-dotall-regex@^7.4.4":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.12.1.tgz#a1d16c14862817b6409c0a678d6f9373ca9cd975"
integrity sha512-B2pXeRKoLszfEW7J4Hg9LoFaWEbr/kzo3teWHmtFCszjRNa/b40f9mfeqZsIDLLt/FjwQ6pz/Gdlwy85xNckBA==
@@ -557,14 +536,14 @@
"@babel/helper-create-regexp-features-plugin" "^7.12.1"
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-duplicate-keys@^7.10.4", "@babel/plugin-transform-duplicate-keys@^7.12.1":
+"@babel/plugin-transform-duplicate-keys@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.12.1.tgz#745661baba295ac06e686822797a69fbaa2ca228"
integrity sha512-iRght0T0HztAb/CazveUpUQrZY+aGKKaWXMJ4uf9YJtqxSUe09j3wteztCUDRHs+SRAL7yMuFqUsLoAKKzgXjw==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-exponentiation-operator@>= 7.0.0", "@babel/plugin-transform-exponentiation-operator@^7.10.4", "@babel/plugin-transform-exponentiation-operator@^7.12.1":
+"@babel/plugin-transform-exponentiation-operator@>= 7.0.0", "@babel/plugin-transform-exponentiation-operator@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.12.1.tgz#b0f2ed356ba1be1428ecaf128ff8a24f02830ae0"
integrity sha512-7tqwy2bv48q+c1EHbXK0Zx3KXd2RVQp6OC7PbwFNt/dPTAV3Lu5sWtWuAj8owr5wqtWnqHfl2/mJlUmqkChKug==
@@ -580,14 +559,14 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-syntax-flow" "^7.12.1"
-"@babel/plugin-transform-for-of@^7.10.4", "@babel/plugin-transform-for-of@^7.12.1":
+"@babel/plugin-transform-for-of@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.12.1.tgz#07640f28867ed16f9511c99c888291f560921cfa"
integrity sha512-Zaeq10naAsuHo7heQvyV0ptj4dlZJwZgNAtBYBnu5nNKJoW62m0zKcIEyVECrUKErkUkg6ajMy4ZfnVZciSBhg==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-function-name@^7.10.4", "@babel/plugin-transform-function-name@^7.12.1":
+"@babel/plugin-transform-function-name@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.12.1.tgz#2ec76258c70fe08c6d7da154003a480620eba667"
integrity sha512-JF3UgJUILoFrFMEnOJLJkRHSk6LUSXLmEFsA23aR2O5CSLUxbeUX1IZ1YQ7Sn0aXb601Ncwjx73a+FVqgcljVw==
@@ -595,21 +574,21 @@
"@babel/helper-function-name" "^7.10.4"
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-literals@^7.10.4", "@babel/plugin-transform-literals@^7.12.1":
+"@babel/plugin-transform-literals@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.12.1.tgz#d73b803a26b37017ddf9d3bb8f4dc58bfb806f57"
integrity sha512-+PxVGA+2Ag6uGgL0A5f+9rklOnnMccwEBzwYFL3EUaKuiyVnUipyXncFcfjSkbimLrODoqki1U9XxZzTvfN7IQ==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-member-expression-literals@^7.10.4", "@babel/plugin-transform-member-expression-literals@^7.12.1":
+"@babel/plugin-transform-member-expression-literals@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.12.1.tgz#496038602daf1514a64d43d8e17cbb2755e0c3ad"
integrity sha512-1sxePl6z9ad0gFMB9KqmYofk34flq62aqMt9NqliS/7hPEpURUCMbyHXrMPlo282iY7nAvUB1aQd5mg79UD9Jg==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-modules-amd@^7.10.4", "@babel/plugin-transform-modules-amd@^7.12.1":
+"@babel/plugin-transform-modules-amd@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.12.1.tgz#3154300b026185666eebb0c0ed7f8415fefcf6f9"
integrity sha512-tDW8hMkzad5oDtzsB70HIQQRBiTKrhfgwC/KkJeGsaNFTdWhKNt/BiE8c5yj19XiGyrxpbkOfH87qkNg1YGlOQ==
@@ -618,7 +597,7 @@
"@babel/helper-plugin-utils" "^7.10.4"
babel-plugin-dynamic-import-node "^2.3.3"
-"@babel/plugin-transform-modules-commonjs@^7.10.4", "@babel/plugin-transform-modules-commonjs@^7.12.1":
+"@babel/plugin-transform-modules-commonjs@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.12.1.tgz#fa403124542636c786cf9b460a0ffbb48a86e648"
integrity sha512-dY789wq6l0uLY8py9c1B48V8mVL5gZh/+PQ5ZPrylPYsnAvnEMjqsUXkuoDVPeVK+0VyGar+D08107LzDQ6pag==
@@ -628,7 +607,7 @@
"@babel/helper-simple-access" "^7.12.1"
babel-plugin-dynamic-import-node "^2.3.3"
-"@babel/plugin-transform-modules-systemjs@^7.12.0", "@babel/plugin-transform-modules-systemjs@^7.12.1":
+"@babel/plugin-transform-modules-systemjs@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.12.1.tgz#663fea620d593c93f214a464cd399bf6dc683086"
integrity sha512-Hn7cVvOavVh8yvW6fLwveFqSnd7rbQN3zJvoPNyNaQSvgfKmDBO9U1YL9+PCXGRlZD9tNdWTy5ACKqMuzyn32Q==
@@ -639,7 +618,7 @@
"@babel/helper-validator-identifier" "^7.10.4"
babel-plugin-dynamic-import-node "^2.3.3"
-"@babel/plugin-transform-modules-umd@^7.10.4", "@babel/plugin-transform-modules-umd@^7.12.1":
+"@babel/plugin-transform-modules-umd@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.12.1.tgz#eb5a218d6b1c68f3d6217b8fa2cc82fec6547902"
integrity sha512-aEIubCS0KHKM0zUos5fIoQm+AZUMt1ZvMpqz0/H5qAQ7vWylr9+PLYurT+Ic7ID/bKLd4q8hDovaG3Zch2uz5Q==
@@ -647,21 +626,21 @@
"@babel/helper-module-transforms" "^7.12.1"
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-named-capturing-groups-regex@^7.10.4", "@babel/plugin-transform-named-capturing-groups-regex@^7.12.1":
+"@babel/plugin-transform-named-capturing-groups-regex@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.12.1.tgz#b407f5c96be0d9f5f88467497fa82b30ac3e8753"
integrity sha512-tB43uQ62RHcoDp9v2Nsf+dSM8sbNodbEicbQNA53zHz8pWUhsgHSJCGpt7daXxRydjb0KnfmB+ChXOv3oADp1Q==
dependencies:
"@babel/helper-create-regexp-features-plugin" "^7.12.1"
-"@babel/plugin-transform-new-target@^7.10.4", "@babel/plugin-transform-new-target@^7.12.1":
+"@babel/plugin-transform-new-target@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.12.1.tgz#80073f02ee1bb2d365c3416490e085c95759dec0"
integrity sha512-+eW/VLcUL5L9IvJH7rT1sT0CzkdUTvPrXC2PXTn/7z7tXLBuKvezYbGdxD5WMRoyvyaujOq2fWoKl869heKjhw==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-object-super@^7.10.4", "@babel/plugin-transform-object-super@^7.12.1":
+"@babel/plugin-transform-object-super@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.12.1.tgz#4ea08696b8d2e65841d0c7706482b048bed1066e"
integrity sha512-AvypiGJH9hsquNUn+RXVcBdeE3KHPZexWRdimhuV59cSoOt5kFBmqlByorAeUlGG2CJWd0U+4ZtNKga/TB0cAw==
@@ -669,35 +648,28 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/helper-replace-supers" "^7.12.1"
-"@babel/plugin-transform-parameters@^7.10.4", "@babel/plugin-transform-parameters@^7.12.1":
+"@babel/plugin-transform-parameters@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.12.1.tgz#d2e963b038771650c922eff593799c96d853255d"
integrity sha512-xq9C5EQhdPK23ZeCdMxl8bbRnAgHFrw5EOC3KJUsSylZqdkCaFEXxGSBuTSObOpiiHHNyb82es8M1QYgfQGfNg==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-property-literals@^7.10.4", "@babel/plugin-transform-property-literals@^7.12.1":
+"@babel/plugin-transform-property-literals@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.12.1.tgz#41bc81200d730abb4456ab8b3fbd5537b59adecd"
integrity sha512-6MTCR/mZ1MQS+AwZLplX4cEySjCpnIF26ToWo942nqn8hXSm7McaHQNeGx/pt7suI1TWOWMfa/NgBhiqSnX0cQ==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-regenerator@^7.10.1":
- version "7.10.4"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.10.4.tgz#2015e59d839074e76838de2159db421966fd8b63"
- integrity sha512-3thAHwtor39A7C04XucbMg17RcZ3Qppfxr22wYzZNcVIkPHfpM9J0SO8zuCV6SZa265kxBJSrfKTvDCYqBFXGw==
- dependencies:
- regenerator-transform "^0.14.2"
-
-"@babel/plugin-transform-regenerator@^7.10.4", "@babel/plugin-transform-regenerator@^7.12.1":
+"@babel/plugin-transform-regenerator@^7.10.1", "@babel/plugin-transform-regenerator@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.12.1.tgz#5f0a28d842f6462281f06a964e88ba8d7ab49753"
integrity sha512-gYrHqs5itw6i4PflFX3OdBPMQdPbF4bj2REIUxlMRUFk0/ZOAIpDFuViuxPjUL7YC8UPnf+XG7/utJvqXdPKng==
dependencies:
regenerator-transform "^0.14.2"
-"@babel/plugin-transform-reserved-words@^7.10.4", "@babel/plugin-transform-reserved-words@^7.12.1":
+"@babel/plugin-transform-reserved-words@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.12.1.tgz#6fdfc8cc7edcc42b36a7c12188c6787c873adcd8"
integrity sha512-pOnUfhyPKvZpVyBHhSBoX8vfA09b7r00Pmm1sH+29ae2hMTKVmSp4Ztsr8KBKjLjx17H0eJqaRC3bR2iThM54A==
@@ -705,23 +677,23 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-transform-runtime@^7.11.0":
- version "7.12.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.12.0.tgz#01f67ea62662e7de401af7567b6054e6a4807d65"
- integrity sha512-BC8wiTo+0kEG8M6wuEBeuG7AIazTan02/Bh4dgi+wdDBE+p2iv5AXO8OUjrwD100223S/2WbALSqj7c290XTKg==
+ version "7.12.1"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.12.1.tgz#04b792057eb460389ff6a4198e377614ea1e7ba5"
+ integrity sha512-Ac/H6G9FEIkS2tXsZjL4RAdS3L3WHxci0usAnz7laPWUmFiGtj7tIASChqKZMHTSQTQY6xDbOq+V1/vIq3QrWg==
dependencies:
- "@babel/helper-module-imports" "^7.10.4"
+ "@babel/helper-module-imports" "^7.12.1"
"@babel/helper-plugin-utils" "^7.10.4"
resolve "^1.8.1"
semver "^5.5.1"
-"@babel/plugin-transform-shorthand-properties@^7.10.4", "@babel/plugin-transform-shorthand-properties@^7.12.1":
+"@babel/plugin-transform-shorthand-properties@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.12.1.tgz#0bf9cac5550fce0cfdf043420f661d645fdc75e3"
integrity sha512-GFZS3c/MhX1OusqB1MZ1ct2xRzX5ppQh2JU1h2Pnfk88HtFTM+TWQqJNfwkmxtPQtb/s1tk87oENfXJlx7rSDw==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-spread@^7.11.0", "@babel/plugin-transform-spread@^7.12.1":
+"@babel/plugin-transform-spread@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.12.1.tgz#527f9f311be4ec7fdc2b79bb89f7bf884b3e1e1e"
integrity sha512-vuLp8CP0BE18zVYjsEBZ5xoCecMK6LBMMxYzJnh01rxQRvhNhH1csMMmBfNo5tGpGO+NhdSNW2mzIvBu3K1fng==
@@ -729,7 +701,7 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/helper-skip-transparent-expression-wrappers" "^7.12.1"
-"@babel/plugin-transform-sticky-regex@^7.10.4", "@babel/plugin-transform-sticky-regex@^7.12.1":
+"@babel/plugin-transform-sticky-regex@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.12.1.tgz#5c24cf50de396d30e99afc8d1c700e8bce0f5caf"
integrity sha512-CiUgKQ3AGVk7kveIaPEET1jNDhZZEl1RPMWdTBE1799bdz++SwqDHStmxfCtDfBhQgCl38YRiSnrMuUMZIWSUQ==
@@ -737,14 +709,14 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/helper-regex" "^7.10.4"
-"@babel/plugin-transform-template-literals@^7.10.4", "@babel/plugin-transform-template-literals@^7.12.1":
+"@babel/plugin-transform-template-literals@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.12.1.tgz#b43ece6ed9a79c0c71119f576d299ef09d942843"
integrity sha512-b4Zx3KHi+taXB1dVRBhVJtEPi9h1THCeKmae2qP0YdUHIFhVjtpqqNfxeVAa1xeHVhAy4SbHxEwx5cltAu5apw==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-typeof-symbol@^7.10.4", "@babel/plugin-transform-typeof-symbol@^7.12.1":
+"@babel/plugin-transform-typeof-symbol@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.12.1.tgz#9ca6be343d42512fbc2e68236a82ae64bc7af78a"
integrity sha512-EPGgpGy+O5Kg5pJFNDKuxt9RdmTgj5sgrus2XVeMp/ZIbOESadgILUbm50SNpghOh3/6yrbsH+NB5+WJTmsA7Q==
@@ -760,14 +732,14 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-syntax-typescript" "^7.12.1"
-"@babel/plugin-transform-unicode-escapes@^7.10.4", "@babel/plugin-transform-unicode-escapes@^7.12.1":
+"@babel/plugin-transform-unicode-escapes@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.12.1.tgz#5232b9f81ccb07070b7c3c36c67a1b78f1845709"
integrity sha512-I8gNHJLIc7GdApm7wkVnStWssPNbSRMPtgHdmH3sRM1zopz09UWPS4x5V4n1yz/MIWTVnJ9sp6IkuXdWM4w+2Q==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-unicode-regex@^7.10.4", "@babel/plugin-transform-unicode-regex@^7.12.1":
+"@babel/plugin-transform-unicode-regex@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.12.1.tgz#cc9661f61390db5c65e3febaccefd5c6ac3faecb"
integrity sha512-SqH4ClNngh/zGwHZOOQMTD+e8FGWexILV+ePMyiDJttAWRh5dhDL8rcl5lSgU3Huiq6Zn6pWTMvdPAb21Dwdyg==
@@ -776,14 +748,14 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/polyfill@^7.0.0":
- version "7.11.5"
- resolved "https://registry.yarnpkg.com/@babel/polyfill/-/polyfill-7.11.5.tgz#df550b2ec53abbc2ed599367ec59e64c7a707bb5"
- integrity sha512-FunXnE0Sgpd61pKSj2OSOs1D44rKTD3pGOfGilZ6LGrrIH0QEtJlTjqOqdF8Bs98JmjfGhni2BBkTfv9KcKJ9g==
+ version "7.12.1"
+ resolved "https://registry.yarnpkg.com/@babel/polyfill/-/polyfill-7.12.1.tgz#1f2d6371d1261bbd961f3c5d5909150e12d0bd96"
+ integrity sha512-X0pi0V6gxLi6lFZpGmeNa4zxtwEmCs42isWLNjZZDE0Y8yVfgu0T2OAHlzBbdYlqbW/YXVvoBHpATEM+goCj8g==
dependencies:
core-js "^2.6.5"
regenerator-runtime "^0.13.4"
-"@babel/preset-env@>= 1.6.1":
+"@babel/preset-env@>= 1.6.1", "@babel/preset-env@^7.11.0":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.12.1.tgz#9c7e5ca82a19efc865384bb4989148d2ee5d7ac2"
integrity sha512-H8kxXmtPaAGT7TyBvSSkoSTUK6RHh61So05SyEbpmr0MCZrsNYn7mGMzzeYoOUCdHzww61k8XBft2TaES+xPLg==
@@ -855,79 +827,6 @@
core-js-compat "^3.6.2"
semver "^5.5.0"
-"@babel/preset-env@^7.11.0":
- version "7.12.0"
- resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.12.0.tgz#7d2d0c4f4a14ca0fd7d905a741070ab4745177b7"
- integrity sha512-jSIHvHSuF+hBUIrvA2/61yIzhH+ceLOXGLTH1nwPvQlso/lNxXsoE/nvrCzY5M77KRzhKegB1CvdhWPZmYDZ5A==
- dependencies:
- "@babel/compat-data" "^7.12.0"
- "@babel/helper-compilation-targets" "^7.12.0"
- "@babel/helper-module-imports" "^7.10.4"
- "@babel/helper-plugin-utils" "^7.10.4"
- "@babel/helper-validator-option" "^7.12.0"
- "@babel/plugin-proposal-async-generator-functions" "^7.10.4"
- "@babel/plugin-proposal-class-properties" "^7.10.4"
- "@babel/plugin-proposal-dynamic-import" "^7.10.4"
- "@babel/plugin-proposal-export-namespace-from" "^7.12.0"
- "@babel/plugin-proposal-json-strings" "^7.10.4"
- "@babel/plugin-proposal-logical-assignment-operators" "^7.12.0"
- "@babel/plugin-proposal-nullish-coalescing-operator" "^7.12.0"
- "@babel/plugin-proposal-numeric-separator" "^7.12.0"
- "@babel/plugin-proposal-object-rest-spread" "^7.11.0"
- "@babel/plugin-proposal-optional-catch-binding" "^7.10.4"
- "@babel/plugin-proposal-optional-chaining" "^7.12.0"
- "@babel/plugin-proposal-private-methods" "^7.10.4"
- "@babel/plugin-proposal-unicode-property-regex" "^7.10.4"
- "@babel/plugin-syntax-async-generators" "^7.8.0"
- "@babel/plugin-syntax-class-properties" "^7.10.4"
- "@babel/plugin-syntax-dynamic-import" "^7.8.0"
- "@babel/plugin-syntax-export-namespace-from" "^7.8.3"
- "@babel/plugin-syntax-json-strings" "^7.8.0"
- "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4"
- "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.0"
- "@babel/plugin-syntax-numeric-separator" "^7.10.4"
- "@babel/plugin-syntax-object-rest-spread" "^7.8.0"
- "@babel/plugin-syntax-optional-catch-binding" "^7.8.0"
- "@babel/plugin-syntax-optional-chaining" "^7.8.0"
- "@babel/plugin-syntax-top-level-await" "^7.10.4"
- "@babel/plugin-transform-arrow-functions" "^7.10.4"
- "@babel/plugin-transform-async-to-generator" "^7.10.4"
- "@babel/plugin-transform-block-scoped-functions" "^7.10.4"
- "@babel/plugin-transform-block-scoping" "^7.10.4"
- "@babel/plugin-transform-classes" "^7.10.4"
- "@babel/plugin-transform-computed-properties" "^7.10.4"
- "@babel/plugin-transform-destructuring" "^7.10.4"
- "@babel/plugin-transform-dotall-regex" "^7.10.4"
- "@babel/plugin-transform-duplicate-keys" "^7.10.4"
- "@babel/plugin-transform-exponentiation-operator" "^7.10.4"
- "@babel/plugin-transform-for-of" "^7.10.4"
- "@babel/plugin-transform-function-name" "^7.10.4"
- "@babel/plugin-transform-literals" "^7.10.4"
- "@babel/plugin-transform-member-expression-literals" "^7.10.4"
- "@babel/plugin-transform-modules-amd" "^7.10.4"
- "@babel/plugin-transform-modules-commonjs" "^7.10.4"
- "@babel/plugin-transform-modules-systemjs" "^7.12.0"
- "@babel/plugin-transform-modules-umd" "^7.10.4"
- "@babel/plugin-transform-named-capturing-groups-regex" "^7.10.4"
- "@babel/plugin-transform-new-target" "^7.10.4"
- "@babel/plugin-transform-object-super" "^7.10.4"
- "@babel/plugin-transform-parameters" "^7.10.4"
- "@babel/plugin-transform-property-literals" "^7.10.4"
- "@babel/plugin-transform-regenerator" "^7.10.4"
- "@babel/plugin-transform-reserved-words" "^7.10.4"
- "@babel/plugin-transform-shorthand-properties" "^7.10.4"
- "@babel/plugin-transform-spread" "^7.11.0"
- "@babel/plugin-transform-sticky-regex" "^7.10.4"
- "@babel/plugin-transform-template-literals" "^7.10.4"
- "@babel/plugin-transform-typeof-symbol" "^7.10.4"
- "@babel/plugin-transform-unicode-escapes" "^7.10.4"
- "@babel/plugin-transform-unicode-regex" "^7.10.4"
- "@babel/preset-modules" "^0.1.3"
- "@babel/types" "^7.12.0"
- browserslist "^4.12.0"
- core-js-compat "^3.6.2"
- semver "^5.5.0"
-
"@babel/preset-flow@^7.0.0":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/preset-flow/-/preset-flow-7.12.1.tgz#1a81d376c5a9549e75352a3888f8c273455ae940"
@@ -955,14 +854,7 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-transform-typescript" "^7.12.1"
-"@babel/runtime@^7.11.2", "@babel/runtime@^7.7.2":
- version "7.12.0"
- resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.0.tgz#98bd7666186969c04be893d747cf4a6c6c8fa6b0"
- integrity sha512-lS4QLXQ2Vbw2ubfQjeQcn+BZgZ5+ROHW9f+DWjEp5Y+NHYmkRGKqHSJ1tuhbUauKu2nhZNTBIvsIQ8dXfY5Gjw==
- dependencies:
- regenerator-runtime "^0.13.4"
-
-"@babel/runtime@^7.8.4":
+"@babel/runtime@^7.11.2", "@babel/runtime@^7.7.2", "@babel/runtime@^7.8.4":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.1.tgz#b4116a6b6711d010b2dad3b7b6e43bf1b9954740"
integrity sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==
@@ -978,7 +870,7 @@
"@babel/parser" "^7.10.4"
"@babel/types" "^7.10.4"
-"@babel/traverse@^7.10.4", "@babel/traverse@^7.12.0", "@babel/traverse@^7.12.1":
+"@babel/traverse@^7.10.4", "@babel/traverse@^7.12.1", "@babel/traverse@^7.7.0":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.12.1.tgz#941395e0c5cc86d5d3e75caa095d3924526f0c1e"
integrity sha512-MA3WPoRt1ZHo2ZmoGKNqi20YnPt0B1S0GTZEPhhd+hw2KGUzBlHuVunj6K4sNuK+reEvyiPwtp0cpaqLzJDmAw==
@@ -993,22 +885,7 @@
globals "^11.1.0"
lodash "^4.17.19"
-"@babel/traverse@^7.7.0":
- version "7.12.0"
- resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.12.0.tgz#ed31953d6e708cdd34443de2fcdb55f72cdfb266"
- integrity sha512-ZU9e79xpOukCNPkQ1UzR4gJKCruGckr6edd8v8lmKpSk8iakgUIvb+5ZtaKKV9f7O+x5r+xbMDDIbzVpUoiIuw==
- dependencies:
- "@babel/code-frame" "^7.10.4"
- "@babel/generator" "^7.12.0"
- "@babel/helper-function-name" "^7.10.4"
- "@babel/helper-split-export-declaration" "^7.11.0"
- "@babel/parser" "^7.12.0"
- "@babel/types" "^7.12.0"
- debug "^4.1.0"
- globals "^11.1.0"
- lodash "^4.17.19"
-
-"@babel/types@^7.10.4", "@babel/types@^7.10.5", "@babel/types@^7.11.0", "@babel/types@^7.12.0", "@babel/types@^7.12.1", "@babel/types@^7.4.4":
+"@babel/types@^7.10.4", "@babel/types@^7.10.5", "@babel/types@^7.11.0", "@babel/types@^7.12.1", "@babel/types@^7.4.4", "@babel/types@^7.7.0":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.12.1.tgz#e109d9ab99a8de735be287ee3d6a9947a190c4ae"
integrity sha512-BzSY3NJBKM4kyatSOWh3D/JJ2O3CVzBybHWxtgxnggaxEuaSTTDqeiSb/xk9lrkw2Tbqyivw5ZU4rT+EfznQsA==
@@ -1017,15 +894,6 @@
lodash "^4.17.19"
to-fast-properties "^2.0.0"
-"@babel/types@^7.7.0":
- version "7.12.0"
- resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.12.0.tgz#b6b49f425ee59043fbc89c61b11a13d5eae7b5c6"
- integrity sha512-ggIyFmT2zMaYRheOfPDQ4gz7QqV3B+t2rjqjbttDJxMcb7/LukvWCmlIl1sWcOxrvwpTDd+z0OytzqsbGeb3/g==
- dependencies:
- "@babel/helper-validator-identifier" "^7.10.4"
- lodash "^4.17.19"
- to-fast-properties "^2.0.0"
-
"@braintree/[email protected]":
version "0.4.4"
resolved "https://registry.yarnpkg.com/@braintree/asset-loader/-/asset-loader-0.4.4.tgz#9a5eda24c3627bfd5c7f7483cd48f0e411dd2f09""><pre class="notranslate"><code class="notranslate">diff --git a/yarn.lock b/yarn.lock
index 20e879d57f..6a0ec253e4 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -14,24 +14,24 @@
dependencies:
"@babel/highlight" "^7.10.4"
-"@babel/compat-data@^7.12.0", "@babel/compat-data@^7.12.1":
+"@babel/compat-data@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.12.1.tgz#d7386a689aa0ddf06255005b4b991988021101a0"
integrity sha512-725AQupWJZ8ba0jbKceeFblZTY90McUBWMwHhkFQ9q1zKPJ95GUktljFcgcsIVwRnTnRKlcYzfiNImg5G9m6ZQ==
"@babel/core@>=7.9.0", "@babel/core@^7.11.1":
- version "7.12.0"
- resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.12.0.tgz#e42e07a086e978cdd4c61f4078d8230fb817cc86"
- integrity sha512-iV7Gwg0DePKvdDZZWRTkj4MW+6/AbVWd4ZCg+zk8H1RVt5xBpUZS6vLQWwb3pyLg4BFTaGiQCPoJ4Ibmbne4fA==
+ version "7.12.1"
+ resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.12.1.tgz#980b115a05929ef3ce1b6af9bf50e5a5cf668667"
+ integrity sha512-6bGmltqzIJrinwRRdczQsMhruSi9Sqty9Te+/5hudn4Izx/JYRhW1QELpR+CIL0gC/c9A7WroH6FmkDGxmWx3w==
dependencies:
"@babel/code-frame" "^7.10.4"
- "@babel/generator" "^7.12.0"
- "@babel/helper-module-transforms" "^7.12.0"
- "@babel/helpers" "^7.10.4"
- "@babel/parser" "^7.12.0"
+ "@babel/generator" "^7.12.1"
+ "@babel/helper-module-transforms" "^7.12.1"
+ "@babel/helpers" "^7.12.1"
+ "@babel/parser" "^7.12.1"
"@babel/template" "^7.10.4"
- "@babel/traverse" "^7.12.0"
- "@babel/types" "^7.12.0"
+ "@babel/traverse" "^7.12.1"
+ "@babel/types" "^7.12.1"
convert-source-map "^1.7.0"
debug "^4.1.0"
gensync "^1.0.0-beta.1"
@@ -41,7 +41,7 @@
semver "^5.4.1"
source-map "^0.5.0"
-"@babel/generator@^7.12.0", "@babel/generator@^7.12.1":
+"@babel/generator@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.12.1.tgz#0d70be32bdaa03d7c51c8597dda76e0df1f15468"
integrity sha512-DB+6rafIdc9o72Yc3/Ph5h+6hUjeOp66pF0naQBgUFFuPqzQwIlPTm3xZR7YNvduIMtkDIj2t21LSQwnbCrXvg==
@@ -65,7 +65,7 @@
"@babel/helper-explode-assignable-expression" "^7.10.4"
"@babel/types" "^7.10.4"
-"@babel/helper-compilation-targets@^7.12.0", "@babel/helper-compilation-targets@^7.12.1":
+"@babel/helper-compilation-targets@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.12.1.tgz#310e352888fbdbdd8577be8dfdd2afb9e7adcf50"
integrity sha512-jtBEif7jsPwP27GPHs06v4WBV0KrE8a/P7n0N0sSvHn2hwUCYnolP/CLmz51IzAW4NlN+HuoBtb9QcwnRo9F/g==
@@ -141,14 +141,14 @@
dependencies:
"@babel/types" "^7.12.1"
-"@babel/helper-module-imports@^7.10.4", "@babel/helper-module-imports@^7.12.1":
+"@babel/helper-module-imports@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.12.1.tgz#1644c01591a15a2f084dd6d092d9430eb1d1216c"
integrity sha512-ZeC1TlMSvikvJNy1v/wPIazCu3NdOwgYZLIkmIyAsGhqkNpiDoQQRmaCK8YP4Pq3GPTLPV9WXaPCJKvx06JxKA==
dependencies:
"@babel/types" "^7.12.1"
-"@babel/helper-module-transforms@^7.12.0", "@babel/helper-module-transforms@^7.12.1":
+"@babel/helper-module-transforms@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.12.1.tgz#7954fec71f5b32c48e4b303b437c34453fd7247c"
integrity sha512-QQzehgFAZ2bbISiCpmVGfiGux8YVFXQ0abBic2Envhej22DVXV9nCFaS5hIQbkyo1AdGb+gNME2TSh3hYJVV/w==
@@ -227,7 +227,7 @@
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz#a78c7a7251e01f616512d31b10adcf52ada5e0d2"
integrity sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw==
-"@babel/helper-validator-option@^7.12.0", "@babel/helper-validator-option@^7.12.1":
+"@babel/helper-validator-option@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.12.1.tgz#175567380c3e77d60ff98a54bb015fe78f2178d9"
integrity sha512-YpJabsXlJVWP0USHjnC/AQDTLlZERbON577YUVO/wLpqyj6HAtVYnWaQaN0iUN+1/tWn3c+uKKXjRut5115Y2A==
@@ -242,14 +242,14 @@
"@babel/traverse" "^7.10.4"
"@babel/types" "^7.10.4"
-"@babel/helpers@^7.10.4":
- version "7.10.4"
- resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.10.4.tgz#2abeb0d721aff7c0a97376b9e1f6f65d7a475044"
- integrity sha512-L2gX/XeUONeEbI78dXSrJzGdz4GQ+ZTA/aazfUsFaWjSe95kiCuOZ5HsXvkiw3iwF+mFHSRUfJU8t6YavocdXA==
+"@babel/helpers@^7.12.1":
+ version "7.12.1"
+ resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.12.1.tgz#8a8261c1d438ec18cb890434df4ec768734c1e79"
+ integrity sha512-9JoDSBGoWtmbay98efmT2+mySkwjzeFeAL9BuWNoVQpkPFQF8SIIFUfY5os9u8wVzglzoiPRSW7cuJmBDUt43g==
dependencies:
"@babel/template" "^7.10.4"
- "@babel/traverse" "^7.10.4"
- "@babel/types" "^7.10.4"
+ "@babel/traverse" "^7.12.1"
+ "@babel/types" "^7.12.1"
"@babel/highlight@^7.10.4", "@babel/highlight@^7.9.0":
version "7.10.4"
@@ -260,17 +260,12 @@
chalk "^2.0.0"
js-tokens "^4.0.0"
-"@babel/parser@^7.10.4", "@babel/parser@^7.12.0", "@babel/parser@^7.12.1":
+"@babel/parser@^7.10.4", "@babel/parser@^7.12.1", "@babel/parser@^7.7.0":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.12.1.tgz#dc03f543a0ed51396d4081463df66ecb3a2efa53"
integrity sha512-xjZsx0sBjb6J2+QkoHI69UeD2EWbsyUW0WyZKOoJ9sBrQLxfOApWEefR9dIVOYJVj97VRXnLKLDvnn3dPDNgww==
-"@babel/parser@^7.7.0":
- version "7.12.0"
- resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.12.0.tgz#2ad388f3960045b22f9b7d4bf85e80b15a1c9e3a"
- integrity sha512-dYmySMYnlus2jwl7JnnajAj11obRStZoW9cG04wh4ZuhozDn11tDUrhHcUZ9iuNHqALAhh60XqNaYXpvuuE/Gg==
-
-"@babel/plugin-proposal-async-generator-functions@^7.10.4", "@babel/plugin-proposal-async-generator-functions@^7.12.1":
+"@babel/plugin-proposal-async-generator-functions@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.12.1.tgz#dc6c1170e27d8aca99ff65f4925bd06b1c90550e"
integrity sha512-d+/o30tJxFxrA1lhzJqiUcEJdI6jKlNregCv5bASeGf2Q4MXmnwH7viDo7nhx1/ohf09oaH8j1GVYG/e3Yqk6A==
@@ -287,7 +282,7 @@
"@babel/helper-create-class-features-plugin" "^7.12.1"
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-proposal-dynamic-import@^7.10.4", "@babel/plugin-proposal-dynamic-import@^7.12.1":
+"@babel/plugin-proposal-dynamic-import@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.12.1.tgz#43eb5c2a3487ecd98c5c8ea8b5fdb69a2749b2dc"
integrity sha512-a4rhUSZFuq5W8/OO8H7BL5zspjnc1FLd9hlOxIK/f7qG4a0qsqk8uvF/ywgBA8/OmjsapjpvaEOYItfGG1qIvQ==
@@ -295,7 +290,7 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-syntax-dynamic-import" "^7.8.0"
-"@babel/plugin-proposal-export-namespace-from@^7.12.0", "@babel/plugin-proposal-export-namespace-from@^7.12.1":
+"@babel/plugin-proposal-export-namespace-from@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.12.1.tgz#8b9b8f376b2d88f5dd774e4d24a5cc2e3679b6d4"
integrity sha512-6CThGf0irEkzujYS5LQcjBx8j/4aQGiVv7J9+2f7pGfxqyKh3WnmVJYW3hdrQjyksErMGBPQrCnHfOtna+WLbw==
@@ -303,7 +298,7 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-syntax-export-namespace-from" "^7.8.3"
-"@babel/plugin-proposal-json-strings@^7.10.4", "@babel/plugin-proposal-json-strings@^7.12.1":
+"@babel/plugin-proposal-json-strings@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.12.1.tgz#d45423b517714eedd5621a9dfdc03fa9f4eb241c"
integrity sha512-GoLDUi6U9ZLzlSda2Df++VSqDJg3CG+dR0+iWsv6XRw1rEq+zwt4DirM9yrxW6XWaTpmai1cWJLMfM8qQJf+yw==
@@ -311,7 +306,7 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-syntax-json-strings" "^7.8.0"
-"@babel/plugin-proposal-logical-assignment-operators@^7.12.0", "@babel/plugin-proposal-logical-assignment-operators@^7.12.1":
+"@babel/plugin-proposal-logical-assignment-operators@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.12.1.tgz#f2c490d36e1b3c9659241034a5d2cd50263a2751"
integrity sha512-k8ZmVv0JU+4gcUGeCDZOGd0lCIamU/sMtIiX3UWnUc5yzgq6YUGyEolNYD+MLYKfSzgECPcqetVcJP9Afe/aCA==
@@ -319,7 +314,7 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-syntax-logical-assignment-operators" "^7.10.4"
-"@babel/plugin-proposal-nullish-coalescing-operator@^7.12.0", "@babel/plugin-proposal-nullish-coalescing-operator@^7.12.1":
+"@babel/plugin-proposal-nullish-coalescing-operator@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.12.1.tgz#3ed4fff31c015e7f3f1467f190dbe545cd7b046c"
integrity sha512-nZY0ESiaQDI1y96+jk6VxMOaL4LPo/QDHBqL+SF3/vl6dHkTwHlOI8L4ZwuRBHgakRBw5zsVylel7QPbbGuYgg==
@@ -327,7 +322,7 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.0"
-"@babel/plugin-proposal-numeric-separator@^7.12.0", "@babel/plugin-proposal-numeric-separator@^7.12.1":
+"@babel/plugin-proposal-numeric-separator@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.12.1.tgz#0e2c6774c4ce48be412119b4d693ac777f7685a6"
integrity sha512-MR7Ok+Af3OhNTCxYVjJZHS0t97ydnJZt/DbR4WISO39iDnhiD8XHrY12xuSJ90FFEGjir0Fzyyn7g/zY6hxbxA==
@@ -335,7 +330,7 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-syntax-numeric-separator" "^7.10.4"
-"@babel/plugin-proposal-object-rest-spread@>= 7.0.0", "@babel/plugin-proposal-object-rest-spread@^7.11.0", "@babel/plugin-proposal-object-rest-spread@^7.12.1":
+"@babel/plugin-proposal-object-rest-spread@>= 7.0.0", "@babel/plugin-proposal-object-rest-spread@^7.10.1", "@babel/plugin-proposal-object-rest-spread@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.12.1.tgz#def9bd03cea0f9b72283dac0ec22d289c7691069"
integrity sha512-s6SowJIjzlhx8o7lsFx5zmY4At6CTtDvgNQDdPzkBQucle58A6b/TTeEBYtyDgmcXjUTM+vE8YOGHZzzbc/ioA==
@@ -344,16 +339,7 @@
"@babel/plugin-syntax-object-rest-spread" "^7.8.0"
"@babel/plugin-transform-parameters" "^7.12.1"
-"@babel/plugin-proposal-object-rest-spread@^7.10.1":
- version "7.11.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.11.0.tgz#bd81f95a1f746760ea43b6c2d3d62b11790ad0af"
- integrity sha512-wzch41N4yztwoRw0ak+37wxwJM2oiIiy6huGCoqkvSTA9acYWcPfn9Y4aJqmFFJ70KTJUu29f3DQ43uJ9HXzEA==
- dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
- "@babel/plugin-syntax-object-rest-spread" "^7.8.0"
- "@babel/plugin-transform-parameters" "^7.10.4"
-
-"@babel/plugin-proposal-optional-catch-binding@^7.10.4", "@babel/plugin-proposal-optional-catch-binding@^7.12.1":
+"@babel/plugin-proposal-optional-catch-binding@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.12.1.tgz#ccc2421af64d3aae50b558a71cede929a5ab2942"
integrity sha512-hFvIjgprh9mMw5v42sJWLI1lzU5L2sznP805zeT6rySVRA0Y18StRhDqhSxlap0oVgItRsB6WSROp4YnJTJz0g==
@@ -361,7 +347,7 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-syntax-optional-catch-binding" "^7.8.0"
-"@babel/plugin-proposal-optional-chaining@^7.12.0", "@babel/plugin-proposal-optional-chaining@^7.12.1":
+"@babel/plugin-proposal-optional-chaining@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.12.1.tgz#cce122203fc8a32794296fc377c6dedaf4363797"
integrity sha512-c2uRpY6WzaVDzynVY9liyykS+kVU+WRZPMPYpkelXH8KBt1oXoI89kPbZKKG/jDT5UK92FTW2fZkZaJhdiBabw==
@@ -370,7 +356,7 @@
"@babel/helper-skip-transparent-expression-wrappers" "^7.12.1"
"@babel/plugin-syntax-optional-chaining" "^7.8.0"
-"@babel/plugin-proposal-private-methods@^7.10.4", "@babel/plugin-proposal-private-methods@^7.12.1":
+"@babel/plugin-proposal-private-methods@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.12.1.tgz#86814f6e7a21374c980c10d38b4493e703f4a389"
integrity sha512-mwZ1phvH7/NHK6Kf8LP7MYDogGV+DKB1mryFOEwx5EBNQrosvIczzZFTUmWaeujd5xT6G1ELYWUz3CutMhjE1w==
@@ -378,7 +364,7 @@
"@babel/helper-create-class-features-plugin" "^7.12.1"
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-proposal-unicode-property-regex@^7.10.4", "@babel/plugin-proposal-unicode-property-regex@^7.12.1", "@babel/plugin-proposal-unicode-property-regex@^7.4.4":
+"@babel/plugin-proposal-unicode-property-regex@^7.12.1", "@babel/plugin-proposal-unicode-property-regex@^7.4.4":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.12.1.tgz#2a183958d417765b9eae334f47758e5d6a82e072"
integrity sha512-MYq+l+PvHuw/rKUz1at/vb6nCnQ2gmJBNaM62z0OgH7B2W1D9pvkpYtlti9bGtizNIU1K3zm4bZF9F91efVY0w==
@@ -393,7 +379,7 @@
dependencies:
"@babel/helper-plugin-utils" "^7.8.0"
-"@babel/plugin-syntax-class-properties@^7.10.4", "@babel/plugin-syntax-class-properties@^7.12.1":
+"@babel/plugin-syntax-class-properties@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.1.tgz#bcb297c5366e79bebadef509549cd93b04f19978"
integrity sha512-U40A76x5gTwmESz+qiqssqmeEsKvcSyvtgktrm0uzcARAmM9I1jR221f6Oq+GmHrcD+LvZDag1UTOTe2fL3TeA==
@@ -470,7 +456,7 @@
dependencies:
"@babel/helper-plugin-utils" "^7.8.0"
-"@babel/plugin-syntax-top-level-await@^7.10.4", "@babel/plugin-syntax-top-level-await@^7.12.1":
+"@babel/plugin-syntax-top-level-await@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.12.1.tgz#dd6c0b357ac1bb142d98537450a319625d13d2a0"
integrity sha512-i7ooMZFS+a/Om0crxZodrTzNEPJHZrlMVGMTEpFAj6rYY/bKCddB0Dk/YxfPuYXOopuhKk/e1jV6h+WUU9XN3A==
@@ -484,14 +470,14 @@
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-arrow-functions@^7.10.4", "@babel/plugin-transform-arrow-functions@^7.12.1":
+"@babel/plugin-transform-arrow-functions@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.12.1.tgz#8083ffc86ac8e777fbe24b5967c4b2521f3cb2b3"
integrity sha512-5QB50qyN44fzzz4/qxDPQMBCTHgxg3n0xRBLJUmBlLoU/sFvxVWGZF/ZUfMVDQuJUKXaBhbupxIzIfZ6Fwk/0A==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-async-to-generator@^7.10.4", "@babel/plugin-transform-async-to-generator@^7.12.1":
+"@babel/plugin-transform-async-to-generator@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.12.1.tgz#3849a49cc2a22e9743cbd6b52926d30337229af1"
integrity sha512-SDtqoEcarK1DFlRJ1hHRY5HvJUj5kX4qmtpMAm2QnhOlyuMC4TMdCRgW6WXpv93rZeYNeLP22y8Aq2dbcDRM1A==
@@ -500,21 +486,21 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/helper-remap-async-to-generator" "^7.12.1"
-"@babel/plugin-transform-block-scoped-functions@^7.10.4", "@babel/plugin-transform-block-scoped-functions@^7.12.1":
+"@babel/plugin-transform-block-scoped-functions@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.12.1.tgz#f2a1a365bde2b7112e0a6ded9067fdd7c07905d9"
integrity sha512-5OpxfuYnSgPalRpo8EWGPzIYf0lHBWORCkj5M0oLBwHdlux9Ri36QqGW3/LR13RSVOAoUUMzoPI/jpE4ABcHoA==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-block-scoping@^7.10.4", "@babel/plugin-transform-block-scoping@^7.12.1":
+"@babel/plugin-transform-block-scoping@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.12.1.tgz#f0ee727874b42a208a48a586b84c3d222c2bbef1"
integrity sha512-zJyAC9sZdE60r1nVQHblcfCj29Dh2Y0DOvlMkcqSo0ckqjiCwNiUezUKw+RjOCwGfpLRwnAeQ2XlLpsnGkvv9w==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-classes@^7.10.4", "@babel/plugin-transform-classes@^7.12.1":
+"@babel/plugin-transform-classes@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.12.1.tgz#65e650fcaddd3d88ddce67c0f834a3d436a32db6"
integrity sha512-/74xkA7bVdzQTBeSUhLLJgYIcxw/dpEpCdRDiHgPJ3Mv6uC11UhjpOhl72CgqbBCmt1qtssCyB2xnJm1+PFjog==
@@ -528,28 +514,21 @@
"@babel/helper-split-export-declaration" "^7.10.4"
globals "^11.1.0"
-"@babel/plugin-transform-computed-properties@^7.10.4", "@babel/plugin-transform-computed-properties@^7.12.1":
+"@babel/plugin-transform-computed-properties@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.12.1.tgz#d68cf6c9b7f838a8a4144badbe97541ea0904852"
integrity sha512-vVUOYpPWB7BkgUWPo4C44mUQHpTZXakEqFjbv8rQMg7TC6S6ZhGZ3otQcRH6u7+adSlE5i0sp63eMC/XGffrzg==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-destructuring@^7.10.1":
- version "7.10.4"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.10.4.tgz#70ddd2b3d1bea83d01509e9bb25ddb3a74fc85e5"
- integrity sha512-+WmfvyfsyF603iPa6825mq6Qrb7uLjTOsa3XOFzlYcYDHSS4QmpOWOL0NNBY5qMbvrcf3tq0Cw+v4lxswOBpgA==
- dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
-
-"@babel/plugin-transform-destructuring@^7.10.4", "@babel/plugin-transform-destructuring@^7.12.1":
+"@babel/plugin-transform-destructuring@^7.10.1", "@babel/plugin-transform-destructuring@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.12.1.tgz#b9a570fe0d0a8d460116413cb4f97e8e08b2f847"
integrity sha512-fRMYFKuzi/rSiYb2uRLiUENJOKq4Gnl+6qOv5f8z0TZXg3llUwUhsNNwrwaT/6dUhJTzNpBr+CUvEWBtfNY1cw==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-dotall-regex@^7.10.4", "@babel/plugin-transform-dotall-regex@^7.12.1", "@babel/plugin-transform-dotall-regex@^7.4.4":
+"@babel/plugin-transform-dotall-regex@^7.12.1", "@babel/plugin-transform-dotall-regex@^7.4.4":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.12.1.tgz#a1d16c14862817b6409c0a678d6f9373ca9cd975"
integrity sha512-B2pXeRKoLszfEW7J4Hg9LoFaWEbr/kzo3teWHmtFCszjRNa/b40f9mfeqZsIDLLt/FjwQ6pz/Gdlwy85xNckBA==
@@ -557,14 +536,14 @@
"@babel/helper-create-regexp-features-plugin" "^7.12.1"
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-duplicate-keys@^7.10.4", "@babel/plugin-transform-duplicate-keys@^7.12.1":
+"@babel/plugin-transform-duplicate-keys@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.12.1.tgz#745661baba295ac06e686822797a69fbaa2ca228"
integrity sha512-iRght0T0HztAb/CazveUpUQrZY+aGKKaWXMJ4uf9YJtqxSUe09j3wteztCUDRHs+SRAL7yMuFqUsLoAKKzgXjw==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-exponentiation-operator@>= 7.0.0", "@babel/plugin-transform-exponentiation-operator@^7.10.4", "@babel/plugin-transform-exponentiation-operator@^7.12.1":
+"@babel/plugin-transform-exponentiation-operator@>= 7.0.0", "@babel/plugin-transform-exponentiation-operator@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.12.1.tgz#b0f2ed356ba1be1428ecaf128ff8a24f02830ae0"
integrity sha512-7tqwy2bv48q+c1EHbXK0Zx3KXd2RVQp6OC7PbwFNt/dPTAV3Lu5sWtWuAj8owr5wqtWnqHfl2/mJlUmqkChKug==
@@ -580,14 +559,14 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-syntax-flow" "^7.12.1"
-"@babel/plugin-transform-for-of@^7.10.4", "@babel/plugin-transform-for-of@^7.12.1":
+"@babel/plugin-transform-for-of@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.12.1.tgz#07640f28867ed16f9511c99c888291f560921cfa"
integrity sha512-Zaeq10naAsuHo7heQvyV0ptj4dlZJwZgNAtBYBnu5nNKJoW62m0zKcIEyVECrUKErkUkg6ajMy4ZfnVZciSBhg==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-function-name@^7.10.4", "@babel/plugin-transform-function-name@^7.12.1":
+"@babel/plugin-transform-function-name@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.12.1.tgz#2ec76258c70fe08c6d7da154003a480620eba667"
integrity sha512-JF3UgJUILoFrFMEnOJLJkRHSk6LUSXLmEFsA23aR2O5CSLUxbeUX1IZ1YQ7Sn0aXb601Ncwjx73a+FVqgcljVw==
@@ -595,21 +574,21 @@
"@babel/helper-function-name" "^7.10.4"
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-literals@^7.10.4", "@babel/plugin-transform-literals@^7.12.1":
+"@babel/plugin-transform-literals@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.12.1.tgz#d73b803a26b37017ddf9d3bb8f4dc58bfb806f57"
integrity sha512-+PxVGA+2Ag6uGgL0A5f+9rklOnnMccwEBzwYFL3EUaKuiyVnUipyXncFcfjSkbimLrODoqki1U9XxZzTvfN7IQ==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-member-expression-literals@^7.10.4", "@babel/plugin-transform-member-expression-literals@^7.12.1":
+"@babel/plugin-transform-member-expression-literals@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.12.1.tgz#496038602daf1514a64d43d8e17cbb2755e0c3ad"
integrity sha512-1sxePl6z9ad0gFMB9KqmYofk34flq62aqMt9NqliS/7hPEpURUCMbyHXrMPlo282iY7nAvUB1aQd5mg79UD9Jg==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-modules-amd@^7.10.4", "@babel/plugin-transform-modules-amd@^7.12.1":
+"@babel/plugin-transform-modules-amd@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.12.1.tgz#3154300b026185666eebb0c0ed7f8415fefcf6f9"
integrity sha512-tDW8hMkzad5oDtzsB70HIQQRBiTKrhfgwC/KkJeGsaNFTdWhKNt/BiE8c5yj19XiGyrxpbkOfH87qkNg1YGlOQ==
@@ -618,7 +597,7 @@
"@babel/helper-plugin-utils" "^7.10.4"
babel-plugin-dynamic-import-node "^2.3.3"
-"@babel/plugin-transform-modules-commonjs@^7.10.4", "@babel/plugin-transform-modules-commonjs@^7.12.1":
+"@babel/plugin-transform-modules-commonjs@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.12.1.tgz#fa403124542636c786cf9b460a0ffbb48a86e648"
integrity sha512-dY789wq6l0uLY8py9c1B48V8mVL5gZh/+PQ5ZPrylPYsnAvnEMjqsUXkuoDVPeVK+0VyGar+D08107LzDQ6pag==
@@ -628,7 +607,7 @@
"@babel/helper-simple-access" "^7.12.1"
babel-plugin-dynamic-import-node "^2.3.3"
-"@babel/plugin-transform-modules-systemjs@^7.12.0", "@babel/plugin-transform-modules-systemjs@^7.12.1":
+"@babel/plugin-transform-modules-systemjs@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.12.1.tgz#663fea620d593c93f214a464cd399bf6dc683086"
integrity sha512-Hn7cVvOavVh8yvW6fLwveFqSnd7rbQN3zJvoPNyNaQSvgfKmDBO9U1YL9+PCXGRlZD9tNdWTy5ACKqMuzyn32Q==
@@ -639,7 +618,7 @@
"@babel/helper-validator-identifier" "^7.10.4"
babel-plugin-dynamic-import-node "^2.3.3"
-"@babel/plugin-transform-modules-umd@^7.10.4", "@babel/plugin-transform-modules-umd@^7.12.1":
+"@babel/plugin-transform-modules-umd@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.12.1.tgz#eb5a218d6b1c68f3d6217b8fa2cc82fec6547902"
integrity sha512-aEIubCS0KHKM0zUos5fIoQm+AZUMt1ZvMpqz0/H5qAQ7vWylr9+PLYurT+Ic7ID/bKLd4q8hDovaG3Zch2uz5Q==
@@ -647,21 +626,21 @@
"@babel/helper-module-transforms" "^7.12.1"
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-named-capturing-groups-regex@^7.10.4", "@babel/plugin-transform-named-capturing-groups-regex@^7.12.1":
+"@babel/plugin-transform-named-capturing-groups-regex@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.12.1.tgz#b407f5c96be0d9f5f88467497fa82b30ac3e8753"
integrity sha512-tB43uQ62RHcoDp9v2Nsf+dSM8sbNodbEicbQNA53zHz8pWUhsgHSJCGpt7daXxRydjb0KnfmB+ChXOv3oADp1Q==
dependencies:
"@babel/helper-create-regexp-features-plugin" "^7.12.1"
-"@babel/plugin-transform-new-target@^7.10.4", "@babel/plugin-transform-new-target@^7.12.1":
+"@babel/plugin-transform-new-target@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.12.1.tgz#80073f02ee1bb2d365c3416490e085c95759dec0"
integrity sha512-+eW/VLcUL5L9IvJH7rT1sT0CzkdUTvPrXC2PXTn/7z7tXLBuKvezYbGdxD5WMRoyvyaujOq2fWoKl869heKjhw==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-object-super@^7.10.4", "@babel/plugin-transform-object-super@^7.12.1":
+"@babel/plugin-transform-object-super@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.12.1.tgz#4ea08696b8d2e65841d0c7706482b048bed1066e"
integrity sha512-AvypiGJH9hsquNUn+RXVcBdeE3KHPZexWRdimhuV59cSoOt5kFBmqlByorAeUlGG2CJWd0U+4ZtNKga/TB0cAw==
@@ -669,35 +648,28 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/helper-replace-supers" "^7.12.1"
-"@babel/plugin-transform-parameters@^7.10.4", "@babel/plugin-transform-parameters@^7.12.1":
+"@babel/plugin-transform-parameters@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.12.1.tgz#d2e963b038771650c922eff593799c96d853255d"
integrity sha512-xq9C5EQhdPK23ZeCdMxl8bbRnAgHFrw5EOC3KJUsSylZqdkCaFEXxGSBuTSObOpiiHHNyb82es8M1QYgfQGfNg==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-property-literals@^7.10.4", "@babel/plugin-transform-property-literals@^7.12.1":
+"@babel/plugin-transform-property-literals@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.12.1.tgz#41bc81200d730abb4456ab8b3fbd5537b59adecd"
integrity sha512-6MTCR/mZ1MQS+AwZLplX4cEySjCpnIF26ToWo942nqn8hXSm7McaHQNeGx/pt7suI1TWOWMfa/NgBhiqSnX0cQ==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-regenerator@^7.10.1":
- version "7.10.4"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.10.4.tgz#2015e59d839074e76838de2159db421966fd8b63"
- integrity sha512-3thAHwtor39A7C04XucbMg17RcZ3Qppfxr22wYzZNcVIkPHfpM9J0SO8zuCV6SZa265kxBJSrfKTvDCYqBFXGw==
- dependencies:
- regenerator-transform "^0.14.2"
-
-"@babel/plugin-transform-regenerator@^7.10.4", "@babel/plugin-transform-regenerator@^7.12.1":
+"@babel/plugin-transform-regenerator@^7.10.1", "@babel/plugin-transform-regenerator@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.12.1.tgz#5f0a28d842f6462281f06a964e88ba8d7ab49753"
integrity sha512-gYrHqs5itw6i4PflFX3OdBPMQdPbF4bj2REIUxlMRUFk0/ZOAIpDFuViuxPjUL7YC8UPnf+XG7/utJvqXdPKng==
dependencies:
regenerator-transform "^0.14.2"
-"@babel/plugin-transform-reserved-words@^7.10.4", "@babel/plugin-transform-reserved-words@^7.12.1":
+"@babel/plugin-transform-reserved-words@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.12.1.tgz#6fdfc8cc7edcc42b36a7c12188c6787c873adcd8"
integrity sha512-pOnUfhyPKvZpVyBHhSBoX8vfA09b7r00Pmm1sH+29ae2hMTKVmSp4Ztsr8KBKjLjx17H0eJqaRC3bR2iThM54A==
@@ -705,23 +677,23 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-transform-runtime@^7.11.0":
- version "7.12.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.12.0.tgz#01f67ea62662e7de401af7567b6054e6a4807d65"
- integrity sha512-BC8wiTo+0kEG8M6wuEBeuG7AIazTan02/Bh4dgi+wdDBE+p2iv5AXO8OUjrwD100223S/2WbALSqj7c290XTKg==
+ version "7.12.1"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.12.1.tgz#04b792057eb460389ff6a4198e377614ea1e7ba5"
+ integrity sha512-Ac/H6G9FEIkS2tXsZjL4RAdS3L3WHxci0usAnz7laPWUmFiGtj7tIASChqKZMHTSQTQY6xDbOq+V1/vIq3QrWg==
dependencies:
- "@babel/helper-module-imports" "^7.10.4"
+ "@babel/helper-module-imports" "^7.12.1"
"@babel/helper-plugin-utils" "^7.10.4"
resolve "^1.8.1"
semver "^5.5.1"
-"@babel/plugin-transform-shorthand-properties@^7.10.4", "@babel/plugin-transform-shorthand-properties@^7.12.1":
+"@babel/plugin-transform-shorthand-properties@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.12.1.tgz#0bf9cac5550fce0cfdf043420f661d645fdc75e3"
integrity sha512-GFZS3c/MhX1OusqB1MZ1ct2xRzX5ppQh2JU1h2Pnfk88HtFTM+TWQqJNfwkmxtPQtb/s1tk87oENfXJlx7rSDw==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-spread@^7.11.0", "@babel/plugin-transform-spread@^7.12.1":
+"@babel/plugin-transform-spread@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.12.1.tgz#527f9f311be4ec7fdc2b79bb89f7bf884b3e1e1e"
integrity sha512-vuLp8CP0BE18zVYjsEBZ5xoCecMK6LBMMxYzJnh01rxQRvhNhH1csMMmBfNo5tGpGO+NhdSNW2mzIvBu3K1fng==
@@ -729,7 +701,7 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/helper-skip-transparent-expression-wrappers" "^7.12.1"
-"@babel/plugin-transform-sticky-regex@^7.10.4", "@babel/plugin-transform-sticky-regex@^7.12.1":
+"@babel/plugin-transform-sticky-regex@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.12.1.tgz#5c24cf50de396d30e99afc8d1c700e8bce0f5caf"
integrity sha512-CiUgKQ3AGVk7kveIaPEET1jNDhZZEl1RPMWdTBE1799bdz++SwqDHStmxfCtDfBhQgCl38YRiSnrMuUMZIWSUQ==
@@ -737,14 +709,14 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/helper-regex" "^7.10.4"
-"@babel/plugin-transform-template-literals@^7.10.4", "@babel/plugin-transform-template-literals@^7.12.1":
+"@babel/plugin-transform-template-literals@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.12.1.tgz#b43ece6ed9a79c0c71119f576d299ef09d942843"
integrity sha512-b4Zx3KHi+taXB1dVRBhVJtEPi9h1THCeKmae2qP0YdUHIFhVjtpqqNfxeVAa1xeHVhAy4SbHxEwx5cltAu5apw==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-typeof-symbol@^7.10.4", "@babel/plugin-transform-typeof-symbol@^7.12.1":
+"@babel/plugin-transform-typeof-symbol@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.12.1.tgz#9ca6be343d42512fbc2e68236a82ae64bc7af78a"
integrity sha512-EPGgpGy+O5Kg5pJFNDKuxt9RdmTgj5sgrus2XVeMp/ZIbOESadgILUbm50SNpghOh3/6yrbsH+NB5+WJTmsA7Q==
@@ -760,14 +732,14 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-syntax-typescript" "^7.12.1"
-"@babel/plugin-transform-unicode-escapes@^7.10.4", "@babel/plugin-transform-unicode-escapes@^7.12.1":
+"@babel/plugin-transform-unicode-escapes@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.12.1.tgz#5232b9f81ccb07070b7c3c36c67a1b78f1845709"
integrity sha512-I8gNHJLIc7GdApm7wkVnStWssPNbSRMPtgHdmH3sRM1zopz09UWPS4x5V4n1yz/MIWTVnJ9sp6IkuXdWM4w+2Q==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-unicode-regex@^7.10.4", "@babel/plugin-transform-unicode-regex@^7.12.1":
+"@babel/plugin-transform-unicode-regex@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.12.1.tgz#cc9661f61390db5c65e3febaccefd5c6ac3faecb"
integrity sha512-SqH4ClNngh/zGwHZOOQMTD+e8FGWexILV+ePMyiDJttAWRh5dhDL8rcl5lSgU3Huiq6Zn6pWTMvdPAb21Dwdyg==
@@ -776,14 +748,14 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/polyfill@^7.0.0":
- version "7.11.5"
- resolved "https://registry.yarnpkg.com/@babel/polyfill/-/polyfill-7.11.5.tgz#df550b2ec53abbc2ed599367ec59e64c7a707bb5"
- integrity sha512-FunXnE0Sgpd61pKSj2OSOs1D44rKTD3pGOfGilZ6LGrrIH0QEtJlTjqOqdF8Bs98JmjfGhni2BBkTfv9KcKJ9g==
+ version "7.12.1"
+ resolved "https://registry.yarnpkg.com/@babel/polyfill/-/polyfill-7.12.1.tgz#1f2d6371d1261bbd961f3c5d5909150e12d0bd96"
+ integrity sha512-X0pi0V6gxLi6lFZpGmeNa4zxtwEmCs42isWLNjZZDE0Y8yVfgu0T2OAHlzBbdYlqbW/YXVvoBHpATEM+goCj8g==
dependencies:
core-js "^2.6.5"
regenerator-runtime "^0.13.4"
-"@babel/preset-env@>= 1.6.1":
+"@babel/preset-env@>= 1.6.1", "@babel/preset-env@^7.11.0":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.12.1.tgz#9c7e5ca82a19efc865384bb4989148d2ee5d7ac2"
integrity sha512-H8kxXmtPaAGT7TyBvSSkoSTUK6RHh61So05SyEbpmr0MCZrsNYn7mGMzzeYoOUCdHzww61k8XBft2TaES+xPLg==
@@ -855,79 +827,6 @@
core-js-compat "^3.6.2"
semver "^5.5.0"
-"@babel/preset-env@^7.11.0":
- version "7.12.0"
- resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.12.0.tgz#7d2d0c4f4a14ca0fd7d905a741070ab4745177b7"
- integrity sha512-jSIHvHSuF+hBUIrvA2/61yIzhH+ceLOXGLTH1nwPvQlso/lNxXsoE/nvrCzY5M77KRzhKegB1CvdhWPZmYDZ5A==
- dependencies:
- "@babel/compat-data" "^7.12.0"
- "@babel/helper-compilation-targets" "^7.12.0"
- "@babel/helper-module-imports" "^7.10.4"
- "@babel/helper-plugin-utils" "^7.10.4"
- "@babel/helper-validator-option" "^7.12.0"
- "@babel/plugin-proposal-async-generator-functions" "^7.10.4"
- "@babel/plugin-proposal-class-properties" "^7.10.4"
- "@babel/plugin-proposal-dynamic-import" "^7.10.4"
- "@babel/plugin-proposal-export-namespace-from" "^7.12.0"
- "@babel/plugin-proposal-json-strings" "^7.10.4"
- "@babel/plugin-proposal-logical-assignment-operators" "^7.12.0"
- "@babel/plugin-proposal-nullish-coalescing-operator" "^7.12.0"
- "@babel/plugin-proposal-numeric-separator" "^7.12.0"
- "@babel/plugin-proposal-object-rest-spread" "^7.11.0"
- "@babel/plugin-proposal-optional-catch-binding" "^7.10.4"
- "@babel/plugin-proposal-optional-chaining" "^7.12.0"
- "@babel/plugin-proposal-private-methods" "^7.10.4"
- "@babel/plugin-proposal-unicode-property-regex" "^7.10.4"
- "@babel/plugin-syntax-async-generators" "^7.8.0"
- "@babel/plugin-syntax-class-properties" "^7.10.4"
- "@babel/plugin-syntax-dynamic-import" "^7.8.0"
- "@babel/plugin-syntax-export-namespace-from" "^7.8.3"
- "@babel/plugin-syntax-json-strings" "^7.8.0"
- "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4"
- "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.0"
- "@babel/plugin-syntax-numeric-separator" "^7.10.4"
- "@babel/plugin-syntax-object-rest-spread" "^7.8.0"
- "@babel/plugin-syntax-optional-catch-binding" "^7.8.0"
- "@babel/plugin-syntax-optional-chaining" "^7.8.0"
- "@babel/plugin-syntax-top-level-await" "^7.10.4"
- "@babel/plugin-transform-arrow-functions" "^7.10.4"
- "@babel/plugin-transform-async-to-generator" "^7.10.4"
- "@babel/plugin-transform-block-scoped-functions" "^7.10.4"
- "@babel/plugin-transform-block-scoping" "^7.10.4"
- "@babel/plugin-transform-classes" "^7.10.4"
- "@babel/plugin-transform-computed-properties" "^7.10.4"
- "@babel/plugin-transform-destructuring" "^7.10.4"
- "@babel/plugin-transform-dotall-regex" "^7.10.4"
- "@babel/plugin-transform-duplicate-keys" "^7.10.4"
- "@babel/plugin-transform-exponentiation-operator" "^7.10.4"
- "@babel/plugin-transform-for-of" "^7.10.4"
- "@babel/plugin-transform-function-name" "^7.10.4"
- "@babel/plugin-transform-literals" "^7.10.4"
- "@babel/plugin-transform-member-expression-literals" "^7.10.4"
- "@babel/plugin-transform-modules-amd" "^7.10.4"
- "@babel/plugin-transform-modules-commonjs" "^7.10.4"
- "@babel/plugin-transform-modules-systemjs" "^7.12.0"
- "@babel/plugin-transform-modules-umd" "^7.10.4"
- "@babel/plugin-transform-named-capturing-groups-regex" "^7.10.4"
- "@babel/plugin-transform-new-target" "^7.10.4"
- "@babel/plugin-transform-object-super" "^7.10.4"
- "@babel/plugin-transform-parameters" "^7.10.4"
- "@babel/plugin-transform-property-literals" "^7.10.4"
- "@babel/plugin-transform-regenerator" "^7.10.4"
- "@babel/plugin-transform-reserved-words" "^7.10.4"
- "@babel/plugin-transform-shorthand-properties" "^7.10.4"
- "@babel/plugin-transform-spread" "^7.11.0"
- "@babel/plugin-transform-sticky-regex" "^7.10.4"
- "@babel/plugin-transform-template-literals" "^7.10.4"
- "@babel/plugin-transform-typeof-symbol" "^7.10.4"
- "@babel/plugin-transform-unicode-escapes" "^7.10.4"
- "@babel/plugin-transform-unicode-regex" "^7.10.4"
- "@babel/preset-modules" "^0.1.3"
- "@babel/types" "^7.12.0"
- browserslist "^4.12.0"
- core-js-compat "^3.6.2"
- semver "^5.5.0"
-
"@babel/preset-flow@^7.0.0":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/preset-flow/-/preset-flow-7.12.1.tgz#1a81d376c5a9549e75352a3888f8c273455ae940"
@@ -955,14 +854,7 @@
"@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-transform-typescript" "^7.12.1"
-"@babel/runtime@^7.11.2", "@babel/runtime@^7.7.2":
- version "7.12.0"
- resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.0.tgz#98bd7666186969c04be893d747cf4a6c6c8fa6b0"
- integrity sha512-lS4QLXQ2Vbw2ubfQjeQcn+BZgZ5+ROHW9f+DWjEp5Y+NHYmkRGKqHSJ1tuhbUauKu2nhZNTBIvsIQ8dXfY5Gjw==
- dependencies:
- regenerator-runtime "^0.13.4"
-
-"@babel/runtime@^7.8.4":
+"@babel/runtime@^7.11.2", "@babel/runtime@^7.7.2", "@babel/runtime@^7.8.4":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.1.tgz#b4116a6b6711d010b2dad3b7b6e43bf1b9954740"
integrity sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==
@@ -978,7 +870,7 @@
"@babel/parser" "^7.10.4"
"@babel/types" "^7.10.4"
-"@babel/traverse@^7.10.4", "@babel/traverse@^7.12.0", "@babel/traverse@^7.12.1":
+"@babel/traverse@^7.10.4", "@babel/traverse@^7.12.1", "@babel/traverse@^7.7.0":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.12.1.tgz#941395e0c5cc86d5d3e75caa095d3924526f0c1e"
integrity sha512-MA3WPoRt1ZHo2ZmoGKNqi20YnPt0B1S0GTZEPhhd+hw2KGUzBlHuVunj6K4sNuK+reEvyiPwtp0cpaqLzJDmAw==
@@ -993,22 +885,7 @@
globals "^11.1.0"
lodash "^4.17.19"
-"@babel/traverse@^7.7.0":
- version "7.12.0"
- resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.12.0.tgz#ed31953d6e708cdd34443de2fcdb55f72cdfb266"
- integrity sha512-ZU9e79xpOukCNPkQ1UzR4gJKCruGckr6edd8v8lmKpSk8iakgUIvb+5ZtaKKV9f7O+x5r+xbMDDIbzVpUoiIuw==
- dependencies:
- "@babel/code-frame" "^7.10.4"
- "@babel/generator" "^7.12.0"
- "@babel/helper-function-name" "^7.10.4"
- "@babel/helper-split-export-declaration" "^7.11.0"
- "@babel/parser" "^7.12.0"
- "@babel/types" "^7.12.0"
- debug "^4.1.0"
- globals "^11.1.0"
- lodash "^4.17.19"
-
-"@babel/types@^7.10.4", "@babel/types@^7.10.5", "@babel/types@^7.11.0", "@babel/types@^7.12.0", "@babel/types@^7.12.1", "@babel/types@^7.4.4":
+"@babel/types@^7.10.4", "@babel/types@^7.10.5", "@babel/types@^7.11.0", "@babel/types@^7.12.1", "@babel/types@^7.4.4", "@babel/types@^7.7.0":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.12.1.tgz#e109d9ab99a8de735be287ee3d6a9947a190c4ae"
integrity sha512-BzSY3NJBKM4kyatSOWh3D/JJ2O3CVzBybHWxtgxnggaxEuaSTTDqeiSb/xk9lrkw2Tbqyivw5ZU4rT+EfznQsA==
@@ -1017,15 +894,6 @@
lodash "^4.17.19"
to-fast-properties "^2.0.0"
-"@babel/types@^7.7.0":
- version "7.12.0"
- resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.12.0.tgz#b6b49f425ee59043fbc89c61b11a13d5eae7b5c6"
- integrity sha512-ggIyFmT2zMaYRheOfPDQ4gz7QqV3B+t2rjqjbttDJxMcb7/LukvWCmlIl1sWcOxrvwpTDd+z0OytzqsbGeb3/g==
- dependencies:
- "@babel/helper-validator-identifier" "^7.10.4"
- lodash "^4.17.19"
- to-fast-properties "^2.0.0"
-
"@braintree/[email protected]":
version "0.4.4"
resolved "https://registry.yarnpkg.com/@braintree/asset-loader/-/asset-loader-0.4.4.tgz#9a5eda24c3627bfd5c7f7483cd48f0e411dd2f09"
</code></pre></div>
</details> | <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/14299682/114135370-c6ea8f80-9926-11eb-8215-cac95178b480.png"><img src="https://user-images.githubusercontent.com/14299682/114135370-c6ea8f80-9926-11eb-8215-cac95178b480.png" alt="image" style="max-width: 100%;"></a></p> | 0 |
<p dir="auto">I am not sure if it's a bug or I am doing something wrong (prob the latter).<br>
I am trying to manually instantiate a component named TodoService.</p>
<p dir="auto">everything is great on the first 2 steps</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" var myProvider = new Provider(TodosService, {
useFactory: (todoAction, http, todoStatsModel, appStore) => {
return new todoAction(TodoAction, http, todoStatsModel, appStore)
},
deps: [TodoAction, Http, TodoStatsModel, AppStore]
});
var injector = Injector.resolveAndCreate([myProvider]);
"><pre class="notranslate"><code class="notranslate"> var myProvider = new Provider(TodosService, {
useFactory: (todoAction, http, todoStatsModel, appStore) => {
return new todoAction(TodoAction, http, todoStatsModel, appStore)
},
deps: [TodoAction, Http, TodoStatsModel, AppStore]
});
var injector = Injector.resolveAndCreate([myProvider]);
</code></pre></div>
<p dir="auto">but blows up when I try to get it so I can use it</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" var myTodoService = injector.get(TodosService)"><pre class="notranslate"><code class="notranslate"> var myTodoService = injector.get(TodosService)
</code></pre></div>
<p dir="auto">am I doing something wrong (possible on the get)?</p>
<p dir="auto">tx</p>
<p dir="auto">Sean.</p> | <p dir="auto">In the task 'modules/build.dart/pubspec' we do copy the pubspec to the build folder and launch <code class="notranslate">pub get</code> when the pubspec is modified.</p>
<p dir="auto">It might happen that a pubspec depends on a pubspec that has not been copied yet, see <a href="https://travis-ci.org/angular/angular/builds/39469889#L227" rel="nofollow">https://travis-ci.org/angular/angular/builds/39469889#L227</a>. Here, benchmark depends on facade but the pubspec of facade is not yet copied in the build folder which make the build fail.</p> | 0 |
<p dir="auto"><strong>Description</strong></p>
<p dir="auto">Host the helm chart in <code class="notranslate">/chart</code> directory on artifacthub or any helm registry.</p>
<p dir="auto"><strong>Use case / motivation</strong></p>
<p dir="auto">I want to be able to install this helm chart from a helm repository instead of having to maintain a private repo that I manually sync with the upstream.</p>
<p dir="auto"><strong>Are you willing to submit a PR?</strong></p>
<p dir="auto">I can create a PR to generate a helm chart repo using Github Pages, but this is not ideal for something as mature as Airflow.</p> | <p dir="auto"><strong>Description</strong></p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mik-laj/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mik-laj">@mik-laj</a> Hi <g-emoji class="g-emoji" alias="wave" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44b.png">👋</g-emoji> I was just coming to this repo to see if you're interested in help getting the Helm chart repo set up to replace the chart in <code class="notranslate">stable</code>.</p>
<p dir="auto">Stable repo is nearing the end of it's deprecation period, and I'm glad to see a version of the Airflow chart is already here. See <a href="https://github.com/helm/charts/issues/21103">https://github.com/helm/charts/issues/21103</a> for the meta issue tracking moving all the <code class="notranslate">stable</code> repo charts to new homes.</p>
<h3 dir="auto">To-do</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Decide on hosting options below (self-host/leverage Bitnami)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> If self-host, set up CI/CD for chart-testing and chart-releasing</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> if self-host, list in Helm Hub (<a href="http://hub.helm.sh/" rel="nofollow">http://hub.helm.sh/</a>) and Artifact Hub (<a href="https://artifacthub.io/" rel="nofollow">https://artifacthub.io/</a>)</li>
</ul>
<p dir="auto"><strong>Use case / motivation</strong></p>
<h3 dir="auto">Set up Helm repo hosting for your chart</h3>
<p dir="auto">Set up a Helm repo, either as a separate git repo in your org, or keeping the same setup you have now. We have created Helm chart repo actions for chart testing (CI) and releasing chart packages as your own GitHub-hosted Helm repo (CD).</p>
<h4 dir="auto">Self-hosted options:</h4>
<ol dir="auto">
<li>If we either move the chart to a separate git repo in the artifacthub gh org, or even move the hub github pages setting to a branch other than the main one, we can use the <a href="https://github.com/helm/chart-releaser-action">@helm/chart-releaser-action</a> GitHub Action to automate the helm repo.</li>
<li>If we keep structure as-is, we can still use the <a href="https://github.com/helm/chart-releaser">helm/chart-releaser</a> project, just with a custom script.</li>
</ol>
<p dir="auto">For either option we can also use the <a href="https://github.com/helm/chart-testing-action">@helm/chart-testing-action</a> to wrap the chart-testing project <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mattfarina/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mattfarina">@mattfarina</a> mentioned above. Here's an demo repo to see how they work together: <a href="https://github.com/helm/charts-repo-actions-demo">https://github.com/helm/charts-repo-actions-demo</a></p>
<p dir="auto">Whichever option you decide I'm make a PR if it helps.</p>
<p dir="auto">If you do decide to host your own Helm repo, you will also want to list it in</p>
<h4 dir="auto">Alternatively leverage existing Bitnami Helm repo</h4>
<p dir="auto">There is also a version of the chart maintained by Bitnami, who have been very involved in the <code class="notranslate">stable</code> repo for years, but : <a href="https://github.com/bitnami/charts/tree/master/bitnami/airflow">https://github.com/bitnami/charts/tree/master/bitnami/airflow</a>. You could instead decide to leverage that chart as the canonical source, and not host your own. It is also fine to have multiple instances of a chart to install the same app.</p>
<p dir="auto"><strong>Related Issues</strong></p>
<ul dir="auto">
<li><a href="https://github.com/helm/charts/issues/21103">https://github.com/helm/charts/issues/21103</a></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="684063498" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/10486" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/10486/hovercard" href="https://github.com/apache/airflow/issues/10486">#10486</a></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="681111247" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/10379" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/10379/hovercard" href="https://github.com/apache/airflow/issues/10379">#10379</a></li>
</ul> | 1 |
<p dir="auto">Challenge <a href="http://beta.freecodecamp.com/challenges/bonfire-sorted-union" rel="nofollow">http://beta.freecodecamp.com/challenges/bonfire-sorted-union</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">After solving Sorted Union, I clicked the option to go to the next challenge from the green success pop-up. This error was displayed.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7513132/9211729/34d82ff6-4041-11e5-93a2-b2d30bc82d53.png"><img src="https://cloud.githubusercontent.com/assets/7513132/9211729/34d82ff6-4041-11e5-93a2-b2d30bc82d53.png" alt="screen shot 2015-08-11 at 3 53 21 pm" style="max-width: 100%;"></a></p> | <p dir="auto">It won't go to the next excercise after you done It right. It gives You a 404: We couldn't find a challenge with the name <code class="notranslate">undefined</code> Please double check the name.message</p> | 1 |
<p dir="auto">The following:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="`${foo}`"><pre class="notranslate"><span class="pl-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">foo</span><span class="pl-kos">}</span></span>`</span></pre></div>
<p dir="auto"><a href="http://babeljs.io/repl/#?experimental=true&evaluate=true&loose=false&spec=false&code=%60%24%7Bfoo%7D%60" rel="nofollow">transpiles</a> to:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""" + foo;"><pre class="notranslate"><span class="pl-s">""</span> <span class="pl-c1">+</span> <span class="pl-s1">foo</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">However, concatenating to an empty string actually calls <code class="notranslate">valueOf</code>, not <code class="notranslate">toString</code>, and as such is not correct. See the following JS:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var x = { toString: function () { return NaN; }, valueOf: function () { return Infinity; }};
[x.toString(), x + '', String(x)]
/* note that only the third item is both a string, and the toString value */"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-en">toString</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-v">NaN</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">valueOf</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-v">Infinity</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-s1">x</span><span class="pl-kos">.</span><span class="pl-en">toString</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">x</span> <span class="pl-c1">+</span> <span class="pl-s">''</span><span class="pl-kos">,</span> <span class="pl-v">String</span><span class="pl-kos">(</span><span class="pl-s1">x</span><span class="pl-kos">)</span><span class="pl-kos">]</span>
<span class="pl-c">/* note that only the third item is both a string, and the toString value */</span></pre></div>
<p dir="auto">It should transpile to:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="String(foo)"><pre class="notranslate"><span class="pl-v">String</span><span class="pl-kos">(</span><span class="pl-s1">foo</span><span class="pl-kos">)</span></pre></div> | <p dir="auto">Say I have the object,</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let x = {
toString() { return 'String' },
valueOf() { return 4; }
};
`${x}`;"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-en">toString</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">'String'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-en">valueOf</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">4</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">x</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Expected result:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="'String'"><pre class="notranslate"><span class="pl-s">'String'</span></pre></div>
<p dir="auto">Actual result:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="'4'"><pre class="notranslate"><span class="pl-s">'4'</span></pre></div>
<p dir="auto">We should be calling <code class="notranslate">String(x)</code> for all the variables.</p> | 1 |
<p dir="auto">I tried to load RAG according to the documentation.</p>
<p dir="auto"><code class="notranslate">retriever = RagRetriever.from_pretrained("facebook/rag-token-base", index_name="exact", use_dummy_dataset=True)</code></p>
<p dir="auto">The above line gave the following error.</p>
<p dir="auto"><strong>/python3.6/site-packages/transformers/retrieval_rag.py", line 220, in init<br>
self.dataset = load_dataset(<br>
NameError: name 'load_dataset' is not defined</strong></p> | <h2 dir="auto">Environment info</h2>
<ul dir="auto">
<li><code class="notranslate">transformers</code> version: 3.3.1</li>
<li>Platform: Linux-4.19.112+-x86_64-with-Ubuntu-18.04-bionic</li>
<li>Python version: 3.6.9</li>
<li>PyTorch version (GPU?): 1.6.0+cu101 (True)</li>
<li>Tensorflow version (GPU?): 2.3.0 (True)</li>
<li>Using GPU in script?: Yes</li>
<li>Using distributed or parallel set-up in script?: No</li>
</ul>
<h3 dir="auto">Who can help</h3>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/julien-c/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/julien-c">@julien-c</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/VictorSanh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/VictorSanh">@VictorSanh</a></p>
<h2 dir="auto">Information</h2>
<p dir="auto">Model I am using RAG</p>
<p dir="auto">The problem arises when using:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> the official example scripts: (give details below)</li>
</ul>
<h2 dir="auto">To reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>Open a new colab notebook</li>
<li>!pip install transformers</li>
<li>execute the RAG model example code</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
tokenizer = RagTokenizer.from_pretrained("facebook/rag-token-nq")
retriever = RagRetriever.from_pretrained("facebook/rag-token-nq", index_name="exact", use_dummy_dataset=True)
model = RagTokenForGeneration.from_pretrained("facebook/rag-token-nq", retriever=retriever)
input_dict = tokenizer.prepare_seq2seq_batch("who holds the record in 100m freestyle", return_tensors="pt")
generated = model.generate(input_ids=input_dict["input_ids"])
print(tokenizer.batch_decode(generated, skip_special_tokens=True)[0]) "><pre lang="from" class="notranslate"><code class="notranslate">
tokenizer = RagTokenizer.from_pretrained("facebook/rag-token-nq")
retriever = RagRetriever.from_pretrained("facebook/rag-token-nq", index_name="exact", use_dummy_dataset=True)
model = RagTokenForGeneration.from_pretrained("facebook/rag-token-nq", retriever=retriever)
input_dict = tokenizer.prepare_seq2seq_batch("who holds the record in 100m freestyle", return_tensors="pt")
generated = model.generate(input_ids=input_dict["input_ids"])
print(tokenizer.batch_decode(generated, skip_special_tokens=True)[0])
</code></pre></div>
<p dir="auto">error traceback</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="NameError Traceback (most recent call last)
<ipython-input-5-fcc46db034ee> in <module>()
2
3 tokenizer = RagTokenizer.from_pretrained("facebook/rag-token-nq")
----> 4 retriever = RagRetriever.from_pretrained("facebook/rag-token-nq", index_name="exact", use_dummy_dataset=True)
5 model = RagTokenForGeneration.from_pretrained("facebook/rag-token-nq", retriever=retriever)
6
2 frames
/usr/local/lib/python3.6/dist-packages/transformers/retrieval_rag.py in __init__(self, dataset_name, dataset_split, index_name, vector_size, index_path, use_dummy_dataset)
218
219 logger.info("Loading passages from {}".format(self.dataset_name))
--> 220 self.dataset = load_dataset(
221 self.dataset_name, with_index=False, split=self.dataset_split, dummy=self.use_dummy_dataset
222 )
NameError: name 'load_dataset' is not defined"><pre class="notranslate"><code class="notranslate">NameError Traceback (most recent call last)
<ipython-input-5-fcc46db034ee> in <module>()
2
3 tokenizer = RagTokenizer.from_pretrained("facebook/rag-token-nq")
----> 4 retriever = RagRetriever.from_pretrained("facebook/rag-token-nq", index_name="exact", use_dummy_dataset=True)
5 model = RagTokenForGeneration.from_pretrained("facebook/rag-token-nq", retriever=retriever)
6
2 frames
/usr/local/lib/python3.6/dist-packages/transformers/retrieval_rag.py in __init__(self, dataset_name, dataset_split, index_name, vector_size, index_path, use_dummy_dataset)
218
219 logger.info("Loading passages from {}".format(self.dataset_name))
--> 220 self.dataset = load_dataset(
221 self.dataset_name, with_index=False, split=self.dataset_split, dummy=self.use_dummy_dataset
222 )
NameError: name 'load_dataset' is not defined
</code></pre></div>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">I would expect the model card example to be output:</p>
<h1 dir="auto">should give michael phelps => sounds reasonable</h1>
<p dir="auto">or something to this effect.</p> | 1 |
<p dir="auto">I just found window's size will be wrong when setup <code class="notranslate">use-content-size</code> with <code class="notranslate">x</code> and <code class="notranslate">y</code> together.</p>
<p dir="auto">When I write:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" var mainWindow = new BrowserWindow( {
title: "Fireball-x",
width: 800,
height: 600,
'use-content-size': true,
// x: 10,
// y: 10,
} );"><pre class="notranslate"> <span class="pl-k">var</span> <span class="pl-s1">mainWindow</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">BrowserWindow</span><span class="pl-kos">(</span> <span class="pl-kos">{</span>
<span class="pl-c1">title</span>: <span class="pl-s">"Fireball-x"</span><span class="pl-kos">,</span>
<span class="pl-c1">width</span>: <span class="pl-c1">800</span><span class="pl-kos">,</span>
<span class="pl-c1">height</span>: <span class="pl-c1">600</span><span class="pl-kos">,</span>
<span class="pl-s">'use-content-size'</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c">// x: 10,</span>
<span class="pl-c">// y: 10,</span>
<span class="pl-kos">}</span> <span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Things are correct, the page-content size will be 600 height and window size will be a little larger than it. But once I put x, y in the options above, <code class="notranslate">use-content-size</code> will loose its effect.</p>
<p dir="auto">I guess this is a bug in atom-shell. I test this in v0.22.2, in Mac OSX. I haven't test this in Windows yet.</p> | <p dir="auto">Not critical since one can set 'show: false' in the constructor and set the position later on before showing the BrowserWindow, but a bug nonetheless.</p> | 1 |
<p dir="auto">When trying to spawn several thousand tasks on OS X 10.9.4 I get this error (duplicate a few dozen times at once):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="task '<unnamed>' failed at 'could not initialize task_rng: couldn't open file (Too many open files; path=/dev/urandom; mode=open; access=read)', /opt/local/var/macports/build/_opt_mports_dports_lang_rust/rust/work/rust/src/libstd/rand/mod.rs:342"><pre class="notranslate"><code class="notranslate">task '<unnamed>' failed at 'could not initialize task_rng: couldn't open file (Too many open files; path=/dev/urandom; mode=open; access=read)', /opt/local/var/macports/build/_opt_mports_dports_lang_rust/rust/work/rust/src/libstd/rand/mod.rs:342
</code></pre></div>
<p dir="auto">Reproducible for me with this code:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
fn process_errors() {
let path = "file.log";
let mut file = BufferedReader::new(File::open(&Path::new(path)));
let lines: Vec<String> = file.lines().map(|x| x.unwrap()).collect();
let len = lines.len();
let sharedLines = Arc::new(lines);
let (tx, rx) = channel();
for i in range(0, len) {
let share = sharedLines.clone();
let tx = tx.clone();
spawn(proc() {
let s = (*share)[i].as_slice();
let decoded: ErrorJson = json::decode(s).ok().expect(format!("failed to parse line {}", s).as_slice());
let re = regex!(r"needed string (.+) other string");
for caps in re.captures_iter(decoded.message.as_slice()) {
tx.send(caps.at(1).to_string());
return;
}
tx.send("".to_string());
});
}
}"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">process_errors</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> path = <span class="pl-s">"file.log"</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-k">mut</span> file = <span class="pl-smi">BufferedReader</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-smi">File</span><span class="pl-kos">::</span><span class="pl-en">open</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-smi">Path</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span>path<span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> lines<span class="pl-kos">:</span> <span class="pl-smi">Vec</span><span class="pl-kos"><</span><span class="pl-smi">String</span><span class="pl-kos">></span> = file<span class="pl-kos">.</span><span class="pl-en">lines</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span>|x| x<span class="pl-kos">.</span><span class="pl-en">unwrap</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">collect</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> len = lines<span class="pl-kos">.</span><span class="pl-en">len</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> sharedLines = <span class="pl-smi">Arc</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span>lines<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-kos">(</span>tx<span class="pl-kos">,</span> rx<span class="pl-kos">)</span> = <span class="pl-en">channel</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">for</span> i <span class="pl-k">in</span> <span class="pl-en">range</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> len<span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> share = sharedLines<span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> tx = tx<span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">spawn</span><span class="pl-kos">(</span><span class="pl-en">proc</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> s = <span class="pl-kos">(</span><span class="pl-c1">*</span>share<span class="pl-kos">)</span><span class="pl-kos">[</span>i<span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">as_slice</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> decoded<span class="pl-kos">:</span> <span class="pl-smi">ErrorJson</span> = json<span class="pl-kos">::</span><span class="pl-en">decode</span><span class="pl-kos">(</span>s<span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">ok</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-en">format</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"failed to parse line {}"</span>, s<span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">as_slice</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> re = <span class="pl-en">regex</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">r"needed string (.+) other string"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">for</span> caps <span class="pl-k">in</span> re<span class="pl-kos">.</span><span class="pl-en">captures_iter</span><span class="pl-kos">(</span>decoded<span class="pl-kos">.</span><span class="pl-c1">message</span><span class="pl-kos">.</span><span class="pl-en">as_slice</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
tx<span class="pl-kos">.</span><span class="pl-en">send</span><span class="pl-kos">(</span>caps<span class="pl-kos">.</span><span class="pl-en">at</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">to_string</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">return</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
tx<span class="pl-kos">.</span><span class="pl-en">send</span><span class="pl-kos">(</span><span class="pl-s">""</span><span class="pl-kos">.</span><span class="pl-en">to_string</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"><code class="notranslate">file.log</code> contains a few thousand lines of <code class="notranslate">"\n"</code>-separated JSON objects.</p>
<p dir="auto">Output of <code class="notranslate">rustc --version</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc 0.12.0-pre (5fb2dfaa2 2014-08-25 12:10:56 +0000)"><pre class="notranslate"><code class="notranslate">rustc 0.12.0-pre (5fb2dfaa2 2014-08-25 12:10:56 +0000)
</code></pre></div> | <p dir="auto">This is an unnecessary corner of the language, the only remaining use of the <code class="notranslate">check</code> keyword. I know I have misexplained the difference between <code class="notranslate">alt</code> and <code class="notranslate">alt check</code> before.</p>
<p dir="auto"><code class="notranslate">alt check</code> is a bit of an anti-pattern because it:</p>
<ul dir="auto">
<li>Indicates that enums aren't factored correctly. With case classes we should have more control to prevent this kind of problem.</li>
<li>Encourages non-exhaustive matches which are only discovered at runtime.</li>
<li>Doesn't provide any documentation about why other cases don't matter.</li>
</ul>
<p dir="auto">Which is clearer?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="alt check foo {
bar => baz
}"><pre class="notranslate"><code class="notranslate">alt check foo {
bar => baz
}
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="alt foo {
bar => baz,
_ => fail "this shouldn't happen because ..."
}"><pre class="notranslate"><code class="notranslate">alt foo {
bar => baz,
_ => fail "this shouldn't happen because ..."
}
</code></pre></div>
<p dir="auto">The first requires explaination. The second says exactly what the fallthrough behavior is, occurs syntactically where the fallthrough behavior occurs, and is more natural to write (once you've written all the cases you intend to cover you then write the fallthrough case instead of going back to the top of the structure and changing it).</p> | 0 |
<p dir="auto">I have following structure</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="└───src
├───external
│ └───lib
└───App
├───Class"><pre class="notranslate"><code class="notranslate">└───src
├───external
│ └───lib
└───App
├───Class
</code></pre></div>
<p dir="auto"><code class="notranslate">src/external/lib/</code> contains 2 files, <code class="notranslate">lib.js</code> and <code class="notranslate">lib.d.ts</code>.<br>
In <code class="notranslate">src/App/Class/Class.ts</code> I am importing <code class="notranslate">../../external/lib/lib</code> and it works fine, but generates following structure:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="└───dist
└───App
├───Class"><pre class="notranslate"><code class="notranslate">└───dist
└───App
├───Class
</code></pre></div>
<p dir="auto">With JS files in <code class="notranslate">dist/App/Class</code>. My config is:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"compilerOptions": {
"module": "commonjs",
"sourceMap": false,
"target": "ES5",
"noImplicitAny": true,
"outDir": "./dist",
"rootDir": "./src"
},
"files": [
"src/main.ts"
]
}"><pre class="notranslate">{
<span class="pl-ent">"compilerOptions"</span>: {
<span class="pl-ent">"module"</span>: <span class="pl-s"><span class="pl-pds">"</span>commonjs<span class="pl-pds">"</span></span>,
<span class="pl-ent">"sourceMap"</span>: <span class="pl-c1">false</span>,
<span class="pl-ent">"target"</span>: <span class="pl-s"><span class="pl-pds">"</span>ES5<span class="pl-pds">"</span></span>,
<span class="pl-ent">"noImplicitAny"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"outDir"</span>: <span class="pl-s"><span class="pl-pds">"</span>./dist<span class="pl-pds">"</span></span>,
<span class="pl-ent">"rootDir"</span>: <span class="pl-s"><span class="pl-pds">"</span>./src<span class="pl-pds">"</span></span>
},
<span class="pl-ent">"files"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>src/main.ts<span class="pl-pds">"</span></span>
]
}</pre></div>
<p dir="auto">So I thought what <code class="notranslate">rootDir</code> property should solve this problem and transfer entire structure to <code class="notranslate">dist</code> folder. Am I doing something wrong?</p> | <p dir="auto">Copied from CodePlex#1369</p>
<p dir="auto">The current ES6 and TypeScript syntax for classes makes it difficult to perform any meaningful modifications to a function that is a member of a class without extreme effort. Libraries such as ember.js added additional properties to the Function prototype to augment the function with additional capabilities, but this is not feasible in the class syntax.</p>
<p dir="auto">Something like Python decorators provide a possible mechanism to solve this problem. As per PEP-318, decorators allow you to define a function that can be applied to another function in place. For example, a naïve logging decorator might look like this:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// decorator
function log(fn: Function, metadata: DecoratorMetadata) {
return function(...args: any[]) {
console.log(metadata.name);
return fn.apply(this, args);
}
}
class A {
// decorator application
@log foo() {
}
}
// execution
var a = new A();
a.foo(); // LOG: foo "><pre class="notranslate"><span class="pl-c">// decorator</span>
<span class="pl-k">function</span> <span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">fn</span>: <span class="pl-smi">Function</span><span class="pl-kos">,</span> <span class="pl-s1">metadata</span>: <span class="pl-smi">DecoratorMetadata</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-k">function</span><span class="pl-kos">(</span>...<span class="pl-s1">args</span>: <span class="pl-smi">any</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">metadata</span><span class="pl-kos">.</span><span class="pl-c1">name</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-s1">fn</span><span class="pl-kos">.</span><span class="pl-en">apply</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-s1">args</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span>
<span class="pl-c">// decorator application</span>
@<span class="pl-s1">log</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-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-c">// execution</span>
<span class="pl-k">var</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">A</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">a</span><span class="pl-kos">.</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-c">// LOG: foo </span></pre></div>
<p dir="auto">This provides a capability that allows for very expressive development against the class syntax that is far beyond C#-style attributes and allows for a number of uses including (but not limited to): logging, binding, composition, testing, control over ES5 property descriptors, AOP-like join-points, etc.</p>
<p dir="auto">In addition to the general syntax borrowed from Python, a TypeScript decorator would accept an additional piece of metadata in the form of a DecoratorMetadata object, which contains contextual information about the target that is being decorated (such as a function, class, method, getter, setter, or even fields and parameters).</p> | 0 |
<pre class="notranslate"><a href="http://play.golang.org/p/kSqOMI9a_6" rel="nofollow">http://play.golang.org/p/kSqOMI9a_6</a>
Expected output:
prog.go:4: s declared and not used
But the compiler is silent.
This is an implementation restriction, and a compiler may be free to restrict or not.
That said, given the specification of the restriction, this is not consistent with the
usage checks that gc already does.
We may not be able to fix this since it may invalidate code that is now compiling.</pre> | <p dir="auto">by <strong><a href="mailto:[email protected]">[email protected]</a></strong>:</p>
<pre class="notranslate">This is a feature request to pre-empt a common programming bug.
It is quite easy to inadvertently use the shorthand assignment operator (:=) inside a
function to assign to a global variable. This creates a separate local variable with the
same name and, in certain scenarios, the effects of this bug can be quite subtle.
In the interests of code quality -- and given the general aversion to compiler warnings
-- perhaps explicit var declarations should be required for a local variable that shares
the same name as a global variables.</pre> | 0 |
<h2 dir="auto">Steps to Reproduce</h2>
<ol dir="auto">
<li>
<p dir="auto">.Download and install the new beta branch of flutter</p>
</li>
<li>
<p dir="auto">Try to run a new flutter application.</p>
</li>
</ol>
<h2 dir="auto">Logs</h2>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26831659/47947627-22d6b000-df46-11e8-9b9c-358d0fa7de37.png"><img src="https://user-images.githubusercontent.com/26831659/47947627-22d6b000-df46-11e8-9b9c-358d0fa7de37.png" alt="error" style="max-width: 100%;"></a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> | <p dir="auto">flutter doctor -v</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel dev, v0.8.2, on Mac OS X 10.14 18A384a, locale en-US)
• Flutter version 0.8.2 at /Volumes/Persistence/Library/Google/flutter
• Framework revision 5ab9e70727 (5 days ago), 2018-09-07 12:33:05 -0700
• Engine revision 58a1894a1c
• Dart version 2.1.0-dev.3.1.flutter-760a9690c2
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
• Android SDK at /Volumes/Persistence/Library/Google/Android/SDK
• Android NDK at /Volumes/Persistence/Library/Google/Android/SDK/ndk-bundle
• Platform android-28, build-tools 28.0.2
• Java binary at: /Volumes/Persistence/Applications/Android Studio 3.2 Preview.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
• Xcode at /Volumes/Persistence/Applications/Xcode-beta.app/Contents/Developer
• Xcode 10.0, Build version 10L232m
• ios-deploy 2.0.0
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] Android Studio
• Android Studio at /Applications/ExternalApplications/Android Studio 3.2 Preview.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[✓] Android Studio
• Android Studio at /Applications/ExternalApplications/Android Studio 3.3 Preview.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
[✓] Android Studio
• Android Studio at /Volumes/Persistence/Applications/Android Studio 3.2 Preview.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.2.3)
• IntelliJ at /Applications/ExternalApplications/IntelliJ IDEA.app
• Flutter plugin version 27.1.3
• Dart plugin version 182.3911.37
[✓] Connected devices (1 available)
• iPhone X • 93C07E0B-D6EB-4715-972B-15909CEF4E91 • ios • iOS 12.0 (simulator)
• No issues found!"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel dev, v0.8.2, on Mac OS X 10.14 18A384a, locale en-US)
• Flutter version 0.8.2 at /Volumes/Persistence/Library/Google/flutter
• Framework revision 5ab9e70727 (5 days ago), 2018-09-07 12:33:05 -0700
• Engine revision 58a1894a1c
• Dart version 2.1.0-dev.3.1.flutter-760a9690c2
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
• Android SDK at /Volumes/Persistence/Library/Google/Android/SDK
• Android NDK at /Volumes/Persistence/Library/Google/Android/SDK/ndk-bundle
• Platform android-28, build-tools 28.0.2
• Java binary at: /Volumes/Persistence/Applications/Android Studio 3.2 Preview.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
• Xcode at /Volumes/Persistence/Applications/Xcode-beta.app/Contents/Developer
• Xcode 10.0, Build version 10L232m
• ios-deploy 2.0.0
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] Android Studio
• Android Studio at /Applications/ExternalApplications/Android Studio 3.2 Preview.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[✓] Android Studio
• Android Studio at /Applications/ExternalApplications/Android Studio 3.3 Preview.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
[✓] Android Studio
• Android Studio at /Volumes/Persistence/Applications/Android Studio 3.2 Preview.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.2.3)
• IntelliJ at /Applications/ExternalApplications/IntelliJ IDEA.app
• Flutter plugin version 27.1.3
• Dart plugin version 182.3911.37
[✓] Connected devices (1 available)
• iPhone X • 93C07E0B-D6EB-4715-972B-15909CEF4E91 • ios • iOS 12.0 (simulator)
• No issues found!
</code></pre></div>
<p dir="auto">project setup<br>
project gradle dependencies</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" classpath 'com.android.tools.build:gradle:3.3.0-alpha10'
// classpath 'com.android.tools.build:gradle:3.1.2'
classpath 'com.google.gms:google-services:4.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version""><pre class="notranslate"><code class="notranslate"> classpath 'com.android.tools.build:gradle:3.3.0-alpha10'
// classpath 'com.android.tools.build:gradle:3.1.2'
classpath 'com.google.gms:google-services:4.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
</code></pre></div>
<p dir="auto">gradle: <code class="notranslate">gradle-4.10.1-all.zip</code></p>
<p dir="auto">console output:<br>
flutter build apk --debug:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Initializing gradle... 2.3s
Resolving dependencies... 8.1s
The Gradle project does not define a task suitable for the requested build.
Review the android/app/build.gradle file and ensure it defines a debug build type.
Running 'gradlew null'...
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
... repeated for couple times...
FAILURE: Build failed with an exception.
* What went wrong:
Task 'null' not found in root project 'android'.
* Try:
Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 5s
6.0s
Gradle build failed: 1"><pre class="notranslate"><code class="notranslate">Initializing gradle... 2.3s
Resolving dependencies... 8.1s
The Gradle project does not define a task suitable for the requested build.
Review the android/app/build.gradle file and ensure it defines a debug build type.
Running 'gradlew null'...
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
... repeated for couple times...
FAILURE: Build failed with an exception.
* What went wrong:
Task 'null' not found in root project 'android'.
* Try:
Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 5s
6.0s
Gradle build failed: 1
</code></pre></div>
<p dir="auto">./gradlew :app:tasks from andorid dir</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="assemble - Assemble main outputs for all the variants.
assembleAndroidTest - Assembles all the Test applications.
assembleBeta - Assembles main outputs for all Beta variants.
assembleDebug - Assembles main outputs for all Debug variants.
assembleDev - Assembles main outputs for all Dev variants.
assembleDynamicProfile - Assembles main outputs for all DynamicProfile variants.
assembleDynamicRelease - Assembles main outputs for all DynamicRelease variants.
assembleFree - Assembles main outputs for all Free variants.
assembleFreeBeta - Assembles main outputs for all FreeBeta variants.
assembleFreeDev - Assembles main outputs for all FreeDev variants.
assembleFreeStable - Assembles main outputs for all FreeStable variants.
assemblePaid - Assembles main outputs for all Paid variants.
assemblePaidBeta - Assembles main outputs for all PaidBeta variants.
assemblePaidDev - Assembles main outputs for all PaidDev variants.
assemblePaidStable - Assembles main outputs for all PaidStable variants.
assembleProfile - Assembles main outputs for all Profile variants.
assembleRelease - Assembles main outputs for all Release variants.
assembleStable - Assembles main outputs for all Stable variants."><pre class="notranslate"><code class="notranslate">assemble - Assemble main outputs for all the variants.
assembleAndroidTest - Assembles all the Test applications.
assembleBeta - Assembles main outputs for all Beta variants.
assembleDebug - Assembles main outputs for all Debug variants.
assembleDev - Assembles main outputs for all Dev variants.
assembleDynamicProfile - Assembles main outputs for all DynamicProfile variants.
assembleDynamicRelease - Assembles main outputs for all DynamicRelease variants.
assembleFree - Assembles main outputs for all Free variants.
assembleFreeBeta - Assembles main outputs for all FreeBeta variants.
assembleFreeDev - Assembles main outputs for all FreeDev variants.
assembleFreeStable - Assembles main outputs for all FreeStable variants.
assemblePaid - Assembles main outputs for all Paid variants.
assemblePaidBeta - Assembles main outputs for all PaidBeta variants.
assemblePaidDev - Assembles main outputs for all PaidDev variants.
assemblePaidStable - Assembles main outputs for all PaidStable variants.
assembleProfile - Assembles main outputs for all Profile variants.
assembleRelease - Assembles main outputs for all Release variants.
assembleStable - Assembles main outputs for all Stable variants.
</code></pre></div>
<p dir="auto">./gradlew :app:assembleFreeDevDebug:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Could not find google-services.json while looking in [src/free/beta/release, src/freeBeta/release, src/release/freeBeta, src/free/release, src/free/beta, src/free/betaRelease, src/freeBeta, src/release, src/freeBetaRelease, src/free, src/freeRelease]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Could not find google-services.json while looking in [src/free/beta/profile, src/freeBeta/profile, src/profile/freeBeta, src/free/profile, src/free/beta, src/free/betaProfile, src/freeBeta, src/profile, src/freeBetaProfile, src/free, src/freeProfile]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Could not find google-services.json while looking in [src/free/beta/dynamicRelease, src/freeBeta/dynamicRelease, src/dynamicRelease/freeBeta, src/free/dynamicRelease, src/free/beta, src/free/betaDynamicRelease, src/freeBeta, src/dynamicRelease, src/freeBetaDynamicRelease, src/free, src/freeDynamicRelease]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
> Task :app:processFreeDevDebugGoogleServices
Parsing json file: /Volumes/Persistence/Data/Workspace/Flutter/Mine/recorder_flutter/recorder/android/app/google-services.json
BUILD SUCCESSFUL in 17s
229 actionable tasks: 11 executed, 218 up-to-date"><pre class="notranslate"><code class="notranslate">registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Could not find google-services.json while looking in [src/free/beta/release, src/freeBeta/release, src/release/freeBeta, src/free/release, src/free/beta, src/free/betaRelease, src/freeBeta, src/release, src/freeBetaRelease, src/free, src/freeRelease]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Could not find google-services.json while looking in [src/free/beta/profile, src/freeBeta/profile, src/profile/freeBeta, src/free/profile, src/free/beta, src/free/betaProfile, src/freeBeta, src/profile, src/freeBetaProfile, src/free, src/freeProfile]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Could not find google-services.json while looking in [src/free/beta/dynamicRelease, src/freeBeta/dynamicRelease, src/dynamicRelease/freeBeta, src/free/dynamicRelease, src/free/beta, src/free/betaDynamicRelease, src/freeBeta, src/dynamicRelease, src/freeBetaDynamicRelease, src/free, src/freeDynamicRelease]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
> Task :app:processFreeDevDebugGoogleServices
Parsing json file: /Volumes/Persistence/Data/Workspace/Flutter/Mine/recorder_flutter/recorder/android/app/google-services.json
BUILD SUCCESSFUL in 17s
229 actionable tasks: 11 executed, 218 up-to-date
</code></pre></div> | 0 |
<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">Code that used to work flawlessly for replacing tick locations and labels on a log axis now seems to merely add to the default labels, so both now appear in the plot.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
from matplotlib import pyplot as plt
# set the axis limits
xmin = -100 # min temperature to plot
xmax = 40 # max temperature
ymin = 100 # min pressure
ymax = 1000 # max pressure
plt.axis([xmin, xmax, ymax, ymin])
plt.semilogy()
# make lists of tick values and tick labels
plist = range(ymin,ymax,100)
plabels = []
for p in plist:
plabels.append(str(p))
plt.yticks(plist,plabels)
x = [xmin, xmax]
y = [ymin, ymax]
plt.plot(x, y)
plt.show()
"><pre class="notranslate"><code class="notranslate">
from matplotlib import pyplot as plt
# set the axis limits
xmin = -100 # min temperature to plot
xmax = 40 # max temperature
ymin = 100 # min pressure
ymax = 1000 # max pressure
plt.axis([xmin, xmax, ymax, ymin])
plt.semilogy()
# make lists of tick values and tick labels
plist = range(ymin,ymax,100)
plabels = []
for p in plist:
plabels.append(str(p))
plt.yticks(plist,plabels)
x = [xmin, xmax]
y = [ymin, ymax]
plt.plot(x, y)
plt.show()
</code></pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2342020/31042868-4b415baa-a566-11e7-8811-72dbd12a5d37.png"><img width="401" alt="untitled 2" src="https://user-images.githubusercontent.com/2342020/31042868-4b415baa-a566-11e7-8811-72dbd12a5d37.png" style="max-width: 100%;"></a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# If applicable, paste the console output here
#
#"><pre class="notranslate"><code class="notranslate"># If applicable, paste the console output here
#
#
</code></pre></div>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">There should be no overwriting of custom labels with the default scientific notation labels. It did work correctly about a year ago, but I cannot say what version of Matplotlib was being used at that time.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating System: Mac osx-64</li>
<li>Matplotlib Version: 2.0.2</li>
<li>Python Version: 2.7.12</li>
<li>Jupyter Version (if applicable): 4.3.0</li>
<li>Other Libraries:</li>
</ul>
<p dir="auto">conda install matplotlib</p> | <h3 dir="auto">Bug report</h3>
<p dir="auto">When setting a scatter plot's y axis to log-scale in matplotlib 2.0.0, it is <em>data dependent</em> as to whether y tick labels can be removed or not.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
# create fake data
MIN, MAX = 13, 100
y = np.linspace(MIN, MAX, num=50)
x = np.arange(len(y))
# plot it
fig = plt.figure()
fig.suptitle('matplotlib %s (range %d - %d)' % (mpl.__version__, MIN, MAX))
plot = fig.add_subplot(111)
plot.scatter(x, y)
plot.set_yscale('log') # set log-scale y axis
plot.set_yticks([]) # disable y ticklabels (FIXME: silent failure on mpl 2.0.0)
plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">as</span> <span class="pl-s1">mpl</span>
<span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-c"># create fake data</span>
<span class="pl-v">MIN</span>, <span class="pl-v">MAX</span> <span class="pl-c1">=</span> <span class="pl-c1">13</span>, <span class="pl-c1">100</span>
<span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-v">MIN</span>, <span class="pl-v">MAX</span>, <span class="pl-s1">num</span><span class="pl-c1">=</span><span class="pl-c1">50</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-en">len</span>(<span class="pl-s1">y</span>))
<span class="pl-c"># plot it</span>
<span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>()
<span class="pl-s1">fig</span>.<span class="pl-en">suptitle</span>(<span class="pl-s">'matplotlib %s (range %d - %d)'</span> <span class="pl-c1">%</span> (<span class="pl-s1">mpl</span>.<span class="pl-s1">__version__</span>, <span class="pl-v">MIN</span>, <span class="pl-v">MAX</span>))
<span class="pl-s1">plot</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">add_subplot</span>(<span class="pl-c1">111</span>)
<span class="pl-s1">plot</span>.<span class="pl-en">scatter</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>)
<span class="pl-s1">plot</span>.<span class="pl-en">set_yscale</span>(<span class="pl-s">'log'</span>) <span class="pl-c"># set log-scale y axis</span>
<span class="pl-s1">plot</span>.<span class="pl-en">set_yticks</span>([]) <span class="pl-c"># disable y ticklabels (FIXME: silent failure on mpl 2.0.0)</span>
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<p dir="auto">This animation illustrates driving the above code, starting with values 1-100, up to values 20-100. Note that y ticklabels are successfully removed for lower values, then the ticklabels appear for minimum y values of 13 and above.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/647785/22634480/10b1aa08-ebdf-11e6-8d9c-116bafa86ef2.gif"><img src="https://cloud.githubusercontent.com/assets/647785/22634480/10b1aa08-ebdf-11e6-8d9c-116bafa86ef2.gif" alt="mpl_log_test_2 0 0_anim" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">Note that I've tried several different approaches to remove the y ticklabels, but the labels always reappear given certain input data. Even when I set my own <code class="notranslate">ScalarFormatter()</code> for custom labeling (which is my real goal), the default scientific notation labels are still rendered "on top of" my own labels.</p>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">Expected outcome is that y ticklabels would never appear, regardless of the values being plotted.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>matplotlib 2.0.0 (bug is <em>not</em> present in 1.5.3)</li>
<li>Mac OS X 10.9.5</li>
<li>python.org Python 2.7.13</li>
<li>all dependencies installed using <code class="notranslate">pip</code></li>
</ul> | 1 |
<p dir="auto">This may only end up applying on Android, since iOS doesn't really have dropdown pickers:<br>
<a href="https://developer.apple.com/ios/human-interface-guidelines/ui-controls/pickers/" rel="nofollow">https://developer.apple.com/ios/human-interface-guidelines/ui-controls/pickers/</a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11857803/23090795/730d01ea-f55b-11e6-8852-2dc4a21d8c90.gif"><img src="https://cloud.githubusercontent.com/assets/11857803/23090795/730d01ea-f55b-11e6-8852-2dc4a21d8c90.gif" alt="picker_keyboard mov" data-animated-image="" style="max-width: 100%;"></a></p> | <h2 dir="auto">Steps to Reproduce</h2>
<ol dir="auto">
<li>Have a column, fill it with some form fields, in the bottom put a textfield and after that a dropdown.</li>
<li>Tap on textfield comes before dropdown and then keyboard shows up, scroll below and tap on dropdown and see the menu items floating up in the air.</li>
</ol>
<p dir="auto"><strong>Expected results:</strong> <br>
I would like to see the menu items follow their dropdown button after keyboard's gone.</p>
<p dir="auto"><strong>Actual results:</strong> <br>
I see dropdown menu items are floating up in the air when keyboard was closed.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3411015/86370712-bc5ce480-bc88-11ea-92dc-359d37bc3a59.gif"><img src="https://user-images.githubusercontent.com/3411015/86370712-bc5ce480-bc88-11ea-92dc-359d37bc3a59.gif" alt="20200702_165535" data-animated-image="" style="max-width: 100%;"></a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel stable, v1.17.5, on Mac OS X 10.15.4 19E287, locale en-TR)
• Flutter version 1.17.5 at /Users/figengungor/Documents/development/flutter
• Framework revision 8af6b2f038 (2 days ago), 2020-06-30 12:53:55 -0700
• Engine revision ee76268252
• Dart version 2.8.4
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/figengungor/Library/Android/sdk
• Platform android-29, build-tools 28.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.5, Build version 11E608c
• CocoaPods version 1.8.4
[✓] Android Studio (version 3.6)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 45.1.1
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
[!] Connected device
! No devices available
"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel stable, v1.17.5, on Mac OS X 10.15.4 19E287, locale en-TR)
• Flutter version 1.17.5 at /Users/figengungor/Documents/development/flutter
• Framework revision 8af6b2f038 (2 days ago), 2020-06-30 12:53:55 -0700
• Engine revision ee76268252
• Dart version 2.8.4
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/figengungor/Library/Android/sdk
• Platform android-29, build-tools 28.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.5, Build version 11E608c
• CocoaPods version 1.8.4
[✓] Android Studio (version 3.6)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 45.1.1
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
[!] Connected device
! No devices available
</code></pre></div> | 1 |
<p dir="auto">I used material-ui@next as server side render and do all things as the documents. But my console says</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Warning: Failed child context type: Invalid child context `64a55d578f856d258dc345b094a2a2b3` of type `Jss` supplied to `JssProvider`, expected instance of `Jss`.
in JssProvider (at server.js:274)"><pre class="notranslate"><code class="notranslate">Warning: Failed child context type: Invalid child context `64a55d578f856d258dc345b094a2a2b3` of type `Jss` supplied to `JssProvider`, expected instance of `Jss`.
in JssProvider (at server.js:274)
</code></pre></div>
<p dir="auto">Here are the code around line 274</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" const jss = create(preset());
jss.options.createGenerateClassName = createGenerateClassName;
const rootComponent = (
<JssProvider registry={sheetsRegistry} jss={jss}>
<MuiThemeProvider theme={theme} sheetsManager={new Map()}>
<App context={context} store={store}>
{route.component}
</App>
</MuiThemeProvider>
</JssProvider>
);"><pre class="notranslate"><code class="notranslate"> const jss = create(preset());
jss.options.createGenerateClassName = createGenerateClassName;
const rootComponent = (
<JssProvider registry={sheetsRegistry} jss={jss}>
<MuiThemeProvider theme={theme} sheetsManager={new Map()}>
<App context={context} store={store}>
{route.component}
</App>
</MuiThemeProvider>
</JssProvider>
);
</code></pre></div>
<p dir="auto">Is there some things wrong? Thanks for help.</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">The Popover doesn't overflow the <code class="notranslate">anchorEl</code> parent window when being positioned.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto"><code class="notranslate">Popover.getPositioningStyle</code> contains logic to position the popover relative to the <code class="notranslate">anchorEl</code> prop. It currently uses the global <code class="notranslate">window</code> object to get the <code class="notranslate">innerHeight</code> and <code class="notranslate">innerWidth</code> when calculating if the Popover is overflowing the window:<br>
<a href="https://github.com/mui-org/material-ui/blob/c3afd7bb33fa26e465dc333449e9449a4bb9e7bd/src/Popover/Popover.js#L123-L125">https://github.com/mui-org/material-ui/blob/c3afd7bb33fa26e465dc333449e9449a4bb9e7bd/src/Popover/Popover.js#L123-L125</a></p>
<p dir="auto">The problem above is that it is referencing the global window object when performing its position calculations, instead of the parent window of the <code class="notranslate">anchorEl</code> prop. A quick fix for this could be to use <code class="notranslate">Node.ownerDocument.defaultView</code> if an <code class="notranslate">anchorEl</code> was provided, which returns the <code class="notranslate">Window</code> object.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">See <a href="https://codesandbox.io/s/6lqo45vzvk" rel="nofollow">https://codesandbox.io/s/6lqo45vzvk</a>. You can see that the menu is positioned correctly within the main window relative to the button, however in the popout window the menu overflows the parent window.</p>
<h2 dir="auto">Context</h2>
<p dir="auto">After testing the rewrite of the Portal component following my previous issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="275033282" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/9207" data-hovercard-type="issue" data-hovercard-url="/mui/material-ui/issues/9207/hovercard" href="https://github.com/mui/material-ui/issues/9207">#9207</a>, I noticed the Popover positioning issue within the second window.</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.30</td>
</tr>
<tr>
<td>React</td>
<td>16</td>
</tr>
<tr>
<td>browser</td>
<td>all</td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">The compiler API does compile the source code and emits a sourcemap, but the filenames in the emit map are not correct.</p>
<p dir="auto">This example shows a basic discrepancy:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const [diag, emit] = await Deno.compile("https://deno.land/[email protected]/examples/welcome.ts");
console.log(Object.keys(emit));
/*
[
"https://deno.land/[email protected]/examples/welcome.js.map",
"https://deno.land/[email protected]/examples/welcome.js"
]
*/
const [diagHash, emitHash] = await Deno.compile(
"https://deno.land/[email protected]/examples/welcome.ts#1"
);
console.log(Object.keys(emitHash));
/*
[
"https://deno.land/[email protected]/examples/welcome.ts#1.js.map",
"https://deno.land/[email protected]/examples/welcome.ts#1.js"
]
*/"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">[</span><span class="pl-s1">diag</span><span class="pl-kos">,</span> <span class="pl-s1">emit</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-en">compile</span><span class="pl-kos">(</span><span class="pl-s">"https://deno.land/[email protected]/examples/welcome.ts"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-smi">Object</span><span class="pl-kos">.</span><span class="pl-en">keys</span><span class="pl-kos">(</span><span class="pl-s1">emit</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">/*</span>
<span class="pl-c">[</span>
<span class="pl-c"> "https://deno.land/[email protected]/examples/welcome.js.map",</span>
<span class="pl-c"> "https://deno.land/[email protected]/examples/welcome.js"</span>
<span class="pl-c">]</span>
<span class="pl-c">*/</span>
<span class="pl-k">const</span> <span class="pl-kos">[</span><span class="pl-s1">diagHash</span><span class="pl-kos">,</span> <span class="pl-s1">emitHash</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-en">compile</span><span class="pl-kos">(</span>
<span class="pl-s">"https://deno.land/[email protected]/examples/welcome.ts#1"</span>
<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-smi">Object</span><span class="pl-kos">.</span><span class="pl-en">keys</span><span class="pl-kos">(</span><span class="pl-s1">emitHash</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">/*</span>
<span class="pl-c">[</span>
<span class="pl-c"> "https://deno.land/[email protected]/examples/welcome.ts#1.js.map",</span>
<span class="pl-c"> "https://deno.land/[email protected]/examples/welcome.ts#1.js"</span>
<span class="pl-c">]</span>
<span class="pl-c">*/</span></pre></div>
<p dir="auto">Using something with a circular dependency like <code class="notranslate">https://deno.land/[email protected]/http/server.ts</code> obviously renders both because the hash or search is only in the root module:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const [diag, emit] = await Deno.compile("https://deno.land/[email protected]/http/server.ts?abc=def");
console.log(Object.keys(emit));
/*
[
...
"https://deno.land/[email protected]/http/server.js.map",
"https://deno.land/[email protected]/http/server.js",
...
"https://deno.land/[email protected]/http/server.ts?abc=def.js.map",
"https://deno.land/[email protected]/http/server.ts?abc=def.js"
]
*/"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">[</span><span class="pl-s1">diag</span><span class="pl-kos">,</span> <span class="pl-s1">emit</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-en">compile</span><span class="pl-kos">(</span><span class="pl-s">"https://deno.land/[email protected]/http/server.ts?abc=def"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-smi">Object</span><span class="pl-kos">.</span><span class="pl-en">keys</span><span class="pl-kos">(</span><span class="pl-s1">emit</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">/*</span>
<span class="pl-c">[</span>
<span class="pl-c"> ...</span>
<span class="pl-c"> "https://deno.land/[email protected]/http/server.js.map",</span>
<span class="pl-c"> "https://deno.land/[email protected]/http/server.js",</span>
<span class="pl-c"> ...</span>
<span class="pl-c"> "https://deno.land/[email protected]/http/server.ts?abc=def.js.map",</span>
<span class="pl-c"> "https://deno.land/[email protected]/http/server.ts?abc=def.js"</span>
<span class="pl-c">]</span>
<span class="pl-c">*/</span></pre></div> | <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/69170106/236354909-b46917ed-298a-4792-90b1-8faa254a8ed3.png"><img src="https://user-images.githubusercontent.com/69170106/236354909-b46917ed-298a-4792-90b1-8faa254a8ed3.png" alt="Screenshot (141)" style="max-width: 100%;"></a></p>
<h3 dir="auto">Chrome devtools</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/69170106/236355267-3f89d7e8-0bdb-4f9b-bb19-76c94868b628.png"><img src="https://user-images.githubusercontent.com/69170106/236355267-3f89d7e8-0bdb-4f9b-bb19-76c94868b628.png" alt="Screenshot (142)" style="max-width: 100%;"></a></p>
<h3 dir="auto">Reproduction</h3>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const response = await fetch('https://deno.land/x/[email protected]/src/lib/rs_lib_bg.wasm')
const instance = WebAssembly.instantiateStreaming(response)"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">response</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-en">fetch</span><span class="pl-kos">(</span><span class="pl-s">'https://deno.land/x/[email protected]/src/lib/rs_lib_bg.wasm'</span><span class="pl-kos">)</span>
<span class="pl-k">const</span> <span class="pl-s1">instance</span> <span class="pl-c1">=</span> <span class="pl-smi">WebAssembly</span><span class="pl-kos">.</span><span class="pl-en">instantiateStreaming</span><span class="pl-kos">(</span><span class="pl-s1">response</span><span class="pl-kos">)</span></pre></div> | 0 |
<p dir="auto">While deleting duplicate relationships after a while the heap got exhausted.</p>
<p dir="auto">Action executed:<br>
call apoc.periodic.commit("match (a)-[r]-(b)<br>
with a,b, TAIL(collect(r)) as rr<br>
where length(rr)>0<br>
foreach (r in rr | delete r)",{limit:10000});</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1593474/23226052/3f790360-f902-11e6-904f-5a5bee0248ee.png"><img src="https://cloud.githubusercontent.com/assets/1593474/23226052/3f790360-f902-11e6-904f-5a5bee0248ee.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Heap dump:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1593474/23226078/521daa98-f902-11e6-9a68-71df0655d126.png"><img src="https://cloud.githubusercontent.com/assets/1593474/23226078/521daa98-f902-11e6-9a68-71df0655d126.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">JVM:<br>
-Dlog4j.configuration=file:conf/log4j.properties<br>
-Dneo4j.ext.udc.source=zip-powershell<br>
-Dorg.neo4j.cluster.logdirectory=data/log<br>
-Xms24g<br>
-Xmx24g<br>
-XX:+UseG1GC<br>
-XX:-OmitStackTraceInFastThrow<br>
-XX:+AlwaysPreTouch<br>
-XX:+UnlockExperimentalVMOptions<br>
-XX:+TrustFinalNonStaticFields<br>
-XX:+DisableExplicitGC<br>
-Djdk.tls.ephemeralDHKeySize=2048<br>
-Dunsupported.dbms.udc.source=zip<br>
-Xloggc:C:\Local.Work\neo4j-enterprise-3.1.1-SNAPSHOT/gc.log<br>
-XX:+PrintGCDetails<br>
-XX:+PrintGCDateStamps<br>
-XX:+PrintGCApplicationStoppedTime<br>
-XX:+PrintPromotionFailure<br>
-XX:+PrintTenuringDistribution<br>
-XX:GCLogFileSize=20m<br>
-XX:NumberOfGCLogFiles=5<br>
-Dfile.encoding=UTF-8</p>
<p dir="auto">Nodes<br>
MATCH (n) RETURN count(n)<br>
count(n)<br>
44594815</p>
<p dir="auto">Relationships<br>
$MATCH ()-->() RETURN count(<em>);<br>
count(</em>)<br>
28557252</p> | <p dir="auto">I found a discrepancy when running two semantically equivalent queries against an empty database:</p>
<hr>
<p dir="auto">1:</p>
<div class="highlight highlight-source-cypher notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="CREATE ({x:0})<-[y:A]-() CREATE ({x:endNode(y).x})
-
RETURN COUNT { ({x:0}) } AS n"><pre class="notranslate"><span class="pl-k">CREATE</span> (<span class="pl-s1"><span class="pl-k">{</span><span class="pl-smi">x</span><span class="pl-k">:</span><span class="pl-c1">0</span><span class="pl-k">}</span></span>)<span class="pl-c1"><-</span><span class="pl-k">[</span><span class="pl-smi">y</span><span class="pl-en"><span class="pl-k">:</span><span class="pl-en">A</span></span><span class="pl-k">]</span><span class="pl-c1">-</span>() <span class="pl-k">CREATE</span> (<span class="pl-s1"><span class="pl-k">{</span><span class="pl-smi">x</span><span class="pl-k">:</span><span class="pl-smi">endNode</span>(<span class="pl-smi">y</span>).<span class="pl-smi">x</span><span class="pl-k">}</span></span>)
<span class="pl-k">-</span>
<span class="pl-k">RETURN</span> <span class="pl-smi">COUNT</span> <span class="pl-s1"><span class="pl-k">{</span> ({<span class="pl-smi">x</span><span class="pl-k">:</span><span class="pl-c1">0</span><span class="pl-k">}</span></span>) } <span class="pl-k">AS</span> <span class="pl-smi">n</span></pre></div>
<p dir="auto">Produces:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="╒═══╕
│"n"│
╞═══╡
│1 │
└───┘"><pre class="notranslate"><code class="notranslate">╒═══╕
│"n"│
╞═══╡
│1 │
└───┘
</code></pre></div>
<hr>
<p dir="auto">2:</p>
<div class="highlight highlight-source-cypher notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="CREATE ({x:0})<-[y:A]-() CREATE (z) DELETE z CREATE ({x:endNode(y).x})
-
RETURN COUNT { ({x:0}) } AS n"><pre class="notranslate"><span class="pl-k">CREATE</span> (<span class="pl-s1"><span class="pl-k">{</span><span class="pl-smi">x</span><span class="pl-k">:</span><span class="pl-c1">0</span><span class="pl-k">}</span></span>)<span class="pl-c1"><-</span><span class="pl-k">[</span><span class="pl-smi">y</span><span class="pl-en"><span class="pl-k">:</span><span class="pl-en">A</span></span><span class="pl-k">]</span><span class="pl-c1">-</span>() <span class="pl-k">CREATE</span> (<span class="pl-smi">z</span>) <span class="pl-k">DELETE</span> <span class="pl-smi">z</span> <span class="pl-k">CREATE</span> (<span class="pl-s1"><span class="pl-k">{</span><span class="pl-smi">x</span><span class="pl-k">:</span><span class="pl-smi">endNode</span>(<span class="pl-smi">y</span>).<span class="pl-smi">x</span><span class="pl-k">}</span></span>)
<span class="pl-k">-</span>
<span class="pl-k">RETURN</span> <span class="pl-smi">COUNT</span> <span class="pl-s1"><span class="pl-k">{</span> ({<span class="pl-smi">x</span><span class="pl-k">:</span><span class="pl-c1">0</span><span class="pl-k">}</span></span>) } <span class="pl-k">AS</span> <span class="pl-smi">n</span></pre></div>
<p dir="auto">Produces:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="╒═══╕
│"n"│
╞═══╡
│2 │
└───┘"><pre class="notranslate"><code class="notranslate">╒═══╕
│"n"│
╞═══╡
│2 │
└───┘
</code></pre></div>
<hr>
<p dir="auto">I believe the queries mentioned above are semantically equivalent and thus their result should be the same.<br>
The only difference between them is the <code class="notranslate">CREATE (z) DELETE z</code> part which shouldn't have any impact on the query, especially on properties that it doesn't reference.</p>
<p dir="auto">I encountered this issue when testing queries against the <strong>neo4j:5.6.0</strong> Docker container.</p>
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>
<details>
<summary>Run the Docker Container</summary>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="docker run \
-p 7474:7474 -p 7687:7687 \
--name neo4j-apoc \
-e apoc.export.file.enabled=true \
-e apoc.import.file.enabled=true \
-e apoc.import.file.use_neo4j_config=true \
-e NEO4J_PLUGINS=\[\"apoc\"\] \
-e NEO4J_AUTH=none
--rm \
neo4j:5.6.0"><pre class="notranslate"><code class="notranslate">docker run \
-p 7474:7474 -p 7687:7687 \
--name neo4j-apoc \
-e apoc.export.file.enabled=true \
-e apoc.import.file.enabled=true \
-e apoc.import.file.use_neo4j_config=true \
-e NEO4J_PLUGINS=\[\"apoc\"\] \
-e NEO4J_AUTH=none
--rm \
neo4j:5.6.0
</code></pre></div>
</details>
</li>
<li>
<p dir="auto">Navigate to the browser interface on <a href="http://localhost:7474" rel="nofollow">localhost:7474</a></p>
</li>
<li>
<p dir="auto">Run the aforementioned queries and observe that their results differ.</p>
</li>
</ol>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">The queries should result in the same behavior</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">The first query returns <code class="notranslate">1</code>, whereas the second query returns <code class="notranslate">2</code>.</p> | 0 |
<p dir="auto">Palette and PaletteOptions ts defintions (probably others) are not in sync with the changes made on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="286903021" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/9794" data-hovercard-type="pull_request" data-hovercard-url="/mui/material-ui/pull/9794/hovercard" href="https://github.com/mui/material-ui/pull/9794">#9794</a></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">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>latest beta</td>
</tr>
<tr>
<td>React</td>
<td>16</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome 63</td>
</tr>
<tr>
<td>etc</td>
<td>TS 2.6.2</td>
</tr>
</tbody>
</table> | <p dir="auto">Visit <a href="http://www.material-ui.com/#/components/flat-button" rel="nofollow">http://www.material-ui.com/#/components/flat-button</a></p>
<p dir="auto">Scroll down to bottom of the page. The content seem to be broken.</p> | 0 |
<blockquote>
<p dir="auto">Issue originally reported by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/danez/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/danez">@danez</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="165361588" data-permission-text="Title is private" data-url="https://github.com/babel/babylon/issues/78" data-hovercard-type="issue" data-hovercard-url="/babel/babylon/issues/78/hovercard" href="https://github.com/babel/babylon/issues/78">babel/babylon#78</a></p>
</blockquote>
<p dir="auto">According to the spec when defining multiple variables with the same name, the parser should throw and SyntaxError when using <code class="notranslate">let</code> or <code class="notranslate">const</code>:</p>
<p dir="auto"><code class="notranslate">let foo, foo;</code><br>
or<br>
<code class="notranslate">let foo; let foo;</code></p>
<p dir="auto">From <a href="https://tc39.github.io/ecma262/#sec-let-and-const-declarations-static-semantics-early-errors" rel="nofollow">13.2.1.1</a>:</p>
<blockquote>
<p dir="auto">It is a Syntax Error if the BoundNames of BindingList contains any duplicate entries.</p>
</blockquote>
<p dir="auto">V8 trows an error for <code class="notranslate">let</code> and <code class="notranslate">const</code>, but not vor <code class="notranslate">var</code>.</p> | <p dir="auto">Choose one: is this a bug report or feature request?</p>
<h3 dir="auto">Input Code</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const t = true
{
t = false
}
{
t = false
}"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">t</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span>
<span class="pl-kos">{</span>
<span class="pl-s1">t</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span>
<span class="pl-kos">}</span>
<span class="pl-kos">{</span>
<span class="pl-s1">t</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span>
<span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Babel/Babylon Configuration (.babelrc, package.json, cli command)</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
presets: ['es2015']
}"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-c1">presets</span>: <span class="pl-kos">[</span><span class="pl-s">'es2015'</span><span class="pl-kos">]</span>
<span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Expected Behavior</h3>
<h3 dir="auto">Current Behavior</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var t = true;
{
t = (function () {
throw new Error("\"t\" is read-only");
}(), false);
}
{
t = (function () {
throw new Error("\"t\" is read-only");
}(), false);
}"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">t</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span>
<span class="pl-kos">{</span>
<span class="pl-s1">t</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">throw</span> <span class="pl-k">new</span> <span class="pl-v">Error</span><span class="pl-kos">(</span><span class="pl-s">"\"t\" is read-only"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">false</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">{</span>
<span class="pl-s1">t</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">throw</span> <span class="pl-k">new</span> <span class="pl-v">Error</span><span class="pl-kos">(</span><span class="pl-s">"\"t\" is read-only"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">false</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Possible Solution</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var _tReadonlyError = new Error("\"t\" is read-only");
var t = true;
{
t = (function () {
throw _tReadonlyError;
}(), false);
}
{
t = (function () {
throw _tReadonlyError;
}(), false);
}"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">_tReadonlyError</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Error</span><span class="pl-kos">(</span><span class="pl-s">"\"t\" is read-only"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">t</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span>
<span class="pl-kos">{</span>
<span class="pl-s1">t</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">throw</span> <span class="pl-s1">_tReadonlyError</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">false</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">{</span>
<span class="pl-s1">t</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">throw</span> <span class="pl-s1">_tReadonlyError</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">false</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Context</h3>
<p dir="auto">It's just an idea. We can hoist the error (or even the function) to avoid duplicating code so much. Minifiers probably won't catch it in more complex condition.</p>
<h3 dir="auto">Your Environment</h3>
<p dir="auto"><a href="http://babeljs.io/repl#?babili=false&browsers=IE%2011&build=&builtIns=false&code_lz=MYewdgzgLgBLC8cBOBXApgKAwbwzOMiAZgIYA2EmAvlrvgjKRdUA&debug=true&circleciRepo=&evaluate=false&lineWrap=true&presets=es2015&targets=&version=7.0.0-beta.31" rel="nofollow">REPL</a></p>
<p dir="auto">What do you think about that <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/maurobringolf/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/maurobringolf">@maurobringolf</a>?</p> | 0 |
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/236" rel="nofollow">http://projects.scipy.org/scipy/ticket/236</a> on 2006-07-17 by trac user nil, assigned to trac user nil.</em></p>
<p dir="auto">Sparse matrices are a very interesting data model for graphs or edges-only meshes. But using float dtype spends too much place where we only need boolean information. So, an extension of this module, with dtypes bool (and maybe int8/int16/int32) would be really useful.</p>
<p dir="auto">I can help work on this topic.</p> | <h3 dir="auto">Is your feature request related to a problem? Please describe.</h3>
<p dir="auto">For an experiment, I first performed the Wilcoxon Rank Sum Test (of Scipy) and now I would like to report the measured effect-size.</p>
<h3 dir="auto">Describe the solution you'd like.</h3>
<p dir="auto">For non-normal distributed data, that has a Wilcoxon-RankSum-Test proven difference common tests would be Vargha-Delaney or Cliff's Delta <a href="https://en.wikipedia.org/wiki/Effect_size" rel="nofollow">e.g. from Wikipedia</a></p>
<h3 dir="auto">Describe alternatives you've considered.</h3>
<p dir="auto">There are some Gist-Implementations and Snippets found online, that will do the trick.</p>
<h3 dir="auto">Additional context (e.g. screenshots, GIFs)</h3>
<p dir="auto"><em>No response</em></p> | 0 |
<p dir="auto">I observed some unexpected specialization behavior with keyword arguments.</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> function f(x; as::Type{T} = Int) where {T}
return T(x)
end"><pre class="notranslate">julia<span class="pl-k">></span> <span class="pl-k">function</span> <span class="pl-en">f</span>(x; as<span class="pl-k">::</span><span class="pl-c1">Type{T}</span> <span class="pl-k">=</span> Int) <span class="pl-k">where</span> {T}
<span class="pl-k">return</span> <span class="pl-c1">T</span>(x)
<span class="pl-k">end</span></pre></div>
<p dir="auto">Then</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> @code_warntype f(1, as = Float64)"><pre class="notranslate">julia<span class="pl-k">></span> <span class="pl-c1">@code_warntype</span> <span class="pl-c1">f</span>(<span class="pl-c1">1</span>, as <span class="pl-k">=</span> Float64)</pre></div>
<p dir="auto">seems to indicate that it is not really specializing, but juggling around with <code class="notranslate">DataType</code>. I would have expected this with just <code class="notranslate">as::Type = Int</code> because of some specialization heuristic I know from positional arguments.</p>
<p dir="auto">Is this intended? Or maybe <code class="notranslate">@code_warntype</code> is lying to me? Reproduced on julia 1.5 and 6 days old master.</p>
<p dir="auto">Edit: Maybe this is <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="710960273" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/37797" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/37797/hovercard" href="https://github.com/JuliaLang/julia/issues/37797">#37797</a>? Don't know enough about the internals.</p> | <p dir="auto"><code class="notranslate">@code_typed</code> (and <code class="notranslate">code_typed</code>) will sometimes report a different result than actually gets inferred if you call the function. For example:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> f1(x) = Base.typemax(x)
f1 (generic function with 1 method)
julia> @code_typed f1(Int)
CodeInfo(
1 ─ return 9223372036854775807
) => Int64"><pre class="notranslate">julia<span class="pl-k">></span> <span class="pl-en">f1</span>(x) <span class="pl-k">=</span> Base<span class="pl-k">.</span><span class="pl-c1">typemax</span>(x)
f1 (generic <span class="pl-k">function</span> with <span class="pl-c1">1</span> method)
julia<span class="pl-k">></span> <span class="pl-c1">@code_typed</span> <span class="pl-c1">f1</span>(Int)
<span class="pl-c1">CodeInfo</span>(
<span class="pl-c1">1</span> ─ <span class="pl-k">return</span> <span class="pl-c1">9223372036854775807</span>
) <span class="pl-k">=></span> Int64</pre></div>
<p dir="auto">Here <code class="notranslate">@code_typed</code> shows you fully specialized code, even though in reality this call will not be specialized (it will be a dynamic dispatch to <code class="notranslate">typemax(Type{Int})</code>).</p>
<p dir="auto">xref: the documentation change here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="477996195" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/32817" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/32817/hovercard" href="https://github.com/JuliaLang/julia/pull/32817">#32817</a></p>
<blockquote>
<p dir="auto">Note that <a href="@ref"><code class="notranslate">@code_typed</code></a> and friends will always show you specialized code, even if Julia<br>
would not normally specialize that method call. You need to check the<br>
[method internals](<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ref/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ref">@ref</a> ast-lowered-method) if you want to see whether specializations are generated<br>
when argument types are changed.</p>
</blockquote>
<hr>
<p dir="auto">Could we either change <code class="notranslate">@code_typed</code> or add a flag to <code class="notranslate">@code_typed</code> that will show you the code as julia would <em>actually</em> specialize it, instead of fully specialized to your argument type? :)</p> | 1 |
<p dir="auto">and users can't get around it :/</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/albanD/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/albanD">@albanD</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gqchen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gqchen">@gqchen</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pearu/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pearu">@pearu</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nikitaved/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nikitaved">@nikitaved</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/soulitzer/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/soulitzer">@soulitzer</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mruberry/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mruberry">@mruberry</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jbschlosser/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jbschlosser">@jbschlosser</a></p> | <p dir="auto">Now only autograd RNN supports double backwards. We should make cudnn RNN work as well.</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ssnl/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ssnl">@ssnl</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/albanD/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/albanD">@albanD</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gqchen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gqchen">@gqchen</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/csarofeen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/csarofeen">@csarofeen</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ptrblck/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ptrblck">@ptrblck</a></p> | 1 |
<p dir="auto">(Numpy Version 1.8)</p>
<p dir="auto">See the following example for the precision where it happens:</p>
<ol dir="auto">
<li></li>
</ol>
<code class="notranslate">
In [68]: numpy.histogramdd([0.9999995], bins=[[0, 0.5, 1]])
Out[68]: (array([ 1., 0.]), [array([ 0. , 0.5, 1. ])])
</code>
<p dir="auto">As you can see the entry lands in the wrong bin.<br>
Lowering the value by 10^-7 suddenly makes the jump to the last bin (which is correct):<br>
2)<br>
<code class="notranslate"><br>
In [69]: numpy.histogramdd([0.9999994], bins=[[0, 0.5, 1]])<br>
Out[69]: (array([ 0., 1.]), [array([ 0. , 0.5, 1. ])])<br>
</code></p>
<p dir="auto">Interestingly, increasing the 2nd to last edge value to a high precision also helps:<br>
3)<br>
<code class="notranslate"><br>
In [88]: numpy.histogramdd([0.9999999997], bins=[[0, 0.99999, 1]])<br>
Out[88]: (array([ 0., 1.]), [array([ 0. , 0.99999, 1. ])]<br>
</code></p>
<p dir="auto">Standard numpy.histogram behaves as expected to arbitrary high values close to 1:<br>
4)<br>
<code class="notranslate"><br>
In [71]: numpy.histogram(0.99999999999, bins=[0, 0.5, 1])<br>
Out[71]: (array([0, 1]), array([ 0. , 0.5, 1. ]))<br>
</code></p>
<p dir="auto">The whole issue is only there for the rightmost boundary, not for intermediate ones. But as you can see in snippet 3), it has to do with the 2nd to last edge-value aswell.<br>
I hope it gets fixed soon. The precision is not that high (cosine of small angles can easily be in this regime - actually for my work it is) and a wrong bin is populated... if unnoticed wrong results are the outcome.</p> | <p dir="auto">My numpy version is 1.6.1-6 on ubuntu 12.04 64-bit with python 2.7.3.</p>
<p dir="auto">I want to create histograms with the function histogramdd.<br>
When I have data points that are very close to the rightmost bin-edge, they will land in the wrong bin, that is, in the second-to-right bin, instead of the rightmost bin!</p>
<p dir="auto">Here is some code to reproduce this behavior:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> import numpy as np
>>> x = np.random.randint(0,3,100)
>>> edges = [[-0.5, 0.5, 1.5, 2+1e-7]]
>>> np.histogramdd(x,edges)
(array([ 33., 67., 0.]),
[array([-0.5 , 0.5 , 1.5 , 2.0000001])])"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randint</span>(<span class="pl-c1">0</span>,<span class="pl-c1">3</span>,<span class="pl-c1">100</span>)
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">edges</span> <span class="pl-c1">=</span> [[<span class="pl-c1">-</span><span class="pl-c1">0.5</span>, <span class="pl-c1">0.5</span>, <span class="pl-c1">1.5</span>, <span class="pl-c1">2</span><span class="pl-c1">+</span><span class="pl-c1">1e-7</span>]]
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">np</span>.<span class="pl-en">histogramdd</span>(<span class="pl-s1">x</span>,<span class="pl-s1">edges</span>)
(<span class="pl-en">array</span>([ <span class="pl-c1">33.</span>, <span class="pl-c1">67.</span>, <span class="pl-c1">0.</span>]),
[<span class="pl-en">array</span>([<span class="pl-c1">-</span><span class="pl-c1">0.5</span> , <span class="pl-c1">0.5</span> , <span class="pl-c1">1.5</span> , <span class="pl-c1">2.0000001</span>])])</pre></div>
<p dir="auto">The last bin is empty and all data points with value 2 are in the second bin.<br>
Note that the last bin edge is very close to 2 but not exactly 2!<br>
This doesn't happen using the 1d function:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> np.histogram(x,edges[0])
(array([33, 37, 30]), array([-0.5 , 0.5 , 1.5 , 2.0000001]))"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">np</span>.<span class="pl-en">histogram</span>(<span class="pl-s1">x</span>,<span class="pl-s1">edges</span>[<span class="pl-c1">0</span>])
(<span class="pl-en">array</span>([<span class="pl-c1">33</span>, <span class="pl-c1">37</span>, <span class="pl-c1">30</span>]), <span class="pl-en">array</span>([<span class="pl-c1">-</span><span class="pl-c1">0.5</span> , <span class="pl-c1">0.5</span> , <span class="pl-c1">1.5</span> , <span class="pl-c1">2.0000001</span>]))</pre></div>
<p dir="auto">The problem seems to be in line 347 of function_base.py (in my version):</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" for i in arange(D):
Ncount[i] = digitize(sample[:,i], edges[i])"><pre class="notranslate"> <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">arange</span>(<span class="pl-v">D</span>):
<span class="pl-v">Ncount</span>[<span class="pl-s1">i</span>] <span class="pl-c1">=</span> <span class="pl-en">digitize</span>(<span class="pl-s1">sample</span>[:,<span class="pl-s1">i</span>], <span class="pl-s1">edges</span>[<span class="pl-s1">i</span>])</pre></div>
<p dir="auto">...together with the following code (line 356ff), where all the data points that fall on the rightmost edge are shifted one bin to the left:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" if not np.isinf(mindiff):
decimal = int(-log10(mindiff)) + 6
# Find which points are on the rightmost edge.
on_edge = where(around(sample[:,i], decimal) == around(edges[i][-1],
decimal))[0]"><pre class="notranslate"> <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">np</span>.<span class="pl-en">isinf</span>(<span class="pl-s1">mindiff</span>):
<span class="pl-s1">decimal</span> <span class="pl-c1">=</span> <span class="pl-en">int</span>(<span class="pl-c1">-</span><span class="pl-en">log10</span>(<span class="pl-s1">mindiff</span>)) <span class="pl-c1">+</span> <span class="pl-c1">6</span>
<span class="pl-c"># Find which points are on the rightmost edge.</span>
<span class="pl-s1">on_edge</span> <span class="pl-c1">=</span> <span class="pl-en">where</span>(<span class="pl-en">around</span>(<span class="pl-s1">sample</span>[:,<span class="pl-s1">i</span>], <span class="pl-s1">decimal</span>) <span class="pl-c1">==</span> <span class="pl-en">around</span>(<span class="pl-s1">edges</span>[<span class="pl-s1">i</span>][<span class="pl-c1">-</span><span class="pl-c1">1</span>],
<span class="pl-s1">decimal</span>))[<span class="pl-c1">0</span>]</pre></div>
<p dir="auto">What happens is that the data points that are 2 fall into the 3rd bin, because they are smaller then the last edge 2.0000001. The 'digitize' function would put all points that were exactly 2.0000001 into an outlier bin! Then, in order to correct for the edge-points that were classified as outliers, these are shifted one bin to the left. However, to find them the data points and edges are rounded to 'decimal' precision, which has not be done in the first 'digitize' operation. So this time all the 2s are thought to be on the edge and shifted to the 2nd bin, although they were already in the correct bin!</p>
<p dir="auto">I recommend to change line 347 to round the edges already here to 'decimal' precision:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" for i in arange(D):
if not np.isinf(mindiff):
decimal = int(-log10(mindiff)) + 6
Ncount[i] = digitize(sample[:,i], around(edges[i], decimal))
else:
Ncount[i] = digitize(sample[:,i], edges[i])"><pre class="notranslate"> <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">arange</span>(<span class="pl-v">D</span>):
<span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">np</span>.<span class="pl-en">isinf</span>(<span class="pl-s1">mindiff</span>):
<span class="pl-s1">decimal</span> <span class="pl-c1">=</span> <span class="pl-en">int</span>(<span class="pl-c1">-</span><span class="pl-en">log10</span>(<span class="pl-s1">mindiff</span>)) <span class="pl-c1">+</span> <span class="pl-c1">6</span>
<span class="pl-v">Ncount</span>[<span class="pl-s1">i</span>] <span class="pl-c1">=</span> <span class="pl-en">digitize</span>(<span class="pl-s1">sample</span>[:,<span class="pl-s1">i</span>], <span class="pl-en">around</span>(<span class="pl-s1">edges</span>[<span class="pl-s1">i</span>], <span class="pl-s1">decimal</span>))
<span class="pl-k">else</span>:
<span class="pl-v">Ncount</span>[<span class="pl-s1">i</span>] <span class="pl-c1">=</span> <span class="pl-en">digitize</span>(<span class="pl-s1">sample</span>[:,<span class="pl-s1">i</span>], <span class="pl-s1">edges</span>[<span class="pl-s1">i</span>])</pre></div>
<p dir="auto">I hope I could make clear what the problem is. For now I found the error and can design my bin-edges to be far enough away or exactly at the maximum of the data. But it would be nice if this could be fixed in future releases.</p> | 1 |
<p dir="auto">Hi,</p>
<p dir="auto">Would you be interested in getting rid of Pixel measurements and taking a more flexible approach, using EM?</p>
<p dir="auto">For things like, for example Legend size, paddings for headings, alert blocks, buttons nav tabs. These things are more likely to be relative than absolute.</p>
<p dir="auto">Also, sizes of input controls, sizes or labels and many more things. All of them rely heavily on the base font size, and it will such an improvement to have all those things in a relative measurements (em) rather than absolute (px).</p> | <p dir="auto">Hello,</p>
<p dir="auto">I am fiddling a bit around with the responsive approach in Bootstrap. I feel that the way it is implemented is sometimes a bit static. Are there any plans or idea's (or am I not aware of the ability) to say something like "4 columns" on desktop size. "3 columns" on tablet size. And/or to say the sidebar for instance is just informative, it should be hidden when seeing the site on a mobile device.</p>
<p dir="auto">I know how I can do this myself, but I was wondering if this community had such a thing in the planning or you have idea's what the best way is to build it? Any feedback is welcome.</p>
<p dir="auto">I am creating something like this now.</p>
<p dir="auto">Example 1 (4 columns on desktop, 3 on tablet)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<div class="span3 portrait-span4">one</div>
<div class="span3 portrait-span4">two</div>
<div class="span3 portrait-span4">three</div>
<div class="span3 portrait-span12">four</div>"><pre class="notranslate"><code class="notranslate"><div class="span3 portrait-span4">one</div>
<div class="span3 portrait-span4">two</div>
<div class="span3 portrait-span4">three</div>
<div class="span3 portrait-span12">four</div>
</code></pre></div>
<p dir="auto">Example 2 (2 columns on desktop, 1 on tablet)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<div class="span8 portrait-span12">main</div>
<div class="span4 portrait-hidden">side</div>"><pre class="notranslate"><code class="notranslate"><div class="span8 portrait-span12">main</div>
<div class="span4 portrait-hidden">side</div>
</code></pre></div>
<p dir="auto">CSS</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@media (min-width: 768px) and (max-width: 980px) {
.portrait-hidden{
display:none;
}
.portrait-span12, .portrait-container {
width: 724px;
}
.portrait-span4 {
width: 228px;
}
"><pre class="notranslate"><code class="notranslate">@media (min-width: 768px) and (max-width: 980px) {
.portrait-hidden{
display:none;
}
.portrait-span12, .portrait-container {
width: 724px;
}
.portrait-span4 {
width: 228px;
}
</code></pre></div> | 0 |
<p dir="auto">There is a SizedBox in Tab class, the height of SizedBox cannot be modified.</p>
<p dir="auto">I need a less height of Tabbar tab.</p>
<p dir="auto">same as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="278748763" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/13322" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/13322/hovercard" href="https://github.com/flutter/flutter/issues/13322">#13322</a><br>
Thank you.</p> | <p dir="auto">The height of the Tabs get hardcoded in the Tab Widget. I would like to use custom images instead of the icons and they are a bit bigger. Unfortunately the the widgets shows the clipping text when the Images gets applied because of the hardcoded height values (see below). I would suggest to set these values in the ctor as default values to give the user a option to change them. Also a enum in ctor would be great which has two values (manual, autosize). Autosize would size based on the content and manual sizing would size use the default or passed in ctor values. These changes could be compatible with the current API.</p>
<p dir="auto">Hardcoded heights now tabs.dart<br>
</p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/flutter/flutter/blob/e6ed069b326ab42b31c316b594277566d05b7bbc/packages/flutter/lib/src/material/tabs.dart#L93-L99">flutter/packages/flutter/lib/src/material/tabs.dart</a>
</p>
<p class="mb-0 color-fg-muted">
Lines 93 to 99
in
<a data-pjax="true" class="commit-tease-sha" href="/flutter/flutter/commit/e6ed069b326ab42b31c316b594277566d05b7bbc">e6ed069</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="L93" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="93"></td>
<td id="LC93" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">double</span> height; </td>
</tr>
<tr class="border-0">
<td id="L94" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="94"></td>
<td id="LC94" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">Widget</span> label; </td>
</tr>
<tr class="border-0">
<td id="L95" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="95"></td>
<td id="LC95" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> (icon <span class="pl-k">==</span> <span class="pl-c1">null</span>) { </td>
</tr>
<tr class="border-0">
<td id="L96" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="96"></td>
<td id="LC96" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> height <span class="pl-k">=</span> _kTabHeight; </td>
</tr>
<tr class="border-0">
<td id="L97" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="97"></td>
<td id="LC97" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> label <span class="pl-k">=</span> <span class="pl-en">_buildLabelText</span>(); </td>
</tr>
<tr class="border-0">
<td id="L98" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="98"></td>
<td id="LC98" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> } <span class="pl-k">else</span> <span class="pl-k">if</span> (text <span class="pl-k">==</span> <span class="pl-c1">null</span> <span class="pl-k">&&</span> child <span class="pl-k">==</span> <span class="pl-c1">null</span>) { </td>
</tr>
<tr class="border-0">
<td id="L99" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="99"></td>
<td id="LC99" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> height <span class="pl-k">=</span> _kTabHeight; </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[√] Flutter (on Microsoft Windows [Version 10.0.16299.98], locale en-US, channel alpha)
• Flutter at c:\sdks\flutter
• Framework revision d957c8f040 (2 days ago), 2017-11-30 13:29:59 -0800
• Engine revision 77d8acb9be
• Tools Dart version 1.25.0-dev.11.0
• Engine Dart version 2.0.0-dev.9.0
[√] Android toolchain - develop for Android devices (Android SDK 27.0.1)
• Android SDK at C:\Users\ride4\AppData\Local\Android\sdk
• Unable to locate Android NDK.
• Unable to locate compiler in Android NDK.
• Platform android-27, build-tools 27.0.1
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[√] Android Studio (version 3.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[√] IntelliJ IDEA Community Edition (version 2017.2)
• Flutter plugin version 19.1
• Dart plugin version 172.4343.25
[√] Connected devices
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 7.1.1 (API 25) (emulator)"><pre class="notranslate"><code class="notranslate">[√] Flutter (on Microsoft Windows [Version 10.0.16299.98], locale en-US, channel alpha)
• Flutter at c:\sdks\flutter
• Framework revision d957c8f040 (2 days ago), 2017-11-30 13:29:59 -0800
• Engine revision 77d8acb9be
• Tools Dart version 1.25.0-dev.11.0
• Engine Dart version 2.0.0-dev.9.0
[√] Android toolchain - develop for Android devices (Android SDK 27.0.1)
• Android SDK at C:\Users\ride4\AppData\Local\Android\sdk
• Unable to locate Android NDK.
• Unable to locate compiler in Android NDK.
• Platform android-27, build-tools 27.0.1
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[√] Android Studio (version 3.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[√] IntelliJ IDEA Community Edition (version 2017.2)
• Flutter plugin version 19.1
• Dart plugin version 172.4343.25
[√] Connected devices
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 7.1.1 (API 25) (emulator)
</code></pre></div> | 1 |
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1400" rel="nofollow">http://projects.scipy.org/numpy/ticket/1400</a> on 2010-02-18 by trac user ChristianMarquardt, assigned to unknown.</em></p>
<p dir="auto">When compiling numpy-1.4.0 with the Sun Studio Compilers (v12 Update 1) on Linux (an OpenSUSE 11.1 in my case), about 30 tests in numpy.test() fail; all failures are related to the arctan2 function.</p>
<p dir="auto">I've found that in r7732 a patch was applied to trunk/numpy/core/src/private/npy_config.h in response to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="7728768" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/1799" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/1799/hovercard" href="https://github.com/numpy/numpy/issues/1799">#1799</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="7728770" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/1800" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/1800/hovercard" href="https://github.com/numpy/numpy/issues/1800">#1800</a>, and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="7728772" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/1801" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/1801/hovercard" href="https://github.com/numpy/numpy/issues/1801">#1801</a>, #undef'ing the HAVE_ATAN2 variable in order to fix a broken atan2() implementation on Solaris. This does no good with the SunStudio 12.1 compiler on Linux, though; it apparently only works without failures with HAVE_ATAN2 defined.</p>
<p dir="auto">The attached patch ensures that the original patch is only applied on Sun platforms (i.e., not on Linux). If applied, all tests are completed successfully under Linux. BTW, I did not observe <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="7728773" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/1802" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/1802/hovercard" href="https://github.com/numpy/numpy/issues/1802">#1802</a> or <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="7728775" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/1803" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/1803/hovercard" href="https://github.com/numpy/numpy/issues/1803">#1803</a>...</p>
<p dir="auto">I have no access to a Solaris machine, so I don't know if the original patch (which was for Sun workshop 6 - I think that's not available any more) is required with Sun Studio 12.1 at all.</p> | <p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1824" rel="nofollow">http://projects.scipy.org/numpy/ticket/1824</a> on 2011-05-08 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rgommers/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rgommers">@rgommers</a>, assigned to unknown.</em></p>
<p dir="auto">Reported by Ilan Schell on Solaris:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="======================================================================
FAIL: test_zero_nzero (test_umath.TestArctan2SpecialValues)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/demo/master/lib/python2.7/site-packages/numpy/core/tests/test_umath.py",
line 322, in test_zero_nzero
assert_almost_equal(ncu.arctan2(np.PZERO, np.NZERO), np.pi)
File "/home/demo/master/lib/python2.7/site-packages/numpy/testing/utils.py",
line 468, in assert_almost_equal
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 7 decimals
ACTUAL: 0.0
DESIRED: 3.141592653589793
======================================================================
FAIL: test_zero_pzero (test_umath.TestArctan2SpecialValues)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/demo/master/lib/python2.7/site-packages/numpy/core/tests/test_umath.py",
line 328, in test_zero_pzero
assert_arctan2_isnzero(np.NZERO, np.PZERO)
File "/home/demo/master/lib/python2.7/site-packages/numpy/core/tests/test_umath.py",
line 310, in assert_arctan2_isnzero
assert (ncu.arctan2(x, y) == 0 and np.signbit(ncu.arctan2(x, y))),
"arctan(%s, %s) is %s, not -0" % (x, y, ncu.arctan2(x, y))
AssertionError: arctan(-0.0, 0.0) is 0.0, not -0"><pre class="notranslate"><code class="notranslate">======================================================================
FAIL: test_zero_nzero (test_umath.TestArctan2SpecialValues)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/demo/master/lib/python2.7/site-packages/numpy/core/tests/test_umath.py",
line 322, in test_zero_nzero
assert_almost_equal(ncu.arctan2(np.PZERO, np.NZERO), np.pi)
File "/home/demo/master/lib/python2.7/site-packages/numpy/testing/utils.py",
line 468, in assert_almost_equal
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 7 decimals
ACTUAL: 0.0
DESIRED: 3.141592653589793
======================================================================
FAIL: test_zero_pzero (test_umath.TestArctan2SpecialValues)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/demo/master/lib/python2.7/site-packages/numpy/core/tests/test_umath.py",
line 328, in test_zero_pzero
assert_arctan2_isnzero(np.NZERO, np.PZERO)
File "/home/demo/master/lib/python2.7/site-packages/numpy/core/tests/test_umath.py",
line 310, in assert_arctan2_isnzero
assert (ncu.arctan2(x, y) == 0 and np.signbit(ncu.arctan2(x, y))),
"arctan(%s, %s) is %s, not -0" % (x, y, ncu.arctan2(x, y))
AssertionError: arctan(-0.0, 0.0) is 0.0, not -0
</code></pre></div> | 1 |
<h3 dir="auto">Describe your issue.</h3>
<p dir="auto">One way to speed up scipy.optimize.minimize is to compute the gradient when computing the function value. Because most of the computation are shared, this nearly half the amount of time required.</p>
<p dir="auto">Although shgo document this under the "options" parameter, it actually doesn't work: _shgo_lib/triangulation.py tries to compare the results when calling the function twice. But because the result is a numpy array, it fails with a ValueError: "The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()".</p>
<h3 dir="auto">Reproducing Code Example</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
from scipy.optimize import minimize, shgo
def f(x):
return np.sum(x * x), 2 * x
# This succeeds
print(minimize(f, [0.5, 0.5], jac=True))
# This fails
print(shgo(f, [(-1., 1.), (-1., 1.)], options={'jac': True}))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">from</span> <span class="pl-s1">scipy</span>.<span class="pl-s1">optimize</span> <span class="pl-k">import</span> <span class="pl-s1">minimize</span>, <span class="pl-s1">shgo</span>
<span class="pl-k">def</span> <span class="pl-en">f</span>(<span class="pl-s1">x</span>):
<span class="pl-k">return</span> <span class="pl-s1">np</span>.<span class="pl-en">sum</span>(<span class="pl-s1">x</span> <span class="pl-c1">*</span> <span class="pl-s1">x</span>), <span class="pl-c1">2</span> <span class="pl-c1">*</span> <span class="pl-s1">x</span>
<span class="pl-c"># This succeeds</span>
<span class="pl-en">print</span>(<span class="pl-en">minimize</span>(<span class="pl-s1">f</span>, [<span class="pl-c1">0.5</span>, <span class="pl-c1">0.5</span>], <span class="pl-s1">jac</span><span class="pl-c1">=</span><span class="pl-c1">True</span>))
<span class="pl-c"># This fails</span>
<span class="pl-en">print</span>(<span class="pl-en">shgo</span>(<span class="pl-s1">f</span>, [(<span class="pl-c1">-</span><span class="pl-c1">1.</span>, <span class="pl-c1">1.</span>), (<span class="pl-c1">-</span><span class="pl-c1">1.</span>, <span class="pl-c1">1.</span>)], <span class="pl-s1">options</span><span class="pl-c1">=</span>{<span class="pl-s">'jac'</span>: <span class="pl-c1">True</span>}))</pre></div>
<h3 dir="auto">Error message</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="File .../scipy/optimize/_shgo_lib/triangulation.py:597, in <genexpr>(.0)
595 """Check whether this vertex is strictly less than all its neighbors"""
596 if self.check_min:
--> 597 self._min = all(self.f < v.f for v in self.nn)
598 self.check_min = False
600 return self._min
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()"><pre class="notranslate">File .../scipy/optimize/_shgo_lib/triangulation.py:597, <span class="pl-k">in</span> <span class="pl-k"><</span>genexpr<span class="pl-s"><span class="pl-pds">>(</span>.0<span class="pl-pds">)</span></span>
595 <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span><span class="pl-pds">"</span>Check whether this vertex is strictly less than all its neighbors<span class="pl-pds">"</span><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
596 <span class="pl-k">if</span> self.check_min:
--<span class="pl-k">></span> 597 self._min = all(self.f <span class="pl-k"><</span> v.f <span class="pl-k">for</span> <span class="pl-smi">v</span> <span class="pl-k">in</span> self.nn)
598 self.check_min = False
600 <span class="pl-k">return</span> self._min
ValueError: The truth value of an array with more than one element is ambiguous. Use <span class="pl-en">a.any</span>() or <span class="pl-en">a.all</span>()</pre></div>
<h3 dir="auto">SciPy/NumPy/Python version information</h3>
<p dir="auto">1.7.3 1.21.6 sys.version_info(major=3, minor=9, micro=5, releaselevel='final', serial=0)</p> | <p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/350" rel="nofollow">http://projects.scipy.org/scipy/ticket/350</a> on 2007-01-19 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 unknown.</em></p>
<p dir="auto">Iterative solvers need some kind of a monitoring function to observe the convergence behaviour.</p> | 0 |
<p dir="auto">Add support for including the matching nested inner objects per hit element.</p> | <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3814081/7336251/b5981cc0-ec25-11e4-8b04-34cf5d6e7bd2.png"><img src="https://cloud.githubusercontent.com/assets/3814081/7336251/b5981cc0-ec25-11e4-8b04-34cf5d6e7bd2.png" alt="image" style="max-width: 100%;"></a><br>
,then when I search it, somethings happen,<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3814081/7336256/10434438-ec26-11e4-929a-3b2cc3aaa7a0.png"><img src="https://cloud.githubusercontent.com/assets/3814081/7336256/10434438-ec26-11e4-929a-3b2cc3aaa7a0.png" alt="image" style="max-width: 100%;"></a><br>
The result is not a JSON structure!</p> | 0 |
<p dir="auto"><a href="https://github.com/huggingface/transformers/blob/master/src/transformers/pipelines.py#L2509">https://github.com/huggingface/transformers/blob/master/src/transformers/pipelines.py#L2509</a></p> | <p dir="auto">OSError: Can't load tokenizer for 'google/reformer-enwik8'. Make sure that:</p>
<ul dir="auto">
<li>
<p dir="auto">'google/reformer-enwik8' is a correct model identifier listed on '<a href="https://huggingface.co/models" rel="nofollow">https://huggingface.co/models</a>'</p>
</li>
<li>
<p dir="auto">or 'google/reformer-enwik8' is the correct path to a directory containing relevant tokenizer files</p>
</li>
</ul>
<p dir="auto"><a href="https://huggingface.co/google/reformer-enwik8?text=My+name+is+Julien+and+I+like+to" rel="nofollow">https://huggingface.co/google/reformer-enwik8?text=My+name+is+Julien+and+I+like+to</a></p> | 0 |
<p dir="auto">On a Ubuntu 14.04 machine with a fresh copy of Julia master installed and an existing <code class="notranslate">~/.julia/v0.5</code> setup, <code class="notranslate">Pkg.clone</code> of an unregistered package throws an error:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> Pkg.clone("https://github.com/JaredCrean2/PETSc.jl.git") #For example
INFO: Cloning PETSc from https://github.com/JaredCrean2/PETSc.jl.git
ERROR: unlink: no such file or directory (ENOENT)
in cd at pkg/dir.jl:37
in clone at pkg.jl:38"><pre class="notranslate">julia<span class="pl-k">></span> Pkg<span class="pl-k">.</span><span class="pl-c1">clone</span>(<span class="pl-s"><span class="pl-pds">"</span>https://github.com/JaredCrean2/PETSc.jl.git<span class="pl-pds">"</span></span>) <span class="pl-c"><span class="pl-c">#</span>For example</span>
INFO<span class="pl-k">:</span> Cloning PETSc from https<span class="pl-k">:</span><span class="pl-k">//</span>github<span class="pl-k">.</span>com<span class="pl-k">/</span>JaredCrean2<span class="pl-k">/</span>PETSc<span class="pl-k">.</span>jl<span class="pl-k">.</span>git
ERROR<span class="pl-k">:</span> unlink<span class="pl-k">:</span> no such file or directory (ENOENT)
<span class="pl-k">in</span> cd at pkg<span class="pl-k">/</span>dir<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">37</span>
<span class="pl-k">in</span> clone at pkg<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">38</span></pre></div> | <p dir="auto">On a Ubuntu 14.04 machine with Julia master and no package repo, <code class="notranslate">Pkg.init</code> gives an error:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> Pkg.init()
INFO: Initializing package repository /afs/csail.mit.edu/u/j/jiahao/.julia/v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
ERROR: [Code:ERROR, Class:Net]: Unsupported URL protocol
[inlined code] from libgit2/error.jl:96
in clone at libgit2/repository.jl:95
in clone at libgit2.jl:303
in anonymous at pkg/dir.jl:57
in cd at file.jl:22
in init at pkg/dir.jl:55
in init at pkg.jl:23"><pre class="notranslate">julia<span class="pl-k">></span> Pkg<span class="pl-k">.</span><span class="pl-c1">init</span>()
INFO<span class="pl-k">:</span> Initializing package repository <span class="pl-k">/</span>afs<span class="pl-k">/</span>csail<span class="pl-k">.</span>mit<span class="pl-k">.</span>edu<span class="pl-k">/</span>u<span class="pl-k">/</span>j<span class="pl-k">/</span>jiahao<span class="pl-k">/</span><span class="pl-k">.</span>julia<span class="pl-k">/</span>v0.<span class="pl-c1">5</span>
INFO<span class="pl-k">:</span> Cloning METADATA from https<span class="pl-k">:</span><span class="pl-k">//</span>github<span class="pl-k">.</span>com<span class="pl-k">/</span>JuliaLang<span class="pl-k">/</span>METADATA<span class="pl-k">.</span>jl
ERROR<span class="pl-k">:</span> [Code<span class="pl-k">:</span>ERROR, Class<span class="pl-k">:</span>Net]<span class="pl-k">:</span> Unsupported URL protocol
[inlined code] from libgit2<span class="pl-k">/</span>error<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">96</span>
<span class="pl-k">in</span> clone at libgit2<span class="pl-k">/</span>repository<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">95</span>
<span class="pl-k">in</span> clone at libgit2<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">303</span>
<span class="pl-k">in</span> anonymous at pkg<span class="pl-k">/</span>dir<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">57</span>
<span class="pl-k">in</span> cd at file<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">22</span>
<span class="pl-k">in</span> init at pkg<span class="pl-k">/</span>dir<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">55</span>
<span class="pl-k">in</span> init at pkg<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">23</span></pre></div> | 1 |
<h1 dir="auto">Environment</h1>
<p dir="auto">Windows 10 b1903 18932.1000</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [run "ver" at a command prompt]
Windows Terminal version (if applicable): 0.2.1831.0
Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: [run "ver" at a command prompt]
Windows Terminal version (if applicable): 0.2.1831.0
Any other software?
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Add a path with spaces in System-Environment Variables at the end of existing ones, e.g.<br>
PATH=C:\Windows;C:\Windows\System32;C:\Program Files\Microsoft VS Code Insiders\bin</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">New path working.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">By typing "path" with a cmd terminal or "$env:path" with powershell, the path entry with spaces disappeared.</p> | <p dir="auto">Lastest version of MS terminal preview</p>
<p dir="auto">The highlight of exec files will behave strangely after resizing the window</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12162979/66370796-fc31bc80-e9d3-11e9-94af-ec93b6558f30.gif"><img src="https://user-images.githubusercontent.com/12162979/66370796-fc31bc80-e9d3-11e9-94af-ec93b6558f30.gif" alt="test" data-animated-image="" style="max-width: 100%;"></a></p> | 0 |
<p dir="auto">It would be useful to have a permission option to limit the imports to a certain domain or directory.</p> | <p dir="auto">Context: Currently loading dynamic imports or worker code requires <code class="notranslate">--allow-read</code> and/or <code class="notranslate">--allow-net</code> flags. Appropriate permissions are checked for entry point as well as all dependent modules. This leads to a situation where even quite simple scenarios require to grant a lot of permissions.</p>
<p dir="auto">Example 1:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// main.ts
console.log("hello");
const a = await import("./dyn_import.ts");
console.log(a);"><pre class="notranslate"><span class="pl-c">// main.ts</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"hello"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s">"./dyn_import.ts"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// dyn_import.ts
import "./subdir/a.ts";
import "./subdir/b.ts";
import { join } from "https://deno.land/[email protected]/path/mod.ts";
export ..."><pre class="notranslate"><span class="pl-c">// dyn_import.ts</span>
<span class="pl-k">import</span> <span class="pl-s">"./subdir/a.ts"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-s">"./subdir/b.ts"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">join</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://deno.land/[email protected]/path/mod.ts"</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> ...</pre></div>
<p dir="auto">I above example one needs to run with following flags:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno run --allow-read=dyn_import.ts,subdir/ --allow-net=deno.land main.ts"><pre class="notranslate"><code class="notranslate">deno run --allow-read=dyn_import.ts,subdir/ --allow-net=deno.land main.ts
</code></pre></div>
<p dir="auto">Similarly for workers, example 2:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// main.ts
console.log("hello");
const worker = new Worker(new URL("./worker.ts", import.meta.url), { type: "module" });
worker.postMessage("foo")"><pre class="notranslate"><span class="pl-c">// main.ts</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"hello"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">worker</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Worker</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-smi">URL</span><span class="pl-kos">(</span><span class="pl-s">"./worker.ts"</span><span class="pl-kos">,</span> <span class="pl-k">import</span><span class="pl-kos">.</span><span class="pl-c1">meta</span><span class="pl-kos">.</span><span class="pl-c1">url</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">type</span>: <span class="pl-s">"module"</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">worker</span><span class="pl-kos">.</span><span class="pl-en">postMessage</span><span class="pl-kos">(</span><span class="pl-s">"foo"</span><span class="pl-kos">)</span></pre></div>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// worker.ts
import "./subdir/a.ts";
import "./subdir/b.ts";
import { join } from "https://deno.land/[email protected]/path/mod.ts";
export ..."><pre class="notranslate"><span class="pl-c">// worker.ts</span>
<span class="pl-k">import</span> <span class="pl-s">"./subdir/a.ts"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-s">"./subdir/b.ts"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">join</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://deno.land/[email protected]/path/mod.ts"</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> ...</pre></div>
<p dir="auto">I above example one needs to run with following flags:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno run --allow-read=worker.ts,subdir/ --allow-net=deno.land main.ts"><pre class="notranslate"><code class="notranslate">deno run --allow-read=worker.ts,subdir/ --allow-net=deno.land main.ts
</code></pre></div>
<p dir="auto">In other words, doing dynamic imports or using workers requires to open up the sandbox by providing <code class="notranslate">read</code> and/or <code class="notranslate">net</code> permissions to load ES modules that will be executed. Of course one could revoke those permissions after the load is done, but with top-level-await this becomes quite tricky.</p>
<p dir="auto">My proposal:<br>
Introduce new flag <code class="notranslate">--allow-import=<allow_list></code> and change semantics of permission check for loading modules. Instead of verifying permissions for each static import we should only check permission of entry point. User could specify <code class="notranslate">--allow-import</code> to allow all dynamic imports and workers. So invocations for above examples would look as follows:</p>
<p dir="auto">Example 1:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno run --allow-import=dyn_import.ts main.ts"><pre class="notranslate"><code class="notranslate">deno run --allow-import=dyn_import.ts main.ts
</code></pre></div>
<p dir="auto">Example 2:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno run --allow-import=worker.ts main.ts"><pre class="notranslate"><code class="notranslate">deno run --allow-import=worker.ts main.ts
</code></pre></div>
<p dir="auto">Notice that no runtime permissions were given (no <code class="notranslate">--allow-read</code>, nor <code class="notranslate">--allow-net</code>).</p>
<p dir="auto">Going forward with this proposal would be a huge breaking change in semantics and require profound refactors. IMO we could start by introducing <code class="notranslate">--allow-import</code> and its semantics in next minor release, while keeping old semantics working (and showing warnings about it being deprecated). Then after one or two minor releases completely remove old semantics. Alternatively it could be 2.0 material.</p>
<p dir="auto">This issue is directly related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="728863126" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/8109" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/8109/hovercard" href="https://github.com/denoland/deno/issues/8109">#8109</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="733830494" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/8215" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/8215/hovercard" href="https://github.com/denoland/deno/pull/8215">#8215</a></p>
<p dir="auto">CC <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kitsonk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kitsonk">@kitsonk</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ry/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ry">@ry</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lucacasonato/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lucacasonato">@lucacasonato</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/piscisaureus/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/piscisaureus">@piscisaureus</a></p> | 1 |
<p dir="auto">I got the error below when running the Julia <code class="notranslate">make</code>. But going to <code class="notranslate">deps\openspecfun</code> and running <code class="notranslate">make</code> there seemed to work fine, and I was able to continue the Julia <code class="notranslate">make</code> afterward.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="uname -a
Linux giada.mitre.org 2.6.32-431.29.2.el6.x86_64 #1 SMP Sun Jul 27 15:55:46 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/redhat-release
Red Hat Enterprise Linux Workstation release 6.7 (Santiago)
gcc --version
gcc (GCC) 4.8.2
git --version
git version 2.5.0
(but the default gcc and git on this system are older)
....
make[1]: *** [openspecfun/Makefile] Error 129
make: *** [julia-deps] Error 2
[keithc@giada julia]$ make
In file included from /devel/asias/keithc/julia/usr/include/openlibm.h:4:0,
from Faddeeva/Faddeeva.cc:225,
from Faddeeva/Faddeeva.c:3:
/devel/asias/keithc/julia/usr/include/openlibm_complex.h:27:0: warning: "_Complex_I" redefined [enabled by default]
#define _Complex_I 1.0fi
^
In file included from Faddeeva/Faddeeva.h:31:0,
from Faddeeva/Faddeeva.cc:218,
from Faddeeva/Faddeeva.c:3:
/usr/include/complex.h:45:0: note: this is the location of the previous definition
#define _Complex_I (__extension__ 1.0iF)
^
In file included from /devel/asias/keithc/julia/usr/include/openlibm_fenv.h:8:0,
from /devel/asias/keithc/julia/usr/include/openlibm.h:5,
from Faddeeva/Faddeeva.cc:225,
from Faddeeva/Faddeeva.c:3:
/devel/asias/keithc/julia/usr/include/openlibm_fenv_amd64.h:32:26: fatal error: cdefs-compat.h: No such file or directory
#include "cdefs-compat.h"
^
compilation terminated.
make[2]: *** [Faddeeva/Faddeeva.c.o] Error 1
make[1]: *** [openspecfun/libopenspecfun.so] Error 2"><pre class="notranslate"><code class="notranslate">uname -a
Linux giada.mitre.org 2.6.32-431.29.2.el6.x86_64 #1 SMP Sun Jul 27 15:55:46 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/redhat-release
Red Hat Enterprise Linux Workstation release 6.7 (Santiago)
gcc --version
gcc (GCC) 4.8.2
git --version
git version 2.5.0
(but the default gcc and git on this system are older)
....
make[1]: *** [openspecfun/Makefile] Error 129
make: *** [julia-deps] Error 2
[keithc@giada julia]$ make
In file included from /devel/asias/keithc/julia/usr/include/openlibm.h:4:0,
from Faddeeva/Faddeeva.cc:225,
from Faddeeva/Faddeeva.c:3:
/devel/asias/keithc/julia/usr/include/openlibm_complex.h:27:0: warning: "_Complex_I" redefined [enabled by default]
#define _Complex_I 1.0fi
^
In file included from Faddeeva/Faddeeva.h:31:0,
from Faddeeva/Faddeeva.cc:218,
from Faddeeva/Faddeeva.c:3:
/usr/include/complex.h:45:0: note: this is the location of the previous definition
#define _Complex_I (__extension__ 1.0iF)
^
In file included from /devel/asias/keithc/julia/usr/include/openlibm_fenv.h:8:0,
from /devel/asias/keithc/julia/usr/include/openlibm.h:5,
from Faddeeva/Faddeeva.cc:225,
from Faddeeva/Faddeeva.c:3:
/devel/asias/keithc/julia/usr/include/openlibm_fenv_amd64.h:32:26: fatal error: cdefs-compat.h: No such file or directory
#include "cdefs-compat.h"
^
compilation terminated.
make[2]: *** [Faddeeva/Faddeeva.c.o] Error 1
make[1]: *** [openspecfun/libopenspecfun.so] Error 2
</code></pre></div> | <p dir="auto">On a fresh checkout on ubuntu 14.04, using gcc 4.8, I am seeing:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In file included from /home/justdial/julia/usr/include/openlibm.h:4:0,
from Faddeeva/Faddeeva.cc:225,
from Faddeeva/Faddeeva.c:3:
/home/justdial/julia/usr/include/openlibm_complex.h:27:0: warning: "_Complex_I" redefined [enabled by default]
#define _Complex_I 1.0fi
^
In file included from Faddeeva/Faddeeva.h:31:0,
from Faddeeva/Faddeeva.cc:218,
from Faddeeva/Faddeeva.c:3:
/usr/include/complex.h:44:0: note: this is the location of the previous definition
#define _Complex_I (__extension__ 1.0iF)
^
In file included from /home/justdial/julia/usr/include/openlibm_fenv.h:8:0,
from /home/justdial/julia/usr/include/openlibm.h:5,
from Faddeeva/Faddeeva.cc:225,
from Faddeeva/Faddeeva.c:3:
/home/justdial/julia/usr/include/openlibm_fenv_amd64.h:32:26: fatal error: cdefs-compat.h: No such file or directory
#include "cdefs-compat.h"
^"><pre class="notranslate"><code class="notranslate">In file included from /home/justdial/julia/usr/include/openlibm.h:4:0,
from Faddeeva/Faddeeva.cc:225,
from Faddeeva/Faddeeva.c:3:
/home/justdial/julia/usr/include/openlibm_complex.h:27:0: warning: "_Complex_I" redefined [enabled by default]
#define _Complex_I 1.0fi
^
In file included from Faddeeva/Faddeeva.h:31:0,
from Faddeeva/Faddeeva.cc:218,
from Faddeeva/Faddeeva.c:3:
/usr/include/complex.h:44:0: note: this is the location of the previous definition
#define _Complex_I (__extension__ 1.0iF)
^
In file included from /home/justdial/julia/usr/include/openlibm_fenv.h:8:0,
from /home/justdial/julia/usr/include/openlibm.h:5,
from Faddeeva/Faddeeva.cc:225,
from Faddeeva/Faddeeva.c:3:
/home/justdial/julia/usr/include/openlibm_fenv_amd64.h:32:26: fatal error: cdefs-compat.h: No such file or directory
#include "cdefs-compat.h"
^
</code></pre></div> | 1 |
<p dir="auto"><strong>Symfony version(s) affected</strong>: 4.0.6</p>
<p dir="auto"><strong>Description</strong><br>
So, let's say I have a JSON data corresponding to a class <strong>Child</strong> that has an attribute <strong>games</strong> that is an array of objects of class <strong>Game</strong>. So when using the serialisation using setters I get and the end a Child Object with an attribute games that is an array of several Game instances.<br>
However for design reasons it is not possible to use the setters so I had to use the serialisation through the constructor, hence on my constructor I have someting like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
class Child
{
/**
* @var Game[]
*/
private $games;
/**
* Child constructor.
*
* @param Game[] $games
*/
public function __construct(
array $games,
) {
$this->games = $games;
}
}"><pre class="notranslate"><code class="notranslate">
class Child
{
/**
* @var Game[]
*/
private $games;
/**
* Child constructor.
*
* @param Game[] $games
*/
public function __construct(
array $games,
) {
$this->games = $games;
}
}
</code></pre></div>
<h3 dir="auto"><strong>setter denormalization</strong></h3>
<p dir="auto">The problem here is that the denormalizer could not figure out that the games is an array of objects from the class <strong>Game</strong> and then I get instead of an object an array have the same attributes defined on the <strong>Game</strong> class which is not the same when I add a setter for the games.</p>
<p dir="auto">When I debug it the code fro both setter serialization and constructor serialization I can see the difference between both methods getting into action.</p>
<ul dir="auto">
<li>For the first case of the <strong>setter denormalization</strong> the function <strong>validateAndDenormalize</strong> from the <strong>AbstractObjectNormalizer</strong> is handling the normalization and there is the code there is a check on the collection type <code class="notranslate">if ($type->isCollection() && null !== ($collectionValueType = $type->getCollectionValueType()) && Type::BUILTIN_TYPE_OBJECT === $collectionValueType->getBuiltinType())</code> which can determine if the array has objects from a defined class.</li>
</ul>
<p dir="auto">Adding a setter like that is enough to get the right denormalization:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" /**
* @param Game[] $games
* @return Child
*/
public function setGames(array $games): Child
{
$this->games = $games;
return $this;
}"><pre class="notranslate"><code class="notranslate"> /**
* @param Game[] $games
* @return Child
*/
public function setGames(array $games): Child
{
$this->games = $games;
return $this;
}
</code></pre></div>
<h3 dir="auto"><strong>constructor denormalization</strong></h3>
<ul dir="auto">
<li>However for the other case: the <strong>constructor denormalization</strong>: the function <strong>instatiateObject</strong> from the <strong>AbstractNormalizer</strong> class is being executed and there there are no check on the type collection <code class="notranslate">$params[] = $parameterData;</code> ==> that line exactly is responsible of giving me back an array of attributes instead of creating an object from the class <strong>Game</strong> which I really found a bad behaviour and mis-leading.</li>
</ul>
<p dir="auto"><strong>How to reproduce</strong><br>
Just setting a Child class with an attribute games which is an array of Game objects. And a class Game with some attributes. And then A Json Object that represents a child objects with a related array of games is enough to reproduces this behaviour.<br>
A hint for the JSON:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"name": "test-boy",
"age": 12,
"games": [{
"name": "Age of Empire",
"genre": "Strategy"
}]
}"><pre class="notranslate"><code class="notranslate">{
"name": "test-boy",
"age": 12,
"games": [{
"name": "Age of Empire",
"genre": "Strategy"
}]
}
</code></pre></div>
<p dir="auto"><strong>Possible Solution</strong><br>
The possible solution is to implement a collection verification as it is implemented on the first case (setter denormalization) would be enough I guess to fix this behaviour.</p> | <table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>no</td>
</tr>
<tr>
<td>Feature request?</td>
<td>yes</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>no</td>
</tr>
<tr>
<td>RFC?</td>
<td>no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>?</td>
</tr>
</tbody>
</table>
<p dir="auto">Currenly PhpDocExtractor works only with class properties. It's not possible to clarify the type of the constructor parameter through docblock comment.</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class A
{
private $b;
/**
* @param B[] $b
*/
public function __construct(array $b)
{
$this->b = $b;
}
public function getB()
{
return $this->b;
}
}
class B
{
private $c;
public function __construct($c)
{
$this->c = $c;
}
public function getC()
{
return $this->c;
}
}
$a = $serializer->denormalize(['b' => [['c' => 1], ['c' => 2], ['c' => 3]]], A::class);
print_r($a);"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">A</span>
{
<span class="pl-k">private</span> <span class="pl-c1"><span class="pl-c1">$</span>b</span>;
<span class="pl-c">/**</span>
<span class="pl-c"> * @param B[] $b</span>
<span class="pl-c"> */</span>
<span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">__construct</span>(<span class="pl-smi">array</span> <span class="pl-s1"><span class="pl-c1">$</span>b</span>)
{
<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-c1">b</span> = <span class="pl-s1"><span class="pl-c1">$</span>b</span>;
}
<span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">getB</span>()
{
<span class="pl-k">return</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-c1">b</span>;
}
}
<span class="pl-k">class</span> <span class="pl-v">B</span>
{
<span class="pl-k">private</span> <span class="pl-c1"><span class="pl-c1">$</span>c</span>;
<span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">__construct</span>(<span class="pl-s1"><span class="pl-c1">$</span>c</span>)
{
<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-c1">c</span> = <span class="pl-s1"><span class="pl-c1">$</span>c</span>;
}
<span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">getC</span>()
{
<span class="pl-k">return</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-c1">c</span>;
}
}
<span class="pl-s1"><span class="pl-c1">$</span>a</span> = <span class="pl-s1"><span class="pl-c1">$</span>serializer</span>-><span class="pl-en">denormalize</span>([<span class="pl-s">'b'</span> => [[<span class="pl-s">'c'</span> => <span class="pl-c1">1</span>], [<span class="pl-s">'c'</span> => <span class="pl-c1">2</span>], [<span class="pl-s">'c'</span> => <span class="pl-c1">3</span>]]], <span class="pl-v">A</span>::class);
print_r(<span class="pl-s1"><span class="pl-c1">$</span>a</span>);</pre></div>
<p dir="auto">Expected result:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="App\A Object
(
[b:App\A:private] => Array
(
[0] => App\B Object
(
[c:App\B:private] => 1
)
[1] => App\B Object
(
[c:App\B:private] => 2
)
[2] => App\B Object
(
[c:App\B:private] => 3
)
)
)"><pre class="notranslate"><code class="notranslate">App\A Object
(
[b:App\A:private] => Array
(
[0] => App\B Object
(
[c:App\B:private] => 1
)
[1] => App\B Object
(
[c:App\B:private] => 2
)
[2] => App\B Object
(
[c:App\B:private] => 3
)
)
)
</code></pre></div>
<p dir="auto">Actual result:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="App\A Object
(
[b:App\A:private] => Array
(
[0] => Array
(
[c] => 1
)
[1] => Array
(
[c] => 2
)
[2] => Array
(
[c] => 3
)
)
)"><pre class="notranslate"><code class="notranslate">App\A Object
(
[b:App\A:private] => Array
(
[0] => Array
(
[c] => 1
)
[1] => Array
(
[c] => 2
)
[2] => Array
(
[c] => 3
)
)
)
</code></pre></div> | 1 |
<p dir="auto">tsc version 1.6.2</p>
<p dir="auto">Test case:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface ProblemMatcher {
owner: string;
}
interface Task {
problemMatchers: ProblemMatcher[];
}
let matcher: ProblemMatcher = {
owner: 'ts'
};
(matcher as any).mySpecial = true;
class Parser {
public process() {
let task: Task;
for(let matcher of task.problemMatchers) {
if ((matcher as any).mySpecial) {
// Do something.
}
}
}
}"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">ProblemMatcher</span> <span class="pl-kos">{</span>
<span class="pl-c1">owner</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">interface</span> <span class="pl-smi">Task</span> <span class="pl-kos">{</span>
<span class="pl-c1">problemMatchers</span>: <span class="pl-smi">ProblemMatcher</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">let</span> <span class="pl-s1">matcher</span>: <span class="pl-smi">ProblemMatcher</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">owner</span>: <span class="pl-s">'ts'</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos">(</span><span class="pl-s1">matcher</span> <span class="pl-k">as</span> <span class="pl-smi">any</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">mySpecial</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span>
<span class="pl-k">class</span> <span class="pl-smi">Parser</span> <span class="pl-kos">{</span>
<span class="pl-k">public</span> <span class="pl-en">process</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> <span class="pl-s1">task</span>: <span class="pl-smi">Task</span><span class="pl-kos">;</span>
<span class="pl-k">for</span><span class="pl-kos">(</span><span class="pl-k">let</span> <span class="pl-s1">matcher</span> <span class="pl-k">of</span> <span class="pl-s1">task</span><span class="pl-kos">.</span><span class="pl-c1">problemMatchers</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">matcher</span> <span class="pl-k">as</span> <span class="pl-smi">any</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">mySpecial</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// Do something.</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 compiler generates</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var matcher = {
owner: 'ts'
};
matcher.mySpecial = true;
var Parser = (function () {
function Parser() {
}
Parser.prototype.processOne = function () {
var task;
for (var _i = 0, _a = task.problemMatchers; _i < _a.length; _i++) {
var matcher_1 = _a[_i];
if (matcher.mySpecial) {
}
}
};
Parser.prototype.processTwo = function () {
var task;
for (var _i = 0, _a = task.problemMatchers; _i < _a.length; _i++) {
var matcher_2 = _a[_i];
if (matcher.mySpecial) {
}
}
};
return Parser;
})();"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">matcher</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">owner</span>: <span class="pl-s">'ts'</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-s1">matcher</span><span class="pl-kos">.</span><span class="pl-c1">mySpecial</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-v">Parser</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">Parser</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">Parser</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-en">processOne</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">task</span><span class="pl-kos">;</span>
<span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">var</span> <span class="pl-s1">_i</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">_a</span> <span class="pl-c1">=</span> <span class="pl-s1">task</span><span class="pl-kos">.</span><span class="pl-c1">problemMatchers</span><span class="pl-kos">;</span> <span class="pl-s1">_i</span> <span class="pl-c1"><</span> <span class="pl-s1">_a</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">;</span> <span class="pl-s1">_i</span><span class="pl-c1">++</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">matcher_1</span> <span class="pl-c1">=</span> <span class="pl-s1">_a</span><span class="pl-kos">[</span><span class="pl-s1">_i</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">matcher</span><span class="pl-kos">.</span><span class="pl-c1">mySpecial</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-v">Parser</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-en">processTwo</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">task</span><span class="pl-kos">;</span>
<span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">var</span> <span class="pl-s1">_i</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">_a</span> <span class="pl-c1">=</span> <span class="pl-s1">task</span><span class="pl-kos">.</span><span class="pl-c1">problemMatchers</span><span class="pl-kos">;</span> <span class="pl-s1">_i</span> <span class="pl-c1"><</span> <span class="pl-s1">_a</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">;</span> <span class="pl-s1">_i</span><span class="pl-c1">++</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">matcher_2</span> <span class="pl-c1">=</span> <span class="pl-s1">_a</span><span class="pl-kos">[</span><span class="pl-s1">_i</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">matcher</span><span class="pl-kos">.</span><span class="pl-c1">mySpecial</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-v">Parser</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 problematic code is If (matcher.mySpecial) ... This must be if (matcher_2.mySpecial)</p> | <p dir="auto"><strong>foo.ts</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export function foo() { }"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">function</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-kos">}</span></pre></div>
<p dir="auto"><strong>bar.ts</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { foo } from './foo';
(foo as any);"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">foo</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./foo'</span><span class="pl-kos">;</span>
<span class="pl-kos">(</span><span class="pl-s1">foo</span> <span class="pl-k">as</span> <span class="pl-smi">any</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>bar.js</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var foo_1 = require('./foo');
foo;"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">foo_1</span> <span class="pl-c1">=</span> <span class="pl-en">require</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-s1">foo</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><code class="notranslate">(<any>foo)</code> works correctly btw.</p> | 1 |
<p dir="auto">Since Lucene 4.4 release enable_position_increment settings on token filters cannot be set to false which results in underscores appearing for filtered tokens in shingle filters.</p> | <p dir="auto">In very rare cases, it is possible to have two snapshots of the same name exist in a repository, one found in the cluster state as a snapshot in progress, and the other found in the repository. This can happen when a snapshot (lets call it <code class="notranslate">snap</code>) exists in the repository, and we try to create another snapshot with the same name <code class="notranslate">snap</code>. When trying to create the second <code class="notranslate">snap</code>, <code class="notranslate">SnapshotsService#createSnapshot</code> first updates the cluster state to include the second 'snap' snapshot as a snapshot in progress, and then calls <code class="notranslate">SnapshotsService#beginSnapshot</code>, which checks if a snapshot by the same name already exists. If a snapshot by the same name does exist, an exception is thrown, which results in calling <code class="notranslate">SnapshotsService#removeSnapshotFromClusterState</code>. However, this call to remove the snapshot from the cluster state simply submits a cluster state update task for the cluster service to execute in its own update thread, and so there is a tiny window when the cluster state could have a snapshot in progress with the name <code class="notranslate">snap</code> and the repository could have the original snapshot named 'snap' in its storage.</p>
<p dir="auto">This affects the <code class="notranslate">SnapshotsService#deleteSnapshot</code> call, which looks through both the current snapshots and the snapshots in the repository storage, and it also affects <code class="notranslate">TransportGetSnapshotsAction</code> and <code class="notranslate">TransportSnapshotsStatusAction</code>, which have a very tiny window of time in which its possible to return two snapshots of the same name, or to return the current (soon-to-be-removed from the cluster state) snapshot when the snapshot in the repository storage is what was meant.</p>
<p dir="auto">For those wondering why we don't check if the snapshot name already exists before adding the new snapshot to the cluster state's snapshots in progress, the reason is because it can present race conditions of its own. If two requests arrive to create a snapshot of the same name at the same time, because neither has yet to be added to the cluster state, it is possible that both pass the check and subsequently both eventually get created by the snapshots service.</p> | 0 |
<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] 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></p>
<p dir="auto">When trying to use a service, if I try to provide and consume it using the 'inject' method I get the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" × should inject service
- TypeError: Cannot read property 'injector' of null
√ should have myNumber equal to 10
√ should have myConstructorNumber equal to 20
√ should have myConstructorNumber equal to 15 after ctor
√ should persist myConstructorNumber"><pre class="notranslate"><code class="notranslate"> × should inject service
- TypeError: Cannot read property 'injector' of null
√ should have myNumber equal to 10
√ should have myConstructorNumber equal to 20
√ should have myConstructorNumber equal to 15 after ctor
√ should persist myConstructorNumber
</code></pre></div>
<p dir="auto">(I gave up on Karma, because this issue occurs in all situations, so I thought I can single out the issue easier this way).</p>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">As you can see above, all the tests execute correctly except for one which uses the 'inject' method to provide the service instance. (rest of them are just some static variables, I only want to set up the infrastructure at this point, no actual code to test, so getting this error at this point doesn't actually seem normal).</p>
<p dir="auto"><strong>Reproduction of the problem</strong></p>
<details>
The service:
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { Injectable } from '@angular/core';
@Injectable()
export class TestService {
static myNumber: number = 10;
static myConstructorNumber: number = 20;
constructor() {
TestService.myConstructorNumber = 15;
}
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">Injectable</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@angular/core'</span><span class="pl-kos">;</span>
@<span class="pl-smi">Injectable</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">TestService</span> <span class="pl-kos">{</span>
<span class="pl-k">static</span> <span class="pl-c1">myNumber</span>: <span class="pl-smi">number</span> <span class="pl-c1">=</span> <span class="pl-c1">10</span><span class="pl-kos">;</span>
<span class="pl-k">static</span> <span class="pl-c1">myConstructorNumber</span>: <span class="pl-smi">number</span> <span class="pl-c1">=</span> <span class="pl-c1">20</span><span class="pl-kos">;</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">TestService</span><span class="pl-kos">.</span><span class="pl-c1">myConstructorNumber</span> <span class="pl-c1">=</span> <span class="pl-c1">15</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">The service spec:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'core-js';
import 'zone.js';
import 'zone.js/dist/long-stack-trace-zone';
import 'zone.js/dist/async-test';
import 'zone.js/dist/fake-async-test';
import 'zone.js/dist/sync-test';
import 'zone.js/dist/proxy';
import 'zone.js/dist/jasmine-patch';
import 'rxjs';
import 'reflect-metadata';
import {
fakeAsync,
inject,
TestBed,
} from '@angular/core/testing';
import {
TestService,
} from './test.service';
describe('Test Service', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [
{ provide: TestService, useClass: TestService },
],
});
});
it('should inject service',
fakeAsync(inject([TestService], (svc: TestService) => {
expect(TestService.myNumber).toBe(10);
}))
);
it('should have myNumber equal to 10', () => {
expect(TestService.myNumber).toBe(10);
});
it('should have myConstructorNumber equal to 20', () => {
expect(TestService.myConstructorNumber).toBe(20);
});
it('should have myConstructorNumber equal to 15 after ctor', () => {
new TestService();
expect(TestService.myConstructorNumber).toBe(15);
});
it('should persist myConstructorNumber', () => {
expect(TestService.myConstructorNumber).toBe(15);
});
});"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'core-js'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-s">'zone.js'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-s">'zone.js/dist/long-stack-trace-zone'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-s">'zone.js/dist/async-test'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-s">'zone.js/dist/fake-async-test'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-s">'zone.js/dist/sync-test'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-s">'zone.js/dist/proxy'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-s">'zone.js/dist/jasmine-patch'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-s">'rxjs'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-s">'reflect-metadata'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span>
<span class="pl-s1">fakeAsync</span><span class="pl-kos">,</span>
<span class="pl-s1">inject</span><span class="pl-kos">,</span>
<span class="pl-smi">TestBed</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@angular/core/testing'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span>
<span class="pl-smi">TestService</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./test.service'</span><span class="pl-kos">;</span>
<span class="pl-en">describe</span><span class="pl-kos">(</span><span class="pl-s">'Test Service'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-en">beforeEach</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-smi">TestBed</span><span class="pl-kos">.</span><span class="pl-en">configureTestingModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">providers</span>: <span class="pl-kos">[</span>
<span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">TestService</span><span class="pl-kos">,</span> <span class="pl-c1">useClass</span>: <span class="pl-smi">TestService</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>
<span class="pl-en">it</span><span class="pl-kos">(</span><span class="pl-s">'should inject service'</span><span class="pl-kos">,</span>
<span class="pl-en">fakeAsync</span><span class="pl-kos">(</span><span class="pl-en">inject</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-smi">TestService</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">svc</span>: <span class="pl-smi">TestService</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-smi">TestService</span><span class="pl-kos">.</span><span class="pl-c1">myNumber</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBe</span><span class="pl-kos">(</span><span class="pl-c1">10</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">it</span><span class="pl-kos">(</span><span class="pl-s">'should have myNumber equal to 10'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-smi">TestService</span><span class="pl-kos">.</span><span class="pl-c1">myNumber</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBe</span><span class="pl-kos">(</span><span class="pl-c1">10</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">it</span><span class="pl-kos">(</span><span class="pl-s">'should have myConstructorNumber equal to 20'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-smi">TestService</span><span class="pl-kos">.</span><span class="pl-c1">myConstructorNumber</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBe</span><span class="pl-kos">(</span><span class="pl-c1">20</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">it</span><span class="pl-kos">(</span><span class="pl-s">'should have myConstructorNumber equal to 15 after ctor'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">new</span> <span class="pl-smi">TestService</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-smi">TestService</span><span class="pl-kos">.</span><span class="pl-c1">myConstructorNumber</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBe</span><span class="pl-kos">(</span><span class="pl-c1">15</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">it</span><span class="pl-kos">(</span><span class="pl-s">'should persist myConstructorNumber'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-smi">TestService</span><span class="pl-kos">.</span><span class="pl-c1">myConstructorNumber</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBe</span><span class="pl-kos">(</span><span class="pl-c1">15</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">Dependency versions:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""dependencies": {
"@angular/common": "2.0.0-rc.6",
"@angular/compiler": "2.0.0-rc.6",
"@angular/core": "2.0.0-rc.6",
"@angular/forms": "2.0.0-rc.6",
"@angular/http": "2.0.0-rc.6",
"@angular/platform-browser": "2.0.0-rc.6",
"@angular/platform-browser-dynamic": "2.0.0-rc.6",
"@angular/router": "3.0.0-rc.2",
"@angular/upgrade": "2.0.0-rc.6",
"angular2-in-memory-web-api": "0.0.18",
"reflect-metadata": "0.1.8",
"rxjs": "5.0.0-beta.11",
"systemjs": "0.19.38",
"zone.js": "0.6.17"
},
"devDependencies": {
"@types/core-js": "^0.9.32",
"@types/jasmine": "^2.2.33",
"@types/node": "^4.0.22-alpha",
"@types/requirejs": "^2.1.26",
"gulp": "^3.9.1",
"gulp-babel": "^6.1.2",
"gulp-clean": "^0.3.2",
"gulp-sourcemaps": "^1.6.0",
"gulp-tslint": "^6.1.1",
"gulp-typescript": "^2.13.6",
"gulpclass": "^0.1.1",
"jasmine": "^2.5.0",
"jasmine-spec-reporter": "^2.7.0",
"phantomjs": "^2.1.7",
"phantomjs-polyfill": "0.0.2",
"tslint": "^3.15.1",
"typescript": "^2.0.2"
},"><pre class="notranslate"><span class="pl-ent">"dependencies"</span>: {
<span class="pl-ent">"@angular/common"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.0.0-rc.6<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@angular/compiler"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.0.0-rc.6<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@angular/core"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.0.0-rc.6<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@angular/forms"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.0.0-rc.6<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@angular/http"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.0.0-rc.6<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@angular/platform-browser"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.0.0-rc.6<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@angular/platform-browser-dynamic"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.0.0-rc.6<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@angular/router"</span>: <span class="pl-s"><span class="pl-pds">"</span>3.0.0-rc.2<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@angular/upgrade"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.0.0-rc.6<span class="pl-pds">"</span></span>,
<span class="pl-ent">"angular2-in-memory-web-api"</span>: <span class="pl-s"><span class="pl-pds">"</span>0.0.18<span class="pl-pds">"</span></span>,
<span class="pl-ent">"reflect-metadata"</span>: <span class="pl-s"><span class="pl-pds">"</span>0.1.8<span class="pl-pds">"</span></span>,
<span class="pl-ent">"rxjs"</span>: <span class="pl-s"><span class="pl-pds">"</span>5.0.0-beta.11<span class="pl-pds">"</span></span>,
<span class="pl-ent">"systemjs"</span>: <span class="pl-s"><span class="pl-pds">"</span>0.19.38<span class="pl-pds">"</span></span>,
<span class="pl-ent">"zone.js"</span>: <span class="pl-s"><span class="pl-pds">"</span>0.6.17<span class="pl-pds">"</span></span>
},
<span class="pl-ent">"devDependencies"</span>: {
<span class="pl-ent">"@types/core-js"</span>: <span class="pl-s"><span class="pl-pds">"</span>^0.9.32<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@types/jasmine"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.2.33<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@types/node"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.0.22-alpha<span class="pl-pds">"</span></span>,
<span class="pl-ent">"@types/requirejs"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.1.26<span class="pl-pds">"</span></span>,
<span class="pl-ent">"gulp"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.9.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"gulp-babel"</span>: <span class="pl-s"><span class="pl-pds">"</span>^6.1.2<span class="pl-pds">"</span></span>,
<span class="pl-ent">"gulp-clean"</span>: <span class="pl-s"><span class="pl-pds">"</span>^0.3.2<span class="pl-pds">"</span></span>,
<span class="pl-ent">"gulp-sourcemaps"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.6.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"gulp-tslint"</span>: <span class="pl-s"><span class="pl-pds">"</span>^6.1.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"gulp-typescript"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.13.6<span class="pl-pds">"</span></span>,
<span class="pl-ent">"gulpclass"</span>: <span class="pl-s"><span class="pl-pds">"</span>^0.1.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"jasmine"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.5.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"jasmine-spec-reporter"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.7.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"phantomjs"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.1.7<span class="pl-pds">"</span></span>,
<span class="pl-ent">"phantomjs-polyfill"</span>: <span class="pl-s"><span class="pl-pds">"</span>0.0.2<span class="pl-pds">"</span></span>,
<span class="pl-ent">"tslint"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.15.1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"typescript"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.0.2<span class="pl-pds">"</span></span>
},</pre></div>
</details>
<p dir="auto"><strong>Reason:</strong><br>
I'm trying to set this up for the following reason: the project I'm building right now will have all core logic (Services/Pipes etc.) in a different repository that will be referenced as a git submodule in all client repositories. So I will only need to test Injectable classes.</p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.0-rc.6</li>
<li><strong>Browser:</strong> [all]</li>
<li><strong>Language:</strong> [TypeScript 2.0]</li>
</ul> | <p dir="auto">When I tried to add active class to active route to my navbar, I found the following bug in router.isActive function:<br>
isActive function returns true in all dasboard elements, so all links looks active with exact true parameter,</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<li *ngFor="let item of dashboards"
[class.active]="router.isActive(router.createUrlTree(['dashboard', { dashboard: item }]), true)">
<a [routerLink]="['./dashboard', { dashboard: item }]">
{{ item }}
</a>
</li>"><pre class="notranslate"><code class="notranslate"><li *ngFor="let item of dashboards"
[class.active]="router.isActive(router.createUrlTree(['dashboard', { dashboard: item }]), true)">
<a [routerLink]="['./dashboard', { dashboard: item }]">
{{ item }}
</a>
</li>
</code></pre></div>
<p dir="auto">The router is Angular2 router and the dashboards is <code class="notranslate">public dashboards: string[];</code></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/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">All rows should have the same border color</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">When I use colSpan for combine many columns borders have different colors</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">You may see this on <a href="https://stackblitz.com/edit/react-ndnykx?file=index.js" rel="nofollow">example</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.21</td>
</tr>
<tr>
<td>React</td>
<td>16.1.1</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome 62.0.3202.94</td>
</tr>
<tr>
<td>os</td>
<td>Windows 10</td>
</tr>
</tbody>
</table> | <p dir="auto">Hello, after commints on Feb 4 2018 all multiline inputs stopped to resize properly.</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">When user adds a new row to multiline field it resizes it's height to fit the text and cursor moves to the new row.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">When user adds a new row the text field resizes it's height as needed, but the cursor still remains on the first line and text goes outside the upper bounds of the textfield.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/32362508/35798005-94139700-0a72-11e8-85fe-010da33c9c19.png"><img src="https://user-images.githubusercontent.com/32362508/35798005-94139700-0a72-11e8-85fe-010da33c9c19.png" alt="multiline bug" style="max-width: 100%;"></a></p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Create simple multiline text field</li>
<li>Enter multiline text</li>
</ol>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>1.0.0-beta.32</td>
</tr>
<tr>
<td>React</td>
<td>16.2.0</td>
</tr>
<tr>
<td>browser</td>
<td>firefox</td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">If the minifier doesn't eliminate constant expressions (like Uglify does), with the way our flat bundles currently work you would ship two bundles.</p>
<p dir="auto">We should warn prominently in this case, as you would effectively ship a double bundle to production.</p> | <p dir="auto">This is task list issue.<br>
"Blocks" fixture app which made by built-in API, 'react-fetch', Server Component combination that useful to play new features v18 later.</p>
<p dir="auto">But current one is broken because importing removed older Cache API module.<br>
And difficult to notice that regression because there are no tests.</p>
<p dir="auto">So I planning these task for Blocks working fine again and write regression tests.</p>
<p dir="auto">[Blocks Fixture] fix broken fixture <code class="notranslate">ServerComponent</code> app <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="976204970" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/22151" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/22151/hovercard" href="https://github.com/facebook/react/pull/22151">#22151</a><br>
Write regression tests with Cypress<br>
Consider better implementation at some <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/todo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/todo">@todo</a> comments, where should we invoke cache refresh() function etc...</p> | 0 |
<p dir="auto">We take snpashots every hour to AWS S3 directly using cloud-aws plugin<br>
snapshot was stuck because of a reboot on master node during the snapshot, ES version 1.4.0, ArchLinux<br>
Cluster was later upgraded to 1.4.2 at which point we noticed that there is a snapshot stuck<br>
while trying to create a new snapshot<br>
<code class="notranslate">{"error":"ConcurrentSnapshotExecutionException[[my_s3_repository:2015.04.13.09.16.42] a snapshot is already running]","status":503}</code><br>
curl localhost:9200/_snapshot/my_s3_repository/_all?pretty doesn't have the stuck snapshot in the list.</p>
<p dir="auto">Delete snapshot command never completes, it hangs forever.<br>
rolling restart (restarting one node after the other) didn't help.<br>
Clean up script doesn't work for me <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="66571776" data-permission-text="Title is private" data-url="https://github.com/imotov/elasticsearch-snapshot-cleanup/issues/2" data-hovercard-type="issue" data-hovercard-url="/imotov/elasticsearch-snapshot-cleanup/issues/2/hovercard" href="https://github.com/imotov/elasticsearch-snapshot-cleanup/issues/2">imotov/elasticsearch-snapshot-cleanup#2</a></p>
<p dir="auto">In S3, there is no metadata file for the stuck snapshot, there are snapshot- files for some of the indices</p>
<p dir="auto">How do I atleast forget/discard old snapshots..create a new repository and start fresh. I can not stop the whole cluster as it is a production cluster.</p>
<p dir="auto">curl localhost:9200/_snapshot/_status?pretty</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"snapshots" : [ {
"snapshot" : "2015.03.11.06.04.39",
"repository" : "my_s3_repository",
"state" : "ABORTED",
"shards_stats" : {
"initializing" : 0,
"started" : 0,
"finalizing" : 0,
"done" : 17,
"failed" : 3,
"total" : 20
},
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
},
"indices" : {
"playground_video" : {
"shards_stats" : {
"initializing" : 0,
"started" : 0,
"finalizing" : 0,
"done" : 5,
"failed" : 0,
"total" : 5
},
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
},
"shards" : {
"4" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"3" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"2" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"1" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"0" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
}
}
},
"playground_feed" : {
"shards_stats" : {
"initializing" : 0,
"started" : 0,
"finalizing" : 0,
"done" : 4,
"failed" : 1,
"total" : 5
},
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
},
"shards" : {
"4" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"2" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"3" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"0" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"1" : {
"stage" : "FAILURE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
}
}
},
"playground_profile" : {
"shards_stats" : {
"initializing" : 0,
"started" : 0,
"finalizing" : 0,
"done" : 4,
"failed" : 1,
"total" : 5
},
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
},
"shards" : {
"2" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"1" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"4" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"3" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"0" : {
"stage" : "FAILURE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
}
}
},
"playground_admin" : {
"shards_stats" : {
"initializing" : 0,
"started" : 0,
"finalizing" : 0,
"done" : 4,
"failed" : 1,
"total" : 5
},
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
},
"shards" : {
"2" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"1" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"0" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"4" : {
"stage" : "FAILURE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"3" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
}
}
}
}
} ]
}"><pre class="notranslate"><code class="notranslate">{
"snapshots" : [ {
"snapshot" : "2015.03.11.06.04.39",
"repository" : "my_s3_repository",
"state" : "ABORTED",
"shards_stats" : {
"initializing" : 0,
"started" : 0,
"finalizing" : 0,
"done" : 17,
"failed" : 3,
"total" : 20
},
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
},
"indices" : {
"playground_video" : {
"shards_stats" : {
"initializing" : 0,
"started" : 0,
"finalizing" : 0,
"done" : 5,
"failed" : 0,
"total" : 5
},
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
},
"shards" : {
"4" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"3" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"2" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"1" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"0" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
}
}
},
"playground_feed" : {
"shards_stats" : {
"initializing" : 0,
"started" : 0,
"finalizing" : 0,
"done" : 4,
"failed" : 1,
"total" : 5
},
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
},
"shards" : {
"4" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"2" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"3" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"0" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"1" : {
"stage" : "FAILURE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
}
}
},
"playground_profile" : {
"shards_stats" : {
"initializing" : 0,
"started" : 0,
"finalizing" : 0,
"done" : 4,
"failed" : 1,
"total" : 5
},
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
},
"shards" : {
"2" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"1" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"4" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"3" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"0" : {
"stage" : "FAILURE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
}
}
},
"playground_admin" : {
"shards_stats" : {
"initializing" : 0,
"started" : 0,
"finalizing" : 0,
"done" : 4,
"failed" : 1,
"total" : 5
},
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
},
"shards" : {
"2" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"1" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"0" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"4" : {
"stage" : "FAILURE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
},
"3" : {
"stage" : "DONE",
"stats" : {
"number_of_files" : 0,
"processed_files" : 0,
"total_size_in_bytes" : 0,
"processed_size_in_bytes" : 0,
"start_time_in_millis" : 0,
"time_in_millis" : 0
}
}
}
}
}
} ]
}
</code></pre></div> | <p dir="auto">The issue was originally reported in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="44824333" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/7980" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/7980/hovercard?comment_id=76151889&comment_type=issue_comment" href="https://github.com/elastic/elasticsearch/issues/7980#issuecomment-76151889">#7980 (comment)</a> If a current master node that contains all primary shards is restarted in the middle of snapshot operation, it might leave the snapshot hanging in <code class="notranslate">ABORTED</code> state.</p> | 1 |
<p dir="auto">I've had the zones reset to their default almost every time I upgrade the application to a new version.<br>
More annoyingly, on the latest version (v0.23.0) they also get reset every reboot.<br>
Please make sure these settings survive a reboot as well as an application upgrade.</p>
<p dir="auto">Even better, store them per monitor (some unique ID) so that the settings are remembered for different monitors. For instance when using a laptop which is sometimes connected to monitor A (at home) and sometimes to monitor B (at work). So you can set the zones up differently for each monitor.</p>
<p dir="auto">Please let me know if there is any additional information needed to troubleshoot this issue.</p>
<p dir="auto">P.S. I'm running Win10 (v2004, build 19041.508) on a desktop with 2 monitors permanently connected.</p> | <h2 dir="auto"><g-emoji class="g-emoji" alias="information_source" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2139.png">ℹ</g-emoji> Computer information</h2>
<ul dir="auto">
<li>PowerToys version: 0..23.0</li>
<li>PowerToy Utility: FanzyZones</li>
<li>Running PowerToys as Admin: Yes</li>
<li>Windows build number: 2004 (19041.508)</li>
</ul>
<h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide detailed reproduction steps (if any)</h2>
<ol dir="auto">
<li>Apply custom layout</li>
<li>Reboot computer (I think, it's only happened after turning in on for the day...)</li>
</ol>
<h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3>
<p dir="auto">My custom layout will remain unchanged between restarts</p>
<h3 dir="auto">❌ Actual result</h3>
<ol start="3" dir="auto">
<li>Custom layout is reset to the default 3 Priority Grid each restart</li>
</ol>
<h2 dir="auto"><g-emoji class="g-emoji" alias="camera" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4f7.png">📷</g-emoji> Screenshots</h2>
<p dir="auto">This is the default it returns to:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19144524/95005899-7168b980-0649-11eb-9a55-dab8b489e881.png"><img src="https://user-images.githubusercontent.com/19144524/95005899-7168b980-0649-11eb-9a55-dab8b489e881.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">This is the custom I expect it to return to (note the layout and the Show space around zones both return to default)<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19144524/95005910-87767a00-0649-11eb-8378-8fff42bddf66.png"><img src="https://user-images.githubusercontent.com/19144524/95005910-87767a00-0649-11eb-8378-8fff42bddf66.png" alt="image" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">The code blow returns <code class="notranslate">NotImplementedError: sparse rule for xor</code>.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import jax.numpy as jnp
from jax.experimental import sparse
indices = [[0, 1], [1, 2]]
X = sparse.BCOO(([1 for _ in range(len(indices))], indices), shape=(3, 4))
y = jnp.ones(3, dtype=bool)
@sparse.sparsify
def xor(X, y):
return y[:, None] ^ X
xor(X, y)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">jnp</span>
<span class="pl-k">from</span> <span class="pl-s1">jax</span>.<span class="pl-s1">experimental</span> <span class="pl-k">import</span> <span class="pl-s1">sparse</span>
<span class="pl-s1">indices</span> <span class="pl-c1">=</span> [[<span class="pl-c1">0</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">2</span>]]
<span class="pl-v">X</span> <span class="pl-c1">=</span> <span class="pl-s1">sparse</span>.<span class="pl-v">BCOO</span>(([<span class="pl-c1">1</span> <span class="pl-k">for</span> <span class="pl-s1">_</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-en">len</span>(<span class="pl-s1">indices</span>))], <span class="pl-s1">indices</span>), <span class="pl-s1">shape</span><span class="pl-c1">=</span>(<span class="pl-c1">3</span>, <span class="pl-c1">4</span>))
<span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">jnp</span>.<span class="pl-en">ones</span>(<span class="pl-c1">3</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">bool</span>)
<span class="pl-en">@<span class="pl-s1">sparse</span>.<span class="pl-s1">sparsify</span></span>
<span class="pl-k">def</span> <span class="pl-en">xor</span>(<span class="pl-v">X</span>, <span class="pl-s1">y</span>):
<span class="pl-k">return</span> <span class="pl-s1">y</span>[:, <span class="pl-c1">None</span>] <span class="pl-c1">^</span> <span class="pl-v">X</span>
<span class="pl-en">xor</span>(<span class="pl-v">X</span>, <span class="pl-s1">y</span>)</pre></div>
<p dir="auto">Please: add support for XOR operation over sparse matrices.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check for duplicate requests.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Describe your goal, and if possible provide a code snippet with a motivating example.</li>
</ul> | <p dir="auto">tl;dr: Please implement np.eig in JAX, in particular its forward-mode differentiation</p>
<p dir="auto">I am working on a quantum project that is currently written in TensorFlow but would greatly benefit from JAX. The main roadblock is that the np.eig function does not have its forward-mode differentiation rule implemented in JAX.</p>
<p dir="auto">Thanks a lot!</p> | 0 |
<h3 dir="auto">Describe the workflow you want to enable</h3>
<p dir="auto">SimpleImputer.strategy = 'random' will randomly choose a non-NaN value.</p>
<h3 dir="auto">Describe your proposed solution</h3>
<p dir="auto">Find a list of non-NaN indices. Randomly pick one index for each NaN.</p>
<h3 dir="auto">Describe alternatives you've considered, if relevant</h3>
<p dir="auto">Pandas:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Impute missing NaN values by randomly selecting a non-NaN value
for column in df.columns:
nan_indexes = df[df[column].isna()].index
non_nan_values = df[column].dropna().tolist()
imputed_values = [random.choice(non_nan_values) for _ in range(len(nan_indexes))]
df.loc[nan_indexes, column] = imputed_values"><pre class="notranslate"><code class="notranslate"># Impute missing NaN values by randomly selecting a non-NaN value
for column in df.columns:
nan_indexes = df[df[column].isna()].index
non_nan_values = df[column].dropna().tolist()
imputed_values = [random.choice(non_nan_values) for _ in range(len(nan_indexes))]
df.loc[nan_indexes, column] = imputed_values
</code></pre></div>
<h3 dir="auto">Additional context</h3>
<p dir="auto">Let's say you're in the following setting:</p>
<p dir="auto">GOAL: Iteratively tighten a hyperparameter grid.</p>
<ul dir="auto">
<li>You have a broad hyperparameter grid</li>
<li>Some hyperparameter choices disable (i.e. make NaN) other hyperparameter choices.</li>
<li>You do random selection of grid points and get the loss.</li>
<li>You make _isnan a value, true or false, for params that can be NaN.</li>
<li>You impute the missing values for NaNs.</li>
<li>You use decision tree regression to figure out what hyperparameter choices are best.<br>
You tighten your grid iteratively using the above.</li>
</ul>
<p dir="auto">However, one downside is that some of the splits will be misleading, if they involved imputed NaNs. (The split on this hyperparameter value could suggest a particular threshold OR that the governing hyperparameter that created this NaN is important.) A way to reduce this confusion is using random choice when imputing.</p> | <p dir="auto">The purpose would be to provide an unbiased, stochastic, univariate imputer. The imputer would replace missing values by values sampled uniformly at random from the non-missing values of the sample column.</p>
<p dir="auto">This would require to add additional <code class="notranslate">random_state</code> constructor parameter to the class.</p>
<p dir="auto">As for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="329773579" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/11208" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/11208/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/11208">#11208</a> this strategy should work both on numerical and non-numerical dtypes.</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"> 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>[ x] I have read the relevant section in the<br>
<a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br>
on reporting bugs.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br>
in this issue (If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Mandatory Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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" checked=""> I have included all the versions of all the external dependencies required<br>
to reproduce this bug.</li>
</ul>
<h2 dir="auto">Optional Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br>
and/or implementation.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br>
result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br>
broker and/or result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br>
ETA/Countdown & rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br>
and/or upgrading Celery and its dependencies.</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h2 dir="auto">Environment & Settings</h2>
<p dir="auto"><strong>Celery version</strong>: 4.4.6 (cliffs)</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="can't disclose that"><pre class="notranslate"><code class="notranslate">can't disclose that
</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>: Python 3.8.5</li>
<li><strong>Minimal Celery Version</strong>: 4.4.6 (cliffs)</li>
<li><strong>Minimal Kombu Version</strong>: 4.6.11</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="alembic==1.4.3
amqp==2.6.1
apache-airflow==1.10.12
apispec==1.3.3
appdirs==1.4.4
argcomplete==1.12.0
asgiref==3.2.10
astroid==2.4.2
attrs==19.3.0
Babel==2.8.0
billiard==3.6.3.0
cached-property==1.5.1
cachetools==4.1.1
cattrs==1.0.0
celery==4.4.6
certifi==2020.6.20
cffi==1.14.2
chardet==3.0.4
click==7.1.2
colorama==0.4.3
colorlog==4.0.2
configparser==3.5.3
coreapi==2.3.3
coreschema==0.0.4
croniter==0.3.34
cryptography==3.1
dataclasses==0.6
defusedxml==0.7.0rc1
dill==0.3.2
distlib==0.3.1
Django==3.0.5
django-braces==1.14.0
django-celery-beat==2.0.0
django-celery-results==1.2.1
django-cors-headers==3.5.0
django-debug-toolbar==2.2
django-extensions==3.0.9
django-oauth-toolkit==1.3.2
django-rest-framework-social-oauth2==1.1.0
django-rest-swagger==2.2.0
django-tenant-schemas==1.10.0
django-timezone-field==4.0
djangorestframework==3.11.1
djangorestframework-csv==2.1.0
djongo==1.3.3
dnspython==1.16.0
docutils==0.16
email-validator==1.1.1
eventlet==0.29.0
filelock==3.0.12
Flask==1.1.2
Flask-Admin==1.5.4
Flask-AppBuilder==2.3.4
Flask-Babel==1.0.0
Flask-Caching==1.3.3
Flask-JWT-Extended==3.24.1
Flask-Login==0.4.1
Flask-OpenID==1.2.5
Flask-SQLAlchemy==2.4.4
flask-swagger==0.2.14
Flask-WTF==0.14.3
funcsigs==1.0.2
future==0.18.2
gevent==20.6.2
google-api-core==1.22.2
google-api-python-client==1.11.0
google-auth==1.21.1
google-auth-httplib2==0.0.4
google-auth-oauthlib==0.4.1
google-cloud-core==1.4.1
google-cloud-logging==1.15.1
google-cloud-tasks==2.0.0
googleapis-common-protos==1.52.0
graphviz==0.14.1
greenlet==0.4.16
grpc-google-iam-v1==0.12.3
grpcio==1.32.0
gunicorn==20.0.4
httplib2==0.18.1
hvac==0.10.5
idna==2.10
iso8601==0.1.13
isort==5.5.2
itsdangerous==1.1.0
itypes==1.2.0
Jinja2==2.11.2
json-merge-patch==0.2
jsonschema==3.2.0
kombu==4.6.11
lazy-object-proxy==1.4.3
libcst==0.3.10
lockfile==0.12.2
Mako==1.1.3
Markdown==2.6.11
MarkupSafe==1.1.1
marshmallow==2.21.0
marshmallow-enum==1.5.1
marshmallow-sqlalchemy==0.23.1
mccabe==0.6.1
monotonic==1.5
mypy-extensions==0.4.3
mysqlclient==2.0.1
natsort==7.0.1
numpy==1.19.2
oauthlib==3.1.0
openapi-codec==1.3.2
ordered-set==4.0.2
pandas==1.1.2
pbr==5.5.0
pendulum==1.4.4
prison==0.1.3
proto-plus==1.9.1
protobuf==3.13.0
psutil==5.7.2
psycopg2==2.8.6
psycopg2-binary==2.8.6
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser==2.20
pydot==1.4.1
Pygments==2.7.1
pygraphviz==1.6
PyJWT==1.7.1
pylint==2.6.0
pymongo==3.11.0
pyOpenSSL==19.1.0
pyparsing==2.4.7
pyrsistent==0.17.3
python-crontab==2.5.1
python-daemon==2.2.4
python-dateutil==2.8.1
python-editor==1.0.4
python-nvd3==0.15.0
python-slugify==4.0.1
python3-openid==3.2.0
pytz==2020.1
pytzdata==2020.1
PyYAML==5.3.1
redis==3.5.3
requests==2.24.0
requests-oauthlib==1.3.0
rsa==4.6
scout-apm==2.16.1
sentry-sdk==0.17.4
setproctitle==1.1.10
simplejson==3.17.2
six==1.15.0
social-auth-app-django==3.4.0
social-auth-core==3.3.3
SQLAlchemy==1.3.19
SQLAlchemy-JSONField==0.9.0
SQLAlchemy-Utils==0.36.8
sqlparse==0.2.4
stevedore==3.2.1
tabulate==0.8.7
tenacity==4.12.0
text-unidecode==1.3
thrift==0.13.0
toml==0.10.1
typing-extensions==3.7.4.3
typing-inspect==0.6.0
tzlocal==1.5.1
unicodecsv==0.14.1
uritemplate==3.0.1
urllib3==1.25.10
vine==1.3.0
virtualenv==20.0.31
virtualenv-clone==0.5.4
virtualenvwrapper==4.8.4
Werkzeug==0.16.1
wrapt==1.12.1
WTForms==2.3.3
zope.deprecation==4.4.0
zope.event==4.4
zope.interface==5.1.0"><pre class="notranslate"><code class="notranslate">alembic==1.4.3
amqp==2.6.1
apache-airflow==1.10.12
apispec==1.3.3
appdirs==1.4.4
argcomplete==1.12.0
asgiref==3.2.10
astroid==2.4.2
attrs==19.3.0
Babel==2.8.0
billiard==3.6.3.0
cached-property==1.5.1
cachetools==4.1.1
cattrs==1.0.0
celery==4.4.6
certifi==2020.6.20
cffi==1.14.2
chardet==3.0.4
click==7.1.2
colorama==0.4.3
colorlog==4.0.2
configparser==3.5.3
coreapi==2.3.3
coreschema==0.0.4
croniter==0.3.34
cryptography==3.1
dataclasses==0.6
defusedxml==0.7.0rc1
dill==0.3.2
distlib==0.3.1
Django==3.0.5
django-braces==1.14.0
django-celery-beat==2.0.0
django-celery-results==1.2.1
django-cors-headers==3.5.0
django-debug-toolbar==2.2
django-extensions==3.0.9
django-oauth-toolkit==1.3.2
django-rest-framework-social-oauth2==1.1.0
django-rest-swagger==2.2.0
django-tenant-schemas==1.10.0
django-timezone-field==4.0
djangorestframework==3.11.1
djangorestframework-csv==2.1.0
djongo==1.3.3
dnspython==1.16.0
docutils==0.16
email-validator==1.1.1
eventlet==0.29.0
filelock==3.0.12
Flask==1.1.2
Flask-Admin==1.5.4
Flask-AppBuilder==2.3.4
Flask-Babel==1.0.0
Flask-Caching==1.3.3
Flask-JWT-Extended==3.24.1
Flask-Login==0.4.1
Flask-OpenID==1.2.5
Flask-SQLAlchemy==2.4.4
flask-swagger==0.2.14
Flask-WTF==0.14.3
funcsigs==1.0.2
future==0.18.2
gevent==20.6.2
google-api-core==1.22.2
google-api-python-client==1.11.0
google-auth==1.21.1
google-auth-httplib2==0.0.4
google-auth-oauthlib==0.4.1
google-cloud-core==1.4.1
google-cloud-logging==1.15.1
google-cloud-tasks==2.0.0
googleapis-common-protos==1.52.0
graphviz==0.14.1
greenlet==0.4.16
grpc-google-iam-v1==0.12.3
grpcio==1.32.0
gunicorn==20.0.4
httplib2==0.18.1
hvac==0.10.5
idna==2.10
iso8601==0.1.13
isort==5.5.2
itsdangerous==1.1.0
itypes==1.2.0
Jinja2==2.11.2
json-merge-patch==0.2
jsonschema==3.2.0
kombu==4.6.11
lazy-object-proxy==1.4.3
libcst==0.3.10
lockfile==0.12.2
Mako==1.1.3
Markdown==2.6.11
MarkupSafe==1.1.1
marshmallow==2.21.0
marshmallow-enum==1.5.1
marshmallow-sqlalchemy==0.23.1
mccabe==0.6.1
monotonic==1.5
mypy-extensions==0.4.3
mysqlclient==2.0.1
natsort==7.0.1
numpy==1.19.2
oauthlib==3.1.0
openapi-codec==1.3.2
ordered-set==4.0.2
pandas==1.1.2
pbr==5.5.0
pendulum==1.4.4
prison==0.1.3
proto-plus==1.9.1
protobuf==3.13.0
psutil==5.7.2
psycopg2==2.8.6
psycopg2-binary==2.8.6
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser==2.20
pydot==1.4.1
Pygments==2.7.1
pygraphviz==1.6
PyJWT==1.7.1
pylint==2.6.0
pymongo==3.11.0
pyOpenSSL==19.1.0
pyparsing==2.4.7
pyrsistent==0.17.3
python-crontab==2.5.1
python-daemon==2.2.4
python-dateutil==2.8.1
python-editor==1.0.4
python-nvd3==0.15.0
python-slugify==4.0.1
python3-openid==3.2.0
pytz==2020.1
pytzdata==2020.1
PyYAML==5.3.1
redis==3.5.3
requests==2.24.0
requests-oauthlib==1.3.0
rsa==4.6
scout-apm==2.16.1
sentry-sdk==0.17.4
setproctitle==1.1.10
simplejson==3.17.2
six==1.15.0
social-auth-app-django==3.4.0
social-auth-core==3.3.3
SQLAlchemy==1.3.19
SQLAlchemy-JSONField==0.9.0
SQLAlchemy-Utils==0.36.8
sqlparse==0.2.4
stevedore==3.2.1
tabulate==0.8.7
tenacity==4.12.0
text-unidecode==1.3
thrift==0.13.0
toml==0.10.1
typing-extensions==3.7.4.3
typing-inspect==0.6.0
tzlocal==1.5.1
unicodecsv==0.14.1
uritemplate==3.0.1
urllib3==1.25.10
vine==1.3.0
virtualenv==20.0.31
virtualenv-clone==0.5.4
virtualenvwrapper==4.8.4
Werkzeug==0.16.1
wrapt==1.12.1
WTForms==2.3.3
zope.deprecation==4.4.0
zope.event==4.4
zope.interface==5.1.0
</code></pre></div>
<p dir="auto"></p>
</details>
<h3 dir="auto">Other Dependencies</h3>
<details>
<p dir="auto">
N/A
</p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<details>
<p dir="auto">
</p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto">Celery task is executed successfully</p>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">Fails with TypeError:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Task celery.backend_cleanup[75aa0973-534f-4812-a992-1ead4086f58c] raised unexpected: TypeError('unsupported type for timedelta seconds component: NoneType')
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/kombu/utils/objects.py", line 42, in __get__
return obj.__dict__[self.__name__]
KeyError: 'expires_delta'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/celery/app/trace.py", line 412, in trace_task
R = retval = fun(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/celery/app/trace.py", line 704, in __protected_call__
return self.run(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/celery/app/builtins.py", line 25, in backend_cleanup
app.backend.cleanup()
File "/usr/local/lib/python3.9/site-packages/celery/backends/mongodb.py", line 258, in cleanup
{'date_done': {'$lt': self.app.now() - self.expires_delta}},
File "/usr/local/lib/python3.9/site-packages/kombu/utils/objects.py", line 44, in __get__
value = obj.__dict__[self.__name__] = self.__get(obj)
File "/usr/local/lib/python3.9/site-packages/celery/backends/mongodb.py", line 312, in expires_delta
return timedelta(seconds=self.expires)
TypeError: unsupported type for timedelta seconds component: NoneType"><pre class="notranslate"><code class="notranslate">Task celery.backend_cleanup[75aa0973-534f-4812-a992-1ead4086f58c] raised unexpected: TypeError('unsupported type for timedelta seconds component: NoneType')
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/kombu/utils/objects.py", line 42, in __get__
return obj.__dict__[self.__name__]
KeyError: 'expires_delta'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/celery/app/trace.py", line 412, in trace_task
R = retval = fun(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/celery/app/trace.py", line 704, in __protected_call__
return self.run(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/celery/app/builtins.py", line 25, in backend_cleanup
app.backend.cleanup()
File "/usr/local/lib/python3.9/site-packages/celery/backends/mongodb.py", line 258, in cleanup
{'date_done': {'$lt': self.app.now() - self.expires_delta}},
File "/usr/local/lib/python3.9/site-packages/kombu/utils/objects.py", line 44, in __get__
value = obj.__dict__[self.__name__] = self.__get(obj)
File "/usr/local/lib/python3.9/site-packages/celery/backends/mongodb.py", line 312, in expires_delta
return timedelta(seconds=self.expires)
TypeError: unsupported type for timedelta seconds component: NoneType
</code></pre></div> | <p dir="auto">In the <a href="http://docs.celeryproject.org/en/latest/userguide/canvas.html#the-primitives" rel="nofollow">Documentations</a> says:</p>
<blockquote>
<p dir="auto">Groups and chords accepts partial arguments too, so in a chain the return value of the previous task is forwarded to all tasks in the group...</p>
</blockquote>
<p dir="auto">but it doesn't if group contain chain.</p>
<p dir="auto"><strong>Steps to reproduce</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# ct.py
from __future__ import absolute_import, unicode_literals
from celery import Celery
app = Celery(
'ct',
broker='amqp://guest@localhost//',
backend='cache+memcached://127.0.0.1:11211/'
)
@app.task
def inc(x):
x += 1
return x
@app.task
def nothing(x):
return x
if __name__ == '__main__':
app.start()"><pre class="notranslate"><code class="notranslate"># ct.py
from __future__ import absolute_import, unicode_literals
from celery import Celery
app = Celery(
'ct',
broker='amqp://guest@localhost//',
backend='cache+memcached://127.0.0.1:11211/'
)
@app.task
def inc(x):
x += 1
return x
@app.task
def nothing(x):
return x
if __name__ == '__main__':
app.start()
</code></pre></div>
<p dir="auto">Start worker:<br>
<code class="notranslate">python ct.py worker -l info</code></p>
<p dir="auto">In python console:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> from ct import inc, nothing
>>> from celery import group, chain
>>> t = chain(inc.s(),group(chain(nothing.s(), inc.s()), inc.s()))
>>> r = t.delay(0)
>>> "><pre class="notranslate"><code class="notranslate">>>> from ct import inc, nothing
>>> from celery import group, chain
>>> t = chain(inc.s(),group(chain(nothing.s(), inc.s()), inc.s()))
>>> r = t.delay(0)
>>>
</code></pre></div>
<p dir="auto">In <code class="notranslate">celery</code> log:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2017-04-10 12:43:36,126: INFO/MainProcess] Received task: ct.inc[5c1beeff-d785-4d81-af2c-35a5bba839ab]
[2017-04-10 12:43:37,257: WARNING/PoolWorker-1] /home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/app/trace.py:542: RuntimeWarning: Exception raised outside body: TypeError('nothing() takes exactly 1 argument (0 given)',):
Traceback (most recent call last):
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/app/trace.py", line 424, in trace_task
parent_id=uuid, root_id=root_id,
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 987, in apply_async
args=args, kwargs=kwargs, **options))
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 1063, in _apply_tasks
**options)
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 567, in apply_async
dict(self.options, **options) if options else self.options))
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 597, in run
first_task.apply_async(**options)
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 221, in apply_async
return _apply(args, kwargs, **options)
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/app/task.py", line 518, in apply_async
check_arguments(*(args or ()), **(kwargs or {}))
TypeError: nothing() takes exactly 1 argument (0 given)
exc, exc_info.traceback)))
[2017-04-10 12:43:37,262: ERROR/PoolWorker-1] Task ct.inc[5c1beeff-d785-4d81-af2c-35a5bba839ab] raised unexpected: TypeError('nothing() takes exactly 1 argument (0 given)',)
Traceback (most recent call last):
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/app/trace.py", line 424, in trace_task
parent_id=uuid, root_id=root_id,
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 987, in apply_async
args=args, kwargs=kwargs, **options))
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 1063, in _apply_tasks
**options)
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 567, in apply_async
dict(self.options, **options) if options else self.options))
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 597, in run
first_task.apply_async(**options)
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 221, in apply_async
return _apply(args, kwargs, **options)
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/app/task.py", line 518, in apply_async
check_arguments(*(args or ()), **(kwargs or {}))
TypeError: nothing() takes exactly 1 argument (0 given)"><pre class="notranslate"><code class="notranslate">[2017-04-10 12:43:36,126: INFO/MainProcess] Received task: ct.inc[5c1beeff-d785-4d81-af2c-35a5bba839ab]
[2017-04-10 12:43:37,257: WARNING/PoolWorker-1] /home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/app/trace.py:542: RuntimeWarning: Exception raised outside body: TypeError('nothing() takes exactly 1 argument (0 given)',):
Traceback (most recent call last):
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/app/trace.py", line 424, in trace_task
parent_id=uuid, root_id=root_id,
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 987, in apply_async
args=args, kwargs=kwargs, **options))
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 1063, in _apply_tasks
**options)
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 567, in apply_async
dict(self.options, **options) if options else self.options))
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 597, in run
first_task.apply_async(**options)
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 221, in apply_async
return _apply(args, kwargs, **options)
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/app/task.py", line 518, in apply_async
check_arguments(*(args or ()), **(kwargs or {}))
TypeError: nothing() takes exactly 1 argument (0 given)
exc, exc_info.traceback)))
[2017-04-10 12:43:37,262: ERROR/PoolWorker-1] Task ct.inc[5c1beeff-d785-4d81-af2c-35a5bba839ab] raised unexpected: TypeError('nothing() takes exactly 1 argument (0 given)',)
Traceback (most recent call last):
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/app/trace.py", line 424, in trace_task
parent_id=uuid, root_id=root_id,
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 987, in apply_async
args=args, kwargs=kwargs, **options))
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 1063, in _apply_tasks
**options)
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 567, in apply_async
dict(self.options, **options) if options else self.options))
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 597, in run
first_task.apply_async(**options)
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 221, in apply_async
return _apply(args, kwargs, **options)
File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/app/task.py", line 518, in apply_async
check_arguments(*(args or ()), **(kwargs or {}))
TypeError: nothing() takes exactly 1 argument (0 given)
</code></pre></div>
<p dir="auto"><strong>Expecting result</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> r.get()
[2, 2]"><pre class="notranslate"><code class="notranslate">>>> r.get()
[2, 2]
</code></pre></div>
<p dir="auto"><strong>Celery info</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="celery -A ct report
software -> celery:4.0.2 (latentcall) kombu:4.0.2 py:2.7.9
billiard:3.5.0.2 py-amqp:2.1.4
platform -> system:Linux arch:64bit, ELF imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:amqp results:cache+memcached://127.0.0.1:11211/
broker_url: u'amqp://guest:********@localhost:5672//'
result_backend: u'cache+memcached://127.0.0.1:11211/'
"><pre class="notranslate"><code class="notranslate">celery -A ct report
software -> celery:4.0.2 (latentcall) kombu:4.0.2 py:2.7.9
billiard:3.5.0.2 py-amqp:2.1.4
platform -> system:Linux arch:64bit, ELF imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:amqp results:cache+memcached://127.0.0.1:11211/
broker_url: u'amqp://guest:********@localhost:5672//'
result_backend: u'cache+memcached://127.0.0.1:11211/'
</code></pre></div>
<p dir="auto"><strong>Notes</strong></p>
<p dir="auto">Work fine with Celery 3.x</p> | 0 |
<p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wangjild/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wangjild">@wangjild</a> on 2016-10-18T08:58:54Z</p>
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">git</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2.2.0"><pre class="notranslate"><code class="notranslate">2.2.0
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">debian:8.0 jessie</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">If local git repository has modification, an update attempt of always fails with Local modifications exist, even if force=yes was given.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" tasks:
- name: update project dependency
git: dest={{item.location|quote}} repo={{item.scm_url|quote}} version={{item.scm_revision|quote}} force=yes refspec={{item.scm_refspec}} accept_hostkey=yes
with_items: "{{ deps }}""><pre class="notranslate"><code class="notranslate"> tasks:
- name: update project dependency
git: dest={{item.location|quote}} repo={{item.scm_url|quote}} version={{item.scm_revision|quote}} force=yes refspec={{item.scm_refspec}} accept_hostkey=yes
with_items: "{{ deps }}"
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="failed: [127.0.0.1] => {
"failed": true,
"invocation": {
"module_name": "git"
},
"item": {
"location": "/opt/tiger/neihan/conf",
"name": "neihan/conf",
"scm_refspec": "refs/heads/master",
"scm_revision": "master",
"scm_url": "ssh://*********/neihan/conf"
},
"module_stderr": "Shared connection to 127.0.0.1 closed.\r\n",
"module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_U00Fwd/ansible_module_git.py\", line 1023, in <module>\r\n main()\r\n File \"/tmp/ansible_U00Fwd/ansible_module_git.py\", line 974, in main\r\n result.update(changed=True, after=remote_head, msg='Local modifications exist')\r\nUnboundLocalError: local variable 'remote_head' referenced before assignment\r\n",
"msg": "MODULE FAILURE"
}"><pre class="notranslate"><code class="notranslate">failed: [127.0.0.1] => {
"failed": true,
"invocation": {
"module_name": "git"
},
"item": {
"location": "/opt/tiger/neihan/conf",
"name": "neihan/conf",
"scm_refspec": "refs/heads/master",
"scm_revision": "master",
"scm_url": "ssh://*********/neihan/conf"
},
"module_stderr": "Shared connection to 127.0.0.1 closed.\r\n",
"module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_U00Fwd/ansible_module_git.py\", line 1023, in <module>\r\n main()\r\n File \"/tmp/ansible_U00Fwd/ansible_module_git.py\", line 974, in main\r\n result.update(changed=True, after=remote_head, msg='Local modifications exist')\r\nUnboundLocalError: local variable 'remote_head' referenced before assignment\r\n",
"msg": "MODULE FAILURE"
}
</code></pre></div>
<p dir="auto">Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="183627514" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/5292" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/5292/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/5292">ansible/ansible-modules-core#5292</a></p> | <h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Documentation Report</li>
</ul>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">The <a href="https://github.com/ansible/ansible/blob/devel/CHANGELOG.md#167-and-the-cradle-will-rock---jul-21-2014">1.6.7 release</a> mentions <a title="CVE-2014-4967" data-hovercard-type="advisory" data-hovercard-url="/advisories/GHSA-64cw-m57j-65xj/hovercard" href="https://github.com/advisories/GHSA-64cw-m57j-65xj">CVE-2014-4967</a> and <a title="CVE-2014-4966" data-hovercard-type="advisory" data-hovercard-url="/advisories/GHSA-wqq5-c89p-3wc3/hovercard" href="https://github.com/advisories/GHSA-wqq5-c89p-3wc3">CVE-2014-4966</a>.</p>
<p dir="auto">Both of them are still in the <code class="notranslate">**RESERVED**</code> state:</p>
<ul dir="auto">
<li><a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-4966" rel="nofollow">https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-4966</a></li>
<li><a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-4967" rel="nofollow">https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-4967</a></li>
</ul>
<p dir="auto">Any reason for not setting them free after all these years? :)</p> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/xxxx</code> package and had problems.<br>
@types/whatwg-fetch 0.0.33 version has failed with error " node_modules/@types/whatwg-fetch/index.d.ts(32,44): error TS2304: Cannot find name 'ReadableStream'."</li>
</ul>
<p dir="auto">I added @types/whatwg-streams to the package.json dev dependencies, but still the failure exists.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a><br>
I am on version 2.1.6. Trying now with 2.5.2 which is the latest stable version of tsc. Will update the issue once installation and verification is done.</li>
</ul>
<p dir="auto">Got new set of errors on tsc 2.5.2</p>
<p dir="auto">node_modules/@types/react/index.d.ts(165,11): error TS2559: Type 'Component<P, S>' has no properties in common with type 'ComponentLifecycle<P, S>'.<br>
node_modules/@types/whatwg-fetch/index.d.ts(11,13): error TS2451: Cannot redeclare block-scoped variable 'fetch'.<br>
node_modules/@types/whatwg-fetch/index.d.ts(13,14): error TS2300: Duplicate identifier 'HeadersInit'.</p>
<p dir="auto">FYI, a lot of my react-native project also errored out with tsc 2.5.2. It would be great if you could resolve the the issue for tsc 2.1.6</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>. (Please ask any appropriate questions there).<br>
Yes</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond.
<ul dir="auto">
<li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ryan-codingintrigue/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ryan-codingintrigue">@ryan-codingintrigue</a></li>
</ul>
</li>
</ul> | <p dir="auto">Hi everybody,</p>
<p dir="auto">Iam new in using Typescript and angular. First of all i want to use moment.js and jquery i made a reference path in my bootstrap.v3.datetimepicker.d.ts and in my personal ts file. Linked to jquery and moment, and included the node_module scripts in the index.html. But it keeps giving me the error in my terminal that 'moment' namespace cannot be found. I think i am missing something but i do not know what...</p>
<p dir="auto">Thanks in advance everybody</p> | 0 |
<h2 dir="auto">🐛 Bug</h2>
<h2 dir="auto">Description</h2>
<ul dir="auto">
<li>Image Type:</li>
</ul>
<p dir="auto">I use the torch.utils.data.Dataloader to wrap my dataset class , but the Error message shows that the image tensor was Torch.HalfTensor, but it was float64, Wha should I do to fix it?</p>
<p dir="auto">(0, (3, 1280, 704), (1280, 704, 3), <class 'torch.Tensor'>, tensor(-0.4490, dtype=torch.float64))<br>
(1, (3, 1280, 704), (1280, 704, 3), <class 'torch.Tensor'>, tensor(-0.4490, dtype=torch.float64))</p>
<p dir="auto">dataloader_train = DataLoader(train_dataset, batch_size=1,<br>
shuffle=True, pin_memory=True, num_workers=4)<br>
dataloader_valid = DataLoader(test_dataset, batch_size=1,<br>
shuffle=True, pin_memory=True, num_workers=4)</p>
<ul dir="auto">
<li>PyTorch Version (0.4.0):</li>
<li>OS (Linux):</li>
<li>How you installed PyTorch (<code class="notranslate">conda</code>):</li>
</ul>
<h2 dir="auto">Additional context</h2> | <h2 dir="auto">Issue Description</h2>
<p dir="auto">It seems that stacking is currently (PyTorch 0.4) is not supported for tensors of type <code class="notranslate">HalfTensor</code>; see code example.</p>
<p dir="auto">I don't know if this is intentional for some reason (hence I didn't label this issue as a bug), but I couldn't find any issue or documentation pointing to that. Since some methods, like <code class="notranslate">torch.utils.data.DataLoader</code>, depend on <code class="notranslate">torch.stack()</code> (in this case implicitly through the <code class="notranslate">default_collate()</code> method), it would be great if either stacking for HalfTensors could get implemented, or the documentation could be updated to contain some kind of hint.</p>
<h2 dir="auto">Code Example</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Python 3.6.5 (default, Mar 30 2018, 06:41:49)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.3.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import torch
In [2]: torch.__version__
Out[2]: '0.4.0'
In [3]: tensor_1_float = torch.tensor([1, 2, 3], dtype=torch.float)
In [4]: tensor_2_float = torch.tensor([4, 5, 6], dtype=torch.float)
In [5]: torch.stack([tensor_1_float, tensor_2_float])
Out[5]:
tensor([[ 1., 2., 3.],
[ 4., 5., 6.]])
In [6]: tensor_1_half = torch.tensor([1, 2, 3], dtype=torch.half)
In [7]: tensor_2_half = torch.tensor([4, 5, 6], dtype=torch.half)
In [8]: torch.stack([tensor_1_half, tensor_2_half])
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-8-10f49aa85ea5> in <module>()
----> 1 torch.stack([tensor_1_half, tensor_2_half])
RuntimeError: _cat is not implemented for type torch.HalfTensor"><pre class="notranslate"><code class="notranslate">Python 3.6.5 (default, Mar 30 2018, 06:41:49)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.3.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import torch
In [2]: torch.__version__
Out[2]: '0.4.0'
In [3]: tensor_1_float = torch.tensor([1, 2, 3], dtype=torch.float)
In [4]: tensor_2_float = torch.tensor([4, 5, 6], dtype=torch.float)
In [5]: torch.stack([tensor_1_float, tensor_2_float])
Out[5]:
tensor([[ 1., 2., 3.],
[ 4., 5., 6.]])
In [6]: tensor_1_half = torch.tensor([1, 2, 3], dtype=torch.half)
In [7]: tensor_2_half = torch.tensor([4, 5, 6], dtype=torch.half)
In [8]: torch.stack([tensor_1_half, tensor_2_half])
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-8-10f49aa85ea5> in <module>()
----> 1 torch.stack([tensor_1_half, tensor_2_half])
RuntimeError: _cat is not implemented for type torch.HalfTensor
</code></pre></div>
<p dir="auto">On PyTorch 0.3.1, one gets basically the same error when one tries to do the same thing:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: Type torch.HalfTensor doesn't implement stateless method cat"><pre class="notranslate"><code class="notranslate">TypeError: Type torch.HalfTensor doesn't implement stateless method cat
</code></pre></div> | 1 |
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br>
I think it bug</p>
<p dir="auto"><strong>What is the current behavior?</strong><br>
webpack uglify already minified file (.min.js)</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<ol dir="auto">
<li>install some dependency with minified build<br>
<code class="notranslate">npm i -s three</code></li>
<li>write alias to minidied file in config</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" extensions: [ '.ts' ],
alias: {
three: 'three/build/three.min.js', // <-----------------------
}
},"><pre lang="resolve:" class="notranslate"><code class="notranslate"> extensions: [ '.ts' ],
alias: {
three: 'three/build/three.min.js', // <-----------------------
}
},
</code></pre></div>
<ol start="3" dir="auto">
<li>run webpack in production mode</li>
</ol>
<p dir="auto">part in three.min.js<br>
<code class="notranslate">THREE.PointsMaterial.");return new Ha(a)};l.ParticleBasicMaterial=function(a){console.warn("THREE.ParticleBasicMaterial has</code></p>
<p dir="auto">after uglify two time:<br>
same part in vendor.min.js<br>
<code class="notranslate">THREE.PointsMaterial."),new ue(t)},t.ParticleBasicMaterial=function(t){return console.warn("THREE.ParticleBasicMaterial has</code></p>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
no auto minify already minidied files, parse alias from config and add entries with (min.js) extension to black list before run uglify, when run uglife check this black list.</p>
<p dir="auto"><strong>Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.</strong><br>
package.json</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""@types/three": "0.89.11",
"clean-webpack-plugin": "0.1.18",
"copy-webpack-plugin": "4.4.2",
"html-loader": "0.5.5",
"html-webpack-plugin": "webpack-contrib/html-webpack-plugin",
"three": "0.90.0",
"ts-keycode-enum": "1.0.4",
"ts-loader": "4.0.0",
"typescript": "2.7.2",
"webpack": "4.0.1",
"webpack-cli": "2.0.9",
"webpack-dev-server": "3.1.0",
"webpack-split-chunks": "^0.2.1""><pre class="notranslate"><code class="notranslate">"@types/three": "0.89.11",
"clean-webpack-plugin": "0.1.18",
"copy-webpack-plugin": "4.4.2",
"html-loader": "0.5.5",
"html-webpack-plugin": "webpack-contrib/html-webpack-plugin",
"three": "0.90.0",
"ts-keycode-enum": "1.0.4",
"ts-loader": "4.0.0",
"typescript": "2.7.2",
"webpack": "4.0.1",
"webpack-cli": "2.0.9",
"webpack-dev-server": "3.1.0",
"webpack-split-chunks": "^0.2.1"
</code></pre></div> | <p dir="auto">When using the UglifyJsPlugin within my webpack build I get a large list of errors from my <code class="notranslate">bower_components</code> dependencies. It looks to me (from here: <a href="https://github.com/webpack/webpack/blob/master/lib/optimize/UglifyJsPlugin.js#L43">https://github.com/webpack/webpack/blob/master/lib/optimize/UglifyJsPlugin.js#L43</a>) that I should be able to use something like this</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="new webpack.optimize.UglifyJsPlugin({
exclude: [
/bower_components\//
]
})"><pre class="notranslate"><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">UglifyJsPlugin</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">exclude</span>: <span class="pl-kos">[</span>
<span class="pl-pds"><span class="pl-c1">/</span>bower_components<span class="pl-cce">\/</span><span class="pl-c1">/</span></span>
<span class="pl-kos">]</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">which continues to throw out a massive list of errors, leading me to believe they are still being parsed.</p> | 1 |
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/en/challenges/html5-and-css/add-rounded-corners-with-a-border-radius" rel="nofollow">add-rounded-corners-with-a-border-radius</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; rv:47.0) Gecko/20100101 Firefox/47.0</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}
h2 {
font-family: Lobster, Monospace;
}
p {
font-size: 16px;
font-family: Monospace;
}
.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
}
.smaller-image {
width: 100px;
border-radius: 10px;
}
</style>
<h2 class="red-text">CatPhotoApp</h2>
<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. ">
<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
```
"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">link</span> <span class="pl-c1">href</span>="<span class="pl-s">https://fonts.googleapis.com/css?family=Lobster</span>" <span class="pl-c1">rel</span>="<span class="pl-s">stylesheet</span>" <span class="pl-c1">type</span>="<span class="pl-s">text/css</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">style</span><span class="pl-kos">></span>
.<span class="pl-c1">red-text</span> {
<span class="pl-c1">color</span><span class="pl-kos">:</span> red;
}
<span class="pl-ent">h2</span> {
<span class="pl-c1">font-family</span><span class="pl-kos">:</span> Lobster<span class="pl-kos">,</span> Monospace;
}
<span class="pl-ent">p</span> {
<span class="pl-c1">font-size</span><span class="pl-kos">:</span> <span class="pl-c1">16<span class="pl-smi">px</span></span>;
<span class="pl-c1">font-family</span><span class="pl-kos">:</span> Monospace;
}
.<span class="pl-c1">thick-green-border</span> {
<span class="pl-c1">border-color</span><span class="pl-kos">:</span> green;
<span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>;
<span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid;
}
.<span class="pl-c1">smaller-image</span> {
<span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">100<span class="pl-smi">px</span></span>;
<span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>;
}
<span class="pl-kos"></</span><span class="pl-ent">style</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">></span>CatPhotoApp<span class="pl-kos"></</span><span class="pl-ent">h2</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">img</span> <span class="pl-c1">class</span>="<span class="pl-s">smaller-image thick-green-border</span>" <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-relaxing-cat</span>" <span class="pl-c1">alt</span>="<span class="pl-s">A cute orange cat lying on its back. </span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">></span>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">></span>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
```</pre></div> | <p dir="auto">:lang is code of language i.e: es, fr, ru<br>
:chid is name of challenge as it works currently</p>
<p dir="auto">/:lang/map should render the map with the names of challenges translated as currently they are in the corresponding file of seeds/challenges (nameLang if it exists or name otherwise to present in english when there is no translation)</p>
<p dir="auto">/:lang/:chid should render the identified challenge but using the name and description in the target language (as long as it is available as nameLang and descriptionLang in the corresponding seeds/challenges, if it doesnt exist present name and description to present in english challenges that are not translated).</p>
<p dir="auto">Bonus point: use the library i18next for routes as stated.</p> | 0 |
<p dir="auto">As part of onboarding, if we have helper stuff, that helper stuff needs to be near the feature, not at the bottom.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1462282/81434826-a49b3100-911b-11ea-894c-26b6c4eb5893.png"><img src="https://user-images.githubusercontent.com/1462282/81434826-a49b3100-911b-11ea-894c-26b6c4eb5893.png" alt="image" style="max-width: 100%;"></a></p> | <p dir="auto">The current General settings page could use some improved structure for the various settings as discussed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="612289828" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/2676" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/PowerToys/pull/2676/hovercard" href="https://github.com/microsoft/PowerToys/pull/2676">#2676</a>.</p>
<p dir="auto">Here's a proposal:</p>
<p dir="auto"><strong>Running as .. (Title)</strong></p>
<ul dir="auto">
<li>Always run as administrator..... (Checkbox)</li>
<li>Run at startup (Checkbox)</li>
<li>Restart as admin (Button)</li>
</ul>
<p dir="auto"><strong>Appearance (Title)</strong></p>
<ul dir="auto">
<li>Choose settings color (Radiobutton group)</li>
</ul>
<p dir="auto"><strong>About PowerToys (Title)</strong> (In the side panel)</p>
<ul dir="auto">
<li>
<p dir="auto">Version x.xx.x (clickable link to release notes)</p>
</li>
<li>
<p dir="auto">Download updates automatically (Checkbox)</p>
</li>
<li>
<p dir="auto">Check for updates (Button)</p>
</li>
<li>
<p dir="auto">Various links</p>
</li>
</ul>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/htcfreek/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/htcfreek">@htcfreek</a> Please add your proposal of splitting the update section. I like that idea.</p> | 1 |
<ul dir="auto">
<li>VSCode Version:0.10.11</li>
<li>OS Version:OS X 10.10.5</li>
</ul>
<p dir="auto">When I edit a html file with some javascript code, there is no intellisense. But the previous version does have the intellisense. For instance, I typed 'aler', vscode would popup a list to choose. In the latest version html file only intellisense html tags</p> | <p dir="auto">I build vscode from the master branch.(0.10.10)<br>
Found that intellisense doesn't work,no auto completion with inline js code in the .html file.<br>
The previous version(0.10.8) support<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8966236/13330917/127a6596-dc36-11e5-9796-70d1c0dda3ef.jpg"><img src="https://cloud.githubusercontent.com/assets/8966236/13330917/127a6596-dc36-11e5-9796-70d1c0dda3ef.jpg" alt="default" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">React version: 17.0.2</p>
<h2 dir="auto">Steps To Reproduce</h2>
<ol dir="auto">
<li>Use NVDA in Firefox to Navigate through the first code example provided below. (use down arrow keystrokes to navigate the page)</li>
<li>Notice how the graphic elements get announced as clickable.</li>
</ol>
<p dir="auto">Link to code example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<!DOCTYPE html>
<html lang='en'>
<head>
<title>Basic HTML5 document</title>
<meta charset='utf-8'>
</head>
<body>
<div id="root">
<img src="https://picsum.photos/200/300" alt="test text"/>
</div>
<script>
// event delegation
document.querySelector('#root').addEventListener('click', () => { console.log('click') })
</script>
</body>
</html>"><pre class="notranslate"><code class="notranslate"><!DOCTYPE html>
<html lang='en'>
<head>
<title>Basic HTML5 document</title>
<meta charset='utf-8'>
</head>
<body>
<div id="root">
<img src="https://picsum.photos/200/300" alt="test text"/>
</div>
<script>
// event delegation
document.querySelector('#root').addEventListener('click', () => { console.log('click') })
</script>
</body>
</html>
</code></pre></div>
<p dir="auto">From the above minimal example, you can see how events delegated to the root cause NVDA to announce the element as clickable.</p>
<p dir="auto">If we take this other example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<!DOCTYPE html>
<html lang='en'>
<head>
<title>Basic HTML5 document</title>
<meta charset='utf-8'>
</head>
<body>
<div id="root">
<img src="https://picsum.photos/200/300" alt="test text"/>
</div>
<script>
// event delegation
document.addEventListener('click', () => { console.log('click') })
</script>
</body>
</html>"><pre class="notranslate"><code class="notranslate"><!DOCTYPE html>
<html lang='en'>
<head>
<title>Basic HTML5 document</title>
<meta charset='utf-8'>
</head>
<body>
<div id="root">
<img src="https://picsum.photos/200/300" alt="test text"/>
</div>
<script>
// event delegation
document.addEventListener('click', () => { console.log('click') })
</script>
</body>
</html>
</code></pre></div>
<p dir="auto">The <a target="_blank" rel="noopener noreferrer" href=""><img style="max-width: 100%;"></a> element will not be read as clickable.</p>
<p dir="auto">Putting handlers on the root is a loss of semantics, and causes the intention of handlers to be no longer communicated well to the assistive technology.</p>
<h2 dir="auto">The current behaviour</h2>
<p dir="auto">NVDA reads clickable due to event delegation performed at the root level.</p>
<h2 dir="auto">The expected behaviour</h2>
<p dir="auto">NVDA should not read clickable.<br>
Could react provide a way for authors to arbitrarily delegate events to the document node?</p> | <p dir="auto">Consider the following:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var MixinNameHere = {
componentDidMount: function() {
// Do some stuff yo!
}
}
var ComponentNameHere = React.createClass({
mixins: [MixinNameHere],
componentDidMount: function() {
// So some stuff here, then (or before) the parent should be called.
}
});"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-v">MixinNameHere</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-en">componentDidMount</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// Do some stuff yo!</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">var</span> <span class="pl-v">ComponentNameHere</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createClass</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">mixins</span>: <span class="pl-kos">[</span><span class="pl-v">MixinNameHere</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-en">componentDidMount</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// So some stuff here, then (or before) the parent should be called.</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">The above will not work because as you can see I have declared the existence of <code class="notranslate">componentDidMount()</code> twice. This would be fair if we didn't have libraries such as underscore or similar libraries that make the use of <code class="notranslate">_.extend</code> which then lets us do:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ClassName.__super__.method.apply(this, arguments);"><pre class="notranslate"><span class="pl-v">ClassName</span><span class="pl-kos">.</span><span class="pl-c1">__super__</span><span class="pl-kos">.</span><span class="pl-c1">method</span><span class="pl-kos">.</span><span class="pl-en">apply</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-smi">arguments</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">So my question is, as some one who likes to abstract common logic out and use inheritance (I mix backbone with react) - <em>Why can I not use inheritance to say "did my component mount, yes do this - oh and call the parent</em></p> | 0 |
<p dir="auto">In React, there is a very common issue of needing the most up-to-date version of state from inside a <code class="notranslate">useEffect</code>, timeout, callback, asynchronous function, etc. It seems the easiest solution is to use a ref, as encouraged by React's own documentation <a href="https://reactjs.org/docs/hooks-faq.html#why-am-i-seeing-stale-props-or-state-inside-my-function" rel="nofollow">here</a>:</p>
<blockquote>
<p dir="auto">If you intentionally want to read the latest state from some asynchronous callback, you could keep it in a ref, mutate it, and read from it.</p>
</blockquote>
<p dir="auto">Typically, the pattern I use for this is as follows:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const [value, setValue] = useState('some-initial-value');
const valueRef = useRef(value);
valueRef.current = value;"><pre class="notranslate"><code class="notranslate">const [value, setValue] = useState('some-initial-value');
const valueRef = useRef(value);
valueRef.current = value;
</code></pre></div>
<p dir="auto">This ensure that on every render we update the ref to contain the latest version of the <code class="notranslate">value</code> state. This works fine, but it's messy - 3 lines of code instead of 1 for every state we need the latest version of. For components with a lot of <code class="notranslate">useState</code> calls this gets really ugly really fast for something that's remarkably simple and doesn't affect performance.</p>
<p dir="auto">My feature request is this: can we just get a ref that points back to the most recent value of state as part of the <code class="notranslate">useState</code> call? I'd love to be able to do this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const [value, setValue, valueRef] = useState('some-initial-value');"><pre class="notranslate"><code class="notranslate">const [value, setValue, valueRef] = useState('some-initial-value');
</code></pre></div>
<p dir="auto">And then just reference <code class="notranslate">valueRef.current</code> from within effects, timeouts, intervals, event listener functions, etc. The amount of times I have to use the messy ref workaround is frustrating, and this looks like something React would be able to do so easily just by sticking the latest value in the ref on every render. People could then use it if they want it or continue to call useState() as normal otherwise.</p>
<p dir="auto">Would certainly clean up my company's codebase markedly. Are there any potential downsides to providing this optional ref that I am missing?</p> | <p dir="auto">I am using react0.14.7 and webpack for my project. It works perfectly fine.</p>
<p dir="auto">However, when I try to upgrade to react15, I pops up such an error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component\'s render method, or you have multiple copies of React loaded."><pre class="notranslate"><code class="notranslate">addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component\'s render method, or you have multiple copies of React loaded.
</code></pre></div>
<p dir="auto">This is a very classic issue (<a href="https://gist.github.com/jimfb/4faa6cbfb1ef476bd105">https://gist.github.com/jimfb/4faa6cbfb1ef476bd105</a>).</p>
<p dir="auto">Why it works in react0.14.7 but fails for react15?</p>
<p dir="auto">Could any one answer?</p> | 0 |
<p dir="auto">Glide Version: >4.8.0</p>
<p dir="auto">Integration libraries: None<br>
Device/Android Version: Any<br>
Issue details / Repro steps / Use case background:</p>
<p dir="auto">How do we get a context to a custom ModelLoader in Glide 4? We should not store the context in the ModelLoaderFactory</p>
<p dir="auto">Registry requires a factory:</p>
<p dir="auto">public void registerComponents(<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nonnull/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nonnull">@nonnull</a> Context context, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nonnull/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nonnull">@nonnull</a> Glide glide, Registry registry) {<br>
registry.append(MetadataTest.class, InputStream.class, new TestModelLoaderFactory(context));<br>
}<br>
but build can't take a context:</p>
<p dir="auto">public ModelLoader<MetadataTest, InputStream> build(<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nonnull/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nonnull">@nonnull</a> MultiModelLoaderFactory multiFactory) {<br>
return new TestModelLoader(context); <-- no context here<br>
}<br>
So there's no context during the ModelLoader creation:</p>
<p dir="auto">The docs clearly mention storing a context in a ModelLoader not ModelLoaderFactory, but I can't see how one is possible without the other.</p> | <p dir="auto">I suspect I'm somehow missing something trivial, but I've hunted through the docs and issues. How do we get a context to a <code class="notranslate">ModelLoader</code> built via the <code class="notranslate">ModelLoaderFactory</code>? We can't store the context in the factory, so there must be some way to inject it into the <code class="notranslate">build</code>?</p> | 1 |
<p dir="auto">I don't see what useful purpose is served by having this distinction in the type system, introduced by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5318547" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/987" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/987/hovercard" href="https://github.com/JuliaLang/julia/issues/987">#987</a> (and see also the discussion in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="27554357" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/5810" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/5810/hovercard" href="https://github.com/JuliaLang/julia/pull/5810">#5810</a>). According to the description in the manual:</p>
<blockquote>
<p dir="auto">The AbstractArray type includes anything vaguely array-like, and implementations of it might be quite different from conventional arrays. For example, elements might be computed on request rather than stored. Or, it might not be possible to assign or access every array location.</p>
<p dir="auto">StoredArray is an abstract subtype of AbstractArray intended to include all arrays that behave like memories: all elements are independent, can be accessed, and (for mutable arrays) all elements can be assigned.</p>
</blockquote>
<p dir="auto">the main difference between a <code class="notranslate">StoredArray</code> and an <code class="notranslate">AbstractArray</code> is that in the latter, the elements are computed or requested on the fly whereas in the former they are "stored". But this seems like an implementation detail.... why do we want to have this distinction in the type system? Under what circumstances would you dispatch on the difference between computed and stored values?</p>
<p dir="auto">The other difference is that, in an <code class="notranslate">AbstractArray</code>, not all elements may be accessible. (But in this case, shouldn't it be an <code class="notranslate">Associative</code> type?) If you can't even access all elements, what non-trivial array-like methods could possibly operate on an <code class="notranslate">AbstractArray</code>? And if you can't write a non-trivial method for it, why even have the type at all?</p>
<p dir="auto">My suggestion would be to just drop this distinction, and make <code class="notranslate">StoredArray === AbstractArray</code>. And suggest that every concrete <code class="notranslate">AbstractArray</code> type should, at minimum, provide <code class="notranslate">size</code> and <code class="notranslate">getindex</code> (and <code class="notranslate">setindex!</code> if it is mutable), including a single-index variant.</p> | <p dir="auto">E.g.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" From worker 4: Internal error: encountered unexpected error during compilation of undeclared_ceil:
From worker 4: ErrorException("Failed to parse LLVM Assembly:
From worker 4: julia: llvmcall:3:18: error: use of undefined value '@llvm.ceil.f64'
From worker 4: %2 = call double @llvm.ceil.f64(double %0)
From worker 4: ^
From worker 4: ")
From worker 4: jl_error at /buildworker/worker/package_linux64/build/src/rtutils.c:41
From worker 4: emit_llvmcall at /buildworker/worker/package_linux64/build/src/ccall.cpp:997"><pre class="notranslate"><code class="notranslate"> From worker 4: Internal error: encountered unexpected error during compilation of undeclared_ceil:
From worker 4: ErrorException("Failed to parse LLVM Assembly:
From worker 4: julia: llvmcall:3:18: error: use of undefined value '@llvm.ceil.f64'
From worker 4: %2 = call double @llvm.ceil.f64(double %0)
From worker 4: ^
From worker 4: ")
From worker 4: jl_error at /buildworker/worker/package_linux64/build/src/rtutils.c:41
From worker 4: emit_llvmcall at /buildworker/worker/package_linux64/build/src/ccall.cpp:997
</code></pre></div>
<p dir="auto">in recent CI runs.</p> | 0 |
<p dir="auto"><strong>Symfony version(s) affected</strong>: 4.1</p>
<p dir="auto"><strong>Description</strong><br>
When i try to access in security page, i have an exception critical in my log, this error critical don't exist in 4.0.x<br>
Trace :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught PHP Exception Symfony\Component\Security\Core\Exception\AccessDeniedException: "Access Denied." at /var/www/demo-master/vendor/symfony/security/Http/Firewall/AccessListener.php line 68
Hide context Hide trace
[▼
"exception" => AccessDeniedException {#316 ▶}
]
{▼
/var/www/demo-master/vendor/symfony/security/Http/Firewall/AccessListener.php:68 {▶}
/var/www/demo-master/vendor/symfony/security-bundle/Debug/WrappedListener.php:46 {▶}
/var/www/demo-master/vendor/symfony/security-bundle/Debug/TraceableFirewallListener.php:35 {▶}
/var/www/demo-master/vendor/symfony/security/Http/Firewall.php:61 {▶}
/var/www/demo-master/vendor/symfony/security-bundle/EventListener/FirewallListener.php:48 {▶}
Symfony\Bundle\SecurityBundle\EventListener\FirewallListener->onKernelRequest() {}
/var/www/demo-master/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:104 {▶}
/var/www/demo-master/vendor/symfony/event-dispatcher/EventDispatcher.php:212 {▶}
/var/www/demo-master/vendor/symfony/event-dispatcher/EventDispatcher.php:44 {▶}
/var/www/demo-master/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:141 {▶}
/var/www/demo-master/vendor/symfony/http-kernel/HttpKernel.php:125 {▶}
/var/www/demo-master/vendor/symfony/http-kernel/HttpKernel.php:66 {▶}
/var/www/demo-master/vendor/symfony/http-kernel/Kernel.php:188 {▶}
/var/www/demo-master/public/index.php:37 {▼
› $request = Request::createFromGlobals();
› $response = $kernel->handle($request);
› $response->send();
arguments: {▶}
}
}"><pre class="notranslate"><code class="notranslate">Uncaught PHP Exception Symfony\Component\Security\Core\Exception\AccessDeniedException: "Access Denied." at /var/www/demo-master/vendor/symfony/security/Http/Firewall/AccessListener.php line 68
Hide context Hide trace
[▼
"exception" => AccessDeniedException {#316 ▶}
]
{▼
/var/www/demo-master/vendor/symfony/security/Http/Firewall/AccessListener.php:68 {▶}
/var/www/demo-master/vendor/symfony/security-bundle/Debug/WrappedListener.php:46 {▶}
/var/www/demo-master/vendor/symfony/security-bundle/Debug/TraceableFirewallListener.php:35 {▶}
/var/www/demo-master/vendor/symfony/security/Http/Firewall.php:61 {▶}
/var/www/demo-master/vendor/symfony/security-bundle/EventListener/FirewallListener.php:48 {▶}
Symfony\Bundle\SecurityBundle\EventListener\FirewallListener->onKernelRequest() {}
/var/www/demo-master/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:104 {▶}
/var/www/demo-master/vendor/symfony/event-dispatcher/EventDispatcher.php:212 {▶}
/var/www/demo-master/vendor/symfony/event-dispatcher/EventDispatcher.php:44 {▶}
/var/www/demo-master/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:141 {▶}
/var/www/demo-master/vendor/symfony/http-kernel/HttpKernel.php:125 {▶}
/var/www/demo-master/vendor/symfony/http-kernel/HttpKernel.php:66 {▶}
/var/www/demo-master/vendor/symfony/http-kernel/Kernel.php:188 {▶}
/var/www/demo-master/public/index.php:37 {▼
› $request = Request::createFromGlobals();
› $response = $kernel->handle($request);
› $response->send();
arguments: {▶}
}
}
</code></pre></div>
<p dir="auto"><strong>How to reproduce</strong><br>
Just clone symfony-demo and try to access in <a href="http://127.0.0.1:8000/fr/admin/post/" rel="nofollow">http://127.0.0.1:8000/fr/admin/post/</a><br>
go to the profiler and select the page 302 (@admin_index) you can see an exception & error critical in log.</p>
<p dir="auto">If i downgrade in 4.0.x, i don't have this critical error.</p>
<p dir="auto"><strong>Possible Solution</strong><br>
For me access denied is not critical</p> | <p dir="auto"><strong>Symfony version(s) affected</strong>: 4.0.9/4.1.0-BETA1</p>
<p dir="auto"><strong>Description</strong><br>
Commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/symfony/symfony/commit/4e527aa790f41e18a82cb9c53e782549fb564802/hovercard" href="https://github.com/symfony/symfony/commit/4e527aa790f41e18a82cb9c53e782549fb564802"><tt>4e527aa</tt></a> added a service <code class="notranslate">http_exception_listener</code>. This registers a system-wide exception handler that sets request's <code class="notranslate">_controller</code> attribute to a closure during <code class="notranslate">kernel.exception</code>.<br>
Also this closure controller generates a response on the event. As a consequence of that, this triggers listeners on <code class="notranslate">kernel.response</code> event - with <code class="notranslate">_controller</code> as a closure instead of previously not being invoked at all, and the generated response instead of null.</p>
<p dir="auto"><strong>How to reproduce</strong><br>
Failing test case provided separately in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="321662513" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/27213" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/27213/hovercard" href="https://github.com/symfony/symfony/pull/27213">#27213</a>.</p>
<p dir="auto"><strong>Additional context</strong><br>
Encountered in API-only application, no templating etc., only custom request/response handling and custom exception handling.</p> | 1 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.