text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=kdonald" rel="nofollow">Keith Donald</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7163?redirect=false" rel="nofollow">SPR-7163</a></strong> and commented</p>
<p dir="auto">Spring sample projects reside in the following SVN repository: <a href="http://src.springframework.org/svn/spring-samples" rel="nofollow">http://src.springframework.org/svn/spring-samples</a>. Users are expected to check this repository out to build, deploy, and review our sample applications. This needs to be mentioned in the reference documentation. We may also want to mention tips for how to checkout using a SVN client.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0.2</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398104935" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11820" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11820/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11820">#11820</a> Update reference manual regarding PetClinic (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/42cdfbcd89c3116622fee5d1c57435ae70fcc344/hovercard" href="https://github.com/spring-projects/spring-framework/commit/42cdfbcd89c3116622fee5d1c57435ae70fcc344"><tt>42cdfbc</tt></a></p> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=skaffman" rel="nofollow">Kenny MacLeod</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7290?redirect=false" rel="nofollow">SPR-7290</a></strong> and commented</p>
<p dir="auto">The current implementation of JdbcTemplate can only process JDBC batch updates such that a single batch is sent. This isn't really suitable for very large batches, due to memory constraints.</p>
<p dir="auto">Please extend this so that you can specify not only the total number of updates, but the maximum size of each batch.</p>
<p dir="auto">For example, 2,000,000 updates, sent in batches of up to 100,000 each.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0.3</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398099061" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11000" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11000/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11000">#11000</a> JdbcTemplate batch update - Managing batchSize inferior to the number of rows to be updated (<em><strong>"duplicates"</strong></em>)</li>
</ul> | 0 |
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.0.2.0
config file =
configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.0.2.0
config file =
configured module search path = Default w/o overrides
</code></pre></div>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Mac OSX El Capitan (10.11.3)</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">This issue is strange. If I use the public DNS provided by AWS, Ansible fails to connect (see error report below). But if I use the IP address it can connect and everything works.</p>
<p dir="auto">Just to make sure, I can ssh into it without issues (providing the same username and key file than ansible is using).</p>
<h3 dir="auto">Output Error</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="No config file found; using defaults
Loaded callback default of type stdout, v2.0
PLAYBOOK: rmotr_admin-deploy.yml ***********************************************
1 plays in playbooks/rmotr_admin-deploy.yml
PLAY [rmotr-admin] *************************************************************
TASK [setup] *******************************************************************
<ec2-52-18-118-51.eu-west-1.compute.amazonaws.com> ESTABLISH SSH CONNECTION FOR USER: ubuntu
<ec2-52-18-118-51.eu-west-1.compute.amazonaws.com> SSH: ansible.cfg set ssh_args: (-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
<ec2-52-18-118-51.eu-west-1.compute.amazonaws.com> SSH: ANSIBLE_PRIVATE_KEY_FILE/private_key_file/ansible_ssh_private_key_file set: (-o)(IdentityFile="/Users/santiagobasulto/.ssh/rmotr.pem")
<ec2-52-18-118-51.eu-west-1.compute.amazonaws.com> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
<ec2-52-18-118-51.eu-west-1.compute.amazonaws.com> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ubuntu)
<ec2-52-18-118-51.eu-west-1.compute.amazonaws.com> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
<ec2-52-18-118-51.eu-west-1.compute.amazonaws.com> SSH: PlayContext set ssh_common_args: ()
<ec2-52-18-118-51.eu-west-1.compute.amazonaws.com> SSH: PlayContext set ssh_extra_args: ()
<ec2-52-18-118-51.eu-west-1.compute.amazonaws.com> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/Users/santiagobasulto/.ansible/cp/ansible-ssh-%h-%p-%r)
<ec2-52-18-118-51.eu-west-1.compute.amazonaws.com> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/Users/santiagobasulto/.ssh/rmotr.pem"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ubuntu -o ConnectTimeout=10 -o ControlPath=/Users/santiagobasulto/.ansible/cp/ansible-ssh-%h-%p-%r ec2-52-18-118-51.eu-west-1.compute.amazonaws.com '/bin/sh -c '"'"'( umask 22 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1461186869.5-5816100855549 `" && echo "` echo $HOME/.ansible/tmp/ansible-tmp-1461186869.5-5816100855549 `" )'"'"''
fatal: [ec2-52-18-118-51.eu-west-1.compute.amazonaws.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh.", "unreachable": true}
to retry, use: --limit @playbooks/rmotr_admin-deploy.retry
PLAY RECAP *********************************************************************
ec2-52-18-118-51.eu-west-1.compute.amazonaws.com : ok=0 changed=0 unreachable=1 failed=0"><pre class="notranslate"><code class="notranslate">No config file found; using defaults
Loaded callback default of type stdout, v2.0
PLAYBOOK: rmotr_admin-deploy.yml ***********************************************
1 plays in playbooks/rmotr_admin-deploy.yml
PLAY [rmotr-admin] *************************************************************
TASK [setup] *******************************************************************
<ec2-52-18-118-51.eu-west-1.compute.amazonaws.com> ESTABLISH SSH CONNECTION FOR USER: ubuntu
<ec2-52-18-118-51.eu-west-1.compute.amazonaws.com> SSH: ansible.cfg set ssh_args: (-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
<ec2-52-18-118-51.eu-west-1.compute.amazonaws.com> SSH: ANSIBLE_PRIVATE_KEY_FILE/private_key_file/ansible_ssh_private_key_file set: (-o)(IdentityFile="/Users/santiagobasulto/.ssh/rmotr.pem")
<ec2-52-18-118-51.eu-west-1.compute.amazonaws.com> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
<ec2-52-18-118-51.eu-west-1.compute.amazonaws.com> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ubuntu)
<ec2-52-18-118-51.eu-west-1.compute.amazonaws.com> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
<ec2-52-18-118-51.eu-west-1.compute.amazonaws.com> SSH: PlayContext set ssh_common_args: ()
<ec2-52-18-118-51.eu-west-1.compute.amazonaws.com> SSH: PlayContext set ssh_extra_args: ()
<ec2-52-18-118-51.eu-west-1.compute.amazonaws.com> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/Users/santiagobasulto/.ansible/cp/ansible-ssh-%h-%p-%r)
<ec2-52-18-118-51.eu-west-1.compute.amazonaws.com> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/Users/santiagobasulto/.ssh/rmotr.pem"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ubuntu -o ConnectTimeout=10 -o ControlPath=/Users/santiagobasulto/.ansible/cp/ansible-ssh-%h-%p-%r ec2-52-18-118-51.eu-west-1.compute.amazonaws.com '/bin/sh -c '"'"'( umask 22 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1461186869.5-5816100855549 `" && echo "` echo $HOME/.ansible/tmp/ansible-tmp-1461186869.5-5816100855549 `" )'"'"''
fatal: [ec2-52-18-118-51.eu-west-1.compute.amazonaws.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh.", "unreachable": true}
to retry, use: --limit @playbooks/rmotr_admin-deploy.retry
PLAY RECAP *********************************************************************
ec2-52-18-118-51.eu-west-1.compute.amazonaws.com : ok=0 changed=0 unreachable=1 failed=0
</code></pre></div> | <h5 dir="auto">ISSUE TYPE</h5>
<p dir="auto">Feature Idea</p>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">ssh control persist</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<p dir="auto">2.0</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">When trying to use the ec2 plugin, ssh fails with this error:</p>
<p dir="auto"><code class="notranslate">SSH Error: unix_listener: "/Users/luke/.ansible/cp/ansible-ssh-ec2-255-255-255-255.compute-1.amazonaws.com-22-ubuntu.CErvOvRE5U0urCgm" too long for Unix domain socket</code></p>
<p dir="auto">Here's the full example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible -vvvv -i ec2.py -u ubuntu us-east-1 -m ping
<ec2-255-255-255-255.compute-1.amazonaws.com> ESTABLISH CONNECTION FOR USER: ubuntu
<ec2-255-255-255-255.compute-1.amazonaws.com> REMOTE_MODULE ping
<ec2-255-255-255-255.compute-1.amazonaws.com> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/luke/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 ec2-255-255-255-255.compute-1.amazonaws.com /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1436458336.4-21039895766180 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1436458336.4-21039895766180 && echo $HOME/.ansible/tmp/ansible-tmp-1436458336.4-21039895766180'
ec2-255-255-255-255.compute-1.amazonaws.com | FAILED => SSH Error: unix_listener: "/Users/luke/.ansible/cp/ansible-ssh-ec2-255-255-255-255.compute-1.amazonaws.com-22-ubuntu.CErvOvRE5U0urCgm" too long for Unix domain socket
while connecting to 255.255.255.255:22
It is sometimes useful to re-run the command using -vvvv, which prints SSH debug output to help diagnose the issue."><pre class="notranslate"><code class="notranslate">$ ansible -vvvv -i ec2.py -u ubuntu us-east-1 -m ping
<ec2-255-255-255-255.compute-1.amazonaws.com> ESTABLISH CONNECTION FOR USER: ubuntu
<ec2-255-255-255-255.compute-1.amazonaws.com> REMOTE_MODULE ping
<ec2-255-255-255-255.compute-1.amazonaws.com> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/luke/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 ec2-255-255-255-255.compute-1.amazonaws.com /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1436458336.4-21039895766180 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1436458336.4-21039895766180 && echo $HOME/.ansible/tmp/ansible-tmp-1436458336.4-21039895766180'
ec2-255-255-255-255.compute-1.amazonaws.com | FAILED => SSH Error: unix_listener: "/Users/luke/.ansible/cp/ansible-ssh-ec2-255-255-255-255.compute-1.amazonaws.com-22-ubuntu.CErvOvRE5U0urCgm" too long for Unix domain socket
while connecting to 255.255.255.255:22
It is sometimes useful to re-run the command using -vvvv, which prints SSH debug output to help diagnose the issue.
</code></pre></div>
<p dir="auto">I've changed some of the sensitive info in here like the IP etc.</p> | 1 |
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/11380/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/11380/</a></p>
<p dir="auto">Failed: [k8s.io] Kubectl client [k8s.io] Update Demo should create and stop a replication controller [Conformance] {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:209
Expected error:
<*errors.errorString | 0xc820b73c70>: {
s: "Error running &{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.237.115 --kubeconfig=/workspace/.kube/config get pods update-demo-nautilus-qemon -o template --template={{if (exists . \"status\" \"containerStatuses\")}}{{range .status.containerStatuses}}{{if eq .name \"update-demo\"}}{{.image}}{{end}}{{end}}{{end}} --namespace=e2e-tests-kubectl-4mqej] [] <nil> failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n [] <nil> 0xc820ac4740 exit status 1 <nil> true [0xc8204ca7f0 0xc8204ca888 0xc8204ca8f0] [0xc8204ca7f0 0xc8204ca888 0xc8204ca8f0] [0xc8204ca858 0xc8204ca8a8] [0xab23f0 0xab23f0] 0xc820cb55c0}:\nCommand stdout:\n\nstderr:\nfailed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n\nerror:\nexit status 1\n",
}
Error running &{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.237.115 --kubeconfig=/workspace/.kube/config get pods update-demo-nautilus-qemon -o template --template={{if (exists . "status" "containerStatuses")}}{{range .status.containerStatuses}}{{if eq .name "update-demo"}}{{.image}}{{end}}{{end}}{{end}} --namespace=e2e-tests-kubectl-4mqej] [] <nil> failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
[] <nil> 0xc820ac4740 exit status 1 <nil> true [0xc8204ca7f0 0xc8204ca888 0xc8204ca8f0] [0xc8204ca7f0 0xc8204ca888 0xc8204ca8f0] [0xc8204ca858 0xc8204ca8a8] [0xab23f0 0xab23f0] 0xc820cb55c0}:
Command stdout:
stderr:
failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
error:
exit status 1
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:209
Expected error:
<*errors.errorString | 0xc820b73c70>: {
s: "Error running &{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.237.115 --kubeconfig=/workspace/.kube/config get pods update-demo-nautilus-qemon -o template --template={{if (exists . \"status\" \"containerStatuses\")}}{{range .status.containerStatuses}}{{if eq .name \"update-demo\"}}{{.image}}{{end}}{{end}}{{end}} --namespace=e2e-tests-kubectl-4mqej] [] <nil> failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n [] <nil> 0xc820ac4740 exit status 1 <nil> true [0xc8204ca7f0 0xc8204ca888 0xc8204ca8f0] [0xc8204ca7f0 0xc8204ca888 0xc8204ca8f0] [0xc8204ca858 0xc8204ca8a8] [0xab23f0 0xab23f0] 0xc820cb55c0}:\nCommand stdout:\n\nstderr:\nfailed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n\nerror:\nexit status 1\n",
}
Error running &{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.237.115 --kubeconfig=/workspace/.kube/config get pods update-demo-nautilus-qemon -o template --template={{if (exists . "status" "containerStatuses")}}{{range .status.containerStatuses}}{{if eq .name "update-demo"}}{{.image}}{{end}}{{end}}{{end}} --namespace=e2e-tests-kubectl-4mqej] [] <nil> failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
[] <nil> 0xc820ac4740 exit status 1 <nil> true [0xc8204ca7f0 0xc8204ca888 0xc8204ca8f0] [0xc8204ca7f0 0xc8204ca888 0xc8204ca8f0] [0xc8204ca858 0xc8204ca8a8] [0xab23f0 0xab23f0] 0xc820cb55c0}:
Command stdout:
stderr:
failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
error:
exit status 1
not to have occurred
</code></pre></div>
<p dir="auto">Previous issues for this test: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="164204998" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28565" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28565/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28565">#28565</a></p> | <p dir="auto"><code class="notranslate">error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.</code> appears in a lot of flakes. Speculation is that the metadata server is slow to respond.</p>
<p dir="auto">So far, these are the issues where this message has popped up:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="164220053" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28569" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28569/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28569">#28569</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="164204998" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28565" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28565/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28565">#28565</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163991819" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28523" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28523/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28523">#28523</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163933215" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28507" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28507/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28507">#28507</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163811600" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28493" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28493/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28493">#28493</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163579268" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28439" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28439/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28439">#28439</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163578278" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28437" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28437/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28437">#28437</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163545161" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28429" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28429/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28429">#28429</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163541783" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28426" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28426/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28426">#28426</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163533035" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28420" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28420/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28420">#28420</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163207971" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28293" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28293/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28293">#28293</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="162029512" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27976" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27976/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27976">#27976</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="161598746" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27839" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27839/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27839">#27839</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="161178789" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27715" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27715/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27715">#27715</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="159529335" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27156" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27156/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27156">#27156</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="158173781" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26715" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26715/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26715">#26715</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="157357173" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26490" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26490/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26490">#26490</a></p>
<p dir="auto">Sample failed run: <a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/10664" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/10664</a></p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cjcullen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cjcullen">@cjcullen</a> since this is dealing with auth, I'm initially assigning to you. Feel free to reassign to someone more appropriate.</p> | 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 <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Problem Description</h3>
<p dir="auto">Looking to set my preload script directly inline in the webPreferences of main.js.</p>
<p dir="auto">I found these two PRs that seems to be about that (please correct if wrong): <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="809434242" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/27741" data-hovercard-type="pull_request" data-hovercard-url="/electron/electron/pull/27741/hovercard" href="https://github.com/electron/electron/pull/27741">#27741</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="796554257" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/27546" data-hovercard-type="pull_request" data-hovercard-url="/electron/electron/pull/27546/hovercard" href="https://github.com/electron/electron/pull/27546">#27546</a></p>
<p dir="auto">But the threads state no updated information on when this is going to be released and/or the syntax to use this feature.</p>
<p dir="auto">So, Is this doable at the moment ? If so, could you post a short example on how to do that ?</p>
<p dir="auto">Thanks.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Electron 12.0.5
Win x64"><pre class="notranslate"><code class="notranslate">Electron 12.0.5
Win x64
</code></pre></div>
<h3 dir="auto">Proposed Solution</h3>
<p dir="auto">n/a</p>
<h3 dir="auto">Alternatives Considered</h3>
<p dir="auto">n/a</p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">n/a</p> | <p dir="auto"><strong>Is your feature request related to a problem? Please describe.</strong></p>
<p dir="auto">Being able to set preloads for a session is very useful, unfortunately having to set an absolute path is problematic when you use some kind of bundler for the code, as the preload script has to be excluded and handled manually since the path to the preload no longer exists when bundled. This is especially problematic for reusable modules using <code class="notranslate">session#setPreloads()</code> as the bundling is out of its control. (Example: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="345481692" data-permission-text="Title is private" data-url="https://github.com/sindresorhus/electron-timber/issues/17" data-hovercard-type="issue" data-hovercard-url="/sindresorhus/electron-timber/issues/17/hovercard" href="https://github.com/sindresorhus/electron-timber/issues/17">sindresorhus/electron-timber#17</a>).</p>
<p dir="auto">API: <a href="https://electronjs.org/docs/api/session#sessetpreloadspreloads" rel="nofollow">https://electronjs.org/docs/api/session#sessetpreloadspreloads</a></p>
<p dir="auto"><strong>Describe the solution you'd like</strong></p>
<p dir="auto">I would like the ability to set session preloads as strings of content in addition to absolute paths.</p>
<p dir="auto">The existing API can't be used for this as it already supports strings as paths.</p>
<p dir="auto">I propose two solutions:</p>
<ol dir="auto">
<li>Add a new <code class="notranslate">session.setPreloadScripts()</code> that accepts a <code class="notranslate">string[]</code> with JS code:</li>
</ol>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="session.defaultSession.setPreloads(['/foo/bar/path']);
session.defaultSession.setPreloadScripts(['console.log("loaded")']);"><pre class="notranslate"><span class="pl-s1">session</span><span class="pl-kos">.</span><span class="pl-c1">defaultSession</span><span class="pl-kos">.</span><span class="pl-en">setPreloads</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s">'/foo/bar/path'</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">session</span><span class="pl-kos">.</span><span class="pl-c1">defaultSession</span><span class="pl-kos">.</span><span class="pl-en">setPreloadScripts</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s">'console.log("loaded")'</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<ol start="2" dir="auto">
<li>Add a <code class="notranslate">session.PreloadScript()</code> constructor that can be passed to <code class="notranslate">session#setPreloads()</code>:</li>
</ol>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="session.defaultSession.setPreloads([
'/foo/bar/path',
new session.PreloadScript('console.log("loaded")')
]);"><pre class="notranslate"><span class="pl-s1">session</span><span class="pl-kos">.</span><span class="pl-c1">defaultSession</span><span class="pl-kos">.</span><span class="pl-en">setPreloads</span><span class="pl-kos">(</span><span class="pl-kos">[</span>
<span class="pl-s">'/foo/bar/path'</span><span class="pl-kos">,</span>
<span class="pl-k">new</span> <span class="pl-s1">session</span><span class="pl-kos">.</span><span class="pl-c1">PreloadScript</span><span class="pl-kos">(</span><span class="pl-s">'console.log("loaded")'</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">This would also let us create dynamic preload scripts, which can be useful for modules.</p> | 1 |
<p dir="auto"><a href="http://doc.rust-lang.org/std/ptr/index.html#functions" rel="nofollow">ptr Functions section</a></p> | <p dir="auto">The documentation of <a href="http://doc.rust-lang.org/nightly/std/ptr/index.html#functions" rel="nofollow">std::ptr</a> displays <code class="notranslate">copy_memory</code> and <code class="notranslate">copy_nonoverlapping_memory</code> two times each, once labelled as deprecated, and once labelled as stable.</p>
<p dir="auto">Both the links of <code class="notranslate">copy_memory</code> leads to a <a href="http://doc.rust-lang.org/nightly/std/ptr/fn.copy_memory.html" rel="nofollow">deprecated function</a>. Hovering over the purple bar tells me that the function is renamed to <code class="notranslate">copy</code>, except that it doesn't seem to exist.</p> | 1 |
<table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>yes</td>
</tr>
<tr>
<td>Feature request?</td>
<td>no</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>no</td>
</tr>
<tr>
<td>RFC?</td>
<td>no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>3.4-BETA</td>
</tr>
</tbody>
</table>
<p dir="auto">When decorating <code class="notranslate">routing.loader</code> in a compiler pass I get the following deprecation error when the container is built:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="User Deprecated: The "routing.loader" service is private, getting it from the container is deprecated since Symfony 3.2 and will fail in 4.0. You should either make the service public, or stop using the container directly and use dependency injection instead."><pre class="notranslate"><code class="notranslate">User Deprecated: The "routing.loader" service is private, getting it from the container is deprecated since Symfony 3.2 and will fail in 4.0. You should either make the service public, or stop using the container directly and use dependency injection instead.
</code></pre></div>
<p dir="auto">I can't figure out why this is happening.</p>
<p dir="auto">Reference: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="268496084" data-permission-text="Title is private" data-url="https://github.com/umpirsky/UmpirskyI18nRoutingBundle/issues/17" data-hovercard-type="issue" data-hovercard-url="/umpirsky/UmpirskyI18nRoutingBundle/issues/17/hovercard" href="https://github.com/umpirsky/UmpirskyI18nRoutingBundle/issues/17">umpirsky/UmpirskyI18nRoutingBundle#17</a><br>
CompilerPass: <a href="https://github.com/umpirsky/UmpirskyI18nRoutingBundle/blob/a69bd4dcc901c3459aba20f8e586613a5758d05b/src/DependencyInjection/Compiler/OverrideRoutingCompilerPass.php">https://github.com/umpirsky/UmpirskyI18nRoutingBundle/blob/a69bd4dcc901c3459aba20f8e586613a5758d05b/src/DependencyInjection/Compiler/OverrideRoutingCompilerPass.php</a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/127811/32618918-0d6df242-c547-11e7-94d2-30562215dee0.png"><img src="https://user-images.githubusercontent.com/127811/32618918-0d6df242-c547-11e7-94d2-30562215dee0.png" alt="profiler" style="max-width: 100%;"></a></p> | <table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>yes/no</td>
</tr>
<tr>
<td>Feature request?</td>
<td>yes/no</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>yes/no</td>
</tr>
<tr>
<td>RFC?</td>
<td>yes/no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>x.y.z</td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">In Atom 0.98.0, deleting a file from the tree view which is also open causes the below exception. It probably should not.</p>
<p dir="auto">Uncaught TypeError: Cannot call method 'getBufferPosition' of undefined /Applications/Atom.app/Contents/Resources/app/src/editor.js:1321<br>
module.exports.Editor.getCursorBufferPosition /Applications/Atom.app/Contents/Resources/app/src/editor.js:1321<br>
StatusBarView.render statusbar-view.coffee:18<br>
LinterView.displayStatusBar linter-view.coffee:163<br>
(anonymous function) linter-view.coffee:41<br>
jQuery.event.dispatch /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4676<br>
elemData.handle /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4360<br>
jQuery.event.trigger /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4594<br>
(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:5119<br>
jQuery.extend.each /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:590<br>
jQuery.fn.jQuery.each /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:237<br>
jQuery.fn.extend.trigger /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:5118<br>
module.exports.PaneView.onActiveItemChanged /Applications/Atom.app/Contents/Resources/app/src/pane-view.js:305<br>
(anonymous function) /Applications/Atom.app/Contents/Resources/app/src/pane-view.js:3<br>
(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/emitter.js:133<br>
module.exports.Emitter.emit /Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/emitter.js:132<br>
module.exports.Behavior.emit /Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/behavior.js:44<br>
module.exports.Signal.emitValue /Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/signal.js:82<br>
module.exports.Model.set /Applications/Atom.app/Contents/Resources/app/node_modules/theorist/lib/model.js:166<br>
accessor.set /Applications/Atom.app/Contents/Resources/app/node_modules/theorist/lib/model.js:57<br>
module.exports.Pane.activateItem /Applications/Atom.app/Contents/Resources/app/src/pane.js:175<br>
_results.push._this.(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/delegato/lib/delegator.js:67<br>
(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/tabs/lib/tab-bar-view.js:148<br>
jQuery.event.dispatch /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4676<br>
elemData.handle /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4360</p> | <h2 dir="auto">Repro Steps</h2>
<ol dir="auto">
<li>Open Atom</li>
<li>Create file <code class="notranslate">foo.md</code></li>
<li>Highlight file in tree view</li>
<li>Press Delete button</li>
<li>Click "Delete" option (not "Move to Trash")</li>
</ol>
<p dir="auto"><strong>Expected:</strong> No error occurs<br>
<strong>Actual:</strong> Exception happens:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught TypeError: Cannot call method 'getScreenRow' of undefined
/Applications/Atom.app/Contents/Resources/app/src/editor.js:1311"><pre lang="text" class="notranslate"><code class="notranslate">Uncaught TypeError: Cannot call method 'getScreenRow' of undefined
/Applications/Atom.app/Contents/Resources/app/src/editor.js:1311
</code></pre></div> | 1 |
<h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">I like the shortcut guide feature of powertoys. Helps to remind about the shortcuts i seem to forget regularly. Though noticed that one the P is not in the list. Used for managing your screens in case you have multiple screens active. Suggest to add this one?</p>
<h1 dir="auto">Proposed technical implementation details (optional)</h1> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [10.0.18363.900]
PowerToys version: v0.18.2
PowerToy module for which you are reporting the bug (if applicable): Keyboard Manager"><pre class="notranslate"><code class="notranslate">Windows build number: [10.0.18363.900]
PowerToys version: v0.18.2
PowerToy module for which you are reporting the bug (if applicable): Keyboard Manager
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">*Have Keyboard Manager Enabled<br>
*Use Keyboard and record keystroke input vs registration on computer</p>
<p dir="auto">*Potentially have intensive tasks running: Issue was initially noticed when playing the shooter game Valorant, but not as noticeable when performing other normal tasks.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">*Keystrokes register on computer at the same time as registered on keyboard</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">*Input delay lasting multiple seconds.</p>
<h1 dir="auto">Screenshots</h1> | 0 |
<p dir="auto"><strong>Describe the feature</strong>:<br>
Add date math support to the field stats API. The ability to do something like this could be useful:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="GET metricbeat-*/_field_stats?level=indices
{
"fields": ["@timestamp"],
"index_constraints": {
"@timestamp": {
"max_value": {
"lt":"now-30d"
}
}
}
}"><pre class="notranslate"><code class="notranslate">GET metricbeat-*/_field_stats?level=indices
{
"fields": ["@timestamp"],
"index_constraints": {
"@timestamp": {
"max_value": {
"lt":"now-30d"
}
}
}
}
</code></pre></div>
<p dir="auto">It could help with managing time series indices. Other uses?</p> | <p dir="auto">Currently, the <code class="notranslate">_optimize</code> API exists to optimize an entire index by merging segments in the background. In general, it's key to merge all segments to 1 (<code class="notranslate">max_num_segments=1</code>). However, if you have a very high workload, then it can be a very slow and expensive operation. Worse, optimizing an index that has replicas requires that both the primary and replica(s) be optimized separately.</p>
<p dir="auto">It would be great if we could provide an improved optimize API that allows further control:</p>
<ul dir="auto">
<li>Optimize specific shards of an index
<ul dir="auto">
<li>This would be particularly helpful with routing scenarios where shards could be tuned as-needed without impacting the rest of the shards (note: for time based indices, it's still optimal to optimize all of them, but it may be easier to wait for the remaining shards)</li>
<li>It also has the added benefit that you can better predict its impact, both in terms of file capacity <em>and</em> processing. Since you may have multiple shards per node, it also avoids running them in parallel.</li>
</ul>
</li>
<li>Choose to optimize a specific shard (not only the shard, but which node if replica shards exist)</li>
<li>Offer the ability to optimize a single shard, then copy the optimized shard rather than duplicating the effort on its primary/replica peer.
<ul dir="auto">
<li>This would allow people to choose to spend a little bit of short lived memory and network bandwidth rather than the current overhead associated (processing, longer lived memory, and more IO).</li>
</ul>
</li>
</ul> | 0 |
<p dir="auto">When will TensorFlow be supporting OpenCL?</p> | <p dir="auto">I understand TensorFlow only supports CUDA. What would need to be done to add in OpenCL support?</p> | 1 |
<p dir="auto">The Shadow DOM spec details <a href="http://www.w3.org/TR/shadow-dom/#event-retargeting" rel="nofollow">event retargeting</a>. This basically means that when an event propagation hits a shadow root boundary, it keeps propagating, but the event target is changed to the host element.</p>
<p dir="auto">It's also important to note that <a href="http://www.w3.org/TR/shadow-dom/#events-that-are-always-stopped" rel="nofollow">some event types are never propagated outside of a shadow root</a>.</p>
<p dir="auto">Angular's shadow DOM emulation currently doesn't do this, and it makes it confusing to try to add listeners to events like <code class="notranslate">click</code> and have to use the <code class="notranslate">^click</code> syntax (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="63343553" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/1040" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/1040/hovercard" href="https://github.com/angular/angular/issues/1040">#1040</a>).</p> | 1 |
|
<h2 dir="auto">Context</h2>
<p dir="auto">Currently, <code class="notranslate">fetch()</code> does not allow <code class="notranslate">file://</code> schemes to be fetched. The inability to do this becomes a significant usability issue, making code less portable. It has become quite common in Deno to write isomorphic code that uses <code class="notranslate">import.meta.url</code> as a base for accessing a resource when writing server code. Currently a user would have to code path to determine if the resource they are trying to access is local or on the network at a code level.</p>
<p dir="auto">It was requested in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="435246962" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/2150" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/2150/hovercard" href="https://github.com/denoland/deno/issues/2150">#2150</a> is the 10th most 👍 open issue at the time of this writing.</p>
<p dir="auto">That being said, the web platform does not support it, because of the security considerations and undefined behavior. Specifically the <a href="https://fetch.spec.whatwg.org/#scheme-fetch" rel="nofollow">Fetch Living Standard</a> says:</p>
<blockquote>
<p dir="auto">For now, unfortunate as it is, file URLs are left as an exercise for the<br>
reader.</p>
<p dir="auto">When in doubt, return a network error.</p>
</blockquote>
<p dir="auto">The specification does not prohibit <code class="notranslate">file</code> protocols, but the entire behavior is undefined.</p>
<p dir="auto">And Node.js libraries providing the <code class="notranslate">fetch()</code> API have decided not to implement local file URLs, partly because of the undefined behavior and the security concerns that come with Node.js having a trust-by-default model.</p>
<h3 dir="auto">Firefox</h3>
<p dir="auto">Firefox is the only mainstream browser to support local "file://" URLs well and would be the only one considered as setting precedence with local file <code class="notranslate">fetch()</code>.</p>
<p dir="auto">Since Firefox 67, by default, local files create their own unique opaque origin, instead of sharing an origin (<a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSRequestNotHttp" rel="nofollow">ref</a>). This means the only file that can be fetched is the file itself. For example scripts that come from <code class="notranslate">file:///example/test.html</code> can only do <code class="notranslate">fetch("file:///example/test.html")</code> or <code class="notranslate">fetch("./test.html")</code>. Every other one will display <code class="notranslate">Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at</code> in the console and throw a network error.</p>
<p dir="auto">If you change the config option <code class="notranslate">privacy.file_unique_origin</code> to <code class="notranslate">false</code>, then you can fetch local files from pages that have a local origin. There are the observed behaviours of fetching local files this way:</p>
<ul dir="auto">
<li>URLs are relative to the source file/<code class="notranslate">window.location</code></li>
<li>The <code class="notranslate">window.location.origin</code> is opaque, irrespective of it being unique per file or not.</li>
<li>If the file is present on the file system, the fetch is resolved as a 200.</li>
<li>Irrespective of the method, the response is the same. This means <code class="notranslate">HEAD</code> returns with a body.</li>
<li>There are no headers set on the response (including no content-size).</li>
<li>If the file is not present on the file system, the <code class="notranslate">Cross-Origin Request Blocked</code> error is logged to the console, and a network error is thrown. (I suspect the behaviour around the <code class="notranslate">Cross-Origin Request Blocked</code> is part of the security mitigation to limit the ability of scripts to try to detect if the <code class="notranslate">privacy.file_unique_origin</code> is <code class="notranslate">true</code> or <code class="notranslate">false</code>).</li>
</ul>
<p dir="auto">Since you have to do advanced configuration to be able to enable this, it feels like its behaviours shouldn't overly influence, as most code in the wild wouldn't expect to be able to fetch local files.</p>
<h2 dir="auto">Solution</h2>
<h3 dir="auto">Scheme Fetch</h3>
<p dir="auto">Building upon <a href="https://fetch.spec.whatwg.org/#scheme-fetch" rel="nofollow">4.2. Scheme fetch</a> and switch on the current URL's scheme, and running the associated steps:</p>
<p dir="auto">↪ <code class="notranslate">"file"</code></p>
<ol dir="auto">
<li>Run these steps, but <a href="https://infra.spec.whatwg.org/#abort-when" rel="nofollow">abort when</a> the ongoing fetch is <a href="https://fetch.spec.whatwg.org/#concept-fetch-terminate" rel="nofollow">terminated</a>:
<ol dir="auto">
<li>If <em>request</em>'s <a href="https://fetch.spec.whatwg.org/#concept-request-method" rel="nofollow">method</a> is not <code class="notranslate">GET</code>, then return a <a href="https://fetch.spec.whatwg.org/#concept-network-error" rel="nofollow">network error</a>.</li>
<li>Set <em>result</em> to the result of the resolution of <code class="notranslate">op_open_async</code> with an options argument of <em>path</em> set to the result of <code class="notranslate">pathFromURL()</code> for the <em>url</em> and <em>options</em> set to <em>read</em> to <em>true</em>.</li>
<li>If the <em>result</em> is an <em>error</em>, return a <a href="https://fetch.spec.whatwg.org/#concept-network-error" rel="nofollow">network error</a>.</li>
<li>Otherwise, set <em>file</em> to the an instance of <a href="#filestream"><code class="notranslate">FileStream</code></a> constructed with the <code class="notranslate">rid</code> from <em>result</em>.</li>
<li>Let <em>response</em> be a new <a href="https://fetch.spec.whatwg.org/#concept-response" rel="nofollow">response</a> whose <a href="https://fetch.spec.whatwg.org/#concept-response-status-message" rel="nofollow">status message</a> is <code class="notranslate">OK</code>.</li>
<li>Set <em>response</em>'s <a href="https://fetch.spec.whatwg.org/#concept-response-body" rel="nofollow">body</a>'s <a href="https://fetch.spec.whatwg.org/#concept-body-stream" rel="nofollow">stream</a> to the <em>file</em>'s <code class="notranslate">stream</code>.</li>
<li>Return <em>response</em>.</li>
</ol>
</li>
<li><a href="https://infra.spec.whatwg.org/#if-aborted" rel="nofollow">If aborted</a>, then:
<ol dir="auto">
<li>Let <em>aborted</em> be the termination's aborted flag.</li>
<li>If <em>aborted</em> is set, then return an <a href="https://fetch.spec.whatwg.org/#concept-aborted-network-error" rel="nofollow">aborted network error</a>.</li>
<li>Return a <a href="https://fetch.spec.whatwg.org/#concept-network-error" rel="nofollow">network error</a>.</li>
</ol>
</li>
</ol>
<h3 dir="auto">Body used</h3>
<p dir="auto"><em>TBC</em> steps to close the <code class="notranslate">FileStream</code>.</p>
<h3 dir="auto"><code class="notranslate">FileStream</code></h3>
<p dir="auto">An internal class which encapsulates a success result of <code class="notranslate">op_open_async</code> and performs <code class="notranslate">op_read_async</code> to read and enqueue chunks.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class FileStream {
constructor(rid: number);
readonly closed: boolean;
readonly rid: number;
readonly readable: ReadableStream<Uint8Array>;
close(): Promise<void>;
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">FileStream</span> <span class="pl-kos">{</span>
<span class="pl-c1">constructor</span><span class="pl-kos">(</span><span class="pl-s1">rid</span>: <span class="pl-smi">number</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">readonly</span> <span class="pl-c1">closed</span>: <span class="pl-smi">boolean</span><span class="pl-kos">;</span>
<span class="pl-k">readonly</span> <span class="pl-c1">rid</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-k">readonly</span> <span class="pl-c1">readable</span>: <span class="pl-smi">ReadableStream</span><span class="pl-kos"><</span><span class="pl-smi">Uint8Array</span><span class="pl-kos">></span><span class="pl-kos">;</span>
<span class="pl-c1">close</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">Promise</span><span class="pl-kos"><</span><span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">></span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">The <code class="notranslate">readable</code> should have a similar chunk queuing strategy to reading the body of a network request, in that it uses <code class="notranslate">"byte"</code> type and the <code class="notranslate">pull()</code> algorithm which provides back pressure on the stream.</p>
<h3 dir="auto">Considerations</h3>
<ul dir="auto">
<li>Security considerations should be returned as thrown errors form the <code class="notranslate">op_open_async</code> and be surfaced in a meaningful way. Because this builds upon the Fetch specification, any error condition, including security or non-found (for like a blob URL) return network errors.</li>
<li>Relative URLs are not supported. Determining a base is complex and is prone to a lot of issues. If we have an established standard around the <em>root</em> of a program, related to auto-discovery of a project configuration and have an established pattern around an implicit <code class="notranslate">window.location</code> and worker <code class="notranslate">.location</code>, then we could consider it, but using <code class="notranslate">import.meta.url</code> is the only viable near-term solution.</li>
<li>Additional features, like range requests, last modified headers, supporting <code class="notranslate">HEAD</code> requests, etc. could be added in the future. It feels appropriate to simply focus on a minimum-viable solution.</li>
<li>It is best to leave content-type up to the consumer, as it becomes an very opinionated thing to determine content-types based on extensions in the file system.</li>
<li>Unlike blobs, the <code class="notranslate">content-length</code> header is not set, as the implementation reads the file in a streaming fashion, meaning that the length of the content can change as the content is being read. Therefore consumers who need to "forward" the content length will need to calculate the length through some other mechanism. (Also, note that this header is not set on Firefox when fetching local files).</li>
</ul> | <p dir="auto">The global object currently surfaces the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="> this
{ Deno, denoMain, window, atob, btoa, fetch, clearTimeout, clearInterval,
setTimeout, setInterval, location, Blob, File, CustomEventInit, CustomEvent,
EventInit, Event, EventTarget, URL, URLSearchParams, Headers, FormData,
TextEncoder, TextDecoder, performance, onmessage, workerMain,
workerClose, postMessage, Worker }"><pre class="notranslate"><code class="notranslate">> this
{ Deno, denoMain, window, atob, btoa, fetch, clearTimeout, clearInterval,
setTimeout, setInterval, location, Blob, File, CustomEventInit, CustomEvent,
EventInit, Event, EventTarget, URL, URLSearchParams, Headers, FormData,
TextEncoder, TextDecoder, performance, onmessage, workerMain,
workerClose, postMessage, Worker }
</code></pre></div>
<p dir="auto">Since <code class="notranslate">fetch</code> uses the <code class="notranslate">Request</code> and <code class="notranslate">Response</code> interfaces, and those interfaces are often used along with fetch, those too should be surfaced (they are in Chrome, for example). The absence of these interfaces causes <a href="https://github.com/mhart/aws4fetch">aws4fetch</a> to fail with an <code class="notranslate">Uncaught ReferenceError: Request is not defined</code> error.</p> | 0 |
<p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">1.8.5</p>
<p dir="auto"><strong>Code</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="declare type ConstrainedString = "La première" | "La primera" | "The first";
function f(s : ConstrainedString) {
console.log(s);
}
f("La primera");
f("La première");
f("The first");
f("De eerste"); // Error message is here, as expected."><pre class="notranslate"><span class="pl-k">declare</span> <span class="pl-k">type</span> <span class="pl-smi">ConstrainedString</span> <span class="pl-c1">=</span> <span class="pl-s">"La première"</span> <span class="pl-c1">|</span> <span class="pl-s">"La primera"</span> <span class="pl-c1">|</span> <span class="pl-s">"The first"</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">s</span> : <span class="pl-smi">ConstrainedString</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">s</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">f</span><span class="pl-kos">(</span><span class="pl-s">"La primera"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">f</span><span class="pl-kos">(</span><span class="pl-s">"La première"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">f</span><span class="pl-kos">(</span><span class="pl-s">"The first"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">f</span><span class="pl-kos">(</span><span class="pl-s">"De eerste"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Error message is here, as expected.</span></pre></div>
<p dir="auto"><strong>Expected behavior:</strong></p>
<p dir="auto">The second sentence of the error message I see under Visual Studio Code doesn't seem to make sense, does it?<br>
<code class="notranslate">Argument of type '"De eerste"' is not assignable to parameter or type '"La première" | "La primera" | "The first"'. Type '"De eerste"' is not assignable to type "The first"'</code></p>
<p dir="auto">I wonder if I should not rather open this under VS Code.</p>
<p dir="auto"><strong>Actual behavior:</strong><br>
Removing that second sentence?</p> | <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface A {
a: number
}
interface B {
b: number
}
interface C {
c: number
}
interface D {
d: number
}
declare var c: C;
let abc: ((A | B) & C) | D = c;"><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-smi">number</span>
<span class="pl-kos">}</span>
<span class="pl-k">interface</span> <span class="pl-smi">B</span> <span class="pl-kos">{</span>
<span class="pl-c1">b</span>: <span class="pl-smi">number</span>
<span class="pl-kos">}</span>
<span class="pl-k">interface</span> <span class="pl-smi">C</span> <span class="pl-kos">{</span>
<span class="pl-c1">c</span>: <span class="pl-smi">number</span>
<span class="pl-kos">}</span>
<span class="pl-k">interface</span> <span class="pl-smi">D</span> <span class="pl-kos">{</span>
<span class="pl-c1">d</span>: <span class="pl-smi">number</span>
<span class="pl-kos">}</span>
<span class="pl-k">declare</span> <span class="pl-k">var</span> <span class="pl-s1">c</span>: <span class="pl-smi">C</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">abc</span>: <span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-smi">A</span> <span class="pl-c1">|</span> <span class="pl-smi">B</span><span class="pl-kos">)</span> <span class="pl-c1">&</span> <span class="pl-smi">C</span><span class="pl-kos">)</span> <span class="pl-c1">|</span> <span class="pl-smi">D</span> <span class="pl-c1">=</span> <span class="pl-s1">c</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Actual error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Type 'C' is not assignable to type '((A | B) & C) | D'.
Type 'C' is not assignable to type 'D'.
...."><pre class="notranslate"><code class="notranslate">Type 'C' is not assignable to type '((A | B) & C) | D'.
Type 'C' is not assignable to type 'D'.
....
</code></pre></div>
<p dir="auto">Expected error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Type 'C' is not assignable to any branch of the union type '((A | B) & C) | D'.
For example, type 'C' is not assignable to type 'D'.
...."><pre class="notranslate"><code class="notranslate">Type 'C' is not assignable to any branch of the union type '((A | B) & C) | D'.
For example, type 'C' is not assignable to type 'D'.
....
</code></pre></div>
<p dir="auto">Error reporting on unions doesn't mention that the compiler tried to assign the source to all branches of the target. Instead it proceeds to elaborate just the last branch's error. It should make it clear that the error elaboration is just one of several checks that failed.</p>
<p dir="auto">Otherwise it is easy to assume that the compiler <em>only</em> tried the last branch and somehow skipped the "more promising" branch (which ultimately also fails, but at least contains the source type).</p>
<p dir="auto">Based on one of the multiple issues reported by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Aleksey-Bykov/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Aleksey-Bykov">@Aleksey-Bykov</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="127548825" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/6538" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/6538/hovercard" href="https://github.com/microsoft/TypeScript/issues/6538">#6538</a>.</p> | 1 |
<p dir="auto">I am facing with problem when i need to update synonyms on my index dynamically. Solution is simple close index, update settings, open index. But issue is that if i provide less synonyms, then elastic search will change that items which i provide and leave other<br>
Steps to reproduce:<br>
PUT <a href="http://localhost:9200/test_index/" rel="nofollow">http://localhost:9200/test_index/</a></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"test_index" : {
"settings" : {
"index" : {
"creation_date" : "1417564655756",
"analysis" : {
"filter" : {
"stemmer" : {
"type" : "stemmer",
"language" : "danish"
},
"suggestions_shingle" : {
"min_shingle_size" : "2",
"max_shingle_size" : "5",
"type" : "shingle",
"filler_token" : ""
},
"spellcorrections" : {
"type" : "synonym",
"synonyms" : [ "incorrect1=>correct1", "otherword=>word2" ],
"expand" : "false"
},
"synonyms" : {
"type" : "synonym",
"expand" : "true",
"synonyms" : [ "synonym1, synonym2", "third, synthird", "and=>so on" ]
},
"stopwords" : {
"ignore_case" : "true",
"enable_position_increments" : "true",
"type" : "stop",
"stopwords" : [ "_danish_" ]
}
},
"analyzer" : {
"DidYouMeanAnalyzer" : {
"filter" : [ "lowercase", "stopwords", "synonyms" ],
"char_filter" : [ "html_strip" ],
"type" : "custom",
"tokenizer" : "standard"
},
"suggestions" : {
"filter" : [ "stopwords", "lowercase", "suggestions_shingle", "trim", "unique" ],
"char_filter" : [ "html_strip" ],
"type" : "custom",
"tokenizer" : "standard"
},
"default" : {
"filter" : [ "lowercase", "spellcorrections", "synonyms", "stopwords", "stemmer" ],
"char_filter" : [ "html_strip" ],
"type" : "custom",
"tokenizer" : "standard"
}
}
},
"number_of_shards" : "5",
"number_of_replicas" : "0",
"version" : {
"created" : "1040199"
},
"uuid" : "1NS67y_4S4qdEEk2_L2r5w"
}
}
}
}"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-s">"test_index"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"settings"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"index"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"creation_date"</span> : <span class="pl-s">"1417564655756"</span><span class="pl-kos">,</span>
<span class="pl-s">"analysis"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"filter"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"stemmer"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"type"</span> : <span class="pl-s">"stemmer"</span><span class="pl-kos">,</span>
<span class="pl-s">"language"</span> : <span class="pl-s">"danish"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"suggestions_shingle"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"min_shingle_size"</span> : <span class="pl-s">"2"</span><span class="pl-kos">,</span>
<span class="pl-s">"max_shingle_size"</span> : <span class="pl-s">"5"</span><span class="pl-kos">,</span>
<span class="pl-s">"type"</span> : <span class="pl-s">"shingle"</span><span class="pl-kos">,</span>
<span class="pl-s">"filler_token"</span> : <span class="pl-s">""</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"spellcorrections"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"type"</span> : <span class="pl-s">"synonym"</span><span class="pl-kos">,</span>
<span class="pl-s">"synonyms"</span> : <span class="pl-kos">[</span> <span class="pl-s">"incorrect1=>correct1"</span><span class="pl-kos">,</span> <span class="pl-s">"otherword=>word2"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"expand"</span> : <span class="pl-s">"false"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"synonyms"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"type"</span> : <span class="pl-s">"synonym"</span><span class="pl-kos">,</span>
<span class="pl-s">"expand"</span> : <span class="pl-s">"true"</span><span class="pl-kos">,</span>
<span class="pl-s">"synonyms"</span> : <span class="pl-kos">[</span> <span class="pl-s">"synonym1, synonym2"</span><span class="pl-kos">,</span> <span class="pl-s">"third, synthird"</span><span class="pl-kos">,</span> <span class="pl-s">"and=>so on"</span> <span class="pl-kos">]</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"stopwords"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"ignore_case"</span> : <span class="pl-s">"true"</span><span class="pl-kos">,</span>
<span class="pl-s">"enable_position_increments"</span> : <span class="pl-s">"true"</span><span class="pl-kos">,</span>
<span class="pl-s">"type"</span> : <span class="pl-s">"stop"</span><span class="pl-kos">,</span>
<span class="pl-s">"stopwords"</span> : <span class="pl-kos">[</span> <span class="pl-s">"_danish_"</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">"analyzer"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"DidYouMeanAnalyzer"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"filter"</span> : <span class="pl-kos">[</span> <span class="pl-s">"lowercase"</span><span class="pl-kos">,</span> <span class="pl-s">"stopwords"</span><span class="pl-kos">,</span> <span class="pl-s">"synonyms"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"char_filter"</span> : <span class="pl-kos">[</span> <span class="pl-s">"html_strip"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"type"</span> : <span class="pl-s">"custom"</span><span class="pl-kos">,</span>
<span class="pl-s">"tokenizer"</span> : <span class="pl-s">"standard"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"suggestions"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"filter"</span> : <span class="pl-kos">[</span> <span class="pl-s">"stopwords"</span><span class="pl-kos">,</span> <span class="pl-s">"lowercase"</span><span class="pl-kos">,</span> <span class="pl-s">"suggestions_shingle"</span><span class="pl-kos">,</span> <span class="pl-s">"trim"</span><span class="pl-kos">,</span> <span class="pl-s">"unique"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"char_filter"</span> : <span class="pl-kos">[</span> <span class="pl-s">"html_strip"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"type"</span> : <span class="pl-s">"custom"</span><span class="pl-kos">,</span>
<span class="pl-s">"tokenizer"</span> : <span class="pl-s">"standard"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"default"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"filter"</span> : <span class="pl-kos">[</span> <span class="pl-s">"lowercase"</span><span class="pl-kos">,</span> <span class="pl-s">"spellcorrections"</span><span class="pl-kos">,</span> <span class="pl-s">"synonyms"</span><span class="pl-kos">,</span> <span class="pl-s">"stopwords"</span><span class="pl-kos">,</span> <span class="pl-s">"stemmer"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"char_filter"</span> : <span class="pl-kos">[</span> <span class="pl-s">"html_strip"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"type"</span> : <span class="pl-s">"custom"</span><span class="pl-kos">,</span>
<span class="pl-s">"tokenizer"</span> : <span class="pl-s">"standard"</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">"number_of_shards"</span> : <span class="pl-s">"5"</span><span class="pl-kos">,</span>
<span class="pl-s">"number_of_replicas"</span> : <span class="pl-s">"0"</span><span class="pl-kos">,</span>
<span class="pl-s">"version"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"created"</span> : <span class="pl-s">"1040199"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"uuid"</span> : <span class="pl-s">"1NS67y_4S4qdEEk2_L2r5w"</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">POST <a href="http://localhost:9200/test_index/_close/" rel="nofollow">http://localhost:9200/test_index/_close/</a></p>
<p dir="auto">PUT <a href="http://localhost:9200/test_index/_settings" rel="nofollow">http://localhost:9200/test_index/_settings</a></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"test_index" : {
"settings" : {
"index" : {
"creation_date" : "1417564655756",
"analysis" : {
"filter" : {
"stemmer" : {
"type" : "stemmer",
"language" : "danish"
},
"suggestions_shingle" : {
"min_shingle_size" : "2",
"max_shingle_size" : "5",
"type" : "shingle",
"filler_token" : ""
},
"spellcorrections" : {
"type" : "synonym",
"synonyms" : [],
"expand" : "false"
},
"synonyms" : {
"type" : "synonym",
"expand" : "true",
"synonyms" : [ "test, test" ]
},
"stopwords" : {
"ignore_case" : "true",
"enable_position_increments" : "true",
"type" : "stop",
"stopwords" : [ "_danish_" ]
}
},
"analyzer" : {
"DidYouMeanAnalyzer" : {
"filter" : [ "lowercase", "stopwords", "synonyms" ],
"char_filter" : [ "html_strip" ],
"type" : "custom",
"tokenizer" : "standard"
},
"suggestions" : {
"filter" : [ "stopwords" ],
"char_filter" : [ "html_strip" ],
"type" : "custom",
"tokenizer" : "standard"
},
"default" : {
"filter" : [ "lowercase", "spellcorrections", "synonyms", "stopwords", "stemmer" ],
"char_filter" : [ "html_strip" ],
"type" : "custom",
"tokenizer" : "standard"
}
}
},
"number_of_shards" : "5",
"number_of_replicas" : "0",
"version" : {
"created" : "1040199"
},
"uuid" : "1NS67y_4S4qdEEk2_L2r5w"
}
}
}
}"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-s">"test_index"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"settings"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"index"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"creation_date"</span> : <span class="pl-s">"1417564655756"</span><span class="pl-kos">,</span>
<span class="pl-s">"analysis"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"filter"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"stemmer"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"type"</span> : <span class="pl-s">"stemmer"</span><span class="pl-kos">,</span>
<span class="pl-s">"language"</span> : <span class="pl-s">"danish"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"suggestions_shingle"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"min_shingle_size"</span> : <span class="pl-s">"2"</span><span class="pl-kos">,</span>
<span class="pl-s">"max_shingle_size"</span> : <span class="pl-s">"5"</span><span class="pl-kos">,</span>
<span class="pl-s">"type"</span> : <span class="pl-s">"shingle"</span><span class="pl-kos">,</span>
<span class="pl-s">"filler_token"</span> : <span class="pl-s">""</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"spellcorrections"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"type"</span> : <span class="pl-s">"synonym"</span><span class="pl-kos">,</span>
<span class="pl-s">"synonyms"</span> : <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"expand"</span> : <span class="pl-s">"false"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"synonyms"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"type"</span> : <span class="pl-s">"synonym"</span><span class="pl-kos">,</span>
<span class="pl-s">"expand"</span> : <span class="pl-s">"true"</span><span class="pl-kos">,</span>
<span class="pl-s">"synonyms"</span> : <span class="pl-kos">[</span> <span class="pl-s">"test, test"</span> <span class="pl-kos">]</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"stopwords"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"ignore_case"</span> : <span class="pl-s">"true"</span><span class="pl-kos">,</span>
<span class="pl-s">"enable_position_increments"</span> : <span class="pl-s">"true"</span><span class="pl-kos">,</span>
<span class="pl-s">"type"</span> : <span class="pl-s">"stop"</span><span class="pl-kos">,</span>
<span class="pl-s">"stopwords"</span> : <span class="pl-kos">[</span> <span class="pl-s">"_danish_"</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">"analyzer"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"DidYouMeanAnalyzer"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"filter"</span> : <span class="pl-kos">[</span> <span class="pl-s">"lowercase"</span><span class="pl-kos">,</span> <span class="pl-s">"stopwords"</span><span class="pl-kos">,</span> <span class="pl-s">"synonyms"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"char_filter"</span> : <span class="pl-kos">[</span> <span class="pl-s">"html_strip"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"type"</span> : <span class="pl-s">"custom"</span><span class="pl-kos">,</span>
<span class="pl-s">"tokenizer"</span> : <span class="pl-s">"standard"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"suggestions"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"filter"</span> : <span class="pl-kos">[</span> <span class="pl-s">"stopwords"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"char_filter"</span> : <span class="pl-kos">[</span> <span class="pl-s">"html_strip"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"type"</span> : <span class="pl-s">"custom"</span><span class="pl-kos">,</span>
<span class="pl-s">"tokenizer"</span> : <span class="pl-s">"standard"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"default"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"filter"</span> : <span class="pl-kos">[</span> <span class="pl-s">"lowercase"</span><span class="pl-kos">,</span> <span class="pl-s">"spellcorrections"</span><span class="pl-kos">,</span> <span class="pl-s">"synonyms"</span><span class="pl-kos">,</span> <span class="pl-s">"stopwords"</span><span class="pl-kos">,</span> <span class="pl-s">"stemmer"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"char_filter"</span> : <span class="pl-kos">[</span> <span class="pl-s">"html_strip"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"type"</span> : <span class="pl-s">"custom"</span><span class="pl-kos">,</span>
<span class="pl-s">"tokenizer"</span> : <span class="pl-s">"standard"</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">"number_of_shards"</span> : <span class="pl-s">"5"</span><span class="pl-kos">,</span>
<span class="pl-s">"number_of_replicas"</span> : <span class="pl-s">"0"</span><span class="pl-kos">,</span>
<span class="pl-s">"version"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"created"</span> : <span class="pl-s">"1040199"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"uuid"</span> : <span class="pl-s">"1NS67y_4S4qdEEk2_L2r5w"</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">POST <a href="http://localhost:9200/test_index/_open" rel="nofollow">http://localhost:9200/test_index/_open</a></p>
<p dir="auto">GET <a href="http://localhost:9200/test_index/_settings?pretty" rel="nofollow">http://localhost:9200/test_index/_settings?pretty</a></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"test_index" : {
"settings" : {
"index" : {
"creation_date" : "1417771048233",
"number_of_shards" : "5",
"test_index" : {
"settings" : {
"index" : {
"creation_date" : "1417564655756",
"analysis" : {
"filter" : {
"stemmer" : {
"type" : "stemmer",
"language" : "danish"
},
"suggestions_shingle" : {
"min_shingle_size" : "2",
"max_shingle_size" : "5",
"type" : "shingle",
"filler_token" : ""
},
"spellcorrections" : {
"type" : "synonym",
"synonyms" : [ "incorrect1=>correct1", "otherword=>word2" ],
"expand" : "false"
},
"synonyms" : {
"type" : "synonym",
"synonyms" : [ "test, test", "third, synthird", "and=>so on" ],
"expand" : "true"
},
"stopwords" : {
"ignore_case" : "true",
"enable_position_increments" : "true",
"type" : "stop",
"stopwords" : [ "_danish_" ]
}
},
"analyzer" : {
"DidYouMeanAnalyzer" : {
"filter" : [ "lowercase", "stopwords", "synonyms" ],
"char_filter" : [ "html_strip" ],
"type" : "custom",
"tokenizer" : "standard"
},
"suggestions" : {
"filter" : [ "stopwords", "lowercase", "suggestions_shingle", "trim", "unique" ],
"char_filter" : [ "html_strip" ],
"type" : "custom",
"tokenizer" : "standard"
},
"default" : {
"filter" : [ "lowercase", "spellcorrections", "synonyms", "stopwords", "stemmer" ],
"char_filter" : [ "html_strip" ],
"type" : "custom",
"tokenizer" : "standard"
}
}
},
"number_of_shards" : "5",
"version" : {
"created" : "1040199"
},
"uuid" : "1NS67y_4S4qdEEk2_L2r5w",
"number_of_replicas" : "0"
}
}
},
"number_of_replicas" : "0",
"version" : {
"created" : "1040199"
},
"uuid" : "fmWSN1gNQ-G0qpQz9AxG7A"
}
}
}
}"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-s">"test_index"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"settings"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"index"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"creation_date"</span> : <span class="pl-s">"1417771048233"</span><span class="pl-kos">,</span>
<span class="pl-s">"number_of_shards"</span> : <span class="pl-s">"5"</span><span class="pl-kos">,</span>
<span class="pl-s">"test_index"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"settings"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"index"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"creation_date"</span> : <span class="pl-s">"1417564655756"</span><span class="pl-kos">,</span>
<span class="pl-s">"analysis"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"filter"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"stemmer"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"type"</span> : <span class="pl-s">"stemmer"</span><span class="pl-kos">,</span>
<span class="pl-s">"language"</span> : <span class="pl-s">"danish"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"suggestions_shingle"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"min_shingle_size"</span> : <span class="pl-s">"2"</span><span class="pl-kos">,</span>
<span class="pl-s">"max_shingle_size"</span> : <span class="pl-s">"5"</span><span class="pl-kos">,</span>
<span class="pl-s">"type"</span> : <span class="pl-s">"shingle"</span><span class="pl-kos">,</span>
<span class="pl-s">"filler_token"</span> : <span class="pl-s">""</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"spellcorrections"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"type"</span> : <span class="pl-s">"synonym"</span><span class="pl-kos">,</span>
<span class="pl-s">"synonyms"</span> : <span class="pl-kos">[</span> <span class="pl-s">"incorrect1=>correct1"</span><span class="pl-kos">,</span> <span class="pl-s">"otherword=>word2"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"expand"</span> : <span class="pl-s">"false"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"synonyms"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"type"</span> : <span class="pl-s">"synonym"</span><span class="pl-kos">,</span>
<span class="pl-s">"synonyms"</span> : <span class="pl-kos">[</span> <span class="pl-s">"test, test"</span><span class="pl-kos">,</span> <span class="pl-s">"third, synthird"</span><span class="pl-kos">,</span> <span class="pl-s">"and=>so on"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"expand"</span> : <span class="pl-s">"true"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"stopwords"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"ignore_case"</span> : <span class="pl-s">"true"</span><span class="pl-kos">,</span>
<span class="pl-s">"enable_position_increments"</span> : <span class="pl-s">"true"</span><span class="pl-kos">,</span>
<span class="pl-s">"type"</span> : <span class="pl-s">"stop"</span><span class="pl-kos">,</span>
<span class="pl-s">"stopwords"</span> : <span class="pl-kos">[</span> <span class="pl-s">"_danish_"</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">"analyzer"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"DidYouMeanAnalyzer"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"filter"</span> : <span class="pl-kos">[</span> <span class="pl-s">"lowercase"</span><span class="pl-kos">,</span> <span class="pl-s">"stopwords"</span><span class="pl-kos">,</span> <span class="pl-s">"synonyms"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"char_filter"</span> : <span class="pl-kos">[</span> <span class="pl-s">"html_strip"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"type"</span> : <span class="pl-s">"custom"</span><span class="pl-kos">,</span>
<span class="pl-s">"tokenizer"</span> : <span class="pl-s">"standard"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"suggestions"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"filter"</span> : <span class="pl-kos">[</span> <span class="pl-s">"stopwords"</span><span class="pl-kos">,</span> <span class="pl-s">"lowercase"</span><span class="pl-kos">,</span> <span class="pl-s">"suggestions_shingle"</span><span class="pl-kos">,</span> <span class="pl-s">"trim"</span><span class="pl-kos">,</span> <span class="pl-s">"unique"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"char_filter"</span> : <span class="pl-kos">[</span> <span class="pl-s">"html_strip"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"type"</span> : <span class="pl-s">"custom"</span><span class="pl-kos">,</span>
<span class="pl-s">"tokenizer"</span> : <span class="pl-s">"standard"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"default"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"filter"</span> : <span class="pl-kos">[</span> <span class="pl-s">"lowercase"</span><span class="pl-kos">,</span> <span class="pl-s">"spellcorrections"</span><span class="pl-kos">,</span> <span class="pl-s">"synonyms"</span><span class="pl-kos">,</span> <span class="pl-s">"stopwords"</span><span class="pl-kos">,</span> <span class="pl-s">"stemmer"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"char_filter"</span> : <span class="pl-kos">[</span> <span class="pl-s">"html_strip"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"type"</span> : <span class="pl-s">"custom"</span><span class="pl-kos">,</span>
<span class="pl-s">"tokenizer"</span> : <span class="pl-s">"standard"</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">"number_of_shards"</span> : <span class="pl-s">"5"</span><span class="pl-kos">,</span>
<span class="pl-s">"version"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"created"</span> : <span class="pl-s">"1040199"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"uuid"</span> : <span class="pl-s">"1NS67y_4S4qdEEk2_L2r5w"</span><span class="pl-kos">,</span>
<span class="pl-s">"number_of_replicas"</span> : <span class="pl-s">"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-s">"number_of_replicas"</span> : <span class="pl-s">"0"</span><span class="pl-kos">,</span>
<span class="pl-s">"version"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"created"</span> : <span class="pl-s">"1040199"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"uuid"</span> : <span class="pl-s">"fmWSN1gNQ-G0qpQz9AxG7A"</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">As you see synonyms i expect to be just</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""synonyms" : [ "test, test" ]"><pre class="notranslate"><span class="pl-s">"synonyms"</span> : <span class="pl-kos">[</span> <span class="pl-s">"test, test"</span> <span class="pl-kos">]</span></pre></div>
<p dir="auto">and suggestions analyzer to have only one filter</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" "filter" : [ "stopwords" ],"><pre class="notranslate"> <span class="pl-s">"filter"</span> : <span class="pl-kos">[</span> <span class="pl-s">"stopwords"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span></pre></div> | <p dir="auto"><strong>Version 1.2.2</strong></p>
<p dir="auto">An elastic search instance is running with the following arguments:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/usr/lib/jvm/java-7-oracle/bin/java -Xms15g -Xmx15g -Xss256k -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.pidfile=/var/run/elasticsearch.pid -Des.path.home=/usr/share/elasticsearch -cp :/usr/share/elasticsearch/lib/elasticsearch-1.2.2.jar:/usr/share/elasticsearch/lib/*:/usr/share/elasticsearch/lib/sigar/* -Des.default.config=/etc/elasticsearch/elasticsearch.yml -Des.default.path.home=/usr/share/elasticsearch -Des.default.path.logs=/var/log/elasticsearch -Des.default.path.data=/var/lib/elasticsearch -Des.default.path.work=/tmp/elasticsearch -Des.default.path.conf=/etc/elasticsearch org.elasticsearch.bootstrap.Elasticsearch"><pre class="notranslate"><code class="notranslate">/usr/lib/jvm/java-7-oracle/bin/java -Xms15g -Xmx15g -Xss256k -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.pidfile=/var/run/elasticsearch.pid -Des.path.home=/usr/share/elasticsearch -cp :/usr/share/elasticsearch/lib/elasticsearch-1.2.2.jar:/usr/share/elasticsearch/lib/*:/usr/share/elasticsearch/lib/sigar/* -Des.default.config=/etc/elasticsearch/elasticsearch.yml -Des.default.path.home=/usr/share/elasticsearch -Des.default.path.logs=/var/log/elasticsearch -Des.default.path.data=/var/lib/elasticsearch -Des.default.path.work=/tmp/elasticsearch -Des.default.path.conf=/etc/elasticsearch org.elasticsearch.bootstrap.Elasticsearch
</code></pre></div>
<p dir="auto"><code class="notranslate">es.default.path.data</code> is coming from the deb package's init.d script.</p>
<p dir="auto">Inside the <code class="notranslate">elasticsearch.yml</code>, if we declare <code class="notranslate">path.data</code> as an array, we end up with 3 data directories according to ES.</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="path:
data:
- /var/lib/elasticsearch/data1
- /var/lib/elasticsearch/data2"><pre class="notranslate"><span class="pl-ent">path</span>:
<span class="pl-ent">data</span>:
- <span class="pl-s">/var/lib/elasticsearch/data1</span>
- <span class="pl-s">/var/lib/elasticsearch/data2</span></pre></div>
<p dir="auto">When ES runs, it now thinks there are 3 data directories. The one being set as default through the CLI arguments, plus the 2 new ones that were added in the config.</p>
<p dir="auto">According to <code class="notranslate">/_nodes/stats?all=true</code>, we have this (snipped to relevant parts):</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"nodes": {
"FOSlksI8ToK6G4YdIylYvQ": {
"fs": {
"data": [{
"path": "/var/lib/elasticsearch/home/nodes/0",
"mount": "/",
"dev": "/dev/sda6",
"total_in_bytes": 982560202752,
"free_in_bytes": 860723675136,
"available_in_bytes": 810788864000,
"disk_reads": 12402994,
"disk_writes": 14437097,
"disk_io_op": 26840091,
"disk_read_size_in_bytes": 364877214720,
"disk_write_size_in_bytes": 1342705430528,
"disk_io_size_in_bytes": 1707582645248,
"disk_queue": "2.4",
"disk_service_time": "2.1"
}, {
"path": "/var/lib/elasticsearch/data1/home/nodes/0",
"mount": "/var/lib/elasticsearch/data1",
"dev": "/dev/sdc1",
"total_in_bytes": 787239469056,
"free_in_bytes": 787167297536,
"available_in_bytes": 747154268160,
"disk_reads": 691,
"disk_writes": 49627,
"disk_io_op": 50318,
"disk_read_size_in_bytes": 2851840,
"disk_write_size_in_bytes": 12656103424,
"disk_io_size_in_bytes": 12658955264,
"disk_queue": "2.4",
"disk_service_time": "2.1"
}, {
"path": "/var/lib/elasticsearch/data2/home/nodes/0",
"mount": "/var/lib/elasticsearch/data2",
"dev": "/dev/sdd1",
"total_in_bytes": 787239469056,
"free_in_bytes": 787142717440,
"available_in_bytes": 747129688064,
"disk_reads": 9461,
"disk_writes": 883718,
"disk_io_op": 893179,
"disk_read_size_in_bytes": 39285760,
"disk_write_size_in_bytes": 174312841216,
"disk_io_size_in_bytes": 174352126976,
"disk_queue": "2.4",
"disk_service_time": "2.1"
}]
},
}
}
}"><pre class="notranslate">{
<span class="pl-ent">"nodes"</span>: {
<span class="pl-ent">"FOSlksI8ToK6G4YdIylYvQ"</span>: {
<span class="pl-ent">"fs"</span>: {
<span class="pl-ent">"data"</span>: [{
<span class="pl-ent">"path"</span>: <span class="pl-s"><span class="pl-pds">"</span>/var/lib/elasticsearch/home/nodes/0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"mount"</span>: <span class="pl-s"><span class="pl-pds">"</span>/<span class="pl-pds">"</span></span>,
<span class="pl-ent">"dev"</span>: <span class="pl-s"><span class="pl-pds">"</span>/dev/sda6<span class="pl-pds">"</span></span>,
<span class="pl-ent">"total_in_bytes"</span>: <span class="pl-c1">982560202752</span>,
<span class="pl-ent">"free_in_bytes"</span>: <span class="pl-c1">860723675136</span>,
<span class="pl-ent">"available_in_bytes"</span>: <span class="pl-c1">810788864000</span>,
<span class="pl-ent">"disk_reads"</span>: <span class="pl-c1">12402994</span>,
<span class="pl-ent">"disk_writes"</span>: <span class="pl-c1">14437097</span>,
<span class="pl-ent">"disk_io_op"</span>: <span class="pl-c1">26840091</span>,
<span class="pl-ent">"disk_read_size_in_bytes"</span>: <span class="pl-c1">364877214720</span>,
<span class="pl-ent">"disk_write_size_in_bytes"</span>: <span class="pl-c1">1342705430528</span>,
<span class="pl-ent">"disk_io_size_in_bytes"</span>: <span class="pl-c1">1707582645248</span>,
<span class="pl-ent">"disk_queue"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.4<span class="pl-pds">"</span></span>,
<span class="pl-ent">"disk_service_time"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.1<span class="pl-pds">"</span></span>
}, {
<span class="pl-ent">"path"</span>: <span class="pl-s"><span class="pl-pds">"</span>/var/lib/elasticsearch/data1/home/nodes/0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"mount"</span>: <span class="pl-s"><span class="pl-pds">"</span>/var/lib/elasticsearch/data1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"dev"</span>: <span class="pl-s"><span class="pl-pds">"</span>/dev/sdc1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"total_in_bytes"</span>: <span class="pl-c1">787239469056</span>,
<span class="pl-ent">"free_in_bytes"</span>: <span class="pl-c1">787167297536</span>,
<span class="pl-ent">"available_in_bytes"</span>: <span class="pl-c1">747154268160</span>,
<span class="pl-ent">"disk_reads"</span>: <span class="pl-c1">691</span>,
<span class="pl-ent">"disk_writes"</span>: <span class="pl-c1">49627</span>,
<span class="pl-ent">"disk_io_op"</span>: <span class="pl-c1">50318</span>,
<span class="pl-ent">"disk_read_size_in_bytes"</span>: <span class="pl-c1">2851840</span>,
<span class="pl-ent">"disk_write_size_in_bytes"</span>: <span class="pl-c1">12656103424</span>,
<span class="pl-ent">"disk_io_size_in_bytes"</span>: <span class="pl-c1">12658955264</span>,
<span class="pl-ent">"disk_queue"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.4<span class="pl-pds">"</span></span>,
<span class="pl-ent">"disk_service_time"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.1<span class="pl-pds">"</span></span>
}, {
<span class="pl-ent">"path"</span>: <span class="pl-s"><span class="pl-pds">"</span>/var/lib/elasticsearch/data2/home/nodes/0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"mount"</span>: <span class="pl-s"><span class="pl-pds">"</span>/var/lib/elasticsearch/data2<span class="pl-pds">"</span></span>,
<span class="pl-ent">"dev"</span>: <span class="pl-s"><span class="pl-pds">"</span>/dev/sdd1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"total_in_bytes"</span>: <span class="pl-c1">787239469056</span>,
<span class="pl-ent">"free_in_bytes"</span>: <span class="pl-c1">787142717440</span>,
<span class="pl-ent">"available_in_bytes"</span>: <span class="pl-c1">747129688064</span>,
<span class="pl-ent">"disk_reads"</span>: <span class="pl-c1">9461</span>,
<span class="pl-ent">"disk_writes"</span>: <span class="pl-c1">883718</span>,
<span class="pl-ent">"disk_io_op"</span>: <span class="pl-c1">893179</span>,
<span class="pl-ent">"disk_read_size_in_bytes"</span>: <span class="pl-c1">39285760</span>,
<span class="pl-ent">"disk_write_size_in_bytes"</span>: <span class="pl-c1">174312841216</span>,
<span class="pl-ent">"disk_io_size_in_bytes"</span>: <span class="pl-c1">174352126976</span>,
<span class="pl-ent">"disk_queue"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.4<span class="pl-pds">"</span></span>,
<span class="pl-ent">"disk_service_time"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.1<span class="pl-pds">"</span></span>
}]
},
}
}
}</pre></div>
<p dir="auto">And if we look at <code class="notranslate">/_nodes</code> we see what the raw settings are:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"nodes": {
"FOSlksI8ToK6G4YdIylYvQ": {
"settings": {
"path": {
"data": "/var/lib/elasticsearch",
"work": "/tmp/elasticsearch",
"home": "/usr/share/elasticsearch",
"conf": "/etc/elasticsearch",
"logs": "/var/log/elasticsearch",
"data.0": "/var/lib/elasticsearch/data1",
"data.1": "/var/lib/elasticsearch/data2"
}
}
}
}
}"><pre class="notranslate">{
<span class="pl-ent">"nodes"</span>: {
<span class="pl-ent">"FOSlksI8ToK6G4YdIylYvQ"</span>: {
<span class="pl-ent">"settings"</span>: {
<span class="pl-ent">"path"</span>: {
<span class="pl-ent">"data"</span>: <span class="pl-s"><span class="pl-pds">"</span>/var/lib/elasticsearch<span class="pl-pds">"</span></span>,
<span class="pl-ent">"work"</span>: <span class="pl-s"><span class="pl-pds">"</span>/tmp/elasticsearch<span class="pl-pds">"</span></span>,
<span class="pl-ent">"home"</span>: <span class="pl-s"><span class="pl-pds">"</span>/usr/share/elasticsearch<span class="pl-pds">"</span></span>,
<span class="pl-ent">"conf"</span>: <span class="pl-s"><span class="pl-pds">"</span>/etc/elasticsearch<span class="pl-pds">"</span></span>,
<span class="pl-ent">"logs"</span>: <span class="pl-s"><span class="pl-pds">"</span>/var/log/elasticsearch<span class="pl-pds">"</span></span>,
<span class="pl-ent">"data.0"</span>: <span class="pl-s"><span class="pl-pds">"</span>/var/lib/elasticsearch/data1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"data.1"</span>: <span class="pl-s"><span class="pl-pds">"</span>/var/lib/elasticsearch/data2<span class="pl-pds">"</span></span>
}
}
}
}
}</pre></div>
<p dir="auto">So in this case, we see that there are 3 different data keys according to settings, and 3 different data directories. A <strong>data</strong>, <strong>data.0</strong> and <strong>data.1</strong>.</p>
<p dir="auto">Now, if we declare in our yaml, <strong>data</strong> as just a comma separated as a string, this does the correct behavior and overrides what the default was.</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="path:
data: /var/lib/elasticsearch/data1,/var/lib/elasticsearch/data2"><pre class="notranslate"><span class="pl-ent">path</span>:
<span class="pl-ent">data</span>: <span class="pl-s">/var/lib/elasticsearch/data1,/var/lib/elasticsearch/data2</span></pre></div>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" "data": [{
"path": "/var/lib/elasticsearch/data1/home/nodes/0",
"mount": "/var/lib/elasticsearch/data1",
"dev": "/dev/sdc1",
"total_in_bytes": 787239469056,
"free_in_bytes": 787167391744,
"available_in_bytes": 747154362368,
"disk_reads": 687,
"disk_writes": 49803,
"disk_io_op": 50490,
"disk_read_size_in_bytes": 2835456,
"disk_write_size_in_bytes": 12657053696,
"disk_io_size_in_bytes": 12659889152,
"disk_queue": "0",
"disk_service_time": "0"
}, {
"path": "/var/lib/elasticsearch/data2/home/nodes/0",
"mount": "/var/lib/elasticsearch/data2",
"dev": "/dev/sdd1",
"total_in_bytes": 787239469056,
"free_in_bytes": 787167391744,
"available_in_bytes": 747154362368,
"disk_reads": 3436,
"disk_writes": 684613,
"disk_io_op": 688049,
"disk_read_size_in_bytes": 14308352,
"disk_write_size_in_bytes": 132454891520,
"disk_io_size_in_bytes": 132469199872,
"disk_queue": "0",
"disk_service_time": "0"
}]"><pre class="notranslate"> <span class="pl-ent">"data"</span>: [{
<span class="pl-ent">"path"</span>: <span class="pl-s"><span class="pl-pds">"</span>/var/lib/elasticsearch/data1/home/nodes/0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"mount"</span>: <span class="pl-s"><span class="pl-pds">"</span>/var/lib/elasticsearch/data1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"dev"</span>: <span class="pl-s"><span class="pl-pds">"</span>/dev/sdc1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"total_in_bytes"</span>: <span class="pl-c1">787239469056</span>,
<span class="pl-ent">"free_in_bytes"</span>: <span class="pl-c1">787167391744</span>,
<span class="pl-ent">"available_in_bytes"</span>: <span class="pl-c1">747154362368</span>,
<span class="pl-ent">"disk_reads"</span>: <span class="pl-c1">687</span>,
<span class="pl-ent">"disk_writes"</span>: <span class="pl-c1">49803</span>,
<span class="pl-ent">"disk_io_op"</span>: <span class="pl-c1">50490</span>,
<span class="pl-ent">"disk_read_size_in_bytes"</span>: <span class="pl-c1">2835456</span>,
<span class="pl-ent">"disk_write_size_in_bytes"</span>: <span class="pl-c1">12657053696</span>,
<span class="pl-ent">"disk_io_size_in_bytes"</span>: <span class="pl-c1">12659889152</span>,
<span class="pl-ent">"disk_queue"</span>: <span class="pl-s"><span class="pl-pds">"</span>0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"disk_service_time"</span>: <span class="pl-s"><span class="pl-pds">"</span>0<span class="pl-pds">"</span></span>
}, {
<span class="pl-ent">"path"</span>: <span class="pl-s"><span class="pl-pds">"</span>/var/lib/elasticsearch/data2/home/nodes/0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"mount"</span>: <span class="pl-s"><span class="pl-pds">"</span>/var/lib/elasticsearch/data2<span class="pl-pds">"</span></span>,
<span class="pl-ent">"dev"</span>: <span class="pl-s"><span class="pl-pds">"</span>/dev/sdd1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"total_in_bytes"</span>: <span class="pl-c1">787239469056</span>,
<span class="pl-ent">"free_in_bytes"</span>: <span class="pl-c1">787167391744</span>,
<span class="pl-ent">"available_in_bytes"</span>: <span class="pl-c1">747154362368</span>,
<span class="pl-ent">"disk_reads"</span>: <span class="pl-c1">3436</span>,
<span class="pl-ent">"disk_writes"</span>: <span class="pl-c1">684613</span>,
<span class="pl-ent">"disk_io_op"</span>: <span class="pl-c1">688049</span>,
<span class="pl-ent">"disk_read_size_in_bytes"</span>: <span class="pl-c1">14308352</span>,
<span class="pl-ent">"disk_write_size_in_bytes"</span>: <span class="pl-c1">132454891520</span>,
<span class="pl-ent">"disk_io_size_in_bytes"</span>: <span class="pl-c1">132469199872</span>,
<span class="pl-ent">"disk_queue"</span>: <span class="pl-s"><span class="pl-pds">"</span>0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"disk_service_time"</span>: <span class="pl-s"><span class="pl-pds">"</span>0<span class="pl-pds">"</span></span>
}]</pre></div>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" "path": {
"data": "/var/lib/elasticsearch/data1,/var/lib/elasticsearch/data2",
"work": "/tmp/elasticsearch",
"home": "/usr/share/elasticsearch",
"conf": "/etc/elasticsearch",
"logs": "/var/log/elasticsearch"
},"><pre class="notranslate"> <span class="pl-ent">"path"</span>: {
<span class="pl-ent">"data"</span>: <span class="pl-s"><span class="pl-pds">"</span>/var/lib/elasticsearch/data1,/var/lib/elasticsearch/data2<span class="pl-pds">"</span></span>,
<span class="pl-ent">"work"</span>: <span class="pl-s"><span class="pl-pds">"</span>/tmp/elasticsearch<span class="pl-pds">"</span></span>,
<span class="pl-ent">"home"</span>: <span class="pl-s"><span class="pl-pds">"</span>/usr/share/elasticsearch<span class="pl-pds">"</span></span>,
<span class="pl-ent">"conf"</span>: <span class="pl-s"><span class="pl-pds">"</span>/etc/elasticsearch<span class="pl-pds">"</span></span>,
<span class="pl-ent">"logs"</span>: <span class="pl-s"><span class="pl-pds">"</span>/var/log/elasticsearch<span class="pl-pds">"</span></span>
},</pre></div>
<p dir="auto">So the behavior that we're seeing is that the data array is being flattened into a list, and them being appended to the default. Whereas I'd expect this new list to override the default.</p>
<p dir="auto">I feel that the problem here is that data can be declared both as a string and as a list. It may be more <em>correct</em> if data were always a list internally, and when declaring as a string, it's coerced into a list, even if that list had one item. But I'm not proposing the solution, just a thought.</p>
<p dir="auto">I understand that this may not necessarily be a bug, but it is extremely unexpected behavior and took quite a bit of debugging to track down exactly what was going on.</p> | 1 |
<p dir="auto">THREE.SkinnedMesh currently does not work with THREE.BufferGeometry geometries. In <a href="https://github.com/mrdoob/three.js/blob/b062fee8668c1fc07e4d6af40ccfa592a7c4c677/src/objects/SkinnedMesh.js#L219">THREE.SkinnedMesh.prototype.pose</a>, the mesh assumes <code class="notranslate">geometry.skinIndices</code> exists and goes on normalizing elements of that array. Skipping this part if there is no such array (assuming buffer geometry skinning data is already normalized) makes SkinnedMesh work with BufferGeometry.</p>
<p dir="auto">However, there is a problem if the skinned mesh consists of multiple materials: THREE.BufferGeometry does not work with THREE.MeshFaceMaterial. One could</p>
<ul dir="auto">
<li>Split the original mesh into multiple meshes, each with its own BufferGeometry. However, each mesh would then have to duplicate the skeleton bones and play back its own animation.</li>
<li>Make THREE.BufferGeometry somehow work with THREE.MeshFaceMaterial, maybe with each chunk having its own material. I have no idea how to do this.</li>
<li>Move the skeleton/bones code from SkinnedMesh into a separate THREE.Skeleton class and share that skeleton among meshes. I would prefer this, but maybe it's too complex to use.</li>
</ul>
<p dir="auto">Are there any plans for or opinions on one of the above ideas?</p> | <p dir="auto"><code class="notranslate">WebGLDeferredRenderer</code> is currently unmaintained and broken. Unless someone steps in and manages to fix it I think I'll have to remove it...</p>
<p dir="auto">Any takers?</p> | 0 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=hneiper" rel="nofollow">Harold Neiper</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2764?redirect=false" rel="nofollow">SPR-2764</a></strong> and commented</p>
<p dir="auto">I was wondering if there was already schema support for SimpleUrlHandlerMapping so started searching before I did it myself. Anyhow came across the fisheye site at this url:<br>
<a href="http://fisheye1.cenqua.com/browse/springframework/spring/src/org/springframework/web/servlet/config" rel="nofollow">http://fisheye1.cenqua.com/browse/springframework/spring/src/org/springframework/web/servlet/config</a></p>
<p dir="auto">And what I found interested me in that the "extensible xml authoring" was already there for this handler mapping type. (Thinking to myself - sweet!) However, I am unable to find these files and schemas in the final release of 2.0. Am I missing something or were they just not released or wont be released?</p>
<p dir="auto">Thanks, Harold Neiper</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0 final</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398063667" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/6422" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/6422/hovercard" href="https://github.com/spring-projects/spring-framework/issues/6422">#6422</a> Add schema for web configuration (handler mappings) (<em><strong>"duplicates"</strong></em>)</li>
</ul> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=cbeams" rel="nofollow">Chris Beams</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8347?redirect=false" rel="nofollow">SPR-8347</a></strong> and commented</p>
<p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398110909" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12734" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12734/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12734">#12734</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398111372" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12826" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12826/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12826">#12826</a>.</p>
<p dir="auto">Original commit (and comment) for ExtendedBeanInfo: <a href="https://github.com/cbeams/spring-framework/commit/1271acb8eb264f05729ccfa2dc30737c26eeb818">https://github.com/cbeams/spring-framework/commit/1271acb8eb264f05729ccfa2dc30737c26eeb818</a></p>
<p dir="auto">Related commit and comment fixing a small bug with the implementation: <a href="https://github.com/cbeams/spring-framework/commit/8dedf111bcf08af967c2de00b3e1ee4e99979533">https://github.com/cbeams/spring-framework/commit/8dedf111bcf08af967c2de00b3e1ee4e99979533</a></p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1 M1</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398116864" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13698" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13698/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13698">#13698</a> Concurrent problem with BeanWrapperImpl.getPropertyValue (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398111372" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12826" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12826/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12826">#12826</a> ExtendedBeanInfo Passes Empty Property Name to PropertyDescriptor Causing IntrospectionException: bad property name</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398155112" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14663" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14663/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14663">#14663</a> Overhaul non-void JavaBean write method support</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398115291" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13448" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13448/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13448">#13448</a> ExtendedBeanInfo raises 'type mismatch' error with covariant property types</li>
</ul>
<p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/4a8be690998f43a9253305e09f96ad83058ef540/hovercard" href="https://github.com/spring-projects/spring-framework/commit/4a8be690998f43a9253305e09f96ad83058ef540"><tt>4a8be69</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/0ee12563b038797a137ac67b13e5dd6d3d918a7f/hovercard" href="https://github.com/spring-projects/spring-framework/commit/0ee12563b038797a137ac67b13e5dd6d3d918a7f"><tt>0ee1256</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/17cf465d239605632fee99d8c869ea5fd0bee14c/hovercard" href="https://github.com/spring-projects/spring-framework/commit/17cf465d239605632fee99d8c869ea5fd0bee14c"><tt>17cf465</tt></a></p>
<p dir="auto">0 votes, 5 watchers</p> | 0 |
<p dir="auto">This has failed multiple times already:</p>
<p dir="auto">config_test.go:119: Expected []api.Endpoints{api.Endpoints{TypeMeta:unversioned.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:api.ObjectMeta{Name:"bar", GenerateName:"", Namespace:"testnamespace", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:unversioned.Time{Time:time.Time{sec:0, nsec:0, loc:(_time.Location)(nil)}}, DeletionTimestamp:(_unversioned.Time)(nil), DeletionGracePeriodSeconds:(_int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil)}, Subsets:[]api.EndpointSubset{api.EndpointSubset{Addresses:[]api.EndpointAddress{api.EndpointAddress{IP:"3.3.3.3", TargetRef:(_api.ObjectReference)(nil)}, api.EndpointAddress{IP:"4.4.4.4", TargetRef:(_api.ObjectReference)(nil)}}, NotReadyAddresses:[]api.EndpointAddress(nil), Ports:[]api.EndpointPort{api.EndpointPort{Name:"", Port:80, Protocol:""}}}}}, api.Endpoints{TypeMeta:unversioned.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:api.ObjectMeta{Name:"foo", GenerateName:"", Namespace:"testnamespace", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:unversioned.Time{Time:time.Time{sec:0, nsec:0, loc:(_time.Location)(nil)}}, DeletionTimestamp:(_unversioned.Time)(nil), DeletionGracePeriodSeconds:(_int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil)}, Subsets:[]api.EndpointSubset{api.EndpointSubset{Addresses:[]api.EndpointAddress{api.EndpointAddress{IP:"1.1.1.1", TargetRef:(_api.ObjectReference)(nil)}, api.EndpointAddress{IP:"2.2.2.2", TargetRef:(_api.ObjectReference)(nil)}}, NotReadyAddresses:[]api.EndpointAddress(nil), Ports:[]api.EndpointPort{api.EndpointPort{Name:"", Port:80, Protocol:""}}}}}, api.Endpoints{TypeMeta:unversioned.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:api.ObjectMeta{Name:"foobar", GenerateName:"", Namespace:"testnamespace", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:unversioned.Time{Time:time.Time{sec:0, nsec:0, loc:(_time.Location)(nil)}}, DeletionTimestamp:(_unversioned.Time)(nil), DeletionGracePeriodSeconds:(_int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil)}, Subsets:[]api.EndpointSubset{api.EndpointSubset{Addresses:[]api.EndpointAddress{api.EndpointAddress{IP:"5.5.5.5", TargetRef:(_api.ObjectReference)(nil)}, api.EndpointAddress{IP:"6.6.6.6", TargetRef:(_api.ObjectReference)(nil)}}, NotReadyAddresses:[]api.EndpointAddress(nil), Ports:[]api.EndpointPort{api.EndpointPort{Name:"", Port:80, Protocol:""}}}}}}, Got []api.Endpoints(nil) config_test.go:119: Expected []api.Endpoints{api.Endpoints{TypeMeta:unversioned.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:api.ObjectMeta{Name:"bar", GenerateName:"", Namespace:"testnamespace", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:unversioned.Time{Time:time.Time{sec:0, nsec:0, loc:(_time.Location)(nil)}}, DeletionTimestamp:(_unversioned.Time)(nil), DeletionGracePeriodSeconds:(_int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil)}, Subsets:[]api.EndpointSubset{api.EndpointSubset{Addresses:[]api.EndpointAddress{api.EndpointAddress{IP:"3.3.3.3", TargetRef:(_api.ObjectReference)(nil)}, api.EndpointAddress{IP:"4.4.4.4", TargetRef:(_api.ObjectReference)(nil)}}, NotReadyAddresses:[]api.EndpointAddress(nil), Ports:[]api.EndpointPort{api.EndpointPort{Name:"", Port:80, Protocol:""}}}}}, api.Endpoints{TypeMeta:unversioned.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:api.ObjectMeta{Name:"foo", GenerateName:"", Namespace:"testnamespace", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:unversioned.Time{Time:time.Time{sec:0, nsec:0, loc:(_time.Location)(nil)}}, DeletionTimestamp:(_unversioned.Time)(nil), DeletionGracePeriodSeconds:(_int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil)}, Subsets:[]api.EndpointSubset{api.EndpointSubset{Addresses:[]api.EndpointAddress{api.EndpointAddress{IP:"1.1.1.1", TargetRef:(_api.ObjectReference)(nil)}, api.EndpointAddress{IP:"2.2.2.2", TargetRef:(_api.ObjectReference)(nil)}}, NotReadyAddresses:[]api.EndpointAddress(nil), Ports:[]api.EndpointPort{api.EndpointPort{Name:"", Port:80, Protocol:""}}}}}, api.Endpoints{TypeMeta:unversioned.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:api.ObjectMeta{Name:"foobar", GenerateName:"", Namespace:"testnamespace", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:unversioned.Time{Time:time.Time{sec:0, nsec:0, loc:(_time.Location)(nil)}}, DeletionTimestamp:(_unversioned.Time)(nil), DeletionGracePeriodSeconds:(_int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil)}, Subsets:[]api.EndpointSubset{api.EndpointSubset{Addresses:[]api.EndpointAddress{api.EndpointAddress{IP:"5.5.5.5", TargetRef:(_api.ObjectReference)(nil)}, api.EndpointAddress{IP:"6.6.6.6", TargetRef:(_api.ObjectReference)(nil)}}, NotReadyAddresses:[]api.EndpointAddress(nil), Ports:[]api.EndpointPort{api.EndpointPort{Name:"", Port:80, Protocol:""}}}}}}, Got []api.Endpoints(nil) config_test.go:119: Expected []api.Endpoints{api.Endpoints{TypeMeta:unversioned.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:api.ObjectMeta{Name:"bar", GenerateName:"", Namespace:"testnamespace", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:unversioned.Time{Time:time.Time{sec:0, nsec:0, loc:(_time.Location)(nil)}}, DeletionTimestamp:(_unversioned.Time)(nil), DeletionGracePeriodSeconds:(_int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil)}, Subsets:[]api.EndpointSubset{api.EndpointSubset{Addresses:[]api.EndpointAddress{api.EndpointAddress{IP:"3.3.3.3", TargetRef:(_api.ObjectReference)(nil)}, api.EndpointAddress{IP:"4.4.4.4", TargetRef:(_api.ObjectReference)(nil)}}, NotReadyAddresses:[]api.EndpointAddress(nil), Ports:[]api.EndpointPort{api.EndpointPort{Name:"", Port:80, Protocol:""}}}}}, api.Endpoints{TypeMeta:unversioned.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:api.ObjectMeta{Name:"foo", GenerateName:"", Namespace:"testnamespace", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:unversioned.Time{Time:time.Time{sec:0, nsec:0, loc:(_time.Location)(nil)}}, DeletionTimestamp:(_unversioned.Time)(nil), DeletionGracePeriodSeconds:(_int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil)}, Subsets:[]api.EndpointSubset{api.EndpointSubset{Addresses:[]api.EndpointAddress{api.EndpointAddress{IP:"7.7.7.7", TargetRef:(_api.ObjectReference)(nil)}}, NotReadyAddresses:[]api.EndpointAddress(nil), Ports:[]api.EndpointPort{api.EndpointPort{Name:"", Port:80, Protocol:""}}}}}, api.Endpoints{TypeMeta:unversioned.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:api.ObjectMeta{Name:"foobar", GenerateName:"", Namespace:"testnamespace", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:unversioned.Time{Time:time.Time{sec:0, nsec:0, loc:(_time.Location)(nil)}}, DeletionTimestamp:(_unversioned.Time)(nil), DeletionGracePeriodSeconds:(_int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil)}, Subsets:[]api.EndpointSubset{api.EndpointSubset{Addresses:[]api.EndpointAddress{api.EndpointAddress{IP:"5.5.5.5", TargetRef:(_api.ObjectReference)(nil)}, api.EndpointAddress{IP:"6.6.6.6", TargetRef:(_api.ObjectReference)(nil)}}, NotReadyAddresses:[]api.EndpointAddress(nil), Ports:[]api.EndpointPort{api.EndpointPort{Name:"", Port:80, Protocol:""}}}}}}, Got []api.Endpoints(nil) config_test.go:119: Expected []api.Endpoints{api.Endpoints{TypeMeta:unversioned.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:api.ObjectMeta{Name:"bar", GenerateName:"", Namespace:"testnamespace", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:unversioned.Time{Time:time.Time{sec:0, nsec:0, loc:(_time.Location)(nil)}}, DeletionTimestamp:(_unversioned.Time)(nil), DeletionGracePeriodSeconds:(_int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil)}, Subsets:[]api.EndpointSubset{api.EndpointSubset{Addresses:[]api.EndpointAddress{api.EndpointAddress{IP:"3.3.3.3", TargetRef:(_api.ObjectReference)(nil)}, api.EndpointAddress{IP:"4.4.4.4", TargetRef:(_api.ObjectReference)(nil)}}, NotReadyAddresses:[]api.EndpointAddress(nil), Ports:[]api.EndpointPort{api.EndpointPort{Name:"", Port:80, Protocol:""}}}}}, api.Endpoints{TypeMeta:unversioned.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:api.ObjectMeta{Name:"foo", GenerateName:"", Namespace:"testnamespace", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:unversioned.Time{Time:time.Time{sec:0, nsec:0, loc:(_time.Location)(nil)}}, DeletionTimestamp:(_unversioned.Time)(nil), DeletionGracePeriodSeconds:(_int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil)}, Subsets:[]api.EndpointSubset{api.EndpointSubset{Addresses:[]api.EndpointAddress{api.EndpointAddress{IP:"7.7.7.7", TargetRef:(_api.ObjectReference)(nil)}}, NotReadyAddresses:[]api.EndpointAddress(nil), Ports:[]api.EndpointPort{api.EndpointPort{Name:"", Port:80, Protocol:""}}}}}, api.Endpoints{TypeMeta:unversioned.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:api.ObjectMeta{Name:"foobar", GenerateName:"", Namespace:"testnamespace", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:unversioned.Time{Time:time.Time{sec:0, nsec:0, loc:(_time.Location)(nil)}}, DeletionTimestamp:(_unversioned.Time)(nil), DeletionGracePeriodSeconds:(_int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil)}, Subsets:[]api.EndpointSubset{api.EndpointSubset{Addresses:[]api.EndpointAddress{api.EndpointAddress{IP:"5.5.5.5", TargetRef:(_api.ObjectReference)(nil)}, api.EndpointAddress{IP:"6.6.6.6", TargetRef:(_api.ObjectReference)(nil)}}, NotReadyAddresses:[]api.EndpointAddress(nil), Ports:[]api.EndpointPort{api.EndpointPort{Name:"", Port:80, Protocol:""}}}}}}, Got []api.Endpoints(nil) config_test.go:119: Expected []api.Endpoints{api.Endpoints{TypeMeta:unversioned.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:api.ObjectMeta{Name:"foo", GenerateName:"", Namespace:"testnamespace", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:unversioned.Time{Time:time.Time{sec:0, nsec:0, loc:(_time.Location)(nil)}}, DeletionTimestamp:(_unversioned.Time)(nil), DeletionGracePeriodSeconds:(_int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil)}, Subsets:[]api.EndpointSubset{api.EndpointSubset{Addresses:[]api.EndpointAddress{api.EndpointAddress{IP:"7.7.7.7", TargetRef:(_api.ObjectReference)(nil)}}, NotReadyAddresses:[]api.EndpointAddress(nil), Ports:[]api.EndpointPort{api.EndpointPort{Name:"", Port:80, Protocol:""}}}}}, api.Endpoints{TypeMeta:unversioned.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:api.ObjectMeta{Name:"foobar", GenerateName:"", Namespace:"testnamespace", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:unversioned.Time{Time:time.Time{sec:0, nsec:0, loc:(_time.Location)(nil)}}, DeletionTimestamp:(_unversioned.Time)(nil), DeletionGracePeriodSeconds:(_int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil)}, Subsets:[]api.EndpointSubset{api.EndpointSubset{Addresses:[]api.EndpointAddress{api.EndpointAddress{IP:"5.5.5.5", TargetRef:(_api.ObjectReference)(nil)}, api.EndpointAddress{IP:"6.6.6.6", TargetRef:(_api.ObjectReference)(nil)}}, NotReadyAddresses:[]api.EndpointAddress(nil), Ports:[]api.EndpointPort{api.EndpointPort{Name:"", Port:80, Protocol:""}}}}}}, Got []api.Endpoints(nil) config_test.go:119: Expected []api.Endpoints{api.Endpoints{TypeMeta:unversioned.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:api.ObjectMeta{Name:"foo", GenerateName:"", Namespace:"testnamespace", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:unversioned.Time{Time:time.Time{sec:0, nsec:0, loc:(_time.Location)(nil)}}, DeletionTimestamp:(_unversioned.Time)(nil), DeletionGracePeriodSeconds:(_int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil)}, Subsets:[]api.EndpointSubset{api.EndpointSubset{Addresses:[]api.EndpointAddress{api.EndpointAddress{IP:"7.7.7.7", TargetRef:(_api.ObjectReference)(nil)}}, NotReadyAddresses:[]api.EndpointAddress(nil), Ports:[]api.EndpointPort{api.EndpointPort{Name:"", Port:80, Protocol:""}}}}}, api.Endpoints{TypeMeta:unversioned.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:api.ObjectMeta{Name:"foobar", GenerateName:"", Namespace:"testnamespace", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:unversioned.Time{Time:time.Time{sec:0, nsec:0, loc:(_time.Location)(nil)}}, DeletionTimestamp:(_unversioned.Time)(nil), DeletionGracePeriodSeconds:(_int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil)}, Subsets:[]api.EndpointSubset{api.EndpointSubset{Addresses:[]api.EndpointAddress{api.EndpointAddress{IP:"5.5.5.5", TargetRef:(_api.ObjectReference)(nil)}, api.EndpointAddress{IP:"6.6.6.6", TargetRef:(_api.ObjectReference)(nil)}}, NotReadyAddresses:[]api.EndpointAddress(nil), Ports:[]api.EndpointPort{api.EndpointPort{Name:"", Port:80, Protocol:""}}}}}}, Got []api.Endpoints(nil)</p>
<p dir="auto">Example failures:<br>
<a href="https://pantheon.corp.google.com/storage/browser/kubernetes-jenkins/logs/kubernetes-test-go/7543/?project=kubernetes-jenkins" rel="nofollow">https://pantheon.corp.google.com/storage/browser/kubernetes-jenkins/logs/kubernetes-test-go/7543/?project=kubernetes-jenkins</a><br>
<a href="https://pantheon.corp.google.com/storage/browser/kubernetes-jenkins/logs/kubernetes-test-go/7540/?project=kubernetes-jenkins" rel="nofollow">https://pantheon.corp.google.com/storage/browser/kubernetes-jenkins/logs/kubernetes-test-go/7540/?project=kubernetes-jenkins</a><br>
<a href="https://pantheon.corp.google.com/storage/browser/kubernetes-jenkins/logs/kubernetes-test-go/7538/?project=kubernetes-jenkins" rel="nofollow">https://pantheon.corp.google.com/storage/browser/kubernetes-jenkins/logs/kubernetes-test-go/7538/?project=kubernetes-jenkins</a></p>
<p dir="auto">@kubernetes/goog-cluster</p> | <p dir="auto">From <a href="http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-test-go/7518/console" rel="nofollow">http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-test-go/7518/console</a>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="16:34:36 FAIL k8s.io/kubernetes/pkg/proxy/config 300.127s
...
16:34:40 [BFA] Scanning build for known causes...
16:34:40 [BFA] Found failure cause(s):
16:34:40 [BFA] Timeout starting apiserver
16:34:40 [BFA] Done. 0s
16:34:40 [BFA] Found failed test case: TestNewMultipleSourcesServicesMultipleHandlersAddedAndNotified"><pre class="notranslate"><code class="notranslate">16:34:36 FAIL k8s.io/kubernetes/pkg/proxy/config 300.127s
...
16:34:40 [BFA] Scanning build for known causes...
16:34:40 [BFA] Found failure cause(s):
16:34:40 [BFA] Timeout starting apiserver
16:34:40 [BFA] Done. 0s
16:34:40 [BFA] Found failed test case: TestNewMultipleSourcesServicesMultipleHandlersAddedAndNotified
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error Message: Failed
Stacktrace:
/tmp/workdir/go/src/testing/testing.go:703 +0x16b
/tmp/workdir/go/src/time/sleep.go:129 +0x6e
/tmp/workdir/go/src/testing/testing.go:562 +0xafa
/tmp/workdir/go/src/testing/testing.go:494 +0xe5
k8s.io/kubernetes/pkg/proxy/config/_test/_testmain.go:70 +0x210
/tmp/workdir/go/src/runtime/asm_amd64.s:1721 +0x1
/workspace/kubernetes/Godeps/_workspace/src/github.com/golang/glog/glog.go:879 +0x8c
/workspace/kubernetes/Godeps/_workspace/src/github.com/golang/glog/glog.go:410 +0x2ba
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/api.go:43 +0x304
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/undelta_store.go:73 +0x18a
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/reflector.go:306 +0x30a
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/reflector.go:251 +0xa49
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/reflector.go:160 +0x54
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:64 +0x59
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:65 +0x7e
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/reflector.go:160 +0xe5
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/api.go:56 +0x304
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/undelta_store.go:73 +0x18a
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/reflector.go:306 +0x30a
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/reflector.go:251 +0xa49
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/reflector.go:160 +0x54
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:64 +0x59
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:65 +0x7e
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/reflector.go:160 +0xe5
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:288 +0x44
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:194 +0x32c
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:82 +0x62
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:77 +0x56
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:64 +0x59
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:65 +0x7e
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:77 +0x349
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:209 +0x77
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:213 +0xac
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:288 +0x44
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:194 +0x32c
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:82 +0x62
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:77 +0x56
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:64 +0x59
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:65 +0x7e
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:77 +0x349
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:209 +0x77
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:213 +0xac
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:288 +0x44
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:194 +0x32c
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:82 +0x62
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:77 +0x56
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:64 +0x59
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:65 +0x7e
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:77 +0x349
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:209 +0x77
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:213 +0xac
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:82 +0x62
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:77 +0x56
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:64 +0x59
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:65 +0x7e
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:77 +0x349
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:209 +0x77
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:213 +0xac
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config_test.go:70 +0xbd
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config_test.go:244 +0x951
/tmp/workdir/go/src/testing/testing.go:456 +0xdd
/tmp/workdir/go/src/testing/testing.go:561 +0xaa4
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:288 +0x44
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:194 +0x32c
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:82 +0x62
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:77 +0x56
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:64 +0x59
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:65 +0x7e
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:77 +0x349
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:209 +0x77
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:213 +0xac
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:82 +0x62
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:77 +0x56
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:64 +0x59
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:65 +0x7e
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:77 +0x349
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:209 +0x77
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:213 +0xac"><pre class="notranslate"><code class="notranslate">Error Message: Failed
Stacktrace:
/tmp/workdir/go/src/testing/testing.go:703 +0x16b
/tmp/workdir/go/src/time/sleep.go:129 +0x6e
/tmp/workdir/go/src/testing/testing.go:562 +0xafa
/tmp/workdir/go/src/testing/testing.go:494 +0xe5
k8s.io/kubernetes/pkg/proxy/config/_test/_testmain.go:70 +0x210
/tmp/workdir/go/src/runtime/asm_amd64.s:1721 +0x1
/workspace/kubernetes/Godeps/_workspace/src/github.com/golang/glog/glog.go:879 +0x8c
/workspace/kubernetes/Godeps/_workspace/src/github.com/golang/glog/glog.go:410 +0x2ba
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/api.go:43 +0x304
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/undelta_store.go:73 +0x18a
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/reflector.go:306 +0x30a
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/reflector.go:251 +0xa49
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/reflector.go:160 +0x54
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:64 +0x59
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:65 +0x7e
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/reflector.go:160 +0xe5
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/api.go:56 +0x304
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/undelta_store.go:73 +0x18a
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/reflector.go:306 +0x30a
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/reflector.go:251 +0xa49
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/reflector.go:160 +0x54
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:64 +0x59
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:65 +0x7e
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/reflector.go:160 +0xe5
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:288 +0x44
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:194 +0x32c
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:82 +0x62
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:77 +0x56
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:64 +0x59
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:65 +0x7e
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:77 +0x349
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:209 +0x77
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:213 +0xac
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:288 +0x44
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:194 +0x32c
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:82 +0x62
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:77 +0x56
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:64 +0x59
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:65 +0x7e
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:77 +0x349
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:209 +0x77
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:213 +0xac
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:288 +0x44
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:194 +0x32c
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:82 +0x62
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:77 +0x56
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:64 +0x59
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:65 +0x7e
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:77 +0x349
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:209 +0x77
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:213 +0xac
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:82 +0x62
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:77 +0x56
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:64 +0x59
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:65 +0x7e
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:77 +0x349
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:209 +0x77
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:213 +0xac
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config_test.go:70 +0xbd
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config_test.go:244 +0x951
/tmp/workdir/go/src/testing/testing.go:456 +0xdd
/tmp/workdir/go/src/testing/testing.go:561 +0xaa4
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:288 +0x44
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:194 +0x32c
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:82 +0x62
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:77 +0x56
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:64 +0x59
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:65 +0x7e
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:77 +0x349
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:209 +0x77
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:213 +0xac
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:82 +0x62
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:77 +0x56
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:64 +0x59
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:65 +0x7e
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/config/config.go:77 +0x349
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:209 +0x77
/workspace/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/proxy/config/config.go:213 +0xac
</code></pre></div> | 1 |
<ul dir="auto">
<li>Electron version: 0.36.8</li>
<li>Operating system: Windows 10 64bit</li>
</ul>
<p dir="auto">Also, when the browserwindow is in the top left corner (or maximized), I get:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="browserWindow.getBounds();
> {x: -8, y: -8, width: 2576, height: 1416}
screen.getPrimaryDisplay();
> {
bounds: { height: 1440, width: 2560, x: 0, y: 0 },
rotation: 0,
scaleFactor: 1,
size: { height: 1440, width: 2560 },
touchSupport: "unknown"
workArea: { height: 1440, width: 2560, x: 0, y: 0 }
workAreaSize: { height: 1440, width: 2560 }
}"><pre class="notranslate"><code class="notranslate">browserWindow.getBounds();
> {x: -8, y: -8, width: 2576, height: 1416}
screen.getPrimaryDisplay();
> {
bounds: { height: 1440, width: 2560, x: 0, y: 0 },
rotation: 0,
scaleFactor: 1,
size: { height: 1440, width: 2560 },
touchSupport: "unknown"
workArea: { height: 1440, width: 2560, x: 0, y: 0 }
workAreaSize: { height: 1440, width: 2560 }
}
</code></pre></div> | <p dir="auto">The Browser Window <code class="notranslate">width</code> and <code class="notranslate">x</code> coordinates are being calculated incorrectly in Windows 10 (Windows 8.1 did not have this problem). Here you can see that the <code class="notranslate">getBounds()</code> function is showing that my <code class="notranslate">x</code> value is 0 but the desktop background is showing through. I'm guessing this may have something to do with a subtle shadow that each window in Windows 10 is now casting.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/62191/12224314/36dccefa-b7a2-11e5-9ae0-a7181a41f1c7.png"><img src="https://cloud.githubusercontent.com/assets/62191/12224314/36dccefa-b7a2-11e5-9ae0-a7181a41f1c7.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Not sure how to fix this, but would be nice to resolve as I have some window state management code written to pin windows in the correct location, and now they are not properly being positioned.</p> | 1 |
<h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">Nowadays mobile computers are very common as the primary work device, multiple monitor setups are also becoming more and more popular.<br>
Unfortunately the switching from the one laptop screen to the 2 or 3 screans at work and than later to the other monitors at home is not a good user experience as one than every time has to re arrange all the windows in the proper order.</p>
<p dir="auto">A tool that for every monitor configuration remembers where each window goes and upon switching screens moves and resizes the windows accordingly would be extremely useful.</p>
<p dir="auto">Please add ;)</p> | <h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">I'm french and need to type french accented letters like é. One way to do that on my QWERTY keyboard is to switch the keyboard from English to International English where I can write accented characters. What I would like is to be able to create my own shortcuts (e.g: ctrl+shift+e => é). I can already have that with 3rd party app but as a previous macbook user I have been brainwashed to only use the official tools of the OS 🙂. Maybe PowerToys can help me accomplish this?</p>
<h1 dir="auto">Proposed technical implementation details (optional)</h1>
<p dir="auto">Currently PowerToys handle shortcut with only 2 characters, like ctrl+a, or shift+a, not ctrl+shift+a.<br>
To have unicode characters without changing keyboard, you need to type alt followed by a number. (e.g: alt+0233 => é). we call this the "alt codes".</p>
<p dir="auto">I would like to be able to enter a shortcut with more than 2 characters in Powertoys, mapped to a sequence of more than 2 characters.</p>
<p dir="auto">e.g: ctrl+shift+e mapped to alt+0233.</p> | 0 |
<p dir="auto">Now that we have API versioning in place, we should generate our api/doc schemas from Go structs (and probably even from a Godoc 'Example' which has sample values). We should also look at how we can take the Godoc comments and stitch them into the formal doc.</p> | <p dir="auto">In the method <a href="https://github.com/kubernetes/client-go/blob/master/plugin/pkg/client/auth/oidc/oidc.go#L227-L253">Refresh</a>, there is a line to parse the response from an OpenID provider. The <a href="https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/client/auth/oidc/oidc.go#L237">current implementation expects</a> an <code class="notranslate">id_token</code>. However in the <a href="http://openid.net/specs/openid-connect-core-1_0.html#RefreshTokenResponse" rel="nofollow">Openid spec</a> it states that <code class="notranslate">id_token</code> is not required on the response.</p> | 0 |
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-comment-your-javascript-code" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-comment-your-javascript-code</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">The instructions are also showing the source code of the instructions.<br>
I think the image speaks for itself.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9110413/9391370/55949e60-47b1-11e5-9ed6-7d32395edd61.JPG"><img src="https://cloud.githubusercontent.com/assets/9110413/9391370/55949e60-47b1-11e5-9ed6-7d32395edd61.JPG" alt="javascript comment" style="max-width: 100%;"></a></p> | <p dir="auto">I have a habit of using [CTRL D] when I want to duplicate a line. Deletes a line in your app. Your editor uses CodeMirror, so am I assuming correct you left it at the <a href="https://codemirror.net/doc/manual.html#commands" rel="nofollow">key defautls</a>?</p>
<p dir="auto">If so, where should the info/link go for students to find?</p> | 0 |
<p dir="auto">I see the following error after choosing to restart VSCode after prompting to install the update.</p>
<blockquote>
<p dir="auto">The setup files are corrupted. Please obtain a new copy of the program.</p>
</blockquote>
<p dir="auto">Version 0.10.3<br>
Commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/vscode/commit/783ecf841a2b21edca6d86853670cae89b4c244f/hovercard" href="https://github.com/microsoft/vscode/commit/783ecf841a2b21edca6d86853670cae89b4c244f"><tt>783ecf8</tt></a><br>
Date 2015-11-26T14:06:31.538Z<br>
Shell 0.34.1<br>
Renderer 45.0.2454.85<br>
Node 4.1.1</p>
<p dir="auto">I've attempted to uninstall and reinstall VSCode but that hasn't seemed to help at all. I still get the same attempted update behavior.</p> | <p dir="auto">hey guys. i am running on windows 10 pro v-1511 and code v-10.1 it's not updating automatically but it shows a pop-up, i click update now it closes the editor, i have tried to wait for 10 min it didn't work when i launched the code it was the same, what should i do ? maybe it is because my windows is not activated ? i clean installed and lost my key.</p> | 1 |
<p dir="auto">See all comments here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="149339470" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/6544" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/6544/hovercard" href="https://github.com/facebook/react/issues/6544">#6544</a></p> | <h1 dir="auto">Note this issue is due to <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=1085215" rel="nofollow">CR bug 1085215</a></h1>
<p dir="auto"><strong>It is impacting several other popular extensions as well- including React, Redux, Relay, and Vue devtools.</strong></p>
<hr>
<p dir="auto">React version: 16.13.1<br>
DevTools version: 4.7.0 (5/18/2020)<br>
macOS version: 10.15.4 (19E287)</p>
<h2 dir="auto">Steps To Reproduce</h2>
<ol dir="auto">
<li>Create a new profile in Google Chrome</li>
<li>Install the <a href="https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi" rel="nofollow">React Developer Tools</a></li>
<li>Go to <a href="https://reactjs.org" rel="nofollow">https://reactjs.org</a></li>
<li>Open the browser Dev Tools</li>
</ol>
<h2 dir="auto">Screenshots</h2>
<p dir="auto">Not sure this helps, but this is basically what I get after following the aforementioned steps:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/260431/82867560-c70eb600-9f33-11ea-9e95-d59ce4e3e548.png"><img src="https://user-images.githubusercontent.com/260431/82867560-c70eb600-9f33-11ea-9e95-d59ce4e3e548.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">When using Opera the tabs do show up:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/260431/82867684-f4f3fa80-9f33-11ea-9b1d-2a54f8a9101e.png"><img src="https://user-images.githubusercontent.com/260431/82867684-f4f3fa80-9f33-11ea-9b1d-2a54f8a9101e.png" alt="image" style="max-width: 100%;"></a></p>
<h2 dir="auto">The current behavior</h2>
<p dir="auto">Sometimes the Components and Profiler (i.e. React devtools tabs) don't show up.</p>
<h2 dir="auto">The expected behavior</h2>
<p dir="auto">These tabs should show for any site using React.</p>
<h2 dir="auto">More details</h2>
<p dir="auto">I've tried a few browsers, including:</p>
<ol dir="auto">
<li>Google Chrome (83.0.4103.61)</li>
<li>Microsoft Edge (83.0.478.37)</li>
<li>Opera (68.0.3618.125)</li>
</ol>
<p dir="auto">All of them should be working, since they're all Chromium based.</p>
<p dir="auto">The most reliable was Opera, which always shows the dev tools tabs. Chrome and Edge behaved the same way, sometimes showing them and other times not.</p>
<p dir="auto">I've also taken a look at the background pages of the React Dev Tools extension and they don't show any errors, only these performance metrics in the <code class="notranslate">devtools_app.html</code> page:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/260431/82867862-413f3a80-9f34-11ea-9b7c-ccd0c8225b01.png"><img src="https://user-images.githubusercontent.com/260431/82867862-413f3a80-9f34-11ea-9b7c-ccd0c8225b01.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">The main background page shows nothing in the console at all times.</p> | 0 |
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">ansible-galaxy</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="master (2.2.0)"><pre class="notranslate"><code class="notranslate">master (2.2.0)
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">mac, Linux</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">ansible-galaxy install -r requirements.yml fails.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-galaxy install -r requirements.yml"><pre class="notranslate"><code class="notranslate">ansible-galaxy install -r requirements.yml
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">It will install the roles in requirements.yml file.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(ansible) ~/P/c/ansible-role-django-app ❯❯❯ ~/miniconda2/envs/ansible/bin/ansible-galaxy install -r requirements.yml master
Usage: ansible-galaxy install [options] [-r FILE | role_name(s)[,version] | scm+role_repo_url[,version] | tar_file(s)]
Options:
-f, --force Force overwriting an existing role
-h, --help show this help message and exit
-c, --ignore-certs Ignore SSL certificate validation errors.
-i, --ignore-errors Ignore errors and continue with the next specified
role.
-n, --no-deps Don't download roles listed as dependencies
-r ROLE_FILE, --role-file=ROLE_FILE
A file containing a list of roles to be imported
-p ROLES_PATH, --roles-path=ROLES_PATH
The path to the directory containing your roles. The
default is the roles_path configured in your
ansible.cfg file (/etc/ansible/roles if not
configured)
-s API_SERVER, --server=API_SERVER
The API server destination
-v, --verbose verbose mode (-vvv for more, -vvvv to enable
connection debugging)
--version show program's version number and exit
ERROR! - please specify a user/role name, or a roles file, but not both"><pre class="notranslate"><code class="notranslate">(ansible) ~/P/c/ansible-role-django-app ❯❯❯ ~/miniconda2/envs/ansible/bin/ansible-galaxy install -r requirements.yml master
Usage: ansible-galaxy install [options] [-r FILE | role_name(s)[,version] | scm+role_repo_url[,version] | tar_file(s)]
Options:
-f, --force Force overwriting an existing role
-h, --help show this help message and exit
-c, --ignore-certs Ignore SSL certificate validation errors.
-i, --ignore-errors Ignore errors and continue with the next specified
role.
-n, --no-deps Don't download roles listed as dependencies
-r ROLE_FILE, --role-file=ROLE_FILE
A file containing a list of roles to be imported
-p ROLES_PATH, --roles-path=ROLES_PATH
The path to the directory containing your roles. The
default is the roles_path configured in your
ansible.cfg file (/etc/ansible/roles if not
configured)
-s API_SERVER, --server=API_SERVER
The API server destination
-v, --verbose verbose mode (-vvv for more, -vvvv to enable
connection debugging)
--version show program's version number and exit
ERROR! - please specify a user/role name, or a roles file, but not both
</code></pre></div> | <p dir="auto">The hardcoded "-k" flag to sudo breaks things like One-Time Password authentication, especially since only one password is ever asked for <em>all</em> hosts.</p> | 0 |
<p dir="auto">Hello,</p>
<p dir="auto">So recently we discovered an issue with one site we built when using android chrome with the data saver mode turned on. Basically data saver mode uses a google proxy. The main page would load, but all 'sub' pages returned a 404. Digging around we found an exception in the prod.log.</p>
<p dir="auto">[2016-11-22 09:16:29] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\BadRequestHttpException:<br>
The request headers contain conflicting information regarding the origin of this request. at vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:67 Symfony\Component\HttpFoundation\Exception\ConflictingHeadersException(code: 0): The request has both a trusted Forwarded header and a trusted Client IP header, conflicting with each other with regards to the originating IP addresses of the request. This is the result of a misconfiguration. You should either configure your proxy only to send one of these headers, or configure Symfony to distrust one of them.</p>
<p dir="auto">The headers being sent were:<br>
Array<br>
(<br>
[Host] => <a href="http://www.oursite.com" rel="nofollow">www.oursite.com</a><br>
[Accept] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,<em>/</em>;q=0.8<br>
[Accept-Encoding] => gzip, deflate, sdch<br>
[Accept-Language] => en-US,en;q=0.8,fr-CA;q=0.6,fr;q=0.4,es;q=0.2<br>
[Cache-Control] => max-age=0<br>
[Forwarded] => for=70.72.63.221<br>
[Save-Data] => on<br>
[Scheme] => http<br>
[Upgrade-Insecure-Requests] => 1<br>
[Via] => 1.1 Chrome-Compression-Proxy<br>
[X-Forwarded-For] => 70.72.63.221<br>
[Connection] => Keep-alive<br>
)</p>
<p dir="auto">Which shows it has both headers, but they match (other than for=X in the Forwarded header).</p>
<p dir="auto">What I'm wondering is if this should have caused the error it did? Looking at the bootstrap.php.cache relevant code it checks it the addresses match, but I'm not 100% sure if it should have been an error.</p>
<p dir="auto">This is also somewhat problematic since we didn't configure any proxy settings. This is a user proxy that they can enable/disable and since there are so many android devices out there with Chrome, this could affect any site using symfony. Oddly enough another site using a similar set of bundles doesn't have these issues so I'm quite confused.</p> | <p dir="auto">Hello.<br>
I'm using Symfony 2.8.12</p>
<p dir="auto">Error message:</p>
<blockquote>
<p dir="auto">PHP Fatal error: Uncaught exception 'Symfony\Component\HttpFoundation\Exception\ConflictingHeadersException' with message 'The request has both a trusted Forwarded header and a trusted Client IP header, conflicting with each other with regards to the originating IP addresses of the request. This is the result of a misconfiguration. You should either configure your proxy only to send one of these headers, or configure Symfony to distrust one of them.' in /[...]/app/bootstrap.php.cache:783\nStack trace:</p>
<h1 dir="auto">0 /[...]/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/ValidateRequestListener.php(40): Symfony\Component\HttpFoundation\Request->getClientIps()</h1>
<h1 dir="auto">1 [internal function]: Symfony\Component\HttpKernel\EventListener\ValidateRequestListener->onKernelRequest(Object(Symfony\Component\HttpKernel\Event\GetResponseEvent), 'kernel.request', Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher))</h1>
<h1 dir="auto">2 /[...]/app/cach in /[...]/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php on line 67, referer: [...]</h1>
</blockquote>
<p dir="auto">This error happens only when we use Google Data Compression Proxy. This is option in Chrome Mobile browser "Saving data" (or maybe "Data compression" in Polish it's "Oszczędzanie danych"). While it's turned on, we get this message when we tried enter on any site.</p>
<p dir="auto">This error doesn't happen in earlier versions of Symfony. Some of projects using version 2.8.5 and it working fine.<br>
Probably <a href="https://github.com/symfony/http-foundation/commit/e8fa5fede69ff2bc38cacf4768a679eb77123c5a">this change</a> make a trouble.</p>
<p dir="auto">Only this change working for me and prevent from errors<br>
<code class="notranslate">unset($_SERVER["HTTP_FORWARDED"]);</code></p>
<p dir="auto">Probably it's connected with <a href="https://github.com/contao/standard-edition/issues/45" data-hovercard-type="issue" data-hovercard-url="/contao/standard-edition/issues/45/hovercard">this error</a></p>
<p dir="auto">Regards and thanks for any help.</p> | 1 |
<h3 dir="auto">What problem does this feature solve?</h3>
<p dir="auto">在我们的开发中往往父级节点会设置一些下面节点的样式,如果把下面的东西独立为.vue文件的时候你会发现我不得不再写一个class或者再写一些样式,这使得我们的开发效率受到一定的损失</p>
<h3 dir="auto">What does the proposed API look like?</h3>
<div dir="auto"></div>
<div dir="auto"></div> | <h3 dir="auto">Version</h3>
<p dir="auto">2.6.10</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://codesandbox.io/s/vue-transition-group-bug-wnvwv" rel="nofollow">https://codesandbox.io/s/vue-transition-group-bug-wnvwv</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>Open codesandbox.</li>
<li>Click the "toggle transition" checkbox.</li>
</ol>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">The enter transition should be animate smoothly.</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">In transition group with v-move class, the elements with immediate watchers that calls $set interrupts the enter transition causing it to "snap".</p>
<hr>
<p dir="auto">In the codesandbox repro, I provided workarounds to fix this problem.</p>
<p dir="auto">I found this bug in this <a href="https://github.com/vuetifyjs/vuetify/issues/9171" data-hovercard-type="issue" data-hovercard-url="/vuetifyjs/vuetify/issues/9171/hovercard">vuetify issue</a>.</p>
<p dir="auto">This happened on vuetify's 2.0.19 release where <a href="https://github.com/vuetifyjs/vuetify/blob/v2.1.0/packages/vuetify/src/mixins/binds-attrs/index.ts">this code</a> was added in to resolve issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="453444081" data-permission-text="Title is private" data-url="https://github.com/vuejs/vue/issues/10115" data-hovercard-type="issue" data-hovercard-url="/vuejs/vue/issues/10115/hovercard" href="https://github.com/vuejs/vue/issues/10115">#10115</a>.</p>
<p dir="auto">I'm not sure what is the direct cause as both the v-move class and the immediate watcher causes this issue.</p> | 0 |
<p dir="auto">This is a minor issue. When trying to install some packages through Atom's packages > setting view > install packages/themes , a false error is given (screenshot below), and the package is not installed. But apm can find git and the packages install using the command line.</p>
<p dir="auto">Atom version: 0.177.0<br>
Mac OSX: 10.9.5</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2117313/6117883/0aa88bea-b086-11e4-8e92-9e585a4dd591.png"><img src="https://cloud.githubusercontent.com/assets/2117313/6117883/0aa88bea-b086-11e4-8e92-9e585a4dd591.png" alt="screen shot 2015-02-09 at 6 01 50 pm" style="max-width: 100%;"></a></p>
<p dir="auto">Here's my <code class="notranslate">apm -v</code> output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="> apm -v
apm 0.134.0
npm 2.3.0
node 0.10.35
python 2.7.5
git 2.3.0"><pre class="notranslate"><code class="notranslate">> apm -v
apm 0.134.0
npm 2.3.0
node 0.10.35
python 2.7.5
git 2.3.0
</code></pre></div>
<p dir="auto">Installing via <code class="notranslate">apm install</code> works perfectly fine:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="> apm install linter
Installing linter to /Users/trangpham/.atom/packages ✓
> apm install merge-conflicts
Installing merge-conflicts to /Users/trangpham/.atom/packages ✓"><pre class="notranslate"><code class="notranslate">> apm install linter
Installing linter to /Users/trangpham/.atom/packages ✓
> apm install merge-conflicts
Installing merge-conflicts to /Users/trangpham/.atom/packages ✓
</code></pre></div>
<p dir="auto">And then restarting atom shows the installed packages.</p> | <p dir="auto">Halp ticket</p>
<ul dir="auto">
<li>support/cfbfba6cc0c111e39e5e518af1b028c3</li>
</ul>
<blockquote>
<p dir="auto">Getting an error using the Package Installer:</p>
</blockquote>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Installing “[email protected]” failed. Less…
[email protected] preinstall /private/var/folders/b2/yvj3vcjx1_v4_rg_r202hdfh0000gn/T/apm-install-dir-114310-92870-1y7aip0/node_modules/atom-js2coffee/node_modules/js2coffee
npm run-script ./cyclic.js
npm http GET https://registry.npmjs.org/js2coffee
npm http 304 https://registry.npmjs.org/js2coffee
env: node: No such file or directory
npm ERR! [email protected] preinstall: `npm run-script ./cyclic.js`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is most likely a problem with the js2coffee package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run-script ./cyclic.js
npm ERR! You can get their info via:
npm ERR! npm owner ls js2coffee
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 13.1.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node_darwin_x64" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "install" "/Users/diego/.atom/.node-gyp/.atom/.apm/atom-js2coffee/0.0.2/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/b2/yvj3vcjx1_v4_rg_r202hdfh0000gn/T/apm-install-dir-114310-92870-1y7aip0
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /private/var/folders/b2/yvj3vcjx1_v4_rg_r202hdfh0000gn/T/apm-install-dir-114310-92870-1y7aip0/npm-debug.log
npm ERR! not ok code 0"><pre class="notranslate"><code class="notranslate">Installing “[email protected]” failed. Less…
[email protected] preinstall /private/var/folders/b2/yvj3vcjx1_v4_rg_r202hdfh0000gn/T/apm-install-dir-114310-92870-1y7aip0/node_modules/atom-js2coffee/node_modules/js2coffee
npm run-script ./cyclic.js
npm http GET https://registry.npmjs.org/js2coffee
npm http 304 https://registry.npmjs.org/js2coffee
env: node: No such file or directory
npm ERR! [email protected] preinstall: `npm run-script ./cyclic.js`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is most likely a problem with the js2coffee package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run-script ./cyclic.js
npm ERR! You can get their info via:
npm ERR! npm owner ls js2coffee
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 13.1.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node_darwin_x64" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "install" "/Users/diego/.atom/.node-gyp/.atom/.apm/atom-js2coffee/0.0.2/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/b2/yvj3vcjx1_v4_rg_r202hdfh0000gn/T/apm-install-dir-114310-92870-1y7aip0
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /private/var/folders/b2/yvj3vcjx1_v4_rg_r202hdfh0000gn/T/apm-install-dir-114310-92870-1y7aip0/npm-debug.log
npm ERR! not ok code 0
</code></pre></div>
<p dir="auto">I'm getting the same error when I try installing the package from within Atom. However, installing from the command line works just fine:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ apm install atom-js2coffee"><pre class="notranslate"><code class="notranslate">$ apm install atom-js2coffee
</code></pre></div>
<p dir="auto">Unsure what to think about this. <g-emoji class="g-emoji" alias="confused" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f615.png">😕</g-emoji></p> | 1 |
<h2 dir="auto">Feature Request</h2>
<p dir="auto"><strong>Is your feature request related to a problem? Please describe.</strong><br>
I've recently had an issue with 2 babel-plugins where the plugin would cause issues in dependencies.<br>
Though there are PRs out to fix this issue in both, it may be better for a solution on the babel level for other places where such an issue could occur.<br>
Reference:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="414337550" data-permission-text="Title is private" data-url="https://github.com/PavelDymkov/babel-plugin-auto-import/issues/4" data-hovercard-type="pull_request" data-hovercard-url="/PavelDymkov/babel-plugin-auto-import/pull/4/hovercard" href="https://github.com/PavelDymkov/babel-plugin-auto-import/pull/4">PavelDymkov/babel-plugin-auto-import#4</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="416617630" data-permission-text="Title is private" data-url="https://github.com/vihanb/babel-plugin-wildcard/issues/32" data-hovercard-type="pull_request" data-hovercard-url="/vihanb/babel-plugin-wildcard/pull/32/hovercard" href="https://github.com/vihanb/babel-plugin-wildcard/pull/32">vihanb/babel-plugin-wildcard#32</a></p>
<p dir="auto"><strong>Describe the solution you'd like</strong><br>
I think it would be good for there to be an <code class="notranslate">ignore</code> option that could be applied on a given plugin.<br>
IE:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="module.exports = function(api) {
...
plugins: [
['auto-import', {
declarations: [
{ path: 'react', default: 'React', members: ['Component'] },
{ path: 'react-native', members: ['View', 'Text', 'StyleSheet', 'Platform'] },
],
ignore: 'node_modules',
}],
['wildcard', {ignore: 'node_modules'},
],
};
};"><pre class="notranslate"><code class="notranslate">module.exports = function(api) {
...
plugins: [
['auto-import', {
declarations: [
{ path: 'react', default: 'React', members: ['Component'] },
{ path: 'react-native', members: ['View', 'Text', 'StyleSheet', 'Platform'] },
],
ignore: 'node_modules',
}],
['wildcard', {ignore: 'node_modules'},
],
};
};
</code></pre></div>
<p dir="auto">Of course, I'm open to other ways of doing this.</p>
<p dir="auto"><strong>Describe alternatives you've considered</strong><br>
Other alternatives is to request PRs on any plugins that are problematic, but sometimes they take a while to get merged (at the time of posting, neither PRs of the two problematic plugins are merged).<br>
I guess I could republish the plugins or just install them from my own repository, but that may not be the best solution either.</p>
<p dir="auto"><strong>Teachability, Documentation, Adoption, Migration Strategy</strong><br>
Users would be able to use this quite easily. In terms of Docs, I think it could be mentioned as an option for plugins similar to the regular <code class="notranslate">ignore</code> option</p> | <p dir="auto">Hi there,</p>
<p dir="auto">I searched for existing issues on this matter but couldn't find anything... I would like to know: would it be feasible to add <code class="notranslate">core-js</code> as a dependency of <code class="notranslate">babel-runtime</code> and just have <code class="notranslate">babel-runtime</code> re-export its code, instead of bundling it like it's currently done?</p>
<p dir="auto">Right now I have a library that is compiled from ES6 using babel, and I'm using the <code class="notranslate">runtime</code> transform so that the polyfills don't get duplicated when using it along with other babel-compiled ES6 libraries.</p>
<p dir="auto">So far so good, however an ES5 project that uses my library also uses <code class="notranslate">core-js</code> directly, and this is causing the <code class="notranslate">core-js</code> code to be duplicated during the final Browserify build step, increasing the build size.</p>
<p dir="auto">I assume there might be a reason for bundling <code class="notranslate">core-js</code>, if so, is there another way I can work around this?</p>
<p dir="auto">Thanks.</p> | 0 |
<ul dir="auto">
<li>Electron version: 1.8.4, 1.7.13</li>
<li>Operating system: Debian 9</li>
<li>CUPS: 2.2.1</li>
</ul>
<p dir="auto">Hey,</p>
<p dir="auto">In my project I'm using printer Custom VKP80 in which 80mm thermal paper is used.<br>
I'm running my electron application on Debian 9. The printer is added in cups and configured to use 80mm paper. Also the printer is marked as default printer.<br>
According to application logic printing should be performed silently. So I'm using option {silent:true}. But with this option Electron (or Chromium inside Electron) does not use configured cups settings and prints only part of html document. Printed receipt looks like only left part of "virtual" A4 paper (like 80mm from left side of A4 is printed).<br>
If set {silent:false} and NOT touch any settings in printing dialog and just press "Print" button then printed receipt looks like expected, i.e. cups settings are used.</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Electron uses printer settings during printing with option {silent:true}</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Electron does not use cups settings during printing with option {silent:true}</p>
<h3 dir="auto">How to reproduce</h3>
<ol dir="auto">
<li>Configure some non-standard printer in linux using cups.</li>
<li>Call someWindow.webContents.print({silent:true})</li>
</ol> | <h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Electron Version</h3>
<p dir="auto">13.1.9</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">Windows</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">windows 10</p>
<h3 dir="auto">What arch are you using?</h3>
<p dir="auto">x64</p>
<h3 dir="auto">Last Known Working Electron version</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">when silent is true if deviceName not empty is with deviceName settings for printing<br>
options copies setting can take effect</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">printWindow.webContents.print({<br>
silent: true,<br>
printBackground: false,<br>
deviceName: deviceName,<br>
}, (success, errorType) => {<br>
if (!success) {<br>
console.log(errorType)<br>
}<br>
})</p>
<p dir="auto">when silent is true deviceName is not Not effective<br>
when silent is true copies is not effective too</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto"><em>No response</em></p> | 0 |
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: 1.35.1</li>
<li>Operating System: Debian Docker</li>
<li>Browser: Chromium</li>
<li>Other info:</li>
</ul>
<h3 dir="auto">Source code</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I provided exact source code that allows reproducing the issue locally.</li>
</ul>
<p dir="auto">I've been running test suites with Playwright in our company for almost a year, and have had no real issues. However, when we tried to onboard one of our larger components to use it, we sometimes get this error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="...
Error: browserContext.addCookies: Browser closed.
==================== Browser output: ====================
<launching> /browsers/chromium-1067/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-06Snae --remote-debugging-pipe --no-startup-window
<launched> pid=178
[pid=178][err] [0712/10[52](https://gitlab.company/-/jobs/1)35.920816:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[pid=178][err] [0712/105236.019824:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[pid=178][err] [0712/105236.020034:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[pid=178][err] [0712/105236.034717:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 198: Permission denied (13)
[pid=178][err] [0712/105236.0352[56](https://gitlab.ballys.tech/dumarca/webfront/-/jobs/6638467#L56):WARNING:bluez_dbus_manager.cc(247)] Floss manager not present, cannot set Floss enable/disable.
[pid=178][err] [0712/105236.083639:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 206: Permission denied (13)
[pid=178][err] [0712/105236.104770:WARNING:sandbox_linux.cc(393)] InitializeSandbox() called with multiple threads in process gpu-process.
[pid=178][err] [0712/105236.118682:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[pid=178] <gracefully close start>
Failed worker ran 1 test:
[project] › tests/search/search.spec.ts:3:5 › Search bar is visible on home page @rdge @plng @se @afun
at Player.setDismissCookieNotification (/opt/test-root/node_modules/@ci-cd/player/src/pageObjects/player.po.js:47:29)
at Player.<anonymous> (/opt/test-root/node_modules/@ci-cd/player/src/pageObjects/player.po.js:72:18)
at fulfilled (/opt/test-root/node_modules/@ci-cd/player/src/pageObjects/player.po.js:5:[58](https://gitlab.company/jobs/1))
··
3 passed (20.7s)
1 error was not a part of any test, see above for details
..."><pre class="notranslate"><code class="notranslate">...
Error: browserContext.addCookies: Browser closed.
==================== Browser output: ====================
<launching> /browsers/chromium-1067/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-06Snae --remote-debugging-pipe --no-startup-window
<launched> pid=178
[pid=178][err] [0712/10[52](https://gitlab.company/-/jobs/1)35.920816:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[pid=178][err] [0712/105236.019824:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[pid=178][err] [0712/105236.020034:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[pid=178][err] [0712/105236.034717:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 198: Permission denied (13)
[pid=178][err] [0712/105236.0352[56](https://gitlab.ballys.tech/dumarca/webfront/-/jobs/6638467#L56):WARNING:bluez_dbus_manager.cc(247)] Floss manager not present, cannot set Floss enable/disable.
[pid=178][err] [0712/105236.083639:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 206: Permission denied (13)
[pid=178][err] [0712/105236.104770:WARNING:sandbox_linux.cc(393)] InitializeSandbox() called with multiple threads in process gpu-process.
[pid=178][err] [0712/105236.118682:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[pid=178] <gracefully close start>
Failed worker ran 1 test:
[project] › tests/search/search.spec.ts:3:5 › Search bar is visible on home page @rdge @plng @se @afun
at Player.setDismissCookieNotification (/opt/test-root/node_modules/@ci-cd/player/src/pageObjects/player.po.js:47:29)
at Player.<anonymous> (/opt/test-root/node_modules/@ci-cd/player/src/pageObjects/player.po.js:72:18)
at fulfilled (/opt/test-root/node_modules/@ci-cd/player/src/pageObjects/player.po.js:5:[58](https://gitlab.company/jobs/1))
··
3 passed (20.7s)
1 error was not a part of any test, see above for details
...
</code></pre></div>
<p dir="auto">This happens rarely, about one in every thirty runs, and the test themselves are completely empty, only doing a call to an endpoint to make sure we can track the test is run. What might be the cause of this issue? There really isn't anything to share in terms of code, I scaled down to run basically an empty project, and the rest is proven to work, having ran thousands and thousands of suites over a year with no problems. What kind of interaction might cause these problems so I know where to start to look?</p>
<p dir="auto"><strong>Expected</strong></p>
<p dir="auto">The test runs and passes successfully.</p>
<p dir="auto"><strong>Actual</strong></p>
<p dir="auto">The test runs and passes, but the overall suite fails with the above mentioned error.</p> | <h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [v1.31.2]</li>
<li>Operating System: [Windows 10]</li>
<li>Browser: [Chromium]</li>
<li>Other info:</li>
</ul>
<p dir="auto">I am trying to launch for every test of my repo the same persistent context that I got in my userDir folder.. unfortunately as I have read in other issues, launching a persistent context does force you to reconfigure your test options to make everything work well..<br>
With that said..I am having some issue with saving the videos of every test in my reporter folder. I have a playwright HTML report and an Allure-playwright report. For both of them the video would not showing up, even if I managed to save them in the proper output directory. Below the code of how I set the context:</p>
<h3 dir="auto">Source code</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" let context: BrowserContext;
let page: Page;
signinUrl = baseURL;
console.log(testInfo.outputDir);
context = await playwright[browserName].launchPersistentContext('C:/Users/admin/Desktop/TEST_REPO/userDir', {
baseURL: signinUrl,
viewport: {
"width": 1366,
"height": 670
}, recordVideo: {
dir: testInfo.outputDir,
size: {
width: 1280,
height: 625
}
},
locale: "it-IT",
proxy: {
server: "IP:port",
bypass: "some.domain"
},
timezoneId: "Europe/Rome",
});
page = context.pages()[0];
"><pre class="notranslate"><code class="notranslate"> let context: BrowserContext;
let page: Page;
signinUrl = baseURL;
console.log(testInfo.outputDir);
context = await playwright[browserName].launchPersistentContext('C:/Users/admin/Desktop/TEST_REPO/userDir', {
baseURL: signinUrl,
viewport: {
"width": 1366,
"height": 670
}, recordVideo: {
dir: testInfo.outputDir,
size: {
width: 1280,
height: 625
}
},
locale: "it-IT",
proxy: {
server: "IP:port",
bypass: "some.domain"
},
timezoneId: "Europe/Rome",
});
page = context.pages()[0];
</code></pre></div>
<p dir="auto"><strong>Config file</strong><br>
This is the config style tha I would normally have without using a persistent context and that indeed works pretty well (video, screenshots, ecc...)</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// playwright.config.ts
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
projects: [
{
name: 'chromium',
"reporter": [
[
"line"
],
[
"allure-playwright"
],
[
"html",
{
"outputFolder": "playwright-report",
"open": "never"
}
]
],
"use": {
"locale": "it-IT",
"launchOptions": {
"proxy": {
"server": "IP:port",
"bypass": "some.domain"
}
},
"contextOptions": {
"locale": "it-IT",
"timezoneId": "Europe/Rome"
},
"viewport": {
"width": 1366,
"height": 670
},
"screenshot": "only-on-failure",
"video": {
"mode": "on",
"size": {
"width": 1280,
"height": 625
}
},
"trace": "retain-on-failure"
}
}
});"><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">defineConfig</span><span class="pl-kos">,</span> <span class="pl-s1">devices</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-en">defineConfig</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">projects</span>: <span class="pl-kos">[</span>
<span class="pl-kos">{</span>
<span class="pl-c1">name</span>: <span class="pl-s">'chromium'</span><span class="pl-kos">,</span>
<span class="pl-s">"reporter"</span>: <span class="pl-kos">[</span>
<span class="pl-kos">[</span>
<span class="pl-s">"line"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span>
<span class="pl-s">"allure-playwright"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span>
<span class="pl-s">"html"</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-s">"outputFolder"</span>: <span class="pl-s">"playwright-report"</span><span class="pl-kos">,</span>
<span class="pl-s">"open"</span>: <span class="pl-s">"never"</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">"use"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"locale"</span>: <span class="pl-s">"it-IT"</span><span class="pl-kos">,</span>
<span class="pl-s">"launchOptions"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"proxy"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"server"</span>: <span class="pl-s">"IP:port"</span><span class="pl-kos">,</span>
<span class="pl-s">"bypass"</span>: <span class="pl-s">"some.domain"</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"contextOptions"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"locale"</span>: <span class="pl-s">"it-IT"</span><span class="pl-kos">,</span>
<span class="pl-s">"timezoneId"</span>: <span class="pl-s">"Europe/Rome"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"viewport"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"width"</span>: <span class="pl-c1">1366</span><span class="pl-kos">,</span>
<span class="pl-s">"height"</span>: <span class="pl-c1">670</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"screenshot"</span>: <span class="pl-s">"only-on-failure"</span><span class="pl-kos">,</span>
<span class="pl-s">"video"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"mode"</span>: <span class="pl-s">"on"</span><span class="pl-kos">,</span>
<span class="pl-s">"size"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"width"</span>: <span class="pl-c1">1280</span><span class="pl-kos">,</span>
<span class="pl-s">"height"</span>: <span class="pl-c1">625</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"trace"</span>: <span class="pl-s">"retain-on-failure"</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos"></span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Steps</strong></p>
<ul dir="auto">
<li>Run the test</li>
<li>the test can fail or pass</li>
</ul>
<p dir="auto"><strong>Expected</strong></p>
<p dir="auto">Expect to have my recorded videos inside the HTML and Allure report.</p>
<p dir="auto"><strong>Actual</strong></p>
<p dir="auto">That does not happen.</p>
<p dir="auto">I want also to add that the screenshots insted do appear in my report even if in my persistent context I do not specify anything about while it is specified inside my config.<br>
Also, how can I specify inside my persisten context wheneve I want to record a video? Something like "Only on failure" ecc... thank you.</p> | 0 |
<p dir="auto">Offending code:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="extern crate core;
use core::fmt;
fn show_all<I: fmt::String>(iter: &mut Iterator<Item=I>) {
for i in *iter {
println!("{}", i);
}
}
fn main() {
let v = vec![1i32, 2, 3, 4];
show_all(&mut v.iter());
}"><pre class="notranslate"><span class="pl-k">extern</span> <span class="pl-k">crate</span> core<span class="pl-kos">;</span>
<span class="pl-k">use</span> core<span class="pl-kos">::</span>fmt<span class="pl-kos">;</span>
<span class="pl-k">fn</span> <span class="pl-en">show_all</span><span class="pl-kos"><</span><span class="pl-smi">I</span><span class="pl-kos">:</span> fmt<span class="pl-kos">::</span><span class="pl-smi">String</span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-s1">iter</span><span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-k">mut</span> <span class="pl-smi">Iterator</span><span class="pl-kos"><</span><span class="pl-smi">Item</span>=<span class="pl-smi">I</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-c1">*</span>iter <span class="pl-kos">{</span>
<span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"{}"</span>, i<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> v = <span class="pl-en">vec</span><span class="pl-en">!</span><span class="pl-kos">[</span><span class="pl-c1">1i32</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">4</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-en">show_all</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-k">mut</span> v<span class="pl-kos">.</span><span class="pl-en">iter</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Compiler error (formatted):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/llvm/lib/IR/Instructions.cpp:281:
void llvm::CallInst::init(llvm::Value*, llvm::ArrayRef<llvm::Value*>, const llvm::Twine&):
Assertion `(i >= FTy->getNumParams() || FTy->getParamType(i) == Args[i]->getType()) &&
"Calling a function with a bad signature!"' failed."><pre class="notranslate"><code class="notranslate">rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/llvm/lib/IR/Instructions.cpp:281:
void llvm::CallInst::init(llvm::Value*, llvm::ArrayRef<llvm::Value*>, const llvm::Twine&):
Assertion `(i >= FTy->getNumParams() || FTy->getParamType(i) == Args[i]->getType()) &&
"Calling a function with a bad signature!"' failed.
</code></pre></div>
<p dir="auto">Rust version:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc --version
rustc 1.0.0-nightly (f4f10dba2 2015-01-17 20:31:08 +0000)"><pre class="notranslate"><code class="notranslate">$ rustc --version
rustc 1.0.0-nightly (f4f10dba2 2015-01-17 20:31:08 +0000)
</code></pre></div> | <h3 dir="auto">Code</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fn changer<'a>(mut things: Box<Iterator<Item=&'a mut u8>>) {
for item in *things { *item = 0 }
}
fn main() {
}"><pre class="notranslate"><code class="notranslate">fn changer<'a>(mut things: Box<Iterator<Item=&'a mut u8>>) {
for item in *things { *item = 0 }
}
fn main() {
}
</code></pre></div>
<h3 dir="auto">Error</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: internal compiler error: trying to take the sizing type of <core::iter::Iterator + 'static as core::iter::Iterator>::Item, an unsized type
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 'Box<Any>', /Users/shep/Projects/rust/src/libsyntax/diagnostic.rs:182
stack backtrace:
1: 0x110a80d05 - sys::backtrace::write::h57cb71e45a6ad05bARs
2: 0x110aa667f - failure::on_fail::h1e60313e5a552ea32Ty
3: 0x110a0bb6a - rt::unwind::begin_unwind_inner::h591d6980cb1eb9bb2By
4: 0x10e753937 - rt::unwind::begin_unwind::h15926596774839260564
5: 0x10e7542a8 - diagnostic::Handler::bug::h4055c4ca2e17f0c6DLF
6: 0x10dd63cb8 - session::Session::bug::h5d1941c792f1e4caroq
7: 0x10d326a23 - trans::type_of::sizing_type_of::hded88082b54ddc4bgSo
8: 0x10d4422eb - trans::adt::represent_type_uncached::h5d90b81a92acc1b47xH
9: 0x10d320cd3 - trans::adt::represent_type::hdeb853742a302b7fHuH
10: 0x10d30c662 - trans::type_of::type_of::h0a1f71fc9850898aYYo
11: 0x10d30c34c - trans::type_of::type_of::h0a1f71fc9850898aYYo
12: 0x10d3b803f - trans::type_of::type_of_rust_fn::hf6b24d412c4c9582xOo
13: 0x10d41665c - trans::meth::trans_trait_callee_from_llval::h2aa4e324f7a786d6kwz
14: 0x10d413a56 - trans::meth::trans_object_shim::hfa24eaa4bec56008jBz
15: 0x10d31eb5f - trans::meth::trans_method_callee::hce96e8ac9be0c90eq6y
16: 0x10d385573 - trans::callee::trans_call_inner::h12246188759747685167
17: 0x10d354691 - trans::expr::trans_rvalue_stmt_unadjusted::hd58bf8791601bef4kQi
18: 0x10d306c8d - trans::expr::trans_into::h8bab20af1840b0a57xh
19: 0x10d307605 - trans::controlflow::trans_block::h051994b75eb2405cS1d
20: 0x10d3d0f44 - trans::base::trans_closure::hb694bfd51133ec9fMSt
21: 0x10d2f2a2b - trans::base::trans_fn::h816a9b6a32db67faj3t
22: 0x10d2ee086 - trans::base::trans_item::h223cbaffa1a561c6aqu
23: 0x10d3d8718 - trans::base::trans_crate::h7f75c26047f82847vlv
24: 0x10d19064e - driver::phase_4_translate_to_llvm::h17f0f28873e0c2d6uFa
25: 0x10d172501 - driver::compile_input::h059943f6c48c38c7vba
26: 0x10d239173 - thunk::F.Invoke<A, R>::invoke::h17305763774885229909
27: 0x10d2362d0 - rt::unwind::try::try_fn::h8419390306595151514
28: 0x110b0dba9 - rust_try_inner
29: 0x110b0db96 - rust_try
30: 0x10d236a16 - thunk::F.Invoke<A, R>::invoke::h8115208835806211442
31: 0x110a92154 - sys::thread::thread_start::hf32c2ee467ccc238CEv
32: 0x7fff9663c2fc - _pthread_body
33: 0x7fff9663c279 - _pthread_body"><pre class="notranslate"><code class="notranslate">error: internal compiler error: trying to take the sizing type of <core::iter::Iterator + 'static as core::iter::Iterator>::Item, an unsized type
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 'Box<Any>', /Users/shep/Projects/rust/src/libsyntax/diagnostic.rs:182
stack backtrace:
1: 0x110a80d05 - sys::backtrace::write::h57cb71e45a6ad05bARs
2: 0x110aa667f - failure::on_fail::h1e60313e5a552ea32Ty
3: 0x110a0bb6a - rt::unwind::begin_unwind_inner::h591d6980cb1eb9bb2By
4: 0x10e753937 - rt::unwind::begin_unwind::h15926596774839260564
5: 0x10e7542a8 - diagnostic::Handler::bug::h4055c4ca2e17f0c6DLF
6: 0x10dd63cb8 - session::Session::bug::h5d1941c792f1e4caroq
7: 0x10d326a23 - trans::type_of::sizing_type_of::hded88082b54ddc4bgSo
8: 0x10d4422eb - trans::adt::represent_type_uncached::h5d90b81a92acc1b47xH
9: 0x10d320cd3 - trans::adt::represent_type::hdeb853742a302b7fHuH
10: 0x10d30c662 - trans::type_of::type_of::h0a1f71fc9850898aYYo
11: 0x10d30c34c - trans::type_of::type_of::h0a1f71fc9850898aYYo
12: 0x10d3b803f - trans::type_of::type_of_rust_fn::hf6b24d412c4c9582xOo
13: 0x10d41665c - trans::meth::trans_trait_callee_from_llval::h2aa4e324f7a786d6kwz
14: 0x10d413a56 - trans::meth::trans_object_shim::hfa24eaa4bec56008jBz
15: 0x10d31eb5f - trans::meth::trans_method_callee::hce96e8ac9be0c90eq6y
16: 0x10d385573 - trans::callee::trans_call_inner::h12246188759747685167
17: 0x10d354691 - trans::expr::trans_rvalue_stmt_unadjusted::hd58bf8791601bef4kQi
18: 0x10d306c8d - trans::expr::trans_into::h8bab20af1840b0a57xh
19: 0x10d307605 - trans::controlflow::trans_block::h051994b75eb2405cS1d
20: 0x10d3d0f44 - trans::base::trans_closure::hb694bfd51133ec9fMSt
21: 0x10d2f2a2b - trans::base::trans_fn::h816a9b6a32db67faj3t
22: 0x10d2ee086 - trans::base::trans_item::h223cbaffa1a561c6aqu
23: 0x10d3d8718 - trans::base::trans_crate::h7f75c26047f82847vlv
24: 0x10d19064e - driver::phase_4_translate_to_llvm::h17f0f28873e0c2d6uFa
25: 0x10d172501 - driver::compile_input::h059943f6c48c38c7vba
26: 0x10d239173 - thunk::F.Invoke<A, R>::invoke::h17305763774885229909
27: 0x10d2362d0 - rt::unwind::try::try_fn::h8419390306595151514
28: 0x110b0dba9 - rust_try_inner
29: 0x110b0db96 - rust_try
30: 0x10d236a16 - thunk::F.Invoke<A, R>::invoke::h8115208835806211442
31: 0x110a92154 - sys::thread::thread_start::hf32c2ee467ccc238CEv
32: 0x7fff9663c2fc - _pthread_body
33: 0x7fff9663c279 - _pthread_body
</code></pre></div>
<h3 dir="auto">Version</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc 0.13.0-dev (5773bdeff 2015-01-04 21:36:41 +0000)
binary: rustc
commit-hash: 5773bdefff2e47cc007f5cc2af3f80b30303d45a
commit-date: 2015-01-04 21:36:41 +0000
host: x86_64-apple-darwin
release: 0.13.0-dev"><pre class="notranslate"><code class="notranslate">rustc 0.13.0-dev (5773bdeff 2015-01-04 21:36:41 +0000)
binary: rustc
commit-hash: 5773bdefff2e47cc007f5cc2af3f80b30303d45a
commit-date: 2015-01-04 21:36:41 +0000
host: x86_64-apple-darwin
release: 0.13.0-dev
</code></pre></div> | 1 |
<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
[x] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong></p>
<p dir="auto">Not sure if this is a bug or a feature request, but <a href="mailto:[email protected]">[email protected]</a> suggested me to file an issue.<br>
When there is a list of primitives, let say booleans <code class="notranslate">let list: Array<boolean> = [true, true, false, true]</code>, *ngFor is not capable to track it correctly. It's clear from documentation, that it is required to use some tracking function, but it looks overkilled to implement a tracking function that looks like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="track(i: number): number {
return i;
}"><pre class="notranslate"><code class="notranslate">track(i: number): number {
return i;
}
</code></pre></div>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">Is it possible to add a predefined variable <code class="notranslate">index</code> as a tracking parameter?<br>
<code class="notranslate">*ngFor="let item of list; let i = index; trackBy: index"</code></p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p>
<p dir="auto"><a href="https://plnkr.co/edit/I1MP9vMfDyC9jdCgJCe0?p=preview" rel="nofollow">https://plnkr.co/edit/I1MP9vMfDyC9jdCgJCe0?p=preview</a></p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
Get rid of unnecessary tracking function.</p>
<p dir="auto"><strong>Please tell us about your environment:</strong> Goobuntu, Cider</p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.2.1</li>
<li><strong>Browser:</strong> Chrome 55.0.2883.87 (64-bit)</li>
<li><strong>Language:</strong> TypeScript</li>
</ul> | <p dir="auto">Helps manual debugging</p> | 0 |
<p dir="auto">Version: 0.192.0</p>
<h2 dir="auto">Problem</h2>
<ol dir="auto">
<li><code class="notranslate">autoindent</code> fails to indent parameter lists. Note: If I hit enter after <code class="notranslate">fake_function(</code>, <code class="notranslate">param=</code> would be indented 3x -- class > def > foo.</li>
</ol>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Bar(unittest.TestCase):
def test_indentation(self):
foo = fake_function(param='hello',
second_param='world', # should have indented this line
) # and this one, too"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Bar</span>(<span class="pl-s1">unittest</span>.<span class="pl-v">TestCase</span>):
<span class="pl-k">def</span> <span class="pl-en">test_indentation</span>(<span class="pl-s1">self</span>):
<span class="pl-s1">foo</span> <span class="pl-c1">=</span> <span class="pl-en">fake_function</span>(<span class="pl-s1">param</span><span class="pl-c1">=</span><span class="pl-s">'hello'</span>,
<span class="pl-s1">second_param</span><span class="pl-c1">=</span><span class="pl-s">'world'</span>, <span class="pl-c"># should have indented this line</span>
) <span class="pl-c"># and this one, too</span></pre></div>
<p dir="auto">After saving, <code class="notranslate">atom-beautify</code> correctly indents the parameters</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Bar(unittest.TestCase):
def test_indentation(self):
foo = fake_function(param='hello',
second_param='world', # fixed!
) # me, too!"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Bar</span>(<span class="pl-s1">unittest</span>.<span class="pl-v">TestCase</span>):
<span class="pl-k">def</span> <span class="pl-en">test_indentation</span>(<span class="pl-s1">self</span>):
<span class="pl-s1">foo</span> <span class="pl-c1">=</span> <span class="pl-en">fake_function</span>(<span class="pl-s1">param</span><span class="pl-c1">=</span><span class="pl-s">'hello'</span>,
<span class="pl-s1">second_param</span><span class="pl-c1">=</span><span class="pl-s">'world'</span>, <span class="pl-c"># fixed!</span>
) <span class="pl-c"># me, too!</span></pre></div>
<ol start="2" dir="auto">
<li>But now, <code class="notranslate">autoindent</code> fails to reset indentation back to the beginning of the line</li>
</ol>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" [...]
foo = fake_function(param='hello',
second_param='world',
)
bar = 'after_continuing typing' # ach!!"><pre class="notranslate"> [...]
<span class="pl-s1">foo</span> <span class="pl-c1">=</span> <span class="pl-en">fake_function</span>(<span class="pl-s1">param</span><span class="pl-c1">=</span><span class="pl-s">'hello'</span>,
<span class="pl-s1">second_param</span><span class="pl-c1">=</span><span class="pl-s">'world'</span>,
)
<span class="pl-s1">bar</span> <span class="pl-c1">=</span> <span class="pl-s">'after_continuing typing'</span> <span class="pl-c"># ach!!</span></pre></div>
<p dir="auto">Unfortunately <code class="notranslate">atom-beautify</code> doesn't quite fix this ever time.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" foo = fake_function(param='hello',
second_param='world',
)
bar = 'after_continuing typing'"><pre class="notranslate"> <span class="pl-s1">foo</span> <span class="pl-c1">=</span> <span class="pl-en">fake_function</span>(<span class="pl-s1">param</span><span class="pl-c1">=</span><span class="pl-s">'hello'</span>,
<span class="pl-s1">second_param</span><span class="pl-c1">=</span><span class="pl-s">'world'</span>,
)
<span class="pl-s1">bar</span> <span class="pl-c1">=</span> <span class="pl-s">'after_continuing typing'</span></pre></div>
<h2 dir="auto">Note</h2>
<p dir="auto">I recently updated atom-beautify as an attempt to help resolve the issue, but I am now getting errors there. The problems mentioned above still exist, but I will update if anything changes.</p>
<h2 dir="auto">Update</h2>
<p dir="auto">Here's some testing in</p>
<h4 dir="auto">Sublime3:</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
def testing_indentation_in_sublime(some_var):
first_line = "works"
second_test = func_indentation(multiple_param,
auto_indents,
still_here,
) # parenthesis auto matched when typed!
third_test = alt_indentation(
looks_just_like above,
which_was_wrong,
but_this_works,
)
fourth_line = existing_indentation('retry last pasting',
'broken')
and_indent_is_kept
fifth_line = backspace_only_does_one_space('testing existing indent',
'testing')
indentation = "working!!"
if check_nested_indent is not None:
basic_indent = True
elif check_indent:
also_works = True
if nested:
so_far = so_good
else:
also_good = True
else:
uh_oh = 'is this really that hard?'
return end_of_function
def still_indented():
'''sigh.'''
indentation = 'not perfect here, either (but way better)'"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">testing_indentation_in_sublime</span>(<span class="pl-s1">some_var</span>):
<span class="pl-s1">first_line</span> <span class="pl-c1">=</span> <span class="pl-s">"works"</span>
<span class="pl-s1">second_test</span> <span class="pl-c1">=</span> <span class="pl-en">func_indentation</span>(<span class="pl-s1">multiple_param</span>,
<span class="pl-s1">auto_indents</span>,
<span class="pl-s1">still_here</span>,
) <span class="pl-c"># parenthesis auto matched when typed!</span>
<span class="pl-s1">third_test</span> <span class="pl-c1">=</span> <span class="pl-en">alt_indentation</span>(
<span class="pl-s1">looks_just_like</span> <span class="pl-s1">above</span>,
<span class="pl-s1">which_was_wrong</span>,
<span class="pl-s1">but_this_works</span>,
)
<span class="pl-s1">fourth_line</span> <span class="pl-c1">=</span> <span class="pl-en">existing_indentation</span>(<span class="pl-s">'retry last pasting'</span>,
<span class="pl-s">'broken'</span>)
<span class="pl-s1">and_indent_is_kept</span>
<span class="pl-s1">fifth_line</span> <span class="pl-c1">=</span> <span class="pl-en">backspace_only_does_one_space</span>(<span class="pl-s">'testing existing indent'</span>,
<span class="pl-s">'testing'</span>)
<span class="pl-s1">indentation</span> <span class="pl-c1">=</span> <span class="pl-s">"working!!"</span>
<span class="pl-k">if</span> <span class="pl-s1">check_nested_indent</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>:
<span class="pl-s1">basic_indent</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span>
<span class="pl-k">elif</span> <span class="pl-s1">check_indent</span>:
<span class="pl-s1">also_works</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span>
<span class="pl-k">if</span> <span class="pl-s1">nested</span>:
<span class="pl-s1">so_far</span> <span class="pl-c1">=</span> <span class="pl-s1">so_good</span>
<span class="pl-k">else</span>:
<span class="pl-s1">also_good</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span>
<span class="pl-s1">else</span>:
<span class="pl-s1">uh_oh</span> <span class="pl-c1">=</span> <span class="pl-s">'is this really that hard?'</span>
<span class="pl-k">return</span> <span class="pl-s1">end_of_function</span>
<span class="pl-k">def</span> <span class="pl-en">still_indented</span>():
<span class="pl-s">'''sigh.'''</span>
<span class="pl-s1">indentation</span> <span class="pl-c1">=</span> <span class="pl-s">'not perfect here, either (but way better)'</span></pre></div>
<h4 dir="auto">Eclipse</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def indent_test_eclipse(some_var):
first_line = 'smoke test'
second_test = func_with_param(style_one,
hey_it_works,
)
back_to_the_beginning = 'holy crap.'
third_test = func_with_alt_style(
hrmmm,
)
if nested_indent is not None:
basic_indent = True
elif reindents_on_space_not_colon:
still_okay = True
if nested:
so_far = so_good
else:
also_good = True
else:
must_be_difficult = True
return end_of_function
def correctly_indents_after_return():
'''Woo hoo'''
return True"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">indent_test_eclipse</span>(<span class="pl-s1">some_var</span>):
<span class="pl-s1">first_line</span> <span class="pl-c1">=</span> <span class="pl-s">'smoke test'</span>
<span class="pl-s1">second_test</span> <span class="pl-c1">=</span> <span class="pl-en">func_with_param</span>(<span class="pl-s1">style_one</span>,
<span class="pl-s1">hey_it_works</span>,
)
<span class="pl-s1">back_to_the_beginning</span> <span class="pl-c1">=</span> <span class="pl-s">'holy crap.'</span>
<span class="pl-s1">third_test</span> <span class="pl-c1">=</span> <span class="pl-en">func_with_alt_style</span>(
<span class="pl-s1">hrmmm</span>,
)
<span class="pl-k">if</span> <span class="pl-s1">nested_indent</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>:
<span class="pl-s1">basic_indent</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span>
<span class="pl-k">elif</span> <span class="pl-s1">reindents_on_space_not_colon</span>:
<span class="pl-s1">still_okay</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span>
<span class="pl-k">if</span> <span class="pl-s1">nested</span>:
<span class="pl-s1">so_far</span> <span class="pl-c1">=</span> <span class="pl-s1">so_good</span>
<span class="pl-k">else</span>:
<span class="pl-s1">also_good</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span>
<span class="pl-s1">else</span>:
<span class="pl-s1">must_be_difficult</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span>
<span class="pl-k">return</span> <span class="pl-s1">end_of_function</span>
<span class="pl-k">def</span> <span class="pl-en">correctly_indents_after_return</span>():
<span class="pl-s">'''Woo hoo'''</span>
<span class="pl-k">return</span> <span class="pl-c1">True</span></pre></div> | <p dir="auto">Pressing enter after continuing a list or tuple on a second line. It should either auto indent one tab, or to the first char of the previous item, but it just goes to the beginning of the line. Manually pressing auto indent (Lines->Auto Indent, or cmd+i), doesn't do anything.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5131063/2825233/36a9156a-cf46-11e3-80fb-52b50022a042.png"><img src="https://cloud.githubusercontent.com/assets/5131063/2825233/36a9156a-cf46-11e3-80fb-52b50022a042.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">should be either</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="somefunc(bar,
m)"><pre class="notranslate"><code class="notranslate">somefunc(bar,
m)
</code></pre></div>
<p dir="auto">or</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="somefunc(bar,
m)"><pre class="notranslate"><code class="notranslate">somefunc(bar,
m)
</code></pre></div> | 1 |
<p dir="auto">Recently I have carefully read the code in <code class="notranslate">pytorch/torch/optim/sgd.py</code> . According to the document in this file, the current implementation of SGD optimizer is as follows:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="v_(t+1) = mu*v_t + grad(w_t)
w_(t+1) = w_t - lr*v_(t+1) "><pre class="notranslate"><code class="notranslate">v_(t+1) = mu*v_t + grad(w_t)
w_(t+1) = w_t - lr*v_(t+1)
</code></pre></div>
<p dir="auto">Where <code class="notranslate">v_t</code> is the momentum and <code class="notranslate">w_t</code> is the weight value in step <code class="notranslate">t</code>. <code class="notranslate">grad(x)</code> is the gradient for <code class="notranslate">x</code> .</p>
<p dir="auto">The implementation is OK for this formulation. But I am confused with the implementation of Nesterov Accelerated SGD(NAS). Following the formulation of [1][2], the formulation of NAS under PyTorch's implementation should be</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="v_(t+1) = mu*v_t + grad(w_t)
w_(t+1) = w_t + mu*(v_(t+1)-v_t) - lr*v_(t+1) "><pre class="notranslate"><code class="notranslate">v_(t+1) = mu*v_t + grad(w_t)
w_(t+1) = w_t + mu*(v_(t+1)-v_t) - lr*v_(t+1)
</code></pre></div>
<p dir="auto">However, the current implementation of NAS is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="v_(t+1) = mu*v_t + grad(w_t)
w_(t+1) = w_t - lr*(grad(w_t) + mu*v_(t+1))"><pre class="notranslate"><code class="notranslate">v_(t+1) = mu*v_t + grad(w_t)
w_(t+1) = w_t - lr*(grad(w_t) + mu*v_(t+1))
</code></pre></div>
<p dir="auto">I am not sure how to get this formulation. How do you think about this ?</p>
<p dir="auto">[1] <a href="http://cs231n.github.io/neural-networks-3/" rel="nofollow">http://cs231n.github.io/neural-networks-3/</a><br>
[2] <a href="http://www.cs.toronto.edu/~hinton/absps/momentum.pdf" rel="nofollow">http://www.cs.toronto.edu/~hinton/absps/momentum.pdf</a></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/Reproduce:</h2>
<p dir="auto">Slicing only sort-of-respects <code class="notranslate">no_grad()</code>. The resulting tensor does not have a history, but does require gradient. However using it does not then materialise a gradient accumulator.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch
x = torch.rand(2, 2, requires_grad=True)
with torch.no_grad():
y = x[:, :1]
z = y.clone()
print(y.requires_grad) # True
print(z.grad_fn.next_functions) # ((None, 0),)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span>
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">rand</span>(<span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-s1">requires_grad</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-k">with</span> <span class="pl-s1">torch</span>.<span class="pl-en">no_grad</span>():
<span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span>[:, :<span class="pl-c1">1</span>]
<span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-s1">y</span>.<span class="pl-en">clone</span>()
<span class="pl-en">print</span>(<span class="pl-s1">y</span>.<span class="pl-s1">requires_grad</span>) <span class="pl-c"># True</span>
<span class="pl-en">print</span>(<span class="pl-s1">z</span>.<span class="pl-s1">grad_fn</span>.<span class="pl-s1">next_functions</span>) <span class="pl-c"># ((None, 0),)</span></pre></div>
<p dir="auto">For context, this came up during a custom <code class="notranslate">autograd.Function.forward</code> where there's an implicit <code class="notranslate">no_grad()</code>.</p>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">For <code class="notranslate">y</code> not to require gradient.</p>
<h2 dir="auto">Environment</h2>
<ul dir="auto">
<li>PyTorch Version (e.g., 1.0): 1.6.0</li>
<li>OS (e.g., Linux): Linux</li>
<li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): conda</li>
<li>Python version: 3.8.3</li>
</ul> | 0 |
<p dir="auto">Is there a reason for not using <a href="https://github.com/zloirock/core-js">core-js</a>? From the <a href="http://kangax.github.io/compat-table/es6/#typescript" rel="nofollow">es6 compat table</a> core-js covers a lot more than <a href="http://kangax.github.io/compat-table/es6/#es6shim" rel="nofollow">es6-shim</a>.</p> | <p dir="auto">Currently we generate one setter registration per <code class="notranslate">bind</code> value. For example, this annotation:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'bind': {'text': 'tool-tip'}"><pre class="notranslate"><code class="notranslate">'bind': {'text': 'tool-tip'}
</code></pre></div>
<p dir="auto">attached to two classes, <code class="notranslate">A</code> and <code class="notranslate">B</code> would generate</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="registerSetters({'text': (A obj, String value) => obj.text = value})
registerSetters({'text': (B obj, String value) => obj.text = value})"><pre class="notranslate"><code class="notranslate">registerSetters({'text': (A obj, String value) => obj.text = value})
registerSetters({'text': (B obj, String value) => obj.text = value})
</code></pre></div>
<p dir="auto">Instead we need to generate a single setter registration using a common parent class of <code class="notranslate">A</code> and <code class="notranslate">B</code>. This would be tough to do without resolving in our transformer, which we would like to avoid. As a first approximation, we can omit the parameter type (<code class="notranslate">A</code> and <code class="notranslate">B</code> above) which will be interpreted as <code class="notranslate">dynamic</code>.</p>
<p dir="auto">To do this, we need global knowledge of the setters which would be registered.</p>
<ol dir="auto">
<li>Modify the <code class="notranslate">bind_generator</code> transformer, its primary inputs are the <code class="notranslate">.ngDeps.dart</code> files generated by the app entry points.</li>
<li>Parse these files, gathering information on the setters to be generated.</li>
<li>Also parse all <code class="notranslate">.ngDeps.dart</code> files imported by the primary inputs.</li>
<li>Where there are multiple setters for a single property, remove type information from the registered setter.</li>
<li>Output a <code class="notranslate">.ngSetters.dart</code> file with a <code class="notranslate">setupReflection</code> method that registers all setters.</li>
<li>Generate code to import and call <code class="notranslate">setupReflection</code> during app setup.</li>
</ol> | 0 |
<ul dir="auto">
<li>Electron version: 1.8.1</li>
<li>Operating system: macOS 10.12.5</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Tray > contextMenu > menuItem(role="about")</p>
<p dir="auto">when I click menuItem to show about panel, can handle click event to show app.</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">no place can write click handle can make app to activate</p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto">Create a menuItem with "about" role in the tray's contextMenu. Run another application, with the window at the top, covering the electron's app. Click about menuItem in tray contextmenu. Can not be shown covered under the about the panel</p> | <ul dir="auto">
<li>Electron version: Electron built at <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/electron/electron/commit/aea06ed95f0ae88b33a5853caa76cf921b11a7af/hovercard" href="https://github.com/electron/electron/commit/aea06ed95f0ae88b33a5853caa76cf921b11a7af"><tt>aea06ed</tt></a></li>
<li>Operating system: macOS 10.13.2</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto"><code class="notranslate">MenuItem</code> click handlers should get called in the popped up context menu.</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Click handlers never getting called back.</p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto">Open a popup in the main window:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="window.webContents.on('context-menu', (event) => {
const menu = new Menu()
menu.append(new MenuItem({label: 'MenuItem1', click() { console.log('item 1 clicked') }}))
menu.append(new MenuItem({type: 'separator'}))
menu.append(new MenuItem({label: 'MenuItem2', type: 'checkbox', checked: true}))
menu.popup(mainWindow)
})"><pre class="notranslate"><code class="notranslate">window.webContents.on('context-menu', (event) => {
const menu = new Menu()
menu.append(new MenuItem({label: 'MenuItem1', click() { console.log('item 1 clicked') }}))
menu.append(new MenuItem({type: 'separator'}))
menu.append(new MenuItem({label: 'MenuItem2', type: 'checkbox', checked: true}))
menu.popup(mainWindow)
})
</code></pre></div>
<p dir="auto">Right click on the running window and select <code class="notranslate">MenuItem1</code>, the log <code class="notranslate">item 1 clicked</code> should print but doesn't.</p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the issues of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the FAQ of this repository and believe that this is not a duplicate.</li>
</ul>
<p dir="auto">Environment<br>
Dubbo version: 2.7.2<br>
Operating System version: Mac OS<br>
Java version: 1.8<br>
Steps to reproduce this issue</p>
<p dir="auto">Infos:</p>
<table role="table">
<thead>
<tr>
<th>IP</th>
<th>SIDE</th>
<th>ENV</th>
<th>STATIC TAG</th>
<th>DYNAMIC TAG</th>
</tr>
</thead>
<tbody>
<tr>
<td>192.168.1.5</td>
<td>Consumer</td>
<td>DEV</td>
<td>DEV</td>
<td>hello</td>
</tr>
<tr>
<td>192.168.1.6</td>
<td>Provider</td>
<td>QA</td>
<td>QA</td>
<td></td>
</tr>
<tr>
<td>192.168.1.7</td>
<td>Provider</td>
<td>STABLE</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p dir="auto">When I config TagRouter like this (in Dubbo admin):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---
force: false
runtime: true
enabled: true
priority: 1
key: hello-service
tags:
- name: hello
addresses: ["192.168.1.8","192.168.1.9"]
..."><pre class="notranslate"><code class="notranslate">---
force: false
runtime: true
enabled: true
priority: 1
key: hello-service
tags:
- name: hello
addresses: ["192.168.1.8","192.168.1.9"]
...
</code></pre></div>
<p dir="auto">when without match dynamic tag and static tag<br>
Hope Result:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="192.168.1.5(DEV) => 192.168.1.7(STABLE)"><pre class="notranslate"><code class="notranslate">192.168.1.5(DEV) => 192.168.1.7(STABLE)
</code></pre></div>
<p dir="auto">Actual Result:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="192.168.1.5(DEV) => [NO PROVIDER]"><pre class="notranslate"><code class="notranslate">192.168.1.5(DEV) => [NO PROVIDER]
</code></pre></div>
<p dir="auto">原因:</p>
<p dir="auto">消费方初始化refer时,在ReferenceConfig中会将consumer的配置参数放入一个map(具体参考ReferenceConfig类中第303行<code class="notranslate">appendParameters(map, consumer)</code>),然后在创建代理的时候会合并消费方和提供方的配置参数(参考ReferenceConfig类中第371行<code class="notranslate">urls.add(ClusterUtils.mergeUrl(url, map));</code>),之后在ClusterUtils中尽管会保留提供方的配置,参数,但是在消费方设置了dubbo.tag参数,而提供方未设置dubbo.tag的情况下,导致加了消费方默认的dubbo.tag;</p>
<p dir="auto">然后在进行标签路由时,由于设置了动态标签路由,但是又没有匹配的提供方实例,最后会获取动态标签中不存在,且动态标签为空的实例(参考TagRouter类中第125~127行,如下)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" // FAILOVER: return all Providers without any tags.
else {
List<Invoker<T>> tmp = filterInvoker(invokers, invoker -> addressNotMatches(invoker.getUrl(),
tagRouterRuleCopy.getAddresses()));
return filterInvoker(tmp, invoker -> StringUtils.isEmpty(invoker.getUrl().getParameter(Constants.TAG_KEY)));
}"><pre class="notranslate"><code class="notranslate"> // FAILOVER: return all Providers without any tags.
else {
List<Invoker<T>> tmp = filterInvoker(invokers, invoker -> addressNotMatches(invoker.getUrl(),
tagRouterRuleCopy.getAddresses()));
return filterInvoker(tmp, invoker -> StringUtils.isEmpty(invoker.getUrl().getParameter(Constants.TAG_KEY)));
}
</code></pre></div>
<p dir="auto">但是由于之前在refer的时候合并了参数,这边尽管Stable下的实例192.168.1.7的ProviderConfig URL中不带Dubbo TAG,这里还是会获取到消费方的默认标签DEV。</p>
<p dir="auto">解决:<br>
修改判断条件:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="return filterInvoker(tmp, invoker -> StringUtils.isEmpty(url.getParameter(Constants.TAG_KEY)? StringUtils.isEmpty(invoker.getUrl().getParameter(Constants.TAG_KEY)) : invoker.getUrl().getParameter(Constants.TAG_KEY).equals(url.getParameter(Constants.TAG_KEY)) );"><pre class="notranslate"><code class="notranslate">return filterInvoker(tmp, invoker -> StringUtils.isEmpty(url.getParameter(Constants.TAG_KEY)? StringUtils.isEmpty(invoker.getUrl().getParameter(Constants.TAG_KEY)) : invoker.getUrl().getParameter(Constants.TAG_KEY).equals(url.getParameter(Constants.TAG_KEY)) );
</code></pre></div>
<p dir="auto">另外,发现标签路由的常量跟官方文档中不一致,实际上是:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="org.apache.dubbo.rpc.cluster.TAG_KEY
org.apache.dubbo.rpc.FORCE_USE_TAG"><pre class="notranslate"><code class="notranslate">org.apache.dubbo.rpc.cluster.TAG_KEY
org.apache.dubbo.rpc.FORCE_USE_TAG
</code></pre></div>
<p dir="auto">能够统一修正为:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="org.apache.dubbo.rpc.cluster.TAG_KEY
org.apache.dubbo.rpc.cluster.FORCE_KEY"><pre class="notranslate"><code class="notranslate">org.apache.dubbo.rpc.cluster.TAG_KEY
org.apache.dubbo.rpc.cluster.FORCE_KEY
</code></pre></div> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.6</li>
<li>Operating System version: mac 10.15</li>
<li>Java version: 1.8.0.231</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>spring boot应用中自定义ExportListener SPI扩展,记为X</li>
<li>在dubbo:service中设置listener为XXX</li>
<li>启动spring boot应用</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">What do you expected from the above steps?<br>
应用正常启动</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?<br>
异常堆栈如下,我跟踪了一下代码执行,问题出在org.apache.dubbo.config.utils.ConfigValidationUtils#validateServiceConfig方法中,先校验了一次ExporterListener.class的扩展点,而后在validateAbstractInterfaceConfig(config)中,针对同一个ServiceConfig校验了一次 InvokerListener.class的扩展。这个地方我感觉有问题,因为我是针对dubbo:service设置的ExporterListener,而InvokerListener因为是针对dubbo:reference的,为何针对dubbo:service也去校验InvokerListener扩展呢?</p>
<p dir="auto">java.lang.IllegalStateException: No such extension XXX for listener/org.apache.dubbo.rpc.InvokerListener<br>
at org.apache.dubbo.config.utils.ConfigValidationUtils.checkMultiExtension(ConfigValidationUtils.java:531)<br>
at org.apache.dubbo.config.utils.ConfigValidationUtils.validateAbstractInterfaceConfig(ConfigValidationUtils.java:299)<br>
at org.apache.dubbo.config.utils.ConfigValidationUtils.validateServiceConfig(ConfigValidationUtils.java:316)<br>
at org.apache.dubbo.config.ServiceConfig.checkAndUpdateSubConfigs(ServiceConfig.java:283)<br>
at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:193)<br>
at org.apache.dubbo.config.bootstrap.DubboBootstrap.lambda$exportServices$15(DubboBootstrap.java:917)<br>
at java.util.HashMap$Values.forEach(HashMap.java:981)<br>
at org.apache.dubbo.config.bootstrap.DubboBootstrap.exportServices(DubboBootstrap.java:905)<br>
at org.apache.dubbo.config.bootstrap.DubboBootstrap.start(DubboBootstrap.java:745)<br>
at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onContextRefreshedEvent(DubboBootstrapApplicationListener.java:59)<br>
at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onApplicationContextEvent(DubboBootstrapApplicationListener.java:52)<br>
at org.apache.dubbo.config.spring.context.OneTimeExecutionApplicationContextEventListener.onApplicationEvent(OneTimeExecutionApplicationContextEventListener.java:40)<br>
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)<br>
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)<br>
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)<br>
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:403)<br>
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:360)<br>
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:897)<br>
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:162)<br>
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:553)<br>
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)<br>
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)<br>
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)<br>
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)<br>
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)<br>
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)<br>
at cn.edu.bupt.Starter.main(Starter.java:18)</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here!
</code></pre></div> | 0 |
<p dir="auto">I have searched the issues of this repository and believe that this is not a duplicate.</p>
<p dir="auto">I would like to map through an array and render multiple components / elements inside of the Snackbar component.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" message={
<div>
{array.map(item => {
return (
<Chip
key={item}
className={classes.chip}
label={`${item}`}
onDelete={() => this.handleDelete(item)}
/>
)
})}
</div>
}"><pre class="notranslate"><code class="notranslate"> message={
<div>
{array.map(item => {
return (
<Chip
key={item}
className={classes.chip}
label={`${item}`}
onDelete={() => this.handleDelete(item)}
/>
)
})}
</div>
}
</code></pre></div>
<p dir="auto">This renders perfectly fine, however I believe there is no way to pass a key from what I see in the SnackbarContent.js file. This is what gives me the unique "key" warning. I could make a PR for it if anyone else things that would be a good idea.</p>
<p dir="auto">Thoughts?</p> | <p dir="auto">material-ui 1.0.0-beta16 is depend on recompose 0.26 and material-ui-icons beta.15 (latest) is depend on recompose 0.25</p>
<p dir="auto">it cause we see multiple recompose module in built bundle file. you can use <code class="notranslate">webpack-visualizer-plugin</code> for see more detail.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Your Environment</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ yarn list|grep -e material-ui -e recompose
├─ [email protected]
│ └─ recompose@^0.25.1
├─ [email protected]
│ ├─ recompose@^0.26.0
│ ├─ [email protected]
├─ [email protected]
$ yarn why recompose
yarn why v1.1.0
[1/4] Why do we have the module "recompose"...?
[2/4] Initialising dependency graph...
[3/4] Finding dependency...
[4/4] Calculating file sizes...
info This module exists because "material-ui-icons" depends on it.
info Disk size without dependencies: "4.86MB"
info Disk size with unique dependencies: "5.98MB"
info Disk size with transitive dependencies: "11.66MB"
info Number of shared dependencies: 16
Done in 1.04s."><pre class="notranslate"><code class="notranslate">$ yarn list|grep -e material-ui -e recompose
├─ [email protected]
│ └─ recompose@^0.25.1
├─ [email protected]
│ ├─ recompose@^0.26.0
│ ├─ [email protected]
├─ [email protected]
$ yarn why recompose
yarn why v1.1.0
[1/4] Why do we have the module "recompose"...?
[2/4] Initialising dependency graph...
[3/4] Finding dependency...
[4/4] Calculating file sizes...
info This module exists because "material-ui-icons" depends on it.
info Disk size without dependencies: "4.86MB"
info Disk size with unique dependencies: "5.98MB"
info Disk size with transitive dependencies: "11.66MB"
info Number of shared dependencies: 16
Done in 1.04s.
</code></pre></div>
<h2 dir="auto">how it should be fixed?</h2>
<p dir="auto">you need update recompose dependency in material-ui-icons. and both modules has same recompose.</p> | 0 |
<p dir="auto">Sorry for my poor English~<br>
My project dependencies are:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" "devDependencies": {
"babel-core": "^6.24.0",
"babel-loader": "^6.4.0",
"babel-preset-env": "^1.2.1",
"babel-preset-es2015": "^6.24.0",
"html-webpack-plugin": "^2.28.0",
"webpack": "^2.2.1",
"webpack-dev-server": "^2.4.1"
}"><pre class="notranslate"><code class="notranslate"> "devDependencies": {
"babel-core": "^6.24.0",
"babel-loader": "^6.4.0",
"babel-preset-env": "^1.2.1",
"babel-preset-es2015": "^6.24.0",
"html-webpack-plugin": "^2.28.0",
"webpack": "^2.2.1",
"webpack-dev-server": "^2.4.1"
}
</code></pre></div>
<p dir="auto">And the webpack.config.js has a loader :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" test: /\.(js|jsx)/,
use: "babel-loader?presets[]=env",
exclude: /(node_modules|idea)/"><pre class="notranslate"><code class="notranslate"> test: /\.(js|jsx)/,
use: "babel-loader?presets[]=env",
exclude: /(node_modules|idea)/
</code></pre></div>
<p dir="auto">the code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="for (let i = 0; i < 3; console.log(i),i++) {
let i = "abc";
console.log(i);
}"><pre class="notranslate"><code class="notranslate">for (let i = 0; i < 3; console.log(i),i++) {
let i = "abc";
console.log(i);
}
</code></pre></div>
<p dir="auto">expected result:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="abc
0
abc
1
abc
2"><pre class="notranslate"><code class="notranslate">abc
0
abc
1
abc
2
</code></pre></div>
<p dir="auto">but output</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="abc
abc"><pre class="notranslate"><code class="notranslate">abc
abc
</code></pre></div>
<p dir="auto">Is that a BUG?</p> | <blockquote>
<p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bergus/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bergus">@bergus</a></p>
</blockquote>
<h3 dir="auto">Bug information</h3>
<ul dir="auto">
<li><strong>Babel version:</strong> v6.x (babel.io/repl)</li>
</ul>
<h3 dir="auto">Options</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="plain preset es-2015, nothing else"><pre class="notranslate"><code class="notranslate">plain preset es-2015, nothing else
</code></pre></div>
<h3 dir="auto">Input code</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""use strict";
function foo1() {
for (let bar = 2; bar < 3; bar++) {
let bar = 4;
}
}
function foo2() {
var bar;
for (let bar = 2; bar < 3; bar++) {
let bar = 4;
}
}"><pre class="notranslate"><code class="notranslate">"use strict";
function foo1() {
for (let bar = 2; bar < 3; bar++) {
let bar = 4;
}
}
function foo2() {
var bar;
for (let bar = 2; bar < 3; bar++) {
let bar = 4;
}
}
</code></pre></div>
<p dir="auto">[[ https://babeljs.io/repl/#?evaluate=true&lineWrap=false&presets=es2015&code="use%20strict"%3Bfunction%20foo1()%20{%20%20for%20(let%20bar%20%3D%202%3B%20bar%20<%203%3B%20bar%2B%2B)%20{%20%20%20%20let%20bar%20%3D%204%3B%20%20}}function%20foo2()%20{%20%20var%20bar%3B%20%20for%20(let%20bar%20%3D%202%3B%20bar%20<%203%3B%20bar%2B%2B)%20{%20%20%20%20let%20bar%20%3D%204%3B%20%20}} | produces ]]</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""use strict";
function foo1() {
for (var bar = 2; bar < 3; bar++) {
var bar = 4;
}
}
function foo2() {
var bar;
for (var bar = 2; bar < 3; bar++) {
var _bar = 4;
}
}"><pre class="notranslate"><code class="notranslate">"use strict";
function foo1() {
for (var bar = 2; bar < 3; bar++) {
var bar = 4;
}
}
function foo2() {
var bar;
for (var bar = 2; bar < 3; bar++) {
var _bar = 4;
}
}
</code></pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">In <code class="notranslate">foo1</code> it should produce two different <code class="notranslate">bar</code> variables - the one in the body of the loop is block-scoped and not the same as the one created by the loop. See also <a href="http://stackoverflow.com/q/37855990/1048572" rel="nofollow">http://stackoverflow.com/q/37855990/1048572</a></p>
<p dir="auto">Now that might be a simple bug, but it's getting weird in <code class="notranslate">foo2</code> where a function-level <code class="notranslate">bar</code> is introduced (both <code class="notranslate">let</code> and <code class="notranslate">var</code> and parameters reproduce this). Here the <code class="notranslate">bar</code> variables of the loop and the body are indeed separated as expected, but the one of the loop header collides with the function-scope one. This does usually work - as long as there is no <code class="notranslate">let</code> declaration in the loop body.</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"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11365001/56267119-79b0fa00-6120-11e9-9b1d-cbebf41fb67f.png"><img src="https://user-images.githubusercontent.com/11365001/56267119-79b0fa00-6120-11e9-9b1d-cbebf41fb67f.png" alt="image" style="max-width: 100%;"></a></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">here is my code</p>
<p dir="auto">auto out = faceDetect->forward({ tensor_image }).toTuple();<br>
c10::cuda::CUDACachingAllocator::emptyCache();<br>
...some tensor ops on gpu<br>
boundingBoxesOfOne = torch::masked_select(boundingBoxesOfOne, mask);</p>
<p dir="auto">faceDetect is a sfd net,after forward(),if i call emptyCache(),it will cost 170ms time to emptyCache;if i don't call emptyCache(),masked_select will cost 170ms;so i don't know how to optimize this situation,thks!</p>
<h2 dir="auto">Environment</h2>
<p dir="auto">libtorch Version 1.0 :<br>
OS windows10:<br>
CUDA/cuDNN version: 9.0<br>
GPU models and configuration: GTX 1060</p>
<h2 dir="auto">Additional context</h2> | 1 |
<h1 dir="auto">Environment</h1>
<p dir="auto">Windows pro 1903<br>
4k with 225% for screen<br>
PowerToys version: v0.16.1</p>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Just drag and drop windows with 'shift'</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Fully using whole screen,<br>
Better assign 'win + shift + arrow' to fancyzones and leave 'win + arrow' as system default.<br>
It would be better if and adjust by drag the border of both zones as window system default for temporary.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">There is space not usable on the right of screen.<br>
Seems ok now with v0.16.1 after reboots (not sure is it because of reboots?) <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji></p>
<h1 dir="auto">Screenshots</h1>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/64181681/80296730-0076c900-87b0-11ea-90fc-ebe73535afd7.JPG"><img src="https://user-images.githubusercontent.com/64181681/80296730-0076c900-87b0-11ea-90fc-ebe73535afd7.JPG" alt="space" style="max-width: 100%;"></a></p> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Microsoft Windows [Version 10.0.18363.752]
PowerToys version: 16.1
PowerToy module for which you are reporting the bug (if applicable): FancyZones"><pre class="notranslate"><code class="notranslate">Microsoft Windows [Version 10.0.18363.752]
PowerToys version: 16.1
PowerToy module for which you are reporting the bug (if applicable): FancyZones
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Border to 0, 2 column layout, override windows snap<br>
Try snapping any windows explorer window</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">No gaps</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">There will be a gap at the left or right side depending on where you snap (snap left, gap left)</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1547237/78636804-a2a33f80-78db-11ea-8a64-c3ceb6a189d5.png"><img src="https://user-images.githubusercontent.com/1547237/78636804-a2a33f80-78db-11ea-8a64-c3ceb6a189d5.png" alt="fancy-zones-border" style="max-width: 100%;"></a></p>
<p dir="auto">Correct behaviour observed in version 14. Versions 15+ all have been tested and exhibit the "gap" behaviour.</p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.1+</li>
<li>Operating System version: mac</li>
<li>Java version: jdk</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" <dependencies>
...
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>hessian-lite</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
</dependency>
<dependency>
<groupId>com.esotericsoftware</groupId>
<artifactId>kryo</artifactId>
</dependency>
<dependency>
<groupId>de.javakaffee</groupId>
<artifactId>kryo-serializers</artifactId>
</dependency>
<dependency>
<groupId>de.ruedigermoeller</groupId>
<artifactId>fst</artifactId>
</dependency>
</dependencies>"><pre class="notranslate"> <<span class="pl-ent">dependencies</span>>
...
<<span class="pl-ent">dependency</span>>
<<span class="pl-ent">groupId</span>>com.alibaba</<span class="pl-ent">groupId</span>>
<<span class="pl-ent">artifactId</span>>hessian-lite</<span class="pl-ent">artifactId</span>>
</<span class="pl-ent">dependency</span>>
<<span class="pl-ent">dependency</span>>
<<span class="pl-ent">groupId</span>>com.alibaba</<span class="pl-ent">groupId</span>>
<<span class="pl-ent">artifactId</span>>fastjson</<span class="pl-ent">artifactId</span>>
</<span class="pl-ent">dependency</span>>
<<span class="pl-ent">dependency</span>>
<<span class="pl-ent">groupId</span>>com.esotericsoftware</<span class="pl-ent">groupId</span>>
<<span class="pl-ent">artifactId</span>>kryo</<span class="pl-ent">artifactId</span>>
</<span class="pl-ent">dependency</span>>
<<span class="pl-ent">dependency</span>>
<<span class="pl-ent">groupId</span>>de.javakaffee</<span class="pl-ent">groupId</span>>
<<span class="pl-ent">artifactId</span>>kryo-serializers</<span class="pl-ent">artifactId</span>>
</<span class="pl-ent">dependency</span>>
<<span class="pl-ent">dependency</span>>
<<span class="pl-ent">groupId</span>>de.ruedigermoeller</<span class="pl-ent">groupId</span>>
<<span class="pl-ent">artifactId</span>>fst</<span class="pl-ent">artifactId</span>>
</<span class="pl-ent">dependency</span>>
</<span class="pl-ent">dependencies</span>></pre></div>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">What do you expected from the above steps?</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here!
</code></pre></div> | <h1 dir="auto">Set consumer tag by RpcContext doesn't work</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.7</li>
<li>Operating System version: macOS 10.15.5</li>
<li>Java version: OpenJDK 11.0.7 2020-04-14</li>
<li>Config Center: nacos 1.3.0</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto"><a href="https://github.com/konanok/dubbo-demo">demo</a></p>
<ol dir="auto">
<li>start <a href="https://github.com/konanok/dubbo-demo/tree/master/dubbo-provider-demo">dubbo-provider-demo</a> with no tag</li>
<li>start <a href="https://github.com/konanok/dubbo-demo/tree/master/dubbo-consumer-demo">dubbo-consumer-demo</a> with <a href="https://github.com/konanok/dubbo-demo/blob/master/dubbo-spi/src/main/java/org/konanok/demo/dubbo/spi/router/DynamicTagRouter.java">DynamicTagRouter</a>, and it will set the consumer tag with "A"</li>
</ol>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="RpcContext.getContext().setAttachment(CommonConstants.TAG_KEY, tag);"><pre class="notranslate"><span class="pl-smi">RpcContext</span>.<span class="pl-en">getContext</span>().<span class="pl-en">setAttachment</span>(<span class="pl-smi">CommonConstants</span>.<span class="pl-c1">TAG_KEY</span>, <span class="pl-s1">tag</span>);</pre></div>
<ol start="3" dir="auto">
<li>create dubbo-provider-demo.tag-router on nacos</li>
</ol>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="enabled: true
force: true
key: dubbo-provider-demo
priority: 0
runtime: true
tags:
- addresses:
- 192.168.80.8:21881
name: A"><pre class="notranslate"><span class="pl-ent">enabled</span>: <span class="pl-c1">true</span>
<span class="pl-ent">force</span>: <span class="pl-c1">true</span>
<span class="pl-ent">key</span>: <span class="pl-s">dubbo-provider-demo</span>
<span class="pl-ent">priority</span>: <span class="pl-c1">0</span>
<span class="pl-ent">runtime</span>: <span class="pl-c1">true</span>
<span class="pl-ent">tags</span>:
- <span class="pl-ent">addresses</span>:
- <span class="pl-s">192.168.80.8:21881</span>
<span class="pl-ent">name</span>: <span class="pl-s">A</span></pre></div>
<ol start="4" dir="auto">
<li>invoke dubbo-consumer-demo's http-api to invoke dubbo-provider-demo's dubbo-api</li>
</ol>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="curl http://localhost:8282/dubbo/hello"><pre class="notranslate">curl http://localhost:8282/dubbo/hello</pre></div>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">Response successfully, such as:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Hello from host 192.168.80.8 at 2020-07-01 10:21:00"><pre lang="text" class="notranslate"><code class="notranslate">Hello from host 192.168.80.8 at 2020-07-01 10:21:00
</code></pre></div>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">Response error, is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{"timestamp":"2020-07-01T02:24:40.794+0000","status":500,"error":"Internal Server Error","message":"Failed to invoke the method hello in the service org.konanok.demo.dubbo.api.IDubboService. No provider available for the service org.konanok.demo.dubbo.api.IDubboService from registry 192.168.80.240:8851 on the consumer 192.168.80.8 using the dubbo version 2.7.7. Please check if the providers have been started and registered.","path":"/dubbo/hello"}"><pre lang="text" class="notranslate"><code class="notranslate">{"timestamp":"2020-07-01T02:24:40.794+0000","status":500,"error":"Internal Server Error","message":"Failed to invoke the method hello in the service org.konanok.demo.dubbo.api.IDubboService. No provider available for the service org.konanok.demo.dubbo.api.IDubboService from registry 192.168.80.240:8851 on the consumer 192.168.80.8 using the dubbo version 2.7.7. Please check if the providers have been started and registered.","path":"/dubbo/hello"}
</code></pre></div>
<p dir="auto">YouTrack:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR 95351 --- [nio-8282-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.dubbo.rpc.RpcException: Failed to invoke the method hello in the service org.konanok.demo.dubbo.api.IDubboService. No provider available for the service org.konanok.demo.dubbo.api.IDubboService from registry 192.168.80.240:8848 on the consumer 192.168.80.8 using the dubbo version 2.7.7. Please check if the providers have been started and registered.] with root cause
org.apache.dubbo.rpc.RpcException: Failed to invoke the method hello in the service org.konanok.demo.dubbo.api.IDubboService. No provider available for the service org.konanok.demo.dubbo.api.IDubboService from registry 192.168.80.240:8848 on the consumer 192.168.80.8 using the dubbo version 2.7.7. Please check if the providers have been started and registered.
at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.checkInvokers(AbstractClusterInvoker.java:282) ~[dubbo-2.7.7.jar:2.7.7]
at org.apache.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:59) ~[dubbo-2.7.7.jar:2.7.7]
at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:259) ~[dubbo-2.7.7.jar:2.7.7]
at org.apache.dubbo.rpc.cluster.interceptor.ClusterInterceptor.intercept(ClusterInterceptor.java:47) ~[dubbo-2.7.7.jar:2.7.7]
at org.apache.dubbo.rpc.cluster.support.wrapper.AbstractCluster$InterceptorInvokerNode.invoke(AbstractCluster.java:92) ~[dubbo-2.7.7.jar:2.7.7]
at org.apache.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:82) ~[dubbo-2.7.7.jar:2.7.7]
at org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:74) ~[dubbo-2.7.7.jar:2.7.7]
at org.apache.dubbo.common.bytecode.proxy0.hello(proxy0.java) ~[dubbo-2.7.7.jar:2.7.7]
at org.konanok.demo.dubbo.consumer.controller.DubboController.hello(DubboController.java:19) ~[classes/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) ~[spring-web-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) ~[spring-web-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105) ~[spring-webmvc-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:879) ~[spring-webmvc-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793) ~[spring-webmvc-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040) ~[spring-webmvc-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) ~[spring-webmvc-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898) ~[spring-webmvc-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:634) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-embed-websocket-9.0.34.jar:9.0.34]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na]"><pre lang="youtrack" class="notranslate"><code class="notranslate">ERROR 95351 --- [nio-8282-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.dubbo.rpc.RpcException: Failed to invoke the method hello in the service org.konanok.demo.dubbo.api.IDubboService. No provider available for the service org.konanok.demo.dubbo.api.IDubboService from registry 192.168.80.240:8848 on the consumer 192.168.80.8 using the dubbo version 2.7.7. Please check if the providers have been started and registered.] with root cause
org.apache.dubbo.rpc.RpcException: Failed to invoke the method hello in the service org.konanok.demo.dubbo.api.IDubboService. No provider available for the service org.konanok.demo.dubbo.api.IDubboService from registry 192.168.80.240:8848 on the consumer 192.168.80.8 using the dubbo version 2.7.7. Please check if the providers have been started and registered.
at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.checkInvokers(AbstractClusterInvoker.java:282) ~[dubbo-2.7.7.jar:2.7.7]
at org.apache.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:59) ~[dubbo-2.7.7.jar:2.7.7]
at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:259) ~[dubbo-2.7.7.jar:2.7.7]
at org.apache.dubbo.rpc.cluster.interceptor.ClusterInterceptor.intercept(ClusterInterceptor.java:47) ~[dubbo-2.7.7.jar:2.7.7]
at org.apache.dubbo.rpc.cluster.support.wrapper.AbstractCluster$InterceptorInvokerNode.invoke(AbstractCluster.java:92) ~[dubbo-2.7.7.jar:2.7.7]
at org.apache.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:82) ~[dubbo-2.7.7.jar:2.7.7]
at org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:74) ~[dubbo-2.7.7.jar:2.7.7]
at org.apache.dubbo.common.bytecode.proxy0.hello(proxy0.java) ~[dubbo-2.7.7.jar:2.7.7]
at org.konanok.demo.dubbo.consumer.controller.DubboController.hello(DubboController.java:19) ~[classes/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) ~[spring-web-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) ~[spring-web-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105) ~[spring-webmvc-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:879) ~[spring-webmvc-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793) ~[spring-webmvc-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040) ~[spring-webmvc-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) ~[spring-webmvc-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898) ~[spring-webmvc-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:634) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-embed-websocket-9.0.34.jar:9.0.34]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.34.jar:9.0.34]
at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na]
</code></pre></div>
<h3 dir="auto">Question</h3>
<p dir="auto">I read the TagRouter source code, and notice that, on <strong>Line 100</strong>, dubbo try to get the consumer's tag from <strong>URL</strong> and <strong>Invocation</strong> only, but not <strong>RpcContext</strong>.</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Override
public <T> List<Invoker<T>> route(List<Invoker<T>> invokers, URL url, Invocation invocation) throws RpcException {
// ...
String tag = StringUtils.isEmpty(invocation.getAttachment(TAG_KEY)) ? url.getParameter(TAG_KEY) :
invocation.getAttachment(TAG_KEY);
// ...
}"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">Override</span>
<span class="pl-k">public</span> <<span class="pl-smi">T</span>> <span class="pl-s1">List</span><<span class="pl-s1">Invoker</span><<span class="pl-s1">T</span>>> <span class="pl-s1">route</span>(<span class="pl-smi">List</span><<span class="pl-smi">Invoker</span><<span class="pl-smi">T</span>>> <span class="pl-s1">invokers</span>, <span class="pl-smi">URL</span> <span class="pl-s1">url</span>, <span class="pl-smi">Invocation</span> <span class="pl-s1">invocation</span>) <span class="pl-k">throws</span> <span class="pl-s1">RpcException</span> {
<span class="pl-c">// ...</span>
<span class="pl-smi">String</span> <span class="pl-s1">tag</span> = <span class="pl-smi">StringUtils</span>.<span class="pl-en">isEmpty</span>(<span class="pl-s1">invocation</span>.<span class="pl-en">getAttachment</span>(<span class="pl-c1">TAG_KEY</span>)) ? <span class="pl-s1">url</span>.<span class="pl-en">getParameter</span>(<span class="pl-c1">TAG_KEY</span>) :
<span class="pl-s1">invocation</span>.<span class="pl-en">getAttachment</span>(<span class="pl-c1">TAG_KEY</span>);
<span class="pl-c">// ...</span>
}</pre></div>
<p dir="auto"><a href="https://dubbo.apache.org/zh-cn/docs/user/demos/routing-rule.html" rel="nofollow">TagRouter Document</a> tell me to set consumer tag by <strong>RpcContext</strong>... <g-emoji class="g-emoji" alias="sweat" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f613.png">😓</g-emoji><g-emoji class="g-emoji" alias="sweat" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f613.png">😓</g-emoji><g-emoji class="g-emoji" alias="sweat" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f613.png">😓</g-emoji></p>
<blockquote>
<p dir="auto">RpcContext.getContext().setAttachment(Constants.REQUEST_TAG_KEY,"tag1");</p>
</blockquote>
<p dir="auto">The document also has a problem, <strong>Constants.REQUEST_TAG_KEY</strong> is gone, current correct key is <strong>CommonConstants.TAG_KEY</strong>, maybe someone should fix it.</p>
<p dir="auto">I have no idea that why dubbo didn't try to get tag from RpcContext at this place, does anybody can explain this? if not, I think RpcContext's attachment tag should have a high priority, and the code should be fixed such as:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Override
public <T> List<Invoker<T>> route(List<Invoker<T>> invokers, URL url, Invocation invocation) throws RpcException {
// ...
String tag = StringUtils.isEmpty(RpcContext.getContext().getAttachment(TAG_KEY)) ? (
StringUtils.isEmpty(invocation.getAttachment(TAG_KEY)) ?
url.getParameter(TAG_KEY) :
invocation.getAttachment(TAG_KEY)) :
RpcContext.getContext().getAttachment(TAG_KEY);
// ...
}"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">Override</span>
<span class="pl-k">public</span> <<span class="pl-smi">T</span>> <span class="pl-s1">List</span><<span class="pl-s1">Invoker</span><<span class="pl-s1">T</span>>> <span class="pl-s1">route</span>(<span class="pl-smi">List</span><<span class="pl-smi">Invoker</span><<span class="pl-smi">T</span>>> <span class="pl-s1">invokers</span>, <span class="pl-smi">URL</span> <span class="pl-s1">url</span>, <span class="pl-smi">Invocation</span> <span class="pl-s1">invocation</span>) <span class="pl-k">throws</span> <span class="pl-s1">RpcException</span> {
<span class="pl-c">// ...</span>
<span class="pl-smi">String</span> <span class="pl-s1">tag</span> = <span class="pl-smi">StringUtils</span>.<span class="pl-en">isEmpty</span>(<span class="pl-smi">RpcContext</span>.<span class="pl-en">getContext</span>().<span class="pl-en">getAttachment</span>(<span class="pl-c1">TAG_KEY</span>)) ? (
<span class="pl-smi">StringUtils</span>.<span class="pl-en">isEmpty</span>(<span class="pl-s1">invocation</span>.<span class="pl-en">getAttachment</span>(<span class="pl-c1">TAG_KEY</span>)) ?
<span class="pl-s1">url</span>.<span class="pl-en">getParameter</span>(<span class="pl-c1">TAG_KEY</span>) :
<span class="pl-s1">invocation</span>.<span class="pl-en">getAttachment</span>(<span class="pl-c1">TAG_KEY</span>)) :
<span class="pl-smi">RpcContext</span>.<span class="pl-en">getContext</span>().<span class="pl-en">getAttachment</span>(<span class="pl-c1">TAG_KEY</span>);
<span class="pl-c">// ...</span>
}</pre></div>
<p dir="auto">Thanks!❤️</p> | 0 |
<p dir="auto">Given a <code class="notranslate">tsconfig</code> like this:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"extends": ["@tsconfig/strictest/tsconfig.json", "@tsconfig/node16/tsconfig.json"],
}"><pre class="notranslate">{
<span class="pl-ent">"extends"</span>: [<span class="pl-s"><span class="pl-pds">"</span>@tsconfig/strictest/tsconfig.json<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>@tsconfig/node16/tsconfig.json<span class="pl-pds">"</span></span>],
}</pre></div>
<p dir="auto">An error like this happens:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="playwright test --config tests/e2e/config.ts
TypeError: The "path" argument must be of type string. Received an instance of Array"><pre class="notranslate"><code class="notranslate">playwright test --config tests/e2e/config.ts
TypeError: The "path" argument must be of type string. Received an instance of Array
</code></pre></div> | <p dir="auto">Let us know what functionality you'd like to see in Playwright and what your use case is.<br>
Do you think others might benefit from this as well?</p>
<p dir="auto">I consider it worthwhile to introduce new kinds of matchers to expect the number of elements that <code class="notranslate">locator.count()</code> returns.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const locator = page.locator('.selector')
await expect(locator).toHaveCount(2) // already implemented
await expect(locator).toHaveCountGreaterThan(5)
await expect(locator).toHaveCountLowerThan(10)"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">locator</span> <span class="pl-c1">=</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'.selector'</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">locator</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">2</span><span class="pl-kos">)</span> <span class="pl-c">// already implemented</span>
<span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">locator</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveCountGreaterThan</span><span class="pl-kos">(</span><span class="pl-c1">5</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">locator</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveCountLowerThan</span><span class="pl-kos">(</span><span class="pl-c1">10</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">For consistency, there could also be added <code class="notranslate">.toHaveLengthGreaterThan()</code> and <code class="notranslate">.toHaveLengthLowerThan()</code>.</p> | 0 |
<p dir="auto">I found the animations doesn't save in Storage.</p> | <h5 dir="auto">Description of the problem</h5>
<p dir="auto">There are several features of <code class="notranslate">THREE</code> that aren't accessible from the Editor. When I say accessible, I mean combination of:</p>
<ul dir="auto">
<li>properties are not visible for editing</li>
<li>objects not being able to be created</li>
<li>objects not being able to be imported or exported.</li>
</ul>
<p dir="auto">Ideally, the Editor should be capable of creating and editing most objects and features that the API contains. This issue is really more to keep track of what the Editor can and can't do currently. I'm listing features that I think the Editor would be capable of handling.</p>
<h4 dir="auto">Cameras</h4>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">PerspectiveCamera</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">OrthographicCamera</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <del><code class="notranslate">ArrayCamera</code></del></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <del><code class="notranslate">CubeCamera</code></del></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <del><code class="notranslate">StereoCamera</code></del></li>
</ul>
<h4 dir="auto">Core</h4>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">BufferAttribute</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">BufferGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">Layers</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">InstancedBufferAttribute</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">InstancedBufferGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">InstancedInterleavedBuffer</code> * (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="424621725" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/16050" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/16050/hovercard" href="https://github.com/mrdoob/three.js/pull/16050">#16050</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">InterleavedBufferAttribute</code></li>
</ul>
<h4 dir="auto">Geometry</h4>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">BoxGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">CircleGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">ConeGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">CylinderGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">DodecahedronGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">EdgesGeometry</code> *</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">ExtrudeGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">IcosahedronGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">LatheGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">OctahedronGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">PlaneGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">RingGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">ShapeGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">SphereGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">TetrahedronGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">TorusGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">TorusKnotGemetry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">TubeGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">WireframeGeometry</code> **</li>
</ul>
<h4 dir="auto">Lights</h4>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">AmbientLight</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">DirectionalLight</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">HemisphereLight</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">PointLight</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">RectAreaLight</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="433035472" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/16251" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/16251/hovercard" href="https://github.com/mrdoob/three.js/pull/16251">#16251</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">SpotLight</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">LightProbe</code></li>
</ul>
<h4 dir="auto">Materials</h4>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">LineBasicMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">LineDashedMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">MeshBasicMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">MeshDepthMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">MeshLambertMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">MeshMatcapMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">MeshNormalMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">MeshPhongMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">MeshPhysicalMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">MeshStandardMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">MeshToonMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">PointsMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">RawShaderMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">ShaderMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">ShadowMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">SpriteMaterial</code></li>
</ul>
<h4 dir="auto">Objects</h4>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">Group</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">LOD</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">Line</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">LineLoop</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">LineSegments</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">Mesh</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">InstancedMesh</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">Points</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">SkinnedMesh</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">Sprite</code></li>
</ul>
<h4 dir="auto">Textures</h4>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">Texture</code> (properties not editable <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="314973256" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/13882" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/13882/hovercard" href="https://github.com/mrdoob/three.js/issues/13882">#13882</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="405980591" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/15695" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/15695/hovercard" href="https://github.com/mrdoob/three.js/pull/15695">#15695</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">CubeTexture</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="314913050" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/13880" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/13880/hovercard" href="https://github.com/mrdoob/three.js/issues/13880">#13880</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">VideoTexture</code></li>
</ul>
<h4 dir="auto">Misc</h4>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Animations</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Audio</li>
</ul>
<p dir="auto">* = Serializable, but not deserializable<br>
** = Serializable, but not as the original geometry (i.e. <code class="notranslate">WireframeGeometry</code> is serialized as <code class="notranslate">BufferGeometry</code>)</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=""> r103</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" 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> | 1 |
<p dir="auto">glTF files assume that morph target data is specified as relative adjustments, and three.js assumes that the data in morph target buffers is absolute.</p>
<p dir="auto">This leads to a few obvious memory/performance caveats - the morph target data needs to be duplicated and modified during import - but also leads to inability to use a very narrow type for position deltas.</p>
<p dir="auto">For example, when data is quantized with gltfpack (which makes the glTF files technically invalid right now but this will change soon: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="496845080" data-permission-text="Title is private" data-url="https://github.com/KhronosGroup/glTF/issues/1673" data-hovercard-type="pull_request" data-hovercard-url="/KhronosGroup/glTF/pull/1673/hovercard" href="https://github.com/KhronosGroup/glTF/pull/1673">KhronosGroup/glTF#1673</a>), the positions typically use UInt16 and morph target deltas use Int16. However, very frequently the morph target delta range is small enough to fit in Int8 - because three.js attempts to reconstruct the absolute position however, attempting to encode Int8 deltas leads to decoding issues on three.js side. Babylon.JS handles files like this perfectly.</p>
<p dir="auto">I'd like to fix this - the obvious tactical fix is changing the morph target attribute cloning to assume the type of the base attribute, not morph target. However, I'd like to check - what are the thoughts of fixing this by adding support to three.js for relative morph target data?</p>
<p dir="auto">In theory, the formulas are compatible to not require any shader code duplication - specifically, this equation that three.js currently uses:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="basePosition
+ weight0 * ( morphPosition0 - basePosition )
+ weight1 * ( morphPosition1 - basePosition )"><pre class="notranslate"><code class="notranslate">basePosition
+ weight0 * ( morphPosition0 - basePosition )
+ weight1 * ( morphPosition1 - basePosition )
</code></pre></div>
<p dir="auto">and this equation that glTF assumes:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="basePosition
+ weight0 * glTFmorphPosition0
+ weight1 * glTFmorphPosition1"><pre class="notranslate"><code class="notranslate">basePosition
+ weight0 * glTFmorphPosition0
+ weight1 * glTFmorphPosition1
</code></pre></div>
<p dir="auto">can be reformulated as:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="weightBase * basePosition
+ weight0 * morphPosition0
+ weight1 * morphPosition1"><pre class="notranslate"><code class="notranslate">weightBase * basePosition
+ weight0 * morphPosition0
+ weight1 * morphPosition1
</code></pre></div>
<p dir="auto">After which for glTF style files the shader needs <code class="notranslate">[1, weight0, weight1, ...]</code> as an input, whereas normally you'd pass <code class="notranslate">[1 - weight0 - weight1 - ..., weight0, weight1, ...]</code> as an input. So by adding some sort of flag to three.js mesh (e.g. <code class="notranslate">morphTargetsAreDeltas</code>) and a bit of JS code to compute the weights correctly, we could support both with minimal cost.</p> | <p dir="auto">Right now there is a parameter in the shaders that lets you render backfaces. It does so by setting CCW and it inverts the normals:</p>
<p dir="auto">FlipSided changes CCW:</p>
<p dir="auto"><a href="https://github.com/mrdoob/three.js/blob/master/src/renderers/WebGLRenderer.js#L5285">https://github.com/mrdoob/three.js/blob/master/src/renderers/WebGLRenderer.js#L5285</a></p>
<p dir="auto">FlipSided also changes normal:</p>
<p dir="auto"><a href="https://github.com/mrdoob/three.js/blob/master/src/renderers/webgl/WebGLProgram.js#L140">https://github.com/mrdoob/three.js/blob/master/src/renderers/webgl/WebGLProgram.js#L140</a></p>
<p dir="auto"><a href="https://github.com/mrdoob/three.js/blob/master/src/renderers/shaders/ShaderChunk.js#L1355">https://github.com/mrdoob/three.js/blob/master/src/renderers/shaders/ShaderChunk.js#L1355</a></p>
<p dir="auto">But sometimes one has a negative scale in the transform matrix -- in DCC programs like 3DS Max, Maya, Softimage, etc, it means flip the object. The way to do this is to have CCW set (as opposed to CW) but keep the normals the way they are (because they are already flipped by the matrix transform.) To achieve this efficiently with ThreeJS it is necessary to be able to set CCW/CW independently of flipping the normals.</p>
<p dir="auto">Right now there is no flag that allows for CCW but without inverting the normals. Can we add some option that enables this?</p>
<p dir="auto">Even if we had another option called FLIP_NORMAL/flipNormals that would just invert normals from whatever they are set via flipSided/FLIP_SIDED. In our case we could set both flipSided and flipNormals to achieve our desired result. This would be backwards compatible.</p>
<p dir="auto">We can make the PR if this is acceptable.</p> | 0 |
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/1628" rel="nofollow">http://projects.scipy.org/scipy/ticket/1628</a> on 2012-03-25 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/WarrenWeckesser/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/WarrenWeckesser">@WarrenWeckesser</a>, assigned to unknown.</em></p>
<p dir="auto">stats.gamma.pdf(x, 1) should be equivalent to exp(-x). In particular, stats.gamma.pdf(0, 1) should be 1. Currently it returns nan:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: import scipy
In [2]: scipy.__version__
Out[2]: '0.11.0.dev-9ee2d9b'
In [3]: from scipy.stats import gamma
In [4]: gamma.pdf([0.0, 0.0001], 1.0)
/Users/warren/local_scipy/lib/python2.7/site-packages/scipy/stats/distributions.py:3353: RuntimeWarning: divide by zero encountered in log
return (a-1)*log(x) - x - gamln(a)
/Users/warren/local_scipy/lib/python2.7/site-packages/scipy/stats/distributions.py:3353: RuntimeWarning: invalid value encountered in multiply
return (a-1)*log(x) - x - gamln(a)
Out[4]: array([ nan, 0.9999])"><pre class="notranslate"><code class="notranslate">In [1]: import scipy
In [2]: scipy.__version__
Out[2]: '0.11.0.dev-9ee2d9b'
In [3]: from scipy.stats import gamma
In [4]: gamma.pdf([0.0, 0.0001], 1.0)
/Users/warren/local_scipy/lib/python2.7/site-packages/scipy/stats/distributions.py:3353: RuntimeWarning: divide by zero encountered in log
return (a-1)*log(x) - x - gamln(a)
/Users/warren/local_scipy/lib/python2.7/site-packages/scipy/stats/distributions.py:3353: RuntimeWarning: invalid value encountered in multiply
return (a-1)*log(x) - x - gamln(a)
Out[4]: array([ nan, 0.9999])
</code></pre></div> | <p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/1326" rel="nofollow">http://projects.scipy.org/scipy/ticket/1326</a> on 2010-11-10 by trac user tpikonen, assigned to unknown.</em></p>
<p dir="auto">In [331]: scipy.stats.distributions.chi2.pdf(0.0, 2)</p>
<p dir="auto">Out[331]: nan</p>
<p dir="auto">The correct value is 0.5.</p>
<p dir="auto">Attached is a patch which fixes this.</p> | 1 |
<p dir="auto">I would like to automate mobile native apps through Playwright. It would be really nice if you add this feature so we dont have to use different framework.</p> | <p dir="auto">Is there any way to connect to a device, start a browser (e.g. chromium instance on Android) and run the tests?</p>
<p dir="auto">If not, what is missing at this point to be able to use it on both Android and iOS?</p>
<hr>
<h3 dir="auto"><strong>Note from maintainers:</strong></h3>
<p dir="auto">Please refer to the <a href="https://playwright.dev/docs/next/api/class-android" rel="nofollow">https://playwright.dev/docs/next/api/class-android</a> for<br>
instructions on how to use Playwright with Chrome for Android, Android<br>
WebViews and Android itself</p>
<hr> | 1 |
<p dir="auto">I just follow <a href="https://github.com/atom/electron/blob/master/docs/tutorial/devtools-extension.md#devtools-extension">DevTools extension</a> document, and when I called below on my electron chrome console</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="require('remote').require('browser-window').addDevToolsExtension('/some-directory/react-devtools')
// return "React Developer Tools""><pre class="notranslate"><span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'remote'</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">'browser-window'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">addDevToolsExtension</span><span class="pl-kos">(</span><span class="pl-s">'/some-directory/react-devtools'</span><span class="pl-kos">)</span>
<span class="pl-c">// return "React Developer Tools"</span></pre></div>
<p dir="auto">But I got a TypeError log on terminal:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[1438:0520/120118:ERROR:CONSOLE(74)] "Uncaught TypeError: Cannot read property 'getURL' of undefined", source: chrome-extension://extension-1/agents/ReactInspectorAgent.js (74)"><pre class="notranslate"><code class="notranslate">[1438:0520/120118:ERROR:CONSOLE(74)] "Uncaught TypeError: Cannot read property 'getURL' of undefined", source: chrome-extension://extension-1/agents/ReactInspectorAgent.js (74)
</code></pre></div>
<p dir="auto">I went through <code class="notranslate">ReactInspectorAgent.js</code> <a href="https://github.com/facebook/react-devtools/blob/master/agents/ReactInspectorAgent.js#L74">line 74</a>:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// agents/ReactInspectorAgent.js
var runtimeURL = chrome.extension.getURL(fileName);"><pre class="notranslate"><span class="pl-c">// agents/ReactInspectorAgent.js</span>
<span class="pl-k">var</span> <span class="pl-s1">runtimeURL</span> <span class="pl-c1">=</span> <span class="pl-s1">chrome</span><span class="pl-kos">.</span><span class="pl-c1">extension</span><span class="pl-kos">.</span><span class="pl-en">getURL</span><span class="pl-kos">(</span><span class="pl-s1">fileName</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">It looks like <code class="notranslate">chrome.extension</code> is <code class="notranslate">undefined</code>, how this could be happened?</p>
<ul dir="auto">
<li>Electron 0.25.1</li>
<li>react-devtools 0.13.1</li>
</ul> | <p dir="auto">you have the documentation<br>
<a href="https://github.com/atom/electron/blob/master/docs/tutorial/devtools-extension.md">https://github.com/atom/electron/blob/master/docs/tutorial/devtools-extension.md</a><br>
It described that can use plug-ins from google chrome, made as described therein, and then get an error</p>
<p dir="auto">Uncaught TypeError: Cannot read property 'getURL' of undefined", source: chrome-extension://extension-1//panes/assets/ember-inspector.js (1)</p>
<p dir="auto">code, a request of this type</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="chrome.extension.getURL("/panes/ember_debug.js")"><pre class="notranslate"><code class="notranslate">chrome.extension.getURL("/panes/ember_debug.js")
</code></pre></div>
<p dir="auto">so that the error is not exactly in the plugin, as it is normal in the google chrome working</p> | 1 |
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">copy</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.4.2.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.14+ (default, Dec 5 2017, 15:17:02) [GCC 7.2.0]
"><pre class="notranslate"><code class="notranslate">ansible 2.4.2.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.14+ (default, Dec 5 2017, 15:17:02) [GCC 7.2.0]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">default configuration</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Linux / Linux</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">The copy module copies only directories, no files. The directories look fine and are created recursively, however no files are copied. If you run the playbook again then the files too are copied.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ find . -ls
852461 4 drwxr-xr-x 3 user user 4096 Jan 15 14:00 .
852463 4 drwxr-xr-x 4 user user 4096 Jan 15 13:59 ./source
860161 4 drwxr-xr-x 2 user user 4096 Jan 15 13:59 ./source/one
846271 4 -rw-r--r-- 1 user user 4 Jan 15 13:59 ./source/one/afile
942425 4 drwxr-xr-x 2 user user 4096 Jan 15 13:59 ./source/two
846272 4 -rw-r--r-- 1 user user 121 Jan 15 14:00 ./test.yml
$ ansible-playbook test.yml
[WARNING]: Unable to parse /etc/ansible/hosts as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: Could not match supplied host pattern, ignoring: all
[WARNING]: provided hosts list is empty, only localhost is available
PLAY [localhost] *****************************************************************************************
TASK [copy] **********************************************************************************************
changed: [localhost]
PLAY RECAP ***********************************************************************************************
localhost : ok=1 changed=1 unreachable=0 failed=0
$ find . -ls
852461 4 drwxr-xr-x 4 user user 4096 Jan 15 14:01 .
852463 4 drwxr-xr-x 4 user user 4096 Jan 15 13:59 ./source
860161 4 drwxr-xr-x 2 user user 4096 Jan 15 13:59 ./source/one
846271 4 -rw-r--r-- 1 user user 4 Jan 15 13:59 ./source/one/afile
942425 4 drwxr-xr-x 2 user user 4096 Jan 15 13:59 ./source/two
942429 4 drwxr-xr-x 3 user user 4096 Jan 15 14:01 ./target
942430 4 drwxr-xr-x 4 user user 4096 Jan 15 14:01 ./target/source
942431 4 drwxr-xr-x 2 user user 4096 Jan 15 14:01 ./target/source/one
942432 4 drwxr-xr-x 2 user user 4096 Jan 15 14:01 ./target/source/two
846272 4 -rw-r--r-- 1 user user 121 Jan 15 14:00 ./test.yml"><pre class="notranslate"><code class="notranslate">$ find . -ls
852461 4 drwxr-xr-x 3 user user 4096 Jan 15 14:00 .
852463 4 drwxr-xr-x 4 user user 4096 Jan 15 13:59 ./source
860161 4 drwxr-xr-x 2 user user 4096 Jan 15 13:59 ./source/one
846271 4 -rw-r--r-- 1 user user 4 Jan 15 13:59 ./source/one/afile
942425 4 drwxr-xr-x 2 user user 4096 Jan 15 13:59 ./source/two
846272 4 -rw-r--r-- 1 user user 121 Jan 15 14:00 ./test.yml
$ ansible-playbook test.yml
[WARNING]: Unable to parse /etc/ansible/hosts as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: Could not match supplied host pattern, ignoring: all
[WARNING]: provided hosts list is empty, only localhost is available
PLAY [localhost] *****************************************************************************************
TASK [copy] **********************************************************************************************
changed: [localhost]
PLAY RECAP ***********************************************************************************************
localhost : ok=1 changed=1 unreachable=0 failed=0
$ find . -ls
852461 4 drwxr-xr-x 4 user user 4096 Jan 15 14:01 .
852463 4 drwxr-xr-x 4 user user 4096 Jan 15 13:59 ./source
860161 4 drwxr-xr-x 2 user user 4096 Jan 15 13:59 ./source/one
846271 4 -rw-r--r-- 1 user user 4 Jan 15 13:59 ./source/one/afile
942425 4 drwxr-xr-x 2 user user 4096 Jan 15 13:59 ./source/two
942429 4 drwxr-xr-x 3 user user 4096 Jan 15 14:01 ./target
942430 4 drwxr-xr-x 4 user user 4096 Jan 15 14:01 ./target/source
942431 4 drwxr-xr-x 2 user user 4096 Jan 15 14:01 ./target/source/one
942432 4 drwxr-xr-x 2 user user 4096 Jan 15 14:01 ./target/source/two
846272 4 -rw-r--r-- 1 user user 121 Jan 15 14:00 ./test.yml
</code></pre></div>
<p dir="auto">test.yml:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hosts: localhost
gather_facts: no
become: no
tasks:
- copy:
src: source/
dest: target"><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">localhost</span>
<span class="pl-ent">gather_facts</span>: <span class="pl-s">no</span>
<span class="pl-ent">become</span>: <span class="pl-s">no</span>
<span class="pl-ent">tasks</span>:
- <span class="pl-ent">copy</span>:
<span class="pl-ent">src</span>: <span class="pl-s">source/</span>
<span class="pl-ent">dest</span>: <span class="pl-s">target</span></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">The whole directory tree is copied.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">No files are copied, only directories are created.</p> | <p dir="auto">This line<br>
<a href="https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/basic.py#L1365">https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/basic.py#L1365</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="os.chmod(dest, 0666 ^ umask)"><pre class="notranslate"><code class="notranslate">os.chmod(dest, 0666 ^ umask)
</code></pre></div>
<p dir="auto">should be</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="os.chmod(dest, 0666 & ~umask)"><pre class="notranslate"><code class="notranslate">os.chmod(dest, 0666 & ~umask)
</code></pre></div>
<p dir="auto">For a umask of 027 the current method gives 0641.<br>
The correct value would be 640</p>
<p dir="auto">It may not have been noticed before because for the most common umask (022) the two give the same value.</p> | 0 |
<p dir="auto">I want to contribute to the Electron project. I read the <a href="https://github.com/electron/electron/blob/master/docs/development/build-instructions-osx.md">build instructions</a> and was able to build with no issues. Now I want to start making code changes, but as Electron is built with Ninja and not XCode, I'm a little confused where to begin.</p>
<ul dir="auto">
<li>What IDE should I be using?</li>
<li>Can I use XCode?</li>
<li>What is the recommended development/debugging workflow?</li>
</ul> | <ul dir="auto">
<li>Electron version: N/A</li>
<li>Operating system: Mac OSX</li>
</ul>
<p dir="auto">The documentation on debugging the electron framework in windows (<a href="http://electron.atom.io/docs/development/debug-instructions-windows/" rel="nofollow">http://electron.atom.io/docs/development/debug-instructions-windows/</a>) is really useful. It'd be nice to have something like that for OSX and Linux.</p> | 1 |
<p dir="auto">When looking at the meson-generated <code class="notranslate">build.ninja</code> on windows, on a machine that is duplicating the CI build, it seems there is no use of msvc only gcc. Is this correct? If so it might be nice to document this in the <a href="https://scipy.github.io/devdocs/dev/contributor/meson.html#meson-frequently-asked-questions" rel="nofollow">meson build faq</a>. Also I think the build requires the rtools gcc compiler, I have had problems with standard mingw.</p>
<p dir="auto">Another niggle: <code class="notranslate">meson build --debug</code> on windows sets the gcc flags to <code class="notranslate">"-O2" "-g"</code>. Is using <code class="notranslate">-O2</code> intentional for the debug builds?</p> | <p dir="auto">I want to compute the matrix exponential of a nice, 2x2 matrix, but scipy fails with "ValueError: setting an array element with a sequence."<br>
If I perturb the matrix ever so slightly, it does work however -- perhaps related to the fact that it's invoking a sparse solver. Example below, followed by the perturbation example:</p>
<p dir="auto">import numpy<br>
import scipy.linalg</p>
<p dir="auto">A = numpy.matrix([[-1,1],[0,-2]])<br>
B = scipy.linalg.expm(A)</p>
<hr>
<p dir="auto">AttributeError Traceback (most recent call last)<br>
in ()<br>
----> 1 B = scipy.linalg.expm(A)</p>
<p dir="auto">C:\Python27\lib\site-packages\scipy\linalg\matfuncs.pyc in expm(A, q)<br>
171 # Input checking and conversion is provided by sparse.linalg.expm().<br>
172 import scipy.sparse.linalg<br>
--> 173 return scipy.sparse.linalg.expm(A)<br>
174<br>
175</p>
<p dir="auto">C:\Python27\lib\site-packages\scipy\sparse\linalg\matfuncs.pyc in expm(A)<br>
619 theta_13 = 4.25<br>
620 s = max(int(np.ceil(np.log2(eta_5 / theta_13))), 0)<br>
--> 621 s = s + _ell(2**-s * h.A, 13)<br>
622 U, V = h.pade13_scaled(s)<br>
623 X = _solve_P_Q(U, V, structure=structure)</p>
<p dir="auto">C:\Python27\lib\site-packages\scipy\sparse\linalg\matfuncs.pyc in _ell(A, m)<br>
806<br>
807 alpha = A_abs_onenorm / (_onenorm(A) * abs_c_recip)<br>
--> 808 log2_alpha_div_u = np.log2(alpha/u)<br>
809 value = int(np.ceil(log2_alpha_div_u / (2 * m)))<br>
810 return max(value, 0)</p>
<p dir="auto">AttributeError: log2</p>
<hr>
<p dir="auto"><em>Perturbation</em></p>
<h1 dir="auto">Here I perturb the matrix ever so slightly, and now it works as expected:</h1>
<p dir="auto">import numpy<br>
import scipy.linalg</p>
<p dir="auto">A = numpy.matrix([[-1,1],[1e-12,-2]])<br>
B = scipy.linalg.expm(A)<br>
print(B)</p>
<p dir="auto">outputs:<br>
[[ 3.67879441e-01 2.32544158e-01]<br>
[ 2.32544158e-13 1.35335283e-01]]</p> | 0 |
<p dir="auto">Hi all , In electron i couldn't find .find() method to search a string in webview . Is there any way to implement find operation?</p> | <p dir="auto">Hello,</p>
<p dir="auto">Is there any property existing to accomplish this in webview tag in electron, I couldn't find the replacement. Do point me in the direction , if i am missing something here.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<webview>.find(string searchText, FindOptions options, function callback)
"><pre class="notranslate"><code class="notranslate"><webview>.find(string searchText, FindOptions options, function callback)
</code></pre></div> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Should build.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Build fails.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="DONE Compiled successfully in 97ms22:04:14
[1]
[1] { Error: Cannot find module 'rebass'
[1] at Function.Module._resolveFilename (module.js:485:15)
[1] at Function.Module._load (module.js:437:25)
[1] at Module.require (module.js:513:17)
[1] at require (internal/module.js:11:18)
[1] at Object.<anonymous> (/Users/worker/development/project/_system/__build__/next/dist/pages/index.js:4:806)
[1] at Module._compile (module.js:569:30)
[1] at Object.Module._extensions..js (module.js:580:10)
[1] at Module.load (module.js:503:32)
[1] at tryModuleLoad (module.js:466:12)
[1] at Function.Module._load (module.js:458:3) code: 'MODULE_NOT_FOUND' }
[1] { Error: Cannot find module 'styled-components'
[1] at Function.Module._resolveFilename (module.js:485:15)
[1] at Function.Module._load (module.js:437:25)
[1] at Module.require (module.js:513:17)
[1] at require (internal/module.js:11:18)
[1] at Object.<anonymous> (/Users/worker/development/project/_system/__build__/next/dist/pages/_document.js:11:275)
[1] at Module._compile (module.js:569:30)
[1] at Object.Module._extensions..js (module.js:580:10)
[1] at Module.load (module.js:503:32)
[1] at tryModuleLoad (module.js:466:12)
[1] at Function.Module._load (module.js:458:3) code: 'MODULE_NOT_FOUND' }
[1] { Error: Cannot find module 'styled-components'
[1] at Function.Module._resolveFilename (module.js:485:15)
[1] at Function.Module._load (module.js:437:25)
[1] at Module.require (module.js:513:17)
[1] at require (internal/module.js:11:18)
[1] at Object.<anonymous> (/Users/worker/development/project/_system/__build__/next/dist/pages/_document.js:11:275)
[1] at Module._compile (module.js:569:30)
[1] at Object.Module._extensions..js (module.js:580:10)
[1] at Module.load (module.js:503:32)
[1] at tryModuleLoad (module.js:466:12)
[1] at Function.Module._load (module.js:458:3) code: 'MODULE_NOT_FOUND' }
[1] { Error: Cannot find module 'styled-components'
[1] at Function.Module._resolveFilename (module.js:485:15)
[1] at Function.Module._load (module.js:437:25)
[1] at Module.require (module.js:513:17)
[1] at require (internal/module.js:11:18)
[1] at Object.<anonymous> (/Users/worker/development/project/_system/__build__/next/dist/pages/_document.js:11:275)
[1] at Module._compile (module.js:569:30)
[1] at Object.Module._extensions..js (module.js:580:10)
[1] at Module.load (module.js:503:32)
[1] at tryModuleLoad (module.js:466:12)
[1] at Function.Module._load (module.js:458:3) code: 'MODULE_NOT_FOUND' }
[1] { Error: Cannot find module 'styled-components'
[1] at Function.Module._resolveFilename (module.js:485:15)
[1] at Function.Module._load (module.js:437:25)
[1] at Module.require (module.js:513:17)
[1] at require (internal/module.js:11:18)
[1] at Object.<anonymous> (/Users/worker/development/project/_system/__build__/next/dist/pages/_document.js:11:275)
[1] at Module._compile (module.js:569:30)
[1] at Object.Module._extensions..js (module.js:580:10)
[1] at Module.load (module.js:503:32)
[1] at tryModuleLoad (module.js:466:12)
[1] at Function.Module._load (module.js:458:3) code: 'MODULE_NOT_FOUND' }
[1] { Error: Cannot find module 'rebass'
[1] at Function.Module._resolveFilename (module.js:485:15)
[1] at Function.Module._load (module.js:437:25)
[1] at Module.require (module.js:513:17)
[1] at require (internal/module.js:11:18)
[1] at Object.<anonymous> (/Users/worker/development/project/_system/__build__/next/dist/pages/index.js:4:806)
[1] at Module._compile (module.js:569:30)
[1] at Object.Module._extensions..js (module.js:580:10)
[1] at Module.load (module.js:503:32)
[1] at tryModuleLoad (module.js:466:12)
[1] at Function.Module._load (module.js:458:3) code: 'MODULE_NOT_FOUND' }
[1] { Error: Cannot find module 'styled-components'
[1] at Function.Module._resolveFilename (module.js:485:15)
[1] at Function.Module._load (module.js:437:25)
[1] at Module.require (module.js:513:17)
[1] at require (internal/module.js:11:18)
[1] at Object.<anonymous> (/Users/worker/development/project/_system/__build__/next/dist/pages/_document.js:11:275)
[1] at Module._compile (module.js:569:30)
[1] at Object.Module._extensions..js (module.js:580:10)
[1] at Module.load (module.js:503:32)
[1] at tryModuleLoad (module.js:466:12)
[1] at Function.Module._load (module.js:458:3) code: 'MODULE_NOT_FOUND' }
[1] { Error: Cannot find module 'styled-components'
[1] at Function.Module._resolveFilename (module.js:485:15)
[1] at Function.Module._load (module.js:437:25)
[1] at Module.require (module.js:513:17)
[1] at require (internal/module.js:11:18)
[1] at Object.<anonymous> (/Users/worker/development/project/_system/__build__/next/dist/pages/_document.js:11:275)
[1] at Module._compile (module.js:569:30)
[1] at Object.Module._extensions..js (module.js:580:10)
[1] at Module.load (module.js:503:32)
[1] at tryModuleLoad (module.js:466:12)
[1] at Function.Module._load (module.js:458:3) code: 'MODULE_NOT_FOUND' }
[1] { Error: Cannot find module 'styled-components'
[1] at Function.Module._resolveFilename (module.js:485:15)
[1] at Function.Module._load (module.js:437:25)
[1] at Module.require (module.js:513:17)
[1] at require (internal/module.js:11:18)
[1] at Object.<anonymous> (/Users/worker/development/project/_system/__build__/next/dist/pages/_document.js:11:275)
[1] at Module._compile (module.js:569:30)
[1] at Object.Module._extensions..js (module.js:580:10)
[1] at Module.load (module.js:503:32)
[1] at tryModuleLoad (module.js:466:12)
[1] at Function.Module._load (module.js:458:3) code: 'MODULE_NOT_FOUND' }
[1] { Error: Cannot find module 'styled-components'
[1] at Function.Module._resolveFilename (module.js:485:15)
[1] at Function.Module._load (module.js:437:25)
[1] at Module.require (module.js:513:17)
[1] at require (internal/module.js:11:18)
[1] at Object.<anonymous> (/Users/worker/development/project/_system/__build__/next/dist/pages/_document.js:11:275)
[1] at Module._compile (module.js:569:30)
[1] at Object.Module._extensions..js (module.js:580:10)
[1] at Module.load (module.js:503:32)
[1] at tryModuleLoad (module.js:466:12)
[1] at Function.Module._load (module.js:458:3) code: 'MODULE_NOT_FOUND' }"><pre class="notranslate">DONE Compiled successfully <span class="pl-k">in</span> 97ms22:04:14
[1]
[1] { Error: Cannot find module <span class="pl-s"><span class="pl-pds">'</span>rebass<span class="pl-pds">'</span></span>
[1] at Function.Module._resolveFilename (module.js:485:15)
[1] at Function.Module._load (module.js:437:25)
[1] at Module.require (module.js:513:17)
[1] at require (internal/module.js:11:18)
[1] at Object.<span class="pl-k"><</span>anonymous<span class="pl-k">></span> (/Users/worker/development/project/_system/__build__/next/dist/pages/index.js:4:806)
[1] at Module._compile (module.js:569:30)
[1] at Object.Module._extensions..js (module.js:580:10)
[1] at Module.load (module.js:503:32)
[1] at tryModuleLoad (module.js:466:12)
[1] at Function.Module._load (module.js:458:3) code: <span class="pl-s"><span class="pl-pds">'</span>MODULE_NOT_FOUND<span class="pl-pds">'</span></span> }
[1] { Error: Cannot find module <span class="pl-s"><span class="pl-pds">'</span>styled-components<span class="pl-pds">'</span></span>
[1] at Function.Module._resolveFilename (module.js:485:15)
[1] at Function.Module._load (module.js:437:25)
[1] at Module.require (module.js:513:17)
[1] at require (internal/module.js:11:18)
[1] at Object.<span class="pl-k"><</span>anonymous<span class="pl-k">></span> (/Users/worker/development/project/_system/__build__/next/dist/pages/_document.js:11:275)
[1] at Module._compile (module.js:569:30)
[1] at Object.Module._extensions..js (module.js:580:10)
[1] at Module.load (module.js:503:32)
[1] at tryModuleLoad (module.js:466:12)
[1] at Function.Module._load (module.js:458:3) code: <span class="pl-s"><span class="pl-pds">'</span>MODULE_NOT_FOUND<span class="pl-pds">'</span></span> }
[1] { Error: Cannot find module <span class="pl-s"><span class="pl-pds">'</span>styled-components<span class="pl-pds">'</span></span>
[1] at Function.Module._resolveFilename (module.js:485:15)
[1] at Function.Module._load (module.js:437:25)
[1] at Module.require (module.js:513:17)
[1] at require (internal/module.js:11:18)
[1] at Object.<span class="pl-k"><</span>anonymous<span class="pl-k">></span> (/Users/worker/development/project/_system/__build__/next/dist/pages/_document.js:11:275)
[1] at Module._compile (module.js:569:30)
[1] at Object.Module._extensions..js (module.js:580:10)
[1] at Module.load (module.js:503:32)
[1] at tryModuleLoad (module.js:466:12)
[1] at Function.Module._load (module.js:458:3) code: <span class="pl-s"><span class="pl-pds">'</span>MODULE_NOT_FOUND<span class="pl-pds">'</span></span> }
[1] { Error: Cannot find module <span class="pl-s"><span class="pl-pds">'</span>styled-components<span class="pl-pds">'</span></span>
[1] at Function.Module._resolveFilename (module.js:485:15)
[1] at Function.Module._load (module.js:437:25)
[1] at Module.require (module.js:513:17)
[1] at require (internal/module.js:11:18)
[1] at Object.<span class="pl-k"><</span>anonymous<span class="pl-k">></span> (/Users/worker/development/project/_system/__build__/next/dist/pages/_document.js:11:275)
[1] at Module._compile (module.js:569:30)
[1] at Object.Module._extensions..js (module.js:580:10)
[1] at Module.load (module.js:503:32)
[1] at tryModuleLoad (module.js:466:12)
[1] at Function.Module._load (module.js:458:3) code: <span class="pl-s"><span class="pl-pds">'</span>MODULE_NOT_FOUND<span class="pl-pds">'</span></span> }
[1] { Error: Cannot find module <span class="pl-s"><span class="pl-pds">'</span>styled-components<span class="pl-pds">'</span></span>
[1] at Function.Module._resolveFilename (module.js:485:15)
[1] at Function.Module._load (module.js:437:25)
[1] at Module.require (module.js:513:17)
[1] at require (internal/module.js:11:18)
[1] at Object.<span class="pl-k"><</span>anonymous<span class="pl-k">></span> (/Users/worker/development/project/_system/__build__/next/dist/pages/_document.js:11:275)
[1] at Module._compile (module.js:569:30)
[1] at Object.Module._extensions..js (module.js:580:10)
[1] at Module.load (module.js:503:32)
[1] at tryModuleLoad (module.js:466:12)
[1] at Function.Module._load (module.js:458:3) code: <span class="pl-s"><span class="pl-pds">'</span>MODULE_NOT_FOUND<span class="pl-pds">'</span></span> }
[1] { Error: Cannot find module <span class="pl-s"><span class="pl-pds">'</span>rebass<span class="pl-pds">'</span></span>
[1] at Function.Module._resolveFilename (module.js:485:15)
[1] at Function.Module._load (module.js:437:25)
[1] at Module.require (module.js:513:17)
[1] at require (internal/module.js:11:18)
[1] at Object.<span class="pl-k"><</span>anonymous<span class="pl-k">></span> (/Users/worker/development/project/_system/__build__/next/dist/pages/index.js:4:806)
[1] at Module._compile (module.js:569:30)
[1] at Object.Module._extensions..js (module.js:580:10)
[1] at Module.load (module.js:503:32)
[1] at tryModuleLoad (module.js:466:12)
[1] at Function.Module._load (module.js:458:3) code: <span class="pl-s"><span class="pl-pds">'</span>MODULE_NOT_FOUND<span class="pl-pds">'</span></span> }
[1] { Error: Cannot find module <span class="pl-s"><span class="pl-pds">'</span>styled-components<span class="pl-pds">'</span></span>
[1] at Function.Module._resolveFilename (module.js:485:15)
[1] at Function.Module._load (module.js:437:25)
[1] at Module.require (module.js:513:17)
[1] at require (internal/module.js:11:18)
[1] at Object.<span class="pl-k"><</span>anonymous<span class="pl-k">></span> (/Users/worker/development/project/_system/__build__/next/dist/pages/_document.js:11:275)
[1] at Module._compile (module.js:569:30)
[1] at Object.Module._extensions..js (module.js:580:10)
[1] at Module.load (module.js:503:32)
[1] at tryModuleLoad (module.js:466:12)
[1] at Function.Module._load (module.js:458:3) code: <span class="pl-s"><span class="pl-pds">'</span>MODULE_NOT_FOUND<span class="pl-pds">'</span></span> }
[1] { Error: Cannot find module <span class="pl-s"><span class="pl-pds">'</span>styled-components<span class="pl-pds">'</span></span>
[1] at Function.Module._resolveFilename (module.js:485:15)
[1] at Function.Module._load (module.js:437:25)
[1] at Module.require (module.js:513:17)
[1] at require (internal/module.js:11:18)
[1] at Object.<span class="pl-k"><</span>anonymous<span class="pl-k">></span> (/Users/worker/development/project/_system/__build__/next/dist/pages/_document.js:11:275)
[1] at Module._compile (module.js:569:30)
[1] at Object.Module._extensions..js (module.js:580:10)
[1] at Module.load (module.js:503:32)
[1] at tryModuleLoad (module.js:466:12)
[1] at Function.Module._load (module.js:458:3) code: <span class="pl-s"><span class="pl-pds">'</span>MODULE_NOT_FOUND<span class="pl-pds">'</span></span> }
[1] { Error: Cannot find module <span class="pl-s"><span class="pl-pds">'</span>styled-components<span class="pl-pds">'</span></span>
[1] at Function.Module._resolveFilename (module.js:485:15)
[1] at Function.Module._load (module.js:437:25)
[1] at Module.require (module.js:513:17)
[1] at require (internal/module.js:11:18)
[1] at Object.<span class="pl-k"><</span>anonymous<span class="pl-k">></span> (/Users/worker/development/project/_system/__build__/next/dist/pages/_document.js:11:275)
[1] at Module._compile (module.js:569:30)
[1] at Object.Module._extensions..js (module.js:580:10)
[1] at Module.load (module.js:503:32)
[1] at tryModuleLoad (module.js:466:12)
[1] at Function.Module._load (module.js:458:3) code: <span class="pl-s"><span class="pl-pds">'</span>MODULE_NOT_FOUND<span class="pl-pds">'</span></span> }
[1] { Error: Cannot find module <span class="pl-s"><span class="pl-pds">'</span>styled-components<span class="pl-pds">'</span></span>
[1] at Function.Module._resolveFilename (module.js:485:15)
[1] at Function.Module._load (module.js:437:25)
[1] at Module.require (module.js:513:17)
[1] at require (internal/module.js:11:18)
[1] at Object.<span class="pl-k"><</span>anonymous<span class="pl-k">></span> (/Users/worker/development/project/_system/__build__/next/dist/pages/_document.js:11:275)
[1] at Module._compile (module.js:569:30)
[1] at Object.Module._extensions..js (module.js:580:10)
[1] at Module.load (module.js:503:32)
[1] at tryModuleLoad (module.js:466:12)
[1] at Function.Module._load (module.js:458:3) code: <span class="pl-s"><span class="pl-pds">'</span>MODULE_NOT_FOUND<span class="pl-pds">'</span></span> }</pre></div>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">Set the outDir to a folder outside of the next.js project.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module.exports = {
// the next.js project lives in _web. All deploys go into _system. So we go one folder up.
distDir: '../_system/__build__/next'
}"><pre class="notranslate"><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c">// the next.js project lives in _web. All deploys go into _system. So we go one folder up.</span>
<span class="pl-c1">distDir</span>: <span class="pl-s">'../_system/__build__/next'</span>
<span class="pl-kos">}</span></pre></div>
<h2 dir="auto">Context</h2>
<p dir="auto">Quite typical for a mono repository where all the resources are gathered in one public folder for deploy.</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>beta</td>
</tr>
<tr>
<td>node</td>
<td>8.2.1</td>
</tr>
<tr>
<td>OS</td>
<td>Mac Sierra</td>
</tr>
</tbody>
</table> | <p dir="auto">I'm trying to experiment with next.js boilerplate with react-dnd. But I don't know where to begin or if there is some wrapper like <a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-redux-wrapper">next-redux-wrapper</a> for use with react-dnd. I'm not sure how to frame the question because I just don't know what to ask or what considerations there are for using it with react-dnd. Can someone point me in the right direction?</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul> | 0 |
<h1 dir="auto">Environment</h1>
<p dir="auto">Windows 10.0.18363.836<br>
PowerToys v0.18.0<br>
PowerToys run module</p>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>
<p dir="auto">Alt+Space</p>
</li>
<li>
<p dir="auto">Type in "notepad++"</p>
<p dir="auto">Note that this is not an <em>installed</em> application, but the notepad++.exe file is available through the PATH environment variable</p>
</li>
<li>
<p dir="auto">Observe that nothing appears</p>
</li>
<li>
<p dir="auto">Hit Esc</p>
</li>
<li>
<p dir="auto">Win+R</p>
</li>
<li>
<p dir="auto">Type in "notepad++"</p>
</li>
<li>
<p dir="auto">Hit Enter</p>
</li>
<li>
<p dir="auto">Observe that Notepad++ starts</p>
</li>
<li>
<p dir="auto">Quit Notepad++</p>
</li>
<li>
<p dir="auto">Win (start menu)</p>
</li>
<li>
<p dir="auto">Type in "notepad++"</p>
</li>
<li>
<p dir="auto">Observe that "notepad++" shows up under Command with the right icon</p>
</li>
<li>
<p dir="auto">Select notepad++ and hit Enter</p>
</li>
<li>
<p dir="auto">Observe that Notepad++ starts</p>
</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">PowerToys Run finds notepad++.exe through the PATH environment variable</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">It does not find it.</p>
<p dir="auto">I have also verified with about a dozen other .exe files, all available through the PATH environment variable, all found through start menu or with Win+R but not through PowerToys run.</p>
<p dir="auto">Perhaps my expectation is at fault?</p> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.19624.1000]
PowerToys version: 0.18
PowerToy module for which you are reporting the bug (if applicable): PowerToys Run"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.19624.1000]
PowerToys version: 0.18
PowerToy module for which you are reporting the bug (if applicable): PowerToys Run
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>enter "file explorer"</li>
<li>or "explorer"</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">the application "File Explorer" should show up in the result list.<br>
or is it intentionally filtered out?</p>
<h1 dir="auto">Actual behavior</h1>
<ol dir="auto">
<li>
<p dir="auto">no results at all<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13349968/82378686-dbc7e700-9a25-11ea-903c-564ea712e002.png"><img src="https://user-images.githubusercontent.com/13349968/82378686-dbc7e700-9a25-11ea-903c-564ea712e002.png" alt="Annotation 2020-05-19 230953" style="max-width: 100%;"></a></p>
</li>
<li>
<p dir="auto">Internet Explorer shows up<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13349968/82378530-87bd0280-9a25-11ea-9e8b-a15d226742d3.png"><img src="https://user-images.githubusercontent.com/13349968/82378530-87bd0280-9a25-11ea-9e8b-a15d226742d3.png" alt="Annotation 2020-05-19 223435" style="max-width: 100%;"></a></p>
</li>
</ol>
<h1 dir="auto">Screenshots</h1> | 1 |
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
We have the following components trees:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="baseControl -> inputBaseControl -> inputControl
baseControl -> textControl"><pre class="notranslate"><code class="notranslate">baseControl -> inputBaseControl -> inputControl
baseControl -> textControl
</code></pre></div>
<p dir="auto">baseControl has three object injected into <strong>constructor</strong> <code class="notranslate">(Renderer, ElementRef, ChangeDetectorRef)</code></p>
<p dir="auto">If the derived classes do not call explicitly the <code class="notranslate">super.constructor</code>, then the injected object are <code class="notranslate">undefined</code>.</p>
<p dir="auto"><strong>Expected behavior</strong><br>
We expect that objects are injected correctly even without calling explicitly <code class="notranslate">super.constructor</code> like it was in Angular 2.4.1.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p>
<p dir="auto">For example <code class="notranslate">inputControl </code>calls explicitly and works, but <code class="notranslate">textControl </code>does not call explicitly and does not work as expected.<br>
<a href="https://plnkr.co/edit/xXqJCy?p=preview" rel="nofollow">https://plnkr.co/edit/xXqJCy?p=preview</a></p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
This should be the standard way to manage inheritance.</p>
<p dir="auto"><strong>Please tell us about your environment:</strong><br>
Windows 10<br>
Visual Studio 2017<br>
NPM<br>
Kestrel</p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Angular version:</strong> 4.0.0</p>
</li>
<li>
<p dir="auto"><strong>Browser:</strong> Chrome 56</p>
</li>
<li>
<p dir="auto"><strong>Language:</strong> TypeScript 2.2.1</p>
</li>
<li>
<p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = 7.7.2</p>
</li>
</ul> | <p dir="auto">I'm not sure if this is intentional, but this took me a while to puzzle out. I looked for an issue on the topic and found none. Demonstration plunker: <a href="http://plnkr.co/edit/YfCiTSnPdSARGwqJ7ifT?p=preview" rel="nofollow">http://plnkr.co/edit/YfCiTSnPdSARGwqJ7ifT?p=preview</a></p>
<p dir="auto">Basically, when you use</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<my-component *my-directive></my-component>"><pre class="notranslate"><code class="notranslate"><my-component *my-directive></my-component>
</code></pre></div>
<p dir="auto">instead of</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<template my-directive>
<my-component></my-component>
</template>"><pre class="notranslate"><code class="notranslate"><template my-directive>
<my-component></my-component>
</template>
</code></pre></div>
<p dir="auto">any additional inputs also have to be prefaced with <code class="notranslate">*</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<my-component *my-directive *my-directive-input="something"></my-component>"><pre class="notranslate"><code class="notranslate"><my-component *my-directive *my-directive-input="something"></my-component>
</code></pre></div>
<p dir="auto">Additionally, the values are bound expressions by default without having to use <code class="notranslate">[prop]</code> binding syntax.</p>
<p dir="auto">This is in several ways counterintuitive.</p> | 0 |
<p dir="auto">I just configured rust and I noticed this warning appear:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sed: 1: "tools/Makefile": undefined label 'ools/Makefile'"><pre class="notranslate"><code class="notranslate">sed: 1: "tools/Makefile": undefined label 'ools/Makefile'
</code></pre></div>
<p dir="auto">Nothing seems to have gone wrong as a result of this, but I think this might indicate a subtle problem with some sed invocation somewhere.</p>
<p dir="auto">I'm using the default sed that ships with OS X Lion (BSD sed, not sure which version)</p> | <p dir="auto">These lines</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" # Hack the tools Makefile to turn off the clang build
sed -i 's/clang//g' tools/Makefile"><pre class="notranslate"><code class="notranslate"> # Hack the tools Makefile to turn off the clang build
sed -i 's/clang//g' tools/Makefile
</code></pre></div>
<p dir="auto">are not correct for sed on OS X, where the extension for the backup files is required when using <code class="notranslate">-i</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="% sed --help
sed: illegal option -- -
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]"><pre class="notranslate"><code class="notranslate">% sed --help
sed: illegal option -- -
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
</code></pre></div>
<p dir="auto">I believe this is what causes the following output during configure:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sed: 1: "tools/Makefile": undefined label 'ools/Makefile'"><pre class="notranslate"><code class="notranslate">sed: 1: "tools/Makefile": undefined label 'ools/Makefile'
</code></pre></div> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.3</li>
<li>Operating System version: macOs Sierra</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">Sometimes, request body will be logged when exception occurs, which will burden on the memory and cause security issue. I will work on to remove sensitive data for dubbo protocol related, like NettyChannel, AbstractChannel, DubboProtocol.</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/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.4-SNAPSHOT</li>
<li>Operating System version: win10</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>这个地方的判断是不是写反了,ipv4的地址要提示ipv6的报错。<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/31816029/62285052-73ece380-b487-11e9-9617-c1c4ef2fb31d.jpg"><img src="https://user-images.githubusercontent.com/31816029/62285052-73ece380-b487-11e9-9617-c1c4ef2fb31d.jpg" alt="bug" style="max-width: 100%;"></a></li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">What do you expected from the above steps?</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here!
</code></pre></div> | 0 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=cbeams" rel="nofollow">Chris Beams</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7778?redirect=false" rel="nofollow">SPR-7778</a></strong> and commented</p>
<hr>
<p dir="auto">This issue is a sub-task of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398107151" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12165" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12165/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12165">#12165</a></p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398111567" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12852" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12852/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12852">#12852</a> Introduce a reserved default profile name (<em><strong>"is superseded by"</strong></em>)</li>
</ul>
<p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/b3e36a335d98945f8bf04ebb80ebe31664283720/hovercard" href="https://github.com/spring-projects/spring-framework/commit/b3e36a335d98945f8bf04ebb80ebe31664283720"><tt>b3e36a3</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/5062dc31af63691f91a8a473803653d4d36d9a39/hovercard" href="https://github.com/spring-projects/spring-framework/commit/5062dc31af63691f91a8a473803653d4d36d9a39"><tt>5062dc3</tt></a></p>
<p dir="auto">1 votes, 2 watchers</p> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=cbeams" rel="nofollow">Chris Beams</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8203?redirect=false" rel="nofollow">SPR-8203</a></strong> and commented</p>
<p dir="auto">Early in Spring 3.1 M1 a reserved 'default' profile name was introduced. We backed it out under the rationale that it's less magical to express defaults explicitly through <code class="notranslate">spring.profiles.default</code> or <code class="notranslate">ConfigurableEnvironment#setDefaultProfiles</code>.</p>
<p dir="auto">This can be (re-)introduced; just wanted to keep it simple to start and see if it's truly wanted/needed.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1 M1</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398118358" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13919" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13919/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13919">#13919</a> Add ability to specify whether a bean profile is active by default (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398108948" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12434" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12434/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12434">#12434</a> Support 'default' profile (<em><strong>"supersedes"</strong></em>)</li>
</ul>
<p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/c4a13507f0bcb10bd870543e8a1f1f130505c321/hovercard" href="https://github.com/spring-projects/spring-framework/commit/c4a13507f0bcb10bd870543e8a1f1f130505c321"><tt>c4a1350</tt></a></p>
<p dir="auto">4 votes, 6 watchers</p> | 1 |
<p dir="auto">by <strong><a href="mailto:[email protected]">[email protected]</a></strong>:</p>
<pre class="notranslate">On an arm5tejl processor running an eabi linux kernel *without* thumb support, executing
a golang binary (compiled with GOARM=5) will result in a segfault when the
rt0_linux_arm.s tries to branch to thumb code in order to set up the OABI check.
I was able to monkey patch this for my situation by commenting out the thumb part as
shown here:
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/xorrbit/golang/commit/42667df7216df6d9014fb4c4ea75d718d55491f9/hovercard" href="https://github.com/xorrbit/golang/commit/42667df7216df6d9014fb4c4ea75d718d55491f9">xorrbit/golang@<tt>42667df</tt></a>. After
compiling my binaries with this patched copy of the golang compiler I was able to
execute them fine.
I looked into the history of this OABI check and I'm not sure that there is a better way
to do it. It is unfortunate that this is the only tiny bit of thumb code that is
generated, and that it causes a segfault if you run it on a kernel without thumb support.
Granted, this is probably a somewhat rare situation (running a kernel without thumb
support on a processor that supports thumb). I talked to the devs who ship this kernel
and there is no particular reason thumb isn't enabled, the processor supports it but
they never required it. This is all on a custom board running a custom kernel.
I thought I would log this here anyways in case anyone else encountered this problem. A
fix would be great but I can't find of a proper way to fix this that would add more
complexity.
Thanks</pre> | <p dir="auto">by <strong>Andreas.Klauer</strong>:</p>
<pre class="notranslate">What steps will reproduce the problem?
1. <a href="http://play.golang.org/p/KQF7Xz5os7" rel="nofollow">http://play.golang.org/p/KQF7Xz5os7</a>
2. Format [X] Imports
What is the expected output?
package main
import "fmt"
// Is this a bug?
func main() {
fmt.Println("Hello, playground")
}
What do you see instead?
package main
import "fmt"
func main() {
fmt.Println("Hello, playground")
}
// Is this a bug?
Another example: <a href="http://play.golang.org/p/7-jPpVyYU4" rel="nofollow">http://play.golang.org/p/7-jPpVyYU4</a> (hit format with imports)</pre> | 0 |
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="133425257" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/2994" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/2994/hovercard" href="https://github.com/microsoft/vscode/issues/2994">#2994</a></p>
<p dir="auto">With this Java file:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package com.growingwiththeweb.sorting;
public class BubbleSort {
public static void sort(Integer[] array) {
for (int i = 0; i < array.length - 1; i++) {
for (int j = 1; j < array.length - i; j++) {
if (array[j - 1] > array[j]) {
swap(array, j, j - 1);
}
}
}
}
private static void swap(Integer[] array, int a, int b) {
Integer temp = array[a];
array[a] = array[b];
array[b] = temp;
}
}"><pre class="notranslate"><span class="pl-k">package</span> <span class="pl-s1">com</span>.<span class="pl-s1">growingwiththeweb</span>.<span class="pl-s1">sorting</span>;
<span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">BubbleSort</span> {
<span class="pl-k">public</span> <span class="pl-k">static</span> <span class="pl-smi">void</span> <span class="pl-en">sort</span>(<span class="pl-smi">Integer</span>[] <span class="pl-s1">array</span>) {
<span class="pl-k">for</span> (<span class="pl-smi">int</span> <span class="pl-s1">i</span> = <span class="pl-c1">0</span>; <span class="pl-s1">i</span> < <span class="pl-s1">array</span>.<span class="pl-s1">length</span> - <span class="pl-c1">1</span>; <span class="pl-s1">i</span>++) {
<span class="pl-k">for</span> (<span class="pl-smi">int</span> <span class="pl-s1">j</span> = <span class="pl-c1">1</span>; <span class="pl-s1">j</span> < <span class="pl-s1">array</span>.<span class="pl-s1">length</span> - <span class="pl-s1">i</span>; <span class="pl-s1">j</span>++) {
<span class="pl-k">if</span> (<span class="pl-s1">array</span>[<span class="pl-s1">j</span> - <span class="pl-c1">1</span>] > <span class="pl-s1">array</span>[<span class="pl-s1">j</span>]) {
<span class="pl-en">swap</span>(<span class="pl-s1">array</span>, <span class="pl-s1">j</span>, <span class="pl-s1">j</span> - <span class="pl-c1">1</span>);
}
}
}
}
<span class="pl-k">private</span> <span class="pl-k">static</span> <span class="pl-smi">void</span> <span class="pl-en">swap</span>(<span class="pl-smi">Integer</span>[] <span class="pl-s1">array</span>, <span class="pl-smi">int</span> <span class="pl-s1">a</span>, <span class="pl-smi">int</span> <span class="pl-s1">b</span>) {
<span class="pl-smi">Integer</span> <span class="pl-s1">temp</span> = <span class="pl-s1">array</span>[<span class="pl-s1">a</span>];
<span class="pl-s1">array</span>[<span class="pl-s1">a</span>] = <span class="pl-s1">array</span>[<span class="pl-s1">b</span>];
<span class="pl-s1">array</span>[<span class="pl-s1">b</span>] = <span class="pl-s1">temp</span>;
}
}</pre></div>
<p dir="auto">Selecting line number 8 (<code class="notranslate">swap(array, j, j - 1)</code>) and hitting <kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>[</kbd> folds the wrong level:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2193314/13299243/26bcb66e-daef-11e5-9263-b274a81787e2.png"><img src="https://cloud.githubusercontent.com/assets/2193314/13299243/26bcb66e-daef-11e5-9263-b274a81787e2.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Adding another if statement within that <code class="notranslate">if</code> again folds 1 level above the correct level.</p> | <p dir="auto">Testing <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="133425257" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/2994" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/2994/hovercard" href="https://github.com/microsoft/vscode/issues/2994">#2994</a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/22350/13283270/3de70c92-daed-11e5-84dd-766846602e2a.gif"><img src="https://cloud.githubusercontent.com/assets/22350/13283270/3de70c92-daed-11e5-84dd-766846602e2a.gif" alt="bug" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">When my cursor is at line <code class="notranslate">266</code> and run the Fold action, the folding block that starts at line <code class="notranslate">263</code> gets folded. I expected that the block that starts at line <code class="notranslate">265</code> to be folded instead.</p>
<p dir="auto">When the cursor is at line <code class="notranslate">265</code>, behaviour is as expected, by the way.</p> | 1 |
<h2 dir="auto">The versioning scheme is actually quite childish and doesnt comply with any industry standard.</h2>
<p dir="auto">major.minor.patch</p>
<p dir="auto">major - this will break previous libraries that use this</p>
<p dir="auto">minor - this adds new functionality/features</p>
<p dir="auto">patch - something is broken</p>
<p dir="auto">0 indicates that its still in development and anything can change at any time. Yet people are already using your product in production and relying heavily on it. You send a message to your end users that you do not care about them or their compatibility issues by not using semantic versioning.</p>
<p dir="auto">NodeJs finally moved to real semantic versioning with IOJS merged in they are now up to 4.1.2 and clearly explains the backward compatability issues with the different versioning.</p> | <p dir="auto">Almost every release introduces breaking changes. It would be easier to maintain if React bumped the first digit of the version every time there was a breaking change.</p> | 1 |
<p dir="auto">When a binary compiled with -g <code class="notranslate">panic</code>s, and <code class="notranslate">RUST_BACKTRACE=1</code>, line numbers should be given along with the backtrace.</p> | <p dir="auto">In an effort to reduce the number of duplicated methods, I made a branch that uses objects in the <code class="notranslate">walk</code> routines for the visitor. This, in combination with porting more visitors to avoid the <code class="notranslate">E</code> parameter (i.e., to use <code class="notranslate">Visitor<()></code>), should help quite a bit. However, it currently encounters a crash.</p> | 0 |
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="await import("npm:table");"><pre class="notranslate"><span class="pl-k">await</span> <span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s">"npm:table"</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="error: Uncaught (in promise) SyntaxError: Identifier '__esModule' has already been declared"><pre class="notranslate"><code class="notranslate">error: Uncaught (in promise) SyntaxError: Identifier '__esModule' has already been declared
</code></pre></div> | <p dir="auto">Happens with e.g. <code class="notranslate">redis</code> and <code class="notranslate">random</code>:</p>
<p dir="auto"><code class="notranslate">import { createClient } from 'npm:redis';</code></p>
<p dir="auto"><code class="notranslate">import random from 'npm:random'</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno run --unstable -A main.js
error: Uncaught SyntaxError: Identifier '__esModule' has already been declared
at <anonymous> (file:///C:/Users/GJZwiers/AppData/Local/deno/npm/registry.npmjs.org/random/3.0.6/dist/cjs/index.js:8:14)"><pre class="notranslate"><code class="notranslate">deno run --unstable -A main.js
error: Uncaught SyntaxError: Identifier '__esModule' has already been declared
at <anonymous> (file:///C:/Users/GJZwiers/AppData/Local/deno/npm/registry.npmjs.org/random/3.0.6/dist/cjs/index.js:8:14)
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno --version
deno 1.25.0+da10c9c (canary, x86_64-pc-windows-msvc)
v8 10.6.194.5
typescript 4.7.4"><pre class="notranslate"><code class="notranslate">deno --version
deno 1.25.0+da10c9c (canary, x86_64-pc-windows-msvc)
v8 10.6.194.5
typescript 4.7.4
</code></pre></div> | 1 |
<p dir="auto">As we move to docker setup being default for local clusters we should make sure that hyperkube is up to date.</p>
<p dir="auto">@ihmccreery <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/quinton-hoole/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/quinton-hoole">@quinton-hoole</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/brendandburns/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/brendandburns">@brendandburns</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/roberthbailey/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/roberthbailey">@roberthbailey</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mikedanese/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mikedanese">@mikedanese</a></p> | <p dir="auto">These docs says that one can pull Kubernetes images for each release from GCR:</p>
<p dir="auto"><a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/v1.0.1/docs/getting-started-guides/scratch.md">https://github.com/GoogleCloudPlatform/kubernetes/blob/v1.0.1/docs/getting-started-guides/scratch.md</a></p>
<p dir="auto">However, release images seem to be missing in GCR:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="docker pull gcr.io/google_containers/kube-apiserver:v1.0.0
Pulling repository gcr.io/google_containers/kube-apiserver
FATA[0000] Tag v1.0.0 not found in repository gcr.io/google_containers/kube-apiserver
docker pull gcr.io/google_containers/kube-apiserver:v1.0.1
Pulling repository gcr.io/google_containers/kube-apiserver
FATA[0000] Tag v1.0.1 not found in repository gcr.io/google_containers/kube-apiserver
docker pull gcr.io/google_containers/kube-apiserver:1.0.1
Pulling repository gcr.io/google_containers/kube-apiserver
FATA[0000] Tag 1.0.1 not found in repository gcr.io/google_containers/kube-apiserver"><pre class="notranslate"><code class="notranslate">docker pull gcr.io/google_containers/kube-apiserver:v1.0.0
Pulling repository gcr.io/google_containers/kube-apiserver
FATA[0000] Tag v1.0.0 not found in repository gcr.io/google_containers/kube-apiserver
docker pull gcr.io/google_containers/kube-apiserver:v1.0.1
Pulling repository gcr.io/google_containers/kube-apiserver
FATA[0000] Tag v1.0.1 not found in repository gcr.io/google_containers/kube-apiserver
docker pull gcr.io/google_containers/kube-apiserver:1.0.1
Pulling repository gcr.io/google_containers/kube-apiserver
FATA[0000] Tag 1.0.1 not found in repository gcr.io/google_containers/kube-apiserver
</code></pre></div> | 1 |
<h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: 16.04</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: source</li>
<li><strong>TensorFlow version (use command below)</strong>: r1.7</li>
<li><strong>Python version</strong>: 2.7</li>
<li><strong>Bazel version (if compiling from source)</strong>: 0.13</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>:</li>
<li><strong>CUDA/cuDNN version</strong>:</li>
</ul>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">met compile error with:<br>
tensorflow/core/kernels/gather_nd_op_gpu.cu.cc(45): error: calling a <strong>host</strong> function("__builtin_expect") from a <strong>global</strong> function("tensorflow::GatherSliceOpKernel< ::std::complex , long long, (int)4> ") is not allowed</p>
<p dir="auto">tensorflow/core/kernels/gather_nd_op_gpu.cu.cc(45): error: calling a <strong>host</strong> function("__builtin_expect") from a <strong>global</strong> function("tensorflow::GatherSliceOpKernel< ::std::complex , long long, (int)5> ") is not allowed</p>
<p dir="auto">tensorflow/core/kernels/gather_nd_op_gpu.cu.cc(45): error: calling a <strong>host</strong> function("__builtin_expect") from a <strong>global</strong> function("tensorflow::GatherSliceOpKernel< ::std::complex , long long, (int)6> ") is not allowed</p>
<p dir="auto">tensorflow/core/kernels/gather_nd_op_gpu.cu.cc(45): error: calling a <strong>host</strong> function("__builtin_expect") from a <strong>global</strong> function("tensorflow::GatherSliceOpKernel< ::std::complex , long long, (int)7> ") is not allowed</p>
<p dir="auto">80 errors detected in the compilation of "/tmp/tmpxft_0000502d_00000000-7_gather_nd_op_gpu.cu.cpp1.ii".<br>
ERROR: /home/carmark/github/tensorflow/tensorflow/core/kernels/BUILD:690:1: output 'tensorflow/core/kernels/_objs/gather_nd_op_gpu/tensorflow/core/kernels/gather_nd_op_gpu.cu.pic.o' was not created<br>
ERROR: /home/carmark/github/tensorflow/tensorflow/core/kernels/BUILD:690:1: not all outputs were created or valid<br>
Target //tensorflow/tools/pip_package:build_pip_package failed to build<br>
Use --verbose_failures to see the command lines of failed build steps.<br>
INFO: Elapsed time: 1050.472s, Critical Path: 77.58s<br>
INFO: 4023 processes, local.<br>
FAILED: Build did NOT complete successfully</p> | <p dir="auto">Hi I am trying to build tensorflow r1.7 branch with the following settings:</p>
<ul dir="auto">
<li>cuda 8.0</li>
<li>cudnn 7.0</li>
<li>gcc 5.4</li>
</ul>
<p dir="auto">but i got the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tensorflow/core/kernels/neon/neon_depthwise_conv_op.cc:138:42: required from here
./tensorflow/core/kernels/neon/depthwiseconv_float.h:602:7: warning: variable 'fixed_input_depth' set
but not used [-Wunused-but-set-variable]
int fixed_input_depth = 0;
^
INFO: From Compiling tensorflow/core/kernels/dynamic_partition_op_gpu.cu.cc:
tensorflow/core/kernels/dynamic_partition_op_gpu.cu.cc(113): warning: function "tensorflow::<unnamed>::IdentityOp::operator()" was declared but never referenced
tensorflow/core/kernels/dynamic_partition_op_gpu.cu.cc(155): warning: function "tensorflow::<unnamed>::BoundedOutputIterator::operator*" was declared but never referenced
tensorflow/core/kernels/dynamic_partition_op_gpu.cu.cc(165): warning: function "tensorflow::<unnamed>::BoundedOutputIterator::operator+" was declared but never referenced
tensorflow/core/kernels/dynamic_partition_op_gpu.cu.cc(171): warning: function "tensorflow::<unnamed>::BoundedOutputIterator::operator-" was declared but never referenced
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_
expect") from a __global__ function("tensorflow::GatherOpKernel< ::Eigen::half, int, (bool)1> ") is n
ot allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_
expect") from a __global__ function("tensorflow::GatherOpKernel<float, int, (bool)1> ") is not allowe
d
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_
expect") from a __global__ function("tensorflow::GatherOpKernel<double, int, (bool)1> ") is not allow
ed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_
expect") from a __global__ function("tensorflow::GatherOpKernel< ::std::complex<float> , int, (bool)1
> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_
expect") from a __global__ function("tensorflow::GatherOpKernel< ::std::complex<double> , int, (bool)
1> ") is not allowed
5 errors detected in the compilation of "/tmp/tmpxft_00004427_00000000-7_dynamic_partition_op_gpu.cu.
cpp1.ii".
ERROR: /home/ubuntu/tensorflow/tensorflow/core/kernels/BUILD:1702:1: output 'tensorflow/core/kernels/
_objs/dynamic_partition_op_gpu/tensorflow/core/kernels/dynamic_partition_op_gpu.cu.pic.o' was not cre
ated
ERROR: /home/ubuntu/tensorflow/tensorflow/core/kernels/BUILD:1702:1: not all outputs were created or
valid
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 770.936s, Critical Path: 154.34s
INFO: 1470 processes, local.
FAILED: Build did NOT complete successfully"><pre class="notranslate"><code class="notranslate">tensorflow/core/kernels/neon/neon_depthwise_conv_op.cc:138:42: required from here
./tensorflow/core/kernels/neon/depthwiseconv_float.h:602:7: warning: variable 'fixed_input_depth' set
but not used [-Wunused-but-set-variable]
int fixed_input_depth = 0;
^
INFO: From Compiling tensorflow/core/kernels/dynamic_partition_op_gpu.cu.cc:
tensorflow/core/kernels/dynamic_partition_op_gpu.cu.cc(113): warning: function "tensorflow::<unnamed>::IdentityOp::operator()" was declared but never referenced
tensorflow/core/kernels/dynamic_partition_op_gpu.cu.cc(155): warning: function "tensorflow::<unnamed>::BoundedOutputIterator::operator*" was declared but never referenced
tensorflow/core/kernels/dynamic_partition_op_gpu.cu.cc(165): warning: function "tensorflow::<unnamed>::BoundedOutputIterator::operator+" was declared but never referenced
tensorflow/core/kernels/dynamic_partition_op_gpu.cu.cc(171): warning: function "tensorflow::<unnamed>::BoundedOutputIterator::operator-" was declared but never referenced
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_
expect") from a __global__ function("tensorflow::GatherOpKernel< ::Eigen::half, int, (bool)1> ") is n
ot allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_
expect") from a __global__ function("tensorflow::GatherOpKernel<float, int, (bool)1> ") is not allowe
d
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_
expect") from a __global__ function("tensorflow::GatherOpKernel<double, int, (bool)1> ") is not allow
ed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_
expect") from a __global__ function("tensorflow::GatherOpKernel< ::std::complex<float> , int, (bool)1
> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_
expect") from a __global__ function("tensorflow::GatherOpKernel< ::std::complex<double> , int, (bool)
1> ") is not allowed
5 errors detected in the compilation of "/tmp/tmpxft_00004427_00000000-7_dynamic_partition_op_gpu.cu.
cpp1.ii".
ERROR: /home/ubuntu/tensorflow/tensorflow/core/kernels/BUILD:1702:1: output 'tensorflow/core/kernels/
_objs/dynamic_partition_op_gpu/tensorflow/core/kernels/dynamic_partition_op_gpu.cu.pic.o' was not cre
ated
ERROR: /home/ubuntu/tensorflow/tensorflow/core/kernels/BUILD:1702:1: not all outputs were created or
valid
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 770.936s, Critical Path: 154.34s
INFO: 1470 processes, local.
FAILED: Build did NOT complete successfully
</code></pre></div> | 1 |
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-local-scope-and-functions#?solution=function%20myFunction%28%29%20%7B%0A%20%20var%20myVar%20%3D%20%22%28g%20old%20%2B%20x%2Fg%20old%29%20%2F%202%22%3B%0A%20%20console.log%28myVar%29%3B%0A%7D%0AmyFunction%28%29%3B%0A" rel="nofollow">Waypoint: Local Scope and Functions</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My code:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function myFunction() {
var myVar = "(g old + x/g old) / 2";
console.log(myVar);
}
myFunction();
// run and check the console
// myVar is not defined outside of myFunction
// now remove the console.log line to pass the test
console.log(myVar);
'removing only the console.log(myVar) should do the trick..'
"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">myFunction</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">myVar</span> <span class="pl-c1">=</span> <span class="pl-s">"(g old + x/g old) / 2"</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">myVar</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">myFunction</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// run and check the console </span>
<span class="pl-c">// myVar is not defined outside of myFunction</span>
<span class="pl-c">// now remove the console.log line to pass the test </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">myVar</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s">'removing only the console.log(myVar) should do the trick..'</span></pre></div> | <p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-local-scope-and-functions#?solution=function%20myFunction%28%29%20%7B%0A%20%20var%20myVar%20%3D%205%3B%20%20%0A%20%20console.log%28myVar%29%3B%0A%7D%0AmyFunction%28%29%3B%0A%0A%2F%2F%20run%20and%20check%20the%20console%20%0A%2F%2F%20myVar%20is%20not%20defined%20outside%20of%20myFunction%0A%0A%2F%2F%20now%20remove%20the%20console.log%20line%20to%20pass%20the%20test%0A%0A" rel="nofollow">Waypoint: Local Scope and Functions</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.48 Safari/537.36</code>.</p>
<p dir="auto">The test asks you to remove the second console.log() to pass. When you remove the second console.log() it still fails. You have to remove both console.log() calls to pass(including the one inside myFunction().)</p>
<p dir="auto">Reproducible every time by removing the console.log() outside of myFunction(), as asked by test. I'm assuming this is a bug in the test and not the text as there's no reason to remove the console.log() call within myFunction().</p> | 1 |
<p dir="auto">Hello,</p>
<p dir="auto">See: <a href="https://github.com/JuliaLang/julia/blob/master/Makefile#L541">https://github.com/JuliaLang/julia/blob/master/Makefile#L541</a>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" @env JULIA_CPU_THREADS=1 $(MAKE) $(QUIET_MAKE) -C $(BUILDROOT)/test all JULIA_BUILD_MODE=$(JULIA_BUILD_MODE)"><pre class="notranslate"><code class="notranslate"> @env JULIA_CPU_THREADS=1 $(MAKE) $(QUIET_MAKE) -C $(BUILDROOT)/test all JULIA_BUILD_MODE=$(JULIA_BUILD_MODE)
</code></pre></div>
<p dir="auto">This makes the test suite to take much more time to execute; furthermore, the official CI uses multiple workers by manually invoking runtests.jl with the <code class="notranslate">ncores</code> argument, so there doesn't seem to be a reason to force 1 worker anymore (if there ever was).</p>
<p dir="auto">Thank you!</p> | <p dir="auto">Following on from the removal of the Graphics module from Base, the Collections module doesn't seem to belong there either, and (as far as I can tell) is not used elsewhere in Base. I propose that the (nice) functionality be moved to the DataStructures package.</p>
<p dir="auto">On a related note, in PriorityQueue, I suggest that enqueue! and dequeue! be renamed to push! and pop! for consistency, and that pop! should return not only the value associated with the first key, but also the key itself, in a tuple. (Currently, if the key is needed, it must currently be duplicated inside the value!)</p> | 0 |
<p dir="auto">Hello,</p>
<p dir="auto">I try to read 1 month of tick data of AUD/USD</p>
<p dir="auto">Sample data can be found here<br>
<a href="https://drive.google.com/file/d/0B8iUtWjZOTqla3ZZTC1FS0pkZXc/view?usp=sharing" rel="nofollow">https://drive.google.com/file/d/0B8iUtWjZOTqla3ZZTC1FS0pkZXc/view?usp=sharing</a><br>
see also <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="123524414" data-permission-text="Title is private" data-url="https://github.com/pydata/pandas-datareader/issues/153" data-hovercard-type="issue" data-hovercard-url="/pydata/pandas-datareader/issues/153/hovercard" href="https://github.com/pydata/pandas-datareader/issues/153">pydata/pandas-datareader#153</a></p>
<p dir="auto"><code class="notranslate">AUDUSD-2014-01.zip</code> is a 11M file and contains <code class="notranslate">AUDUSD-2014-01.csv</code> which is a 85M file<br>
which is not so big!</p>
<p dir="auto">With Python / Pandas</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ ipython
In [1]: import pandas as pd
In [2]: %time df=pd.read_csv("AUDUSD-2014-01.csv", names=['Symbol', 'Date', 'Bid', 'Ask'])
CPU times: user 3.22 s, sys: 510 ms, total: 3.73 s
Wall time: 4.02 s"><pre class="notranslate">$ <span class="pl-s1">ipython</span>
<span class="pl-v">In</span> [<span class="pl-c1">1</span>]: <span class="pl-s1">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-c1">%</span><span class="pl-s1">time</span> <span class="pl-s1">df</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-s">"AUDUSD-2014-01.csv"</span>, <span class="pl-s1">names</span><span class="pl-c1">=</span>[<span class="pl-s">'Symbol'</span>, <span class="pl-s">'Date'</span>, <span class="pl-s">'Bid'</span>, <span class="pl-s">'Ask'</span>])
<span class="pl-v">CPU</span> <span class="pl-s1">times</span>: <span class="pl-s1">user</span> <span class="pl-c1">3.22</span> <span class="pl-s1">s</span>, <span class="pl-s1">sys</span>: <span class="pl-c1">510</span> <span class="pl-s1">ms</span>, <span class="pl-s1">total</span>: <span class="pl-c1">3.73</span> <span class="pl-s1">s</span>
<span class="pl-v">Wall</span> <span class="pl-s1">time</span>: <span class="pl-c1">4.02</span> <span class="pl-s1">s</span></pre></div>
<p dir="auto">With Julia / readcsv</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> @time df=readcsv("AUDUSD-2014-01.csv");
11.376916 seconds (31.17 M allocations: 1.012 GB, 33.02% gc time)"><pre class="notranslate">julia<span class="pl-k">></span> <span class="pl-c1">@time</span> df<span class="pl-k">=</span><span class="pl-c1">readcsv</span>(<span class="pl-s"><span class="pl-pds">"</span>AUDUSD-2014-01.csv<span class="pl-pds">"</span></span>);
<span class="pl-c1">11.376916</span> seconds (<span class="pl-c1">31.17</span> M allocations<span class="pl-k">:</span> <span class="pl-c1">1.012</span> GB, <span class="pl-c1">33.02</span><span class="pl-k">%</span> gc time)</pre></div>
<p dir="auto">It's even worse with DataFrames.jl <code class="notranslate">readtable</code><br>
see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="150533357" data-permission-text="Title is private" data-url="https://github.com/JuliaData/DataFrames.jl/issues/942" data-hovercard-type="issue" data-hovercard-url="/JuliaData/DataFrames.jl/issues/942/hovercard" href="https://github.com/JuliaData/DataFrames.jl/issues/942">JuliaData/DataFrames.jl#942</a></p>
<p dir="auto">Kind regards</p> | <p dir="auto">Hi all,</p>
<p dir="auto">I'm not sure when this problem started but I was facing some issues with OpenBLAS being loaded correctly, so I removed and reinstalled Julia and all dependencies using Homebrew and ran the test suite, resulting in the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/usr/local/Cellar/julia/0.3.2/bin/julia -e "Base.runtests()"
From worker 3: * linalg2
From worker 2: * linalg1
From worker 2: * linalg3
From worker 2: * linalg4
From worker 2: * core
From worker 2: * keywordargs
From worker 2: * numbers
From worker 3: * strings
From worker 3: * collections
From worker 2: * hashing
From worker 3: * remote
From worker 3: * iobuffer
From worker 3: * arrayops
From worker 2: * reduce
From worker 2: * reducedim
From worker 2: * simdloop
From worker 2: * blas
From worker 2: * fft
From worker 2: * dsp
From worker 3: * sparse
From worker 2: * bitarray
From worker 3: * random
From worker 3: * math
From worker 3: * functional
From worker 3: * bigint
From worker 3: * sorting
From worker 3: * statistics
From worker 2: * spawn
From worker 2: [stdio passthrough ok]
From worker 3: * backtrace
From worker 3: * priorityqueue
From worker 2: * arpack
From worker 3: * file
From worker 2: * suitesparse
From worker 2: * version
From worker 3: * resolve
From worker 2: * pollfd
From worker 2: * mpfr
From worker 3: * broadcast
From worker 2: * complex
From worker 2: * socket
From worker 2: * floatapprox
From worker 2: * readdlm
From worker 3: * regex
From worker 3: * float16
From worker 3: * combinatorics
From worker 3: * sysinfo
From worker 2: * rounding
From worker 2: * ranges
From worker 3: * mod2pi
From worker 3: * euler
From worker 3: * show
From worker 3: * lineedit
exception on 3: ERROR: test failed: position(buf) == 0
in error at error.jl:21
in default_handler at test.jl:19
in do_test at test.jl:39
in anonymous at no file:145
in runtests at /usr/local/Cellar/julia/0.3.2/share/julia/test/testdefs.jl:5
in anonymous at multi.jl:855
in run_work_thunk at multi.jl:621
in anonymous at task.jl:855
while loading lineedit.jl, in expression starting on line 142
ERROR: test failed: position(buf) == 0
in anonymous at task.jl:1367
while loading lineedit.jl, in expression starting on line 142
while loading /usr/local/Cellar/julia/0.3.2/share/julia/test/runtests.jl, in expression starting on line 39
ERROR: A test has failed. Please submit a bug report including error messages
above and the output of versioninfo():
Julia Version 0.3.2
Commit 8227746* (2014-10-21 22:05 UTC)
Platform Info:
System: Darwin (x86_64-apple-darwin12.5.0)
CPU: Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz
WORD_SIZE: 64
BLAS: libopenblas (NO_AFFINITY NEHALEM)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3
in error at error.jl:21
in runtests at interactiveutil.jl:367
in runtests at interactiveutil.jl:356
in process_options at /usr/local/Cellar/julia/0.3.2/lib/julia/sys.dylib
in _start at /usr/local/Cellar/julia/0.3.2/lib/julia/sys.dylib (repeats 2 times)"><pre class="notranslate"><code class="notranslate">/usr/local/Cellar/julia/0.3.2/bin/julia -e "Base.runtests()"
From worker 3: * linalg2
From worker 2: * linalg1
From worker 2: * linalg3
From worker 2: * linalg4
From worker 2: * core
From worker 2: * keywordargs
From worker 2: * numbers
From worker 3: * strings
From worker 3: * collections
From worker 2: * hashing
From worker 3: * remote
From worker 3: * iobuffer
From worker 3: * arrayops
From worker 2: * reduce
From worker 2: * reducedim
From worker 2: * simdloop
From worker 2: * blas
From worker 2: * fft
From worker 2: * dsp
From worker 3: * sparse
From worker 2: * bitarray
From worker 3: * random
From worker 3: * math
From worker 3: * functional
From worker 3: * bigint
From worker 3: * sorting
From worker 3: * statistics
From worker 2: * spawn
From worker 2: [stdio passthrough ok]
From worker 3: * backtrace
From worker 3: * priorityqueue
From worker 2: * arpack
From worker 3: * file
From worker 2: * suitesparse
From worker 2: * version
From worker 3: * resolve
From worker 2: * pollfd
From worker 2: * mpfr
From worker 3: * broadcast
From worker 2: * complex
From worker 2: * socket
From worker 2: * floatapprox
From worker 2: * readdlm
From worker 3: * regex
From worker 3: * float16
From worker 3: * combinatorics
From worker 3: * sysinfo
From worker 2: * rounding
From worker 2: * ranges
From worker 3: * mod2pi
From worker 3: * euler
From worker 3: * show
From worker 3: * lineedit
exception on 3: ERROR: test failed: position(buf) == 0
in error at error.jl:21
in default_handler at test.jl:19
in do_test at test.jl:39
in anonymous at no file:145
in runtests at /usr/local/Cellar/julia/0.3.2/share/julia/test/testdefs.jl:5
in anonymous at multi.jl:855
in run_work_thunk at multi.jl:621
in anonymous at task.jl:855
while loading lineedit.jl, in expression starting on line 142
ERROR: test failed: position(buf) == 0
in anonymous at task.jl:1367
while loading lineedit.jl, in expression starting on line 142
while loading /usr/local/Cellar/julia/0.3.2/share/julia/test/runtests.jl, in expression starting on line 39
ERROR: A test has failed. Please submit a bug report including error messages
above and the output of versioninfo():
Julia Version 0.3.2
Commit 8227746* (2014-10-21 22:05 UTC)
Platform Info:
System: Darwin (x86_64-apple-darwin12.5.0)
CPU: Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz
WORD_SIZE: 64
BLAS: libopenblas (NO_AFFINITY NEHALEM)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3
in error at error.jl:21
in runtests at interactiveutil.jl:367
in runtests at interactiveutil.jl:356
in process_options at /usr/local/Cellar/julia/0.3.2/lib/julia/sys.dylib
in _start at /usr/local/Cellar/julia/0.3.2/lib/julia/sys.dylib (repeats 2 times)
</code></pre></div>
<p dir="auto">Can't really figure out what's wrong. Anybody suggestions on how to fix this?</p>
<p dir="auto">Regards,</p>
<p dir="auto">Kartik</p> | 0 |
<p dir="auto">sometimes celery with redis appear the problem:<br>
portal_page_handler.py:3175 ERROR Traceback (most recent call last):<br>
File "/home/ixianxia/web_app_src/shanghu_wifi/handler/portal_page_handler.py", line 3123, in get<br>
self.cur_user.card_no)<br>
File "/home/ixianxia/local/python/lib/python2.7/site-packages/celery/app/task.py", line 452, in delay<br>
return self.apply_async(args, kwargs)<br>
File "/home/ixianxia/local/python/lib/python2.7/site-packages/celery/app/task.py", line 554, in apply_async<br>
*_dict(self._get_exec_options(), *_options)<br>
File "/home/ixianxia/local/python/lib/python2.7/site-packages/celery/app/base.py", line 321, in send_task<br>
reply_to=reply_to or self.oid, *_options<br>
File "/home/ixianxia/local/python/lib/python2.7/site-packages/celery/app/amqp.py", line 299, in publish_task<br>
*_kwargs<br>
File "/home/ixianxia/local/python/lib/python2.7/site-packages/kombu/messaging.py", line 166, in publish<br>
routing_key, mandatory, immediate, exchange, declare)<br>
File "/home/ixianxia/local/python/lib/python2.7/site-packages/kombu/connection.py", line 440, in _ensured<br>
return fun(_args, *_kwargs)<br>
File "/home/ixianxia/local/python/lib/python2.7/site-packages/kombu/messaging.py", line 182, in _publish<br>
mandatory=mandatory, immediate=immediate,<br>
File "/home/ixianxia/local/python/lib/python2.7/site-packages/kombu/transport/virtual/<strong>init</strong>.py", line 524, in basic_publish<br>
message, exchange, routing_key, **kwargs<br>
File "/home/ixianxia/local/python/lib/python2.7/site-packages/kombu/transport/virtual/exchange.py", line 60, in deliver<br>
for queue in _lookup(exchange, routing_key):<br>
File "/home/ixianxia/local/python/lib/python2.7/site-packages/kombu/transport/virtual/<strong>init</strong>.py", line 615, in _lookup<br>
self.get_table(exchange),<br>
File "/home/ixianxia/local/python/lib/python2.7/site-packages/kombu/transport/redis.py", line 693, in get_table<br>
raise InconsistencyError(NO_ROUTE_ERROR.format(exchange, key))<br>
InconsistencyError:<br>
Cannot route message for exchange 'default': Table empty or key no longer exists.<br>
Probably the key ('_kombu.binding.default') has been removed from the Redis database.</p> | <p dir="auto">I have installed Celery v3.0.19 with Redis as MQ backend. Everything was fine right after I set them up, but after a while Celery started throwing an error when <code class="notranslate">.delay</code> method was called to add a task to queue.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Cannot route message for exchange 'celery': Table empty or key no longer exists.
Probably the key ('_kombu.binding.celery') has been removed from the Redis database."><pre lang="InconsistencyError:" class="notranslate"><code class="notranslate">Cannot route message for exchange 'celery': Table empty or key no longer exists.
Probably the key ('_kombu.binding.celery') has been removed from the Redis database.
</code></pre></div>
<p dir="auto">There is no any googleable solution for this problem. But it seems I fixed it for me by specifying <code class="notranslate">timeout 0</code> in my <code class="notranslate">redis.conf</code> file. It had 300 set by default in version 2.2.12 that I installed from repo on 12.04.2 Ubuntu Server.</p>
<p dir="auto"><code class="notranslate">timeout n</code>, where n > 0 means the idle client will be disconnected after n seconds. Kombu's Redis transport may not be able to handle this kind of disconnection.</p> | 1 |
<p dir="auto">The code below outputs <code class="notranslate">((6340760, 140201758297392), (6340840, 140201758297424), (6340856, 140201758297472), (6340872, 140201758297504))</code> (exact numbers may vary). The important part is that the vtables seem to get newly created for ~1 and ~2 (and also <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/1/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/1">@1</a> and <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/2/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/2">@2</a>) even though they could easily use the same vtables.</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use std::cast::transmute;
trait Foo {
fn foo(&self) {}
}
impl Foo for uint {}
impl Foo for int {}
unsafe {
(transmute::<~Foo, (uint,uint)>(~1i as ~Foo),
transmute::<@Foo, (uint,uint)>(@1i as @Foo),
transmute::<~Foo, (uint,uint)>(~2i as ~Foo),
transmute::<@Foo, (uint,uint)>(@2i as @Foo))
}"><pre class="notranslate"><span class="pl-k">use</span> std<span class="pl-kos">::</span>cast<span class="pl-kos">::</span>transmute<span class="pl-kos">;</span>
<span class="pl-k">trait</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
<span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-smi">self</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">impl</span> <span class="pl-smi">Foo</span> <span class="pl-k">for</span> <span class="pl-smi">uint</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-k">impl</span> <span class="pl-smi">Foo</span> <span class="pl-k">for</span> <span class="pl-smi">int</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-k">unsafe</span> <span class="pl-kos">{</span>
<span class="pl-kos">(</span><span class="pl-en">transmute</span><span class="pl-kos">::</span><span class="pl-kos"><</span>~<span class="pl-smi">Foo</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-smi">uint</span><span class="pl-kos">,</span><span class="pl-smi">uint</span><span class="pl-kos">)</span><span class="pl-kos">></span><span class="pl-kos">(</span>~<span class="pl-c1">1</span>i <span class="pl-k">as</span> ~<span class="pl-smi">Foo</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-en">transmute</span><span class="pl-kos">::</span><span class="pl-kos"><</span>@<span class="pl-smi">Foo</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-smi">uint</span><span class="pl-kos">,</span><span class="pl-smi">uint</span><span class="pl-kos">)</span><span class="pl-kos">></span><span class="pl-kos">(</span>@<span class="pl-c1">1</span>i <span class="pl-k">as</span> @<span class="pl-smi">Foo</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-en">transmute</span><span class="pl-kos">::</span><span class="pl-kos"><</span>~<span class="pl-smi">Foo</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-smi">uint</span><span class="pl-kos">,</span><span class="pl-smi">uint</span><span class="pl-kos">)</span><span class="pl-kos">></span><span class="pl-kos">(</span>~<span class="pl-c1">2</span>i <span class="pl-k">as</span> ~<span class="pl-smi">Foo</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-en">transmute</span><span class="pl-kos">::</span><span class="pl-kos"><</span>@<span class="pl-smi">Foo</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-smi">uint</span><span class="pl-kos">,</span><span class="pl-smi">uint</span><span class="pl-kos">)</span><span class="pl-kos">></span><span class="pl-kos">(</span>@<span class="pl-c1">2</span>i <span class="pl-k">as</span> @<span class="pl-smi">Foo</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">The code was fed to rusti, original below (thanks to dbaupp):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="13:55 < dbaupp> rusti: use std::cast::transmute; trait Foo { fn foo(&self) {} } impl Foo for uint {} impl Foo for int {} unsafe {(transmute::<~Foo, (uint,uint)>(~1i as ~Foo),transmute::<@Foo, (uint,uint)>(@1i as @Foo),transmute::<~Foo, (uint,uint)>(~2i as ~Foo),transmute::<@Foo, (uint,uint)>(@2i as @Foo))}
13:55 -rusti:#rust- ((6340760, 140201758297392), (6340840, 140201758297424), (6340856, 140201758297472), (6340872, 140201758297504))"><pre class="notranslate"><code class="notranslate">13:55 < dbaupp> rusti: use std::cast::transmute; trait Foo { fn foo(&self) {} } impl Foo for uint {} impl Foo for int {} unsafe {(transmute::<~Foo, (uint,uint)>(~1i as ~Foo),transmute::<@Foo, (uint,uint)>(@1i as @Foo),transmute::<~Foo, (uint,uint)>(~2i as ~Foo),transmute::<@Foo, (uint,uint)>(@2i as @Foo))}
13:55 -rusti:#rust- ((6340760, 140201758297392), (6340840, 140201758297424), (6340856, 140201758297472), (6340872, 140201758297504))
</code></pre></div>
<p dir="auto">Swapping vtables appears to work just fine, even between ~Trait and &Trait (but not between ~Trait and <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/trait/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/trait">@trait</a>):</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use std::cast::transmute;
trait Foo{
fn foo(&mut self);
fn bar(&self)->int;
}
impl Foo for int{
fn foo(&mut self) {
*self=*self+1
}
fn bar(&self)->int{
*self
}
};
unsafe{
let (a1,a2) = transmute::<~Foo,(uint,uint)>(~1 as ~Foo);
let (b1,b2) = transmute::<&mut Foo,(uint,uint)>(&mut 2 as &mut Foo);
let mut a = transmute::<(uint,uint),~Foo>((b1,a2));
let b = transmute::<(uint,uint),&mut Foo>((a1,b2));
a.foo();b.foo();
(a.bar(),b.bar() )
}"><pre class="notranslate"><span class="pl-k">use</span> std<span class="pl-kos">::</span>cast<span class="pl-kos">::</span>transmute<span class="pl-kos">;</span>
<span class="pl-k">trait</span> <span class="pl-smi">Foo</span><span class="pl-kos">{</span>
<span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-k">mut</span> <span class="pl-smi">self</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">fn</span> <span class="pl-en">bar</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-smi">self</span><span class="pl-kos">)</span>-><span class="pl-smi">int</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">impl</span> <span class="pl-smi">Foo</span> <span class="pl-k">for</span> <span class="pl-smi">int</span><span class="pl-kos">{</span>
<span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-k">mut</span> <span class="pl-smi">self</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c1">*</span><span class="pl-smi">self</span>=<span class="pl-c1">*</span><span class="pl-smi">self</span>+<span class="pl-c1">1</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">bar</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-smi">self</span><span class="pl-kos">)</span>-><span class="pl-smi">int</span><span class="pl-kos">{</span>
<span class="pl-c1">*</span><span class="pl-smi">self</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">unsafe</span><span class="pl-kos">{</span>
<span class="pl-k">let</span> <span class="pl-kos">(</span>a1<span class="pl-kos">,</span>a2<span class="pl-kos">)</span> = <span class="pl-en">transmute</span><span class="pl-kos">::</span><span class="pl-kos"><</span>~<span class="pl-smi">Foo</span><span class="pl-kos">,</span><span class="pl-kos">(</span><span class="pl-smi">uint</span><span class="pl-kos">,</span><span class="pl-smi">uint</span><span class="pl-kos">)</span><span class="pl-kos">></span><span class="pl-kos">(</span>~<span class="pl-c1">1</span> <span class="pl-k">as</span> ~<span class="pl-smi">Foo</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-kos">(</span>b1<span class="pl-kos">,</span>b2<span class="pl-kos">)</span> = <span class="pl-en">transmute</span><span class="pl-kos">::</span><span class="pl-kos"><</span><span class="pl-c1">&</span><span class="pl-k">mut</span> <span class="pl-smi">Foo</span><span class="pl-kos">,</span><span class="pl-kos">(</span><span class="pl-smi">uint</span><span class="pl-kos">,</span><span class="pl-smi">uint</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">mut</span> <span class="pl-c1">2</span> <span class="pl-k">as</span> <span class="pl-c1">&</span><span class="pl-k">mut</span> <span class="pl-smi">Foo</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-k">mut</span> a = <span class="pl-en">transmute</span><span class="pl-kos">::</span><span class="pl-kos"><</span><span class="pl-kos">(</span><span class="pl-smi">uint</span><span class="pl-kos">,</span><span class="pl-smi">uint</span><span class="pl-kos">)</span><span class="pl-kos">,</span>~<span class="pl-smi">Foo</span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-kos">(</span>b1<span class="pl-kos">,</span>a2<span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> b = <span class="pl-en">transmute</span><span class="pl-kos">::</span><span class="pl-kos"><</span><span class="pl-kos">(</span><span class="pl-smi">uint</span><span class="pl-kos">,</span><span class="pl-smi">uint</span><span class="pl-kos">)</span><span class="pl-kos">,</span><span class="pl-c1">&</span><span class="pl-k">mut</span> <span class="pl-smi">Foo</span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-kos">(</span>a1<span class="pl-kos">,</span>b2<span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
a<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>b<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-kos">(</span>a<span class="pl-kos">.</span><span class="pl-en">bar</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span>b<span class="pl-kos">.</span><span class="pl-en">bar</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">Outputs (2,3) in rusti.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="14:24 < Thiez> rusti: use std::cast::transmute; trait Foo{fn foo(&mut self);fn bar(&self)->int;} impl Foo for int{fn foo(&mut self){*self=*self+1}fn bar(&self)->int{*self}}; unsafe{ let
(a1,a2)=transmute::<~Foo,(uint,uint)>(~1 as ~Foo); let (b1,b2)=transmute::<&mut Foo,(uint,uint)>(&mut 2 as &mut Foo); let mut a=transmute::<(uint,uint),~Foo>((b1,a2));let b =
transmute::<(uint,uint),&mut Foo>((a1,b2)); a.foo();b.foo();(a.bar(),b.bar()) }
14:24 -rusti:#rust- (2, 3)"><pre class="notranslate"><code class="notranslate">14:24 < Thiez> rusti: use std::cast::transmute; trait Foo{fn foo(&mut self);fn bar(&self)->int;} impl Foo for int{fn foo(&mut self){*self=*self+1}fn bar(&self)->int{*self}}; unsafe{ let
(a1,a2)=transmute::<~Foo,(uint,uint)>(~1 as ~Foo); let (b1,b2)=transmute::<&mut Foo,(uint,uint)>(&mut 2 as &mut Foo); let mut a=transmute::<(uint,uint),~Foo>((b1,a2));let b =
transmute::<(uint,uint),&mut Foo>((a1,b2)); a.foo();b.foo();(a.bar(),b.bar()) }
14:24 -rusti:#rust- (2, 3)
</code></pre></div>
<p dir="auto">It seems to me we should generate the vtables at compile time.</p> | <p dir="auto">I'd marked a test case with those two attributes, intended to remove the second one later, but the compiler didn't bother with the second one to begin with. This caused a known-buggy test case to run anyway and wedge the build bots on all but windows.</p>
<p dir="auto">I would have liked to have seen something like <code class="notranslate">warning: duplicate </code>ignore<code class="notranslate"> attribute; ignoring the latter</code></p> | 0 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
getting lots of errors from unused components:</p>
<p dir="auto"><strong>Expected behavior</strong><br>
if I don't declare a component in my declarations, i18 should not look at it</p>
<p dir="auto">I run the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ./node_modules/.bin/ng-xi18n
Error: Cannot determine the module for class DividerPanel in C:/msweb/ng-skeleton/src/comps/dividerpanel/DividerPanel.ts!
Cannot determine the module for class Dropbox in C:/msweb/ng-skeleton/src/comps/dropbox/Dropbox.ts!
Cannot determine the module for class EntryPanel in C:/msweb/ng-skeleton/src/comps/entry/EntryPanel.ts!
Cannot determine the module for class ForgotPass in C:/msweb/ng-skeleton/src/comps/entry/ForgotPass.ts!
Cannot determine the module for class Footer in C:/msweb/ng-skeleton/src/comps/footer/Footer.ts!
Cannot determine the module for class Infobox in C:/msweb/ng-skeleton/src/comps/infobox/Infobox.ts!
Cannot determine the module for class InputNumeric in C:/msweb/ng-skeleton/src/comps/inputnumeric/InputNumeric.ts!
Cannot determine the module for class InputString in C:/msweb/ng-skeleton/src/comps/inputstring/InputString.ts!
Cannot determine the module for class Loading in C:/msweb/ng-skeleton/src/comps/loading/Loading.ts!
Cannot determine the module for class MapAddress in C:/msweb/ng-skeleton/src/comps/mapaddress/MapAddress.ts!
Cannot determine the module for class Minitab in C:/msweb/ng-skeleton/src/comps/minitabs/MiniTab.ts!
Cannot determine the module for class Minitabs in C:/msweb/ng-skeleton/src/comps/minitabs/MiniTabs.ts!
Cannot determine the module for class ModalDialog in C:/msweb/ng-skeleton/src/comps/modaldialog/ModalDialog.ts!
Cannot determine the module for class Ng2Highcharts in C:/msweb/ng-skeleton/src/comps/ng2-highcharts/src/directives/ng2-highcharts.ts!
Cannot determine the module for class Ng2Highstocks in C:/msweb/ng-skeleton/src/comps/ng2-highcharts/src/directives/ng2-highstocks.ts!
Cannot determine the module for class Ng2Highmaps in C:/msweb/ng-skeleton/src/comps/ng2-highcharts/src/directives/ng2-highmaps.ts!
Cannot determine the module for class simplelistEditable in C:/msweb/ng-skeleton/src/comps/simplelist/simplelistEditable.ts!
Cannot determine the module for class simplelist in C:/msweb/ng-skeleton/src/comps/simplelist/simplelist.ts!
Cannot determine the module for class FilterPipe in C:/msweb/ng-skeleton/src/pipes/FilterPipe.ts!
Cannot determine the module for class FilterPipeEqual in C:/msweb/ng-skeleton/src/pipes/FilterPipeNot.ts!
Cannot determine the module for class OrderBy in C:/msweb/ng-skeleton/src/pipes/OrderBy.ts!
Cannot determine the module for class ReplacePipe in C:/msweb/ng-skeleton/src/pipes/ReplacePipe.ts!
Cannot determine the module for class SortBy in C:/msweb/ng-skeleton/src/pipes/SortBy.ts!
at analyzeAndValidateNgModules (C:\msweb\ng-skeleton\node_modules\@angular\compiler\bundles\compiler.umd.js:24878:17)
at Extractor.extract (C:\msweb\ng-skeleton\node_modules\@angular\compiler\bundles\compiler.umd.js:27727:20)
at Extractor.extractBundle (C:\msweb\ng-skeleton\node_modules\@angular\compiler-cli\src\extractor.js:40:33)
at Extractor.extract (C:\msweb\ng-skeleton\node_modules\@angular\compiler-cli\src\extractor.js:30:34)
at extract (C:\msweb\ng-skeleton\node_modules\@angular\compiler-cli\src\extract_i18n.js:7:67)
at Object.main (C:\msweb\ng-skeleton\node_modules\@angular\tsc-wrapped\src\main.js:47:16)
at Object.<anonymous> (C:\msweb\ng-skeleton\node_modules\@angular\compiler-cli\src\extract_i18n.js:14:9)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
Extraction failed"><pre class="notranslate"><code class="notranslate">$ ./node_modules/.bin/ng-xi18n
Error: Cannot determine the module for class DividerPanel in C:/msweb/ng-skeleton/src/comps/dividerpanel/DividerPanel.ts!
Cannot determine the module for class Dropbox in C:/msweb/ng-skeleton/src/comps/dropbox/Dropbox.ts!
Cannot determine the module for class EntryPanel in C:/msweb/ng-skeleton/src/comps/entry/EntryPanel.ts!
Cannot determine the module for class ForgotPass in C:/msweb/ng-skeleton/src/comps/entry/ForgotPass.ts!
Cannot determine the module for class Footer in C:/msweb/ng-skeleton/src/comps/footer/Footer.ts!
Cannot determine the module for class Infobox in C:/msweb/ng-skeleton/src/comps/infobox/Infobox.ts!
Cannot determine the module for class InputNumeric in C:/msweb/ng-skeleton/src/comps/inputnumeric/InputNumeric.ts!
Cannot determine the module for class InputString in C:/msweb/ng-skeleton/src/comps/inputstring/InputString.ts!
Cannot determine the module for class Loading in C:/msweb/ng-skeleton/src/comps/loading/Loading.ts!
Cannot determine the module for class MapAddress in C:/msweb/ng-skeleton/src/comps/mapaddress/MapAddress.ts!
Cannot determine the module for class Minitab in C:/msweb/ng-skeleton/src/comps/minitabs/MiniTab.ts!
Cannot determine the module for class Minitabs in C:/msweb/ng-skeleton/src/comps/minitabs/MiniTabs.ts!
Cannot determine the module for class ModalDialog in C:/msweb/ng-skeleton/src/comps/modaldialog/ModalDialog.ts!
Cannot determine the module for class Ng2Highcharts in C:/msweb/ng-skeleton/src/comps/ng2-highcharts/src/directives/ng2-highcharts.ts!
Cannot determine the module for class Ng2Highstocks in C:/msweb/ng-skeleton/src/comps/ng2-highcharts/src/directives/ng2-highstocks.ts!
Cannot determine the module for class Ng2Highmaps in C:/msweb/ng-skeleton/src/comps/ng2-highcharts/src/directives/ng2-highmaps.ts!
Cannot determine the module for class simplelistEditable in C:/msweb/ng-skeleton/src/comps/simplelist/simplelistEditable.ts!
Cannot determine the module for class simplelist in C:/msweb/ng-skeleton/src/comps/simplelist/simplelist.ts!
Cannot determine the module for class FilterPipe in C:/msweb/ng-skeleton/src/pipes/FilterPipe.ts!
Cannot determine the module for class FilterPipeEqual in C:/msweb/ng-skeleton/src/pipes/FilterPipeNot.ts!
Cannot determine the module for class OrderBy in C:/msweb/ng-skeleton/src/pipes/OrderBy.ts!
Cannot determine the module for class ReplacePipe in C:/msweb/ng-skeleton/src/pipes/ReplacePipe.ts!
Cannot determine the module for class SortBy in C:/msweb/ng-skeleton/src/pipes/SortBy.ts!
at analyzeAndValidateNgModules (C:\msweb\ng-skeleton\node_modules\@angular\compiler\bundles\compiler.umd.js:24878:17)
at Extractor.extract (C:\msweb\ng-skeleton\node_modules\@angular\compiler\bundles\compiler.umd.js:27727:20)
at Extractor.extractBundle (C:\msweb\ng-skeleton\node_modules\@angular\compiler-cli\src\extractor.js:40:33)
at Extractor.extract (C:\msweb\ng-skeleton\node_modules\@angular\compiler-cli\src\extractor.js:30:34)
at extract (C:\msweb\ng-skeleton\node_modules\@angular\compiler-cli\src\extract_i18n.js:7:67)
at Object.main (C:\msweb\ng-skeleton\node_modules\@angular\tsc-wrapped\src\main.js:47:16)
at Object.<anonymous> (C:\msweb\ng-skeleton\node_modules\@angular\compiler-cli\src\extract_i18n.js:14:9)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
Extraction failed
</code></pre></div>
<p dir="auto">versions:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="angular-cli: 1.0.0-beta.25.5
node: 6.5.0
os: win32 x64
@angular/common: 2.4.3
@angular/compiler: 2.4.3
@angular/compiler-cli: 2.4.3
@angular/core: 2.4.3
@angular/forms: 2.4.3
@angular/http: 2.4.3
@angular/platform-browser: 2.4.3
@angular/platform-browser-dynamic: 2.4.3
@angular/platform-server: 2.4.3
@angular/router: 3.2.1
@angular/language-service: 2.4.3
"><pre class="notranslate"><code class="notranslate">angular-cli: 1.0.0-beta.25.5
node: 6.5.0
os: win32 x64
@angular/common: 2.4.3
@angular/compiler: 2.4.3
@angular/compiler-cli: 2.4.3
@angular/core: 2.4.3
@angular/forms: 2.4.3
@angular/http: 2.4.3
@angular/platform-browser: 2.4.3
@angular/platform-browser-dynamic: 2.4.3
@angular/platform-server: 2.4.3
@angular/router: 3.2.1
@angular/language-service: 2.4.3
</code></pre></div>
<p dir="auto">Angular 2 Kitchen sink: <a href="http://ng2.javascriptninja.io" rel="nofollow">http://ng2.javascriptninja.io</a><br>
and source@ <a href="https://github.com/born2net/Angular-kitchen-sink">https://github.com/born2net/Angular-kitchen-sink</a><br>
Regards,</p>
<p dir="auto">Sean</p> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
Unused components/pipes/directives in my workspace are detected by the compiler, which throws the error <code class="notranslate">Cannot determine the module for class (...)</code> for each file. It stops compilation, and does not seem be configurable. This is a problem, since I need to have those files in my workspace, but do not need them in the resultant app (partner implementations requiring different combos of shared components). This is especially frustrating with regards to compiling in a webpack loader, which should be able to provide a list of files which are included, regardless of workspace.</p>
<p dir="auto"><strong>Expected behavior</strong><br>
I would expect these errors to be warnings, and/or able to be silenced by a compiler option. Alternatively, with regards to webpack, you could allow a list of files to be inserted, so that a webpack could provide all files in the require chain, instead of all files in the workspace.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
Cannot demo in plunkr, since it uses JIT.</p>
<ol dir="auto">
<li>Create a basic angular app which bootstraps an ngModule with one component, AppComponent</li>
<li>Get this app into a state which can be AOT compiled (should be pretty easy with a hello world)</li>
<li>Add a component to the directory structure, but do not reference it anywhere in your code.</li>
<li>Try to AOT compile again. You will get the warning <code class="notranslate">Cannot determine the module for class</code></li>
</ol>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
My company has a base app for ourselves, and our partners use modified versions of that app as their own. Rather than maintain all partners separately, we use a shared library of common generic components, imported as needed. For our base app, everything is fine, since we use every component. For partners, we cannot use AOT, since some of the components in the shared npm package do not have a declared module.</p>
<p dir="auto"><strong>Please tell us about your environment:</strong><br>
Happens across all devices, but the current testing setup is:<br>
WIndows 10<br>
VS Code<br>
Cmder (bash terminal)</p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Angular version:</strong><br>
v2.1.0 (though we have also tested in 2.3.1</p>
</li>
<li>
<p dir="auto"><strong>Browser:</strong> All - this is a compiler issue, not browser specific</p>
</li>
<li>
<p dir="auto"><strong>Language:</strong> Typescript</p>
</li>
<li>
<p dir="auto"><strong>Node (for AoT issues):</strong> node v6.3.0</p>
</li>
</ul> | 1 |
<p dir="auto">Just updated to 5.8.23 and noticed this in our diff:</p>
<p dir="auto">Input <a href="https://github.com/tgriesser/bookshelf/blob/72308871b5a114d96a7519c6a84ed8480285bf59/src/base/collection.js#L180-L185">(context)</a>:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" } else if (add) {
if (!(model = this._prepareModel(attrs, options))) continue;
toAdd.push(model);
this._byId[model.cid] = model;
if (model.id != null) this._byId[model.id] = model;
}"><pre class="notranslate"> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">add</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-kos">(</span><span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">_prepareModel</span><span class="pl-kos">(</span><span class="pl-s1">attrs</span><span class="pl-kos">,</span> <span class="pl-s1">options</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-k">continue</span><span class="pl-kos">;</span>
<span class="pl-s1">toAdd</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s1">model</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">_byId</span><span class="pl-kos">[</span><span class="pl-s1">model</span><span class="pl-kos">.</span><span class="pl-c1">cid</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">model</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">model</span><span class="pl-kos">.</span><span class="pl-c1">id</span> <span class="pl-c1">!=</span> <span class="pl-c1">null</span><span class="pl-kos">)</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">_byId</span><span class="pl-kos">[</span><span class="pl-s1">model</span><span class="pl-kos">.</span><span class="pl-c1">id</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">model</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Output <a href="https://github.com/tgriesser/bookshelf/blob/72308871b5a114d96a7519c6a84ed8480285bf59/lib/base/collection.js#L186-L191">(context)</a>:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" } else if (add) {
if (!(model = this._prepareModel(attrs, options))) continue;
toAdd.push(model);
this._byId[model.cid] = model;
if (model.id != null) this._byId[model.id] = model;
}"><pre class="notranslate"> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">add</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-kos">(</span><span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">_prepareModel</span><span class="pl-kos">(</span><span class="pl-s1">attrs</span><span class="pl-kos">,</span> <span class="pl-s1">options</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-k">continue</span><span class="pl-kos">;</span>
<span class="pl-s1">toAdd</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s1">model</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">_byId</span><span class="pl-kos">[</span><span class="pl-s1">model</span><span class="pl-kos">.</span><span class="pl-c1">cid</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">model</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">model</span><span class="pl-kos">.</span><span class="pl-c1">id</span> <span class="pl-c1">!=</span> <span class="pl-c1">null</span><span class="pl-kos">)</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">_byId</span><span class="pl-kos">[</span><span class="pl-s1">model</span><span class="pl-kos">.</span><span class="pl-c1">id</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">model</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">No changes in the source file (as far as I can tell).</p>
<p dir="auto">Unfortunately I'm not sure how to check which version of Babel I was using previously as I just ran <code class="notranslate">npm update</code>. Somewhere between 5.5.8 and 5.8.23.</p>
<p dir="auto">Thanks for the great work. <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji></p> | <p dir="auto">In 5.8.9, this:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if (a) {
b(); // this comment breaks the code generators indentation
} else {
c();
}"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">b</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// this comment breaks the code generators indentation</span>
<span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span>
<span class="pl-en">c</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">results in:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""use strict";
if (a) {
b(); // this comment breaks the code generators indentation
} else {
c();
}"><pre class="notranslate"><span class="pl-s">"use strict"</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">b</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// this comment breaks the code generators indentation</span>
<span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span>
<span class="pl-en">c</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">Below is the error:</p>
<p dir="auto">Exception in thread "main" java.lang.UnsupportedOperationException: Op BatchNormWithGlobalNormalization is not available in GraphDef version 21. It has been removed in version 9. Use tf.nn.batch_normalization().<br>
at org.tensorflow.Graph.importGraphDef(Native Method)<br>
at org.tensorflow.Graph.importGraphDef(Graph.java:113)<br>
at org.tensorflow.Graph.importGraphDef(Graph.java:97)<br>
at org.tensorflow.examples.LabelImage.executeInceptionGraph(LabelImage.java:110)<br>
at org.tensorflow.examples.LabelImage.main(LabelImage.java:65)</p>
<p dir="auto">I can't find the source file in which to use tf.nn.batch_normalization<br>
Are the Java libraries using older versions of Tensorflow?</p> | <p dir="auto">I am following <a href="https://codelabs.developers.google.com/codelabs/tensorflow-for-poets/#0" rel="nofollow">Tensorflow for poet</a> instruction for retrain model. I have successfully create retrained_graph.pb and retrained_labels.txt. While I use imagenet_comp_graph_label_strings.txt and tensorflow_inception_graph.pb then application run without any error. But use my created file then I get error that:</p>
<p dir="auto"><code class="notranslate">Caused by: java.lang.UnsupportedOperationException: Op BatchNormWithGlobalNormalization is not available in GraphDef version 21. It has been removed in version 9. Use tf.nn.batch_normalization(). at org.tensorflow.Graph.importGraphDef(Native Method) at org.tensorflow.Graph.importGraphDef(Graph.java:118) at org.tensorflow.Graph.importGraphDef(Graph.java:102) at org.tensorflow.contrib.android.TensorFlowInferenceInterface.load(TensorFlowInferenceInterface.java:402) at org.tensorflow.contrib.android.TensorFlowInferenceInterface.initializeTensorFlow(TensorFlowInferenceInterface.java:91) at org.tensorflow.demo.TensorFlowImageClass</code></p> | 1 |
<p dir="auto">I just noticed that this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: import numpy as np
In [2]: arr = np.zeros((2, 3), dtype=np.int16) + np.int16(3201)
In [3]: arr.T.dot(arr)
Out[3]:
array([[-19966, -19966, -19966],
[-19966, -19966, -19966],
[-19966, -19966, -19966]], dtype=int16)"><pre class="notranslate"><code class="notranslate">In [1]: import numpy as np
In [2]: arr = np.zeros((2, 3), dtype=np.int16) + np.int16(3201)
In [3]: arr.T.dot(arr)
Out[3]:
array([[-19966, -19966, -19966],
[-19966, -19966, -19966],
[-19966, -19966, -19966]], dtype=int16)
</code></pre></div>
<p dir="auto">spits out no warning about integer overflow. Is it possible to generate one?</p> | <p dir="auto">Simple demo:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [1]: np.uint8(0) - np.uint8(1)
RuntimeWarning: overflow encountered in ubyte_scalars
Out[1]: 255
In [2]: np.uint8(0)[...] - np.uint8(1)[...]
Out[2]: 255"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">1</span>]: <span class="pl-s1">np</span>.<span class="pl-en">uint8</span>(<span class="pl-c1">0</span>) <span class="pl-c1">-</span> <span class="pl-s1">np</span>.<span class="pl-en">uint8</span>(<span class="pl-c1">1</span>)
<span class="pl-v">RuntimeWarning</span>: <span class="pl-s1">overflow</span> <span class="pl-s1">encountered</span> <span class="pl-c1">in</span> <span class="pl-s1">ubyte_scalars</span>
<span class="pl-v">Out</span>[<span class="pl-c1">1</span>]: <span class="pl-c1">255</span>
<span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-s1">np</span>.<span class="pl-en">uint8</span>(<span class="pl-c1">0</span>)[...] <span class="pl-c1">-</span> <span class="pl-s1">np</span>.<span class="pl-en">uint8</span>(<span class="pl-c1">1</span>)[...]
<span class="pl-v">Out</span>[<span class="pl-c1">2</span>]: <span class="pl-c1">255</span></pre></div>
<p dir="auto">Should we even warn at all for unsigned integers?</p> | 1 |
<p dir="auto">I found someone asking the same issue..</p>
<p dir="auto">issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="209089047" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/8725" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/8725/hovercard" href="https://github.com/electron/electron/issues/8725">#8725</a></p>
<p dir="auto">but he didn't solve it.</p>
<p dir="auto">I'm going to focus on that issue</p>
<p dir="auto">sorry. please close my issue</p> | <p dir="auto"><a href="https://github.com/electron/electron/pull/15169/checks?check_run_id=24722132">https://github.com/electron/electron/pull/15169/checks?check_run_id=24722132</a></p> | 0 |
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Feature Idea</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">Windows</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<p dir="auto">v2.5</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Much like sudo on Unix, it would be nice to be able to run modules as any user (from an Administrator account) without the need to use passwords (which you may not know). When managing multi-user systems this is a necessity in order to manage configuration items of user environments.</p>
<p dir="auto">This is a continuation of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="284359437" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/34214" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/34214/hovercard" href="https://github.com/ansible/ansible/issues/34214">#34214</a></p> | <h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">core</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 =
configured module search path = Default w/o overrides
python version = 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118]"><pre class="notranslate"><code class="notranslate">ansible 2.3.0.0
config file =
configured module search path = Default w/o overrides
python version = 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118]
</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">Ansible 2.3 shows failures like</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fatal: [bolagsfakta-debian.pov.lt]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'actual_accounts' is undefined\n\nThe error appears to have been in '/home/mg/src/tilaajavastuu/bolagsfakta/deployment/roles/users/tasks/main.yml': line 38, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: compare the account lists\n ^ here\n"}
fatal: [bolagsfakta-debian.pov.lt]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'actual_accounts' is undefined\n\nThe error appears to have been in '/home/mg/src/tilaajavastuu/bolagsfakta/deployment/roles/users/tasks/main.yml': line 38, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: compare the account lists\n ^ here\n"}"><pre class="notranslate"><code class="notranslate">fatal: [bolagsfakta-debian.pov.lt]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'actual_accounts' is undefined\n\nThe error appears to have been in '/home/mg/src/tilaajavastuu/bolagsfakta/deployment/roles/users/tasks/main.yml': line 38, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: compare the account lists\n ^ here\n"}
fatal: [bolagsfakta-debian.pov.lt]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'actual_accounts' is undefined\n\nThe error appears to have been in '/home/mg/src/tilaajavastuu/bolagsfakta/deployment/roles/users/tasks/main.yml': line 38, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: compare the account lists\n ^ here\n"}
</code></pre></div>
<p dir="auto">for a playbook that worked fine in 2.2. This happens only when the host in question is duplicated in the inventory.</p>
<p dir="auto">The playbook itself looks like this:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="---
- name: user accounts for sysadmins
user: name={{ item }} state=present
with_items: "{{ admin_users }}"
# two tasks skipped here for conciseness:
# - name: authorized keys for sysadmins
# - name: sudo rights for sysadmins
- name: list user accounts
command: "awk -F: '$3 >\\= 1000 && $3 < 65534 { print $1 }' /etc/passwd"
register: list_users_result
check_mode: no
changed_when: false
- name: prepare a list of expected user accounts
set_fact:
actual_accounts: "{{ list_users_result.stdout_lines|sort }}"
expected_accounts: "{{ admin_users|sort }}"
- name: compare the account lists
set_fact:
unexpected_accounts: "{{ actual_accounts|difference(expected_accounts) }}"
missing_accounts: "{{ expected_accounts|difference(actual_accounts) }}"
- name: show unexpected accounts
debug: var=unexpected_accounts
when: unexpected_accounts
- name: show missing accounts
debug: var=missing_accounts
when: missing_accounts
- name: check user accounts
assert:
that: "expected_accounts == actual_accounts""><pre class="notranslate">---
- <span class="pl-ent">name</span>: <span class="pl-s">user accounts for sysadmins</span>
<span class="pl-ent">user</span>: <span class="pl-s">name={{ item }} state=present</span>
<span class="pl-ent">with_items</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ admin_users }}<span class="pl-pds">"</span></span>
<span class="pl-c"><span class="pl-c">#</span> two tasks skipped here for conciseness:</span>
<span class="pl-c"><span class="pl-c">#</span> - name: authorized keys for sysadmins</span>
<span class="pl-c"><span class="pl-c">#</span> - name: sudo rights for sysadmins</span>
- <span class="pl-ent">name</span>: <span class="pl-s">list user accounts</span>
<span class="pl-ent">command</span>: <span class="pl-s"><span class="pl-pds">"</span>awk -F: '$3 ><span class="pl-cce">\\</span>= 1000 && $3 < 65534 { print $1 }' /etc/passwd<span class="pl-pds">"</span></span>
<span class="pl-ent">register</span>: <span class="pl-s">list_users_result</span>
<span class="pl-ent">check_mode</span>: <span class="pl-s">no</span>
<span class="pl-ent">changed_when</span>: <span class="pl-c1">false</span>
- <span class="pl-ent">name</span>: <span class="pl-s">prepare a list of expected user accounts</span>
<span class="pl-ent">set_fact</span>:
<span class="pl-ent">actual_accounts</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ list_users_result.stdout_lines|sort }}<span class="pl-pds">"</span></span>
<span class="pl-ent">expected_accounts</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ admin_users|sort }}<span class="pl-pds">"</span></span>
- <span class="pl-ent">name</span>: <span class="pl-s">compare the account lists</span>
<span class="pl-ent">set_fact</span>:
<span class="pl-ent">unexpected_accounts</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ actual_accounts|difference(expected_accounts) }}<span class="pl-pds">"</span></span>
<span class="pl-ent">missing_accounts</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ expected_accounts|difference(actual_accounts) }}<span class="pl-pds">"</span></span>
- <span class="pl-ent">name</span>: <span class="pl-s">show unexpected accounts</span>
<span class="pl-ent">debug</span>: <span class="pl-s">var=unexpected_accounts</span>
<span class="pl-ent">when</span>: <span class="pl-s">unexpected_accounts</span>
- <span class="pl-ent">name</span>: <span class="pl-s">show missing accounts</span>
<span class="pl-ent">debug</span>: <span class="pl-s">var=missing_accounts</span>
<span class="pl-ent">when</span>: <span class="pl-s">missing_accounts</span>
- <span class="pl-ent">name</span>: <span class="pl-s">check user accounts</span>
<span class="pl-ent">assert</span>:
<span class="pl-ent">that</span>: <span class="pl-s"><span class="pl-pds">"</span>expected_accounts == actual_accounts<span class="pl-pds">"</span></span></pre></div>
<p dir="auto">You can see that the variable Ansible claims is undefined (<code class="notranslate">actual_accounts</code>) is defined by a <code class="notranslate">set_fact</code> task before it is used.</p>
<p dir="auto">A curious thing is that the error shows up while executing an earlier task:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [all] *********************************************************************
TASK [users : user accounts for sysadmins] *************************************
...
TASK [users : authorized keys for sysadmins] ***********************************
...
TASK [users : sudo rights for sysadmins] ***************************************
fatal: [bolagsfakta-debian.pov.lt]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'actual_accounts' is undefined\n\nThe error appears to have been in '/home/mg/src/tilaajavastuu/bolagsfakta/deployment/roles/users/tasks/main.yml': line 38, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: compare the account lists\n ^ here\n"}
...
fatal: [bolagsfakta-debian.pov.lt]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'actual_accounts' is undefined\n\nThe error appears to have been in '/home/mg/src/tilaajavastuu/bolagsfakta/deployment/roles/users/tasks/main.yml': line 38, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: compare the account lists\n ^ here\n"}
.."><pre class="notranslate"><code class="notranslate">PLAY [all] *********************************************************************
TASK [users : user accounts for sysadmins] *************************************
...
TASK [users : authorized keys for sysadmins] ***********************************
...
TASK [users : sudo rights for sysadmins] ***************************************
fatal: [bolagsfakta-debian.pov.lt]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'actual_accounts' is undefined\n\nThe error appears to have been in '/home/mg/src/tilaajavastuu/bolagsfakta/deployment/roles/users/tasks/main.yml': line 38, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: compare the account lists\n ^ here\n"}
...
fatal: [bolagsfakta-debian.pov.lt]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'actual_accounts' is undefined\n\nThe error appears to have been in '/home/mg/src/tilaajavastuu/bolagsfakta/deployment/roles/users/tasks/main.yml': line 38, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: compare the account lists\n ^ here\n"}
..
</code></pre></div>
<p dir="auto">It is also noteworthy that each task shows it is being executed on <code class="notranslate">bolagsfakta-debian.pov.lt</code> twice.</p>
<p dir="auto">Now, why do I have the host twice in my inventory and why can't I remove one of the copies? This gets complicated:</p>
<ul dir="auto">
<li>there are several environments (dev, test, prod)</li>
<li>every developer can run ansible on the <code class="notranslate">dev</code> environment, but only some ops people have access to <code class="notranslate">prod</code></li>
<li>there's a vault file with encrypted secrets needed for <code class="notranslate">prod</code>, but developers don't know the password</li>
<li>to allow developers use ansible we must let them run with an inventory file that doesn't include the hosts/groups that have the encrypted vault file under group_vars/prod</li>
<li>ops people want to run ansible (usually in check mode) over all the environments in one run</li>
</ul>
<p dir="auto">The solution we came up with was to create a directory <code class="notranslate">env</code> with one inventory file per environment.<br>
This way developers can run <code class="notranslate">ansible-playbook -i env/dev playbook.yml</code> and do their deployments.<br>
Ops people can run things like <code class="notranslate">ansible-playbook -i env/prod --ask-vault-password playbook.yml</code> to deploy to one environment, or <code class="notranslate">ansible-playbook -i env --ask-vault-password playbook.yml -C</code> to compare the playbook with reality across all the environments in one go.</p>
<p dir="auto">The <code class="notranslate">bolagsfakta-debian</code> host needs to be defined both in <code class="notranslate">env/dev</code> and in <code class="notranslate">env/prod</code>, because both need to delegate some tasks to it. This leads to duplication when using <code class="notranslate">ansible-playbook -i env</code>, which resulted in this bug report.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<ul dir="auto">
<li>mention a host twice in the inventory</li>
<li>define a variable using <code class="notranslate">set_fact</code></li>
<li>use that variable in the following task</li>
</ul> | 0 |
<h3 dir="auto">Website or app</h3>
<p dir="auto"><a href="https://react.dev" rel="nofollow">https://react.dev</a></p>
<h3 dir="auto">Repro steps</h3>
<ol dir="auto">
<li>Open an incognito tab</li>
<li>visit a react 18 website</li>
<li>try and use dev tools (I'm on <code class="notranslate">4.27.1</code>)</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8675906/226998803-79f8e57b-ab7f-46e1-9cad-8744fe92296a.png"><img width="1728" alt="CleanShot 2023-03-22 at 11 10 16@2x" src="https://user-images.githubusercontent.com/8675906/226998803-79f8e57b-ab7f-46e1-9cad-8744fe92296a.png" style="max-width: 100%;"></a></p>
<h3 dir="auto">How often does this bug happen?</h3>
<p dir="auto">Every time</p>
<h3 dir="auto">DevTools package (automated)</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">DevTools version (automated)</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Error message (automated)</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Error call stack (automated)</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Error component stack (automated)</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">GitHub query string (automated)</h3>
<p dir="auto"><em>No response</em></p> | <p dir="auto"><strong>This technically is a <em>feature</em>, a missing one from version 3</strong>.</p>
<p dir="auto">On version 3 you could visualize files locations which was key in finding bugs, me and my team are currently struggling due to this removed feature on version 4.</p>
<p dir="auto">You should fix this ASAP as it costs a lot of time now.</p> | 0 |
<p dir="auto">Currently there is no way to retrieve function/method parameter names with the reflect package. The only introspection available is for the types of the input and output parameters of a function. The seems to be an exception with the reflect package, since it does offer naming information in most other cases.</p>
<p dir="auto">When building RPC/API libraries it is useful to be able to retrieve these method parameters names for purposes of runtime schema output, input validation on unstructured data, and possibly some API semantics. There are some alternatives right now:</p>
<ul dir="auto">
<li>Parse the source and use code generation to compile this metadata into the running program.</li>
<li>Use structs for all input/output and then use the field names in the structs, along with their tags, for introspection.</li>
</ul>
<p dir="auto">Some other considerations:</p>
<ul dir="auto">
<li>I understand that this might lead to binary and/or memory size increase due to the additional metadata that might have to be stored. This change might not be ideal this far into the 1.X cycle, but I think it should at least be considered for 2.0.</li>
<li>A fairly straightforward way to do this, that would not break backwards compatibility, would be to add two methods to reflect.Type that would retrieve the In/Out parameter names by Index.</li>
</ul>
<p dir="auto">Apologies if this is a duplicate issues. I searched the forums (nuts/dev) and this issue tracker and could not find any previous issues filed on this topic.</p> | <pre class="notranslate">I was hoping
// setInterfaceValue sets an interface value to a concrete value,
// but first it checks that the assignment will succeed.
func setInterfaceValue(ivalue reflect.Value, value reflect.Value) {
if !value.Type().AssignableTo(ivalue.Type()) {
errorf("cannot assign value of type %s to %s", value.Type(), ivalue.Type())
}
ivalue.Set(value)
}
Could be changed to
errorf("%s is not assignable to type %s", value.Type(), ivalue.Type(),
value.Type(), ivalue.Type())
I feel that the documentation on gob could be improved, though from previous discussions
it sounds like there is disagreement on adding examples for interfaces. While perhaps
independently this error seems sufficient, I found it confusing in the set of errors I
encountered while trying to understand how to correctly use the interface encoding, and
I did not fully realize what that meant until I looked at the source to see
reflect.AssignableTo was being used. I feel like changing the wording in this way makes
it more clear that "assign" is being used like in the language of the spec,
and not in a less precise manner.</pre> | 0 |
<p dir="auto">Using the latest release, using the SimplePreAuthenticatorInterface as per the docs, results in errors.</p>
<p dir="auto">Issuing a return null, rather than a return new PreAuthenticatedToken, in createToken() results in a Fatal Error since the AuthenticationProviderManager::authenticate() is expecting a TokenInterface instance. The docs say we can return (filtering URL section) when authentication is not required. Throwing an exception is the only means to exit the method, but, I don't know what others think, using an Exception for this conveys the wrong intention. Also, when used in conjunction with AuthenticationFailureHandlerInterface, throwing an Exception causes the onAuthenticationFailure() method to be called.</p>
<p dir="auto">In my instance, I'm using it to validate a captch (among other things) on the login screen. I was previously extending UsernamePasswordFormAuthenticationListener to do this, which will cause problems if any other bundle tries to extend the same class. I obviously don't want the captcha to be validated on every page.</p>
<p dir="auto">What would be the correct Exception to throw from createToken() when we simply don't want to authorize?</p> | <p dir="auto">Symfony cookbook entry for <a href="http://symfony.com/doc/current/cookbook/security/api_key_authentication.html" rel="nofollow">Api Key Authentication </a> states that you can return <code class="notranslate">null</code> from <code class="notranslate">SimplePreAuthenticatorInterface::createToken</code>. If you don't want to authenticate at certain url:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public function createToken(Request $request, $providerKey)
{
// set the only URL where we should look for auth information
// and only return the token if we're at that URL
$targetUrl = '/login/check';
if (!$this->httpUtils->checkRequestPath($request, $targetUrl)) {
return;
}
// ...
}"><pre class="notranslate"><code class="notranslate">public function createToken(Request $request, $providerKey)
{
// set the only URL where we should look for auth information
// and only return the token if we're at that URL
$targetUrl = '/login/check';
if (!$this->httpUtils->checkRequestPath($request, $targetUrl)) {
return;
}
// ...
}
</code></pre></div>
<p dir="auto">However, when I did it, I got the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Catchable Fatal Error: Argument 1 passed to Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager::authenticate() must be an instance of Symfony\Component\Security\Core\Authentication\Token\TokenInterface, null given"><pre class="notranslate"><code class="notranslate">Catchable Fatal Error: Argument 1 passed to Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager::authenticate() must be an instance of Symfony\Component\Security\Core\Authentication\Token\TokenInterface, null given
</code></pre></div>
<p dir="auto"><code class="notranslate">createToken</code> method is called from <code class="notranslate">SimplePreAuthenticationListener</code> and when I examined it, this looked like the part that is problematic:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$token = $this->simpleAuthenticator->createToken($request, $this->providerKey);
$token = $this->authenticationManager->authenticate($token);"><pre class="notranslate"><code class="notranslate">$token = $this->simpleAuthenticator->createToken($request, $this->providerKey);
$token = $this->authenticationManager->authenticate($token);
</code></pre></div>
<p dir="auto">So when <code class="notranslate">SimpleAuthenticator</code> returns <code class="notranslate">null</code>, it passes that <code class="notranslate">null</code> to <code class="notranslate">AuthenticationManager::authenticate</code> which doesn't accept nulls:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="interface AuthenticationManagerInterface
{
public function authenticate(TokenInterface $token);
}"><pre class="notranslate"><code class="notranslate">interface AuthenticationManagerInterface
{
public function authenticate(TokenInterface $token);
}
</code></pre></div> | 1 |
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2>
<p dir="auto">When I use torch.onnx.export , I met opset support problem:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/export/liuxiao/local/anaconda3/lib/python3.7/site-packages/torch/onnx/utils.py:562: UserWarning: ONNX export failed on ATen operator upsample_bilinear2d because torch.onnx.symbolic_opset9.upsample_bilinear2d does not exist
.format(op_name, opset_version, op_name))
Traceback (most recent call last):
File "convertPytorch2ONNX.py", line 54, in <module>
torch_out = torch.onnx.export(senetModel, input_var, sys.argv[4], export_params=True, verbose=True, input_names=input_names, output_names=output_names)
File "/export/liuxiao/local/anaconda3/lib/python3.7/site-packages/torch/onnx/__init__.py", line 132, in export
strip_doc_string, dynamic_axes)
File "/export/liuxiao/local/anaconda3/lib/python3.7/site-packages/torch/onnx/utils.py", line 64, in export
example_outputs=example_outputs, strip_doc_string=strip_doc_string, dynamic_axes=dynamic_axes)
File "/export/liuxiao/local/anaconda3/lib/python3.7/site-packages/torch/onnx/utils.py", line 329, in _export
_retain_param_name, do_constant_folding)
File "/export/liuxiao/local/anaconda3/lib/python3.7/site-packages/torch/onnx/utils.py", line 225, in _model_to_graph
_disable_torch_constant_prop=_disable_torch_constant_prop)
File "/export/liuxiao/local/anaconda3/lib/python3.7/site-packages/torch/onnx/utils.py", line 127, in _optimize_graph
graph = torch._C._jit_pass_onnx(graph, operator_export_type)
File "/export/liuxiao/local/anaconda3/lib/python3.7/site-packages/torch/onnx/__init__.py", line 163, in _run_symbolic_function
return utils._run_symbolic_function(*args, **kwargs)
File "/export/liuxiao/local/anaconda3/lib/python3.7/site-packages/torch/onnx/utils.py", line 563, in _run_symbolic_function
op_fn = sym_registry.get_registered_op(op_name, '', opset_version)
File "/export/liuxiao/local/anaconda3/lib/python3.7/site-packages/torch/onnx/symbolic_registry.py", line 91, in get_registered_op
return _registry[(domain, version)][opname]
KeyError: 'upsample_bilinear2d'"><pre class="notranslate"><code class="notranslate">/export/liuxiao/local/anaconda3/lib/python3.7/site-packages/torch/onnx/utils.py:562: UserWarning: ONNX export failed on ATen operator upsample_bilinear2d because torch.onnx.symbolic_opset9.upsample_bilinear2d does not exist
.format(op_name, opset_version, op_name))
Traceback (most recent call last):
File "convertPytorch2ONNX.py", line 54, in <module>
torch_out = torch.onnx.export(senetModel, input_var, sys.argv[4], export_params=True, verbose=True, input_names=input_names, output_names=output_names)
File "/export/liuxiao/local/anaconda3/lib/python3.7/site-packages/torch/onnx/__init__.py", line 132, in export
strip_doc_string, dynamic_axes)
File "/export/liuxiao/local/anaconda3/lib/python3.7/site-packages/torch/onnx/utils.py", line 64, in export
example_outputs=example_outputs, strip_doc_string=strip_doc_string, dynamic_axes=dynamic_axes)
File "/export/liuxiao/local/anaconda3/lib/python3.7/site-packages/torch/onnx/utils.py", line 329, in _export
_retain_param_name, do_constant_folding)
File "/export/liuxiao/local/anaconda3/lib/python3.7/site-packages/torch/onnx/utils.py", line 225, in _model_to_graph
_disable_torch_constant_prop=_disable_torch_constant_prop)
File "/export/liuxiao/local/anaconda3/lib/python3.7/site-packages/torch/onnx/utils.py", line 127, in _optimize_graph
graph = torch._C._jit_pass_onnx(graph, operator_export_type)
File "/export/liuxiao/local/anaconda3/lib/python3.7/site-packages/torch/onnx/__init__.py", line 163, in _run_symbolic_function
return utils._run_symbolic_function(*args, **kwargs)
File "/export/liuxiao/local/anaconda3/lib/python3.7/site-packages/torch/onnx/utils.py", line 563, in _run_symbolic_function
op_fn = sym_registry.get_registered_op(op_name, '', opset_version)
File "/export/liuxiao/local/anaconda3/lib/python3.7/site-packages/torch/onnx/symbolic_registry.py", line 91, in get_registered_op
return _registry[(domain, version)][opname]
KeyError: 'upsample_bilinear2d'
</code></pre></div>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>pytorch inference file</li>
<li>change the output to onnx.export</li>
</ol>
<h2 dir="auto">Environment</h2>
<ul dir="auto">
<li>PyTorch Version (e.g., 1.0): 1.2</li>
<li>OS (e.g., Linux): Centos</li>
<li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): Conda</li>
<li>Build command you used (if compiling from source):</li>
<li>Python version: 3.7.3</li>
<li>CUDA/cuDNN version: 10/7.6</li>
<li>Any other relevant information: pytorch model is trained by pytorch 1.0.0</li>
</ul> | <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">This issue is related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="440234928" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/20116" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/20116/hovercard" href="https://github.com/pytorch/pytorch/pull/20116">#20116</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="354684995" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/10942" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/10942/hovercard" href="https://github.com/pytorch/pytorch/issues/10942">#10942</a> and has to deal with <code class="notranslate">upsample_bilinear2d</code></p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>This snippet can be used to reproduce behavior</li>
</ol>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch
import torch.nn as nn
import torch.nn.functional as F
class TestModel(nn.Module):
def __init__(self):
super(TestModel, self).__init__()
def forward(self, x):
x = F.interpolate(x, scale_factor=2, mode='bilinear', align_corners=False)
return x
torch_model = TestModel()
dummy_input = torch.randn(1, 3, 256, 256)
torch_out = torch.onnx.export(torch_model, dummy_input, 'test_model.onnx', verbose=True)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span>
<span class="pl-k">import</span> <span class="pl-s1">torch</span>.<span class="pl-s1">nn</span> <span class="pl-k">as</span> <span class="pl-s1">nn</span>
<span class="pl-k">import</span> <span class="pl-s1">torch</span>.<span class="pl-s1">nn</span>.<span class="pl-s1">functional</span> <span class="pl-k">as</span> <span class="pl-v">F</span>
<span class="pl-k">class</span> <span class="pl-v">TestModel</span>(<span class="pl-s1">nn</span>.<span class="pl-v">Module</span>):
<span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>):
<span class="pl-en">super</span>(<span class="pl-v">TestModel</span>, <span class="pl-s1">self</span>).<span class="pl-en">__init__</span>()
<span class="pl-k">def</span> <span class="pl-en">forward</span>(<span class="pl-s1">self</span>, <span class="pl-s1">x</span>):
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">F</span>.<span class="pl-en">interpolate</span>(<span class="pl-s1">x</span>, <span class="pl-s1">scale_factor</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">mode</span><span class="pl-c1">=</span><span class="pl-s">'bilinear'</span>, <span class="pl-s1">align_corners</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
<span class="pl-k">return</span> <span class="pl-s1">x</span>
<span class="pl-s1">torch_model</span> <span class="pl-c1">=</span> <span class="pl-v">TestModel</span>()
<span class="pl-s1">dummy_input</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">randn</span>(<span class="pl-c1">1</span>, <span class="pl-c1">3</span>, <span class="pl-c1">256</span>, <span class="pl-c1">256</span>)
<span class="pl-s1">torch_out</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-s1">onnx</span>.<span class="pl-en">export</span>(<span class="pl-s1">torch_model</span>, <span class="pl-s1">dummy_input</span>, <span class="pl-s">'test_model.onnx'</span>, <span class="pl-s1">verbose</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</pre></div>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">That snippet is working under <code class="notranslate">torch.__version__</code> : <code class="notranslate">1.0.1.post2</code>, installed in a conda env, it seems that there it's able to parse to onnx since the output is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="graph(%input : Float(1, 3, 256, 256)) {
%1 : Tensor = onnx::Constant[value= 1 1 2 2 [ CPUFloatType{4} ]](), scope: TestModel
%2 : Float(1, 3, 512, 512) = onnx::Upsample[mode="linear"](%input, %1), scope: TestModel
return (%2);
}
"><pre class="notranslate"><code class="notranslate">graph(%input : Float(1, 3, 256, 256)) {
%1 : Tensor = onnx::Constant[value= 1 1 2 2 [ CPUFloatType{4} ]](), scope: TestModel
%2 : Float(1, 3, 512, 512) = onnx::Upsample[mode="linear"](%input, %1), scope: TestModel
return (%2);
}
</code></pre></div>
<p dir="auto">Under <code class="notranslate">torch.__version__</code> : <code class="notranslate">1.1.0</code> the error would be this one:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "test.py", line 16, in <module>
torch_out = torch.onnx.export(torch_model, dummy_input, 'test_model.onnx', verbose=True)
File "/home/bpinaya/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/onnx/__init__.py", line 25, in export
return utils.export(*args, **kwargs)
File "/home/bpinaya/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/onnx/utils.py", line 131, in export
strip_doc_string=strip_doc_string)
File "/home/bpinaya/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/onnx/utils.py", line 363, in _export
_retain_param_name, do_constant_folding)
File "/home/bpinaya/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/onnx/utils.py", line 278, in _model_to_graph
_disable_torch_constant_prop=_disable_torch_constant_prop)
File "/home/bpinaya/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/onnx/utils.py", line 188, in _optimize_graph
graph = torch._C._jit_pass_onnx(graph, operator_export_type)
File "/home/bpinaya/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/onnx/__init__.py", line 50, in _run_symbolic_function
return utils._run_symbolic_function(*args, **kwargs)
File "/home/bpinaya/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/onnx/utils.py", line 589, in _run_symbolic_function
return fn(g, *inputs, **attrs)
File "/home/bpinaya/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/onnx/symbolic.py", line 130, in wrapper
args = [_parse_arg(arg, arg_desc) for arg, arg_desc in zip(args, arg_descriptors)]
File "/home/bpinaya/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/onnx/symbolic.py", line 130, in <listcomp>
args = [_parse_arg(arg, arg_desc) for arg, arg_desc in zip(args, arg_descriptors)]
File "/home/bpinaya/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/onnx/symbolic.py", line 90, in _parse_arg
raise RuntimeError("Failed to export an ONNX attribute, "
RuntimeError: Failed to export an ONNX attribute, since it's not constant, please try to make things (e.g., kernel size) static if possible
"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "test.py", line 16, in <module>
torch_out = torch.onnx.export(torch_model, dummy_input, 'test_model.onnx', verbose=True)
File "/home/bpinaya/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/onnx/__init__.py", line 25, in export
return utils.export(*args, **kwargs)
File "/home/bpinaya/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/onnx/utils.py", line 131, in export
strip_doc_string=strip_doc_string)
File "/home/bpinaya/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/onnx/utils.py", line 363, in _export
_retain_param_name, do_constant_folding)
File "/home/bpinaya/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/onnx/utils.py", line 278, in _model_to_graph
_disable_torch_constant_prop=_disable_torch_constant_prop)
File "/home/bpinaya/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/onnx/utils.py", line 188, in _optimize_graph
graph = torch._C._jit_pass_onnx(graph, operator_export_type)
File "/home/bpinaya/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/onnx/__init__.py", line 50, in _run_symbolic_function
return utils._run_symbolic_function(*args, **kwargs)
File "/home/bpinaya/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/onnx/utils.py", line 589, in _run_symbolic_function
return fn(g, *inputs, **attrs)
File "/home/bpinaya/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/onnx/symbolic.py", line 130, in wrapper
args = [_parse_arg(arg, arg_desc) for arg, arg_desc in zip(args, arg_descriptors)]
File "/home/bpinaya/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/onnx/symbolic.py", line 130, in <listcomp>
args = [_parse_arg(arg, arg_desc) for arg, arg_desc in zip(args, arg_descriptors)]
File "/home/bpinaya/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/onnx/symbolic.py", line 90, in _parse_arg
raise RuntimeError("Failed to export an ONNX attribute, "
RuntimeError: Failed to export an ONNX attribute, since it's not constant, please try to make things (e.g., kernel size) static if possible
</code></pre></div>
<p dir="auto">And in a fresh conda env with pytoch installed from master with commit <code class="notranslate">3b1c3996e1c82ca8f43af9efa196b33e36efee37</code> and <code class="notranslate">torch.__version__</code> : <code class="notranslate">1.2.0a0+3b1c399</code> the error for the upsample_bilinear2d is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/home/bpinaya/anaconda3/envs/pytorch-edge/lib/python3.7/site-packages/torch/onnx/utils.py:662: UserWarning: ONNX export failed on ATen operator upsample_bilinear2d because torch.onnx.symbolic_opset9.upsample_bil
inear2d does not exist
.format(op_name, opset_version, op_name))
Traceback (most recent call last):
File "convert_to_onnx.py", line 36, in <module>
output_names=output_layer_names))
File "/home/bpinaya/anaconda3/envs/pytorch-edge/lib/python3.7/site-packages/torch/onnx/__init__.py", line 32, in export
return utils.export(*args, **kwargs)
File "/home/bpinaya/anaconda3/envs/pytorch-edge/lib/python3.7/site-packages/torch/onnx/utils.py", line 170, in export
example_outputs=example_outputs, strip_doc_string=strip_doc_string, dynamic_axes=dynamic_axes)
File "/home/bpinaya/anaconda3/envs/pytorch-edge/lib/python3.7/site-packages/torch/onnx/utils.py", line 429, in _export
_retain_param_name, do_constant_folding)
File "/home/bpinaya/anaconda3/envs/pytorch-edge/lib/python3.7/site-packages/torch/onnx/utils.py", line 330, in _model_to_graph
_disable_torch_constant_prop=_disable_torch_constant_prop)
File "/home/bpinaya/anaconda3/envs/pytorch-edge/lib/python3.7/site-packages/torch/onnx/utils.py", line 232, in _optimize_graph
graph = torch._C._jit_pass_onnx(graph, operator_export_type)
File "/home/bpinaya/anaconda3/envs/pytorch-edge/lib/python3.7/site-packages/torch/onnx/__init__.py", line 57, in _run_symbolic_function
return utils._run_symbolic_function(*args, **kwargs)
File "/home/bpinaya/anaconda3/envs/pytorch-edge/lib/python3.7/site-packages/torch/onnx/utils.py", line 663, in _run_symbolic_function
op_fn = sym_registry.get_registered_op(op_name, '', opset_version)
File "/home/bpinaya/anaconda3/envs/pytorch-edge/lib/python3.7/site-packages/torch/onnx/symbolic_registry.py", line 91, in get_registered_op
return _registry[(domain, version)][opname]
KeyError: 'upsample_bilinear2d'"><pre class="notranslate"><code class="notranslate">/home/bpinaya/anaconda3/envs/pytorch-edge/lib/python3.7/site-packages/torch/onnx/utils.py:662: UserWarning: ONNX export failed on ATen operator upsample_bilinear2d because torch.onnx.symbolic_opset9.upsample_bil
inear2d does not exist
.format(op_name, opset_version, op_name))
Traceback (most recent call last):
File "convert_to_onnx.py", line 36, in <module>
output_names=output_layer_names))
File "/home/bpinaya/anaconda3/envs/pytorch-edge/lib/python3.7/site-packages/torch/onnx/__init__.py", line 32, in export
return utils.export(*args, **kwargs)
File "/home/bpinaya/anaconda3/envs/pytorch-edge/lib/python3.7/site-packages/torch/onnx/utils.py", line 170, in export
example_outputs=example_outputs, strip_doc_string=strip_doc_string, dynamic_axes=dynamic_axes)
File "/home/bpinaya/anaconda3/envs/pytorch-edge/lib/python3.7/site-packages/torch/onnx/utils.py", line 429, in _export
_retain_param_name, do_constant_folding)
File "/home/bpinaya/anaconda3/envs/pytorch-edge/lib/python3.7/site-packages/torch/onnx/utils.py", line 330, in _model_to_graph
_disable_torch_constant_prop=_disable_torch_constant_prop)
File "/home/bpinaya/anaconda3/envs/pytorch-edge/lib/python3.7/site-packages/torch/onnx/utils.py", line 232, in _optimize_graph
graph = torch._C._jit_pass_onnx(graph, operator_export_type)
File "/home/bpinaya/anaconda3/envs/pytorch-edge/lib/python3.7/site-packages/torch/onnx/__init__.py", line 57, in _run_symbolic_function
return utils._run_symbolic_function(*args, **kwargs)
File "/home/bpinaya/anaconda3/envs/pytorch-edge/lib/python3.7/site-packages/torch/onnx/utils.py", line 663, in _run_symbolic_function
op_fn = sym_registry.get_registered_op(op_name, '', opset_version)
File "/home/bpinaya/anaconda3/envs/pytorch-edge/lib/python3.7/site-packages/torch/onnx/symbolic_registry.py", line 91, in get_registered_op
return _registry[(domain, version)][opname]
KeyError: 'upsample_bilinear2d'
</code></pre></div>
<p dir="auto">And according to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="440234928" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/20116" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/20116/hovercard" href="https://github.com/pytorch/pytorch/pull/20116">#20116</a> the error should be fixed on master</p>
<h2 dir="auto">Environment</h2>
<p dir="auto">The output of <code class="notranslate">collect_env</code>:<br>
Collecting environment information...<br>
PyTorch version: 1.1.0<br>
Is debug build: No<br>
CUDA used to build PyTorch: 10.0.130</p>
<p dir="auto">OS: Ubuntu 18.04.2 LTS<br>
GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0<br>
CMake version: version 3.10.2</p>
<p dir="auto">Python version: 3.7<br>
Is CUDA available: Yes<br>
CUDA runtime version: 10.0.130<br>
GPU models and configuration:<br>
GPU 0: GeForce GTX 1080 Ti<br>
GPU 1: GeForce GTX 1080 Ti</p>
<p dir="auto">Nvidia driver version: 418.56<br>
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.5.0</p>
<p dir="auto">Versions of relevant libraries:<br>
[pip] numpy==1.16.2<br>
[pip] numpydoc==0.8.0<br>
[pip] torch==1.1.0<br>
[pip] torchvision==0.3.0<br>
[conda] blas 1.0 mkl<br>
[conda] mkl 2019.3 199<br>
[conda] mkl-service 1.1.2 py37he904b0f_5<br>
[conda] mkl_fft 1.0.10 py37ha843d7b_0<br>
[conda] mkl_random 1.0.2 py37hd81dba3_0<br>
[conda] pytorch 1.1.0 py3.7_cuda10.0.130_cudnn7.5.1_0 pytorch<br>
[conda] torchvision 0.3.0 py37_cu10.0.130_1 pytorch</p>
<p dir="auto">Bear in mind that I tried on pytorch 1.0.1, 1.1.0 and master.</p>
<h2 dir="auto">Additional context</h2>
<p dir="auto">If I were to use something like:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch
import torch.nn as nn
import torch.nn.functional as F
class TestModel(nn.Module):
def __init__(self):
super(TestModel, self).__init__()
def forward(self, x):
x = F.interpolate(x, x.size()[2:], mode='bilinear', align_corners=False)
return x
torch_model = TestModel()
dummy_input = torch.randn(1, 3, 256, 256)
torch_out = torch.onnx.export(torch_model, dummy_input, 'test_model.onnx', verbose=True)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span>
<span class="pl-k">import</span> <span class="pl-s1">torch</span>.<span class="pl-s1">nn</span> <span class="pl-k">as</span> <span class="pl-s1">nn</span>
<span class="pl-k">import</span> <span class="pl-s1">torch</span>.<span class="pl-s1">nn</span>.<span class="pl-s1">functional</span> <span class="pl-k">as</span> <span class="pl-v">F</span>
<span class="pl-k">class</span> <span class="pl-v">TestModel</span>(<span class="pl-s1">nn</span>.<span class="pl-v">Module</span>):
<span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>):
<span class="pl-en">super</span>(<span class="pl-v">TestModel</span>, <span class="pl-s1">self</span>).<span class="pl-en">__init__</span>()
<span class="pl-k">def</span> <span class="pl-en">forward</span>(<span class="pl-s1">self</span>, <span class="pl-s1">x</span>):
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">F</span>.<span class="pl-en">interpolate</span>(<span class="pl-s1">x</span>, <span class="pl-s1">x</span>.<span class="pl-en">size</span>()[<span class="pl-c1">2</span>:], <span class="pl-s1">mode</span><span class="pl-c1">=</span><span class="pl-s">'bilinear'</span>, <span class="pl-s1">align_corners</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
<span class="pl-k">return</span> <span class="pl-s1">x</span>
<span class="pl-s1">torch_model</span> <span class="pl-c1">=</span> <span class="pl-v">TestModel</span>()
<span class="pl-s1">dummy_input</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">randn</span>(<span class="pl-c1">1</span>, <span class="pl-c1">3</span>, <span class="pl-c1">256</span>, <span class="pl-c1">256</span>)
<span class="pl-s1">torch_out</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-s1">onnx</span>.<span class="pl-en">export</span>(<span class="pl-s1">torch_model</span>, <span class="pl-s1">dummy_input</span>, <span class="pl-s">'test_model.onnx'</span>, <span class="pl-s1">verbose</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</pre></div>
<p dir="auto">without manually specifying the sizes, the issue still remains and now also appears on version 1.0.1 of course.<br>
Any insights are appreciated, thanks for the hard work guys!</p> | 1 |
<p dir="auto">I am seeing an issue with the settings part of the installation. Whenever I press Settings to change some of the behaviors of the program, another program (Max 6.0) opens instead of the actual settings.</p>
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0
Windows Terminal version (if applicable):
0.5.2762.0
Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0
Windows Terminal version (if applicable):
0.5.2762.0
Any other software?
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Just press the settings button</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">To open the settings for Windows Terminal</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Opens another program called Max</p> | <h1 dir="auto">Allow users to specify multiple fontFace options in profiles.json</h1>
<p dir="auto">I use Terminal on numerous machines that may not have all my favorite fonts (hello, Cascadia Code and Fira Code!) installed on them. I'd love to be able to specify multiple fontFace options that Terminal could work through until it finds a valid one. For example, specify "Cascadia Code", "Fira Code", "Consolas" so that it would eventually find a valid system font.</p>
<h1 dir="auto">Proposed technical implementation details (optional)</h1>
<p dir="auto">TBD</p> | 0 |
<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>Windows build number: 2004</li>
<li>PowerToys version: 0.20</li>
<li>PowerToy module: Settings > KBM</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>Set theme to white on general page</li>
<li>Open remap window on kbm page</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">Window colour is white.</p>
<h3 dir="auto"><g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> Actual result</h3>
<p dir="auto">Window colour is black.</p>
<p dir="auto"><em>Note: My system default is set to black!</em></p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="camera" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4f7.png">📷</g-emoji> Screenshots</h2>
<p dir="auto">NA</p> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.356]
PowerToys version: 0.11.0
PowerToy module for which you are reporting the bug (if applicable): Fancy Zones"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.356]
PowerToys version: 0.11.0
PowerToy module for which you are reporting the bug (if applicable): Fancy Zones
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Use <code class="notranslate">Win + CTRL + <LEFT></code> or <code class="notranslate">Win + CTRL + <RIGHT></code> to switch between virtual desktops with Fancy Zones enabled.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Animation should remain smooth when switching between virtual desktops.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Animation stutters and lags. Disabling Fancy Zones resolves the problem.</p>
<h1 dir="auto">Screenshots</h1> | 0 |
<p dir="auto">Current implementation of cputicks on ARM is very low precision which hurts block profile and tracer.</p>
<p dir="auto"><a href="http://gperftools.googlecode.com/svn/trunk/src/base/cycleclock.h" rel="nofollow">http://gperftools.googlecode.com/svn/trunk/src/base/cycleclock.h</a><br>
contains lots of goodness, and in particular cputicks implementation for arm:</p>
<div class="highlight highlight-source-c notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#elif defined(ARMV3)
#if defined(ARMV6) // V6 is the earliest arch that has a standard cyclecount
uint32 pmccntr;
uint32 pmuseren;
uint32 pmcntenset;
// Read the user mode perf monitor counter access permissions.
asm volatile ("mrc p15, 0, %0, c9, c14, 0" : "=r" (pmuseren));
if (pmuseren & 1) { // Allows reading perfmon counters for user mode code.
asm volatile ("mrc p15, 0, %0, c9, c12, 1" : "=r" (pmcntenset));
if (pmcntenset & 0x80000000ul) { // Is it counting?
asm volatile ("mrc p15, 0, %0, c9, c13, 0" : "=r" (pmccntr));
// The counter is set up to count every 64th cycle
return static_cast<int64>(pmccntr) * 64; // Should optimize to << 6
}
}
#endif"><pre class="notranslate"><span class="pl-k">#elif</span> defined(ARMV3)
<span class="pl-k">#if</span> defined(<span class="pl-c1">ARMV6</span>) <span class="pl-c">// V6 is the earliest arch that has a standard cyclecount</span>
<span class="pl-smi">uint32</span> <span class="pl-s1">pmccntr</span>;
<span class="pl-smi">uint32</span> <span class="pl-s1">pmuseren</span>;
<span class="pl-smi">uint32</span> <span class="pl-s1">pmcntenset</span>;
<span class="pl-c">// Read the user mode perf monitor counter access permissions.</span>
<span class="pl-smi">asm</span> <span class="pl-k">volatile</span> (<span class="pl-s">"mrc p15, 0, %0, c9, c14, 0"</span> : <span class="pl-s">"=r"</span> (<span class="pl-s1">pmuseren</span>));
<span class="pl-k">if</span> (<span class="pl-s1">pmuseren</span> <span class="pl-c1">&</span> <span class="pl-c1">1</span>) { <span class="pl-c">// Allows reading perfmon counters for user mode code.</span>
<span class="pl-smi">asm</span> <span class="pl-k">volatile</span> (<span class="pl-s">"mrc p15, 0, %0, c9, c12, 1"</span> : <span class="pl-s">"=r"</span> (<span class="pl-s1">pmcntenset</span>));
<span class="pl-k">if</span> (<span class="pl-s1">pmcntenset</span> <span class="pl-c1">&</span> <span class="pl-c1">0x80000000ul</span>) { <span class="pl-c">// Is it counting?</span>
<span class="pl-smi">asm</span> <span class="pl-k">volatile</span> (<span class="pl-s">"mrc p15, 0, %0, c9, c13, 0"</span> : <span class="pl-s">"=r"</span> (<span class="pl-s1">pmccntr</span>));
<span class="pl-c">// The counter is set up to count every 64th cycle</span>
<span class="pl-k">return</span> <span class="pl-s1">static_cast</span><span class="pl-c1"><</span><span class="pl-s1">int64</span><span class="pl-c1">></span>(<span class="pl-s1">pmccntr</span>) <span class="pl-c1">*</span> <span class="pl-c1">64</span>; <span class="pl-c">// Should optimize to << 6</span>
}
}
<span class="pl-k">#endif</span></pre></div>
<p dir="auto">Should consider switching to it.</p>
<p dir="auto">There is also an impl for power processors.</p> | <p dir="auto">Please answer these questions before submitting your issue. Thanks!</p>
<ol dir="auto">
<li>What version of Go are you using (<code class="notranslate">go version</code>)?<br>
go version devel +c63dbd8 Thu Mar 10 18:35:10 2016 +0000 linux/ppc64le<br>
Doesn't work on any earlier versions either.</li>
<li>What operating system and processor architecture are you using (<code class="notranslate">go env</code>)?<br>
ppc64le</li>
<li>What did you do?<br>
If possible, provide a recipe for reproducing the error.<br>
A complete runnable program is good.<br>
A link on play.golang.org is best.<br>
go tool objdump a.out</li>
<li>What did you expect to see?<br>
A disassembly of the program.</li>
<li>What did you see instead?<br>
objdump: disassemble a.out: unsupported architecture</li>
</ol>
<p dir="auto">I've seen a CL for this from Minux a while ago but haven't seen any recent updates.<br>
If this was started but needs finishing I could help with that.</p> | 0 |
<p dir="auto"><a href="https://github.com/JuliaLang/julia/blob/master/doc/manual/embedding.rst">https://github.com/JuliaLang/julia/blob/master/doc/manual/embedding.rst</a></p>
<p dir="auto">The advice on compiling the test:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="gcc -o test -I$JULIA_DIR/include/julia -L$JULIA_DIR/usr/lib -ljulia test.c"><pre class="notranslate"><code class="notranslate">gcc -o test -I$JULIA_DIR/include/julia -L$JULIA_DIR/usr/lib -ljulia test.c
</code></pre></div>
<p dir="auto">is wrong. For a start the directory $JULIA_DIR/include/julia doesn't exist.</p>
<p dir="auto">This also affects the embedding example <a href="https://github.com/JuliaLang/julia/blob/master/examples/embedding.c">https://github.com/JuliaLang/julia/blob/master/examples/embedding.c</a> as the manual page above seems to be the goto advice on how to compile it.</p>
<p dir="auto">See <a href="https://groups.google.com/forum/#!topic/julia-users/BfXg93CHLrM" rel="nofollow">google user group question</a>.</p> | <p dir="auto">I was trying to follow this guide: <a href="http://julia.readthedocs.org/en/latest/manual/embedding/" rel="nofollow">http://julia.readthedocs.org/en/latest/manual/embedding/</a>. I ran into an error on the first example.</p>
<p dir="auto">I have the latest prerelease downloaded for OS X from <a href="http://julialang.org/downloads/" rel="nofollow">http://julialang.org/downloads/</a>. I have<br>
<code class="notranslate">JULIA_DIR=/Applications/Julia-0.3.0-prerelease-a673e4c4de.app/Contents/Resources/julia</code><br>
I got the example to compile with<br>
<code class="notranslate">gcc -o test -I$JULIA_DIR/include/julia -L$JULIA_DIR/lib/julia -ljulia test.c</code>, but not with <code class="notranslate">gcc -o test -I$JULIA_DIR/include/julia -L$JULIA_DIR/usr/lib -ljulia test.c</code> as in the guide.</p>
<p dir="auto">When I ran the test executable, I got an error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dyld: Library not loaded: @rpath/libjulia.dylib
Referenced from: /Users/stevend2/PythonProjects/ParallelSparseMatMul.jl/./test
Reason: image not found
[1] 2528 trace trap ./test"><pre class="notranslate"><code class="notranslate">dyld: Library not loaded: @rpath/libjulia.dylib
Referenced from: /Users/stevend2/PythonProjects/ParallelSparseMatMul.jl/./test
Reason: image not found
[1] 2528 trace trap ./test
</code></pre></div>
<p dir="auto">Any ideas on what's going on? I'd really appreciate your help.</p> | 1 |
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br>
Probably neither, but I am stuck with this.</p>
<p dir="auto"><strong>What is the current behavior?</strong><br>
Rendering multiple rows in table that are expanded by the "parent" row is not possible due to not being permitted in and the absence of fragmentation</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via <a href="https://jsfiddle.net" rel="nofollow">https://jsfiddle.net</a> or similar (template: <a href="https://jsfiddle.net/reactjs/69z2wepo/" rel="nofollow">https://jsfiddle.net/reactjs/69z2wepo/</a>).</strong><br>
Here's to get an idea <a href="https://jsfiddle.net/69z2wepo/67419/" rel="nofollow">https://jsfiddle.net/69z2wepo/67419/</a></p>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
This is the expected behaviour, I guess, until Fiber lands. I am just looking for an explanation on how to achieve this.</p>
<p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong><br>
I am on 15.3.2 but probably all pre-fiber versions have this.</p>
<p dir="auto">Thanks for any help!</p> | <hr>
<h2 dir="auto">Note from maintainers:</h2>
<p dir="auto">We know this is an issue and we know exactly what set of problem can be solved. We want this too but it is a <em>hard problem</em> with our current architecture. Additional comments expressing desire for this feature are not helpful. Feel free to subscribe to the issue (there's button in the right hand column) but do not comment unless you are adding value to the discussion. "Me too" and "+1" are not valuable, nor are use cases that have already been written in the comments (e.g., we know that you can't put <code class="notranslate"><tr></code> or <code class="notranslate"><dd></code> elements with a <code class="notranslate"><div></code>).</p>
<hr>
<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 ManagePost = React.createClass({
render: function() {
var posts = this.props.posts
var something;
var somethingelse;
var row = posts.map(function(post){
return(
<div>
<div className="col-md-8">
</div>
<div className="cold-md-4">
</div>
</div>
)
});
return (
{row}
);
}
});"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-v">ManagePost</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-en">render</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">posts</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-c1">posts</span>
<span class="pl-k">var</span> <span class="pl-s1">something</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">somethingelse</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">row</span> <span class="pl-c1">=</span> <span class="pl-s1">posts</span><span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">post</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"><</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">"col-md-8"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">"cold-md-4"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-kos">)</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-kos">(</span>
<span class="pl-kos">{</span>row<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">If you remove the <code class="notranslate"><div></div></code> in the <code class="notranslate">map</code>, you get the following error: <em>Adjacent XJS elements must be wrapped in an enclosing tag</em></p>
<p dir="auto">it isn't till I re-add the surrounding, and rather pointless, divs that it compiles with out issue. I am running <strong>0.11.1</strong></p>
<p dir="auto">Is this being addressed? It adds extra, and again - IMO - useless and pointless html to the page, that while harming nothing - looks messy and unprofessional. Maybe I am just doing something wrong, please enlighten me if I am.</p> | 1 |
<p dir="auto">Due to changes in the new version of ffmpeg, OpenCV can't be built with the current Version.</p>
<p dir="auto">As crackwitz (Moderator) mentioned in <a href="https://forum.opencv.org/t/error-avstream-aka-struct-avstream-has-no-member-named-codec/3506" rel="nofollow">my post</a> in the forum:</p>
<blockquote>
<p dir="auto">they (deprecated and) removed the codec member from AVStream recently, in favor of codecpar</p>
</blockquote> | <p dir="auto">related:<br>
<a href="https://forum.opencv.org/t/error-avstream-aka-struct-avstream-has-no-member-named-codec/3506" rel="nofollow">https://forum.opencv.org/t/error-avstream-aka-struct-avstream-has-no-member-named-codec/3506</a></p>
<p dir="auto">ffmpeg changed its <code class="notranslate">AVStream</code> structure. in ffmpeg v3.1 (~2016) the <code class="notranslate">codecpar</code> member was introduced to replace <code class="notranslate">codec</code> member. <code class="notranslate">codec</code> has been deprecated since then. it is still available in ffmpeg v4.4 but not in the master branch.</p>
<p dir="auto">availability is modulated by <code class="notranslate">#define FF_API_LAVF_AVCTX (LIBAVFORMAT_VERSION_MAJOR < 59)</code></p>
<p dir="auto">this version was bumped to 59 a month ago in <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/FFmpeg/FFmpeg/commit/85ba17f36dbfde1baeaa47e14d30c337add52c0d/hovercard" href="https://github.com/FFmpeg/FFmpeg/commit/85ba17f36dbfde1baeaa47e14d30c337add52c0d">FFmpeg/FFmpeg@<tt>85ba17f</tt></a></p>
<p dir="auto">OpenCV v4.5.2/master still assumes the existence of the <code class="notranslate">codec</code> member:<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/opencv/opencv/blob/ae4cc404c15a206e7bc953e183e9a6812df6d5b0/modules/videoio/src/cap_ffmpeg_impl.hpp#L606">opencv/modules/videoio/src/cap_ffmpeg_impl.hpp</a>
</p>
<p class="mb-0 color-fg-muted">
Line 606
in
<a data-pjax="true" class="commit-tease-sha" href="/opencv/opencv/commit/ae4cc404c15a206e7bc953e183e9a6812df6d5b0">ae4cc40</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="L606" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="606"></td>
<td id="LC606" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">avcodec_close</span>( video_st-><span class="pl-smi">codec</span> ); </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto">I've checked issues and pull requests for mentions of <code class="notranslate">codecpar</code> and it seems this hasn't been reported yet.</p> | 1 |
<p dir="auto">This bug is in reference to this style block from forms.less, shown below. In a nutshell, as soon you start typing into an input field with type=email the text and border instantly turn red. The user gets the following experience with that input field:</p>
<ol dir="auto">
<li>unfocused and blank - border is black</li>
<li>focused, but still blank - border is red (if required=true)</li>
<li>enters "a" - border and text are red</li>
<li>"a@" - border and text are red</li>
<li>"a@b" - border is blue, text is black</li>
</ol>
<p dir="auto">Note that the user still hasn't even finished entering their email address, even if the email address is technically legal according to the RFC. Tested with recent versions of Firefox and Chrome.</p>
<p dir="auto">The red color is premature and scary. I need more explicit control for when the text (and border) turn red. All of the HTML5 input validation attributes result in similar problems. The rules below are a little too aggressive, in my opinion. Can we make them optional, move them into a js plugin, etc.?</p>
<div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// HTML5 invalid states
// Shares styles with the .control-group.error above
input:focus:invalid,
textarea:focus:invalid,
select:focus:invalid {
color: #b94a48;
border-color: #ee5f5b;
&:focus {
border-color: darken(#ee5f5b, 10%);
@shadow: 0 0 6px lighten(#ee5f5b, 20%);
.box-shadow(@shadow);
}
}"><pre class="notranslate"><span class="pl-c1">/</span><span class="pl-c1">/</span> HTML5 invalid states
<span class="pl-c1">/</span><span class="pl-c1">/</span> Shares styles with the .<span class="pl-c1">control-group</span>.<span class="pl-c1">error</span> <span class="pl-ent">above</span>
<span class="pl-ent">input</span><span class="pl-kos">:</span><span class="pl-c1">focus</span><span class="pl-kos">:</span><span class="pl-c1">invalid</span><span class="pl-kos">,</span>
<span class="pl-ent">textarea</span><span class="pl-kos">:</span><span class="pl-c1">focus</span><span class="pl-kos">:</span><span class="pl-c1">invalid</span><span class="pl-kos">,</span>
<span class="pl-ent">select</span><span class="pl-kos">:</span><span class="pl-c1">focus</span><span class="pl-kos">:</span><span class="pl-c1">invalid</span> {
<span class="pl-c1">color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>b94a48</span>;
<span class="pl-c1">border-color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>ee5f5b</span>;
<span class="pl-ent">&</span><span class="pl-kos">:</span><span class="pl-c1">focus</span> {
<span class="pl-c1">border-color</span><span class="pl-kos">:</span> <span class="pl-en">darken</span>(<span class="pl-pds"><span class="pl-kos">#</span>ee5f5b</span><span class="pl-kos">,</span> <span class="pl-c1">10<span class="pl-smi">%</span></span>);
<span class="pl-k">@shadow</span><span class="pl-kos">:</span> 0 0 6px lighten(<span class="pl-kos">#</span><span class="pl-c1">ee5f5b</span><span class="pl-kos">,</span> 20%);
.<span class="pl-c1">box-shadow</span>(<span class="pl-k">@shadow</span>);
}
}</pre></div> | <p dir="auto">The title is quite explicit :)</p>
<p dir="auto">If you define a input type with a tag required, when the user focuses the input, a red border appears even if the user hasn't entered nor did anything.</p>
<p dir="auto">It's feel like something is wrong but nothing has been done yet.</p>
<p dir="auto">The normal state should be blue.</p> | 1 |
<ul dir="auto">
<li>Electron version: 1.3.1</li>
<li>Operating system: OS X 10.11.5</li>
</ul>
<p dir="auto">Electron will crash/hang if attempting to use the Application Menu when a webview has not been made visible, in this case contained within a div with 'style="display: none"'</p>
<p dir="auto">Run sample app to replicate - 'electron main.js'</p>
<p dir="auto">Manually clear style on container div to cause webview to display, no longer crashes on use of app menu.</p>
<p dir="auto">Does not error in Windows</p>
<p dir="auto"><a href="https://github.com/electron/electron/files/395181/browser.zip">browser.zip</a></p> | <ul dir="auto">
<li>Electron version: I'm using <code class="notranslate">"electron-prebuilt": "^1.2.0"</code></li>
<li>Operating system: Mac OS X 10.11.6</li>
</ul>
<p dir="auto">I'm having trouble loading the following website <a href="https://blowback.fr" rel="nofollow">https://blowback.fr</a> in a webview in an electron app. I can't seem to find any information in the console or network related to it either. The website loads fine in Chrome. Any thoughts as to how to debug this or figure out what's going on?</p>
<p dir="auto">In addition, some users are reporting crashes when loading a website like that and attempting to copy/paste.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Date/Time: 2016-07-28 11:32:42.486 -0700
OS Version: Mac OS X 10.11.6 (15G31)
Report Version: 11
Anonymous UUID: 539395CE-7099-6EBB-B667-B10B9A189857
Sleep/Wake UUID: 77786FFA-C69E-4BC7-BD08-5450BF63F530
Time Awake Since Boot: 140000 seconds
Time Since Wake: 280 seconds
System Integrity Protection: enabled
Crashed Thread: 0 CrBrowserMain Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
VM Regions Near 0:
-->
__TEXT 0000000108c05000-0000000108c06000 [ 4K] r-x/rwx SM=COW /Users/USER/Downloads/Orion.app/Contents/MacOS/Orion
Application Specific Information:
Performing @selector(itemSelected:) from sender NSMenuItem 0x7fb6a17b34d0
Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
0 com.github.electron.framework 0x000000010983134c 0x108c10000 + 12718924
1 com.github.electron.framework 0x0000000108c86bed atom::api::WebContents::IsFocused() const + 45
2 com.github.electron.framework 0x0000000108c7bf8c bool base::internal::RunnableAdapter<bool (atom::api::WebContents::*)() const>::Run<>(atom::api::WebContents const*) + 28
3 com.github.electron.framework 0x0000000108c7bf5c bool base::internal::InvokeHelper<false, bool, base::internal::RunnableAdapter<bool (atom::api::WebContents::*)() const> >::MakeItSo<atom::api::WebContents const*>(base::internal::RunnableAdapter<bool (atom::api::WebContents::*)() const>, atom::api::WebContents const*&&) + 28
4 com.github.electron.framework 0x0000000108c7bf3a base::internal::Invoker<base::IndexSequence<>, base::internal::BindState<base::internal::RunnableAdapter<bool (atom::api::WebContents::*)() const>, bool (atom::api::WebContents const*)>, base::internal::InvokeHelper<false, bool, base::internal::RunnableAdapter<bool (atom::api::WebContents::*)() const> >, bool (atom::api::WebContents const*)>::Run(base::internal::BindStateBase*, atom::api::WebContents const*&&) + 26
5 com.github.electron.framework 0x0000000108c7be3c base::Callback<bool (atom::api::WebContents const*), (base::internal::CopyMode)1>::Run(atom::api::WebContents const*) const + 28
6 com.github.electron.framework 0x0000000108c7bdfc void mate::internal::Invoker<mate::internal::IndicesHolder<0ul>, atom::api::WebContents const*>::DispatchToCallback<bool>(base::Callback<bool (atom::api::WebContents const*), (base::internal::CopyMode)1>) + 60
7 com.github.electron.framework 0x0000000108c7bccc mate::internal::Dispatcher<bool (atom::api::WebContents const*)>::DispatchToCallback(v8::FunctionCallbackInfo<v8::Value> const&) + 172
8 libnode.dylib 0x000000010d49a821 v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&)) + 369
9 libnode.dylib 0x000000010d4d23c7 0x10d0f6000 + 4047815
10 libnode.dylib 0x000000010d4dcb9a 0x10d0f6000 + 4090778
11 ??? 0x000028005e7092a7 0 + 43982049546919
12 ??? 0x000028005e8cf1e7 0 + 43982051406311
13 ??? 0x000028005e8e090a 0 + 43982051477770
14 ??? 0x000028005e73b843 0 + 43982049753155
15 ??? 0x000028005e72512f 0 + 43982049661231
16 libnode.dylib 0x000000010d78a380 0x10d0f6000 + 6898560
17 libnode.dylib 0x000000010d78a1b6 v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*) + 326
18 libnode.dylib 0x000000010d483405 v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) + 469
19 com.github.electron.framework 0x0000000108c445ec mate::internal::V8FunctionInvoker<void (v8::Local<v8::Value>, int)>::Go(v8::Isolate*, mate::internal::SafeV8Function const&, v8::Local<v8::Value>, int) + 252
20 com.github.electron.framework 0x0000000108c447f9 void base::internal::RunnableAdapter<void (*)(v8::Isolate*, mate::internal::SafeV8Function const&, v8::Local<v8::Value>, int)>::Run<v8::Isolate* const&, mate::internal::SafeV8Function const&, v8::Local<v8::Value>, int>(v8::Isolate* const&&&, mate::internal::SafeV8Function const&&&, v8::Local<v8::Value>&&, int&&) + 25
21 com.github.electron.framework 0x0000000108c447d5 void base::internal::InvokeHelper<false, void, base::internal::RunnableAdapter<void (*)(v8::Isolate*, mate::internal::SafeV8Function const&, v8::Local<v8::Value>, int)> >::MakeItSo<v8::Isolate* const&, mate::internal::SafeV8Function const&, v8::Local<v8::Value>, int>(base::internal::RunnableAdapter<void (*)(v8::Isolate*, mate::internal::SafeV8Function const&, v8::Local<v8::Value>, int)>, v8::Isolate* const&&&, mate::internal::SafeV8Function const&&&, v8::Local<v8::Value>&&, int&&) + 21
22 com.github.electron.framework 0x0000000108c447a7 base::internal::Invoker<base::IndexSequence<0ul, 1ul>, base::internal::BindState<base::internal::RunnableAdapter<void (*)(v8::Isolate*, mate::internal::SafeV8Function const&, v8::Local<v8::Value>, int)>, void (v8::Isolate*, mate::internal::SafeV8Function const&, v8::Local<v8::Value>, int), v8::Isolate*&, mate::internal::SafeV8Function>, base::internal::InvokeHelper<false, void, base::internal::RunnableAdapter<void (*)(v8::Isolate*, mate::internal::SafeV8Function const&, v8::Local<v8::Value>, int)> >, void (v8::Local<v8::Value>, int)>::Run(base::internal::BindStateBase*, v8::Local<v8::Value>&&, int&&) + 71
23 com.github.electron.framework 0x0000000108c42376 base::Callback<void (v8::Local<v8::Value>, int), (base::internal::CopyMode)1>::Run(v8::Local<v8::Value>, int) const + 38
24 com.github.electron.framework 0x0000000108c42337 atom::api::Menu::ExecuteCommand(int, int) + 55
25 com.github.electron.framework 0x0000000108c4238d non-virtual thunk to atom::api::Menu::ExecuteCommand(int, int) + 13
26 com.github.electron.framework 0x0000000108ccc205 0x108c10000 + 770565
27 libsystem_trace.dylib 0x00007fff8fafb07a _os_activity_initiate + 75
28 com.apple.AppKit 0x00007fff96fd8dbd -[NSApplication sendAction:to:from:] + 460
29 com.apple.AppKit 0x00007fff96fd8b57 -[NSMenuItem _corePerformAction] + 336
30 com.apple.AppKit 0x00007fff96fd88b7 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 114
31 libsystem_trace.dylib 0x00007fff8fafb07a _os_activity_initiate + 75
32 com.apple.AppKit 0x00007fff96fd77a5 -[NSMenu performKeyEquivalent:] + 357
33 com.github.electron.framework 0x0000000108ca55ab atom::CommonWebContentsDelegate::HandleKeyboardEvent(content::WebContents*, content::NativeWebKeyboardEvent const&) + 139
34 com.github.electron.framework 0x0000000108c6c03d atom::api::WebContents::HandleKeyboardEvent(content::WebContents*, content::NativeWebKeyboardEvent const&) + 45
35 com.github.electron.framework 0x0000000108c6c04d non-virtual thunk to atom::api::WebContents::HandleKeyboardEvent(content::WebContents*, content::NativeWebKeyboardEvent const&) + 13
36 com.github.electron.framework 0x00000001096f515b 0x108c10000 + 11424091
37 com.github.electron.framework 0x00000001096f4d27 0x108c10000 + 11423015
38 com.github.electron.framework 0x00000001096f39fa 0x108c10000 + 11418106
39 com.github.electron.framework 0x00000001096f382e 0x108c10000 + 11417646
40 com.github.electron.framework 0x00000001096f34af 0x108c10000 + 11416751
41 com.github.electron.framework 0x000000010974c081 0x108c10000 + 11780225
42 com.github.electron.framework 0x0000000109739639 0x108c10000 + 11703865
43 com.github.electron.framework 0x0000000109d1e1f8 0x108c10000 + 17883640
44 com.github.electron.framework 0x0000000108ddce4b 0x108c10000 + 1887819
45 com.github.electron.framework 0x0000000108dfd8b3 0x108c10000 + 2021555
46 com.github.electron.framework 0x0000000108dfdbcc 0x108c10000 + 2022348
47 com.github.electron.framework 0x0000000108dfddbb 0x108c10000 + 2022843
48 com.github.electron.framework 0x0000000108dd2871 0x108c10000 + 1845361
49 com.github.electron.framework 0x0000000108df440a 0x108c10000 + 1983498
50 com.github.electron.framework 0x0000000108dd2274 0x108c10000 + 1843828
51 com.apple.CoreFoundation 0x00007fff93228881 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
52 com.apple.CoreFoundation 0x00007fff93207fbc __CFRunLoopDoSources0 + 556
53 com.apple.CoreFoundation 0x00007fff932074df __CFRunLoopRun + 927
54 com.apple.CoreFoundation 0x00007fff93206ed8 CFRunLoopRunSpecific + 296
55 com.apple.HIToolbox 0x00007fff96071935 RunCurrentEventLoopInMode + 235
56 com.apple.HIToolbox 0x00007fff9607176f ReceiveNextEventCommon + 432
57 com.apple.HIToolbox 0x00007fff960715af _BlockUntilNextEventMatchingListInModeWithFilter + 71
58 com.apple.AppKit 0x00007fff96d6fdf6 _DPSNextEvent + 1067
59 com.apple.AppKit 0x00007fff96d6f226 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
60 com.apple.AppKit 0x00007fff96d63d80 -[NSApplication run] + 682
61 com.github.electron.framework 0x0000000108dd30a6 0x108c10000 + 1847462
62 com.github.electron.framework 0x0000000108dd26c4 0x108c10000 + 1844932
63 com.github.electron.framework 0x0000000108e12363 0x108c10000 + 2106211
64 com.github.electron.framework 0x000000010951a73b 0x108c10000 + 9479995
65 com.github.electron.framework 0x000000010951a543 0x108c10000 + 9479491
66 com.github.electron.framework 0x000000010951cb52 0x108c10000 + 9489234
67 com.github.electron.framework 0x00000001095161dd 0x108c10000 + 9462237
68 com.github.electron.framework 0x0000000109487c01 0x108c10000 + 8879105
69 com.github.electron.framework 0x0000000109486d76 0x108c10000 + 8875382
70 com.github.electron.framework 0x0000000108c12587 AtomMain + 71
71 com.stripe.orion 0x0000000108c05ec6 main + 38
72 libdyld.dylib 0x00007fff924295ad start + 1
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff946f8efa kevent_qos + 10
1 libdispatch.dylib 0x00007fff8f8d6165 _dispatch_mgr_invoke + 216
2 libdispatch.dylib 0x00007fff8f8d5dcd _dispatch_mgr_thread + 52
Thread 2:: NetworkConfigWatcher
0 libsystem_kernel.dylib 0x00007fff946f1f72 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff946f13b3 mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff932081c4 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff9320768c __CFRunLoopRun + 1356
4 com.apple.CoreFoundation 0x00007fff93206ed8 CFRunLoopRunSpecific + 296
5 com.apple.Foundation 0x00007fff926b2ed9 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 270
6 com.github.electron.framework 0x0000000108dd2ede 0x108c10000 + 1847006
7 com.github.electron.framework 0x0000000108dd26c4 0x108c10000 + 1844932
8 com.github.electron.framework 0x0000000108e12363 0x108c10000 + 2106211
9 com.github.electron.framework 0x0000000108dfd05d 0x108c10000 + 2019421
10 com.github.electron.framework 0x0000000108e31938 0x108c10000 + 2234680
11 com.github.electron.framework 0x0000000108e2dc37 0x108c10000 + 2219063
12 libsystem_pthread.dylib 0x00007fff8884299d _pthread_body + 131
13 libsystem_pthread.dylib 0x00007fff8884291a _pthread_start + 168
14 libsystem_pthread.dylib 0x00007fff88840351 thread_start + 13
Thread 3:: DnsConfigService
0 libsystem_kernel.dylib 0x00007fff946f8eca kevent + 10"><pre class="notranslate"><code class="notranslate">Date/Time: 2016-07-28 11:32:42.486 -0700
OS Version: Mac OS X 10.11.6 (15G31)
Report Version: 11
Anonymous UUID: 539395CE-7099-6EBB-B667-B10B9A189857
Sleep/Wake UUID: 77786FFA-C69E-4BC7-BD08-5450BF63F530
Time Awake Since Boot: 140000 seconds
Time Since Wake: 280 seconds
System Integrity Protection: enabled
Crashed Thread: 0 CrBrowserMain Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
VM Regions Near 0:
-->
__TEXT 0000000108c05000-0000000108c06000 [ 4K] r-x/rwx SM=COW /Users/USER/Downloads/Orion.app/Contents/MacOS/Orion
Application Specific Information:
Performing @selector(itemSelected:) from sender NSMenuItem 0x7fb6a17b34d0
Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
0 com.github.electron.framework 0x000000010983134c 0x108c10000 + 12718924
1 com.github.electron.framework 0x0000000108c86bed atom::api::WebContents::IsFocused() const + 45
2 com.github.electron.framework 0x0000000108c7bf8c bool base::internal::RunnableAdapter<bool (atom::api::WebContents::*)() const>::Run<>(atom::api::WebContents const*) + 28
3 com.github.electron.framework 0x0000000108c7bf5c bool base::internal::InvokeHelper<false, bool, base::internal::RunnableAdapter<bool (atom::api::WebContents::*)() const> >::MakeItSo<atom::api::WebContents const*>(base::internal::RunnableAdapter<bool (atom::api::WebContents::*)() const>, atom::api::WebContents const*&&) + 28
4 com.github.electron.framework 0x0000000108c7bf3a base::internal::Invoker<base::IndexSequence<>, base::internal::BindState<base::internal::RunnableAdapter<bool (atom::api::WebContents::*)() const>, bool (atom::api::WebContents const*)>, base::internal::InvokeHelper<false, bool, base::internal::RunnableAdapter<bool (atom::api::WebContents::*)() const> >, bool (atom::api::WebContents const*)>::Run(base::internal::BindStateBase*, atom::api::WebContents const*&&) + 26
5 com.github.electron.framework 0x0000000108c7be3c base::Callback<bool (atom::api::WebContents const*), (base::internal::CopyMode)1>::Run(atom::api::WebContents const*) const + 28
6 com.github.electron.framework 0x0000000108c7bdfc void mate::internal::Invoker<mate::internal::IndicesHolder<0ul>, atom::api::WebContents const*>::DispatchToCallback<bool>(base::Callback<bool (atom::api::WebContents const*), (base::internal::CopyMode)1>) + 60
7 com.github.electron.framework 0x0000000108c7bccc mate::internal::Dispatcher<bool (atom::api::WebContents const*)>::DispatchToCallback(v8::FunctionCallbackInfo<v8::Value> const&) + 172
8 libnode.dylib 0x000000010d49a821 v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&)) + 369
9 libnode.dylib 0x000000010d4d23c7 0x10d0f6000 + 4047815
10 libnode.dylib 0x000000010d4dcb9a 0x10d0f6000 + 4090778
11 ??? 0x000028005e7092a7 0 + 43982049546919
12 ??? 0x000028005e8cf1e7 0 + 43982051406311
13 ??? 0x000028005e8e090a 0 + 43982051477770
14 ??? 0x000028005e73b843 0 + 43982049753155
15 ??? 0x000028005e72512f 0 + 43982049661231
16 libnode.dylib 0x000000010d78a380 0x10d0f6000 + 6898560
17 libnode.dylib 0x000000010d78a1b6 v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*) + 326
18 libnode.dylib 0x000000010d483405 v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) + 469
19 com.github.electron.framework 0x0000000108c445ec mate::internal::V8FunctionInvoker<void (v8::Local<v8::Value>, int)>::Go(v8::Isolate*, mate::internal::SafeV8Function const&, v8::Local<v8::Value>, int) + 252
20 com.github.electron.framework 0x0000000108c447f9 void base::internal::RunnableAdapter<void (*)(v8::Isolate*, mate::internal::SafeV8Function const&, v8::Local<v8::Value>, int)>::Run<v8::Isolate* const&, mate::internal::SafeV8Function const&, v8::Local<v8::Value>, int>(v8::Isolate* const&&&, mate::internal::SafeV8Function const&&&, v8::Local<v8::Value>&&, int&&) + 25
21 com.github.electron.framework 0x0000000108c447d5 void base::internal::InvokeHelper<false, void, base::internal::RunnableAdapter<void (*)(v8::Isolate*, mate::internal::SafeV8Function const&, v8::Local<v8::Value>, int)> >::MakeItSo<v8::Isolate* const&, mate::internal::SafeV8Function const&, v8::Local<v8::Value>, int>(base::internal::RunnableAdapter<void (*)(v8::Isolate*, mate::internal::SafeV8Function const&, v8::Local<v8::Value>, int)>, v8::Isolate* const&&&, mate::internal::SafeV8Function const&&&, v8::Local<v8::Value>&&, int&&) + 21
22 com.github.electron.framework 0x0000000108c447a7 base::internal::Invoker<base::IndexSequence<0ul, 1ul>, base::internal::BindState<base::internal::RunnableAdapter<void (*)(v8::Isolate*, mate::internal::SafeV8Function const&, v8::Local<v8::Value>, int)>, void (v8::Isolate*, mate::internal::SafeV8Function const&, v8::Local<v8::Value>, int), v8::Isolate*&, mate::internal::SafeV8Function>, base::internal::InvokeHelper<false, void, base::internal::RunnableAdapter<void (*)(v8::Isolate*, mate::internal::SafeV8Function const&, v8::Local<v8::Value>, int)> >, void (v8::Local<v8::Value>, int)>::Run(base::internal::BindStateBase*, v8::Local<v8::Value>&&, int&&) + 71
23 com.github.electron.framework 0x0000000108c42376 base::Callback<void (v8::Local<v8::Value>, int), (base::internal::CopyMode)1>::Run(v8::Local<v8::Value>, int) const + 38
24 com.github.electron.framework 0x0000000108c42337 atom::api::Menu::ExecuteCommand(int, int) + 55
25 com.github.electron.framework 0x0000000108c4238d non-virtual thunk to atom::api::Menu::ExecuteCommand(int, int) + 13
26 com.github.electron.framework 0x0000000108ccc205 0x108c10000 + 770565
27 libsystem_trace.dylib 0x00007fff8fafb07a _os_activity_initiate + 75
28 com.apple.AppKit 0x00007fff96fd8dbd -[NSApplication sendAction:to:from:] + 460
29 com.apple.AppKit 0x00007fff96fd8b57 -[NSMenuItem _corePerformAction] + 336
30 com.apple.AppKit 0x00007fff96fd88b7 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 114
31 libsystem_trace.dylib 0x00007fff8fafb07a _os_activity_initiate + 75
32 com.apple.AppKit 0x00007fff96fd77a5 -[NSMenu performKeyEquivalent:] + 357
33 com.github.electron.framework 0x0000000108ca55ab atom::CommonWebContentsDelegate::HandleKeyboardEvent(content::WebContents*, content::NativeWebKeyboardEvent const&) + 139
34 com.github.electron.framework 0x0000000108c6c03d atom::api::WebContents::HandleKeyboardEvent(content::WebContents*, content::NativeWebKeyboardEvent const&) + 45
35 com.github.electron.framework 0x0000000108c6c04d non-virtual thunk to atom::api::WebContents::HandleKeyboardEvent(content::WebContents*, content::NativeWebKeyboardEvent const&) + 13
36 com.github.electron.framework 0x00000001096f515b 0x108c10000 + 11424091
37 com.github.electron.framework 0x00000001096f4d27 0x108c10000 + 11423015
38 com.github.electron.framework 0x00000001096f39fa 0x108c10000 + 11418106
39 com.github.electron.framework 0x00000001096f382e 0x108c10000 + 11417646
40 com.github.electron.framework 0x00000001096f34af 0x108c10000 + 11416751
41 com.github.electron.framework 0x000000010974c081 0x108c10000 + 11780225
42 com.github.electron.framework 0x0000000109739639 0x108c10000 + 11703865
43 com.github.electron.framework 0x0000000109d1e1f8 0x108c10000 + 17883640
44 com.github.electron.framework 0x0000000108ddce4b 0x108c10000 + 1887819
45 com.github.electron.framework 0x0000000108dfd8b3 0x108c10000 + 2021555
46 com.github.electron.framework 0x0000000108dfdbcc 0x108c10000 + 2022348
47 com.github.electron.framework 0x0000000108dfddbb 0x108c10000 + 2022843
48 com.github.electron.framework 0x0000000108dd2871 0x108c10000 + 1845361
49 com.github.electron.framework 0x0000000108df440a 0x108c10000 + 1983498
50 com.github.electron.framework 0x0000000108dd2274 0x108c10000 + 1843828
51 com.apple.CoreFoundation 0x00007fff93228881 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
52 com.apple.CoreFoundation 0x00007fff93207fbc __CFRunLoopDoSources0 + 556
53 com.apple.CoreFoundation 0x00007fff932074df __CFRunLoopRun + 927
54 com.apple.CoreFoundation 0x00007fff93206ed8 CFRunLoopRunSpecific + 296
55 com.apple.HIToolbox 0x00007fff96071935 RunCurrentEventLoopInMode + 235
56 com.apple.HIToolbox 0x00007fff9607176f ReceiveNextEventCommon + 432
57 com.apple.HIToolbox 0x00007fff960715af _BlockUntilNextEventMatchingListInModeWithFilter + 71
58 com.apple.AppKit 0x00007fff96d6fdf6 _DPSNextEvent + 1067
59 com.apple.AppKit 0x00007fff96d6f226 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
60 com.apple.AppKit 0x00007fff96d63d80 -[NSApplication run] + 682
61 com.github.electron.framework 0x0000000108dd30a6 0x108c10000 + 1847462
62 com.github.electron.framework 0x0000000108dd26c4 0x108c10000 + 1844932
63 com.github.electron.framework 0x0000000108e12363 0x108c10000 + 2106211
64 com.github.electron.framework 0x000000010951a73b 0x108c10000 + 9479995
65 com.github.electron.framework 0x000000010951a543 0x108c10000 + 9479491
66 com.github.electron.framework 0x000000010951cb52 0x108c10000 + 9489234
67 com.github.electron.framework 0x00000001095161dd 0x108c10000 + 9462237
68 com.github.electron.framework 0x0000000109487c01 0x108c10000 + 8879105
69 com.github.electron.framework 0x0000000109486d76 0x108c10000 + 8875382
70 com.github.electron.framework 0x0000000108c12587 AtomMain + 71
71 com.stripe.orion 0x0000000108c05ec6 main + 38
72 libdyld.dylib 0x00007fff924295ad start + 1
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff946f8efa kevent_qos + 10
1 libdispatch.dylib 0x00007fff8f8d6165 _dispatch_mgr_invoke + 216
2 libdispatch.dylib 0x00007fff8f8d5dcd _dispatch_mgr_thread + 52
Thread 2:: NetworkConfigWatcher
0 libsystem_kernel.dylib 0x00007fff946f1f72 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff946f13b3 mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff932081c4 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff9320768c __CFRunLoopRun + 1356
4 com.apple.CoreFoundation 0x00007fff93206ed8 CFRunLoopRunSpecific + 296
5 com.apple.Foundation 0x00007fff926b2ed9 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 270
6 com.github.electron.framework 0x0000000108dd2ede 0x108c10000 + 1847006
7 com.github.electron.framework 0x0000000108dd26c4 0x108c10000 + 1844932
8 com.github.electron.framework 0x0000000108e12363 0x108c10000 + 2106211
9 com.github.electron.framework 0x0000000108dfd05d 0x108c10000 + 2019421
10 com.github.electron.framework 0x0000000108e31938 0x108c10000 + 2234680
11 com.github.electron.framework 0x0000000108e2dc37 0x108c10000 + 2219063
12 libsystem_pthread.dylib 0x00007fff8884299d _pthread_body + 131
13 libsystem_pthread.dylib 0x00007fff8884291a _pthread_start + 168
14 libsystem_pthread.dylib 0x00007fff88840351 thread_start + 13
Thread 3:: DnsConfigService
0 libsystem_kernel.dylib 0x00007fff946f8eca kevent + 10
</code></pre></div> | 1 |
<h1 dir="auto">Popup contents</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Version: 1.0.0
OS Version: Microsoft Windows NT 10.0.18363.0
IntPtr Length: 8
x64: True
Date: 08/04/2020 01:13:23
Exception:
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Timer'.
at System.Timers.Timer.set_Enabled(Boolean value)
at System.Timers.Timer.Start()
at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)
at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)
at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.UIElement.UpdateIsVisibleCache()
at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)
at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
at System.Windows.Window.SetRootVisual()
at System.Windows.Window.SetRootVisualAndUpdateSTC()
at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
at System.Windows.Window.CreateSourceWindowDuringShow()
at System.Windows.Window.SafeCreateWindowDuringShow()
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)"><pre class="notranslate"><code class="notranslate">Version: 1.0.0
OS Version: Microsoft Windows NT 10.0.18363.0
IntPtr Length: 8
x64: True
Date: 08/04/2020 01:13:23
Exception:
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Timer'.
at System.Timers.Timer.set_Enabled(Boolean value)
at System.Timers.Timer.Start()
at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)
at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)
at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.UIElement.UpdateIsVisibleCache()
at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)
at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
at System.Windows.Window.SetRootVisual()
at System.Windows.Window.SetRootVisualAndUpdateSTC()
at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
at System.Windows.Window.CreateSourceWindowDuringShow()
at System.Windows.Window.SafeCreateWindowDuringShow()
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
</code></pre></div>
<h1 dir="auto">Log file contents</h1>
<p dir="auto">2020-08-04 01:13:22.4069|FATAL|UnHandledException|</p>
<h2 dir="auto">Exception</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Timer'.
Source: System.ComponentModel.TypeConverter
TargetAssembly: System.ComponentModel.TypeConverter, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
TargetModule: System.ComponentModel.TypeConverter.dll
TargetSite: Void set_Enabled(Boolean)
at System.Timers.Timer.set_Enabled(Boolean value)
at System.Timers.Timer.Start()
at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)
at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)
at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.UIElement.UpdateIsVisibleCache()
at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)
at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
at System.Windows.Window.SetRootVisual()
at System.Windows.Window.SetRootVisualAndUpdateSTC()
at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
at System.Windows.Window.CreateSourceWindowDuringShow()
at System.Windows.Window.SafeCreateWindowDuringShow()
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
"><pre class="notranslate"><code class="notranslate">System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Timer'.
Source: System.ComponentModel.TypeConverter
TargetAssembly: System.ComponentModel.TypeConverter, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
TargetModule: System.ComponentModel.TypeConverter.dll
TargetSite: Void set_Enabled(Boolean)
at System.Timers.Timer.set_Enabled(Boolean value)
at System.Timers.Timer.Start()
at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)
at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)
at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.UIElement.UpdateIsVisibleCache()
at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)
at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
at System.Windows.Window.SetRootVisual()
at System.Windows.Window.SetRootVisualAndUpdateSTC()
at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
at System.Windows.Window.CreateSourceWindowDuringShow()
at System.Windows.Window.SafeCreateWindowDuringShow()
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
</code></pre></div>
<h2 dir="auto">Environment</h2>
<ul dir="auto">
<li>Command Line: "C:\Program Files\PowerToys\modules\launcher\PowerLauncher.dll" 9908</li>
<li>Timestamp: 08/04/2020 01:13:22</li>
<li>Wox version: 1.0.0</li>
<li>OS Version: Microsoft Windows NT 10.0.18363.0</li>
<li>IntPtr Length: 8</li>
<li>x64: True</li>
<li>CLR Version: 3.1.6</li>
<li>Installed .NET Framework:
<ul dir="auto">
<li>v2.0.50727 2.0.50727.4927 SP2</li>
<li>v3.0 3.0.30729.4926 SP2</li>
<li>v3.5 3.5.30729.4926 SP1</li>
<li>v4 Client 4.8.03752</li>
<li>v4 Full 4.8.03752</li>
<li>v4.0 Client 4.0.0.0</li>
</ul>
</li>
</ul>
<h2 dir="auto">Assemblies - PowerLauncher</h2>
<details><summary>Click to display</summary>
<p dir="auto">
</p><ul dir="auto">
<li>System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Private.CoreLib.dll)</li>
<li>PowerLauncher, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\PowerLauncher.dll)</li>
<li>PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\PresentationFramework.dll)</li>
<li>WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\WindowsBase.dll)</li>
<li>System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.dll)</li>
<li>System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\System.Xaml.dll)</li>
<li>System.Runtime.Extensions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.Extensions.dll)</li>
<li>System.Threading, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Threading.dll)</li>
<li>System.Threading.Tasks, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Threading.Tasks.dll)</li>
<li>System.IO.Pipes, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.IO.Pipes.dll)</li>
<li>System.Security.AccessControl, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Security.AccessControl.dll)</li>
<li>System.Security.Principal.Windows, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Security.Principal.Windows.dll)</li>
<li>Wox.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Wox.Infrastructure.dll)</li>
<li>Pinyin4Net, Version=2016.4.24.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Pinyin4Net.dll)</li>
<li>mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\mscorlib.dll)</li>
<li>System.IO.Packaging, Version=4.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\System.IO.Packaging.dll)</li>
<li>netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\netstandard.dll)</li>
<li>System.Private.Uri, Version=4.0.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Private.Uri.dll)</li>
<li>PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\PresentationCore.dll)</li>
<li>DirectWriteForwarder, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\DirectWriteForwarder.dll)</li>
<li>System.Runtime.InteropServices, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.InteropServices.dll)</li>
<li>System.Runtime.CompilerServices.VisualC, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.CompilerServices.VisualC.dll)</li>
<li>System.Diagnostics.Debug, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Diagnostics.Debug.dll)</li>
<li>System.Resources.ResourceManager, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Resources.ResourceManager.dll)</li>
<li>Microsoft.Win32.Primitives, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\Microsoft.Win32.Primitives.dll)</li>
<li>System.Collections.NonGeneric, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Collections.NonGeneric.dll)</li>
<li>System.Linq, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Linq.dll)</li>
<li>System.Collections, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Collections.dll)</li>
<li>Microsoft.Win32.Registry, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\Microsoft.Win32.Registry.dll)</li>
<li>System.Collections.Specialized, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Collections.Specialized.dll)</li>
<li>System.ComponentModel.Primitives, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.ComponentModel.Primitives.dll)</li>
<li>System.Diagnostics.Process, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Diagnostics.Process.dll)</li>
<li>System.Threading.Thread, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Threading.Thread.dll)</li>
<li>System.Configuration.ConfigurationManager, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\System.Configuration.ConfigurationManager.dll)</li>
<li>System.Xml.ReaderWriter, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Xml.ReaderWriter.dll)</li>
<li>System.Private.Xml, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Private.Xml.dll)</li>
<li>System.IO.FileSystem, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.IO.FileSystem.dll)</li>
<li>System.Net.WebClient, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Net.WebClient.dll)</li>
<li>System.Memory, Version=4.2.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Memory.dll)</li>
<li>System.Security.Cryptography.Algorithms, Version=4.3.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Security.Cryptography.Algorithms.dll)</li>
<li>System.Text.Encoding.Extensions, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Text.Encoding.Extensions.dll)</li>
<li>System.Threading.ThreadPool, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Threading.ThreadPool.dll)</li>
<li>System.Diagnostics.TraceSource, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Diagnostics.TraceSource.dll)</li>
<li>System.ComponentModel.TypeConverter, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.ComponentModel.TypeConverter.dll)</li>
<li>System.Windows.Extensions, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\System.Windows.Extensions.dll)</li>
<li>System.ComponentModel, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.ComponentModel.dll)</li>
<li>System.Collections.Concurrent, Version=4.0.15.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Collections.Concurrent.dll)</li>
<li>System.ObjectModel, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.ObjectModel.dll)</li>
<li>System.Net.Requests, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Net.Requests.dll)</li>
<li>System.Net.Primitives, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Net.Primitives.dll)</li>
<li>System.Security.Principal, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Security.Principal.dll)</li>
<li>System.Net.WebHeaderCollection, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Net.WebHeaderCollection.dll)</li>
<li>ManagedCommon, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\ManagedCommon.dll)</li>
<li>System.Diagnostics.StackTrace, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Diagnostics.StackTrace.dll)</li>
<li>Telemetry, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Telemetry.dll)</li>
<li>System.Diagnostics.Tracing, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Diagnostics.Tracing.dll)</li>
<li>Wox.Plugin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Wox.Plugin.dll)</li>
<li>Wox.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Wox.Core.dll)</li>
<li>PowerLauncher.Telemetry, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\PowerLauncher.Telemetry.dll)</li>
<li>NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c (C:\Program Files\PowerToys\modules\launcher\NLog.dll)</li>
<li>System.Diagnostics.FileVersionInfo, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Diagnostics.FileVersionInfo.dll)</li>
<li>System.Data.Common, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Data.Common.dll)</li>
<li>System.Net.Mail, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Net.Mail.dll)</li>
<li>System.IO.FileSystem.Watcher, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.IO.FileSystem.Watcher.dll)</li>
<li>System.Net.Sockets, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Net.Sockets.dll)</li>
<li>System.Linq.Expressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Linq.Expressions.dll)</li>
<li>System.Diagnostics.Tools, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Diagnostics.Tools.dll)</li>
<li>NLog.Extensions.Logging, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c (C:\Program Files\PowerToys\modules\launcher\NLog.Extensions.Logging.dll)</li>
<li>Microsoft.Extensions.Logging.Abstractions, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 (C:\Program Files\PowerToys\modules\launcher\Microsoft.Extensions.Logging.Abstractions.dll)</li>
<li>Microsoft.Extensions.Logging, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 (C:\Program Files\PowerToys\modules\launcher\Microsoft.Extensions.Logging.dll)</li>
<li>System.Drawing.Primitives, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Drawing.Primitives.dll)</li>
<li>System.Threading.Timer, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Threading.Timer.dll)</li>
<li>ControlzEx, Version=4.0.0.0, Culture=neutral, PublicKeyToken=69f1c32f803d307e (C:\Program Files\PowerToys\modules\launcher\ControlzEx.dll)</li>
<li>MahApps.Metro, Version=2.0.0.0, Culture=neutral, PublicKeyToken=51482d6f650b2b3f (C:\Program Files\PowerToys\modules\launcher\MahApps.Metro.dll)</li>
<li>PresentationFramework-SystemXml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\PresentationFramework-SystemXml.dll)</li>
<li>System.Windows.Controls.Ribbon, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\System.Windows.Controls.Ribbon.dll)</li>
<li>PresentationFramework-SystemData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\PresentationFramework-SystemData.dll)</li>
<li>System.Runtime.Numerics, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.Numerics.dll)</li>
<li>Microsoft.Win32.SystemEvents, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\Microsoft.Win32.SystemEvents.dll)</li>
<li>System.ComponentModel.EventBasedAsync, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.ComponentModel.EventBasedAsync.dll)</li>
<li>Microsoft.PowerToys.Settings.UI.Lib, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Microsoft.PowerToys.Settings.UI.Lib.dll)</li>
<li>PowerToysInterop, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\PowerToysInterop.dll)</li>
<li>System.Runtime.Serialization.Formatters, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.Serialization.Formatters.dll)</li>
<li>System.Linq.Parallel, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Linq.Parallel.dll)</li>
<li>Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed (C:\Program Files\PowerToys\modules\launcher\Newtonsoft.Json.dll)</li>
<li>System.Runtime.Serialization.Primitives, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.Serialization.Primitives.dll)</li>
<li>System.Reflection.Emit.ILGeneration, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Reflection.Emit.ILGeneration.dll)</li>
<li>System.Reflection.Primitives, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Reflection.Primitives.dll)</li>
<li>System.Reflection.Emit.Lightweight, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Reflection.Emit.Lightweight.dll)</li>
<li>Anonymously Hosted DynamicMethods Assembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null (dynamic assembly doesn't has location)</li>
<li>System.Drawing.Common, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\System.Drawing.Common.dll)</li>
<li>System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Core.dll)</li>
<li>System.Runtime.Loader, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.Loader.dll)</li>
<li>Microsoft.Plugin.Calculator, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Calculator\Microsoft.Plugin.Calculator.dll)</li>
<li>Microsoft.Plugin.Folder, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Folder\Microsoft.Plugin.Folder.dll)</li>
<li>Microsoft.Plugin.Indexer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Indexer\Microsoft.Plugin.Indexer.dll)</li>
<li>Microsoft.Plugin.Program, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Program\Microsoft.Plugin.Program.dll)</li>
<li>Windows.Foundation, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.Foundation.winmd)</li>
<li>Windows.ApplicationModel, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.ApplicationModel.winmd)</li>
<li>System.Runtime.InteropServices.WindowsRuntime, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.InteropServices.WindowsRuntime.dll)</li>
<li>System.Threading.Overlapped, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Threading.Overlapped.dll)</li>
<li>Windows.Management, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.Management.winmd)</li>
<li>System.Buffers, Version=4.0.5.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Buffers.dll)</li>
<li>System.Security.Claims, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Security.Claims.dll)</li>
<li>Windows.Storage, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.Storage.winmd)</li>
<li>Windows.System, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.System.winmd)</li>
<li>System.Xml.XDocument, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Xml.XDocument.dll)</li>
<li>System.Private.Xml.Linq, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Private.Xml.Linq.dll)</li>
<li>Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\Accessibility.dll)</li>
<li>System.Text.RegularExpressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Text.RegularExpressions.dll)</li>
<li>Microsoft.Plugin.Shell, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Shell\Microsoft.Plugin.Shell.dll)</li>
<li>WindowsInput, Version=1.0.4.0, Culture=neutral, PublicKeyToken=9b287f7dc5073cad (C:\Program Files\PowerToys\modules\launcher\WindowsInput.dll)</li>
<li>Microsoft.Plugin.WindowWalker, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.WindowWalker\Microsoft.Plugin.WindowWalker.dll)</li>
<li>System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.dll)</li>
<li>UIAutomationTypes, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\UIAutomationTypes.dll)</li>
<li>PresentationFramework.Aero2, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\PresentationFramework.Aero2.dll)</li>
<li>UIAutomationProvider, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\UIAutomationProvider.dll)</li>
<li>Microsoft.Xaml.Behaviors, Version=1.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\PowerToys\modules\launcher\Microsoft.Xaml.Behaviors.dll)</li>
<li>System.Threading.Tasks.Parallel, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Threading.Tasks.Parallel.dll)</li>
<li>System.IO.FileSystem.DriveInfo, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.IO.FileSystem.DriveInfo.dll)</li>
<li>System.Net.ServicePoint, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Net.ServicePoint.dll)</li>
<li>System.Net.Security, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Net.Security.dll)</li>
<li>System.Text.Json, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Text.Json.dll)</li>
<li>System.Numerics.Vectors, Version=4.1.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Numerics.Vectors.dll)</li>
<li>System.Runtime.CompilerServices.Unsafe, Version=4.0.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Runtime.CompilerServices.Unsafe.dll)</li>
<li>Mages.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Mages.Core.dll)</li>
<li>Microsoft.Search.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f748985a6e9a7cb (C:\Program Files\PowerToys\modules\launcher\Microsoft.Search.Interop.dll)</li>
<li>System.Data.OleDb, Version=4.0.1.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\PowerToys\modules\launcher\System.Data.OleDb.dll)</li>
<li>System.Transactions.Local, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Transactions.Local.dll)</li>
<li>System.Diagnostics.PerformanceCounter, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.6\System.Diagnostics.PerformanceCounter.dll)</li>
<li>System.Reflection.Metadata, Version=1.4.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Reflection.Metadata.dll)</li>
<li>System.Collections.Immutable, Version=1.2.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.6\System.Collections.Immutable.dll)</li>
</ul>
<p dir="auto"></p>
</details>
<h2 dir="auto">ℹ Computer information</h2>
<ul dir="auto">
<li>Windows build number: Microsoft Windows NT 10.0.18363.0</li>
<li>PowerToys version: v0.20.0</li>
<li>PowerToy module: PT Run</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>
<p dir="auto">The error popped up unexpectedly when I tried to edit Fancy Zones.</p> | <p dir="auto">Popup tells me to give y'all this.</p>
<p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p>
<p dir="auto">Version: 1.0.0<br>
OS Version: Microsoft Windows NT 10.0.19041.0<br>
IntPtr Length: 8<br>
x64: True<br>
Date: 07/31/2020 17:29:59<br>
Exception:<br>
System.ObjectDisposedException: Cannot access a disposed object.<br>
Object name: 'Timer'.<br>
at System.Timers.Timer.set_Enabled(Boolean value)<br>
at System.Timers.Timer.Start()<br>
at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br>
at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br>
at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br>
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br>
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br>
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br>
at System.Windows.UIElement.UpdateIsVisibleCache()<br>
at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br>
at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br>
at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br>
at System.Windows.Window.SetRootVisual()<br>
at System.Windows.Window.SetRootVisualAndUpdateSTC()<br>
at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br>
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br>
at System.Windows.Window.CreateSourceWindowDuringShow()<br>
at System.Windows.Window.SafeCreateWindowDuringShow()<br>
at System.Windows.Window.ShowHelper(Object booleanBox)<br>
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br>
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p> | 1 |
<p dir="auto">This code:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="trait Foo {}
impl Foo {
fn foo(&self) {}
}"><pre class="notranslate"><span class="pl-k">trait</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-k">impl</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
<span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-smi">self</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">generates this error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="impl-dst.rs:3:1: 5:2 error: duplicate definition of type or module `Foo`
impl-dst.rs:3 impl Foo {
impl-dst.rs:4 fn foo(&self) {}
impl-dst.rs:5 }
impl-dst.rs:1:1: 1:13 note: first definition of type or module `Foo` here
impl-dst.rs:1 trait Foo {}
^~~~~~~~~~~~"><pre class="notranslate"><code class="notranslate">impl-dst.rs:3:1: 5:2 error: duplicate definition of type or module `Foo`
impl-dst.rs:3 impl Foo {
impl-dst.rs:4 fn foo(&self) {}
impl-dst.rs:5 }
impl-dst.rs:1:1: 1:13 note: first definition of type or module `Foo` here
impl-dst.rs:1 trait Foo {}
^~~~~~~~~~~~
</code></pre></div>
<p dir="auto">I couldn't find any existing issue on this, but this is expected to work, right?</p> | <p dir="auto">Currently, statics <em>must</em> have a type annotation as doing global type inference to resolve the type is a bad idea. However, this leads to some annoying duplication, especially when defining a static struct instance. For example, from <code class="notranslate">extra::base64</code>:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pub static STANDARD: Config =
Config {char_set: Standard, pad: true, line_length: None};"><pre class="notranslate"><span class="pl-k">pub</span> <span class="pl-k">static</span> <span class="pl-v">STANDARD</span><span class="pl-kos">:</span> <span class="pl-smi">Config</span> =
<span class="pl-smi">Config</span> <span class="pl-kos">{</span><span class="pl-c1">char_set</span><span class="pl-kos">:</span> <span class="pl-v">Standard</span><span class="pl-kos">,</span> <span class="pl-c1">pad</span><span class="pl-kos">:</span> <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">line_length</span><span class="pl-kos">:</span> <span class="pl-v">None</span><span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">There's no ambiguity in the type of the RHS, but the LHS must repeat the type anyways.</p>
<p dir="auto">Would it be possible/reasonable to infer the type of statics from the RHS of the assignment where possible? Things like this would be work:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pub static STANDARD =
Config {char_set: Standard, pad: true, line_length: None};
pub static HELLO = "hello, world!";
pub static HELLO_BYTES = bytes!("hello, world!");
pub static BAR = 18u8;"><pre class="notranslate"><span class="pl-k">pub</span> <span class="pl-k">static</span> <span class="pl-v">STANDARD</span> =
<span class="pl-v">Config</span> <span class="pl-kos">{</span>char_set<span class="pl-kos">:</span> <span class="pl-smi">Standard</span><span class="pl-kos">,</span> pad<span class="pl-kos">:</span> true<span class="pl-kos">,</span> <span class="pl-smi">line_length</span><span class="pl-kos">:</span> <span class="pl-smi">None</span><span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">pub</span> <span class="pl-k">static</span> <span class="pl-v">HELLO</span> = <span class="pl-s">"hello, world!"</span><span class="pl-kos">;</span>
<span class="pl-k">pub</span> <span class="pl-k">static</span> <span class="pl-v">HELLO_BYTES</span> = bytes!<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-k">pub</span> <span class="pl-k">static</span> <span class="pl-v">BAR</span> = <span class="pl-c1">18u8</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">but</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pub static BAZ = 10;"><pre class="notranslate"><span class="pl-k">pub</span> <span class="pl-k">static</span> <span class="pl-v">BAZ</span> = <span class="pl-c1">10</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">would not since the type isn't specified (or maybe it would resolve to <code class="notranslate">int</code>?). Untyped integer literals and generic types containing them are actually the only things I can think of that would require a type annotation.</p> | 0 |
<p dir="auto">We should be able to get away with using umbrellas and not individual libs to link.</p>
<p dir="auto">This represents shaking the tree to get rid of the duplication.</p>
<p dir="auto">That is, I think we can get away with just using one of these:</p>
<ol dir="auto">
<li>windowsapp.lib</li>
<li>onecoreuap.lib</li>
<li>onecoreuap_apiset.lib</li>
<li>onecore.lib</li>
<li>onecore_apiset.lib</li>
</ol>
<p dir="auto">and none of things like this:</p>
<ul dir="auto">
<li>kernel32.lib</li>
<li>gdi32.lib</li>
<li>user32.lib<br>
etc.</li>
</ul>
<p dir="auto">This represents someone groveling around <code class="notranslate">common.build.post.props</code> and friends and shaking them out.</p> | <h1 dir="auto">Description of the new feature/enhancement</h1>
<h1 dir="auto">Proposed technical implementation details (optional)</h1> | 0 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [10.0.18363.900]
PowerToys version: 0.19.0
PowerToy module: PowerToys Run"><pre class="notranslate"><code class="notranslate">Windows build number: [10.0.18363.900]
PowerToys version: 0.19.0
PowerToy module: PowerToys Run
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Use Alt + Tab to switch window.</li>
<li>Do something or not. Seems not to change something, as long it is not alt.</li>
<li>Press Space</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">After using Alt+Tab PowerToys should not pop up. Because Alt+Space is the Shortcut.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">PowerToys Run pop up. When click back to the window the next space opens PowerToys Run again. Until you press alt again.</p> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [run "ver" at a command prompt]
PowerToys version: 0.19
PowerToy module for which you are reporting the bug (if applicable): PT Run"><pre class="notranslate"><code class="notranslate">Windows build number: [run "ver" at a command prompt]
PowerToys version: 0.19
PowerToy module for which you are reporting the bug (if applicable): PT Run
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Remap key from alt-space to win-space<br>
execute shortcut multiple times</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">don't have start menu false positive executions</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Lots of start menu executions</p> | 1 |
<h3 dir="auto">Describe the issue:</h3>
<p dir="auto">When I try this, the result is of 8144 elements<br>
np.arange(0, 81.43, 0.01).shape<br>
(8144,)<br>
But, it should be 8143<br>
See the following counter example:<br>
np.arange(0, 81.45, 0.01).shape<br>
(8145,)<br>
np.arange(0, 81.44, 0.01).shape<br>
(8144,)<br>
np.arange(0, 11.44, 0.01).shape<br>
(1144,)</p>
<h3 dir="auto">Reproduce the code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
np.arange(0, 81.43, 0.01).shape
np.arange(0, 81.45, 0.01).shape
np.arange(0, 81.44, 0.01).shape
np.arange(0, 11.44, 0.01).shape"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0</span>, <span class="pl-c1">81.43</span>, <span class="pl-c1">0.01</span>).<span class="pl-s1">shape</span>
<span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0</span>, <span class="pl-c1">81.45</span>, <span class="pl-c1">0.01</span>).<span class="pl-s1">shape</span>
<span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0</span>, <span class="pl-c1">81.44</span>, <span class="pl-c1">0.01</span>).<span class="pl-s1">shape</span>
<span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0</span>, <span class="pl-c1">11.44</span>, <span class="pl-c1">0.01</span>).<span class="pl-s1">shape</span></pre></div>
<h3 dir="auto">Error message:</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">NumPy/Python version information:</h3>
<p dir="auto">1.20.1 3.8.8 (default, Apr 13 2021, 19:58:26)<br>
[GCC 7.3.0]</p> | <p dir="auto">np.arange(begin, begin + n * spacing, spacing) should generate an array [begin, begin + spacing, begin + 2*spacing, ..., begin + (n-1) * spacing].</p>
<p dir="auto">However in the following example, it generated an array of size (n+1): [begin, begin + spacing, begin + 2*spacing, ..., begin + n * spacing].</p>
<p dir="auto">An epsilon is needed to generate the expected answer.<br>
np.arange(begin, begin + n*spacing - epsilon, spacing)</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
arr = np.arange(125.8,224.8,3)
print(arr)
epsilon = 1e-6
arr = np.arange(125.8,224.8-epsilon,3)
print(arr)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-s1">arr</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">125.8</span>,<span class="pl-c1">224.8</span>,<span class="pl-c1">3</span>)
<span class="pl-en">print</span>(<span class="pl-s1">arr</span>)
<span class="pl-s1">epsilon</span> <span class="pl-c1">=</span> <span class="pl-c1">1e-6</span>
<span class="pl-s1">arr</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">125.8</span>,<span class="pl-c1">224.8</span><span class="pl-c1">-</span><span class="pl-s1">epsilon</span>,<span class="pl-c1">3</span>)
<span class="pl-en">print</span>(<span class="pl-s1">arr</span>)</pre></div>
<h3 dir="auto">Error message:</h3>
<p dir="auto">arr = np.arange(125.8,224.8,3)<br>
print(arr)</p>
<p dir="auto">Out[13]:<br>
array([125.8, 128.8, 131.8, 134.8, 137.8, 140.8, 143.8, 146.8, 149.8,<br>
152.8, 155.8, 158.8, 161.8, 164.8, 167.8, 170.8, 173.8, 176.8,<br>
179.8, 182.8, 185.8, 188.8, 191.8, 194.8, 197.8, 200.8, 203.8,<br>
206.8, 209.8, 212.8, 215.8, 218.8, 221.8, 224.8])</p>
<p dir="auto">epsilon = 1e-6<br>
arr = np.arange(125.8,224.8-epsilon,3)<br>
print(arr)</p>
<p dir="auto">Out[16]:<br>
array([125.8, 128.8, 131.8, 134.8, 137.8, 140.8, 143.8, 146.8, 149.8,<br>
152.8, 155.8, 158.8, 161.8, 164.8, 167.8, 170.8, 173.8, 176.8,<br>
179.8, 182.8, 185.8, 188.8, 191.8, 194.8, 197.8, 200.8, 203.8,<br>
206.8, 209.8, 212.8, 215.8, 218.8, 221.8])</p>
<h3 dir="auto">NumPy/Python version information:</h3>
<p dir="auto">1.20.2 3.8.10 (default, May 19 2021, 13:12:57) [MSC v.1916 64 bit (AMD64)]</p> | 1 |
<p dir="auto">I'm trying distributed training with pytorch, and I encountered the following error.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" File "/home.local/kamo/.anyenv/envs/pyenv/versions/torch2/lib/python3.6/site-packages/torch/nn/modules/module.py", line 259, in __call__
result = self.forward(*input, **kwargs)
File "/home.local/kamo/.anyenv/envs/pyenv/versions/torch2/lib/python3.6/site-packages/torch/nn/parallel/distributed.py", line 154, in forward
self._sync_params()
File "/home.local/kamo/.anyenv/envs/pyenv/versions/torch2/lib/python3.6/site-packages/torch/nn/parallel/distributed.py", line 183, in _sync_params
flat_buffers = _flatten_tensors(buffers)
File "/home.local/kamo/.anyenv/envs/pyenv/versions/torch2/lib/python3.6/site-packages/torch/_utils.py", line 111, in _flatten_tensors
flat = tensors[0].new(size)
IndexError: list index out of range"><pre class="notranslate"><code class="notranslate"> File "/home.local/kamo/.anyenv/envs/pyenv/versions/torch2/lib/python3.6/site-packages/torch/nn/modules/module.py", line 259, in __call__
result = self.forward(*input, **kwargs)
File "/home.local/kamo/.anyenv/envs/pyenv/versions/torch2/lib/python3.6/site-packages/torch/nn/parallel/distributed.py", line 154, in forward
self._sync_params()
File "/home.local/kamo/.anyenv/envs/pyenv/versions/torch2/lib/python3.6/site-packages/torch/nn/parallel/distributed.py", line 183, in _sync_params
flat_buffers = _flatten_tensors(buffers)
File "/home.local/kamo/.anyenv/envs/pyenv/versions/torch2/lib/python3.6/site-packages/torch/_utils.py", line 111, in _flatten_tensors
flat = tensors[0].new(size)
IndexError: list index out of range
</code></pre></div>
<p dir="auto">Reproduce code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# main.py
import os
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torchvision import datasets, transforms
from torch.autograd import Variable
import torch.distributed as dist
import torch.utils.data.distributed
class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
self.conv1 = nn.Conv2d(1, 10, kernel_size=5)
self.conv2 = nn.Conv2d(10, 20, kernel_size=5)
self.conv2_drop = nn.Dropout2d()
self.fc1 = nn.Linear(320, 50)
self.fc2 = nn.Linear(50, 10)
def forward(self, x):
x = F.relu(F.max_pool2d(self.conv1(x), 2))
x = F.relu(F.max_pool2d(self.conv2_drop(self.conv2(x)), 2))
x = x.view(-1, 320)
x = F.relu(self.fc1(x))
x = F.dropout(x, training=self.training)
x = self.fc2(x)
return F.log_softmax(x)
def main():
BACKEND = os.environ['BACKEND']
WORLD_SIZE = os.environ['WORLD_SIZE']
INIT_METHOD = os.getenv('INIT_METHOD', 'env://')
dist.init_process_group(
init_method=INIT_METHOD,
backend=BACKEND, world_size=int(WORLD_SIZE))
train_dataset = datasets.MNIST(root='./torch', train=True, download=True,
transform=transforms.Compose([
transforms.ToTensor(),
transforms.Normalize((0.1307,),
(0.3081,))]))
train_sampler =\
torch.utils.data.distributed.DistributedSampler(train_dataset)
train_loader = torch.utils.data.DataLoader(
train_dataset, sampler=train_sampler,
batch_size=64, shuffle=False, num_workers=0, pin_memory=False)
model = Net()
model.cuda()
model = torch.nn.parallel.DistributedDataParallel(model)
optimizer = optim.SGD(model.parameters(), lr=0.01, momentum=0.5)
train_sampler.set_epoch(0)
model.train()
for data, target in train_loader:
data, target = data.cuda(), target.cuda()
data, target = Variable(data), Variable(target)
optimizer.zero_grad()
output = model(data)
loss = F.nll_loss(output, target)
loss.backward()
optimizer.step()
if __name__ == '__main__':
import argparse
p = argparse.ArgumentParser()
main()"><pre class="notranslate"><code class="notranslate"># main.py
import os
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torchvision import datasets, transforms
from torch.autograd import Variable
import torch.distributed as dist
import torch.utils.data.distributed
class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
self.conv1 = nn.Conv2d(1, 10, kernel_size=5)
self.conv2 = nn.Conv2d(10, 20, kernel_size=5)
self.conv2_drop = nn.Dropout2d()
self.fc1 = nn.Linear(320, 50)
self.fc2 = nn.Linear(50, 10)
def forward(self, x):
x = F.relu(F.max_pool2d(self.conv1(x), 2))
x = F.relu(F.max_pool2d(self.conv2_drop(self.conv2(x)), 2))
x = x.view(-1, 320)
x = F.relu(self.fc1(x))
x = F.dropout(x, training=self.training)
x = self.fc2(x)
return F.log_softmax(x)
def main():
BACKEND = os.environ['BACKEND']
WORLD_SIZE = os.environ['WORLD_SIZE']
INIT_METHOD = os.getenv('INIT_METHOD', 'env://')
dist.init_process_group(
init_method=INIT_METHOD,
backend=BACKEND, world_size=int(WORLD_SIZE))
train_dataset = datasets.MNIST(root='./torch', train=True, download=True,
transform=transforms.Compose([
transforms.ToTensor(),
transforms.Normalize((0.1307,),
(0.3081,))]))
train_sampler =\
torch.utils.data.distributed.DistributedSampler(train_dataset)
train_loader = torch.utils.data.DataLoader(
train_dataset, sampler=train_sampler,
batch_size=64, shuffle=False, num_workers=0, pin_memory=False)
model = Net()
model.cuda()
model = torch.nn.parallel.DistributedDataParallel(model)
optimizer = optim.SGD(model.parameters(), lr=0.01, momentum=0.5)
train_sampler.set_epoch(0)
model.train()
for data, target in train_loader:
data, target = data.cuda(), target.cuda()
data, target = Variable(data), Variable(target)
optimizer.zero_grad()
output = model(data)
loss = F.nll_loss(output, target)
loss.backward()
optimizer.step()
if __name__ == '__main__':
import argparse
p = argparse.ArgumentParser()
main()
</code></pre></div>
<p dir="auto">Launching shell script:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#!/bin/sh
distributed_set_up() {
export TEMP_DIR="$(mktemp -d)"
rm -rf "$TEMP_DIR/"*
mkdir "$TEMP_DIR/barrier"
mkdir "$TEMP_DIR/test_dir"
}
distributed_tear_down() {
rm -rf "$TEMP_DIR"
}
distributed_set_up
ls $TEMP_DIR
backend=gloo
world_size=2
for i in seq 0 $(expr $world_size - 1);do
MASTER_ADDR='29500' MASTER_PORT='127.0.0.1' RANK=$i BACKEND=$backend WORLD_SIZE=$world_size INIT_METHOD='file://'$TEMP_DIR'/shared_init_file' python main.py &
done
wait
distributed_tear_down"><pre class="notranslate"><code class="notranslate">#!/bin/sh
distributed_set_up() {
export TEMP_DIR="$(mktemp -d)"
rm -rf "$TEMP_DIR/"*
mkdir "$TEMP_DIR/barrier"
mkdir "$TEMP_DIR/test_dir"
}
distributed_tear_down() {
rm -rf "$TEMP_DIR"
}
distributed_set_up
ls $TEMP_DIR
backend=gloo
world_size=2
for i in seq 0 $(expr $world_size - 1);do
MASTER_ADDR='29500' MASTER_PORT='127.0.0.1' RANK=$i BACKEND=$backend WORLD_SIZE=$world_size INIT_METHOD='file://'$TEMP_DIR'/shared_init_file' python main.py &
done
wait
distributed_tear_down
</code></pre></div>
<p dir="auto">Perhaps you are not taking account modules not having any buffers, so I modified <a href="https://github.com/pytorch/pytorch/blob/master/torch/nn/parallel/distributed.py#L182-L192">https://github.com/pytorch/pytorch/blob/master/torch/nn/parallel/distributed.py#L182-L192</a> like this and it works,</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" buffers = list(self.module._all_buffers())
if len(buffers) > 0:
flat_buffers = _flatten_tensors(buffers)
dist.broadcast(flat_buffers, 0)
for buf, synced in zip(buffers, _unflatten_tensors(flat_buffers, buffers)):
buf.copy_(synced)
# intra-node buffer sync
result = broadcast_coalesced(buffers, self.device_ids, self.broadcast_bucket_size)
for tensors, module in zip(result[1:], self._module_copies[1:]):
for tensor, buf in zip(tensors, module._all_buffers()):
buf.set_(tensor) "><pre class="notranslate"><code class="notranslate"> buffers = list(self.module._all_buffers())
if len(buffers) > 0:
flat_buffers = _flatten_tensors(buffers)
dist.broadcast(flat_buffers, 0)
for buf, synced in zip(buffers, _unflatten_tensors(flat_buffers, buffers)):
buf.copy_(synced)
# intra-node buffer sync
result = broadcast_coalesced(buffers, self.device_ids, self.broadcast_bucket_size)
for tensors, module in zip(result[1:], self._module_copies[1:]):
for tensor, buf in zip(tensors, module._all_buffers()):
buf.set_(tensor)
</code></pre></div>
<p dir="auto">My correction is not right?</p>
<p dir="auto">After this, maybe this is another problem, but i got the following message at process shutdown. The training seems to success, so I think this is not a critical problem.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="terminate called after throwing an instance of 'gloo::EnforceNotMet'
what(): [enforce fail at /home.local/kamo/work/pytorch/torch/lib/gloo/gloo/cuda.cu:249] error == cudaSuccess. 29 vs 0. Error at: /home.local/kamo/work/pytorch/torch/lib/gloo/gloo/cuda.cu:249: driver shutting down
terminate called after throwing an instance of 'gloo::EnforceNotMet'
what(): [enforce fail at /home.local/kamo/work/pytorch/torch/lib/gloo/gloo/cuda.cu:249] error == cudaSuccess. 29 vs 0. Error at: /home.local/kamo/work/pytorch/torch/lib/gloo/gloo/cuda.cu:249: driver shutting down
./run.sh: line 22: 19545 Aborted (core dumped) MASTER_ADDR='29500' MASTER_PORT='127.0.0.1' RANK=$i BACKEND=$backend WORLD_SIZE=$world_size INIT_METHOD='file://'$TEMP_DIR'/shared_init_file' python main.py
./run.sh: line 22: 19546 Aborted (core dumped) MASTER_ADDR='29500' MASTER_PORT='127.0.0.1' RANK=$i BACKEND=$backend WORLD_SIZE=$world_size INIT_METHOD='file://'$TEMP_DIR'/shared_init_file' python main.py"><pre class="notranslate"><code class="notranslate">terminate called after throwing an instance of 'gloo::EnforceNotMet'
what(): [enforce fail at /home.local/kamo/work/pytorch/torch/lib/gloo/gloo/cuda.cu:249] error == cudaSuccess. 29 vs 0. Error at: /home.local/kamo/work/pytorch/torch/lib/gloo/gloo/cuda.cu:249: driver shutting down
terminate called after throwing an instance of 'gloo::EnforceNotMet'
what(): [enforce fail at /home.local/kamo/work/pytorch/torch/lib/gloo/gloo/cuda.cu:249] error == cudaSuccess. 29 vs 0. Error at: /home.local/kamo/work/pytorch/torch/lib/gloo/gloo/cuda.cu:249: driver shutting down
./run.sh: line 22: 19545 Aborted (core dumped) MASTER_ADDR='29500' MASTER_PORT='127.0.0.1' RANK=$i BACKEND=$backend WORLD_SIZE=$world_size INIT_METHOD='file://'$TEMP_DIR'/shared_init_file' python main.py
./run.sh: line 22: 19546 Aborted (core dumped) MASTER_ADDR='29500' MASTER_PORT='127.0.0.1' RANK=$i BACKEND=$backend WORLD_SIZE=$world_size INIT_METHOD='file://'$TEMP_DIR'/shared_init_file' python main.py
</code></pre></div>
<p dir="auto">My environment:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="OS: CentOS7
gcc: 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC)
Python3.6
Pytorch: de757805fcdbcbb831d51827d72e73e55a49a106 (built by setup.py)
GPU: GeForce GTX 1080
CUDA8.0
CUDNN6.0
Without MPI"><pre class="notranslate"><code class="notranslate">OS: CentOS7
gcc: 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC)
Python3.6
Pytorch: de757805fcdbcbb831d51827d72e73e55a49a106 (built by setup.py)
GPU: GeForce GTX 1080
CUDA8.0
CUDNN6.0
Without MPI
</code></pre></div> | <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>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="m = nn.MultiheadAttention(embed_dim=20, num_heads=5, dropout=0.1)
i = torch.randn(4, 5, 20)
q = k = v = i.transpose(0, 1)
key_padding_mask = seq_len_to_mask([5, 3, 1, 0], max_len=5)
ao, aow = m(q, k, v, key_padding_mask=key_padding_mask)
ao = ao.transpose(0, 1)
print(aow)"><pre class="notranslate"><span class="pl-s1">m</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">MultiheadAttention</span>(<span class="pl-s1">embed_dim</span><span class="pl-c1">=</span><span class="pl-c1">20</span>, <span class="pl-s1">num_heads</span><span class="pl-c1">=</span><span class="pl-c1">5</span>, <span class="pl-s1">dropout</span><span class="pl-c1">=</span><span class="pl-c1">0.1</span>)
<span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">randn</span>(<span class="pl-c1">4</span>, <span class="pl-c1">5</span>, <span class="pl-c1">20</span>)
<span class="pl-s1">q</span> <span class="pl-c1">=</span> <span class="pl-s1">k</span> <span class="pl-c1">=</span> <span class="pl-s1">v</span> <span class="pl-c1">=</span> <span class="pl-s1">i</span>.<span class="pl-en">transpose</span>(<span class="pl-c1">0</span>, <span class="pl-c1">1</span>)
<span class="pl-s1">key_padding_mask</span> <span class="pl-c1">=</span> <span class="pl-en">seq_len_to_mask</span>([<span class="pl-c1">5</span>, <span class="pl-c1">3</span>, <span class="pl-c1">1</span>, <span class="pl-c1">0</span>], <span class="pl-s1">max_len</span><span class="pl-c1">=</span><span class="pl-c1">5</span>)
<span class="pl-s1">ao</span>, <span class="pl-s1">aow</span> <span class="pl-c1">=</span> <span class="pl-en">m</span>(<span class="pl-s1">q</span>, <span class="pl-s1">k</span>, <span class="pl-s1">v</span>, <span class="pl-s1">key_padding_mask</span><span class="pl-c1">=</span><span class="pl-s1">key_padding_mask</span>)
<span class="pl-s1">ao</span> <span class="pl-c1">=</span> <span class="pl-s1">ao</span>.<span class="pl-en">transpose</span>(<span class="pl-c1">0</span>, <span class="pl-c1">1</span>)
<span class="pl-en">print</span>(<span class="pl-s1">aow</span>)</pre></div>
<p dir="auto">the print is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" tensor([[[0.2822, 0.2024, 0.1926, 0.2565, 0.1463],
[0.2020, 0.1906, 0.1721, 0.2159, 0.2425],
[0.2074, 0.2127, 0.0882, 0.2422, 0.3333],
[0.2298, 0.1938, 0.2093, 0.1432, 0.2335],
[0.2531, 0.1772, 0.3045, 0.1246, 0.1881]],
[[0.3693, 0.3857, 0.3561, 0.0000, 0.0000],
[0.3655, 0.2712, 0.3918, 0.0000, 0.0000],
[0.2230, 0.3795, 0.2549, 0.0000, 0.0000],
[0.1698, 0.3805, 0.2318, 0.0000, 0.0000],
[0.2986, 0.3093, 0.4405, 0.0000, 0.0000]],
[[0.8889, 0.0000, 0.0000, 0.0000, 0.0000],
[1.1111, 0.0000, 0.0000, 0.0000, 0.0000],
[1.1111, 0.0000, 0.0000, 0.0000, 0.0000],
[1.1111, 0.0000, 0.0000, 0.0000, 0.0000],
[1.1111, 0.0000, 0.0000, 0.0000, 0.0000]],
[[ nan, nan, nan, nan, nan],
[ nan, nan, nan, nan, nan],
[ nan, nan, nan, nan, nan],
[ nan, nan, nan, nan, nan],
[ nan, nan, nan, nan, nan]]], grad_fn=<DivBackward0>)"><pre class="notranslate"><code class="notranslate"> tensor([[[0.2822, 0.2024, 0.1926, 0.2565, 0.1463],
[0.2020, 0.1906, 0.1721, 0.2159, 0.2425],
[0.2074, 0.2127, 0.0882, 0.2422, 0.3333],
[0.2298, 0.1938, 0.2093, 0.1432, 0.2335],
[0.2531, 0.1772, 0.3045, 0.1246, 0.1881]],
[[0.3693, 0.3857, 0.3561, 0.0000, 0.0000],
[0.3655, 0.2712, 0.3918, 0.0000, 0.0000],
[0.2230, 0.3795, 0.2549, 0.0000, 0.0000],
[0.1698, 0.3805, 0.2318, 0.0000, 0.0000],
[0.2986, 0.3093, 0.4405, 0.0000, 0.0000]],
[[0.8889, 0.0000, 0.0000, 0.0000, 0.0000],
[1.1111, 0.0000, 0.0000, 0.0000, 0.0000],
[1.1111, 0.0000, 0.0000, 0.0000, 0.0000],
[1.1111, 0.0000, 0.0000, 0.0000, 0.0000],
[1.1111, 0.0000, 0.0000, 0.0000, 0.0000]],
[[ nan, nan, nan, nan, nan],
[ nan, nan, nan, nan, nan],
[ nan, nan, nan, nan, nan],
[ nan, nan, nan, nan, nan],
[ nan, nan, nan, nan, nan]]], grad_fn=<DivBackward0>)
</code></pre></div>
<h2 dir="auto">Expected behavior</h2>
<h2 dir="auto">Environment</h2>
<p dir="auto">Please copy and paste the output from our<br>
<a href="https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py" rel="nofollow">environment collection script</a><br>
(or fill out the checklist below manually).</p>
<p dir="auto">You can get the script and run it with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py"><pre class="notranslate"><code class="notranslate">wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
</code></pre></div>
<ul dir="auto">
<li>PyTorch Version (e.g., 1.0): 1.3.0</li>
<li>OS (e.g., Linux): macos</li>
<li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source):</li>
<li>Build command you used (if compiling from source):</li>
<li>Python version:</li>
<li>CUDA/cuDNN version:</li>
<li>GPU models and configuration:</li>
<li>Any other relevant information:</li>
</ul>
<h2 dir="auto">Additional context</h2>
<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></p> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.5.3</li>
<li>Operating System version: MacOS Mojave 10.14.4 (18E226)</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>register script route</li>
</ol>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="URL registryUrl = URL.valueOf("zookeeper://127.0.0.1:2181");
ZookeeperRegistryFactory zookeeperRegistryFactory = new
ZookeeperRegistryFactory();
zookeeperRegistryFactory.setZookeeperTransporter(new
CuratorZookeeperTransporter());
Registry zookeeperRegistry = zookeeperRegistryFactory.createRegistry(registryUrl);
URL routerURL =
// URL.valueOf("script://0.0.0.0/com.wk.dubbotest.IDubboTest?category=routers&dynamic=false&enabled=true&force=false&priority=0&runtime=true&rule="
URL.valueOf("script://0.0.0.0/com.wk.dubbotest.IDubboTest?type=javascript&rule="
+ URL.encode(get_demoService_createUser_router()));
// routerURL = routerURL.addParameter("rule", URL.encode(get_demoService_createUser_router()));
// zookeeperRegistry.register(routerURL); // 注册
zookeeperRegistry.unregister(routerURL); // 取消注册"><pre class="notranslate"><span class="pl-smi">URL</span> <span class="pl-s1">registryUrl</span> = <span class="pl-smi">URL</span>.<span class="pl-en">valueOf</span>(<span class="pl-s">"zookeeper://127.0.0.1:2181"</span>);
<span class="pl-smi">ZookeeperRegistryFactory</span> <span class="pl-s1">zookeeperRegistryFactory</span> = <span class="pl-k">new</span>
<span class="pl-smi">ZookeeperRegistryFactory</span>();
<span class="pl-s1">zookeeperRegistryFactory</span>.<span class="pl-en">setZookeeperTransporter</span>(<span class="pl-k">new</span>
<span class="pl-smi">CuratorZookeeperTransporter</span>());
<span class="pl-smi">Registry</span> <span class="pl-s1">zookeeperRegistry</span> = <span class="pl-s1">zookeeperRegistryFactory</span>.<span class="pl-en">createRegistry</span>(<span class="pl-s1">registryUrl</span>);
<span class="pl-smi">URL</span> <span class="pl-s1">routerURL</span> =
<span class="pl-c">// URL.valueOf("script://0.0.0.0/com.wk.dubbotest.IDubboTest?category=routers&dynamic=false&enabled=true&force=false&priority=0&runtime=true&rule="</span>
<span class="pl-smi">URL</span>.<span class="pl-en">valueOf</span>(<span class="pl-s">"script://0.0.0.0/com.wk.dubbotest.IDubboTest?type=javascript&rule="</span>
+ <span class="pl-smi">URL</span>.<span class="pl-en">encode</span>(<span class="pl-en">get_demoService_createUser_router</span>()));
<span class="pl-c">// routerURL = routerURL.addParameter("rule", URL.encode(get_demoService_createUser_router()));</span>
<span class="pl-c">// zookeeperRegistry.register(routerURL); // 注册</span>
<span class="pl-s1">zookeeperRegistry</span>.<span class="pl-en">unregister</span>(<span class="pl-s1">routerURL</span>); <span class="pl-c">// 取消注册</span></pre></div>
<ol start="2" dir="auto">
<li>consumer print error</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">I hope that consumer can work correctly and the script route can take effect</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">Consumer print error when I registered the script route</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2019-09-02 11:39:59.302 ERROR 5026 --- [-127.0.0.1:2181] c.a.d.r.integration.RegistryDirectory : Unsupported protocol script in notified url: script://0.0.0.0/com.wk.dubbotest.IDubboTest?rule=function+route%28invokers%29+%7B++++var+result+%3D+new+java.util.ArrayList%28invokers.size%28%29%29%3B++++result.add%28invokers.get%280%29%29%3B++++return+result%3B%7Droute%28invokers%29%3B&type=javascript from registry 127.0.0.1:2181 to consumer 10.38.1.51, supported protocol: [dubbo, injvm, mock, redis, registry, rmi, thrift]
java.lang.IllegalStateException: Unsupported protocol script in notified url: script://0.0.0.0/com.wk.dubbotest.IDubboTest?rule=function+route%28invokers%29+%7B++++var+result+%3D+new+java.util.ArrayList%28invokers.size%28%29%29%3B++++result.add%28invokers.get%280%29%29%3B++++return+result%3B%7Droute%28invokers%29%3B&type=javascript from registry 127.0.0.1:2181 to consumer 10.38.1.51, supported protocol: [dubbo, injvm, mock, redis, registry, rmi, thrift]
at com.alibaba.dubbo.registry.integration.RegistryDirectory.toInvokers(RegistryDirectory.java:372) [dubbo-2.5.3.jar:2.5.3]
at com.alibaba.dubbo.registry.integration.RegistryDirectory.refreshInvoker(RegistryDirectory.java:224) [dubbo-2.5.3.jar:2.5.3]
at com.alibaba.dubbo.registry.integration.RegistryDirectory.notify(RegistryDirectory.java:195) [dubbo-2.5.3.jar:2.5.3]
at com.alibaba.dubbo.registry.support.AbstractRegistry.notify(AbstractRegistry.java:449) [dubbo-2.5.3.jar:2.5.3]
at com.alibaba.dubbo.registry.support.FailbackRegistry.doNotify(FailbackRegistry.java:273) [dubbo-2.5.3.jar:2.5.3]
at com.alibaba.dubbo.registry.support.FailbackRegistry.notify(FailbackRegistry.java:259) [dubbo-2.5.3.jar:2.5.3]
at com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry.access$400(ZookeeperRegistry.java:45) [dubbo-2.5.3.jar:2.5.3]
at com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry$3.childChanged(ZookeeperRegistry.java:159) [dubbo-2.5.3.jar:2.5.3]
at com.alibaba.dubbo.remoting.zookeeper.zkclient.ZkclientZookeeperClient$2.handleChildChange(ZkclientZookeeperClient.java:82) [dubbo-2.5.3.jar:2.5.3]
at org.I0Itec.zkclient.ZkClient$10.run(ZkClient.java:843) [zkclient-0.9.jar:na]
at org.I0Itec.zkclient.ZkEventThread.run(ZkEventThread.java:71) [zkclient-0.9.jar:na]"><pre class="notranslate"><code class="notranslate">2019-09-02 11:39:59.302 ERROR 5026 --- [-127.0.0.1:2181] c.a.d.r.integration.RegistryDirectory : Unsupported protocol script in notified url: script://0.0.0.0/com.wk.dubbotest.IDubboTest?rule=function+route%28invokers%29+%7B++++var+result+%3D+new+java.util.ArrayList%28invokers.size%28%29%29%3B++++result.add%28invokers.get%280%29%29%3B++++return+result%3B%7Droute%28invokers%29%3B&type=javascript from registry 127.0.0.1:2181 to consumer 10.38.1.51, supported protocol: [dubbo, injvm, mock, redis, registry, rmi, thrift]
java.lang.IllegalStateException: Unsupported protocol script in notified url: script://0.0.0.0/com.wk.dubbotest.IDubboTest?rule=function+route%28invokers%29+%7B++++var+result+%3D+new+java.util.ArrayList%28invokers.size%28%29%29%3B++++result.add%28invokers.get%280%29%29%3B++++return+result%3B%7Droute%28invokers%29%3B&type=javascript from registry 127.0.0.1:2181 to consumer 10.38.1.51, supported protocol: [dubbo, injvm, mock, redis, registry, rmi, thrift]
at com.alibaba.dubbo.registry.integration.RegistryDirectory.toInvokers(RegistryDirectory.java:372) [dubbo-2.5.3.jar:2.5.3]
at com.alibaba.dubbo.registry.integration.RegistryDirectory.refreshInvoker(RegistryDirectory.java:224) [dubbo-2.5.3.jar:2.5.3]
at com.alibaba.dubbo.registry.integration.RegistryDirectory.notify(RegistryDirectory.java:195) [dubbo-2.5.3.jar:2.5.3]
at com.alibaba.dubbo.registry.support.AbstractRegistry.notify(AbstractRegistry.java:449) [dubbo-2.5.3.jar:2.5.3]
at com.alibaba.dubbo.registry.support.FailbackRegistry.doNotify(FailbackRegistry.java:273) [dubbo-2.5.3.jar:2.5.3]
at com.alibaba.dubbo.registry.support.FailbackRegistry.notify(FailbackRegistry.java:259) [dubbo-2.5.3.jar:2.5.3]
at com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry.access$400(ZookeeperRegistry.java:45) [dubbo-2.5.3.jar:2.5.3]
at com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry$3.childChanged(ZookeeperRegistry.java:159) [dubbo-2.5.3.jar:2.5.3]
at com.alibaba.dubbo.remoting.zookeeper.zkclient.ZkclientZookeeperClient$2.handleChildChange(ZkclientZookeeperClient.java:82) [dubbo-2.5.3.jar:2.5.3]
at org.I0Itec.zkclient.ZkClient$10.run(ZkClient.java:843) [zkclient-0.9.jar:na]
at org.I0Itec.zkclient.ZkEventThread.run(ZkEventThread.java:71) [zkclient-0.9.jar:na]
</code></pre></div> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.2</li>
<li>Operating System version: macOS 10.12.6</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>使用protobuf-json的序列化方式</li>
<li>进行普通的dubbo RPC调用</li>
</ol>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">正常调用</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">报错,序列化失败</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Caused by: java.lang.IllegalArgumentException: This serialization only support google protobuf object, the object class is: java.lang.String
at org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufObjectOutput.writeObject(GenericProtobufObjectOutput.java:94)
at org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufObjectOutput.writeUTF(GenericProtobufObjectOutput.java:74)
at org.apache.dubbo.rpc.protocol.dubbo.DubboCodec.encodeRequestData(DubboCodec.java:176)
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.encodeRequest(ExchangeCodec.java:238)
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.encode(ExchangeCodec.java:69)
at org.apache.dubbo.rpc.protocol.dubbo.DubboCountCodec.encode(DubboCountCodec.java:40)
at org.apache.dubbo.remoting.transport.netty4.NettyCodecAdapter$InternalEncoder.encode(NettyCodecAdapter.java:70)
at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:107)
... 23 more
at org.apache.dubbo.remoting.exchange.support.DefaultFuture.doReceived(DefaultFuture.java:191)
at org.apache.dubbo.remoting.exchange.support.DefaultFuture.received(DefaultFuture.java:153)
at org.apache.dubbo.remoting.exchange.support.DefaultFuture.received(DefaultFuture.java:141)
at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleResponse(HeaderExchangeHandler.java:62)
at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:199)
at org.apache.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:51)
at org.apache.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:57)
... 3 more
"><pre class="notranslate"><span class="pl-smi">Caused</span> <span class="pl-s1">by</span>: <span class="pl-s1">java</span>.<span class="pl-s1">lang</span>.<span class="pl-s1">IllegalArgumentException</span>: <span class="pl-s1">This</span> <span class="pl-s1">serialization</span> <span class="pl-s1">only</span> <span class="pl-s1">support</span> <span class="pl-s1">google</span> <span class="pl-s1">protobuf</span> <span class="pl-s1">object</span>, <span class="pl-s1">the</span> <span class="pl-smi">object</span> <span class="pl-s1">class</span> <span class="pl-s1">is</span>: <span class="pl-smi">java</span>.<span class="pl-smi">lang</span>.<span class="pl-smi">String</span>
<span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">common</span>.<span class="pl-s1">serialize</span>.<span class="pl-s1">protobuf</span>.<span class="pl-s1">support</span>.<span class="pl-s1">GenericProtobufObjectOutput</span>.<span class="pl-en">writeObject</span>(<span class="pl-smi">GenericProtobufObjectOutput</span>.<span class="pl-smi">java</span>:<span class="pl-c1">94</span>)
<span class="pl-smi">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">common</span>.<span class="pl-s1">serialize</span>.<span class="pl-s1">protobuf</span>.<span class="pl-s1">support</span>.<span class="pl-s1">GenericProtobufObjectOutput</span>.<span class="pl-s1">writeUTF</span>(<span class="pl-smi">GenericProtobufObjectOutput</span>.<span class="pl-smi">java</span>:<span class="pl-c1">74</span>)
<span class="pl-smi">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">rpc</span>.<span class="pl-s1">protocol</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">DubboCodec</span>.<span class="pl-en">encodeRequestData</span>(<span class="pl-smi">DubboCodec</span>.<span class="pl-smi">java</span>:<span class="pl-c1">176</span>)
<span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">remoting</span>.<span class="pl-s1">exchange</span>.<span class="pl-s1">codec</span>.<span class="pl-s1">ExchangeCodec</span>.<span class="pl-en">encodeRequest</span>(<span class="pl-smi">ExchangeCodec</span>.<span class="pl-smi">java</span>:<span class="pl-c1">238</span>)
<span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">remoting</span>.<span class="pl-s1">exchange</span>.<span class="pl-s1">codec</span>.<span class="pl-s1">ExchangeCodec</span>.<span class="pl-en">encode</span>(<span class="pl-smi">ExchangeCodec</span>.<span class="pl-smi">java</span>:<span class="pl-c1">69</span>)
<span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">rpc</span>.<span class="pl-s1">protocol</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">DubboCountCodec</span>.<span class="pl-en">encode</span>(<span class="pl-smi">DubboCountCodec</span>.<span class="pl-smi">java</span>:<span class="pl-c1">40</span>)
<span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">remoting</span>.<span class="pl-s1">transport</span>.<span class="pl-s1">netty4</span>.<span class="pl-s1">NettyCodecAdapter$InternalEncoder</span>.<span class="pl-en">encode</span>(<span class="pl-smi">NettyCodecAdapter</span>.<span class="pl-smi">java</span>:<span class="pl-c1">70</span>)
<span class="pl-s1">at</span> <span class="pl-s1">io</span>.<span class="pl-s1">netty</span>.<span class="pl-s1">handler</span>.<span class="pl-s1">codec</span>.<span class="pl-s1">MessageToByteEncoder</span>.<span class="pl-en">write</span>(<span class="pl-smi">MessageToByteEncoder</span>.<span class="pl-smi">java</span>:<span class="pl-c1">107</span>)
... <span class="pl-c1">23</span> <span class="pl-s1">more</span>
<span class="pl-smi">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">remoting</span>.<span class="pl-s1">exchange</span>.<span class="pl-s1">support</span>.<span class="pl-s1">DefaultFuture</span>.<span class="pl-en">doReceived</span>(<span class="pl-smi">DefaultFuture</span>.<span class="pl-smi">java</span>:<span class="pl-c1">191</span>)
<span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">remoting</span>.<span class="pl-s1">exchange</span>.<span class="pl-s1">support</span>.<span class="pl-s1">DefaultFuture</span>.<span class="pl-en">received</span>(<span class="pl-smi">DefaultFuture</span>.<span class="pl-smi">java</span>:<span class="pl-c1">153</span>)
<span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">remoting</span>.<span class="pl-s1">exchange</span>.<span class="pl-s1">support</span>.<span class="pl-s1">DefaultFuture</span>.<span class="pl-en">received</span>(<span class="pl-smi">DefaultFuture</span>.<span class="pl-smi">java</span>:<span class="pl-c1">141</span>)
<span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">remoting</span>.<span class="pl-s1">exchange</span>.<span class="pl-s1">support</span>.<span class="pl-s1">header</span>.<span class="pl-s1">HeaderExchangeHandler</span>.<span class="pl-en">handleResponse</span>(<span class="pl-smi">HeaderExchangeHandler</span>.<span class="pl-smi">java</span>:<span class="pl-c1">62</span>)
<span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">remoting</span>.<span class="pl-s1">exchange</span>.<span class="pl-s1">support</span>.<span class="pl-s1">header</span>.<span class="pl-s1">HeaderExchangeHandler</span>.<span class="pl-en">received</span>(<span class="pl-smi">HeaderExchangeHandler</span>.<span class="pl-smi">java</span>:<span class="pl-c1">199</span>)
<span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">remoting</span>.<span class="pl-s1">transport</span>.<span class="pl-s1">DecodeHandler</span>.<span class="pl-en">received</span>(<span class="pl-smi">DecodeHandler</span>.<span class="pl-smi">java</span>:<span class="pl-c1">51</span>)
<span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">remoting</span>.<span class="pl-s1">transport</span>.<span class="pl-s1">dispatcher</span>.<span class="pl-s1">ChannelEventRunnable</span>.<span class="pl-en">run</span>(<span class="pl-smi">ChannelEventRunnable</span>.<span class="pl-smi">java</span>:<span class="pl-c1">57</span>)
... <span class="pl-c1">3</span> <span class="pl-s1">more</span></pre></div> | 0 |
<p dir="auto">Reproduce:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ brew install python --framework
$ mkvirtualenv bean -p /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Python
$ pip install -U celery-with-beanstalk"><pre class="notranslate"><code class="notranslate">$ brew install python --framework
$ mkvirtualenv bean -p /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Python
$ pip install -U celery-with-beanstalk
</code></pre></div>
<p dir="auto">Relevent lines from pip.log:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Downloading celery-with-beanstalk-2.4.tar.gz
Downloading from URL http://pypi.python.org/packages/source/c/celery-with-beanstalk/celery-with-beanstalk-2.4.tar.gz#md5=348fe773ee727ab8daeddd5e1339a87d (from http://pypi.python.org/simple/celery-with-beanstalk/)
Running setup.py egg_info for package celery-with-beanstalk
Traceback (most recent call last):
File "<string>", line 14, in <module>
IOError: [Errno 2] No such file or directory: '/Users/glind/venvs/bean/build/celery-with-beanstalk/setup.py'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
IOError: [Errno 2] No such file or directory: '/Users/glind/venvs/bean/build/celery-with-beanstalk/setup.py'
----------------------------------------
Command python setup.py egg_info failed with error code 1
Exception information:
Traceback (most recent call last):
File "/Users/glind/venvs/bean/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/Users/glind/venvs/bean/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg/pip/commands/install.py", line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/Users/glind/venvs/bean/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg/pip/req.py", line 986, in prepare_files
req_to_install.run_egg_info()
File "/Users/glind/venvs/bean/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg/pip/req.py", line 222, in run_egg_info
command_desc='python setup.py egg_info')
File "/Users/glind/venvs/bean/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg/pip/__init__.py", line 255, in call_subprocess
% (command_desc, proc.returncode))
InstallationError: Command python setup.py egg_info failed with error code 1"><pre class="notranslate"><code class="notranslate"> Downloading celery-with-beanstalk-2.4.tar.gz
Downloading from URL http://pypi.python.org/packages/source/c/celery-with-beanstalk/celery-with-beanstalk-2.4.tar.gz#md5=348fe773ee727ab8daeddd5e1339a87d (from http://pypi.python.org/simple/celery-with-beanstalk/)
Running setup.py egg_info for package celery-with-beanstalk
Traceback (most recent call last):
File "<string>", line 14, in <module>
IOError: [Errno 2] No such file or directory: '/Users/glind/venvs/bean/build/celery-with-beanstalk/setup.py'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
IOError: [Errno 2] No such file or directory: '/Users/glind/venvs/bean/build/celery-with-beanstalk/setup.py'
----------------------------------------
Command python setup.py egg_info failed with error code 1
Exception information:
Traceback (most recent call last):
File "/Users/glind/venvs/bean/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/Users/glind/venvs/bean/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg/pip/commands/install.py", line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/Users/glind/venvs/bean/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg/pip/req.py", line 986, in prepare_files
req_to_install.run_egg_info()
File "/Users/glind/venvs/bean/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg/pip/req.py", line 222, in run_egg_info
command_desc='python setup.py egg_info')
File "/Users/glind/venvs/bean/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg/pip/__init__.py", line 255, in call_subprocess
% (command_desc, proc.returncode))
InstallationError: Command python setup.py egg_info failed with error code 1
</code></pre></div>
<p dir="auto">ls -1:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(bean)517 glind ~ $ ls -1 /Users/glind/venvs/bean/build/celery-with-beanstalk/
PKG-INFO
README
celery_with_beanstalk.egg-info
pip-egg-info
setup.cfg
tmp6vUV58.py"><pre class="notranslate"><code class="notranslate">(bean)517 glind ~ $ ls -1 /Users/glind/venvs/bean/build/celery-with-beanstalk/
PKG-INFO
README
celery_with_beanstalk.egg-info
pip-egg-info
setup.cfg
tmp6vUV58.py
</code></pre></div> | <p dir="auto">Seems like setup.py is missing from the package (there's tmpEiXCu1.py which looks like setup.py)</p> | 1 |
<p dir="auto">I was trying this code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="for _ in trange(20):
Q = qdmat.dot(dqmat.dot(Q))
csr_topn(Q, 10)
Normalizer(norm="l2", copy=False).fit_transform(Q)
steps.append(Q[select_indexes])"><pre class="notranslate"><code class="notranslate">for _ in trange(20):
Q = qdmat.dot(dqmat.dot(Q))
csr_topn(Q, 10)
Normalizer(norm="l2", copy=False).fit_transform(Q)
steps.append(Q[select_indexes])
</code></pre></div>
<p dir="auto">but get this error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ValueError Traceback (most recent call last)
<ipython-input-5-772329bf5896> in <module>()
8 Q = qdmat.dot(dqmat.dot(Q))
9 csr_topn(Q, 10)
---> 10 Normalizer(norm="l1", copy=False).fit_transform(Q)
11 steps.append(Q[select_indexes])
12
/search/odin/tensorflow/lihengchao/anaconda3/lib/python3.6/site-packages/sklearn/base.py in fit_transform(self, X, y, **fit_params)
515 if y is None:
516 # fit method of arity 1 (unsupervised transformation)
--> 517 return self.fit(X, **fit_params).transform(X)
518 else:
519 # fit method of arity 2 (supervised transformation)
/search/odin/tensorflow/lihengchao/anaconda3/lib/python3.6/site-packages/sklearn/preprocessing/data.py in transform(self, X, y, copy)
1529 copy = copy if copy is not None else self.copy
1530 X = check_array(X, accept_sparse='csr')
-> 1531 return normalize(X, norm=self.norm, axis=1, copy=copy)
1532
1533
/search/odin/tensorflow/lihengchao/anaconda3/lib/python3.6/site-packages/sklearn/preprocessing/data.py in normalize(X, norm, axis, copy, return_norm)
1420 "or norm 'l2'")
1421 if norm == 'l1':
-> 1422 inplace_csr_row_normalize_l1(X)
1423 elif norm == 'l2':
1424 inplace_csr_row_normalize_l2(X)
sklearn/utils/sparsefuncs_fast.pyx in sklearn.utils.sparsefuncs_fast.inplace_csr_row_normalize_l1()
sklearn/utils/sparsefuncs_fast.pyx in sklearn.utils.sparsefuncs_fast._inplace_csr_row_normalize_l1()
ValueError: Buffer dtype mismatch, expected 'int' but got 'long'"><pre class="notranslate"><code class="notranslate">ValueError Traceback (most recent call last)
<ipython-input-5-772329bf5896> in <module>()
8 Q = qdmat.dot(dqmat.dot(Q))
9 csr_topn(Q, 10)
---> 10 Normalizer(norm="l1", copy=False).fit_transform(Q)
11 steps.append(Q[select_indexes])
12
/search/odin/tensorflow/lihengchao/anaconda3/lib/python3.6/site-packages/sklearn/base.py in fit_transform(self, X, y, **fit_params)
515 if y is None:
516 # fit method of arity 1 (unsupervised transformation)
--> 517 return self.fit(X, **fit_params).transform(X)
518 else:
519 # fit method of arity 2 (supervised transformation)
/search/odin/tensorflow/lihengchao/anaconda3/lib/python3.6/site-packages/sklearn/preprocessing/data.py in transform(self, X, y, copy)
1529 copy = copy if copy is not None else self.copy
1530 X = check_array(X, accept_sparse='csr')
-> 1531 return normalize(X, norm=self.norm, axis=1, copy=copy)
1532
1533
/search/odin/tensorflow/lihengchao/anaconda3/lib/python3.6/site-packages/sklearn/preprocessing/data.py in normalize(X, norm, axis, copy, return_norm)
1420 "or norm 'l2'")
1421 if norm == 'l1':
-> 1422 inplace_csr_row_normalize_l1(X)
1423 elif norm == 'l2':
1424 inplace_csr_row_normalize_l2(X)
sklearn/utils/sparsefuncs_fast.pyx in sklearn.utils.sparsefuncs_fast.inplace_csr_row_normalize_l1()
sklearn/utils/sparsefuncs_fast.pyx in sklearn.utils.sparsefuncs_fast._inplace_csr_row_normalize_l1()
ValueError: Buffer dtype mismatch, expected 'int' but got 'long'
</code></pre></div>
<p dir="auto">the csr_matrix Q 's size is</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<178726542x2000000 sparse matrix of type '<class 'numpy.float32'>'
with 1570091377 stored elements in Compressed Sparse Row format>"><pre class="notranslate"><code class="notranslate"><178726542x2000000 sparse matrix of type '<class 'numpy.float32'>'
with 1570091377 stored elements in Compressed Sparse Row format>
</code></pre></div>
<p dir="auto">my os: Linux version 2.6.32-504.23.4.el6.x86_64<br>
my python : Python 3.6.1 |Anaconda custom (64-bit)| (default, May 11 2017, 13:09:58)<br>
my scipy: 0.19.0<br>
my sklearn:0.19.0</p> | <p dir="auto">In scipy master (to be released as 0.14), scipy <a href="https://github.com/scipy/scipy/blob/master/doc/release/0.14.0-notes.rst#scipysparse-improvements">sparse matrices can now be indexed with 64 bit integers</a>.</p>
<p dir="auto">This means that we will probably need to use fused types for <code class="notranslate">indptr</code> and <code class="notranslate">indices</code> arrays whenever we deal with CSC or CSR datastructures in our Cython code base.</p>
<p dir="auto"><strong>Edit:</strong> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rth/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rth">@rth</a> on Nov 2017 to add the status of support for 64 bit CSR indices in different parts of the code, as discussed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="29433687" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/2969" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/2969/hovercard?comment_id=309400363&comment_type=issue_comment" href="https://github.com/scikit-learn/scikit-learn/issues/2969#issuecomment-309400363">#2969 (comment)</a></p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> preprocessing_normalize[l1-False]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> preprocessing_normalize[l1-True]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> preprocessing_normalize[l2-False]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> preprocessing_normalize[l2-True]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> decomposition_truncatedsvd[randomized]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> decomposition_truncatedsvd[arpack]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> decomposition_nmf[cd]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> decomposition_nmf[mu]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_logisticregression[liblinear-l1]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdclassifier[modified_huber-elasticnet]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdclassifier[squared_hinge-l1]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdclassifier[squared_hinge-l2]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdclassifier[squared_hinge-elasticnet]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdclassifier[perceptron-l1]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdclassifier[perceptron-l2]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdclassifier[perceptron-elasticnet]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdregressor[squared_loss-l1]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdregressor[squared_loss-l2]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdregressor[squared_loss-elasticnet]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdregressor[huber-l1]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdregressor[huber-l2]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdregressor[huber-elasticnet]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdregressor[epsilon_insensitive-l1]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdregressor[epsilon_insensitive-l2]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdregressor[epsilon_insensitive-elasticnet]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdregressor[squared_epsilon_insensitive-l1]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdregressor[squared_epsilon_insensitive-l2]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdregressor[squared_epsilon_insensitive-elasticnet]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> linear_model_estimator[linear_model.LinearRegression]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> linear_model_estimator[linear_model.ElasticNet]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_estimator[svm.LinearSVC]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_logisticregression[liblinear-l2]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdclassifier[log-l1]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdclassifier[log-l2]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdclassifier[log-elasticnet]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdclassifier[modified_huber-l1]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdclassifier[modified_huber-l2]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_estimator[svm.SVC]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> linear_model_estimator[tree.DecisionTreeClassifier]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> linear_model_logisticregression[newton-cg-l2]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> linear_model_logisticregression[lbfgs-l2]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_logisticregression[sag-l2]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdclassifier[hinge-l1]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdclassifier[hinge-l2]</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> linear_model_sgdclassifier[hinge-elasticnet]</li>
</ul> | 1 |
<p dir="auto">Example <a href="https://angular.io/docs/ts/latest/api/http/Http-class.html" rel="nofollow">of Http class on angular.io API</a> calls Observable.map() which doesn't work because RxJs operators aren't included by default and you have to import them manually.<br>
The same thing is described also here <a href="https://github.com/angular/angular/issues/5632" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/5632/hovercard">http.get(..).map function is not working with alpha 48</a>.</p> | <p dir="auto">since I updated to alpha 48, http.get(...).map is no longer working.</p>
<p dir="auto"><code class="notranslate">EXCEPTION: TypeError: json.map is not a function in [null]</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Injectable()
export class WPService implements IWPService {
baseURL: string = 'http://localhost/wptest/api';
http: Http;
constructor(http: Http) {
this.http = http;
}
GetPosts() {
var query = this.baseURL + '/get_posts/';
return new JsonObject(this.http.get(query));
}
}
@Injectable()
export class JsonObject {
constructor(json: Observable<any>) {
json.map(res => res.json()).map(data => { // <=
for (var entry in data) {
if (data.hasOwnProperty(entry)) {
this[entry] = data[entry];
}
}
}).subscribe();
}
}"><pre class="notranslate"><code class="notranslate">@Injectable()
export class WPService implements IWPService {
baseURL: string = 'http://localhost/wptest/api';
http: Http;
constructor(http: Http) {
this.http = http;
}
GetPosts() {
var query = this.baseURL + '/get_posts/';
return new JsonObject(this.http.get(query));
}
}
@Injectable()
export class JsonObject {
constructor(json: Observable<any>) {
json.map(res => res.json()).map(data => { // <=
for (var entry in data) {
if (data.hasOwnProperty(entry)) {
this[entry] = data[entry];
}
}
}).subscribe();
}
}
</code></pre></div>
<p dir="auto">when I downgraded to alpha 47, .map worked again. maybe it has something to do with the integrated rxjs</p> | 1 |
<ol dir="auto">
<li>What version of Go are you using (<code class="notranslate">go version</code>)?<br>
<code class="notranslate">go version go1.6 linux/amd64</code><br>
and<br>
<code class="notranslate">go version devel +ea4b785 Tue Mar 15 08:43:34 2016 +0000 linux/amd64</code></li>
<li>What operating system and processor architecture are you using (<code class="notranslate">go env</code>)?</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/justinn/Workspace/go"
GORACE=""
GOROOT="/usr/lib/go"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1""><pre class="notranslate"><code class="notranslate">GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/justinn/Workspace/go"
GORACE=""
GOROOT="/usr/lib/go"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
</code></pre></div>
<ol dir="auto">
<li>What did you do?</li>
</ol>
<p dir="auto">Benchmarked (a function that calls) strings.Join and looked at the memory allocations with pprof. (With <code class="notranslate">go test -bench Join -benchmem -memprofile mem.pprof -memprofilerate 1 -run ^$</code>)</p>
<p dir="auto">Benchmarks for strings.Join: <a href="http://play.golang.org/p/R7snLsnFmg" rel="nofollow">http://play.golang.org/p/R7snLsnFmg</a></p>
<p dir="auto">Benchmark results:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="BenchmarkJoin0-8 500000000 3.21 ns/op 0 B/op 0 allocs/op
BenchmarkJoin1-8 500000000 3.66 ns/op 0 B/op 0 allocs/op
BenchmarkJoin2-8 20000000 80.8 ns/op 6 B/op 2 allocs/op"><pre class="notranslate"><code class="notranslate">BenchmarkJoin0-8 500000000 3.21 ns/op 0 B/op 0 allocs/op
BenchmarkJoin1-8 500000000 3.66 ns/op 0 B/op 0 allocs/op
BenchmarkJoin2-8 20000000 80.8 ns/op 6 B/op 2 allocs/op
</code></pre></div>
<p dir="auto">Memory profile for strings.Join (<code class="notranslate">go tool pprof --alloc_objects <binary> mem.pprof</code>):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 1204055 1204055 (flat, cum) 100% of Total
. . 358: n := len(sep) * (len(a) - 1)
. . 359: for i := 0; i < len(a); i++ {
. . 360: n += len(a[i])
. . 361: }
. . 362:
602028 602028 363: b := make([]byte, n)
. . 364: bp := copy(b, a[0])
. . 365: for _, s := range a[1:] {
. . 366: bp += copy(b[bp:], sep)
. . 367: bp += copy(b[bp:], s)
. . 368: }
602027 602027 369: return string(b)
. . 370:}"><pre class="notranslate"><code class="notranslate"> 1204055 1204055 (flat, cum) 100% of Total
. . 358: n := len(sep) * (len(a) - 1)
. . 359: for i := 0; i < len(a); i++ {
. . 360: n += len(a[i])
. . 361: }
. . 362:
602028 602028 363: b := make([]byte, n)
. . 364: bp := copy(b, a[0])
. . 365: for _, s := range a[1:] {
. . 366: bp += copy(b[bp:], sep)
. . 367: bp += copy(b[bp:], s)
. . 368: }
602027 602027 369: return string(b)
. . 370:}
</code></pre></div>
<ol dir="auto">
<li>What did you expect to see?</li>
</ol>
<p dir="auto">The compiler reusing the memory of b for the return value.</p>
<ol dir="auto">
<li>What did you see instead?</li>
</ol>
<p dir="auto">The []byte->string conversion in strings.Join (on line 369) allocates a new string, although the []byte could be reused as there can never be a reference to the []byte after the function returns and the []byte is already on the heap¹.</p>
<p dir="auto">¹ Calling 'go build -gcflags="-m" in the strings package confirms this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./strings.go:363: make([]byte, n) escapes to heap
./strings.go:369: string(b) escapes to heap"><pre class="notranslate"><code class="notranslate">./strings.go:363: make([]byte, n) escapes to heap
./strings.go:369: string(b) escapes to heap
</code></pre></div>
<p dir="auto">(Line numbers are from tip)</p> | <pre class="notranslate">In this function,
func hi() string {
b := make([]byte, 0, 100) // 1st alloc
b = append(b, "Hello, "...)
b = append(b, "world.\n"...)
return string(b) // 2nd alloc, but could be removed.
}
The final line currently generates a call to runtime.slicebytetostring, causing a copy
of b to be allocated.
But the compiler already knows that b doesn't escape. It could instead return a string
header re-using the []byte memory.</pre> | 1 |
<pre class="notranslate">1) make a foo_amd64.s with only "# hi" in it (no trailing newline)
2) make a foo.go file, package foo
2) go build .
Output is unhelpfully:
$ go build .
# foo
eof in comment
It should say which file at least.</pre> | <p dir="auto">old6a etc will stay in the release candidates for checking against cmd/asm during testing,<br>
but for the final release they will be deleted and cmd/asm will be the only assembler.</p> | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.