text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): memory</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):<br> BUG REPORT</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):<br> Client Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.6+ae4550c", GitCommit:"ae4550cc9c89a593bcda6678df201db1b208133b", GitTreeState:"not a git tree", BuildDate:"2016-08-30T15:45:51Z", GoVersion:"go1.7", Compiler:"gc", Platform:"darwin/amd64"}<br> Server Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.6", GitCommit:"ae4550cc9c89a593bcda6678df201db1b208133b", GitTreeState:"clean", BuildDate:"2016-08-26T18:06:06Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: AWS</li> <li><strong>OS</strong> (e.g. from /etc/os-release):<br> NAME=CoreOS<br> ID=coreos<br> VERSION=1122.1.0<br> VERSION_ID=1122.1.0<br> BUILD_ID=2016-08-11-0252<br> PRETTY_NAME="CoreOS 1122.1.0 (MoreOS)"<br> ANSI_COLOR="1;32"<br> HOME_URL="<a href="https://coreos.com/" rel="nofollow">https://coreos.com/</a>"<br> BUG_REPORT_URL="<a href="https://github.com/coreos/bugs/issues">https://github.com/coreos/bugs/issues</a>"</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):<br> Linux xxxx 4.7.0-coreos <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35192559" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1">#1</a> SMP Thu Aug 11 02:44:21 UTC 2016 x86_64 Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz GenuineIntel GNU/Linux</li> <li><strong>Install tools</strong>:</li> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>:<br> cAdvisor reporting 0 memory usage for all containers</p> <p dir="auto"><strong>What you expected to happen</strong>:<br> cAdvisor to report actual memory usage statistics</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):<br> curl <a href="http://localhost:4194/api/v1.1/containers" rel="nofollow">http://localhost:4194/api/v1.1/containers</a></p> <p dir="auto">Observe that all memory blocks in the json look like this:<br> <code class="notranslate">"memory": { "usage": 0, "cache": 0, "rss": 0, "working_set": 0, "failcnt": 0, "container_data": { "pgfault": 0, "pgmajfault": 0 }, "hierarchical_data": { "pgfault": 0, "pgmajfault": 0 } },</code></p> <p dir="auto"><strong>Anything else do we need to know</strong>:<br> This seems to be a new behavior in 1.3.6</p>
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>): 1.4.0 with <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="180738425" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33967" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/33967/hovercard" href="https://github.com/kubernetes/kubernetes/pull/33967">#33967</a> patch applied.</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: GCE + custom kubernetes</li> <li><strong>OS</strong> (e.g. from /etc/os-release): "CoreOS 1068.8.0 (MoreOS)"</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): : 4.6.3-coreos</li> <li><strong>Install tools</strong>:</li> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>:<br> But pods seem to get lost. I.e.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="kubectl get pods NAME READY STATUS RESTARTS AGE ...other-pods abcd-3456205130-83b2q 1/1 Running 0 22s"><pre class="notranslate"><code class="notranslate">kubectl get pods NAME READY STATUS RESTARTS AGE ...other-pods abcd-3456205130-83b2q 1/1 Running 0 22s </code></pre></div> <p dir="auto">So first time around it comes up ok. Now I try to delete and create this deployment.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="kubectl delete -f abcdController.json deployment &quot;abcd&quot; deleted kubectl create -f abcdController.json deployment &quot;abcd&quot; created"><pre class="notranslate"><code class="notranslate">kubectl delete -f abcdController.json deployment "abcd" deleted kubectl create -f abcdController.json deployment "abcd" created </code></pre></div> <p dir="auto">After that I can not see my pod anywhere:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="kubectl get pods NAME READY STATUS RESTARTS AGE ..other-pods-- but abcd is not here"><pre class="notranslate"><code class="notranslate">kubectl get pods NAME READY STATUS RESTARTS AGE ..other-pods-- but abcd is not here </code></pre></div> <p dir="auto">I can see the deployment though</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="kubectl describe deployment abcd Name: abcd Namespace: default CreationTimestamp: Tue, 04 Oct 2016 11:25:54 +0100 Labels: k8s-app=abcd kubernetes.io/cluster-service=true version=v1.1.0-beta2 Selector: k8s-app=abcd,version=v1.1.0-beta2 Replicas: 0 updated | 1 total | 0 available | 0 unavailable StrategyType: RollingUpdate MinReadySeconds: 0 RollingUpdateStrategy: 1 max unavailable, 1 max surge OldReplicaSets: &lt;none&gt; NewReplicaSet: &lt;none&gt;"><pre class="notranslate"><code class="notranslate">kubectl describe deployment abcd Name: abcd Namespace: default CreationTimestamp: Tue, 04 Oct 2016 11:25:54 +0100 Labels: k8s-app=abcd kubernetes.io/cluster-service=true version=v1.1.0-beta2 Selector: k8s-app=abcd,version=v1.1.0-beta2 Replicas: 0 updated | 1 total | 0 available | 0 unavailable StrategyType: RollingUpdate MinReadySeconds: 0 RollingUpdateStrategy: 1 max unavailable, 1 max surge OldReplicaSets: &lt;none&gt; NewReplicaSet: &lt;none&gt; </code></pre></div> <p dir="auto">But there is no corresponding replica set for it.</p> <p dir="auto">Here are the logs from scheduler:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" listers.go:68] can not retrieve list of objects using index : object has no meta: object does not implement the Object interfaces Oct 04 10:25:44 h-stg-core-2 docker[3806]: I1004 10:25:44.570168 1 scheduler.go:135] Failed to bind pod: default/abcd-3456205130-15x25 Oct 04 10:25:44 h-stg-core-2 docker[3806]: E1004 10:25:44.570184 1 scheduler.go:137] scheduler cache ForgetPod failed: pod state wasn't assumed but get forgotten. Pod key: default/abcd-3456205130-15x25 Oct 04 10:25:44 h-stg-core-2 docker[3806]: E1004 10:25:44.570191 1 factory.go:530] Error scheduling default abcd-3456205130-15x25: Operation cannot be fulfilled on pods/binding &quot;abcd-3456205130-15x25&quot;: pod abcd-3456205130-15x25 is being deleted, cannot be assigned to a host; retrying Oct 04 10:25:44 h-stg-core-2 docker[3806]: I1004 10:25:44.570212 1 factory.go:607] Updating pod condition for default/abcd-3456205130-15x25 to (PodScheduled==False) Oct 04 10:25:44 h-stg-core-2 docker[3806]: W1004 10:25:44.570362 1 factory.go:544] Request for pod default/abcd-3456205130-15x25 already in flight, abandoning Oct 04 10:25:44 h-stg-core-2 docker[3806]: I1004 10:25:44.570380 1 event.go:217] Event(api.ObjectReference{Kind:&quot;Pod&quot;, Namespace:&quot;default&quot;, Name:&quot;abcd-3456205130-15x25&quot;, UID:&quot;e84beb50-8a1c-11e6-85c8-42010a140005&quot;, APIVersion:&quot;v1&quot;, ResourceVersion:&quot;6090&quot;, FieldPath:&quot;&quot;}): type: 'Normal' reason: 'FailedScheduling' Binding rejected: Operation cannot be fulfilled on pods/binding &quot;abcd-3456205130-15x25&quot;: pod abcd-3456205130-15x25 is being deleted, cannot be assigned to a host Oct 04 10:25:46 h-stg-core-2 docker[3806]: Pod name is abcd-3456205130-15x25 Oct 04 10:25:46 h-stg-core-2 docker[3806]: Pod node is h-stg-wk2-1 Oct 04 10:25:46 h-stg-core-2 docker[3806]: E1004 10:25:46.645429 1 factory.go:176] scheduler cache UpdatePod failed: no corresponding pod abcd-3456205130-15x25 in pods of node h-stg-wk2-1 Oct 04 10:25:46 h-stg-core-2 docker[3806]: Pod name is abcd-3456205130-15x25 Oct 04 10:25:46 h-stg-core-2 docker[3806]: Pod node is h-stg-wk2-1 Oct 04 10:25:46 h-stg-core-2 docker[3806]: E1004 10:25:46.722604 1 factory.go:176] scheduler cache UpdatePod failed: no corresponding pod abcd-3456205130-15x25 in pods of node h-stg-wk2-1 Oct 04 10:25:46 h-stg-core-2 docker[3806]: Pod name is abcd-3456205130-15x25 Oct 04 10:25:46 h-stg-core-2 docker[3806]: Pod node is h-stg-wk2-0 Oct 04 10:25:46 h-stg-core-2 docker[3806]: (*api.Pod)(0xc421648000)(&amp;TypeMeta{Kind:,APIVersion:,})"><pre class="notranslate"><code class="notranslate"> listers.go:68] can not retrieve list of objects using index : object has no meta: object does not implement the Object interfaces Oct 04 10:25:44 h-stg-core-2 docker[3806]: I1004 10:25:44.570168 1 scheduler.go:135] Failed to bind pod: default/abcd-3456205130-15x25 Oct 04 10:25:44 h-stg-core-2 docker[3806]: E1004 10:25:44.570184 1 scheduler.go:137] scheduler cache ForgetPod failed: pod state wasn't assumed but get forgotten. Pod key: default/abcd-3456205130-15x25 Oct 04 10:25:44 h-stg-core-2 docker[3806]: E1004 10:25:44.570191 1 factory.go:530] Error scheduling default abcd-3456205130-15x25: Operation cannot be fulfilled on pods/binding "abcd-3456205130-15x25": pod abcd-3456205130-15x25 is being deleted, cannot be assigned to a host; retrying Oct 04 10:25:44 h-stg-core-2 docker[3806]: I1004 10:25:44.570212 1 factory.go:607] Updating pod condition for default/abcd-3456205130-15x25 to (PodScheduled==False) Oct 04 10:25:44 h-stg-core-2 docker[3806]: W1004 10:25:44.570362 1 factory.go:544] Request for pod default/abcd-3456205130-15x25 already in flight, abandoning Oct 04 10:25:44 h-stg-core-2 docker[3806]: I1004 10:25:44.570380 1 event.go:217] Event(api.ObjectReference{Kind:"Pod", Namespace:"default", Name:"abcd-3456205130-15x25", UID:"e84beb50-8a1c-11e6-85c8-42010a140005", APIVersion:"v1", ResourceVersion:"6090", FieldPath:""}): type: 'Normal' reason: 'FailedScheduling' Binding rejected: Operation cannot be fulfilled on pods/binding "abcd-3456205130-15x25": pod abcd-3456205130-15x25 is being deleted, cannot be assigned to a host Oct 04 10:25:46 h-stg-core-2 docker[3806]: Pod name is abcd-3456205130-15x25 Oct 04 10:25:46 h-stg-core-2 docker[3806]: Pod node is h-stg-wk2-1 Oct 04 10:25:46 h-stg-core-2 docker[3806]: E1004 10:25:46.645429 1 factory.go:176] scheduler cache UpdatePod failed: no corresponding pod abcd-3456205130-15x25 in pods of node h-stg-wk2-1 Oct 04 10:25:46 h-stg-core-2 docker[3806]: Pod name is abcd-3456205130-15x25 Oct 04 10:25:46 h-stg-core-2 docker[3806]: Pod node is h-stg-wk2-1 Oct 04 10:25:46 h-stg-core-2 docker[3806]: E1004 10:25:46.722604 1 factory.go:176] scheduler cache UpdatePod failed: no corresponding pod abcd-3456205130-15x25 in pods of node h-stg-wk2-1 Oct 04 10:25:46 h-stg-core-2 docker[3806]: Pod name is abcd-3456205130-15x25 Oct 04 10:25:46 h-stg-core-2 docker[3806]: Pod node is h-stg-wk2-0 Oct 04 10:25:46 h-stg-core-2 docker[3806]: (*api.Pod)(0xc421648000)(&amp;TypeMeta{Kind:,APIVersion:,}) </code></pre></div> <p dir="auto">Here are thr logs from the worker node to which the new pod was originally assigned:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.357190 3706 kubelet.go:1617] SyncLoop (ADD, &quot;api&quot;): &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot; Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.475171 3706 kubelet.go:1627] SyncLoop (REMOVE, &quot;api&quot;): &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot; Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.475232 3706 kubelet.go:1802] Failed to delete pod &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot;, err: pod not found Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.484023 3706 kubelet.go:1617] SyncLoop (ADD, &quot;api&quot;): &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot; Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.492239 3706 kubelet.go:1627] SyncLoop (REMOVE, &quot;api&quot;): &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot; Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.492298 3706 kubelet.go:1802] Failed to delete pod &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot;, err: pod not found Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.503775 3706 kubelet.go:1617] SyncLoop (ADD, &quot;api&quot;): &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot; Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.516296 3706 kubelet.go:1627] SyncLoop (REMOVE, &quot;api&quot;): &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot; Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.516384 3706 kubelet.go:1802] Failed to delete pod &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot;, err: pod not found Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.542153 3706 kubelet.go:1617] SyncLoop (ADD, &quot;api&quot;): &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot; Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.561550 3706 kubelet.go:1627] SyncLoop (REMOVE, &quot;api&quot;): &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot; Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.561617 3706 kubelet.go:1802] Failed to delete pod &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot;, err: pod not found Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.567041 3706 kubelet.go:1617] SyncLoop (ADD, &quot;api&quot;): &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot; Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.588436 3706 kubelet.go:1627] SyncLoop (REMOVE, &quot;api&quot;): &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot; Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.588497 3706 kubelet.go:1802] Failed to delete pod &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot;, err: pod not found Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.599215 3706 kubelet.go:1617] SyncLoop (ADD, &quot;api&quot;): &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot; Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.657951 3706 docker_manager.go:1906] Need to restart pod infra container for &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot; because it is not found Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: E1004 10:25:44.688467 3706 docker_manager.go:746] Logging security options: {key:seccomp value:unconfined msg:} Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: E1004 10:25:44.842306 3706 docker_manager.go:1701] Failed to create symbolic link to the log file of pod &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot; container &quot;POD&quot;: symlink /var/log/containers/abcd-3456205130-15x25_default_POD-01ee72d6577afa46241df7223f26cc39cd7283c73ee0da2f4b98bbef7a3d6d79.log: no such file or directory Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.990313 3706 docker_manager.go:2167] Determined pod ip after infra change: &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot;: &quot;10.120.2.11&quot; Oct 04 10:25:45 h-stg-wk2-1 kubelet[3706]: I1004 10:25:45.023612 3706 provider.go:119] Refreshing cache for provider: *gcp_credentials.dockerConfigKeyProvider Oct 04 10:25:45 h-stg-wk2-1 kubelet[3706]: I1004 10:25:45.024235 3706 config.go:156] body of failing http response: &amp;{0x67b3f0 0xc421ada940 0x67b210} Oct 04 10:25:45 h-stg-wk2-1 kubelet[3706]: E1004 10:25:45.024263 3706 metadata.go:142] while reading 'google-dockercfg' metadata: http status code: 404 while fetching url http://metadata.google.internal./computeMetadata/v1/instance/attributes/google-dockercfg Oct 04 10:25:45 h-stg-wk2-1 kubelet[3706]: I1004 10:25:45.024290 3706 provider.go:119] Refreshing cache for provider: *gcp_credentials.dockerConfigUrlKeyProvider Oct 04 10:25:45 h-stg-wk2-1 kubelet[3706]: I1004 10:25:45.025291 3706 config.go:156] body of failing http response: &amp;{0x67b3f0 0xc421ebfc40 0x67b210} Oct 04 10:25:45 h-stg-wk2-1 kubelet[3706]: E1004 10:25:45.025342 3706 metadata.go:159] while reading 'google-dockercfg-url' metadata: http status code: 404 while fetching url http://metadata.google.internal./computeMetadata/v1/instance/attributes/google-dockercfg-url Oct 04 10:25:45 h-stg-wk2-1 kubelet[3706]: I1004 10:25:45.688160 3706 kubelet.go:1652] SyncLoop (PLEG): &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot;, event: &amp;pleg.PodLifecycleEvent{ID:&quot;e84beb50-8a1c-11e6-85c8-42010a140005&quot;, Type:&quot;ContainerStarted&quot;, Data:&quot;01ee72d6577afa46241df7223f26cc39cd7283c73ee0da2f4b98bbef7a3d6d79&quot;} Oct 04 10:25:46 h-stg-wk2-1 kubelet[3706]: I1004 10:25:46.575266 3706 kube_docker_client.go:309] Stop pulling image &quot;eu.gcr.io/ourproject/abcd:20160915.125444.4f55766&quot;: &quot;Status: Downloaded newer image for eu.gcr.io/ourproject/abcd:20160915.125444.4f55766&quot; Oct 04 10:25:46 h-stg-wk2-1 kubelet[3706]: E1004 10:25:46.592392 3706 docker_manager.go:746] Logging security options: {key:seccomp value:unconfined msg:} Oct 04 10:25:46 h-stg-wk2-1 kubelet[3706]: E1004 10:25:46.665024 3706 docker_manager.go:1701] Failed to create symbolic link to the log file of pod &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot; container &quot;abcd&quot;: symlink /var/log/containers/abcd-3456205130-15x25_default_abcd-5e1101ed8ce36529cc2013333649342d1b4e77c1010b434103cef97225bfd712.log: no such file or directory Oct 04 10:25:46 h-stg-wk2-1 kubelet[3706]: I1004 10:25:46.693803 3706 kubelet.go:1633] SyncLoop (DELETE, &quot;api&quot;): &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot; Oct 04 10:25:46 h-stg-wk2-1 kubelet[3706]: I1004 10:25:46.701327 3706 kubelet.go:1652] SyncLoop (PLEG): &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot;, event: &amp;pleg.PodLifecycleEvent{ID:&quot;e84beb50-8a1c-11e6-85c8-42010a140005&quot;, Type:&quot;ContainerStarted&quot;, Data:&quot;5e1101ed8ce36529cc2013333649342d1b4e77c1010b434103cef97225bfd712&quot;} Oct 04 10:25:46 h-stg-wk2-1 kubelet[3706]: I1004 10:25:46.765815 3706 kubelet.go:1633] SyncLoop (DELETE, &quot;api&quot;): &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot; Oct 04 10:25:46 h-stg-wk2-1 kubelet[3706]: I1004 10:25:46.829842 3706 kubelet.go:1627] SyncLoop (REMOVE, &quot;api&quot;): &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot; Oct 04 10:25:46 h-stg-wk2-1 kubelet[3706]: I1004 10:25:46.834246 3706 kubelet_pods.go:684] Killing unwanted pod &quot;abcd-3456205130-15x25&quot; Oct 04 10:25:46 h-stg-wk2-1 kubelet[3706]: I1004 10:25:46.834344 3706 docker_manager.go:1497] Killing container &quot;5e1101ed8ce36529cc2013333649342d1b4e77c1010b434103cef97225bfd712 abcd default/abcd-3456205130-15x25&quot; with 0 second grace period Oct 04 10:25:47 h-stg-wk2-1 kubelet[3706]: I1004 10:25:47.125227 3706 kube_docker_client.go:309] Stop pulling image &quot;eu.gcr.io/ourproject/abcd:20160915.125444.4f55766&quot;: &quot;Status: Image is up to date for eu.gcr.io/ourproject/abcd:20160915.125444.4f55766&quot; Oct 04 10:25:47 h-stg-wk2-1 kubelet[3706]: E1004 10:25:47.145497 3706 docker_manager.go:746] Logging security options: {key:seccomp value:unconfined msg:} Oct 04 10:25:47 h-stg-wk2-1 kubelet[3706]: E1004 10:25:47.229814 3706 docker_manager.go:1701] Failed to create symbolic link to the log file of pod &quot;abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)&quot; container &quot;abcd&quot;: symlink /var/log/containers/abcd-3456205130-15x25_default_abcd-890b1ce28b2e4d504143f8328671b1557afd9a2354c4935a18cc1c7fc8c7b20b.log: no such file or directory Oct 04 10:25:49 h-stg-wk2-1 kubelet[3706]: I1004 10:25:48.873541 3706 docker_manager.go:1536] Container &quot;5e1101ed8ce36529cc2013333649342d1b4e77c1010b434103cef97225bfd712 abcd default/abcd-3456205130-15x25&quot; exited after 2.039169678s Oct 04 10:25:49 h-stg-wk2-1 kubelet[3706]: I1004 10:25:49.047405 3706 docker_manager.go:1497] Killing container &quot;01ee72d6577afa46241df7223f26cc39cd7283c73ee0da2f4b98bbef7a3d6d79 default/abcd-3456205130-15x25&quot; with 0 second grace period Oct 04 10:25:49 h-stg-wk2-1 kubelet[3706]: I1004 10:25:49.091565 3706 docker_manager.go:1536] Container &quot;01ee72d6577afa46241df7223f26cc39cd7283c73ee0da2f4b98bbef7a3d6d79 default/abcd-3456205130-15x25&quot; exited after 44.115046ms Oct 04 10:25:49 h-stg-wk2-1 kubelet[3706]: I1004 10:25:49.704178 3706 kubelet_pods.go:684] Killing unwanted pod &quot;abcd-3456205130-15x25&quot; Oct 04 10:25:49 h-stg-wk2-1 kubelet[3706]: I1004 10:25:49.706872 3706 docker_manager.go:1497] Killing container &quot;890b1ce28b2e4d504143f8328671b1557afd9a2354c4935a18cc1c7fc8c7b20b /&quot; with 30 second grace period "><pre class="notranslate"><code class="notranslate">Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.357190 3706 kubelet.go:1617] SyncLoop (ADD, "api"): "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)" Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.475171 3706 kubelet.go:1627] SyncLoop (REMOVE, "api"): "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)" Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.475232 3706 kubelet.go:1802] Failed to delete pod "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)", err: pod not found Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.484023 3706 kubelet.go:1617] SyncLoop (ADD, "api"): "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)" Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.492239 3706 kubelet.go:1627] SyncLoop (REMOVE, "api"): "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)" Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.492298 3706 kubelet.go:1802] Failed to delete pod "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)", err: pod not found Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.503775 3706 kubelet.go:1617] SyncLoop (ADD, "api"): "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)" Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.516296 3706 kubelet.go:1627] SyncLoop (REMOVE, "api"): "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)" Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.516384 3706 kubelet.go:1802] Failed to delete pod "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)", err: pod not found Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.542153 3706 kubelet.go:1617] SyncLoop (ADD, "api"): "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)" Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.561550 3706 kubelet.go:1627] SyncLoop (REMOVE, "api"): "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)" Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.561617 3706 kubelet.go:1802] Failed to delete pod "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)", err: pod not found Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.567041 3706 kubelet.go:1617] SyncLoop (ADD, "api"): "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)" Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.588436 3706 kubelet.go:1627] SyncLoop (REMOVE, "api"): "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)" Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.588497 3706 kubelet.go:1802] Failed to delete pod "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)", err: pod not found Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.599215 3706 kubelet.go:1617] SyncLoop (ADD, "api"): "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)" Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.657951 3706 docker_manager.go:1906] Need to restart pod infra container for "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)" because it is not found Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: E1004 10:25:44.688467 3706 docker_manager.go:746] Logging security options: {key:seccomp value:unconfined msg:} Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: E1004 10:25:44.842306 3706 docker_manager.go:1701] Failed to create symbolic link to the log file of pod "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)" container "POD": symlink /var/log/containers/abcd-3456205130-15x25_default_POD-01ee72d6577afa46241df7223f26cc39cd7283c73ee0da2f4b98bbef7a3d6d79.log: no such file or directory Oct 04 10:25:44 h-stg-wk2-1 kubelet[3706]: I1004 10:25:44.990313 3706 docker_manager.go:2167] Determined pod ip after infra change: "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)": "10.120.2.11" Oct 04 10:25:45 h-stg-wk2-1 kubelet[3706]: I1004 10:25:45.023612 3706 provider.go:119] Refreshing cache for provider: *gcp_credentials.dockerConfigKeyProvider Oct 04 10:25:45 h-stg-wk2-1 kubelet[3706]: I1004 10:25:45.024235 3706 config.go:156] body of failing http response: &amp;{0x67b3f0 0xc421ada940 0x67b210} Oct 04 10:25:45 h-stg-wk2-1 kubelet[3706]: E1004 10:25:45.024263 3706 metadata.go:142] while reading 'google-dockercfg' metadata: http status code: 404 while fetching url http://metadata.google.internal./computeMetadata/v1/instance/attributes/google-dockercfg Oct 04 10:25:45 h-stg-wk2-1 kubelet[3706]: I1004 10:25:45.024290 3706 provider.go:119] Refreshing cache for provider: *gcp_credentials.dockerConfigUrlKeyProvider Oct 04 10:25:45 h-stg-wk2-1 kubelet[3706]: I1004 10:25:45.025291 3706 config.go:156] body of failing http response: &amp;{0x67b3f0 0xc421ebfc40 0x67b210} Oct 04 10:25:45 h-stg-wk2-1 kubelet[3706]: E1004 10:25:45.025342 3706 metadata.go:159] while reading 'google-dockercfg-url' metadata: http status code: 404 while fetching url http://metadata.google.internal./computeMetadata/v1/instance/attributes/google-dockercfg-url Oct 04 10:25:45 h-stg-wk2-1 kubelet[3706]: I1004 10:25:45.688160 3706 kubelet.go:1652] SyncLoop (PLEG): "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)", event: &amp;pleg.PodLifecycleEvent{ID:"e84beb50-8a1c-11e6-85c8-42010a140005", Type:"ContainerStarted", Data:"01ee72d6577afa46241df7223f26cc39cd7283c73ee0da2f4b98bbef7a3d6d79"} Oct 04 10:25:46 h-stg-wk2-1 kubelet[3706]: I1004 10:25:46.575266 3706 kube_docker_client.go:309] Stop pulling image "eu.gcr.io/ourproject/abcd:20160915.125444.4f55766": "Status: Downloaded newer image for eu.gcr.io/ourproject/abcd:20160915.125444.4f55766" Oct 04 10:25:46 h-stg-wk2-1 kubelet[3706]: E1004 10:25:46.592392 3706 docker_manager.go:746] Logging security options: {key:seccomp value:unconfined msg:} Oct 04 10:25:46 h-stg-wk2-1 kubelet[3706]: E1004 10:25:46.665024 3706 docker_manager.go:1701] Failed to create symbolic link to the log file of pod "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)" container "abcd": symlink /var/log/containers/abcd-3456205130-15x25_default_abcd-5e1101ed8ce36529cc2013333649342d1b4e77c1010b434103cef97225bfd712.log: no such file or directory Oct 04 10:25:46 h-stg-wk2-1 kubelet[3706]: I1004 10:25:46.693803 3706 kubelet.go:1633] SyncLoop (DELETE, "api"): "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)" Oct 04 10:25:46 h-stg-wk2-1 kubelet[3706]: I1004 10:25:46.701327 3706 kubelet.go:1652] SyncLoop (PLEG): "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)", event: &amp;pleg.PodLifecycleEvent{ID:"e84beb50-8a1c-11e6-85c8-42010a140005", Type:"ContainerStarted", Data:"5e1101ed8ce36529cc2013333649342d1b4e77c1010b434103cef97225bfd712"} Oct 04 10:25:46 h-stg-wk2-1 kubelet[3706]: I1004 10:25:46.765815 3706 kubelet.go:1633] SyncLoop (DELETE, "api"): "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)" Oct 04 10:25:46 h-stg-wk2-1 kubelet[3706]: I1004 10:25:46.829842 3706 kubelet.go:1627] SyncLoop (REMOVE, "api"): "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)" Oct 04 10:25:46 h-stg-wk2-1 kubelet[3706]: I1004 10:25:46.834246 3706 kubelet_pods.go:684] Killing unwanted pod "abcd-3456205130-15x25" Oct 04 10:25:46 h-stg-wk2-1 kubelet[3706]: I1004 10:25:46.834344 3706 docker_manager.go:1497] Killing container "5e1101ed8ce36529cc2013333649342d1b4e77c1010b434103cef97225bfd712 abcd default/abcd-3456205130-15x25" with 0 second grace period Oct 04 10:25:47 h-stg-wk2-1 kubelet[3706]: I1004 10:25:47.125227 3706 kube_docker_client.go:309] Stop pulling image "eu.gcr.io/ourproject/abcd:20160915.125444.4f55766": "Status: Image is up to date for eu.gcr.io/ourproject/abcd:20160915.125444.4f55766" Oct 04 10:25:47 h-stg-wk2-1 kubelet[3706]: E1004 10:25:47.145497 3706 docker_manager.go:746] Logging security options: {key:seccomp value:unconfined msg:} Oct 04 10:25:47 h-stg-wk2-1 kubelet[3706]: E1004 10:25:47.229814 3706 docker_manager.go:1701] Failed to create symbolic link to the log file of pod "abcd-3456205130-15x25_default(e84beb50-8a1c-11e6-85c8-42010a140005)" container "abcd": symlink /var/log/containers/abcd-3456205130-15x25_default_abcd-890b1ce28b2e4d504143f8328671b1557afd9a2354c4935a18cc1c7fc8c7b20b.log: no such file or directory Oct 04 10:25:49 h-stg-wk2-1 kubelet[3706]: I1004 10:25:48.873541 3706 docker_manager.go:1536] Container "5e1101ed8ce36529cc2013333649342d1b4e77c1010b434103cef97225bfd712 abcd default/abcd-3456205130-15x25" exited after 2.039169678s Oct 04 10:25:49 h-stg-wk2-1 kubelet[3706]: I1004 10:25:49.047405 3706 docker_manager.go:1497] Killing container "01ee72d6577afa46241df7223f26cc39cd7283c73ee0da2f4b98bbef7a3d6d79 default/abcd-3456205130-15x25" with 0 second grace period Oct 04 10:25:49 h-stg-wk2-1 kubelet[3706]: I1004 10:25:49.091565 3706 docker_manager.go:1536] Container "01ee72d6577afa46241df7223f26cc39cd7283c73ee0da2f4b98bbef7a3d6d79 default/abcd-3456205130-15x25" exited after 44.115046ms Oct 04 10:25:49 h-stg-wk2-1 kubelet[3706]: I1004 10:25:49.704178 3706 kubelet_pods.go:684] Killing unwanted pod "abcd-3456205130-15x25" Oct 04 10:25:49 h-stg-wk2-1 kubelet[3706]: I1004 10:25:49.706872 3706 docker_manager.go:1497] Killing container "890b1ce28b2e4d504143f8328671b1557afd9a2354c4935a18cc1c7fc8c7b20b /" with 30 second grace period </code></pre></div> <p dir="auto"><strong>What you expected to happen</strong>:<br> Expected my pod to appear.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):<br> Create a deployment, delete a deployment, create it again. seems to happen pretty regularly.</p> <p dir="auto"><strong>Anything else do we need to know</strong>:<br> Some of the original discussion is on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="180738425" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33967" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/33967/hovercard" href="https://github.com/kubernetes/kubernetes/pull/33967">#33967</a></p>
0
<p dir="auto">React Dev Tools - Profiler<br> Describe what you were doing when the bug occurred:<br> Was debugging in Storybook</p> <ol dir="auto"> <li>Changed the value in dropdown from WrapStory to Root</li> </ol> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.0.6-a39d9c3</p> <p dir="auto">Call stack: at n.value (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:16722)<br> at m (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:293893)<br> at Al (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:294128)<br> at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55891)<br> at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:62940)<br> at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:99536)<br> at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84256)<br> at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81286)<br> at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25364<br> at n.unstable_runWithPriority (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:4368)</p> <p dir="auto">Component stack: in Al<br> in div<br> in div<br> in Ir<br> in Unknown<br> in n<br> in Unknown<br> in div<br> in div<br> in Wa<br> in ce<br> in be<br> in So<br> in Vl</p>
<p dir="auto">PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE</p> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.0.4-3c6a219</p> <p dir="auto">Call stack: at n.value (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:16721)<br> at m (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:293207)<br> at pl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:293442)<br> at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)<br> at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:62939)<br> at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:99535)<br> at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)<br> at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)<br> at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363<br> at n.unstable_runWithPriority (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:4368)</p> <p dir="auto">Component stack: in pl<br> in div<br> in div<br> in Or<br> in Unknown<br> in n<br> in Unknown<br> in div<br> in div<br> in Ha<br> in le<br> in ve<br> in ko<br> in Ul</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">When I implement a class that inherits nn.Module, the autocomplete of PyCharm does not find the reference of a custom method. For example in the code below PyCharm shows a warning: Cannot find reference 'random_method' in '(input: (Any, ...), kwargs: dict) -&gt; Any'</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <ol dir="auto"> <li>Provided code sample</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 class CustomModule(nn.Module): def __init__(self, dims): super(CustomModule, self).__init__() self.dims = dims def forward(self, x): return x + torch.randn_like(x) def random_method(self): return torch.randn(self.dims) if __name__ == '__main__': dnn = CustomModule(100) out = dnn.random_method() print(out)"><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">class</span> <span class="pl-v">CustomModule</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-s1">dims</span>): <span class="pl-en">super</span>(<span class="pl-v">CustomModule</span>, <span class="pl-s1">self</span>).<span class="pl-en">__init__</span>() <span class="pl-s1">self</span>.<span class="pl-s1">dims</span> <span class="pl-c1">=</span> <span class="pl-s1">dims</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-k">return</span> <span class="pl-s1">x</span> <span class="pl-c1">+</span> <span class="pl-s1">torch</span>.<span class="pl-en">randn_like</span>(<span class="pl-s1">x</span>) <span class="pl-k">def</span> <span class="pl-en">random_method</span>(<span class="pl-s1">self</span>): <span class="pl-k">return</span> <span class="pl-s1">torch</span>.<span class="pl-en">randn</span>(<span class="pl-s1">self</span>.<span class="pl-s1">dims</span>) <span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">'__main__'</span>: <span class="pl-s1">dnn</span> <span class="pl-c1">=</span> <span class="pl-v">CustomModule</span>(<span class="pl-c1">100</span>) <span class="pl-s1">out</span> <span class="pl-c1">=</span> <span class="pl-s1">dnn</span>.<span class="pl-en">random_method</span>() <span class="pl-en">print</span>(<span class="pl-s1">out</span>)</pre></div> <h2 dir="auto">Environment</h2> <ul dir="auto"> <li>PyTorch Version (e.g., 1.0): 1.2.0</li> <li>OS (e.g., Linux): Ubuntu 18.04.02</li> <li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): pip</li> <li>Build command you used (if compiling from source):</li> <li>Python version: 3.6</li> <li>CUDA/cuDNN version: 10</li> <li>GPU models and configuration:</li> <li>Any other relevant information:</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">I exported 2 pytorch models to ' .pt' files and implemented c++ functions that load models from the '.pt 'files and run models (forward). The c++ implementation works fine, I can get proper results from the models.<br> I built the load &amp; run forward function into '.dll' library, and I implemented a mex api function can call them.<br> When I call the mex api from Matlab, the 2 models are loaded normally, and the first model runs forward properly.<br> However, when run forward the 2nd model, I got an exception.<br> I have no clue while the c++ implementation works fine but the exception occurs when call it through mex api from Matlab.<br> Because the load &amp; run forward functions are unchanged and the mex api just calls the function and do nothing,<br> so, I expected the exactly same results from both all c++ implementation and running with mex api.<br> It is more difficult to debug because there is no call-stack print.<br> Is there any way to get call-stack or catch the exception message? I placed on try-catch around 'model. forward()' but<br> the exception was not caught in.<br> Please give me any advice. Thanks in advance.</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <ol dir="auto"> <li>load &amp; forward models (StructureFlow_in_Cpp.cpp)</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="int load_model(std::string model_file1, std::string model_file2, bool _gpu) { g_module1 = torch::jit::load(model_file1, torch::kCUDA); ==&gt; ok g_module2 = torch::jit::load(model_file2, torch::kCUDA); ==&gt; ok } "><pre class="notranslate"><code class="notranslate">int load_model(std::string model_file1, std::string model_file2, bool _gpu) { g_module1 = torch::jit::load(model_file1, torch::kCUDA); ==&gt; ok g_module2 = torch::jit::load(model_file2, torch::kCUDA); ==&gt; ok } </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cv::Mat run_forward(cv::Mat&amp; image_rgb, cv::Mat&amp; struct_rgb, cv::Mat&amp; mask_gray, bool _gpu) { //1st stage : first model forward torch::Tensor input1 = torch::cat({ tensor_image_norm, tensor_struct_norm, tensor_mask_norm }, 1); input1 = input1.to(at::kCUDA); auto stage1 = g_module1.forward({ input1 }).toTensor(); // 1st model forward =&gt; ok //2nd stage : second model forward torch::Tensor input2 = torch::cat({ tensor_image_norm, stage1_cpu, tensor_mask_norm }, 1); auto stage2_all = g_module2.forward({ input2 }).toTuple(); // 2nd model forward ==&gt; **Exception occurs!!** }"><pre class="notranslate"><code class="notranslate">cv::Mat run_forward(cv::Mat&amp; image_rgb, cv::Mat&amp; struct_rgb, cv::Mat&amp; mask_gray, bool _gpu) { //1st stage : first model forward torch::Tensor input1 = torch::cat({ tensor_image_norm, tensor_struct_norm, tensor_mask_norm }, 1); input1 = input1.to(at::kCUDA); auto stage1 = g_module1.forward({ input1 }).toTensor(); // 1st model forward =&gt; ok //2nd stage : second model forward torch::Tensor input2 = torch::cat({ tensor_image_norm, stage1_cpu, tensor_mask_norm }, 1); auto stage2_all = g_module2.forward({ input2 }).toTuple(); // 2nd model forward ==&gt; **Exception occurs!!** } </code></pre></div> <ol start="2" dir="auto"> <li>Transfer call from mex api (StructureFlow_in_Cpp.cpp)</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="int test() { /* 1. Load Images*/ Mat img = cv::imread(imgPath); Mat mask = cv::imread(maskPath, IMREAD_GRAYSCALE); Mat structure = cv::imread(structPath); /*2. Load Model*/ std::string model1Path = &quot;../model/model1_trace_torch15_usercat2.pt&quot;; std::string model2Path = &quot;../model/model2_trace_torch15_usercat2.pt&quot;; load_model(model1Path, model2Path, true); /*3 Forward Models*/ cv::Mat result_img = run_forward(img, structure, mask, true); }"><pre class="notranslate"><code class="notranslate">int test() { /* 1. Load Images*/ Mat img = cv::imread(imgPath); Mat mask = cv::imread(maskPath, IMREAD_GRAYSCALE); Mat structure = cv::imread(structPath); /*2. Load Model*/ std::string model1Path = "../model/model1_trace_torch15_usercat2.pt"; std::string model2Path = "../model/model2_trace_torch15_usercat2.pt"; load_model(model1Path, model2Path, true); /*3 Forward Models*/ cv::Mat result_img = run_forward(img, structure, mask, true); } </code></pre></div> <ol start="3" dir="auto"> <li>mex api (StructureFlow_matlab_api.cpp)</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { test(); return; }"><pre class="notranslate"><code class="notranslate">void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { test(); return; } </code></pre></div> <ol start="4" dir="auto"> <li> <p dir="auto">Call mex api from Matlab (matlab_call_structure_flow.m)<br> <code class="notranslate">StructureFlow_matlab_api();</code></p> </li> <li> <p dir="auto">Errors</p> </li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Unexpected Standard exception from MEX file What():The following operation failed in the TorchScript interpreter. Traceback of TorchScript (most recent call last): RuntimeError: The following operation failed in the TorchScript interpreter. Traceback of TorchScript (most recent call last): RuntimeError: error in LoadLibraryA"><pre class="notranslate"><code class="notranslate">Unexpected Standard exception from MEX file What():The following operation failed in the TorchScript interpreter. Traceback of TorchScript (most recent call last): RuntimeError: The following operation failed in the TorchScript interpreter. Traceback of TorchScript (most recent call last): RuntimeError: error in LoadLibraryA </code></pre></div> <p dir="auto">You can reproduce the error by run the matlab <a href="https://drive.google.com/file/d/1VSRUVjD1Xa-CBqKk4NMbWEdnMccaKBK0/view?usp=sharing" rel="nofollow">codes</a></p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">forward running of the 2nd model also works well.</p> <h2 dir="auto">Environment</h2> <ol dir="auto"> <li>python envs</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PyTorch version: 1.5.1 Is debug build: No CUDA used to build PyTorch: 10.2 OS: Ubuntu 18.04.4 LTS GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 CMake version: Could not collect Python version: 3.6 Is CUDA available: Yes CUDA runtime version: 10.1.243 GPU models and configuration: GPU 0: TITAN Xp Nvidia driver version: 440.82 cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5 Versions of relevant libraries: [pip] numpy==1.18.1 [pip] torch==1.5.1 [pip] torchvision==0.6.0a0+35d732a [conda] blas 1.0 mkl [conda] cudatoolkit 10.2.89 hfd86e86_1 [conda] mkl 2020.1 217 [conda] mkl-service 2.3.0 py36he904b0f_0 [conda] mkl_fft 1.0.15 py36ha843d7b_0 [conda] mkl_random 1.1.0 py36hd6b4f25_0 [conda] numpy 1.18.1 py36h4f9e942_0 [conda] numpy-base 1.18.1 py36hde5b4d6_1 [conda] pytorch 1.5.1 py3.6_cuda10.2.89_cudnn7.6.5_0 pytorch [conda] torchvision 0.6.1 py36_cu102 pytorch"><pre class="notranslate"><code class="notranslate">PyTorch version: 1.5.1 Is debug build: No CUDA used to build PyTorch: 10.2 OS: Ubuntu 18.04.4 LTS GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 CMake version: Could not collect Python version: 3.6 Is CUDA available: Yes CUDA runtime version: 10.1.243 GPU models and configuration: GPU 0: TITAN Xp Nvidia driver version: 440.82 cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5 Versions of relevant libraries: [pip] numpy==1.18.1 [pip] torch==1.5.1 [pip] torchvision==0.6.0a0+35d732a [conda] blas 1.0 mkl [conda] cudatoolkit 10.2.89 hfd86e86_1 [conda] mkl 2020.1 217 [conda] mkl-service 2.3.0 py36he904b0f_0 [conda] mkl_fft 1.0.15 py36ha843d7b_0 [conda] mkl_random 1.1.0 py36hd6b4f25_0 [conda] numpy 1.18.1 py36h4f9e942_0 [conda] numpy-base 1.18.1 py36hde5b4d6_1 [conda] pytorch 1.5.1 py3.6_cuda10.2.89_cudnn7.6.5_0 pytorch [conda] torchvision 0.6.1 py36_cu102 pytorch </code></pre></div> <ol start="2" dir="auto"> <li>c++ envs</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="libtorch 1.6.0 Visutal Studio 2017 (C++14) GPU models : GTX-1070 "><pre class="notranslate"><code class="notranslate">libtorch 1.6.0 Visutal Studio 2017 (C++14) GPU models : GTX-1070 </code></pre></div> <ol start="3" dir="auto"> <li>matlab envs<br> <code class="notranslate">Matlab R2020a</code></li> </ol> <h2 dir="auto">Additional context</h2> <ol dir="auto"> <li>Before I faced this problem, I got 'RuntimeError: error in LoadLibraryA' at the lines using 'torch.cat'. I can check where the error happens because call stacks are printed. And It only occurs when I run it through mex api and all c++ implementation works fine. I fixed this by replacing 'torch.cat' with a self-implemented cat function.<br> So I feel that this is another problem not related to torch.cat.</li> </ol>
0
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="df = pd.DataFrame(pd.date_range('20130101', periods=3)) dt64 = np.datetime64('2013-01-01') res = df - dt64 expected = pd.DataFrame([pd.Timedelta(days=0), pd.Timedelta(days=1), pd.Timedelta(days=2)]) &gt;&gt;&gt; res 0 0 1970-01-01 1 1970-01-02 2 1970-01-03 &gt;&gt;&gt; expected 0 0 0 days 1 1 days 2 2 days &gt;&gt;&gt; res == expected 0 0 True 1 True 2 True "><pre class="notranslate"><code class="notranslate">df = pd.DataFrame(pd.date_range('20130101', periods=3)) dt64 = np.datetime64('2013-01-01') res = df - dt64 expected = pd.DataFrame([pd.Timedelta(days=0), pd.Timedelta(days=1), pd.Timedelta(days=2)]) &gt;&gt;&gt; res 0 0 1970-01-01 1 1970-01-02 2 1970-01-03 &gt;&gt;&gt; expected 0 0 0 days 1 1 days 2 2 days &gt;&gt;&gt; res == expected 0 0 True 1 True 2 True </code></pre></div> <p dir="auto">So both <code class="notranslate">__sub__</code> and <code class="notranslate">__eq__</code> are problematic.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [2]: base, step = 10**15, 10**14 In [3]: data = range(base, base+3*step, step) In [4]: df = pd.DataFrame({i : data for i in range(3)}).astype('datetime64[ns]') In [5]: s = pd.Series(data).astype('datetime64[ns]') In [6]: df Out[6]: 0 1 2 0 1970-01-12 13:46:40 1970-01-12 13:46:40 1970-01-12 13:46:40 1 1970-01-13 17:33:20 1970-01-13 17:33:20 1970-01-13 17:33:20 2 1970-01-14 21:20:00 1970-01-14 21:20:00 1970-01-14 21:20:00 In [7]: (df - s)[0] Out[7]: 0 1970-01-01 00:00:00 1 1970-01-02 03:46:40 2 1970-01-03 07:33:20 Name: 0, dtype: datetime64[ns] In [8]: (df[0] - s[0]) Out[8]: 0 0 days 00:00:00 1 1 days 03:46:40 2 2 days 07:33:20 Name: 0, dtype: timedelta64[ns]"><pre class="notranslate"><code class="notranslate">In [2]: base, step = 10**15, 10**14 In [3]: data = range(base, base+3*step, step) In [4]: df = pd.DataFrame({i : data for i in range(3)}).astype('datetime64[ns]') In [5]: s = pd.Series(data).astype('datetime64[ns]') In [6]: df Out[6]: 0 1 2 0 1970-01-12 13:46:40 1970-01-12 13:46:40 1970-01-12 13:46:40 1 1970-01-13 17:33:20 1970-01-13 17:33:20 1970-01-13 17:33:20 2 1970-01-14 21:20:00 1970-01-14 21:20:00 1970-01-14 21:20:00 In [7]: (df - s)[0] Out[7]: 0 1970-01-01 00:00:00 1 1970-01-02 03:46:40 2 1970-01-03 07:33:20 Name: 0, dtype: datetime64[ns] In [8]: (df[0] - s[0]) Out[8]: 0 0 days 00:00:00 1 1 days 03:46:40 2 2 days 07:33:20 Name: 0, dtype: timedelta64[ns] </code></pre></div> <p dir="auto">I would expect the two to give the same result (<code class="notranslate">timedelta64[ns]</code>).</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [9]: pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 2.7.10.final.0 python-bits: 64 OS: Linux OS-release: 4.3.0-1-amd64 machine: x86_64 processor: byteorder: little LC_ALL: None LANG: it_IT.utf8 pandas: 0.18.0rc1+35.g4048193 nose: 1.3.6 pip: 1.5.6 setuptools: 18.4 Cython: 0.23.2 numpy: 1.10.4 scipy: 0.16.0 statsmodels: 0.8.0.dev0+755fa81 xarray: None IPython: 2.4.1 sphinx: 1.3.1 patsy: 0.3.0-dev dateutil: 2.2 pytz: 2012c blosc: None bottleneck: None tables: 3.2.2 numexpr: 2.4.3 matplotlib: 1.5.0rc2 openpyxl: None xlrd: 0.9.4 xlwt: 0.7.5 xlsxwriter: 0.7.3 lxml: None bs4: 4.4.0 html5lib: 0.999 httplib2: 0.9.1 apiclient: None sqlalchemy: 1.0.11 pymysql: None psycopg2: 2.6.1 (dt dec mx pq3 ext lo64) jinja2: 2.8"><pre class="notranslate"><code class="notranslate">In [9]: pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 2.7.10.final.0 python-bits: 64 OS: Linux OS-release: 4.3.0-1-amd64 machine: x86_64 processor: byteorder: little LC_ALL: None LANG: it_IT.utf8 pandas: 0.18.0rc1+35.g4048193 nose: 1.3.6 pip: 1.5.6 setuptools: 18.4 Cython: 0.23.2 numpy: 1.10.4 scipy: 0.16.0 statsmodels: 0.8.0.dev0+755fa81 xarray: None IPython: 2.4.1 sphinx: 1.3.1 patsy: 0.3.0-dev dateutil: 2.2 pytz: 2012c blosc: None bottleneck: None tables: 3.2.2 numexpr: 2.4.3 matplotlib: 1.5.0rc2 openpyxl: None xlrd: 0.9.4 xlwt: 0.7.5 xlsxwriter: 0.7.3 lxml: None bs4: 4.4.0 html5lib: 0.999 httplib2: 0.9.1 apiclient: None sqlalchemy: 1.0.11 pymysql: None psycopg2: 2.6.1 (dt dec mx pq3 ext lo64) jinja2: 2.8 </code></pre></div>
1
<p dir="auto">by <strong><a href="mailto:[email protected]">[email protected]</a></strong>:</p> <pre class="notranslate">When it's used a certificate with signature algorithm RMD160 (created with OpenSSL), the error message is: x509: certificate signed by unknown authority It should show a error message according to the real problem.</pre>
<pre class="notranslate">If a certificate is signed with a hash function that wasn't compiled in the error message isn't bad, but could be better: x509: certificate signed by unknown authority (possibly because of "x509: cannot verify signature: algorithm unimplemented" while trying to verify candidate authority certificate "CA Cert Signing Authority")</pre>
1
<h5 dir="auto">Description of the problem</h5> <p dir="auto">To reproduce this issue</p> <ul dir="auto"> <li>Create PlaneGeometry</li> <li>Upload any non-power of 2 texture eg 1600 x 1200</li> </ul> <p dir="auto">When mipmaping is disabled:<br> material.map.minFilter = THREE.LinearFilter;<br> material.map.magFilter = THREE.LinearFilter;<br> texture is displayed properly.</p> <p dir="auto">When mipmapping is enabled (default) , looking close up (first mipmap) is looks ok, with angel, distance texture looks wrong, mipmaps are scaled, stretched.</p> <p dir="auto">Textures 1024 x 1024 are working properly.</p> <p dir="auto">As far as we can see problem occurs only on Windows 7 64bit and Chrome. In Internet Explorer works fine.<br> Tested in latest version of Three.js editor r85 but issue is present in other versions (tested r77).</p> <p dir="auto">Disabled mipmaps<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/29403180/27091471-801b05b6-5060-11e7-929b-7392194ba642.png"><img src="https://user-images.githubusercontent.com/29403180/27091471-801b05b6-5060-11e7-929b-7392194ba642.png" alt="img_13062017_172239_0" style="max-width: 100%;"></a></p> <p dir="auto">Enabled mipmaps (default)<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/29403180/27091470-80133f16-5060-11e7-9822-e9261a2b8dee.png"><img src="https://user-images.githubusercontent.com/29403180/27091470-80133f16-5060-11e7-9822-e9261a2b8dee.png" alt="img_13062017_171942_0" style="max-width: 100%;"></a></p> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Dev</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r85</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r77</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Windows 7 64 bit</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li> </ul> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5> <p dir="auto">Intel Core i7 , Nvidia 1080 GTX<br> Chrome Version 58.0.3029.110 (64-bit)</p>
<h5 dir="auto">Description of the problem</h5> <p dir="auto">When texture in not power of two, it generates wrong mipmaps (I suppose) after resize of texture. When mipmaps are not generated 2D texture displays correctly.<br> Inside "WebGLTextures.js" there is a function "makePowerOfTwo" where image is resized. I have made quick workaround to achive correct rendering on Windows 7:<br> after line: <code class="notranslate">context.drawImage( image, 0, 0, canvas.width, canvas.height );</code><br> I add: <code class="notranslate">context.getImageData(0, 0, canvas.width, canvas.height);</code><br> and it seems to be resised properly to generate proper mipmaps, but I'm not sure why and if calling <code class="notranslate">getImageData</code> is proper way...<br> On Firefox it looks fine but got console message Error: <code class="notranslate">WebGL warning: texImage2D: Conversion requires pixel reformatting</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=""> r85</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li> </ul> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5> <p dir="auto">Windows 7 32-bit, SP1, CPU i7 2600S</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I tried using the <code class="notranslate">@types/sinon</code> package and had problems.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a> <ul dir="auto"> <li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/MrBigDog2U/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/MrBigDog2U">@MrBigDog2U</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rationull/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rationull">@rationull</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lumaxis/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lumaxis">@lumaxis</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nicojs/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nicojs">@nicojs</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/43081j/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/43081j">@43081j</a></li> </ul> </li> </ul> <p dir="auto">Is there a reason why the createStubInstance is not defined?<br> Conforming <a href="http://sinonjs.org/releases/v4.1.2/sandbox/" rel="nofollow">http://sinonjs.org/releases/v4.1.2/sandbox/</a> it should exist.</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/xxxx</code> package and had problems.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond. <ul dir="auto"> <li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/MrBigDog2U/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/MrBigDog2U">@MrBigDog2U</a> , <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rationull/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rationull">@rationull</a> , <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lumaxis/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lumaxis">@lumaxis</a> , <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nicojs/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nicojs">@nicojs</a> , <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/43081j/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/43081j">@43081j</a></li> </ul> </li> </ul> <p dir="auto">according to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="269769483" data-permission-text="Title is private" data-url="https://github.com/sinonjs/sinon/issues/1602" data-hovercard-type="pull_request" data-hovercard-url="/sinonjs/sinon/pull/1602/hovercard" href="https://github.com/sinonjs/sinon/pull/1602">sinonjs/sinon#1602</a><br> there is a new method for Sandbox:<br> createStubInstance()</p> <p dir="auto">From type perspective it should be the same as the global createStubInstance method I guess.</p>
1
<p dir="auto">Such a function is often need i think...could be great to have an Util for this ..?</p>
<p dir="auto">Hello,</p> <p dir="auto">I have a problem with guessing <code class="notranslate">maxlength</code> attribute if field definition has <code class="notranslate">attr</code> option. Please see below:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$builder -&gt;add( 'title', null, [ 'attr' =&gt; [ 'autocomplete' =&gt; 'off', 'data-display' =&gt; true, ], ] ); ....... /** * Title * * @var string * * @ORM\Column(type=&quot;string&quot;, length=255, nullable=false) * @Assert\NotNull(groups={}) * @Assert\Length(max=255, groups={}) */ private $title;"><pre class="notranslate"><code class="notranslate">$builder -&gt;add( 'title', null, [ 'attr' =&gt; [ 'autocomplete' =&gt; 'off', 'data-display' =&gt; true, ], ] ); ....... /** * Title * * @var string * * @ORM\Column(type="string", length=255, nullable=false) * @Assert\NotNull(groups={}) * @Assert\Length(max=255, groups={}) */ private $title; </code></pre></div> <p dir="auto">In this case I don't see <code class="notranslate">maxlength</code> attribute in html output, but if I declare field like this (without <code class="notranslate">attr</code> option):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$builder -&gt;add( 'title', null, [ ] );"><pre class="notranslate"><code class="notranslate">$builder -&gt;add( 'title', null, [ ] ); </code></pre></div> <p dir="auto"><code class="notranslate">maxlength</code> attribute appears in html output.</p> <p dir="auto">Could you please clarify this behavior.</p> <p dir="auto">Thanks in advance</p>
0
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.33.0]</li> <li>Operating System: [Multiple]</li> <li>Browser: [Chromium]</li> <li>Other info: PW runs under docker official image, tried mcr.microsoft.com/playwright:v1.33.0 and mcr.microsoft.com/playwright:v1.32.0-focal - same result</li> <li>Env: Node.js 17</li> </ul> <p dir="auto"><strong>This may be important:</strong> I use PW browser remote connection, PW and Chromium are in PW's image docker container and another docker container based on node:17-alpine image connects to it and performs RPA actions</p> <h3 dir="auto">Source code (partial)</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const closeModalButtonLocator: Locator = page.locator('[data-automation-id=&quot;ModalDialog&quot;] [aria-label=&quot;Close&quot;]'); if (await closeModalButtonLocator.isVisible()) { const notShowButtonLocator: Locator = page.locator( '[data-automation-id=&quot;ModalDialog&quot;] button &gt;&gt; text=Don\'t show me this again' ); if (await notShowButtonLocator.isVisible()) { await notShowButtonLocator.click({ force: true, timeout: this.config.longActionTimeout }); } else { await closeModalButtonLocator.click({ force: true, timeout: this.config.longActionTimeout }); } }"><pre class="notranslate"><code class="notranslate">const closeModalButtonLocator: Locator = page.locator('[data-automation-id="ModalDialog"] [aria-label="Close"]'); if (await closeModalButtonLocator.isVisible()) { const notShowButtonLocator: Locator = page.locator( '[data-automation-id="ModalDialog"] button &gt;&gt; text=Don\'t show me this again' ); if (await notShowButtonLocator.isVisible()) { await notShowButtonLocator.click({ force: true, timeout: this.config.longActionTimeout }); } else { await closeModalButtonLocator.click({ force: true, timeout: this.config.longActionTimeout }); } } </code></pre></div> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">await locator.isVisible() should return boolean value immediately</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">await locator.isVisible() throws exception Timeout 5000ms exceeded, but it shouldn't wait for anything and should just return element is visible or not. it sometimes happens in different places where isVisible are used, regardless of element actually visible or not</p> <hr> <p dir="auto">P.S can't publish all source code or full trace, but last error action screenshot from trace viewer is representative, i suppose</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/34742506/236477400-d1e88764-689e-4772-9b6b-7635a5582023.png"><img width="1536" alt="Screenshot 2023-05-05 at 16 41 10" src="https://user-images.githubusercontent.com/34742506/236477400-d1e88764-689e-4772-9b6b-7635a5582023.png" style="max-width: 100%;"></a></p>
<p dir="auto">I have a similar issue as in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1586654301" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/20928" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/20928/hovercard" href="https://github.com/microsoft/playwright/issues/20928">#20928</a> where I have an SVG image in a react project when I hide the SVG get the error <code class="notranslate">TypeError: Cannot read properties of undefined (reading 'includes')</code>.</p> <p dir="auto">Se reproduction below.</p> <h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: v1.33.0</li> <li>Operating System: All</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" checked=""> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p> <p dir="auto"><a href="https://github.com/jonaskello/playwright-bug-repro">https://github.com/jonaskello/playwright-bug-repro</a></p> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>See the readme in repo above</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">No errors</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">Error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="t (in promise) TypeError: Cannot read properties of undefined (reading 'includes') at parseSelectorString (&lt;anonymous&gt;:1422:17) at parseSelector (&lt;anonymous&gt;:1322:18) at InjectedScript.parseSelector (&lt;anonymous&gt;:4440:20) at makeStrict (eval at extend (localhost/:4673:40), &lt;anonymous&gt;:1017:43) at cssFallback (eval at extend (localhost/:4673:40), &lt;anonymous&gt;:1061:10) at generateSelector (eval at extend (localhost/:4673:40), &lt;anonymous&gt;:826:40) at Recorder._updateModelForHoveredElement (eval at extend (localhost/:4673:40), &lt;anonymous&gt;:3404:36) at Recorder._onFocus (eval at extend (localhost/:4673:40), &lt;anonymous&gt;:3395:10) at Recorder._performAction (eval at extend (localhost/:4673:40), &lt;anonymous&gt;:3531:10) parseSelectorSt"><pre class="notranslate"><code class="notranslate">t (in promise) TypeError: Cannot read properties of undefined (reading 'includes') at parseSelectorString (&lt;anonymous&gt;:1422:17) at parseSelector (&lt;anonymous&gt;:1322:18) at InjectedScript.parseSelector (&lt;anonymous&gt;:4440:20) at makeStrict (eval at extend (localhost/:4673:40), &lt;anonymous&gt;:1017:43) at cssFallback (eval at extend (localhost/:4673:40), &lt;anonymous&gt;:1061:10) at generateSelector (eval at extend (localhost/:4673:40), &lt;anonymous&gt;:826:40) at Recorder._updateModelForHoveredElement (eval at extend (localhost/:4673:40), &lt;anonymous&gt;:3404:36) at Recorder._onFocus (eval at extend (localhost/:4673:40), &lt;anonymous&gt;:3395:10) at Recorder._performAction (eval at extend (localhost/:4673:40), &lt;anonymous&gt;:3531:10) parseSelectorSt </code></pre></div>
0
<p dir="auto">We're about to turn on auto-link checking for the website, but we noticed there are a few links that 404:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" - _site/animations/index.html * External link https://docs.flutter.io/flutter/physics/ScrollSimulation-class.html failed: 404 No error - _site/assets-and-images/index.html * External link https://docs.flutter.io/flutter/services/ImageResource-class.html failed: 404 No error * External link https://docs.flutter.io/flutter/widgets/AssetVendor-class.html failed: 404 No error * External link https://github.com/flutter/flutter/tree/master/examples/widgets failed: 404 No error - _site/debugging/index.html * External link https://docs.flutter.io/flutter/material/InkFeatures-class.html failed: 404 No error * External link https://docs.flutter.io/flutter/rendering/RenderObject/debugDescribeSettings.html failed: 404 No error * External link https://docs.flutter.io/flutter/scheduler/Scheduler/addPersistentFrameCallback.html failed: 404 No error - _site/platform-services/index.html * External link https://docs.flutter.io/flutter/services/MojoShell-class.html failed: 404 No error * External link https://github.com/flutter/engine/blob/master/sky/shell/platform/android/io/flutter/view/FlutterView.java failed: 404 No error * External link https://github.com/flutter/engine/blob/master/sky/shell/platform/ios/framework/Headers/FlutterAsyncMessageListener.h failed: 404 No error * External link https://github.com/flutter/engine/blob/master/sky/shell/platform/ios/framework/Headers/FlutterMessageListener.h failed: 404 No error * External link https://github.com/flutter/engine/blob/master/sky/shell/platform/ios/framework/Headers/FlutterViewController.h failed: 404 No error * External link https://github.com/flutter/flutter/blob/master/examples/hello_services/ios/HelloServices/AppDelegate.m failed: 404 No error * External link https://github.com/flutter/flutter/blob/master/examples/hello_services/ios/HelloServices/LocationProvider.m failed: 404 No error * External link https://github.com/flutter/flutter/tree/master/examples/hello_services/ios/HelloServices failed: 404 No error - _site/rendering/index.html * internally linking to ../../example/rendering/sector_layout.dart, which does not exist (line 577) &lt;a href=&quot;../../example/rendering/sector_layout.dart&quot;&gt;sector_layout.dart example&lt;/a&gt; - _site/text-input/index.html * External link https://docs.flutter.io/flutter/widgets/RawInputLine-class.html failed: 404 No error - _site/widgets-intro/index.html * External link https://docs.flutter.io/flutter/material/InputState-class.html failed: 404 No error htmlproofer 3.4.0 | Error: HTML-Proofer found 18 failures!"><pre class="notranslate"><code class="notranslate"> - _site/animations/index.html * External link https://docs.flutter.io/flutter/physics/ScrollSimulation-class.html failed: 404 No error - _site/assets-and-images/index.html * External link https://docs.flutter.io/flutter/services/ImageResource-class.html failed: 404 No error * External link https://docs.flutter.io/flutter/widgets/AssetVendor-class.html failed: 404 No error * External link https://github.com/flutter/flutter/tree/master/examples/widgets failed: 404 No error - _site/debugging/index.html * External link https://docs.flutter.io/flutter/material/InkFeatures-class.html failed: 404 No error * External link https://docs.flutter.io/flutter/rendering/RenderObject/debugDescribeSettings.html failed: 404 No error * External link https://docs.flutter.io/flutter/scheduler/Scheduler/addPersistentFrameCallback.html failed: 404 No error - _site/platform-services/index.html * External link https://docs.flutter.io/flutter/services/MojoShell-class.html failed: 404 No error * External link https://github.com/flutter/engine/blob/master/sky/shell/platform/android/io/flutter/view/FlutterView.java failed: 404 No error * External link https://github.com/flutter/engine/blob/master/sky/shell/platform/ios/framework/Headers/FlutterAsyncMessageListener.h failed: 404 No error * External link https://github.com/flutter/engine/blob/master/sky/shell/platform/ios/framework/Headers/FlutterMessageListener.h failed: 404 No error * External link https://github.com/flutter/engine/blob/master/sky/shell/platform/ios/framework/Headers/FlutterViewController.h failed: 404 No error * External link https://github.com/flutter/flutter/blob/master/examples/hello_services/ios/HelloServices/AppDelegate.m failed: 404 No error * External link https://github.com/flutter/flutter/blob/master/examples/hello_services/ios/HelloServices/LocationProvider.m failed: 404 No error * External link https://github.com/flutter/flutter/tree/master/examples/hello_services/ios/HelloServices failed: 404 No error - _site/rendering/index.html * internally linking to ../../example/rendering/sector_layout.dart, which does not exist (line 577) &lt;a href="../../example/rendering/sector_layout.dart"&gt;sector_layout.dart example&lt;/a&gt; - _site/text-input/index.html * External link https://docs.flutter.io/flutter/widgets/RawInputLine-class.html failed: 404 No error - _site/widgets-intro/index.html * External link https://docs.flutter.io/flutter/material/InputState-class.html failed: 404 No error htmlproofer 3.4.0 | Error: HTML-Proofer found 18 failures! </code></pre></div> <p dir="auto">Once we fix these, we can turn on link checking and never have a broken link again [1]</p> <p dir="auto">[1] results may vary</p>
<p dir="auto">App crashes when users gives permission to access the gallery for the very first time with error message showing</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="07-20 12:41:37.841 4132-4132/com.----.--- E/AndroidRuntime: FATAL EXCEPTION: main Process: com.----.-----, PID: 4132 java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Surface android.media.ImageReader.getSurface()' on a null object reference at io.flutter.plugins.camera.CameraPlugin$Camera.startPreview(CameraPlugin.java:676) at io.flutter.plugins.camera.CameraPlugin$Camera.access$2000(CameraPlugin.java:243) at io.flutter.plugins.camera.CameraPlugin$Camera$3.onOpened(CameraPlugin.java:443) at android.hardware.camera2.impl.CameraDeviceImpl$1.run(CameraDeviceImpl.java:139) at android.os.Handler.handleCallback(Handler.java:789) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6541) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)"><pre class="notranslate"><code class="notranslate">07-20 12:41:37.841 4132-4132/com.----.--- E/AndroidRuntime: FATAL EXCEPTION: main Process: com.----.-----, PID: 4132 java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Surface android.media.ImageReader.getSurface()' on a null object reference at io.flutter.plugins.camera.CameraPlugin$Camera.startPreview(CameraPlugin.java:676) at io.flutter.plugins.camera.CameraPlugin$Camera.access$2000(CameraPlugin.java:243) at io.flutter.plugins.camera.CameraPlugin$Camera$3.onOpened(CameraPlugin.java:443) at android.hardware.camera2.impl.CameraDeviceImpl$1.run(CameraDeviceImpl.java:139) at android.os.Handler.handleCallback(Handler.java:789) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6541) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) </code></pre></div> <p dir="auto"><strong>Version:</strong><br> Flutter 0.5.1<br> camera: "^0.2.1"<br> image_picker: "^0.4.5"</p> <p dir="auto"><strong>Steps To Reproduce,</strong></p> <ol dir="auto"> <li>Create a Stack view with CameraPreview with 2 button to capture and open gallery</li> <li>Click on open gallery button (At first time it asks for permission click allow -&gt; CRASHED)<br> open gallery by using <code class="notranslate">final File galleryImagePath = await ImagePicker.pickImage(source:ImageSource.gallery);</code></li> </ol> <p dir="auto">sample code to Reproduce <a href="https://gist.github.com/aravindhkumar23/739cf778e31fa48f4f38c7494066d721">CameraView - sample code</a></p>
0
<h3 dir="auto">Description</h3> <p dir="auto">In this issue i'd like to gather all the information about the use of MongoDB, FastApi and Pydantic. At this point this is a "rather complete" solution, but i'd like to gather feedback and comments from the community to se how it can be improved.</p> <p dir="auto">The biggest pain point that started this and several other threads when trying to use FastAPI with mongo is the <code class="notranslate">_id</code> field. There are several issues here:</p> <ol dir="auto"> <li>Most known one - <code class="notranslate">_id</code> field being <code class="notranslate">ObjectId</code>, which is not very JSON-friendly</li> <li><code class="notranslate">_id</code> field by it's naming is not very python-friendly (that is, written as is in Pydantic model, it would become a private field - many IDEs will point that)</li> </ol> <p dir="auto">Below i'll try to describe solutions i've found in different places and see what cases do the cover and what's left unsolved.</p> <p dir="auto">Let's say, we have some Joe, who's a regular developer. Joe just discovered FastAPI and is familiar with mongo (to the extend that he can create and fetch documents from DB). Joe wants to build clean and fast api that would:</p> <p dir="auto"><g-emoji class="g-emoji" alias="one" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/0031-20e3.png">1️⃣</g-emoji> Be able to define mongo-compatible documents as regular Pydantic models (with all the proper validations in place):</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class User(BaseModel): id: ObjectId = Field(description=&quot;User id&quot;) name: str = Field()"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">User</span>(<span class="pl-v">BaseModel</span>): <span class="pl-s1">id</span>: <span class="pl-v">ObjectId</span> <span class="pl-c1">=</span> <span class="pl-v">Field</span>(<span class="pl-s1">description</span><span class="pl-c1">=</span><span class="pl-s">"User id"</span>) <span class="pl-s1">name</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-v">Field</span>()</pre></div> <p dir="auto"><g-emoji class="g-emoji" alias="two" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/0032-20e3.png">2️⃣</g-emoji> Write routes that would use native Pydantic models as usual:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@app.post('/me', response_model=User) def save_me(body: User): ..."><pre class="notranslate"><span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">post</span>(<span class="pl-s">'/me'</span>, <span class="pl-s1">response_model</span><span class="pl-c1">=</span><span class="pl-v">User</span>)</span> <span class="pl-k">def</span> <span class="pl-en">save_me</span>(<span class="pl-s1">body</span>: <span class="pl-v">User</span>): ...</pre></div> <p dir="auto"><g-emoji class="g-emoji" alias="three" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/0033-20e3.png">3️⃣</g-emoji> Have api to return json like <code class="notranslate">{"id": "5ed8b7eaccda20c1d4e95bb0", "name": "Joe"}</code> (it's quite expected in the "outer world" to have <code class="notranslate">id</code> field for the document rather than <code class="notranslate">_id</code>. And it just looks nicer.)<br> <g-emoji class="g-emoji" alias="four" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/0034-20e3.png">4️⃣</g-emoji> Have Swagger and ReDoc documentation to display fields <code class="notranslate">id</code> (str), <code class="notranslate">name</code> (str)<br> <g-emoji class="g-emoji" alias="five" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/0035-20e3.png">5️⃣</g-emoji> Be able to save Pydantic documents into Mongo with proper <code class="notranslate">id</code> field substitution:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="user = User(id=ObjectId(), name='Joe') inserted = db.user.insert_one(user) # This should insert document as `{&quot;_id&quot;: user.id, &quot;name&quot;: &quot;Joe&quot;}` assert inserted.inserted_id == user.id"><pre class="notranslate"><span class="pl-s1">user</span> <span class="pl-c1">=</span> <span class="pl-v">User</span>(<span class="pl-s1">id</span><span class="pl-c1">=</span><span class="pl-v">ObjectId</span>(), <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'Joe'</span>) <span class="pl-s1">inserted</span> <span class="pl-c1">=</span> <span class="pl-s1">db</span>.<span class="pl-s1">user</span>.<span class="pl-en">insert_one</span>(<span class="pl-s1">user</span>) <span class="pl-c"># This should insert document as `{"_id": user.id, "name": "Joe"}`</span> <span class="pl-k">assert</span> <span class="pl-s1">inserted</span>.<span class="pl-s1">inserted_id</span> <span class="pl-c1">==</span> <span class="pl-s1">user</span>.<span class="pl-s1">id</span></pre></div> <p dir="auto"><g-emoji class="g-emoji" alias="six" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/0036-20e3.png">6️⃣</g-emoji> Should be able to fetch documents from Mongo with proper <code class="notranslate">id</code> matching:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="user_id = ObjectId() found = db.user.find({&quot;_id&quot;: user_id}) user = User(**found) assert user.id == user_id"><pre class="notranslate"><span class="pl-s1">user_id</span> <span class="pl-c1">=</span> <span class="pl-v">ObjectId</span>() <span class="pl-s1">found</span> <span class="pl-c1">=</span> <span class="pl-s1">db</span>.<span class="pl-s1">user</span>.<span class="pl-en">find</span>({<span class="pl-s">"_id"</span>: <span class="pl-s1">user_id</span>}) <span class="pl-s1">user</span> <span class="pl-c1">=</span> <span class="pl-v">User</span>(<span class="pl-c1">**</span><span class="pl-s1">found</span>) <span class="pl-k">assert</span> <span class="pl-s1">user</span>.<span class="pl-s1">id</span> <span class="pl-c1">==</span> <span class="pl-s1">user_id</span></pre></div> <h3 dir="auto">Known solutions</h3> <h4 dir="auto">Validating ObjectId</h4> <p dir="auto">As proposed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="483398775" data-permission-text="Title is private" data-url="https://github.com/tiangolo/fastapi/issues/452" data-hovercard-type="issue" data-hovercard-url="/tiangolo/fastapi/issues/452/hovercard" href="https://github.com/tiangolo/fastapi/issues/452">#452</a>, one can define custom field for <code class="notranslate">ObjectId</code> and apply validations to it. One can also create base model that would encode <code class="notranslate">ObjectId</code> into strings:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" class OID(str): @classmethod def __get_validators__(cls): yield cls.validate @classmethod def validate(cls, v): try: return ObjectId(str(v)) except InvalidId: raise ValueError(&quot;Not a valid ObjectId&quot;) class MongoModel(BaseModel): class Config(BaseConfig): json_encoders = { datetime: lambda dt: dt.isoformat(), ObjectId: lambda oid: str(oid), } class User(MongoModel): id: OID = Field() name: str = Field() @app.post('/me', response_model=User) def save_me(body: User): assert isinstance(body.id, ObjectId) return body"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">OID</span>(<span class="pl-s1">str</span>): <span class="pl-en">@<span class="pl-s1">classmethod</span></span> <span class="pl-k">def</span> <span class="pl-en">__get_validators__</span>(<span class="pl-s1">cls</span>): <span class="pl-k">yield</span> <span class="pl-s1">cls</span>.<span class="pl-s1">validate</span> <span class="pl-en">@<span class="pl-s1">classmethod</span></span> <span class="pl-k">def</span> <span class="pl-en">validate</span>(<span class="pl-s1">cls</span>, <span class="pl-s1">v</span>): <span class="pl-k">try</span>: <span class="pl-k">return</span> <span class="pl-v">ObjectId</span>(<span class="pl-en">str</span>(<span class="pl-s1">v</span>)) <span class="pl-k">except</span> <span class="pl-v">InvalidId</span>: <span class="pl-k">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">"Not a valid ObjectId"</span>) <span class="pl-k">class</span> <span class="pl-v">MongoModel</span>(<span class="pl-v">BaseModel</span>): <span class="pl-k">class</span> <span class="pl-v">Config</span>(<span class="pl-v">BaseConfig</span>): <span class="pl-s1">json_encoders</span> <span class="pl-c1">=</span> { <span class="pl-s1">datetime</span>: <span class="pl-k">lambda</span> <span class="pl-s1">dt</span>: <span class="pl-s1">dt</span>.<span class="pl-en">isoformat</span>(), <span class="pl-v">ObjectId</span>: <span class="pl-k">lambda</span> <span class="pl-s1">oid</span>: <span class="pl-en">str</span>(<span class="pl-s1">oid</span>), } <span class="pl-k">class</span> <span class="pl-v">User</span>(<span class="pl-v">MongoModel</span>): <span class="pl-s1">id</span>: <span class="pl-v">OID</span> <span class="pl-c1">=</span> <span class="pl-v">Field</span>() <span class="pl-s1">name</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-v">Field</span>() <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">post</span>(<span class="pl-s">'/me'</span>, <span class="pl-s1">response_model</span><span class="pl-c1">=</span><span class="pl-v">User</span>)</span> <span class="pl-k">def</span> <span class="pl-en">save_me</span>(<span class="pl-s1">body</span>: <span class="pl-v">User</span>): <span class="pl-k">assert</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">body</span>.<span class="pl-s1">id</span>, <span class="pl-v">ObjectId</span>) <span class="pl-k">return</span> <span class="pl-s1">body</span></pre></div> <p dir="auto">Now we have:</p> <table role="table"> <thead> <tr> <th>1️⃣</th> <th>2️⃣</th> <th><g-emoji class="g-emoji" alias="three" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/0033-20e3.png">3️⃣</g-emoji></th> <th><g-emoji class="g-emoji" alias="four" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/0034-20e3.png">4️⃣</g-emoji></th> <th><g-emoji class="g-emoji" alias="five" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/0035-20e3.png">5️⃣</g-emoji></th> <th><g-emoji class="g-emoji" alias="six" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/0036-20e3.png">6️⃣</g-emoji></th> </tr> </thead> <tbody> <tr> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji></td> <td>✅</td> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji></td> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji></td> <td><g-emoji class="g-emoji" alias="ballot_box_with_check" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2611.png">☑️</g-emoji></td> <td><g-emoji class="g-emoji" alias="ballot_box_with_check" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2611.png">☑️</g-emoji></td> </tr> </tbody> </table> <h4 dir="auto">Dealing with <code class="notranslate">_id</code></h4> <p dir="auto">Another suggested option would be to use <code class="notranslate">alias="_id"</code> on Pydantic model:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class MongoModel(BaseModel): class Config(BaseConfig): allow_population_by_field_name = True # &lt;&lt; Added json_encoders = { datetime: lambda dt: dt.isoformat(), ObjectId: lambda oid: str(oid), } class User(MongoModel): id: OID = Field(alias=&quot;_id&quot;) # &lt;&lt; Notice alias name: str = Field() @app.post('/me', response_model=User) def save_me(body: User): assert isinstance(body.id, ObjectId) res = db.insert_one(body.dict(by_alias=True)) # &lt;&lt; Inserting as dict with aliased fields assert res.inserted_id == body.id return body"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">MongoModel</span>(<span class="pl-v">BaseModel</span>): <span class="pl-k">class</span> <span class="pl-v">Config</span>(<span class="pl-v">BaseConfig</span>): <span class="pl-s1">allow_population_by_field_name</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span> <span class="pl-c"># &lt;&lt; Added</span> <span class="pl-s1">json_encoders</span> <span class="pl-c1">=</span> { <span class="pl-s1">datetime</span>: <span class="pl-k">lambda</span> <span class="pl-s1">dt</span>: <span class="pl-s1">dt</span>.<span class="pl-en">isoformat</span>(), <span class="pl-v">ObjectId</span>: <span class="pl-k">lambda</span> <span class="pl-s1">oid</span>: <span class="pl-en">str</span>(<span class="pl-s1">oid</span>), } <span class="pl-k">class</span> <span class="pl-v">User</span>(<span class="pl-v">MongoModel</span>): <span class="pl-s1">id</span>: <span class="pl-v">OID</span> <span class="pl-c1">=</span> <span class="pl-v">Field</span>(<span class="pl-s1">alias</span><span class="pl-c1">=</span><span class="pl-s">"_id"</span>) <span class="pl-c"># &lt;&lt; Notice alias</span> <span class="pl-s1">name</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-v">Field</span>() <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">post</span>(<span class="pl-s">'/me'</span>, <span class="pl-s1">response_model</span><span class="pl-c1">=</span><span class="pl-v">User</span>)</span> <span class="pl-k">def</span> <span class="pl-en">save_me</span>(<span class="pl-s1">body</span>: <span class="pl-v">User</span>): <span class="pl-k">assert</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">body</span>.<span class="pl-s1">id</span>, <span class="pl-v">ObjectId</span>) <span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-s1">db</span>.<span class="pl-en">insert_one</span>(<span class="pl-s1">body</span>.<span class="pl-en">dict</span>(<span class="pl-s1">by_alias</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)) <span class="pl-c"># &lt;&lt; Inserting as dict with aliased fields</span> <span class="pl-k">assert</span> <span class="pl-s1">res</span>.<span class="pl-s1">inserted_id</span> <span class="pl-c1">==</span> <span class="pl-s1">body</span>.<span class="pl-s1">id</span> <span class="pl-k">return</span> <span class="pl-s1">body</span></pre></div> <p dir="auto">Now are able to save to DB using <code class="notranslate">User.id</code> field as <code class="notranslate">_id</code> - that solves 5️⃣.</p> <p dir="auto">However, how Swagger and ReDoc show id field as <code class="notranslate">_id</code>, and json that is returned looks like this: <code class="notranslate">{"_id":"5ed803afba6455fd78659988","name":"Joe"}</code>. This is a regression for 3️⃣ and 4️⃣<br> Now we have:</p> <table role="table"> <thead> <tr> <th><g-emoji class="g-emoji" alias="one" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/0031-20e3.png">1️⃣</g-emoji></th> <th><g-emoji class="g-emoji" alias="two" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/0032-20e3.png">2️⃣</g-emoji></th> <th>3️⃣</th> <th><g-emoji class="g-emoji" alias="four" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/0034-20e3.png">4️⃣</g-emoji></th> <th><g-emoji class="g-emoji" alias="five" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/0035-20e3.png">5️⃣</g-emoji></th> <th><g-emoji class="g-emoji" alias="six" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/0036-20e3.png">6️⃣</g-emoji></th> </tr> </thead> <tbody> <tr> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji></td> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji></td> <td><g-emoji class="g-emoji" alias="ballot_box_with_check" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2611.png">☑️</g-emoji></td> <td><g-emoji class="g-emoji" alias="ballot_box_with_check" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2611.png">☑️</g-emoji></td> <td>✅️</td> <td>☑️</td> </tr> </tbody> </table> <h4 dir="auto">Hacking our way through</h4> <p dir="auto">We can do some extra coding to keep <code class="notranslate">id</code> field and make proper inserting into DB. Effectively, we're shuffling <code class="notranslate">id</code> and <code class="notranslate">_id</code> field in <code class="notranslate">MongoModel</code> upon dumping/loading.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class MongoModel(BaseModel): class Config(BaseConfig): allow_population_by_field_name = True json_encoders = { datetime: lambda dt: dt.isoformat(), ObjectId: lambda oid: str(oid), } @classmethod def from_mongo(cls, data: dict): &quot;&quot;&quot;We must convert _id into &quot;id&quot;. &quot;&quot;&quot; if not data: return data id = data.pop('_id', None) return cls(**dict(data, id=id)) def mongo(self, **kwargs): exclude_unset = kwargs.pop('exclude_unset', True) by_alias = kwargs.pop('by_alias', True) parsed = self.dict( exclude_unset=exclude_unset, by_alias=by_alias, **kwargs, ) # Mongo uses `_id` as default key. We should stick to that as well. if '_id' not in parsed and 'id' in parsed: parsed['_id'] = parsed.pop('id') return parsed @app.post('/me', response_model=User) def save_me(body: User): assert isinstance(body.id, ObjectId) res = db.insert_one(body.mongo()) # &lt;&lt; Notice that we should use `User.mongo()` now. assert res.inserted_id == body.id return body"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">MongoModel</span>(<span class="pl-v">BaseModel</span>): <span class="pl-k">class</span> <span class="pl-v">Config</span>(<span class="pl-v">BaseConfig</span>): <span class="pl-s1">allow_population_by_field_name</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span> <span class="pl-s1">json_encoders</span> <span class="pl-c1">=</span> { <span class="pl-s1">datetime</span>: <span class="pl-k">lambda</span> <span class="pl-s1">dt</span>: <span class="pl-s1">dt</span>.<span class="pl-en">isoformat</span>(), <span class="pl-v">ObjectId</span>: <span class="pl-k">lambda</span> <span class="pl-s1">oid</span>: <span class="pl-en">str</span>(<span class="pl-s1">oid</span>), } <span class="pl-en">@<span class="pl-s1">classmethod</span></span> <span class="pl-k">def</span> <span class="pl-en">from_mongo</span>(<span class="pl-s1">cls</span>, <span class="pl-s1">data</span>: <span class="pl-s1">dict</span>): <span class="pl-s">"""We must convert _id into "id". """</span> <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">data</span>: <span class="pl-k">return</span> <span class="pl-s1">data</span> <span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-s1">data</span>.<span class="pl-en">pop</span>(<span class="pl-s">'_id'</span>, <span class="pl-c1">None</span>) <span class="pl-k">return</span> <span class="pl-en">cls</span>(<span class="pl-c1">**</span><span class="pl-en">dict</span>(<span class="pl-s1">data</span>, <span class="pl-s1">id</span><span class="pl-c1">=</span><span class="pl-s1">id</span>)) <span class="pl-k">def</span> <span class="pl-en">mongo</span>(<span class="pl-s1">self</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>): <span class="pl-s1">exclude_unset</span> <span class="pl-c1">=</span> <span class="pl-s1">kwargs</span>.<span class="pl-en">pop</span>(<span class="pl-s">'exclude_unset'</span>, <span class="pl-c1">True</span>) <span class="pl-s1">by_alias</span> <span class="pl-c1">=</span> <span class="pl-s1">kwargs</span>.<span class="pl-en">pop</span>(<span class="pl-s">'by_alias'</span>, <span class="pl-c1">True</span>) <span class="pl-s1">parsed</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">dict</span>( <span class="pl-s1">exclude_unset</span><span class="pl-c1">=</span><span class="pl-s1">exclude_unset</span>, <span class="pl-s1">by_alias</span><span class="pl-c1">=</span><span class="pl-s1">by_alias</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>, ) <span class="pl-c"># Mongo uses `_id` as default key. We should stick to that as well.</span> <span class="pl-k">if</span> <span class="pl-s">'_id'</span> <span class="pl-c1">not</span> <span class="pl-c1">in</span> <span class="pl-s1">parsed</span> <span class="pl-c1">and</span> <span class="pl-s">'id'</span> <span class="pl-c1">in</span> <span class="pl-s1">parsed</span>: <span class="pl-s1">parsed</span>[<span class="pl-s">'_id'</span>] <span class="pl-c1">=</span> <span class="pl-s1">parsed</span>.<span class="pl-en">pop</span>(<span class="pl-s">'id'</span>) <span class="pl-k">return</span> <span class="pl-s1">parsed</span> <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">post</span>(<span class="pl-s">'/me'</span>, <span class="pl-s1">response_model</span><span class="pl-c1">=</span><span class="pl-v">User</span>)</span> <span class="pl-k">def</span> <span class="pl-en">save_me</span>(<span class="pl-s1">body</span>: <span class="pl-v">User</span>): <span class="pl-k">assert</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">body</span>.<span class="pl-s1">id</span>, <span class="pl-v">ObjectId</span>) <span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-s1">db</span>.<span class="pl-en">insert_one</span>(<span class="pl-s1">body</span>.<span class="pl-en">mongo</span>()) <span class="pl-c"># &lt;&lt; Notice that we should use `User.mongo()` now.</span> <span class="pl-k">assert</span> <span class="pl-s1">res</span>.<span class="pl-s1">inserted_id</span> <span class="pl-c1">==</span> <span class="pl-s1">body</span>.<span class="pl-s1">id</span> <span class="pl-k">return</span> <span class="pl-s1">body</span></pre></div> <p dir="auto">This brings back documentation and proper output and solves the insertion:</p> <table role="table"> <thead> <tr> <th>1️⃣</th> <th>2️⃣</th> <th><g-emoji class="g-emoji" alias="three" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/0033-20e3.png">3️⃣</g-emoji></th> <th><g-emoji class="g-emoji" alias="four" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/0034-20e3.png">4️⃣</g-emoji></th> <th><g-emoji class="g-emoji" alias="five" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/0035-20e3.png">5️⃣</g-emoji></th> <th><g-emoji class="g-emoji" alias="six" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/0036-20e3.png">6️⃣</g-emoji></th> </tr> </thead> <tbody> <tr> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji></td> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji></td> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅️</g-emoji></td> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅️</g-emoji></td> <td>✅️</td> <td><g-emoji class="g-emoji" alias="ballot_box_with_check" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2611.png">☑️</g-emoji></td> </tr> </tbody> </table> <p dir="auto">Looks like we're getting closer...</p> <h4 dir="auto">Fetching docs from DB</h4> <p dir="auto">Now, let's try to fetch doc from DB and return it:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@app.post('/me', response_model=User) def save_me(body: User): assert isinstance(body.id, ObjectId) res = db.insert_one(body.mongo()) # &lt;&lt; Notice that we should use `User.mongo()` now. assert res.inserted_id == body.id found = col.find_one({'_id': res.inserted_id}) return found &quot;&quot;&quot; pydantic.error_wrappers.ValidationError: 1 validation error for User response -&gt; id field required (type=value_error.missing) &quot;&quot;&quot;"><pre class="notranslate"><span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">post</span>(<span class="pl-s">'/me'</span>, <span class="pl-s1">response_model</span><span class="pl-c1">=</span><span class="pl-v">User</span>)</span> <span class="pl-k">def</span> <span class="pl-en">save_me</span>(<span class="pl-s1">body</span>: <span class="pl-v">User</span>): <span class="pl-k">assert</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">body</span>.<span class="pl-s1">id</span>, <span class="pl-v">ObjectId</span>) <span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-s1">db</span>.<span class="pl-en">insert_one</span>(<span class="pl-s1">body</span>.<span class="pl-en">mongo</span>()) <span class="pl-c"># &lt;&lt; Notice that we should use `User.mongo()` now.</span> <span class="pl-k">assert</span> <span class="pl-s1">res</span>.<span class="pl-s1">inserted_id</span> <span class="pl-c1">==</span> <span class="pl-s1">body</span>.<span class="pl-s1">id</span> <span class="pl-s1">found</span> <span class="pl-c1">=</span> <span class="pl-s1">col</span>.<span class="pl-en">find_one</span>({<span class="pl-s">'_id'</span>: <span class="pl-s1">res</span>.<span class="pl-s1">inserted_id</span>}) <span class="pl-k">return</span> <span class="pl-s1">found</span> <span class="pl-s">"""</span> <span class="pl-s"> pydantic.error_wrappers.ValidationError: 1 validation error for User</span> <span class="pl-s"> response -&gt; id</span> <span class="pl-s"> field required (type=value_error.missing)</span> <span class="pl-s"> """</span></pre></div> <p dir="auto">The workaround for this is to use <code class="notranslate">User.from_mongo</code>:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@app.post('/me', response_model=User) def save_me(body: User): assert isinstance(body.id, ObjectId) res = db.insert_one(body.mongo()) assert res.inserted_id == body.id found = col.find_one({'_id': res.inserted_id}) return User.from_mongo(found) # &lt;&lt; Notice that we should use `User.from_mongo()` now."><pre class="notranslate"><span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">post</span>(<span class="pl-s">'/me'</span>, <span class="pl-s1">response_model</span><span class="pl-c1">=</span><span class="pl-v">User</span>)</span> <span class="pl-k">def</span> <span class="pl-en">save_me</span>(<span class="pl-s1">body</span>: <span class="pl-v">User</span>): <span class="pl-k">assert</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">body</span>.<span class="pl-s1">id</span>, <span class="pl-v">ObjectId</span>) <span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-s1">db</span>.<span class="pl-en">insert_one</span>(<span class="pl-s1">body</span>.<span class="pl-en">mongo</span>()) <span class="pl-k">assert</span> <span class="pl-s1">res</span>.<span class="pl-s1">inserted_id</span> <span class="pl-c1">==</span> <span class="pl-s1">body</span>.<span class="pl-s1">id</span> <span class="pl-s1">found</span> <span class="pl-c1">=</span> <span class="pl-s1">col</span>.<span class="pl-en">find_one</span>({<span class="pl-s">'_id'</span>: <span class="pl-s1">res</span>.<span class="pl-s1">inserted_id</span>}) <span class="pl-k">return</span> <span class="pl-v">User</span>.<span class="pl-en">from_mongo</span>(<span class="pl-s1">found</span>) <span class="pl-c"># &lt;&lt; Notice that we should use `User.from_mongo()` now.</span></pre></div> <p dir="auto">This seem to cover fetching from DB. Now we have:</p> <table role="table"> <thead> <tr> <th>1️⃣</th> <th><g-emoji class="g-emoji" alias="two" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/0032-20e3.png">2️⃣</g-emoji></th> <th><g-emoji class="g-emoji" alias="three" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/0033-20e3.png">3️⃣</g-emoji></th> <th><g-emoji class="g-emoji" alias="four" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/0034-20e3.png">4️⃣</g-emoji></th> <th><g-emoji class="g-emoji" alias="five" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/0035-20e3.png">5️⃣</g-emoji></th> <th>6️⃣</th> </tr> </thead> <tbody> <tr> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji></td> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji></td> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅️</g-emoji></td> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅️</g-emoji></td> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅️</g-emoji></td> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅️</g-emoji></td> </tr> </tbody> </table> <h3 dir="auto">Conclusion and questions</h3> <p dir="auto">Under the spoiler one can find final code to make FastApi work with mongo in the most "native" way:</p> <details> <summary>Full code</summary> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class OID(str): @classmethod def __get_validators__(cls): yield cls.validate @classmethod def validate(cls, v): try: return ObjectId(str(v)) except InvalidId: raise ValueError(&quot;Not a valid ObjectId&quot;) class MongoModel(BaseModel): class Config(BaseConfig): allow_population_by_field_name = True json_encoders = { datetime: lambda dt: dt.isoformat(), ObjectId: lambda oid: str(oid), } @classmethod def from_mongo(cls, data: dict): &quot;&quot;&quot;We must convert _id into &quot;id&quot;. &quot;&quot;&quot; if not data: return data id = data.pop('_id', None) return cls(**dict(data, id=id)) def mongo(self, **kwargs): exclude_unset = kwargs.pop('exclude_unset', True) by_alias = kwargs.pop('by_alias', True) parsed = self.dict( exclude_unset=exclude_unset, by_alias=by_alias, **kwargs, ) # Mongo uses `_id` as default key. We should stick to that as well. if '_id' not in parsed and 'id' in parsed: parsed['_id'] = parsed.pop('id') return parsed class User(MongoModel): id: OID = Field() name: str = Field() @app.post('/me', response_model=User) def save_me(body: User): assert isinstance(body.id, ObjectId) res = db.insert_one(body.mongo()) assert res.inserted_id == body.id found = col.find_one({'_id': res.inserted_id}) return User.from_mongo(found)"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">OID</span>(<span class="pl-s1">str</span>): <span class="pl-en">@<span class="pl-s1">classmethod</span></span> <span class="pl-k">def</span> <span class="pl-en">__get_validators__</span>(<span class="pl-s1">cls</span>): <span class="pl-k">yield</span> <span class="pl-s1">cls</span>.<span class="pl-s1">validate</span> <span class="pl-en">@<span class="pl-s1">classmethod</span></span> <span class="pl-k">def</span> <span class="pl-en">validate</span>(<span class="pl-s1">cls</span>, <span class="pl-s1">v</span>): <span class="pl-k">try</span>: <span class="pl-k">return</span> <span class="pl-v">ObjectId</span>(<span class="pl-en">str</span>(<span class="pl-s1">v</span>)) <span class="pl-k">except</span> <span class="pl-v">InvalidId</span>: <span class="pl-k">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">"Not a valid ObjectId"</span>) <span class="pl-k">class</span> <span class="pl-v">MongoModel</span>(<span class="pl-v">BaseModel</span>): <span class="pl-k">class</span> <span class="pl-v">Config</span>(<span class="pl-v">BaseConfig</span>): <span class="pl-s1">allow_population_by_field_name</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span> <span class="pl-s1">json_encoders</span> <span class="pl-c1">=</span> { <span class="pl-s1">datetime</span>: <span class="pl-k">lambda</span> <span class="pl-s1">dt</span>: <span class="pl-s1">dt</span>.<span class="pl-en">isoformat</span>(), <span class="pl-v">ObjectId</span>: <span class="pl-k">lambda</span> <span class="pl-s1">oid</span>: <span class="pl-en">str</span>(<span class="pl-s1">oid</span>), } <span class="pl-en">@<span class="pl-s1">classmethod</span></span> <span class="pl-k">def</span> <span class="pl-en">from_mongo</span>(<span class="pl-s1">cls</span>, <span class="pl-s1">data</span>: <span class="pl-s1">dict</span>): <span class="pl-s">"""We must convert _id into "id". """</span> <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">data</span>: <span class="pl-k">return</span> <span class="pl-s1">data</span> <span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-s1">data</span>.<span class="pl-en">pop</span>(<span class="pl-s">'_id'</span>, <span class="pl-c1">None</span>) <span class="pl-k">return</span> <span class="pl-en">cls</span>(<span class="pl-c1">**</span><span class="pl-en">dict</span>(<span class="pl-s1">data</span>, <span class="pl-s1">id</span><span class="pl-c1">=</span><span class="pl-s1">id</span>)) <span class="pl-k">def</span> <span class="pl-en">mongo</span>(<span class="pl-s1">self</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>): <span class="pl-s1">exclude_unset</span> <span class="pl-c1">=</span> <span class="pl-s1">kwargs</span>.<span class="pl-en">pop</span>(<span class="pl-s">'exclude_unset'</span>, <span class="pl-c1">True</span>) <span class="pl-s1">by_alias</span> <span class="pl-c1">=</span> <span class="pl-s1">kwargs</span>.<span class="pl-en">pop</span>(<span class="pl-s">'by_alias'</span>, <span class="pl-c1">True</span>) <span class="pl-s1">parsed</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">dict</span>( <span class="pl-s1">exclude_unset</span><span class="pl-c1">=</span><span class="pl-s1">exclude_unset</span>, <span class="pl-s1">by_alias</span><span class="pl-c1">=</span><span class="pl-s1">by_alias</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>, ) <span class="pl-c"># Mongo uses `_id` as default key. We should stick to that as well.</span> <span class="pl-k">if</span> <span class="pl-s">'_id'</span> <span class="pl-c1">not</span> <span class="pl-c1">in</span> <span class="pl-s1">parsed</span> <span class="pl-c1">and</span> <span class="pl-s">'id'</span> <span class="pl-c1">in</span> <span class="pl-s1">parsed</span>: <span class="pl-s1">parsed</span>[<span class="pl-s">'_id'</span>] <span class="pl-c1">=</span> <span class="pl-s1">parsed</span>.<span class="pl-en">pop</span>(<span class="pl-s">'id'</span>) <span class="pl-k">return</span> <span class="pl-s1">parsed</span> <span class="pl-k">class</span> <span class="pl-v">User</span>(<span class="pl-v">MongoModel</span>): <span class="pl-s1">id</span>: <span class="pl-v">OID</span> <span class="pl-c1">=</span> <span class="pl-v">Field</span>() <span class="pl-s1">name</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-v">Field</span>() <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">post</span>(<span class="pl-s">'/me'</span>, <span class="pl-s1">response_model</span><span class="pl-c1">=</span><span class="pl-v">User</span>)</span> <span class="pl-k">def</span> <span class="pl-en">save_me</span>(<span class="pl-s1">body</span>: <span class="pl-v">User</span>): <span class="pl-k">assert</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">body</span>.<span class="pl-s1">id</span>, <span class="pl-v">ObjectId</span>) <span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-s1">db</span>.<span class="pl-en">insert_one</span>(<span class="pl-s1">body</span>.<span class="pl-en">mongo</span>()) <span class="pl-k">assert</span> <span class="pl-s1">res</span>.<span class="pl-s1">inserted_id</span> <span class="pl-c1">==</span> <span class="pl-s1">body</span>.<span class="pl-s1">id</span> <span class="pl-s1">found</span> <span class="pl-c1">=</span> <span class="pl-s1">col</span>.<span class="pl-en">find_one</span>({<span class="pl-s">'_id'</span>: <span class="pl-s1">res</span>.<span class="pl-s1">inserted_id</span>}) <span class="pl-k">return</span> <span class="pl-v">User</span>.<span class="pl-en">from_mongo</span>(<span class="pl-s1">found</span>)</pre></div> </details> <p dir="auto">And the list of things that are sub-optimal with given code:</p> <ol dir="auto"> <li>One can no longer return any data and expect FastApi to apply <code class="notranslate">response_model</code> validation. Have to use <code class="notranslate">User.from_mongo</code> with every return. This is somewhat a code duplication. Would be nice to get rid of this somehow</li> <li>The amount of "boilerplate" code needed to make FastAPI work "natively" with mongo is quite significant and it's not that straightforward. This can lead to potential errors and raises entry bar for someone who wants to start using FastAPI with mongo</li> <li>There is still this duality, where in models one uses <code class="notranslate">id</code> field, while all mongo queries are built using <code class="notranslate">_id</code>. Afraid there is no way to get rid of this though... (I'm aware that MongoEngine and other ODM engines cover this, but specifically decided to stay out of this subject and focus on "native" code)</li> </ol>
<p dir="auto">I want to access Api level dependency of cache in custom request class. Api is defined using router and custom request middleware class is defined APIRoute.</p> <p dir="auto">APIRoute class</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from typing import Callable from fastapi import Request, Response, Depends from fastapi.routing import APIRoute class RecordRequestResponseRoute(APIRoute): def get_route_handler(self) -&gt; Callable: original_route_handler = super().get_route_handler() async def custom_route_handler(request: Request)\ -&gt; Response: # need to access cache here response: Response = await original_route_handler(request) return response return custom_route_handler"><pre class="notranslate"><code class="notranslate">from typing import Callable from fastapi import Request, Response, Depends from fastapi.routing import APIRoute class RecordRequestResponseRoute(APIRoute): def get_route_handler(self) -&gt; Callable: original_route_handler = super().get_route_handler() async def custom_route_handler(request: Request)\ -&gt; Response: # need to access cache here response: Response = await original_route_handler(request) return response return custom_route_handler </code></pre></div> <p dir="auto">Router Api</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from fastapi import Response, Depends, APIRouter, BackgroundTasks import fastapi_plugins import aioredis router = APIRouter(route_class=RecordRequestResponseRoute) @router.get(&quot;/users&quot;, tags=[&quot;users&quot;]) async def match_frame(background_tasks: BackgroundTasks, cache: aioredis.Redis = Depends(fastapi_plugins.depends_redis)): return {&quot;success&quot;: True, &quot;data&quot;: []}"><pre class="notranslate"><code class="notranslate">from fastapi import Response, Depends, APIRouter, BackgroundTasks import fastapi_plugins import aioredis router = APIRouter(route_class=RecordRequestResponseRoute) @router.get("/users", tags=["users"]) async def match_frame(background_tasks: BackgroundTasks, cache: aioredis.Redis = Depends(fastapi_plugins.depends_redis)): return {"success": True, "data": []} </code></pre></div> <p dir="auto">I need to access cache in RecordRequestResponseRoute class. I tried using sub dependencies but that did not help. What will be the correct way to do it?</p>
0
<p dir="auto"><a href="http://www.freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life" rel="nofollow">Waypoint: Bring your JavaScript Slot Machine to Life</a></p> <p dir="auto">I added the following code to Basic Javascript Waypoint 39:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$( $ )"><pre class="notranslate"><span class="pl-en">$</span><span class="pl-kos">(</span> <span class="pl-s1">$</span> <span class="pl-kos">)</span></pre></div> <p dir="auto">The page froze and I could not interact with it. I tried refreshing and it would freeze once the page loaded because my code was still there. I don't know how to clear out the code so I can start the Waypoint over and complete it.</p>
<p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life" rel="nofollow">http://freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p> <p dir="auto">In typing this suggested code to solve the challenge, the automatic closing of parentheses leads the student to type</p> <p dir="auto"><math-renderer class="js-inline-math" style="display: inline" data-static-url="https://github.githubassets.com/static" data-run-id="f033b59ddba7a744f8bc10b50cd79ddb">$($</math-renderer>)</p> <p dir="auto">which immediately causes the script to become unresponsive. This is on Firefox for Mac v39.0.3</p>
1
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto">I am not sure if this is the requested behavior, but this behavior does not seem logical to me.</p> <p dir="auto"><strong>Current behavior</strong><br> When using Reactive Forms, a formGroup containing FormControls which are invalid is shown as invalid which is normal, but it does not contain any errors.</p> <p dir="auto"><strong>Expected behavior</strong><br> We should be able to get all the errors from FormControls | FormGroups | FormArrays inside their containing FormGroup.</p> <p dir="auto"><strong>Reproduction of the problem</strong><br> <a href="http://plnkr.co/edit/OMnHZkHRIc75RRQM9XRz?p=preview" rel="nofollow">http://plnkr.co/edit/OMnHZkHRIc75RRQM9XRz?p=preview</a></p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> I have a form with required inputs. I fill in some input but not all of them.<br> So some input are in the pristine and also invalid. (like in the example of the tutorial for template driven forms): <a href="http://plnkr.co/edit/rzQfRbufDDRmDtGFbPIy?p=preview" rel="nofollow">http://plnkr.co/edit/rzQfRbufDDRmDtGFbPIy?p=preview</a>).</p> <p dir="auto">I decide to click on the submit button, but I have errors, so I want to show all the inputs with errors that the user has missed.</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> OS X 10.11, Visual Studio Code</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 2.0.0-rc.6</p> </li> <li> <p dir="auto"><strong>Browser:</strong> [all ]</p> </li> <li> <p dir="auto"><strong>Language:</strong> [TypeScript 2.0.0]</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = v6.5.0</p> </li> </ul>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] bug report [x feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ ] bug report [x feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> When there are errors in a form group, the formGroup.status is 'INVALID' but the formGroup.errors property is null.</p> <p dir="auto">ex.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="formGroup.controls.username.errors: {invalidEmail: true} formGroup.errors: null"><pre class="notranslate"><code class="notranslate">formGroup.controls.username.errors: {invalidEmail: true} formGroup.errors: null </code></pre></div> <p dir="auto"><strong>Expected/desired behavior</strong><br> When the validity of a FormControl changes, have the parent FormGroup.errors merged with the errors from the controls. This is similar to how the angularjs formController.$error property works.<br> <a href="https://docs.angularjs.org/api/ng/type/form.FormController" rel="nofollow">https://docs.angularjs.org/api/ng/type/form.FormController</a></p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> This would be helpful because I prefer to only disable a submit button when specific errors are on a form, such as required. With this I could drive that attribute off the formControl.errors value instead of formControl.status.</p> <p dir="auto">ex.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="From: &lt;button [disabled]=&quot;myForm.status !== 'VALID'&quot;&gt;Submit&lt;/button&gt; To: &lt;button [disabled]=&quot;myForm.errors.required&quot;&gt;Submit&lt;/button&gt;"><pre class="notranslate"><code class="notranslate">From: &lt;button [disabled]="myForm.status !== 'VALID'"&gt;Submit&lt;/button&gt; To: &lt;button [disabled]="myForm.errors.required"&gt;Submit&lt;/button&gt; </code></pre></div>
1
<h4 dir="auto">How to reproduce the bug</h4> <ol dir="auto"> <li>Create dashboard with that structure:<br> Three charts in three tabs, with three dashboard filters, each filter for own tab.<br> Scope of filter 1 is for tab 1, scope of filter 2 is for tab 2 and scope of filter 3 is for tab 3.<br> Save this dashboard by name "bug_report_20221220"</li> </ol> <p dir="auto">or (bestway)</p> <p dir="auto">upload dashboard from file: <a href="https://drive.google.com/file/d/1lNKv9E-vifb-uwY438gcK-xHzPNF6Bs-/view?usp=sharing" rel="nofollow">dashboard_export_20221220T112259.zip</a><br> Attention! used dataset "birth_names" from Examples</p> <ol start="2" dir="auto"> <li>Go to "Dashboards" menu item of Superset.</li> <li>Click to dashboard by name "bug_report_20221220"</li> <li>You will see that charts in tabs don't display until you unfold out of scope filters.</li> </ol> <p dir="auto">Attention! You may need to open the dashboard "bug_report_20221220" twice to reproduce unexpected behavior.</p> <h3 dir="auto">Expected results</h3> <p dir="auto">Сharts in tabs will display without you unfold out of scope filters.</p> <h3 dir="auto">Actual results</h3> <p dir="auto">Сharts in tabs don't display until you unfold out of scope filters.</p> <h4 dir="auto">Video of unexpected behavior.</h4> <p dir="auto"><a href="https://drive.google.com/file/d/1xQRkUq1Nxe-Ra8lCTqg7cSBemgTBtCVi/view?usp=sharing" rel="nofollow">superset filters with charts in tabs bug.wmv</a></p> <h3 dir="auto">Environment</h3> <p dir="auto">Apache Superset in docker from <a href="https://hub.docker.com/r/apache/superset" rel="nofollow">https://hub.docker.com/r/apache/superset</a> latest version on 2022-12-20.</p>
<p dir="auto">Make sure these boxes are checked before submitting your issue - thank you!</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the superset logs for python stacktraces and included it here as text if any</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar</li> </ul> <h3 dir="auto">Superset version</h3> <p dir="auto">0.15.4 on python3.4.5</p> <h3 dir="auto">Expected results</h3> <p dir="auto">Async query succeeds; fetch results succeeds and shows result table.</p> <h3 dir="auto">Actual results</h3> <p dir="auto">Async queries result in an error in the superset worker:<br> <code class="notranslate">"TypeError: 'str' does not support the buffer interface"</code></p> <p dir="auto">This seems to be caused by python3 which requires the payload to be encoded.<br> For testing, I did the following adjustments which seem to do the job:</p> <p dir="auto">File sql_lab.py:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#results_backend.set(key, zlib.compress(payload)) results_backend.set(key, zlib.compress(payload.encode('utf-8'))) "><pre class="notranslate"><code class="notranslate">#results_backend.set(key, zlib.compress(payload)) results_backend.set(key, zlib.compress(payload.encode('utf-8'))) </code></pre></div> <p dir="auto">File views.py:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#json_payload = zlib.decompress(blob) json_payload = zlib.decompress(blob).decode('utf-8')"><pre class="notranslate"><code class="notranslate">#json_payload = zlib.decompress(blob) json_payload = zlib.decompress(blob).decode('utf-8') </code></pre></div> <h3 dir="auto">Steps to reproduce</h3> <ol start="0" dir="auto"> <li>Have a redis server running.</li> <li>Install superset on python3 with celery[redis] and redis,</li> <li>activate them in the config:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class CeleryConfig(object): BROKER_URL = 'redis://localhost:6379/0' CELERY_IMPORTS = ('superset.sql_lab', ) CELERY_RESULT_BACKEND = 'redis://localhost:6379/0' CELERY_ANNOTATIONS = {'tasks.add': {'rate_limit': '10/s'}} CELERY_CONFIG = CeleryConfig from werkzeug.contrib.cache import RedisCache RESULTS_BACKEND = RedisCache(host='localhost', port=6379, password=None, db=0, default_timeout=300, key_prefix='cel_result')"><pre class="notranslate"><code class="notranslate">class CeleryConfig(object): BROKER_URL = 'redis://localhost:6379/0' CELERY_IMPORTS = ('superset.sql_lab', ) CELERY_RESULT_BACKEND = 'redis://localhost:6379/0' CELERY_ANNOTATIONS = {'tasks.add': {'rate_limit': '10/s'}} CELERY_CONFIG = CeleryConfig from werkzeug.contrib.cache import RedisCache RESULTS_BACKEND = RedisCache(host='localhost', port=6379, password=None, db=0, default_timeout=300, key_prefix='cel_result') </code></pre></div> <ol start="3" dir="auto"> <li>Start superset server and worker</li> <li>Run async query in SQL-Lab and fetch results</li> </ol> <h3 dir="auto">Questions</h3> <p dir="auto">Supposing, my adjustments for python3 are the right means for fixing the issue, I got the following questions:<br> a. Are there more than these two locations where we need to encode a string? Can anyone point me there?<br> b. What is the right way to fix this python3-specific issue so that we do not compromise python2 installations? (I have absolutely no experience in this regard…)<br> c. I'm also not experienced with github and pull requests. Should I still try to fix it myself? I'm perfectly fine if someone else wants to deal with this issue. However, if needed, I can try to make a pull request.</p>
1
<p dir="auto">Description:<br> The signature of the following methods changed from (0.21.4)</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" post&lt;T = any, R = AxiosResponse&lt;T&gt;&gt;(url: string, data?: any, config?: AxiosRequestConfig): Promise&lt;R&gt;; put&lt;T = any, R = AxiosResponse&lt;T&gt;&gt;(url: string, data?: any, config?: AxiosRequestConfig): Promise&lt;R&gt;; patch&lt;T = any, R = AxiosResponse&lt;T&gt;&gt;(url: string, data?: any, config?: AxiosRequestConfig): Promise&lt;R&gt;;"><pre class="notranslate"> <span class="pl-s1">post</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span> <span class="pl-c1">=</span> <span class="pl-s1">any</span><span class="pl-kos">,</span> <span class="pl-smi">R</span> <span class="pl-c1">=</span> <span class="pl-smi">AxiosResponse</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-c1">&gt;&gt;</span><span class="pl-kos">(</span><span class="pl-s1">url</span>: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-s1">data</span>?: <span class="pl-smi">any</span><span class="pl-kos">,</span> <span class="pl-s1">config</span>?: <span class="pl-smi">AxiosRequestConfig</span><span class="pl-kos">)</span>: <span class="pl-smi">Promise</span><span class="pl-kos">&lt;</span><span class="pl-smi">R</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-s1">put</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span> <span class="pl-c1">=</span> <span class="pl-s1">any</span><span class="pl-kos">,</span> <span class="pl-smi">R</span> <span class="pl-c1">=</span> <span class="pl-smi">AxiosResponse</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-c1">&gt;&gt;</span><span class="pl-kos">(</span><span class="pl-s1">url</span>: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-s1">data</span>?: <span class="pl-smi">any</span><span class="pl-kos">,</span> <span class="pl-s1">config</span>?: <span class="pl-smi">AxiosRequestConfig</span><span class="pl-kos">)</span>: <span class="pl-smi">Promise</span><span class="pl-kos">&lt;</span><span class="pl-smi">R</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-s1">patch</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span> <span class="pl-c1">=</span> <span class="pl-s1">any</span><span class="pl-kos">,</span> <span class="pl-smi">R</span> <span class="pl-c1">=</span> <span class="pl-smi">AxiosResponse</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-c1">&gt;&gt;</span><span class="pl-kos">(</span><span class="pl-s1">url</span>: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-s1">data</span>?: <span class="pl-smi">any</span><span class="pl-kos">,</span> <span class="pl-s1">config</span>?: <span class="pl-smi">AxiosRequestConfig</span><span class="pl-kos">)</span>: <span class="pl-smi">Promise</span><span class="pl-kos">&lt;</span><span class="pl-smi">R</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span></pre></div> <p dir="auto">to (0.22.0)</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" post&lt;T = never, R = AxiosResponse&lt;T&gt;&gt;(url: string, data?: T, config?: AxiosRequestConfig&lt;T&gt;): Promise&lt;R&gt;; put&lt;T = never, R = AxiosResponse&lt;T&gt;&gt;(url: string, data?: T, config?: AxiosRequestConfig&lt;T&gt;): Promise&lt;R&gt;; patch&lt;T = never, R = AxiosResponse&lt;T&gt;&gt;(url: string, data?: T, config?: AxiosRequestConfig&lt;T&gt;): Promise&lt;R&gt;;"><pre class="notranslate"> <span class="pl-s1">post</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span> <span class="pl-c1">=</span> <span class="pl-s1">never</span><span class="pl-kos">,</span> <span class="pl-smi">R</span> <span class="pl-c1">=</span> <span class="pl-smi">AxiosResponse</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-c1">&gt;&gt;</span><span class="pl-kos">(</span><span class="pl-s1">url</span>: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-s1">data</span>?: <span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-s1">config</span>?: <span class="pl-smi">AxiosRequestConfig</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span><span class="pl-kos">)</span>: <span class="pl-smi">Promise</span><span class="pl-kos">&lt;</span><span class="pl-smi">R</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-s1">put</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span> <span class="pl-c1">=</span> <span class="pl-s1">never</span><span class="pl-kos">,</span> <span class="pl-smi">R</span> <span class="pl-c1">=</span> <span class="pl-smi">AxiosResponse</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-c1">&gt;&gt;</span><span class="pl-kos">(</span><span class="pl-s1">url</span>: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-s1">data</span>?: <span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-s1">config</span>?: <span class="pl-smi">AxiosRequestConfig</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span><span class="pl-kos">)</span>: <span class="pl-smi">Promise</span><span class="pl-kos">&lt;</span><span class="pl-smi">R</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-s1">patch</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span> <span class="pl-c1">=</span> <span class="pl-s1">never</span><span class="pl-kos">,</span> <span class="pl-smi">R</span> <span class="pl-c1">=</span> <span class="pl-smi">AxiosResponse</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-c1">&gt;&gt;</span><span class="pl-kos">(</span><span class="pl-s1">url</span>: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-s1">data</span>?: <span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-s1">config</span>?: <span class="pl-smi">AxiosRequestConfig</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span><span class="pl-kos">)</span>: <span class="pl-smi">Promise</span><span class="pl-kos">&lt;</span><span class="pl-smi">R</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span></pre></div> <p dir="auto">breaking every usage of the method, when using generics, e.g.:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="type RequestData = { input: string; }; type ResponseData = { value: string; }; async function test(): Promise&lt;void&gt; { const requestData: RequestData = { input: &quot;input&quot; } const {data} = await axios.post&lt;ResponseData&gt;(&quot;https://some-endpoint.com/v1/endpoint&quot;, requestData); console.log(data.value); }"><pre class="notranslate"><span class="pl-k">type</span> <span class="pl-smi">RequestData</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">input</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">type</span> <span class="pl-smi">ResponseData</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">value</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">async</span> <span class="pl-k">function</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">Promise</span><span class="pl-kos">&lt;</span><span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">requestData</span>: <span class="pl-smi">RequestData</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">input</span>: <span class="pl-s">"input"</span> <span class="pl-kos">}</span> <span class="pl-k">const</span> <span class="pl-kos">{</span>data<span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-c1">post</span><span class="pl-kos">&lt;</span><span class="pl-smi">ResponseData</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-s">"https://some-endpoint.com/v1/endpoint"</span><span class="pl-kos">,</span> <span class="pl-s1">requestData</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">data</span><span class="pl-kos">.</span><span class="pl-c1">value</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">The new generics will now cause compile errors, since <code class="notranslate">RequestData</code> and <code class="notranslate">ResponseData</code> are not the same type.</p> <p dir="auto">The following workaround helps:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="async function test(): Promise&lt;void&gt; { const requestData: RequestData = { input: &quot;input&quot; } const {data} = await axios.post&lt;RequestData, AxiosReponse&lt;ResponseData&gt;&gt;(&quot;https://some-endpoint.com/v1/endpoint&quot;, requestData); console.log(data.value); }"><pre class="notranslate"><span class="pl-k">async</span> <span class="pl-k">function</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">Promise</span><span class="pl-kos">&lt;</span><span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">requestData</span>: <span class="pl-smi">RequestData</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">input</span>: <span class="pl-s">"input"</span> <span class="pl-kos">}</span> <span class="pl-k">const</span> <span class="pl-kos">{</span>data<span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-c1">post</span><span class="pl-kos">&lt;</span><span class="pl-smi">RequestData</span><span class="pl-kos">,</span> <span class="pl-smi">AxiosReponse</span><span class="pl-kos">&lt;</span><span class="pl-smi">ResponseData</span><span class="pl-kos">&gt;</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-s">"https://some-endpoint.com/v1/endpoint"</span><span class="pl-kos">,</span> <span class="pl-s1">requestData</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">data</span><span class="pl-kos">.</span><span class="pl-c1">value</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">These changes seem arbitrary, and possibly done by mistake, as it is very unlikely, that a Post-Request has <strong>exactly</strong> the same type for its payload, as it has for its response.</p>
<p dir="auto">when doing react.js project with isomorphic this message will appear when using axios on the server side.</p>
0
<h1 dir="auto">Bug report</h1> <p dir="auto"><strong>What is the current behavior?</strong></p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;w&gt; [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Can't resolve 'url' in '/Users/keenwon/Test/webpack-test' &lt;w&gt; while resolving 'url' in /Users/keenwon/Test/webpack-test as file &lt;w&gt; at resolve esm file url &lt;w&gt; at file dependencies /Users/keenwon/Test/webpack-test/webpack.config.mjs &lt;w&gt; at file /Users/keenwon/Test/webpack-test/webpack.config.mjs &lt;w&gt; at resolve commonjs /Users/keenwon/Test/webpack-test/webpack.config.mjs"><pre class="notranslate"><span class="pl-k">&lt;</span>w<span class="pl-k">&gt;</span> [webpack.cache.PackFileCacheStrategy] Caching failed <span class="pl-k">for</span> <span class="pl-smi">pack: Error: Can<span class="pl-s"><span class="pl-pds">'</span>t resolve <span class="pl-pds">'</span></span>url<span class="pl-s"><span class="pl-pds">'</span></span></span> <span class="pl-k">in</span> <span class="pl-s"><span class="pl-pds">'</span>/Users/keenwon/Test/webpack-test<span class="pl-pds">'</span></span> <span class="pl-k">&lt;</span>w<span class="pl-k">&gt;</span> <span class="pl-k">while</span> resolving <span class="pl-s"><span class="pl-pds">'</span>url<span class="pl-pds">'</span></span> <span class="pl-k">in</span> /Users/keenwon/Test/webpack-test as file <span class="pl-k">&lt;</span>w<span class="pl-k">&gt;</span> at resolve esm file url <span class="pl-k">&lt;</span>w<span class="pl-k">&gt;</span> at file dependencies /Users/keenwon/Test/webpack-test/webpack.config.mjs <span class="pl-k">&lt;</span>w<span class="pl-k">&gt;</span> at file /Users/keenwon/Test/webpack-test/webpack.config.mjs <span class="pl-k">&lt;</span>w<span class="pl-k">&gt;</span> at resolve commonjs /Users/keenwon/Test/webpack-test/webpack.config.mjs</pre></div> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p> <p dir="auto">works fine, no warnings</p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto"><strong>Other relevant information:</strong><br> webpack version: 5.70.0<br> Node.js version: v14.19.0<br> Operating System: macOS 12.3<br> Additional tools:</p> <p dir="auto"><strong>demo</strong></p> <p dir="auto">repo <a href="https://github.com/keenwon/webpack-test">https://github.com/keenwon/webpack-test</a>, <strong>switch to node-prefix branch</strong></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5516478/159485407-88a3be9c-f9be-4589-8774-d8cdfdecdbc4.png"><img src="https://user-images.githubusercontent.com/5516478/159485407-88a3be9c-f9be-4589-8774-d8cdfdecdbc4.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><code class="notranslate">node:</code> doesn't work either</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5516478/159485500-a1be2179-4cff-427b-a2b7-2026d0b124f5.png"><img src="https://user-images.githubusercontent.com/5516478/159485500-a1be2179-4cff-427b-a2b7-2026d0b124f5.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Hey,</p> <p dir="auto">I'm trying to pack <a href="https://github.com/ded/klass">https://github.com/ded/klass</a> and webpack isn't impressed with it:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; webpack node_modules/klass/klass.js klass.packed.js Hash: 214a480310b53c1a2c79305e8fbc6cf7 Compile Time: 124ms Chunks: 1 Modules: 1 Modules including duplicates: 1 Modules first chunk: 1 main klass.packed.js: 893 chars/bytes &lt;id&gt; &lt;size&gt; &lt;filename&gt; klass.packed.js 0 ./~/klass/klass.js ERROR: Entry module failed! Error: File &quot;/Users/rainerdreyer/Workspace/PipeDream/node_modules/klass/klass.js&quot; parsing failed: TypeError: Cannot call method 'push' of undefined @ ./klass.js"><pre class="notranslate"><code class="notranslate">&gt; webpack node_modules/klass/klass.js klass.packed.js Hash: 214a480310b53c1a2c79305e8fbc6cf7 Compile Time: 124ms Chunks: 1 Modules: 1 Modules including duplicates: 1 Modules first chunk: 1 main klass.packed.js: 893 chars/bytes &lt;id&gt; &lt;size&gt; &lt;filename&gt; klass.packed.js 0 ./~/klass/klass.js ERROR: Entry module failed! Error: File "/Users/rainerdreyer/Workspace/PipeDream/node_modules/klass/klass.js" parsing failed: TypeError: Cannot call method 'push' of undefined @ ./klass.js </code></pre></div> <p dir="auto">But there is no call to <code class="notranslate">push</code> in the klass source code as far as I can see. Could you check why webpack can't handle this? Unfortunately most of my code uses inheritance with klass, so the packaging of everything fails.</p> <p dir="auto">Thanks!</p>
0
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Issue Details</h3> <ul dir="auto"> <li> <p dir="auto"><strong>Electron Version:</strong></p> <ul dir="auto"> <li>10.1.4</li> </ul> </li> <li> <p dir="auto"><strong>Operating System:</strong></p> <ul dir="auto"> <li>both, macOS 10.14.6 and ArchLinux kernel 5.8.5-arch1-1 (did not test on Windows)</li> </ul> </li> <li> <p dir="auto"><strong>Last Known Working Electron version:</strong></p> <ul dir="auto"> <li>9.3.2</li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Electron quits normally</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">Electron crashes with SIGSEGV</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto">Here's a minimal code example that crashes electron</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const {Worker} = require('worker_threads') const {app} = require('electron') const worker_code = ` process.exit(0) ` app.on('ready', ()=&gt;{ const worker = new Worker(worker_code, { eval: true }) worker.on('exit', code=&gt;{ console.log('exited with code', code) }) setTimeout( ()=&gt;{ app.quit() }, 1000) }) "><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span>Worker<span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'worker_threads'</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-kos">{</span>app<span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'electron'</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">worker_code</span> <span class="pl-c1">=</span> <span class="pl-s">`</span> <span class="pl-s"> process.exit(0)</span> <span class="pl-s">`</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'ready'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-c1">=&gt;</span><span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">worker</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Worker</span><span class="pl-kos">(</span><span class="pl-s1">worker_code</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">eval</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-s1">worker</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'exit'</span><span class="pl-kos">,</span> <span class="pl-s1">code</span><span class="pl-c1">=&gt;</span><span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'exited with code'</span><span class="pl-kos">,</span> <span class="pl-s1">code</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-en">setTimeout</span><span class="pl-kos">(</span> <span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-c1">=&gt;</span><span class="pl-kos">{</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">quit</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">1000</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">To reproduce: <a href="https://gist.github.com/d3b1724eadcc8a605dd5f7230158f05d">https://gist.github.com/d3b1724eadcc8a605dd5f7230158f05d</a></p> <p dir="auto">Repros for me on 10.1.3, but not current master.</p> <p dir="auto">Stack trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="* thread #1, name = 'CrBrowserMain', queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x18) * frame #0: 0x000000010656bb93 Electron Framework`node::NodePlatform::AddIsolateFinishedCallback(v8::Isolate*, void (*)(void*), void*) [inlined] std::__1::shared_ptr&lt;node::PerIsolatePlatformData&gt;::operator bool(this=&lt;unavailable&gt;) const at memory:3851:68 [opt] frame #1: 0x000000010656bb93 Electron Framework`node::NodePlatform::AddIsolateFinishedCallback(this=0x0000000109049c20, isolate=0x0000147000000000, cb=(Electron Framework`node::Environment::AddArrayBufferAllocatorToKeepAliveUntilIsolateDispose(std::__1::shared_ptr&lt;v8::ArrayBuffer::Allocator&gt;)::$_10::__invoke(void*) [inlined] node::Environment::AddArrayBufferAllocatorToKeepAliveUntilIsolateDispose(std::__1::shared_ptr&lt;v8::ArrayBuffer::Allocator&gt;)::$_10::operator()(void*) const at env.cc:1101 Electron Framework`node::Environment::AddArrayBufferAllocatorToKeepAliveUntilIsolateDispose(std::__1::shared_ptr&lt;v8::ArrayBuffer::Allocator&gt;)::$_10::__invoke(void*) at env.cc:1101), data=0x0000000112d3acf0)(void*), void*) at node_platform.cc:355 [opt] frame #2: 0x00000001064b99c6 Electron Framework`node::Environment::AddArrayBufferAllocatorToKeepAliveUntilIsolateDispose(this=0x0000000108880000, allocator=nullptr) at env.cc:1101:15 [opt] frame #3: 0x00000001065a209a Electron Framework`node::worker::(anonymous namespace)::SABLifetimePartner::CleanupHook(data=&lt;unavailable&gt;) at sharedarraybuffer_metadata.cc:75:18 [opt] frame #4: 0x00000001064b58e6 Electron Framework`node::Environment::RunCleanup(this=0x0000000108880000) at env.cc:628:7 [opt] frame #5: 0x00000001064810be Electron Framework`node::FreeEnvironment(env=0x0000000108880000) at environment.cc:307:8 [opt] frame #6: 0x0000000100208336 Electron Framework`electron::ElectronBrowserMainParts::PostMainMessageLoopRun() [inlined] std::__1::default_delete&lt;electron::NodeEnvironment&gt;::operator(this=&lt;unavailable&gt;, __ptr=0x00000001090571e0)(electron::NodeEnvironment*) const at memory:2378:5 [opt] frame #7: 0x000000010020832e Electron Framework`electron::ElectronBrowserMainParts::PostMainMessageLoopRun() [inlined] std::__1::unique_ptr&lt;electron::NodeEnvironment, std::__1::default_delete&lt;electron::NodeEnvironment&gt; &gt;::reset(this=0x0000000109049608, __p=0x0000000000000000) at memory:2633 [opt] frame #8: 0x000000010020831d Electron Framework`electron::ElectronBrowserMainParts::PostMainMessageLoopRun(this=0x00000001090495c0) at electron_browser_main_parts.cc:555 [opt] frame #9: 0x0000000101e5e6fe Electron Framework`content::BrowserMainLoop::ShutdownThreadsAndCleanUp(this=&lt;unavailable&gt;) at browser_main_loop.cc:1040:13 [opt] frame #10: 0x0000000101e60081 Electron Framework`content::BrowserMainRunnerImpl::Shutdown(this=0x0000000109046b00) at browser_main_runner_impl.cc:178:17 [opt] frame #11: 0x0000000101e5b8cd Electron Framework`content::BrowserMain(parameters=0x00007ffeefbfede8) at browser_main.cc:49:16 [opt]"><pre class="notranslate"><code class="notranslate">* thread #1, name = 'CrBrowserMain', queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x18) * frame #0: 0x000000010656bb93 Electron Framework`node::NodePlatform::AddIsolateFinishedCallback(v8::Isolate*, void (*)(void*), void*) [inlined] std::__1::shared_ptr&lt;node::PerIsolatePlatformData&gt;::operator bool(this=&lt;unavailable&gt;) const at memory:3851:68 [opt] frame #1: 0x000000010656bb93 Electron Framework`node::NodePlatform::AddIsolateFinishedCallback(this=0x0000000109049c20, isolate=0x0000147000000000, cb=(Electron Framework`node::Environment::AddArrayBufferAllocatorToKeepAliveUntilIsolateDispose(std::__1::shared_ptr&lt;v8::ArrayBuffer::Allocator&gt;)::$_10::__invoke(void*) [inlined] node::Environment::AddArrayBufferAllocatorToKeepAliveUntilIsolateDispose(std::__1::shared_ptr&lt;v8::ArrayBuffer::Allocator&gt;)::$_10::operator()(void*) const at env.cc:1101 Electron Framework`node::Environment::AddArrayBufferAllocatorToKeepAliveUntilIsolateDispose(std::__1::shared_ptr&lt;v8::ArrayBuffer::Allocator&gt;)::$_10::__invoke(void*) at env.cc:1101), data=0x0000000112d3acf0)(void*), void*) at node_platform.cc:355 [opt] frame #2: 0x00000001064b99c6 Electron Framework`node::Environment::AddArrayBufferAllocatorToKeepAliveUntilIsolateDispose(this=0x0000000108880000, allocator=nullptr) at env.cc:1101:15 [opt] frame #3: 0x00000001065a209a Electron Framework`node::worker::(anonymous namespace)::SABLifetimePartner::CleanupHook(data=&lt;unavailable&gt;) at sharedarraybuffer_metadata.cc:75:18 [opt] frame #4: 0x00000001064b58e6 Electron Framework`node::Environment::RunCleanup(this=0x0000000108880000) at env.cc:628:7 [opt] frame #5: 0x00000001064810be Electron Framework`node::FreeEnvironment(env=0x0000000108880000) at environment.cc:307:8 [opt] frame #6: 0x0000000100208336 Electron Framework`electron::ElectronBrowserMainParts::PostMainMessageLoopRun() [inlined] std::__1::default_delete&lt;electron::NodeEnvironment&gt;::operator(this=&lt;unavailable&gt;, __ptr=0x00000001090571e0)(electron::NodeEnvironment*) const at memory:2378:5 [opt] frame #7: 0x000000010020832e Electron Framework`electron::ElectronBrowserMainParts::PostMainMessageLoopRun() [inlined] std::__1::unique_ptr&lt;electron::NodeEnvironment, std::__1::default_delete&lt;electron::NodeEnvironment&gt; &gt;::reset(this=0x0000000109049608, __p=0x0000000000000000) at memory:2633 [opt] frame #8: 0x000000010020831d Electron Framework`electron::ElectronBrowserMainParts::PostMainMessageLoopRun(this=0x00000001090495c0) at electron_browser_main_parts.cc:555 [opt] frame #9: 0x0000000101e5e6fe Electron Framework`content::BrowserMainLoop::ShutdownThreadsAndCleanUp(this=&lt;unavailable&gt;) at browser_main_loop.cc:1040:13 [opt] frame #10: 0x0000000101e60081 Electron Framework`content::BrowserMainRunnerImpl::Shutdown(this=0x0000000109046b00) at browser_main_runner_impl.cc:178:17 [opt] frame #11: 0x0000000101e5b8cd Electron Framework`content::BrowserMain(parameters=0x00007ffeefbfede8) at browser_main.cc:49:16 [opt] </code></pre></div>
1
<h3 dir="auto">Problem description</h3> <p dir="auto">When using TypeScript and upgrading to <code class="notranslate">1.0.0-beta.7</code>, I get the following type error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Failed to compile. /Users/wcandillon/tmp/fitspace/node_modules/material-ui/styles/withTheme.d.ts (1,23): error TS2307: Cannot find module './theme'."><pre class="notranslate"><code class="notranslate">Failed to compile. /Users/wcandillon/tmp/fitspace/node_modules/material-ui/styles/withTheme.d.ts (1,23): error TS2307: Cannot find module './theme'. </code></pre></div> <p dir="auto">This error seems to make sense since <code class="notranslate">./theme</code> doesn't exists in <code class="notranslate">node_modules/material-ui/styles</code>.</p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">Here is a simple app example</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import * as React from &quot;react&quot;; import * as ReactDOM from &quot;react-dom&quot;; import { MuiThemeProvider, createMuiTheme, createTypography, createPalette } from &quot;material-ui/styles&quot;; import { FontStyle } from &quot;material-ui/styles/typography&quot;; import { Palette } from &quot;material-ui/styles/palette&quot;; const palette: Palette = createPalette({}); const fontStyle: FontStyle = { fontFamily: &quot;Lato, Roboto, Helvetica, Arial, sans-serif&quot;, fontSize: &quot;14px&quot;, fontWeightLight: 300, fontWeightRegular: &quot;normal&quot;, fontWeightMedium: &quot;bold&quot; }; const theme = createMuiTheme({ typography: createTypography(palette, fontStyle) }); ReactDOM.render( &lt;MuiThemeProvider {...{theme}}&gt; &lt;div&gt;Hello&lt;/div&gt; &lt;/MuiThemeProvider&gt;, document.getElementById(&quot;root&quot;) as HTMLElement );"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-smi">React</span> <span class="pl-k">from</span> <span class="pl-s">"react"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-smi">ReactDOM</span> <span class="pl-k">from</span> <span class="pl-s">"react-dom"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">MuiThemeProvider</span><span class="pl-kos">,</span> <span class="pl-s1">createMuiTheme</span><span class="pl-kos">,</span> <span class="pl-s1">createTypography</span><span class="pl-kos">,</span> <span class="pl-s1">createPalette</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"material-ui/styles"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">FontStyle</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"material-ui/styles/typography"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">Palette</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"material-ui/styles/palette"</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">palette</span>: <span class="pl-smi">Palette</span> <span class="pl-c1">=</span> <span class="pl-en">createPalette</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">fontStyle</span>: <span class="pl-smi">FontStyle</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">fontFamily</span>: <span class="pl-s">"Lato, Roboto, Helvetica, Arial, sans-serif"</span><span class="pl-kos">,</span> <span class="pl-c1">fontSize</span>: <span class="pl-s">"14px"</span><span class="pl-kos">,</span> <span class="pl-c1">fontWeightLight</span>: <span class="pl-c1">300</span><span class="pl-kos">,</span> <span class="pl-c1">fontWeightRegular</span>: <span class="pl-s">"normal"</span><span class="pl-kos">,</span> <span class="pl-c1">fontWeightMedium</span>: <span class="pl-s">"bold"</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">theme</span> <span class="pl-c1">=</span> <span class="pl-en">createMuiTheme</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">typography</span>: <span class="pl-en">createTypography</span><span class="pl-kos">(</span><span class="pl-s1">palette</span><span class="pl-kos">,</span> <span class="pl-s1">fontStyle</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">ReactDOM</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span> <span class="pl-kos">&lt;</span><span class="pl-smi">MuiThemeProvider</span><span class="pl-kos"></span> <span class="pl-kos">{</span>...<span class="pl-kos">{</span>theme<span class="pl-kos">}</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-smi">div</span><span class="pl-kos">&gt;</span><span class="pl-smi">Hello</span><span class="pl-c1">&lt;</span><span class="pl-pds"><span class="pl-c1">/</span>div&gt;</span><span class="pl-c1"></span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span>MuiThemeProvider&gt;, <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">getElementById</span><span class="pl-kos">(</span><span class="pl-s">"root"</span><span class="pl-kos">)</span> <span class="pl-k">as</span> <span class="pl-smi">HTMLElement</span> <span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: 1.0.0-beta.7</li> <li>React: 15.6.1</li> <li>Browser: Any</li> </ul>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">I expect the tests to run without a problem.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">I get an error:</p> <blockquote> <p dir="auto">TypeError: parentInstance.children.indexOf is not a function</p> </blockquote> <p dir="auto">I think this is due to portals not working properly in combination with jest snapshots.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import React from 'react'; import { storiesOf } from '@storybook/react'; import AlertDialog from './AlertDialog'; storiesOf('AlertDialog', module) .add('basic', () =&gt; &lt;AlertDialog bodyKey=&quot;test&quot; onClick={() =&gt; {}} titleKey=&quot;test&quot; open /&gt;);"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">React</span> <span class="pl-k">from</span> <span class="pl-s">'react'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">storiesOf</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@storybook/react'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-v">AlertDialog</span> <span class="pl-k">from</span> <span class="pl-s">'./AlertDialog'</span><span class="pl-kos">;</span> <span class="pl-en">storiesOf</span><span class="pl-kos">(</span><span class="pl-s">'AlertDialog'</span><span class="pl-kos">,</span> <span class="pl-smi">module</span><span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span><span class="pl-s">'basic'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">AlertDialog</span> <span class="pl-c1">bodyKey</span><span class="pl-c1">=</span><span class="pl-s">"test"</span> <span class="pl-c1">onClick</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">}</span> <span class="pl-c1">titleKey</span><span class="pl-c1">=</span><span class="pl-s">"test"</span> <span class="pl-c1">open</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Where <code class="notranslate">&lt;AlertDialog /&gt;</code> is a boring wrapper around <code class="notranslate">&lt;Dialog /&gt;</code>.</p> <p dir="auto">I'm sorry for not including a code snippet. I don't know how to set up the tests to illustrate the issue, but I tried my best to provide as much relevant information as possible.</p> <h2 dir="auto">Context</h2> <p dir="auto">I'm using storybooks with storysnaps (jest snapshots), and our tests are failing. I'm pretty sure it has something to do with <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="260735982" data-permission-text="Title is private" data-url="https://github.com/enzymejs/enzyme/issues/1150" data-hovercard-type="issue" data-hovercard-url="/enzymejs/enzyme/issues/1150/hovercard" href="https://github.com/enzymejs/enzyme/issues/1150">enzymejs/enzyme#1150</a> and potentially <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="271076754" data-permission-text="Title is private" data-url="https://github.com/reactjs/react-modal/issues/553" data-hovercard-type="issue" data-hovercard-url="/reactjs/react-modal/issues/553/hovercard" href="https://github.com/reactjs/react-modal/issues/553">reactjs/react-modal#553</a> could benefit from a solution as well.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.21</td> </tr> <tr> <td>React</td> <td>16.0.0</td> </tr> <tr> <td>browser</td> <td>N/A</td> </tr> </tbody> </table> <h2 dir="auto">Additional</h2> <p dir="auto">I have a feeling this is something that could be caught in storyshots but I'm not experienced enough with the material at hand. Any pointers, or better yet solutions would be greatly appreciated.</p> <p dir="auto">I'm not against fixing it and contributing either (if I get the right pointers to help me out).</p>
0
<p dir="auto"><strong>Note</strong>: This is a really strange bug, so I would like to ask you for patience while reading it.</p> <p dir="auto"><strong>[Details]</strong><br> First, I would like you to see this video because it will be hard to explain with only words:<br> <a href="https://drive.google.com/file/d/11Z7_4z1KMzwYc55qCp41zOev8zjx7Ko7/view?usp=sharing" rel="nofollow">Click here to see video</a><br> <strong>I have attached this video in .ZIP format at the end of the issue if you do not feel comfortable with google drive</strong></p> <p dir="auto">--<br> What you saw in this video is that a class with <strong>no imports whatsoever</strong> (I say this because <em>at first</em> I thought imports were making the HTTP dispatcher fail) is making the http dispatcher fail.<br> It's been happening to <strong>new classes</strong> on my code no matter whether it has imports or no as you saw in the video. I have spent more than a day to find the root of the problem in order to be able to record this video.<br> I can create any class in any folder, and it will make the http dispatcher fail, no matter what the content of the class is.<br> It is also happening to both static and non-static methods, it is also happening to classes without methods. so if I only import the class and as soon as I call it like this <code class="notranslate">MyClass;</code> (<strong>so no effect at all on the code</strong>), it will make the HTTP dispatcher fail.</p> <p dir="auto"><strong>Update</strong>: It is happening not only with JS classes, but also empty defaults (<code class="notranslate">export default {}</code>) &amp; functions (<code class="notranslate">export function MyFunction() {}</code>), with any class name, with any method name...</p> <p dir="auto"><strong>[Context]</strong><br> It is impossible for me to provide a small context or reproducible context because I do not even know what the context is. It happens randomly to new classes, one class may cause the HTTP dispatcher fail, but another class may work just fine. When finding the causes and playing around with the code, I moved the class you saw in the video to a folder inside a folder inside a folder, and it worked fine, then I got the class out of the folder, and it started failing again: I say this just to demonstrate how random it is.</p> <p dir="auto"><strong>[Additional]</strong><br> I have wiped out my DENO_DIR, but it didn't do anything, the error was still being thrown.</p> <p dir="auto">I didn't want to open this issue until being sure it was a real issue/bug. As per my conversation with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lucacasonato/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lucacasonato">@lucacasonato</a> where I share these same details, we agreed on the weirdness of this.</p> <p dir="auto"><strong>[Stacktrace]</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Error: Another accept task is ongoing at unwrapResponse ($deno$/ops/dispatch_json.ts:42:11) at Object.sendAsync ($deno$/ops/dispatch_json.ts:93:10) at async ListenerImpl.accept ($deno$/net.ts:63:17) at async Server.acceptConnAndIterateHttpRequests (server.ts:212:14) at async MuxAsyncIterator.callIteratorNext (mux_async_iterator.ts:30:31)"><pre class="notranslate"><code class="notranslate"> Error: Another accept task is ongoing at unwrapResponse ($deno$/ops/dispatch_json.ts:42:11) at Object.sendAsync ($deno$/ops/dispatch_json.ts:93:10) at async ListenerImpl.accept ($deno$/net.ts:63:17) at async Server.acceptConnAndIterateHttpRequests (server.ts:212:14) at async MuxAsyncIterator.callIteratorNext (mux_async_iterator.ts:30:31) </code></pre></div> <p dir="auto"><strong>[Code details]</strong><br> This is happening in <a href="https://github.com/mandarineorg/mandarinets">Mandarine Framework</a>. You can find the failing code in the branch <a href="https://github.com/mandarineorg/mandarinets/tree/feature/make-everything-a-proxy"><code class="notranslate">make-everything-a-proxy</code></a>.</p> <ol dir="auto"> <li>Download the mentioned branch (make-everything-a-proxy)</li> <li>Go to the root of it in your computer</li> <li>Run <code class="notranslate">deno run --config tsconfig.json --allow-net --allow-read examples/example-1.ts</code></li> </ol> <p dir="auto"><code class="notranslate">OrmCoreDecoratorsProxy</code> which is the class that is making the HTTP dispatcher fail <strong>at this time</strong>, is being called in <strong><code class="notranslate">/orm-core/core/decorators/entityDecorator.ts</code></strong> Line 16. (Inside <em>decorator method</em> "Table")</p> <p dir="auto"><code class="notranslate">OrmCoreDecoratorsProxy</code> is located in <strong><code class="notranslate">/orm-core/proxys/ormCoreDecorators.ts</code></strong></p> <p dir="auto"><strong>I would like to mention</strong> that the decorator <code class="notranslate">Table</code> where the problem is happening as described before is not even being called in the file that's being ran (<code class="notranslate">examples/example-1.ts</code>), so the code is never processing <code class="notranslate">OrmCoreDecoratorsProxy</code>, the very very simple fact of putting it in the code is making the HTTP dispatcher fail somehow.</p> <p dir="auto"><strong>[OS]</strong><br> MacOS Mojave 10.14.6</p> <p dir="auto"><strong>[Environment]</strong><br> deno 1.1.2<br> v8 8.5.216<br> typescript 3.9.2</p> <p dir="auto"><strong>Update</strong> After testing with many <em>versions of Deno</em>, this started happening in version <strong>1.0.3</strong> as it is not happening in <strong>1.0.2</strong></p> <hr> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lucacasonato/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lucacasonato">@lucacasonato</a></p> <p dir="auto"><a href="https://github.com/denoland/deno/files/4866989/screen-capture.3.webm.zip">screen-capture (3).webm.zip</a></p>
<p dir="auto">I've just started with <code class="notranslate">Deno v1.1</code>.<br> I've tried to create my first class and whenever I try to instance it I get:<br> <code class="notranslate">Uncaught Error: Another accept task is ongoing at unwrapResponse ($deno$/ops/dispatch_json.ts:43:11)</code><br> It happens only if I use MySQL client before but It works if I run any MySQL query before <code class="notranslate">new MyClass</code>.</p> <p dir="auto">MyClass.ts</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class MyClass { // empty } export default MyClass;"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">MyClass</span> <span class="pl-kos">{</span> <span class="pl-c">// empty</span> <span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-v">MyClass</span><span class="pl-kos">;</span></pre></div> <p dir="auto">server.ts</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { Application } from &quot;https://deno.land/x/[email protected]/mod.ts&quot; import { Client } from &quot;https://deno.land/x/mysql/mod.ts&quot;; import { APP_HOST, APP_PORT } from &quot;./config.ts&quot;; import router from './routes.ts' import MyClass from &quot;./controllers/myclass.ts&quot;; const app = new Application() app.use(router.routes()) app.use(router.allowedMethods()) const db = await new Client().connect({ //... }); const myClass = new MyClass(); await app.listen(`${APP_HOST}:${APP_PORT}`);"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">Application</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://deno.land/x/[email protected]/mod.ts"</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">Client</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://deno.land/x/mysql/mod.ts"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-c1">APP_HOST</span><span class="pl-kos">,</span> <span class="pl-c1">APP_PORT</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./config.ts"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-s1">router</span> <span class="pl-k">from</span> <span class="pl-s">'./routes.ts'</span> <span class="pl-k">import</span> <span class="pl-v">MyClass</span> <span class="pl-k">from</span> <span class="pl-s">"./controllers/myclass.ts"</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Application</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">use</span><span class="pl-kos">(</span><span class="pl-s1">router</span><span class="pl-kos">.</span><span class="pl-en">routes</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">use</span><span class="pl-kos">(</span><span class="pl-s1">router</span><span class="pl-kos">.</span><span class="pl-en">allowedMethods</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">db</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-k">new</span> <span class="pl-v">Client</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">connect</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c">//...</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">myClass</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">MyClass</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">listen</span><span class="pl-kos">(</span><span class="pl-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-c1">APP_HOST</span><span class="pl-kos">}</span></span>:<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-c1">APP_PORT</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">I use theese flags:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno run --allow-env --allow-net server.ts"><pre class="notranslate"><code class="notranslate">deno run --allow-env --allow-net server.ts </code></pre></div> <hr> <h3 dir="auto">Env</h3> <p dir="auto">Linux Mint 19,<br> Deno 1.1</p>
1
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p> <p dir="auto">Although the select, when evaluated directly, is correct, when nested in a query via the in_ function, with very circularly interconnected tables with joined table inheritance, it repeats a from clause element, which is sufficient to cause most databases not to execute the command.</p> <p dir="auto">See the attached code for an example...</p> <hr> <p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/2321/bug_test.py">bug_test.py</a></p>
<p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="diff --git a/lib/sqlalchemy/engine/default.py b/lib/sqlalchemy/engine/default.py index 3e5f339..9f845e7 100644 --- a/lib/sqlalchemy/engine/default.py +++ b/lib/sqlalchemy/engine/default.py @@ -474,6 +474,23 @@ class DefaultDialect(interfaces.Dialect): self.set_isolation_level(dbapi_conn, self.default_isolation_level) +class StrCompileDialect(DefaultDialect): + + statement_compiler = compiler.StrSQLCompiler + ddl_compiler = compiler.DDLCompiler + type_compiler = compiler.StrSQLTypeCompiler + preparer = compiler.IdentifierPreparer + + supports_sequences = True + sequences_optional = True + preexecute_autoincrement_sequences = False + implicit_returning = False + + supports_native_boolean = True + + supports_simple_order_by_label = True + + class DefaultExecutionContext(interfaces.ExecutionContext): isinsert = False isupdate = False diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index c5f87cc..076ae53 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -2118,6 +2118,30 @@ class SQLCompiler(Compiled): self.preparer.format_savepoint(savepoint_stmt) +class StrSQLCompiler(SQLCompiler): + &quot;&quot;&quot;&quot;a compiler subclass with a few non-standard SQL features allowed. + + Used for stringification of SQL statements when a real dialect is not + available. + + &quot;&quot;&quot; + + def visit_getitem_binary(self, binary, operator, **kw): + return &quot;%s[%s]&quot; % ( + self.process(binary.left, **kw), + self.process(binary.right, **kw) + ) + + def returning_clause(self, stmt, returning_cols): + + columns = [ + self._label_select_column(None, c, True, False, {}) + for c in elements._select_iterables(returning_cols) + ] + + return 'RETURNING ' + ', '.join(columns) + + class DDLCompiler(Compiled): @util.memoized_property @@ -2640,6 +2664,17 @@ class GenericTypeCompiler(TypeCompiler): return type_.get_col_spec(**kw) +class StrSQLTypeCompiler(GenericTypeCompiler): + def __getattr__(self, key): + if key.startswith(&quot;visit_&quot;): + return self._visit_unknown + else: + raise AttributeError(key) + + def _visit_unknown(self, type_, **kw): + return &quot;%s&quot; % type_.__class__.__name__ + + class IdentifierPreparer(object): &quot;&quot;&quot;Handle quoting and case-folding of identifiers based on options.&quot;&quot;&quot; diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py index de17aab..fe2fecc 100644 --- a/lib/sqlalchemy/sql/elements.py +++ b/lib/sqlalchemy/sql/elements.py @@ -429,7 +429,7 @@ class ClauseElement(Visitable): dialect = self.bind.dialect bind = self.bind else: - dialect = default.DefaultDialect() + dialect = default.StrCompileDialect() return self._compiler(dialect, bind=bind, **kw) def _compiler(self, dialect, **kw): "><pre class="notranslate"><code class="notranslate">diff --git a/lib/sqlalchemy/engine/default.py b/lib/sqlalchemy/engine/default.py index 3e5f339..9f845e7 100644 --- a/lib/sqlalchemy/engine/default.py +++ b/lib/sqlalchemy/engine/default.py @@ -474,6 +474,23 @@ class DefaultDialect(interfaces.Dialect): self.set_isolation_level(dbapi_conn, self.default_isolation_level) +class StrCompileDialect(DefaultDialect): + + statement_compiler = compiler.StrSQLCompiler + ddl_compiler = compiler.DDLCompiler + type_compiler = compiler.StrSQLTypeCompiler + preparer = compiler.IdentifierPreparer + + supports_sequences = True + sequences_optional = True + preexecute_autoincrement_sequences = False + implicit_returning = False + + supports_native_boolean = True + + supports_simple_order_by_label = True + + class DefaultExecutionContext(interfaces.ExecutionContext): isinsert = False isupdate = False diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index c5f87cc..076ae53 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -2118,6 +2118,30 @@ class SQLCompiler(Compiled): self.preparer.format_savepoint(savepoint_stmt) +class StrSQLCompiler(SQLCompiler): + """"a compiler subclass with a few non-standard SQL features allowed. + + Used for stringification of SQL statements when a real dialect is not + available. + + """ + + def visit_getitem_binary(self, binary, operator, **kw): + return "%s[%s]" % ( + self.process(binary.left, **kw), + self.process(binary.right, **kw) + ) + + def returning_clause(self, stmt, returning_cols): + + columns = [ + self._label_select_column(None, c, True, False, {}) + for c in elements._select_iterables(returning_cols) + ] + + return 'RETURNING ' + ', '.join(columns) + + class DDLCompiler(Compiled): @util.memoized_property @@ -2640,6 +2664,17 @@ class GenericTypeCompiler(TypeCompiler): return type_.get_col_spec(**kw) +class StrSQLTypeCompiler(GenericTypeCompiler): + def __getattr__(self, key): + if key.startswith("visit_"): + return self._visit_unknown + else: + raise AttributeError(key) + + def _visit_unknown(self, type_, **kw): + return "%s" % type_.__class__.__name__ + + class IdentifierPreparer(object): """Handle quoting and case-folding of identifiers based on options.""" diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py index de17aab..fe2fecc 100644 --- a/lib/sqlalchemy/sql/elements.py +++ b/lib/sqlalchemy/sql/elements.py @@ -429,7 +429,7 @@ class ClauseElement(Visitable): dialect = self.bind.dialect bind = self.bind else: - dialect = default.DefaultDialect() + dialect = default.StrCompileDialect() return self._compiler(dialect, bind=bind, **kw) def _compiler(self, dialect, **kw): </code></pre></div>
0
<p dir="auto">Please go to Stack Overflow for help and support:</p> <p dir="auto"><a href="https://stackoverflow.com/questions/tagged/tensorflow" rel="nofollow">https://stackoverflow.com/questions/tagged/tensorflow</a></p> <p dir="auto">If you open a GitHub issue, here is our policy:</p> <ol dir="auto"> <li>It must be a bug or a feature request.</li> <li>The form below must be filled out.</li> <li>It shouldn't be a TensorBoard issue. Those go <a href="https://github.com/tensorflow/tensorboard/issues">here</a>.</li> </ol> <p dir="auto"><strong>Here's why we have that policy</strong>: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.</p> <hr> <h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>:</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:<br> macOS High Sierra 10.13.1</li> <li><strong>TensorFlow installed from (source or binary)</strong>:<br> pip3 install tensor flow</li> <li><strong>TensorFlow version (use command below)</strong>:<br> 1.4.0</li> <li><strong>Python version</strong>:<br> 3.6.3</li> <li><strong>Bazel version (if compiling from source)</strong>:</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>:<br> GCC: stable 7.2.0</li> <li><strong>CUDA/cuDNN version</strong>:</li> <li><strong>GPU model and memory</strong>:</li> <li><strong>Exact command to reproduce</strong>:<br> python3 -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</li> </ul> <p dir="auto">You can collect some of this information using our environment capture script:</p> <p dir="auto"><a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh</a></p> <p dir="auto">You can obtain the TensorFlow version with</p> <p dir="auto">python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</p> <h3 dir="auto">Describe the problem</h3> <p dir="auto">Error after install Tensorflow:</p> <p dir="auto">python3 -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</p> <p dir="auto">/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6<br> return f(*args, **kwds)<br> v1.4.0-rc1-11-g130a514 1.4.0</p> <p dir="auto">getting this and ONE MORE error when running:<br> python3 -c "import keras; print (keras.<strong>version</strong>)"<br> Using TensorFlow backend.<br> /usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6<br> return f(*args, **kwds)<br> 2017-11-06 15:12:09.361728: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA<br> 2.0.9</p> <h3 dir="auto">Source code / logs</h3> <p dir="auto">Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.</p>
<h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: No</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Linux Ubuntu 14.04</li> <li><strong>TensorFlow installed from (source or binary)</strong>: Source</li> <li><strong>TensorFlow version (use command below)</strong>:</li> <li><strong>Python version</strong>: Python3.6</li> <li><strong>Bazel version (if compiling from source)</strong>:</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>: -NA-</li> <li><strong>CUDA/cuDNN version</strong>: -NA-</li> <li><strong>GPU model and memory</strong>: -NA-</li> <li><strong>Exact command to reproduce</strong>: import tensorflow as tf</li> </ul> <p dir="auto"><strong>Environment capture text:</strong></p> <p dir="auto"><a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh</a><br> <a href="https://github.com/tensorflow/tensorflow/files/1437609/tf_env.txt">tf_env.txt</a></p> <p dir="auto">You can obtain the TensorFlow version with<br> python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"<br> This command also results in the same error.<br> /home/raju/anaconda3/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6<br> return f(*args, **kwds)</p> <h3 dir="auto">Describe the problem</h3> <p dir="auto">When importing tensorflow , I get this error. I found some information on "Feature request: nightly build for python 3.6 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="256444980" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/12935" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/12935/hovercard" href="https://github.com/tensorflow/tensorflow/issues/12935">#12935</a>" --"Yes, we unfortunately copy the 3.5 binary for 3.6 I'll look into creating a specific 3.6 binary for Linux."</p> <h3 dir="auto">Source code / logs</h3> <p dir="auto">$import tensorflow as tf<br> <strong>result is</strong><br> /home/raju/anaconda3/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6<br> return f(*args, **kwds)</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=nealeu" rel="nofollow">Neale Upstone</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7982?redirect=false" rel="nofollow">SPR-7982</a></strong> and commented</p> <p dir="auto">There's a real opportunity to nail some corner cases with profiles, and conversely the risk of propagating some open-doors to bad practice.</p> <p dir="auto">Reading the example given at <a href="http://blog.springsource.com/2011/02/11/spring-framework-3-1-m1-released/" rel="nofollow">http://blog.springsource.com/2011/02/11/spring-framework-3-1-m1-released/</a>, I can see a few areas I'd like to be explicit for fast failure:</p> <ol dir="auto"> <li>To be able to define valid (/invalid) profile combinations. In your example, you can specify "production,dev", which is clearly not what is intended, and all too easy to do when profiles are less obviously exclusive. This could be achieved by allowing profiles combinations to be specified in the application context.</li> <li>To be able to configure specific bean definition override behaviour, by 'final' bean defs and/or by an override flag. This could be done at the level of a bean or on the now nestable &lt;beans&gt; element. ** This would have saved a LOT of time on the project I've recently been working on, mainly due to the number of components developed by different teams with varying levels of Spring experience **</li> </ol> <p dir="auto">I quite like the idea of allowing some combination of final and override as it would give expressiveness to developers intent. <code class="notranslate">&lt;bean id='blah' override='true' ../&gt;</code> would not only clearly denote that override was intended, but also allow validation that there was already a bean to override.</p> <p dir="auto">Either of these suggestions would prevent the 'prod,dev' profile from being bootstrapped.</p> <p dir="auto">Examples would be:</p> <ol dir="auto"> <li></li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;config&gt; &lt;profileOptions exclusive=&quot;production,dev,uat&quot;/&gt; &lt;profileOptions exclusive=&quot;perf,trace&quot;/&gt; &lt;/config&gt;"><pre class="notranslate"><code class="notranslate">&lt;config&gt; &lt;profileOptions exclusive="production,dev,uat"/&gt; &lt;profileOptions exclusive="perf,trace"/&gt; &lt;/config&gt; </code></pre></div> <ol start="2" dir="auto"> <li></li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;beans profile=&quot;production&quot; final=&quot;true&quot;&gt; ... jndi datasource bean defs &lt;/beans&gt; &lt;beans profile=&quot;dev&quot; final=&quot;true&quot;&gt; ... dev datasources &lt;/beans&gt;"><pre class="notranslate"><code class="notranslate">&lt;beans profile="production" final="true"&gt; ... jndi datasource bean defs &lt;/beans&gt; &lt;beans profile="dev" final="true"&gt; ... dev datasources &lt;/beans&gt; </code></pre></div> <hr> <p dir="auto"><strong>Affects:</strong> 3.1 M1</p> <p dir="auto"><strong>Reference URL:</strong> <a href="http://blog.springsource.com/2011/02/11/spring-framework-3-1-m1-released/#comment-185086" rel="nofollow">http://blog.springsource.com/2011/02/11/spring-framework-3-1-m1-released/#comment-185086</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="398111454" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12839" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12839/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12839">#12839</a> Revised support for bean definition visibility and overriding (<em><strong>"is depended on by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398113504" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13172" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13172/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13172">#13172</a> <code class="notranslate">@Bean</code>(override=true) (<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="398104074" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11690" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11690/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11690">#11690</a> Allow <code class="notranslate">@Bean</code> methods to override definitions in XML</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398117665" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13818" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13818/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13818">#13818</a> Provide boolean logic on bean profiles, i.e. NOT profile.</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398114754" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13370" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13370/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13370">#13370</a> Support not (!) operator for profile selection</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398093398" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10181" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10181/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10181">#10181</a> Bean Configuration Overriding</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398104986" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11829" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11829/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11829">#11829</a> Support <code class="notranslate">@Bean</code> method visibility</li> </ul> <p dir="auto">6 votes, 12 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=guznik" rel="nofollow">Gabriel Axel</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5991?redirect=false" rel="nofollow">SPR-5991</a></strong> and commented</p> <p dir="auto">iBatis 3 beta 1 introduced API changes which break the existing Spring support.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0 M3</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/15973/genius-spring.tar.gz" rel="nofollow">genius-spring.tar.gz</a> (<em>18.40 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/15984/ibatis3_20091206.zip" rel="nofollow">ibatis3_20091206.zip</a> (<em>20.88 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/16051/ibatis3_20091229.zip" rel="nofollow">ibatis3_20091229.zip</a> (<em>14.01 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/15653/ibatis3-test.zip" rel="nofollow">ibatis3-test.zip</a> (<em>11.40 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/16046/IBatisSpring.tar.gz" rel="nofollow">IBatisSpring.tar.gz</a> (<em>30.55 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/16044/IBatisSpring.tar.gz" rel="nofollow">IBatisSpring.tar.gz</a> (<em>20.55 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/16043/IBatisSpring.tar.gz" rel="nofollow">IBatisSpring.tar.gz</a> (<em>20.46 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/16052/MapperFactoryBean_20091229.tar.gz" rel="nofollow">MapperFactoryBean_20091229.tar.gz</a> (<em>12.38 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/16053/MapperFactoryBean_20091229-2.tar.gz" rel="nofollow">MapperFactoryBean_20091229-2.tar.gz</a> (<em>12.19 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/16059/MapperFactoryBean_20100101.tar.gz" rel="nofollow">MapperFactoryBean_20100101.tar.gz</a> (<em>12.11 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/16047/MapperFactoryBean.tar.gz" rel="nofollow">MapperFactoryBean.tar.gz</a> (<em>14.76 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/16631/MybatisSpring_20100605.zip" rel="nofollow">MybatisSpring_20100605.zip</a> (<em>21.20 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/16679/org.springframework.orm.ibatis3-201006100101.tar.gz" rel="nofollow">org.springframework.orm.ibatis3-201006100101.tar.gz</a> (<em>15.40 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/16680/org.springframework.orm.ibatis3-201006100756.tar.gz" rel="nofollow">org.springframework.orm.ibatis3-201006100756.tar.gz</a> (<em>15.58 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/16929/orm-ibatis3-2010-07-24.zip" rel="nofollow">orm-ibatis3-2010-07-24.zip</a> (<em>112.64 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/16930/orm-ibatis3-2010-07-24-2nd.zip" rel="nofollow">orm-ibatis3-2010-07-24-2nd.zip</a> (<em>113.34 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/15613/SqlSessionFactoryBean.java" rel="nofollow">SqlSessionFactoryBean.java</a> (<em>1.57 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/16008/SqlSessionUtils.java" rel="nofollow">SqlSessionUtils.java</a> (<em>12.82 kB</em>)</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398097625" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10803" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10803/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10803">#10803</a> Add support for iBatis 3 (<em><strong>"is duplicated by"</strong></em>)</li> <li><a href="https://jira.spring.io/browse/DATAJDBC-2" rel="nofollow">DATAJDBC-2</a> Add support for MyBatis 3</li> </ul> <p dir="auto">50 votes, 55 watchers</p>
0
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Issue Details</h3> <ul dir="auto"> <li><strong>Electron Version:</strong> <ul dir="auto"> <li>7.1.11</li> </ul> </li> <li><strong>Operating System:</strong> MacOS 10.15.4 <ul dir="auto"> <li>MacOS 10.15.4</li> </ul> </li> <li><strong>Last Known Working Electron version:</strong> <ul dir="auto"> <li>unknown</li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">When opening a dialog, such as About, VoiceOver should be able to read and interact with it and its controls.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">VoiceOver does not see dialog contents in many cases.</p> <h3 dir="auto">To Reproduce</h3> <ol dir="auto"> <li>Download and install Visual Studio code.</li> <li>Start VoiceOver, then Code.</li> <li>Go to Visual Studio Code/About, and press Enter.</li> <li>Try interacting with the dialog and read the contents, or navigate to the OK and Copy buttons using VoiceOver commands.</li> </ol> <h3 dir="auto">Screenshots</h3> <h3 dir="auto">Additional Information</h3> <p dir="auto">VoiceOver will track the focus somewhat, but not reliably, when using the Tab key to navigate. But VoiceOver commands such as CTRL+Option+Arrow keys don't work, VoiceOver only sees the Close, Minimize, and Zoom buttons.</p> <p dir="auto">This looks similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="416535304" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/17207" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/17207/hovercard" href="https://github.com/electron/electron/issues/17207">#17207</a>, only that this pertains to dialogs, not web content.</p>
<h3 dir="auto">Issue Details</h3> <ul dir="auto"> <li> <p dir="auto"><strong>Electron Version:</strong><br> greater equal 6.0.0<br> greater equal 7.0.0-beta.1</p> </li> <li> <p dir="auto"><strong>Operating System:</strong><br> Windows 10 17763 x64</p> </li> <li> <p dir="auto"><strong>Last Known Working Electron version:</strong><br> lesser equal 5.0.11<br> lesser equal 6.0.0-beta.12</p> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Closing the created window should not let the creator window freeze.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">The creator window freezes.</p> <h3 dir="auto">To Reproduce</h3> <ol dir="auto"> <li>Create a window (this is the creator window) with following webPreferences set:</li> </ol> <blockquote> <p dir="auto">preload: some preload file which at least requires the electron remote module<br> nativeWindowOpen: true<br> sandbox: true (can be false when nodeIntegrationInSubFrames is true)<br> nodeIntegrationInSubFrames: true (can be false when sandbox is true)</p> </blockquote> <p dir="auto"><em>When at least one of sandbox or nodeIntegrationInSubFrames is set to true the problem occours.</em></p> <ol start="2" dir="auto"> <li> <p dir="auto">Load a website which opens a new window on a click (I used <a href="https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_open3" rel="nofollow">https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_open3</a>).</p> </li> <li> <p dir="auto">Open a new window by clicking a link which should open a new window.</p> </li> <li> <p dir="auto">Close the new window.</p> </li> <li> <p dir="auto">Try to select some text in the creator window, when the problem occours any interaction should not be possible.</p> </li> </ol>
0
<p dir="auto">The body of a chord can be a task, a chain of tasks, or a group of tasks. In all of these cases, as expected, the result of the chord's header is passed to the body. However, if the body of a chord contains one or more chains, the return value of the chord's header is suddenly gone!</p> <h2 dir="auto">Example application: canvastest.py</h2> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#!/usr/bin/env python from celery import Celery __all__ = ('app', 'ident') app = Celery('canvastest.py', backend='redis://') @app.task def i(x): return x if __name__ == '__main__': app.start()"><pre class="notranslate"><span class="pl-c">#!/usr/bin/env python</span> <span class="pl-k">from</span> <span class="pl-s1">celery</span> <span class="pl-k">import</span> <span class="pl-v">Celery</span> <span class="pl-s1">__all__</span> <span class="pl-c1">=</span> (<span class="pl-s">'app'</span>, <span class="pl-s">'ident'</span>) <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Celery</span>(<span class="pl-s">'canvastest.py'</span>, <span class="pl-s1">backend</span><span class="pl-c1">=</span><span class="pl-s">'redis://'</span>) <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-s1">task</span></span> <span class="pl-k">def</span> <span class="pl-en">i</span>(<span class="pl-s1">x</span>): <span class="pl-k">return</span> <span class="pl-s1">x</span> <span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">'__main__'</span>: <span class="pl-s1">app</span>.<span class="pl-en">start</span>()</pre></div> <h2 dir="auto">Start the worker</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ./canvastest.py worker"><pre class="notranslate"><code class="notranslate">$ ./canvastest.py worker </code></pre></div> <h2 dir="auto">What works</h2> <p dir="auto">The body of a chord can be a task, a chain of tasks, or a group of tasks. These all give the expected results:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ./canvastest.py shell --python &gt;&gt;&gt; chord([i.s(1), i.s(2)])(i.s()).get(timeout=5) [1, 2] &gt;&gt;&gt; chord([i.s(1), i.s(2)])(i.s() | i.s()).get(timeout=5) [1, 2] &gt;&gt;&gt; chord([i.s(1), i.s(2)])(group(i.s(), i.s())).get(timeout=5) [[1, 2], [1, 2]]"><pre class="notranslate"><code class="notranslate">$ ./canvastest.py shell --python &gt;&gt;&gt; chord([i.s(1), i.s(2)])(i.s()).get(timeout=5) [1, 2] &gt;&gt;&gt; chord([i.s(1), i.s(2)])(i.s() | i.s()).get(timeout=5) [1, 2] &gt;&gt;&gt; chord([i.s(1), i.s(2)])(group(i.s(), i.s())).get(timeout=5) [[1, 2], [1, 2]] </code></pre></div> <h2 dir="auto">What's broken</h2> <p dir="auto">It breaks if the body of the chord is a group that contains one or more chains. For some reason the result of the chord's header is lost.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; chord([i.s(1), i.s(2)])(group(i.s() | i.s(), i.s())).get(timeout=5) ... TimeoutError: The operation timed out."><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; chord([i.s(1), i.s(2)])(group(i.s() | i.s(), i.s())).get(timeout=5) ... TimeoutError: The operation timed out. </code></pre></div> <p dir="auto">Here is the error message from the worker:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2017-07-25 22:16:31,904: ERROR/ForkPoolWorker-3] Chord callback for '769854f7-bda9-4fa4-a496-b0e03809c5fd' raised: TypeError('i() takes exactly 1 argument (0 given)',) Traceback (most recent call last): File &quot;/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/celery/backends/redis.py&quot;, line 290, in on_chord_part_return callback.delay([unpack(tup, decode) for tup in resl]) File &quot;/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/celery/canvas.py&quot;, line 182, in delay return self.apply_async(partial_args, partial_kwargs) File &quot;/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/celery/canvas.py&quot;, line 986, in apply_async args=args, kwargs=kwargs, **options)) File &quot;/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/celery/canvas.py&quot;, line 1062, in _apply_tasks **options) File &quot;/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/celery/canvas.py&quot;, line 566, in apply_async dict(self.options, **options) if options else self.options)) File &quot;/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/celery/canvas.py&quot;, line 596, in run first_task.apply_async(**options) File &quot;/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/celery/canvas.py&quot;, line 221, in apply_async return _apply(args, kwargs, **options) File &quot;/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/celery/app/task.py&quot;, line 518, in apply_async check_arguments(*(args or ()), **(kwargs or {})) TypeError: i() takes exactly 1 argument (0 given)"><pre class="notranslate"><code class="notranslate">[2017-07-25 22:16:31,904: ERROR/ForkPoolWorker-3] Chord callback for '769854f7-bda9-4fa4-a496-b0e03809c5fd' raised: TypeError('i() takes exactly 1 argument (0 given)',) Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/celery/backends/redis.py", line 290, in on_chord_part_return callback.delay([unpack(tup, decode) for tup in resl]) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/celery/canvas.py", line 182, in delay return self.apply_async(partial_args, partial_kwargs) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/celery/canvas.py", line 986, in apply_async args=args, kwargs=kwargs, **options)) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/celery/canvas.py", line 1062, in _apply_tasks **options) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/celery/canvas.py", line 566, in apply_async dict(self.options, **options) if options else self.options)) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/celery/canvas.py", line 596, in run first_task.apply_async(**options) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/celery/canvas.py", line 221, in apply_async return _apply(args, kwargs, **options) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/celery/app/task.py", line 518, in apply_async check_arguments(*(args or ()), **(kwargs or {})) TypeError: i() takes exactly 1 argument (0 given) </code></pre></div>
<p dir="auto">In the <a href="http://docs.celeryproject.org/en/latest/userguide/canvas.html#the-primitives" rel="nofollow">Documentations</a> says:</p> <blockquote> <p dir="auto">Groups and chords accepts partial arguments too, so in a chain the return value of the previous task is forwarded to all tasks in the group...</p> </blockquote> <p dir="auto">but it doesn't if group contain chain.</p> <p dir="auto"><strong>Steps to reproduce</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# ct.py from __future__ import absolute_import, unicode_literals from celery import Celery app = Celery( 'ct', broker='amqp://guest@localhost//', backend='cache+memcached://127.0.0.1:11211/' ) @app.task def inc(x): x += 1 return x @app.task def nothing(x): return x if __name__ == '__main__': app.start()"><pre class="notranslate"><code class="notranslate"># ct.py from __future__ import absolute_import, unicode_literals from celery import Celery app = Celery( 'ct', broker='amqp://guest@localhost//', backend='cache+memcached://127.0.0.1:11211/' ) @app.task def inc(x): x += 1 return x @app.task def nothing(x): return x if __name__ == '__main__': app.start() </code></pre></div> <p dir="auto">Start worker:<br> <code class="notranslate">python ct.py worker -l info</code></p> <p dir="auto">In python console:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; from ct import inc, nothing &gt;&gt;&gt; from celery import group, chain &gt;&gt;&gt; t = chain(inc.s(),group(chain(nothing.s(), inc.s()), inc.s())) &gt;&gt;&gt; r = t.delay(0) &gt;&gt;&gt; "><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; from ct import inc, nothing &gt;&gt;&gt; from celery import group, chain &gt;&gt;&gt; t = chain(inc.s(),group(chain(nothing.s(), inc.s()), inc.s())) &gt;&gt;&gt; r = t.delay(0) &gt;&gt;&gt; </code></pre></div> <p dir="auto">In <code class="notranslate">celery</code> log:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2017-04-10 12:43:36,126: INFO/MainProcess] Received task: ct.inc[5c1beeff-d785-4d81-af2c-35a5bba839ab] [2017-04-10 12:43:37,257: WARNING/PoolWorker-1] /home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/app/trace.py:542: RuntimeWarning: Exception raised outside body: TypeError('nothing() takes exactly 1 argument (0 given)',): Traceback (most recent call last): File &quot;/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/app/trace.py&quot;, line 424, in trace_task parent_id=uuid, root_id=root_id, File &quot;/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py&quot;, line 987, in apply_async args=args, kwargs=kwargs, **options)) File &quot;/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py&quot;, line 1063, in _apply_tasks **options) File &quot;/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py&quot;, line 567, in apply_async dict(self.options, **options) if options else self.options)) File &quot;/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py&quot;, line 597, in run first_task.apply_async(**options) File &quot;/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py&quot;, line 221, in apply_async return _apply(args, kwargs, **options) File &quot;/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/app/task.py&quot;, line 518, in apply_async check_arguments(*(args or ()), **(kwargs or {})) TypeError: nothing() takes exactly 1 argument (0 given) exc, exc_info.traceback))) [2017-04-10 12:43:37,262: ERROR/PoolWorker-1] Task ct.inc[5c1beeff-d785-4d81-af2c-35a5bba839ab] raised unexpected: TypeError('nothing() takes exactly 1 argument (0 given)',) Traceback (most recent call last): File &quot;/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/app/trace.py&quot;, line 424, in trace_task parent_id=uuid, root_id=root_id, File &quot;/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py&quot;, line 987, in apply_async args=args, kwargs=kwargs, **options)) File &quot;/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py&quot;, line 1063, in _apply_tasks **options) File &quot;/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py&quot;, line 567, in apply_async dict(self.options, **options) if options else self.options)) File &quot;/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py&quot;, line 597, in run first_task.apply_async(**options) File &quot;/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py&quot;, line 221, in apply_async return _apply(args, kwargs, **options) File &quot;/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/app/task.py&quot;, line 518, in apply_async check_arguments(*(args or ()), **(kwargs or {})) TypeError: nothing() takes exactly 1 argument (0 given)"><pre class="notranslate"><code class="notranslate">[2017-04-10 12:43:36,126: INFO/MainProcess] Received task: ct.inc[5c1beeff-d785-4d81-af2c-35a5bba839ab] [2017-04-10 12:43:37,257: WARNING/PoolWorker-1] /home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/app/trace.py:542: RuntimeWarning: Exception raised outside body: TypeError('nothing() takes exactly 1 argument (0 given)',): Traceback (most recent call last): File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/app/trace.py", line 424, in trace_task parent_id=uuid, root_id=root_id, File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 987, in apply_async args=args, kwargs=kwargs, **options)) File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 1063, in _apply_tasks **options) File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 567, in apply_async dict(self.options, **options) if options else self.options)) File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 597, in run first_task.apply_async(**options) File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 221, in apply_async return _apply(args, kwargs, **options) File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/app/task.py", line 518, in apply_async check_arguments(*(args or ()), **(kwargs or {})) TypeError: nothing() takes exactly 1 argument (0 given) exc, exc_info.traceback))) [2017-04-10 12:43:37,262: ERROR/PoolWorker-1] Task ct.inc[5c1beeff-d785-4d81-af2c-35a5bba839ab] raised unexpected: TypeError('nothing() takes exactly 1 argument (0 given)',) Traceback (most recent call last): File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/app/trace.py", line 424, in trace_task parent_id=uuid, root_id=root_id, File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 987, in apply_async args=args, kwargs=kwargs, **options)) File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 1063, in _apply_tasks **options) File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 567, in apply_async dict(self.options, **options) if options else self.options)) File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 597, in run first_task.apply_async(**options) File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/canvas.py", line 221, in apply_async return _apply(args, kwargs, **options) File "/home/vagrant/ct-env/local/lib/python2.7/site-packages/celery/app/task.py", line 518, in apply_async check_arguments(*(args or ()), **(kwargs or {})) TypeError: nothing() takes exactly 1 argument (0 given) </code></pre></div> <p dir="auto"><strong>Expecting result</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; r.get() [2, 2]"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; r.get() [2, 2] </code></pre></div> <p dir="auto"><strong>Celery info</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="celery -A ct report software -&gt; celery:4.0.2 (latentcall) kombu:4.0.2 py:2.7.9 billiard:3.5.0.2 py-amqp:2.1.4 platform -&gt; system:Linux arch:64bit, ELF imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:amqp results:cache+memcached://127.0.0.1:11211/ broker_url: u'amqp://guest:********@localhost:5672//' result_backend: u'cache+memcached://127.0.0.1:11211/' "><pre class="notranslate"><code class="notranslate">celery -A ct report software -&gt; celery:4.0.2 (latentcall) kombu:4.0.2 py:2.7.9 billiard:3.5.0.2 py-amqp:2.1.4 platform -&gt; system:Linux arch:64bit, ELF imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:amqp results:cache+memcached://127.0.0.1:11211/ broker_url: u'amqp://guest:********@localhost:5672//' result_backend: u'cache+memcached://127.0.0.1:11211/' </code></pre></div> <p dir="auto"><strong>Notes</strong></p> <p dir="auto">Work fine with Celery 3.x</p>
1
<h3 dir="auto">Your question</h3> <p dir="auto">I used this <a href="https://playwright.dev/java/docs/test-snapshots" rel="nofollow">https://playwright.dev/java/docs/test-snapshots</a> function<br> Can I somehow change the directory for saving screenshots?</p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: v1.36.1</li> <li>Operating System: linux</li> <li>Browser: [All]</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p> <p dir="auto">or</p> <p dir="auto"><strong>Config file</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// playwright.config.ts // @ts-check const { defineConfig, devices } = require('@playwright/test'); /** * Read environment variables from file. * https://github.com/motdotla/dotenv */ // require('dotenv').config(); /** * @see https://playwright.dev/docs/test-configuration */ module.exports = defineConfig({ testDir: './tests', /* Run tests in files in parallel */ fullyParallel: true, /* Fail the build on CI if you accidentally left test.only in the source code. */ forbidOnly: !!process.env.CI, /* Retry on CI only */ retries: process.env.CI ? 2 : 0, /* Opt out of parallel tests on CI. */ workers: process.env.CI ? 1 : undefined, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ reporter: 'html', /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ use: { /* Base URL to use in actions like `await page.goto('/')`. */ // baseURL: 'http://127.0.0.1:3000', /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: 'on-first-retry', /* screenshots on failure */ screenshot: 'only-on-failure', //video: 'on' }, /* Configure projects for major browsers */ projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'] }, }, { name: 'firefox', use: { ...devices['Desktop Firefox'] }, }, { name: 'webkit', use: { ...devices['Desktop Safari'] }, }, /* Test against mobile viewports. */ // { // name: 'Mobile Chrome', // use: { ...devices['Pixel 5'] }, // }, // { // name: 'Mobile Safari', // use: { ...devices['iPhone 12'] }, // }, /* Test against branded browsers. */ // { // name: 'Microsoft Edge', // use: { ...devices['Desktop Edge'], channel: 'msedge' }, // }, // { // name: 'Google Chrome', // use: { ..devices['Desktop Chrome'], channel: 'chrome' }, // }, ], /* Run your local dev server before starting the tests */ // webServer: { // command: 'npm run start', // url: 'http://127.0.0.1:3000', // reuseExistingServer: !process.env.CI, // }, }); "><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span> <span class="pl-c">// <span class="pl-k">@ts</span>-check</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> defineConfig<span class="pl-kos">,</span> devices <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'@playwright/test'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">/**</span> <span class="pl-c"> * Read environment variables from file.</span> <span class="pl-c"> * https://github.com/motdotla/dotenv</span> <span class="pl-c"> */</span> <span class="pl-c">// require('dotenv').config();</span> <span class="pl-c">/**</span> <span class="pl-c"> * <span class="pl-k">@see</span> https://playwright.dev/docs/test-configuration</span> <span class="pl-c"> */</span> <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-en">defineConfig</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">testDir</span>: <span class="pl-s">'./tests'</span><span class="pl-kos">,</span> <span class="pl-c">/* Run tests in files in parallel */</span> <span class="pl-c1">fullyParallel</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c">/* Fail the build on CI if you accidentally left test.only in the source code. */</span> <span class="pl-c1">forbidOnly</span>: <span class="pl-c1">!</span><span class="pl-c1">!</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">CI</span><span class="pl-kos">,</span> <span class="pl-c">/* Retry on CI only */</span> <span class="pl-c1">retries</span>: <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">CI</span> ? <span class="pl-c1">2</span> : <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c">/* Opt out of parallel tests on CI. */</span> <span class="pl-c1">workers</span>: <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">CI</span> ? <span class="pl-c1">1</span> : <span class="pl-c1">undefined</span><span class="pl-kos">,</span> <span class="pl-c">/* Reporter to use. See https://playwright.dev/docs/test-reporters */</span> <span class="pl-c1">reporter</span>: <span class="pl-s">'html'</span><span class="pl-kos">,</span> <span class="pl-c">/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> <span class="pl-c">/* Base URL to use in actions like `await page.goto('/')`. */</span> <span class="pl-c">// baseURL: 'http://127.0.0.1:3000',</span> <span class="pl-c">/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */</span> <span class="pl-c1">trace</span>: <span class="pl-s">'on-first-retry'</span><span class="pl-kos">,</span> <span class="pl-c">/* screenshots on failure */</span> <span class="pl-c1">screenshot</span>: <span class="pl-s">'only-on-failure'</span><span class="pl-kos">,</span> <span class="pl-c">//video: 'on'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c">/* Configure projects for major browsers */</span> <span class="pl-c1">projects</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'chromium'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Desktop Chrome'</span><span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'firefox'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Desktop Firefox'</span><span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'webkit'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Desktop Safari'</span><span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c">/* Test against mobile viewports. */</span> <span class="pl-c">// {</span> <span class="pl-c">// name: 'Mobile Chrome',</span> <span class="pl-c">// use: { ...devices['Pixel 5'] },</span> <span class="pl-c">// },</span> <span class="pl-c">// {</span> <span class="pl-c">// name: 'Mobile Safari',</span> <span class="pl-c">// use: { ...devices['iPhone 12'] },</span> <span class="pl-c">// },</span> <span class="pl-c">/* Test against branded browsers. */</span> <span class="pl-c">// {</span> <span class="pl-c">// name: 'Microsoft Edge',</span> <span class="pl-c">// use: { ...devices['Desktop Edge'], channel: 'msedge' },</span> <span class="pl-c">// },</span> <span class="pl-c">// {</span> <span class="pl-c">// name: 'Google Chrome',</span> <span class="pl-c">// use: { ..devices['Desktop Chrome'], channel: 'chrome' },</span> <span class="pl-c">// },</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c">/* Run your local dev server before starting the tests */</span> <span class="pl-c">// webServer: {</span> <span class="pl-c">// command: 'npm run start',</span> <span class="pl-c">// url: 'http://127.0.0.1:3000',</span> <span class="pl-c">// reuseExistingServer: !process.env.CI,</span> <span class="pl-c">// },</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> </pre></div> <p dir="auto"><strong>Test file (self-contained)</strong></p> <p dir="auto">test_1.spec.js</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// @ts-check const { test, expect } = require('@playwright/test'); /** @type {import('@playwright/test').Page} */ let page; test.beforeAll(async ({ browser }) =&gt; { page = await browser.newPage(); await page.goto(&quot;https://bing.com&quot;); }); test.afterAll(async () =&gt; { //await page.close(); }); test('Async test 1', async () =&gt; { await page.goto('https://playwright.dev/community/welcome'); let heading = page.getByRole('heading', { name: 'Welcome' }); await expect(heading).toBeVisible(); }); test('Async test 2', async () =&gt; { await page.goto('https://playwright.dev/docs/api/class-playwright'); let heading = page.getByRole('heading', { name: 'Playwright Library' }); await expect(heading).toBeVisible(); }); test('Steps are executed synchronously', async () =&gt; { await test.step('Step 1', async () =&gt; { await page.goto('https://playwright.dev/'); }); await test.step('Step 2', async () =&gt; { await page.getByText('Get Started').click(); }); await test.step('Step 3', async () =&gt; { let heading = page.getByRole('heading', { name: 'Installation' }); await expect(heading).toBeVisible(); }); }); test('Async test 3', async ({playwright}) =&gt; { let html = `&lt;html&gt; &lt;head&gt; &lt;title&gt;tets&lt;/title&gt; &lt;script&gt; function loop() { document.getElementById('one').innerText = 'start'; for(let i=0;i&lt;500000;i++) { setTimeout(() =&gt; { document.getElementById('one').innerText = i +' '+ Date.now() +' '+ crypto.randomUUID(); }, 50); } } &lt;/script&gt; &lt;/head&gt; &lt;body onload=&quot;loop()&quot;&gt; &lt;h1 id='one'&gt;pass&lt;/h1&gt; &lt;/body&gt; &lt;/html&gt;`; await page.setContent(html); let heading = page.getByRole('heading'); await expect(heading).toHaveText('fail'); //await test.step('', async () =&gt; { //}); });"><pre class="notranslate"><span class="pl-c">// <span class="pl-k">@ts</span>-check</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> test<span class="pl-kos">,</span> expect <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'@playwright/test'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">/** <span class="pl-k">@type</span> {import('@playwright/test').Page} */</span> <span class="pl-k">let</span> <span class="pl-s1">page</span><span class="pl-kos">;</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">beforeAll</span><span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> browser <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">newPage</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">"https://bing.com"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">afterAll</span><span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">//await page.close();</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'Async test 1'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'https://playwright.dev/community/welcome'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">heading</span> <span class="pl-c1">=</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'heading'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'Welcome'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">heading</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeVisible</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'Async test 2'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'https://playwright.dev/docs/api/class-playwright'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">heading</span> <span class="pl-c1">=</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'heading'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'Playwright Library'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">heading</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeVisible</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'Steps are executed synchronously'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">'Step 1'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'https://playwright.dev/'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">'Step 2'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByText</span><span class="pl-kos">(</span><span class="pl-s">'Get Started'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">'Step 3'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">heading</span> <span class="pl-c1">=</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'heading'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'Installation'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">heading</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeVisible</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'Async test 3'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span>playwright<span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">html</span> <span class="pl-c1">=</span> <span class="pl-s">`&lt;html&gt;</span> <span class="pl-s"> &lt;head&gt;</span> <span class="pl-s"> &lt;title&gt;tets&lt;/title&gt;</span> <span class="pl-s"> &lt;script&gt;</span> <span class="pl-s"> function loop() {</span> <span class="pl-s"> document.getElementById('one').innerText = 'start';</span> <span class="pl-s"> for(let i=0;i&lt;500000;i++) {</span> <span class="pl-s"> setTimeout(() =&gt; {</span> <span class="pl-s"> document.getElementById('one').innerText = i +' '+ Date.now() +' '+ crypto.randomUUID();</span> <span class="pl-s"> }, 50);</span> <span class="pl-s"></span> <span class="pl-s"></span> <span class="pl-s"></span> <span class="pl-s"> }</span> <span class="pl-s"> }</span> <span class="pl-s"> &lt;/script&gt;</span> <span class="pl-s"> &lt;/head&gt;</span> <span class="pl-s"> &lt;body onload="loop()"&gt;</span> <span class="pl-s"> &lt;h1 id='one'&gt;pass&lt;/h1&gt;</span> <span class="pl-s"></span> <span class="pl-s"> &lt;/body&gt;</span> <span class="pl-s"> &lt;/html&gt;`</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">setContent</span><span class="pl-kos">(</span><span class="pl-s1">html</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">heading</span> <span class="pl-c1">=</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'heading'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">heading</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveText</span><span class="pl-kos">(</span><span class="pl-s">'fail'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//await test.step('', async () =&gt; {</span> <span class="pl-c">//});</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">test_2.spec.js</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// @ts-check const { test, expect } = require('@playwright/test'); /** @type {import('@playwright/test').Page} */ let page; test.beforeAll(async ({ browser }) =&gt; { page = await browser.newPage(); await page.goto(&quot;https://example.com&quot;); }); test.afterAll(async () =&gt; { //await page.close(); }); test('Async test 1', async () =&gt; { await page.goto('https://example.com/community/welcome'); let heading = page.getByRole('heading', { name: 'Welcome' }); await expect(heading).toBeVisible(); }); test('Async test 2', async () =&gt; { await page.goto('https://example.com/docs/api/class-playwright'); let heading = page.getByRole('heading', { name: 'Playwright Library' }); await expect(heading).toBeVisible(); }); test('Steps are executed synchronously', async () =&gt; { await test.step('Step 1', async () =&gt; { await page.goto('https://example.com/'); }); await test.step('Step 2', async () =&gt; { await page.getByText('Get Started').click(); }); await test.step('Step 3', async () =&gt; { let heading = page.getByRole('heading', { name: 'Installation' }); await expect(heading).toBeVisible(); }); }); test('Async test 3', async ({playwright}) =&gt; { let html = `&lt;html&gt; &lt;head&gt; &lt;title&gt;tets&lt;/title&gt; &lt;script&gt; function loop() { document.getElementById('one').innerText = 'start'; for(let i=0;i&lt;500000;i++) { setTimeout(() =&gt; { document.getElementById('one').innerText = i +' '+ Date.now() +' '+ crypto.randomUUID(); }, 50); } } &lt;/script&gt; &lt;/head&gt; &lt;body onload=&quot;loop()&quot;&gt; &lt;h1 id='one'&gt;pass&lt;/h1&gt; &lt;/body&gt; &lt;/html&gt;`; await page.setContent(html); let heading = page.getByRole('heading'); await expect(heading).toHaveText('fail'); //await test.step('', async () =&gt; { //}); });"><pre class="notranslate"><span class="pl-c">// <span class="pl-k">@ts</span>-check</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> test<span class="pl-kos">,</span> expect <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'@playwright/test'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">/** <span class="pl-k">@type</span> {import('@playwright/test').Page} */</span> <span class="pl-k">let</span> <span class="pl-s1">page</span><span class="pl-kos">;</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">beforeAll</span><span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> browser <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">newPage</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">"https://example.com"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">afterAll</span><span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">//await page.close();</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'Async test 1'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'https://example.com/community/welcome'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">heading</span> <span class="pl-c1">=</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'heading'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'Welcome'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">heading</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeVisible</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'Async test 2'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'https://example.com/docs/api/class-playwright'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">heading</span> <span class="pl-c1">=</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'heading'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'Playwright Library'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">heading</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeVisible</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'Steps are executed synchronously'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">'Step 1'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'https://example.com/'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">'Step 2'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByText</span><span class="pl-kos">(</span><span class="pl-s">'Get Started'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">'Step 3'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">heading</span> <span class="pl-c1">=</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'heading'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'Installation'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">heading</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeVisible</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'Async test 3'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span>playwright<span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">html</span> <span class="pl-c1">=</span> <span class="pl-s">`&lt;html&gt;</span> <span class="pl-s"> &lt;head&gt;</span> <span class="pl-s"> &lt;title&gt;tets&lt;/title&gt;</span> <span class="pl-s"> &lt;script&gt;</span> <span class="pl-s"> function loop() {</span> <span class="pl-s"> document.getElementById('one').innerText = 'start';</span> <span class="pl-s"> for(let i=0;i&lt;500000;i++) {</span> <span class="pl-s"> setTimeout(() =&gt; {</span> <span class="pl-s"> document.getElementById('one').innerText = i +' '+ Date.now() +' '+ crypto.randomUUID();</span> <span class="pl-s"> }, 50);</span> <span class="pl-s"></span> <span class="pl-s"></span> <span class="pl-s"></span> <span class="pl-s"> }</span> <span class="pl-s"> }</span> <span class="pl-s"> &lt;/script&gt;</span> <span class="pl-s"> &lt;/head&gt;</span> <span class="pl-s"> &lt;body onload="loop()"&gt;</span> <span class="pl-s"> &lt;h1 id='one'&gt;pass&lt;/h1&gt;</span> <span class="pl-s"></span> <span class="pl-s"> &lt;/body&gt;</span> <span class="pl-s"> &lt;/html&gt;`</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">setContent</span><span class="pl-kos">(</span><span class="pl-s1">html</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">heading</span> <span class="pl-c1">=</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'heading'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">heading</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveText</span><span class="pl-kos">(</span><span class="pl-s">'fail'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//await test.step('', async () =&gt; {</span> <span class="pl-c">//});</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 tests</li> <li>Review test_2.spec.js failures</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">With the exception of "Async test 3" Only screenshots with example domain should be attached.</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">Usecase consists of config set to grab screenshots on failure and two test files of which one is failing all the tests. Even if tests are fully isolated , some of the screenshots show playwright.dev site instead of example.com</p> <p dir="auto"><a href="https://playwright.dev/docs/browser-contexts" rel="nofollow">https://playwright.dev/docs/browser-contexts</a> reads:<br> Isolation<br> Tests written with Playwright execute in isolated clean-slate environments called browser contexts. This isolation model improves reproducibility and prevents cascading test failures.</p> <p dir="auto">What is Test Isolation?<br> Test Isolation is when each test is completely isolated from another test.</p>
0
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>: 4.3.0 (rhubarb)</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -&gt; celery:4.3.0 (rhubarb) kombu:4.6.11 py:3.6.12 billiard:3.6.3.0 redis:3.3.11 platform -&gt; system:Linux arch:64bit, ELF kernel version:4.14.106-97.85.amzn2.x86_64 imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:redis results:redis://query-runner-redis-master:6379/0 BROKER_URL: 'redis://query-runner-redis-master:6379/0' CELERY_RESULT_BACKEND: 'redis://query-runner-redis-master:6379/0' CELERY_INCLUDE: ['tasks.query'] CELERY_TIMEZONE: 'UTC' CELERY_TASK_SERIALIZER: 'json' CELERY_IGNORE_RESULT: True CELERY_TASK_ACKS_LATE: True CELERYD_PREFETCH_MULTIPLIER: 1 CELERY_ROUTES: { 'tasks.query.kill_query': {'queue': 'meta'}, 'tasks.query.run_query': {'queue': 'default'}} CELERY_ALWAYS_EAGER: False CELERYBEAT_SCHEDULE: { } CELERY_TASK_CREATE_MISSING_QUEUES: True "><pre class="notranslate"><code class="notranslate">software -&gt; celery:4.3.0 (rhubarb) kombu:4.6.11 py:3.6.12 billiard:3.6.3.0 redis:3.3.11 platform -&gt; system:Linux arch:64bit, ELF kernel version:4.14.106-97.85.amzn2.x86_64 imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:redis results:redis://query-runner-redis-master:6379/0 BROKER_URL: 'redis://query-runner-redis-master:6379/0' CELERY_RESULT_BACKEND: 'redis://query-runner-redis-master:6379/0' CELERY_INCLUDE: ['tasks.query'] CELERY_TIMEZONE: 'UTC' CELERY_TASK_SERIALIZER: 'json' CELERY_IGNORE_RESULT: True CELERY_TASK_ACKS_LATE: True CELERYD_PREFETCH_MULTIPLIER: 1 CELERY_ROUTES: { 'tasks.query.kill_query': {'queue': 'meta'}, 'tasks.query.run_query': {'queue': 'default'}} CELERY_ALWAYS_EAGER: False CELERYBEAT_SCHEDULE: { } CELERY_TASK_CREATE_MISSING_QUEUES: True </code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: N/A or Unknown</li> <li><strong>Minimal Celery Version</strong>: N/A or Unknown</li> <li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="amqp==2.6.1 billiard==3.6.3.0 blinker==1.4 boto==2.49.0 boto3==1.16.21 botocore==1.19.21 celery==4.3.0 celery-prometheus-exporter==1.7.0 certifi==2020.11.8 chardet==3.0.4 cheroot==8.4.7 CherryPy==18.6.0 click==7.1.2 datadog==0.39.0 decorator==4.4.2 env-excavator==1.5.0 Flask==1.1.2 Flask-Cors==3.0.9 flask-swagger==0.2.14 flask-swagger-ui==3.36.0 flower==0.9.5 future==0.18.2 gunicorn==20.0.4 humanize==3.1.0 idna==2.10 importlib-metadata==2.0.0 importlib-resources==3.3.0 inflection==0.5.1 influxdb==5.3.1 itsdangerous==1.1.0 jaraco.classes==3.1.0 jaraco.collections==3.0.0 jaraco.functools==3.0.1 jaraco.text==3.2.0 JayDeBeApi==1.1.1 Jinja2==2.11.2 jmespath==0.10.0 JPype1==0.6.3 kombu==4.6.11 MarkupSafe==1.1.1 more-itertools==8.6.0 msgpack==1.0.0 numpy==1.17.0 portend==2.7.0 prometheus-client==0.9.0 prometheus-flask-exporter==0.18.1 psycopg2==2.8.6 pycrypto==2.6.1 PyHive==0.6.3 PyMySQL==0.10.1 python-dateutil==2.8.1 pytz==2020.4 PyYAML==5.3.1 qds-sdk==1.16.1 raven==6.10.0 redis==3.3.11 redlock==1.2.0 requests==2.25.0 s3transfer==0.3.3 six==1.15.0 tempora==4.0.1 thrift==0.13.0 tornado==6.1 urllib3==1.26.2 vine==1.3.0 Werkzeug==1.0.1 zc.lockfile==2.0 zipp==3.4.0"><pre class="notranslate"><code class="notranslate">amqp==2.6.1 billiard==3.6.3.0 blinker==1.4 boto==2.49.0 boto3==1.16.21 botocore==1.19.21 celery==4.3.0 celery-prometheus-exporter==1.7.0 certifi==2020.11.8 chardet==3.0.4 cheroot==8.4.7 CherryPy==18.6.0 click==7.1.2 datadog==0.39.0 decorator==4.4.2 env-excavator==1.5.0 Flask==1.1.2 Flask-Cors==3.0.9 flask-swagger==0.2.14 flask-swagger-ui==3.36.0 flower==0.9.5 future==0.18.2 gunicorn==20.0.4 humanize==3.1.0 idna==2.10 importlib-metadata==2.0.0 importlib-resources==3.3.0 inflection==0.5.1 influxdb==5.3.1 itsdangerous==1.1.0 jaraco.classes==3.1.0 jaraco.collections==3.0.0 jaraco.functools==3.0.1 jaraco.text==3.2.0 JayDeBeApi==1.1.1 Jinja2==2.11.2 jmespath==0.10.0 JPype1==0.6.3 kombu==4.6.11 MarkupSafe==1.1.1 more-itertools==8.6.0 msgpack==1.0.0 numpy==1.17.0 portend==2.7.0 prometheus-client==0.9.0 prometheus-flask-exporter==0.18.1 psycopg2==2.8.6 pycrypto==2.6.1 PyHive==0.6.3 PyMySQL==0.10.1 python-dateutil==2.8.1 pytz==2020.4 PyYAML==5.3.1 qds-sdk==1.16.1 raven==6.10.0 redis==3.3.11 redlock==1.2.0 requests==2.25.0 s3transfer==0.3.3 six==1.15.0 tempora==4.0.1 thrift==0.13.0 tornado==6.1 urllib3==1.26.2 vine==1.3.0 Werkzeug==1.0.1 zc.lockfile==2.0 zipp==3.4.0 </code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">I was hoping by specifying <code class="notranslate">-Ofair</code> that tasks would not be reserved by workers as stated here <a href="https://docs.celeryproject.org/en/v4.3.0/userguide/optimizing.html?highlight=optimization#prefork-pool-prefetch-settings" rel="nofollow">https://docs.celeryproject.org/en/v4.3.0/userguide/optimizing.html?highlight=optimization#prefork-pool-prefetch-settings</a></p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">Workers have reserved tasks while other workers are free to do work.</p> <p dir="auto">I am going to paste the state we are seeing in prod when a lot of tasks come in. Notice how <code class="notranslate">query-runner-celery-datalake-interval-refresh-784bb858c8-qskvj</code> has a reserved task while <code class="notranslate">celery@query-runner-celery-datalake-interval-refresh-784bb858c8-dgmf9</code> is empty and could run that task. Please note the name of the worker is the name of the queue they are reading from.</p> <details> <summary><b><code class="notranslate">celery inspect active and celery inspect reserved</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" root@query-runner-celery-datalake-687847cbb6-mxrnc:/opt/workdir# celery -A tasks inspect active 2020-11-24 21:03:59,312 [WARNING] datadog.api: No agent or invalid configuration file found 2020-11-24 21:03:59,316 [INFO] tasks.datadog_helper: initialized with 2020-11-24 21:03:59,316 [INFO] tasks.datadog_helper: {'statsd_host': '172.29.156.91', 'statsd_port': 8125, 'statsd_namespace': 'query_runner_celery_tasks'} -&gt; celery@query-runner-celery-default-6c9bd65fd7-4cdz6: OK - empty - -&gt; celery@query-runner-celery-default-6c9bd65fd7-v8w22: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-68xqn: OK - empty - -&gt; celery@query-runner-celery-ga-55cdb77d4-lsk2z: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-mxrnc: OK - empty - -&gt; celery@query-runner-celery-default-6c9bd65fd7-9f8r2: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-hnrhw: OK - empty - -&gt; celery@query-runner-celery-ga-55cdb77d4-9jp2n: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-4dx2b: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-q82hx: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-nqhtk: OK * {'id': '93a32a04-7a6d-4a32-a2ee-8b88ca4f9049', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_aa42f1c1970bc1ac2778a65c60b2e08b', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3107', 'caller_json': {'queryId': 3107, 'interval': 'HOURLY', 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-nqhtk', 'time_start': 1606251603.8548772, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 15} * {'id': '747a1dd7-209a-4870-a636-c18176587723', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_373fafa1388d047c83cae9d40f249655', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3149 on dash 616', 'caller_json': {'queryId': 3149, 'interval': 'HOURLY', 'dashboard_id': 616, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-nqhtk', 'time_start': 1606251609.6809852, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 13} * {'id': '28ec904f-197f-4aef-99e2-0887f6f85ec7', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_829e5787764013fbf5eb0958eec86a8f', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 2400 on dash 609', 'caller_json': {'queryId': 2400, 'interval': 'HOURLY', 'dashboard_id': 609, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-nqhtk', 'time_start': 1606251604.9346218, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 16} * {'id': '705d4f46-662d-4930-9011-265e1065346d', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_04cd73d13695b2a7d9503148018c2650', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3179 on dash 616', 'caller_json': {'queryId': 3179, 'interval': 'HOURLY', 'dashboard_id': 616, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-nqhtk', 'time_start': 1606240820.285725, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 14} -&gt; celery@query-runner-celery-default-6c9bd65fd7-4s4lz: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-92hxc: OK * {'id': '7afd7a99-368e-4995-8e5a-a1802dff7476', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_9fe008b693e6dc12999bf58212430afa', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 2403 on dash 609', 'caller_json': {'queryId': 2403, 'interval': 'HOURLY', 'dashboard_id': 609, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-92hxc', 'time_start': 1606251605.1041203, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 15} * {'id': '4d59fc3f-40b9-4d51-ad41-e241518c629f', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_9a6f5ab9f25ab21bddcc128aee8677d6', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 2396 on dash 609', 'caller_json': {'queryId': 2396, 'interval': 'HOURLY', 'dashboard_id': 609, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-92hxc', 'time_start': 1606251604.2693179, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 16} * {'id': '05bc6789-2183-47d2-abe0-7093bad200a5', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_a937a6def4c1010c15dd3c5e1b488d2d', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3116 on dash 616', 'caller_json': {'queryId': 3116, 'interval': 'HOURLY', 'dashboard_id': 616, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-92hxc', 'time_start': 1606251609.2829497, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 14} -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-269rc: OK * {'id': 'd6ddf309-e58a-4f2d-be71-1824e618716e', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_b7253439941188da3776ffdc8bab2b07', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 2401 on dash 609', 'caller_json': {'queryId': 2401, 'interval': 'HOURLY', 'dashboard_id': 609, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-269rc', 'time_start': 1606251605.0180476, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 16} * {'id': '62bb08c5-d6a6-4966-8de1-0d872faba09f', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_b75d10ba197e1bb1ab787217ca5daa96', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 2395 on dash 609', 'caller_json': {'queryId': 2395, 'interval': 'HOURLY', 'dashboard_id': 609, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-269rc', 'time_start': 1606251604.1448753, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 15} * {'id': '82240c16-ec84-4279-9cd4-694a73a145eb', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_6435b6004863fd5a10de1abc8bf294cd', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3188 on dash 624', 'caller_json': {'queryId': 3188, 'interval': 'HOURLY', 'dashboard_id': 624, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-269rc', 'time_start': 1606251609.9815636, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 14} * {'id': '9c062ae6-bc8d-44d1-b861-068cd1032c38', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_6912fef8aee81d8aa0a68f1326e5bbf6', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3117 on dash 616', 'caller_json': {'queryId': 3117, 'interval': 'HOURLY', 'dashboard_id': 616, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-269rc', 'time_start': 1606251609.2058136, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 13} -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-94qs4: OK * {'id': '87228aca-e02f-48a3-9096-5540c7b4fb22', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_e97a5e28903b3652a4a2c386fc287cc6', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3115 on dash 616', 'caller_json': {'queryId': 3115, 'interval': 'HOURLY', 'dashboard_id': 616, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-94qs4', 'time_start': 1606251609.4260392, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 13} -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-6xldj: OK * {'id': '1a8982d5-32cd-4fcf-a134-72a79d7e5da7', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_02758ef185f77a7397ead9e8e90e9743', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 2397 on dash 609', 'caller_json': {'queryId': 2397, 'interval': 'HOURLY', 'dashboard_id': 609, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-6xldj', 'time_start': 1606251604.4064894, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 16} * {'id': 'b2804139-6d51-4ffe-817b-8b9efc7a9cd4', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_1920e1f67f84ac24fb3d2b8e8bb4bd22', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3114 on dash 616', 'caller_json': {'queryId': 3114, 'interval': 'HOURLY', 'dashboard_id': 616, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-6xldj', 'time_start': 1606251609.3467886, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 15} -&gt; celery@query-runner-celery-ga-55cdb77d4-j6994: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-m8wfp: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-dgmf9: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-drdl2: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-lgstj: OK * {'id': '741f2751-ca24-4bcd-b78c-1d92e679952d', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_e526e7f0e7a7c28271dc8f08ee19504b', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3021 on dash 595', 'caller_json': {'queryId': 3021, 'interval': 'HOURLY', 'dashboard_id': 595, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-lgstj', 'time_start': 1606251616.69369, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 16} -&gt; celery@query-runner-celery-ga-55cdb77d4-6jxzz: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-g9swh: OK * {'id': '650009cc-4d6b-42c4-96b1-9a3112a1e5c8', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_711f6cdfe13c22710887f00f5678baeb', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 2399 on dash 609', 'caller_json': {'queryId': 2399, 'interval': 'HOURLY', 'dashboard_id': 609, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-g9swh', 'time_start': 1606251604.6513581, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 15} * {'id': 'd74e3272-45f0-44ee-bcab-7b67de60b407', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_5ca350ca8b4b185ad42f94c6dd3b6fc9', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3189 on dash 624', 'caller_json': {'queryId': 3189, 'interval': 'HOURLY', 'dashboard_id': 624, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-g9swh', 'time_start': 1606251611.4904687, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 14} * {'id': '6f61b237-fa9e-4b30-8131-8d8ee75306c5', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_9bc92aabee38e8d6d607bbb24785d814', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 2137 on dash 557', 'caller_json': {'queryId': 2137, 'interval': 'HOURLY', 'dashboard_id': 557, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-g9swh', 'time_start': 1606248030.1126661, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 13} -&gt; celery@query-runner-celery-datalake-687847cbb6-dvdpl: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-pdxsk: OK - empty - -&gt; celery@query-runner-celery-ga-55cdb77d4-vl2t6: OK - empty - -&gt; celery@query-runner-celery-default-6c9bd65fd7-g55gl: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-7spd4: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-qskvj: OK * {'id': 'ab45784f-8d85-452c-b690-43ead1a010c6', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_bb8a680bab37f6bc86eb9f5c7435d656', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 2816 on dash 609', 'caller_json': {'queryId': 2816, 'interval': 'HOURLY', 'dashboard_id': 609, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-qskvj', 'time_start': 1606251605.576281, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 14} * {'id': '4e64157e-9356-4362-88af-318013c0c4de', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_4859064fc4b96df99eec68e94f733157', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3143 on dash 616', 'caller_json': {'queryId': 3143, 'interval': 'HOURLY', 'dashboard_id': 616, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-qskvj', 'time_start': 1606251609.5426545, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 13} * {'id': 'ac0c403b-ade6-4377-9a41-6d305268204b', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_b04a82ce9376c9c6618c3a300abe4182', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3109', 'caller_json': {'queryId': 3109, 'interval': 'HOURLY', 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-qskvj', 'time_start': 1606240815.8285584, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 16} * {'id': 'e9c368de-d47f-4a84-b05d-81cbda00a394', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_4d03e965dbd57a05d6071c0b5cbf699d', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 2398 on dash 609', 'caller_json': {'queryId': 2398, 'interval': 'HOURLY', 'dashboard_id': 609, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-qskvj', 'time_start': 1606251604.517987, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 15} -&gt; celery@query-runner-celery-default-6c9bd65fd7-8zdvm: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-2zxhc: OK * {'id': '03e786df-44b1-412a-8354-3acbc762528f', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_0687aa16794011f4d1a0ee1023173bf8', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3105 on dash 557', 'caller_json': {'queryId': 3105, 'interval': 'HOURLY', 'dashboard_id': 557, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-2zxhc', 'time_start': 1606251618.9102547, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 16} * {'id': '646617ce-9835-4b60-b5fd-c4a4a5631749', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_ed09cf8c1166115a4ed1a5aa33b032c7', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3144 on dash 616', 'caller_json': {'queryId': 3144, 'interval': 'HOURLY', 'dashboard_id': 616, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-2zxhc', 'time_start': 1606251609.6082683, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 15} root@query-runner-celery-datalake-687847cbb6-mxrnc:/opt/workdir# celery -A tasks inspect reserved 2020-11-24 21:04:03,851 [WARNING] datadog.api: No agent or invalid configuration file found 2020-11-24 21:04:03,854 [INFO] tasks.datadog_helper: initialized with 2020-11-24 21:04:03,855 [INFO] tasks.datadog_helper: {'statsd_host': '172.29.156.91', 'statsd_port': 8125, 'statsd_namespace': 'query_runner_celery_tasks'} -&gt; celery@query-runner-celery-default-6c9bd65fd7-4cdz6: OK - empty - -&gt; celery@query-runner-celery-default-6c9bd65fd7-v8w22: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-mxrnc: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-68xqn: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-q82hx: OK - empty - -&gt; celery@query-runner-celery-ga-55cdb77d4-lsk2z: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-4dx2b: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-hnrhw: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-lgstj: OK - empty - -&gt; celery@query-runner-celery-default-6c9bd65fd7-9f8r2: OK - empty - -&gt; celery@query-runner-celery-ga-55cdb77d4-j6994: OK - empty - -&gt; celery@query-runner-celery-ga-55cdb77d4-9jp2n: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-92hxc: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-269rc: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-nqhtk: OK - empty - -&gt; celery@query-runner-celery-default-6c9bd65fd7-4s4lz: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-94qs4: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-m8wfp: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-6xldj: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-dgmf9: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-g9swh: OK - empty - -&gt; celery@query-runner-celery-ga-55cdb77d4-6jxzz: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-dvdpl: OK - empty - -&gt; celery@query-runner-celery-default-6c9bd65fd7-g55gl: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-drdl2: OK - empty - -&gt; celery@query-runner-celery-ga-55cdb77d4-vl2t6: OK - empty - -&gt; celery@query-runner-celery-default-6c9bd65fd7-8zdvm: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-qskvj: OK * {'id': '3f501bbe-6c56-48e2-ba64-9b1adac30695', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': &quot;{'query_id': 'query_6eb04958c42a71ebd014f9be9e116f73', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 2823 on dash 557', 'caller_json': {'queryId': 2823, 'interval': 'HOURLY', 'dashboard_id': 557, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}&quot;, 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-qskvj', 'time_start': None, 'acknowledged': False, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': None} -&gt; celery@query-runner-celery-datalake-687847cbb6-7spd4: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-2zxhc: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-pdxsk: OK - empty - "><pre class="notranslate"><code class="notranslate"> root@query-runner-celery-datalake-687847cbb6-mxrnc:/opt/workdir# celery -A tasks inspect active 2020-11-24 21:03:59,312 [WARNING] datadog.api: No agent or invalid configuration file found 2020-11-24 21:03:59,316 [INFO] tasks.datadog_helper: initialized with 2020-11-24 21:03:59,316 [INFO] tasks.datadog_helper: {'statsd_host': '172.29.156.91', 'statsd_port': 8125, 'statsd_namespace': 'query_runner_celery_tasks'} -&gt; celery@query-runner-celery-default-6c9bd65fd7-4cdz6: OK - empty - -&gt; celery@query-runner-celery-default-6c9bd65fd7-v8w22: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-68xqn: OK - empty - -&gt; celery@query-runner-celery-ga-55cdb77d4-lsk2z: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-mxrnc: OK - empty - -&gt; celery@query-runner-celery-default-6c9bd65fd7-9f8r2: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-hnrhw: OK - empty - -&gt; celery@query-runner-celery-ga-55cdb77d4-9jp2n: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-4dx2b: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-q82hx: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-nqhtk: OK * {'id': '93a32a04-7a6d-4a32-a2ee-8b88ca4f9049', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_aa42f1c1970bc1ac2778a65c60b2e08b', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3107', 'caller_json': {'queryId': 3107, 'interval': 'HOURLY', 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-nqhtk', 'time_start': 1606251603.8548772, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 15} * {'id': '747a1dd7-209a-4870-a636-c18176587723', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_373fafa1388d047c83cae9d40f249655', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3149 on dash 616', 'caller_json': {'queryId': 3149, 'interval': 'HOURLY', 'dashboard_id': 616, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-nqhtk', 'time_start': 1606251609.6809852, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 13} * {'id': '28ec904f-197f-4aef-99e2-0887f6f85ec7', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_829e5787764013fbf5eb0958eec86a8f', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 2400 on dash 609', 'caller_json': {'queryId': 2400, 'interval': 'HOURLY', 'dashboard_id': 609, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-nqhtk', 'time_start': 1606251604.9346218, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 16} * {'id': '705d4f46-662d-4930-9011-265e1065346d', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_04cd73d13695b2a7d9503148018c2650', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3179 on dash 616', 'caller_json': {'queryId': 3179, 'interval': 'HOURLY', 'dashboard_id': 616, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-nqhtk', 'time_start': 1606240820.285725, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 14} -&gt; celery@query-runner-celery-default-6c9bd65fd7-4s4lz: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-92hxc: OK * {'id': '7afd7a99-368e-4995-8e5a-a1802dff7476', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_9fe008b693e6dc12999bf58212430afa', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 2403 on dash 609', 'caller_json': {'queryId': 2403, 'interval': 'HOURLY', 'dashboard_id': 609, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-92hxc', 'time_start': 1606251605.1041203, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 15} * {'id': '4d59fc3f-40b9-4d51-ad41-e241518c629f', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_9a6f5ab9f25ab21bddcc128aee8677d6', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 2396 on dash 609', 'caller_json': {'queryId': 2396, 'interval': 'HOURLY', 'dashboard_id': 609, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-92hxc', 'time_start': 1606251604.2693179, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 16} * {'id': '05bc6789-2183-47d2-abe0-7093bad200a5', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_a937a6def4c1010c15dd3c5e1b488d2d', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3116 on dash 616', 'caller_json': {'queryId': 3116, 'interval': 'HOURLY', 'dashboard_id': 616, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-92hxc', 'time_start': 1606251609.2829497, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 14} -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-269rc: OK * {'id': 'd6ddf309-e58a-4f2d-be71-1824e618716e', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_b7253439941188da3776ffdc8bab2b07', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 2401 on dash 609', 'caller_json': {'queryId': 2401, 'interval': 'HOURLY', 'dashboard_id': 609, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-269rc', 'time_start': 1606251605.0180476, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 16} * {'id': '62bb08c5-d6a6-4966-8de1-0d872faba09f', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_b75d10ba197e1bb1ab787217ca5daa96', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 2395 on dash 609', 'caller_json': {'queryId': 2395, 'interval': 'HOURLY', 'dashboard_id': 609, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-269rc', 'time_start': 1606251604.1448753, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 15} * {'id': '82240c16-ec84-4279-9cd4-694a73a145eb', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_6435b6004863fd5a10de1abc8bf294cd', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3188 on dash 624', 'caller_json': {'queryId': 3188, 'interval': 'HOURLY', 'dashboard_id': 624, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-269rc', 'time_start': 1606251609.9815636, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 14} * {'id': '9c062ae6-bc8d-44d1-b861-068cd1032c38', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_6912fef8aee81d8aa0a68f1326e5bbf6', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3117 on dash 616', 'caller_json': {'queryId': 3117, 'interval': 'HOURLY', 'dashboard_id': 616, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-269rc', 'time_start': 1606251609.2058136, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 13} -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-94qs4: OK * {'id': '87228aca-e02f-48a3-9096-5540c7b4fb22', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_e97a5e28903b3652a4a2c386fc287cc6', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3115 on dash 616', 'caller_json': {'queryId': 3115, 'interval': 'HOURLY', 'dashboard_id': 616, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-94qs4', 'time_start': 1606251609.4260392, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 13} -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-6xldj: OK * {'id': '1a8982d5-32cd-4fcf-a134-72a79d7e5da7', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_02758ef185f77a7397ead9e8e90e9743', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 2397 on dash 609', 'caller_json': {'queryId': 2397, 'interval': 'HOURLY', 'dashboard_id': 609, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-6xldj', 'time_start': 1606251604.4064894, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 16} * {'id': 'b2804139-6d51-4ffe-817b-8b9efc7a9cd4', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_1920e1f67f84ac24fb3d2b8e8bb4bd22', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3114 on dash 616', 'caller_json': {'queryId': 3114, 'interval': 'HOURLY', 'dashboard_id': 616, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-6xldj', 'time_start': 1606251609.3467886, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 15} -&gt; celery@query-runner-celery-ga-55cdb77d4-j6994: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-m8wfp: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-dgmf9: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-drdl2: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-lgstj: OK * {'id': '741f2751-ca24-4bcd-b78c-1d92e679952d', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_e526e7f0e7a7c28271dc8f08ee19504b', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3021 on dash 595', 'caller_json': {'queryId': 3021, 'interval': 'HOURLY', 'dashboard_id': 595, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-lgstj', 'time_start': 1606251616.69369, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 16} -&gt; celery@query-runner-celery-ga-55cdb77d4-6jxzz: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-g9swh: OK * {'id': '650009cc-4d6b-42c4-96b1-9a3112a1e5c8', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_711f6cdfe13c22710887f00f5678baeb', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 2399 on dash 609', 'caller_json': {'queryId': 2399, 'interval': 'HOURLY', 'dashboard_id': 609, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-g9swh', 'time_start': 1606251604.6513581, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 15} * {'id': 'd74e3272-45f0-44ee-bcab-7b67de60b407', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_5ca350ca8b4b185ad42f94c6dd3b6fc9', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3189 on dash 624', 'caller_json': {'queryId': 3189, 'interval': 'HOURLY', 'dashboard_id': 624, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-g9swh', 'time_start': 1606251611.4904687, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 14} * {'id': '6f61b237-fa9e-4b30-8131-8d8ee75306c5', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_9bc92aabee38e8d6d607bbb24785d814', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 2137 on dash 557', 'caller_json': {'queryId': 2137, 'interval': 'HOURLY', 'dashboard_id': 557, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-g9swh', 'time_start': 1606248030.1126661, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 13} -&gt; celery@query-runner-celery-datalake-687847cbb6-dvdpl: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-pdxsk: OK - empty - -&gt; celery@query-runner-celery-ga-55cdb77d4-vl2t6: OK - empty - -&gt; celery@query-runner-celery-default-6c9bd65fd7-g55gl: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-7spd4: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-qskvj: OK * {'id': 'ab45784f-8d85-452c-b690-43ead1a010c6', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_bb8a680bab37f6bc86eb9f5c7435d656', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 2816 on dash 609', 'caller_json': {'queryId': 2816, 'interval': 'HOURLY', 'dashboard_id': 609, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-qskvj', 'time_start': 1606251605.576281, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 14} * {'id': '4e64157e-9356-4362-88af-318013c0c4de', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_4859064fc4b96df99eec68e94f733157', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3143 on dash 616', 'caller_json': {'queryId': 3143, 'interval': 'HOURLY', 'dashboard_id': 616, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-qskvj', 'time_start': 1606251609.5426545, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 13} * {'id': 'ac0c403b-ade6-4377-9a41-6d305268204b', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_b04a82ce9376c9c6618c3a300abe4182', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3109', 'caller_json': {'queryId': 3109, 'interval': 'HOURLY', 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-qskvj', 'time_start': 1606240815.8285584, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 16} * {'id': 'e9c368de-d47f-4a84-b05d-81cbda00a394', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_4d03e965dbd57a05d6071c0b5cbf699d', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 2398 on dash 609', 'caller_json': {'queryId': 2398, 'interval': 'HOURLY', 'dashboard_id': 609, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-qskvj', 'time_start': 1606251604.517987, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 15} -&gt; celery@query-runner-celery-default-6c9bd65fd7-8zdvm: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-2zxhc: OK * {'id': '03e786df-44b1-412a-8354-3acbc762528f', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_0687aa16794011f4d1a0ee1023173bf8', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3105 on dash 557', 'caller_json': {'queryId': 3105, 'interval': 'HOURLY', 'dashboard_id': 557, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-2zxhc', 'time_start': 1606251618.9102547, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 16} * {'id': '646617ce-9835-4b60-b5fd-c4a4a5631749', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_ed09cf8c1166115a4ed1a5aa33b032c7', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 3144 on dash 616', 'caller_json': {'queryId': 3144, 'interval': 'HOURLY', 'dashboard_id': 616, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-2zxhc', 'time_start': 1606251609.6082683, 'acknowledged': True, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': 15} root@query-runner-celery-datalake-687847cbb6-mxrnc:/opt/workdir# celery -A tasks inspect reserved 2020-11-24 21:04:03,851 [WARNING] datadog.api: No agent or invalid configuration file found 2020-11-24 21:04:03,854 [INFO] tasks.datadog_helper: initialized with 2020-11-24 21:04:03,855 [INFO] tasks.datadog_helper: {'statsd_host': '172.29.156.91', 'statsd_port': 8125, 'statsd_namespace': 'query_runner_celery_tasks'} -&gt; celery@query-runner-celery-default-6c9bd65fd7-4cdz6: OK - empty - -&gt; celery@query-runner-celery-default-6c9bd65fd7-v8w22: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-mxrnc: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-68xqn: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-q82hx: OK - empty - -&gt; celery@query-runner-celery-ga-55cdb77d4-lsk2z: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-4dx2b: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-hnrhw: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-lgstj: OK - empty - -&gt; celery@query-runner-celery-default-6c9bd65fd7-9f8r2: OK - empty - -&gt; celery@query-runner-celery-ga-55cdb77d4-j6994: OK - empty - -&gt; celery@query-runner-celery-ga-55cdb77d4-9jp2n: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-92hxc: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-269rc: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-nqhtk: OK - empty - -&gt; celery@query-runner-celery-default-6c9bd65fd7-4s4lz: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-94qs4: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-m8wfp: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-6xldj: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-dgmf9: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-g9swh: OK - empty - -&gt; celery@query-runner-celery-ga-55cdb77d4-6jxzz: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-dvdpl: OK - empty - -&gt; celery@query-runner-celery-default-6c9bd65fd7-g55gl: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-drdl2: OK - empty - -&gt; celery@query-runner-celery-ga-55cdb77d4-vl2t6: OK - empty - -&gt; celery@query-runner-celery-default-6c9bd65fd7-8zdvm: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-qskvj: OK * {'id': '3f501bbe-6c56-48e2-ba64-9b1adac30695', 'name': 'tasks.query.run_query', 'args': '()', 'kwargs': "{'query_id': 'query_6eb04958c42a71ebd014f9be9e116f73', 'queue': 'datalake-interval-refresh', 'caller_info': {'caller': 'Interval refresh HOURLY for Query id 2823 on dash 557', 'caller_json': {'queryId': 2823, 'interval': 'HOURLY', 'dashboard_id': 557, 'action': 'refresh_data'}, 'user_id': '0', 'username': 'intervalRefreshUser'}}", 'type': 'tasks.query.run_query', 'hostname': 'celery@query-runner-celery-datalake-interval-refresh-784bb858c8-qskvj', 'time_start': None, 'acknowledged': False, 'delivery_info': {'exchange': '', 'routing_key': 'datalake-interval-refresh', 'priority': 0, 'redelivered': None}, 'worker_pid': None} -&gt; celery@query-runner-celery-datalake-687847cbb6-7spd4: OK - empty - -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-2zxhc: OK - empty - -&gt; celery@query-runner-celery-datalake-687847cbb6-pdxsk: OK - empty - </code></pre></div> <p dir="auto"></p> </details> <p dir="auto">Also, here is the output of <code class="notranslate">celery inspect stats</code> where you can see <code class="notranslate">fair</code> is getting in properly</p> <details> <summary><b><code class="notranslate">celery inspect stats for worker query-runner-celery-datalake-interval-refresh-784bb858c8-dgmf9 </code> Output:</b></summary> <p dir="auto"> ``` -&gt; celery@query-runner-celery-datalake-interval-refresh-784bb858c8-dgmf9: OK { "broker": { "alternates": [], "connect_timeout": 4, "failover_strategy": "round-robin", "heartbeat": 120.0, "hostname": "query-runner-redis-master", "insist": false, "login_method": null, "port": 6379, "ssl": false, "transport": "redis", "transport_options": {}, "uri_prefix": null, "userid": null, "virtual_host": "0" }, "clock": "8600271", "pid": 8, "pool": { "max-concurrency": 4, "max-tasks-per-child": "N/A", "processes": [ 13, 14, 15, 16 ], "put-guarded-by-semaphore": false, "timeouts": [ 0, 0 ], "writes": { "all": "42.86%, 42.86%, 14.29%", "avg": "33.33%", "inqueues": { "active": 0, "total": 4 }, "raw": "3, 3, 1", "strategy": "fair", "total": 7 } }, "prefetch_count": 4, "rusage": { "idrss": 0, "inblock": 72400, "isrss": 0, "ixrss": 0, "majflt": 158, "maxrss": 68800, "minflt": 69557, "msgrcv": 0, "msgsnd": 0, "nivcsw": 2942, "nsignals": 0, "nswap": 0, "nvcsw": 334278, "oublock": 1584, "stime": 7.775837, "utime": 152.889586 }, "total": { "tasks.query.run_query": 7 } } ``` </p> </details> <p dir="auto">Generally, we have a lot of tasks long running tasks. This issue is making our tasks take double the amount of time because they are unnecessarily waiting behind other tasks without utilizing the other workers.</p>
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li>[x ] I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li>[ x] This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li> <li>[ x] I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li>[ x] I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li>[x ] I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li>[ x] I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="497429847" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/5748" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/5748/hovercard" href="https://github.com/celery/celery/issues/5748">#5748</a></li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>: 4.4.0</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <p dir="auto">I first start Celery with Beat option (-B).<br> It add_periodic_task after config as specified in the doc (<a href="https://docs.celeryproject.org/en/stable/userguide/periodic-tasks.html#starting-the-scheduler" rel="nofollow">https://docs.celeryproject.org/en/stable/userguide/periodic-tasks.html#starting-the-scheduler</a>)<br> Then, I try to add or remove a task though API Flask app, by either:</p> <ul dir="auto"> <li>modifying the app.conf.beat_schedule (remove or add task by name</li> <li>modifying the celerybeat-schedule shelve</li> </ul> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: 3.7.4</li> <li><strong>Minimal Celery Version</strong>: 4.4.°</li> <li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Version</strong>: RabboitMQ 3.8.0</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: Redhat 7</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> amqp==2.5.2 astroid==2.3.3 attrs==19.3.0 autopep8==1.4.4 Babel==2.7.0 billiard==3.6.3.0 celery==4.4.0 certifi==2019.9.11 chardet==3.0.4 Click==7.0 coverage==4.5.4 fixtures-mongoengine==1.3.1 Flask==1.1.1 Flask-Babel==0.12.2 Flask-Session==0.3.1 Flask-WTF==0.14.2 idna==2.8 importlib-metadata==1.5.0 isodate==0.6.0 isort==4.3.21 itsdangerous==1.1.0 Jinja2==2.11.1 jsonschema==3.2.0 kombu==4.6.8 lazy-object-proxy==1.4.3 MarkupSafe==1.1.1 mccabe==0.6.1 mongoengine==0.18.2 paho-mqtt==1.4.0 pycodestyle==2.5.0 pylint==2.4.2 pymongo==3.9.0 pyrsistent==0.15.7 pytz==2019.3 PyYAML==5.3 requests==2.22.0 semver==2.9.0 six==1.12.0 typed-ast==1.4.1 urllib3==1.25.6 vine==1.3.0 Werkzeug==0.16.0 wrapt==1.11.2 WTForms==2.2.1 zipp==2.1.0 </p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">I would like to be able to add or remove a task dynmically.</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">In fact nothing happen, whatever I do, If I remove the task either from shelve (as suggested here: <a href="https://stackoverflow.com/questions/10194975/how-to-dynamically-add-remove-periodic-tasks-to-celery-celerybeat" rel="nofollow">https://stackoverflow.com/questions/10194975/how-to-dynamically-add-remove-periodic-tasks-to-celery-celerybeat</a> proposed by Tristant Brown) or from config app.conf.beat_schedule, the task continue to be schedule at the original cron rules I provided.</p> <p dir="auto">I first though it was an issue in the sync processed which happend every 3 minutes, and after looking at the code, I discovered that in <code class="notranslate">beat.py</code> file line 421, the function sync does nothing..</p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=darren.davison" rel="nofollow">Darren Davison</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4930?redirect=false" rel="nofollow">SPR-4930</a></strong> and commented</p> <p dir="auto">We have a controller that uses <code class="notranslate">@SessionAttributes</code>, and as such Spring always adds HTTP headers to prevent caching (see AnnotationMethodHandlerAdapter.handle() )</p> <p dir="auto">This is causing us a problem in that MSIE users invoke the controller, click links on the page generated by it, and then get the "This page has expired" warning from IE if they hit their back button. Interestingly, if the HTTP headers are set to expire after 1 second, MSIE happily shows the user the page from cache, even though it really HAS expired according to the protocol, so there's definitely (yet another) IE fault at play here too. Firefox and Safari don't exhibit this issue at all.</p> <p dir="auto">There is no way to override this behaviour in the AnnotationMethodHandlerAdapter class at present, so I'm wondering if the default behaviour can be made more flexible? Ideally this would be by way of an attribute on the <code class="notranslate">@RequestMapping</code> (or maybe a new annotation) which could be read by the handler adapter. If no value is supplied, it defaults to 0, thus preserving current system behaviour and backwards compatibility, otherwise it specifies the cache seconds to use.</p> <p dir="auto">Perhaps adding such an attribute to the RequestMapping/new annotation would provide more benefit in finer grained cache control for annotated controllers, falling back to that set on the handler adapter.</p> <p dir="auto">I'll write and test the patch if any of that sounds like it might be acceptable.</p> <p dir="auto">Or perhaps there's already some way to handle this that I missed..?</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.5.4</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/14195/SPR-4930.patch" rel="nofollow">SPR-4930.patch</a> (<em>5.14 kB</em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=abyrne" rel="nofollow">Ailish Byrne</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2972?redirect=false" rel="nofollow">SPR-2972</a></strong> and commented</p> <p dir="auto">i'm sure i'm just missing something, but i've looked and looked and can't figure out what it is. we are using mutiple BeanNameAutoProxyCreators - for transaction management, caching, and method logging. i upgraded to 2.0.1 then noticed that when a given bean was listed for more that one of the auto proxy creators, only one picked it up. i tried each auto proxy creator in turn and verified that it was working, confirming that the problem was just when more than one was in effect (i think). here is the related configuration from our SpringBeans.xml (slightly simplified to list only one bean for each auto proxy creator):</p> <p dir="auto">&lt;bean id="transactionInterceptor" class="org.springframework.transaction.interceptor.TransactionInterceptor"&gt;<br> &lt;property name="transactionManager"&gt;<br> &lt;ref bean="transactionManager" /&gt;<br> &lt;/property&gt;<br> &lt;property name="transactionAttributeSource"&gt;<br> &lt;bean id="transactionAttributeSource" class="org.kuali.core.util.spring.DefaultingNameMatchTransactionAttributeSource"&gt;<br> &lt;property name="properties"&gt;<br> &lt;props&gt;<br> &lt;prop key="get*"&gt;PROPAGATION_SUPPORTS&lt;/prop&gt;<br> &lt;prop key="is*"&gt;PROPAGATION_SUPPORTS&lt;/prop&gt;<br> &lt;prop key="forceLookup*"&gt;PROPAGATION_SUPPORTS&lt;/prop&gt;<br> &lt;prop key="noLookup*"&gt;PROPAGATION_SUPPORTS&lt;/prop&gt;<br> &lt;prop key="performLookup*"&gt;PROPAGATION_SUPPORTS&lt;/prop&gt;<br> &lt;prop key="find*"&gt;PROPAGATION_SUPPORTS&lt;/prop&gt;<br> &lt;prop key="search*"&gt;PROPAGATION_SUPPORTS&lt;/prop&gt;<br> &lt;prop key="retrieve*"&gt;PROPAGATION_SUPPORTS&lt;/prop&gt;<br> &lt;prop key="count*"&gt;PROPAGATION_SUPPORTS&lt;/prop&gt;<br> &lt;/props&gt;<br> &lt;/property&gt;<br> &lt;property name="nontransactionalMethods"&gt;<br> &lt;list&gt;<br> &lt;value&gt;getAllProperties&lt;/value&gt;<br> &lt;value&gt;getPropertyString&lt;/value&gt;<br> &lt;/list&gt;<br> &lt;/property&gt;<br> &lt;property name="defaultTransactionAttribute"&gt;<br> &lt;value&gt;PROPAGATION_REQUIRED&lt;/value&gt;<br> &lt;/property&gt;<br> &lt;/bean&gt;<br> &lt;/property&gt;<br> &lt;/bean&gt;<br> &lt;bean id="transactionAutoProxyCreator" class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator"&gt;<br> &lt;property name="interceptorNames"&gt;<br> &lt;list&gt;<br> &lt;idref local="transactionInterceptor" /&gt;<br> &lt;/list&gt;<br> &lt;/property&gt;<br> &lt;property name="beanNames"&gt;<br> &lt;list&gt;<br> &lt;idref bean="persistenceStructureService" /&gt;<br> &lt;/list&gt;<br> &lt;/property&gt;<br> &lt;/bean&gt;<br> &lt;bean id="methodResultsCacheAdministrator" class="com.opensymphony.oscache.general.GeneralCacheAdministrator" destroy-method="destroy"&gt;<br> &lt;constructor-arg index="0"&gt;<br> &lt;props&gt;<br> &lt;prop key="cache.memory"&gt;true&lt;/prop&gt;<br> &lt;prop key="cache.key"&gt;__oscache_mrcache&lt;/prop&gt;<br> &lt;prop key="cache.persistence.overflow.only"&gt;false&lt;/prop&gt;<br> &lt;prop key="cache.capacity"&gt;1000&lt;/prop&gt;<br> &lt;prop key="cache.event.listeners"&gt;org.kuali.core.util.cache.MethodResultsCacheMonitor&lt;/prop&gt;<br> &lt;/props&gt;<br> &lt;/constructor-arg&gt;<br> &lt;/bean&gt;<br> &lt;bean id="methodCache" factory-bean="methodResultsCacheAdministrator" factory-method="getCache" /&gt;<br> &lt;bean id="methodCacheInterceptor" class="org.kuali.core.util.cache.MethodCacheInterceptor"&gt;<br> &lt;property name="cache"&gt;<br> &lt;ref local="methodCache" /&gt;<br> &lt;/property&gt;<br> &lt;property name="expirationTimeInSeconds"&gt;<br> &lt;value&gt;10&lt;/value&gt;<br> &lt;/property&gt;<br> &lt;/bean&gt;<br> &lt;bean id="methodCachePointCut" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor"&gt;<br> &lt;property name="advice"&gt;<br> &lt;ref local="methodCacheInterceptor" /&gt;<br> &lt;/property&gt;<br> &lt;property name="patterns"&gt;<br> &lt;list&gt;<br> &lt;value&gt;org.kuali.<em>.PersistenceStructureService.</em>..*&lt;/value&gt;<br> &lt;/list&gt;<br> &lt;/property&gt;<br> &lt;/bean&gt;<br> &lt;bean id="resultsCachingProxyCreator" class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator"&gt;<br> &lt;property name="interceptorNames"&gt;<br> &lt;list&gt;<br> &lt;idref local="methodCachePointCut" /&gt;<br> &lt;/list&gt;<br> &lt;/property&gt;<br> &lt;property name="beanNames"&gt;<br> &lt;list&gt;<br> &lt;idref bean="persistenceStructureService" /&gt;<br> &lt;/list&gt;<br> &lt;/property&gt;<br> &lt;/bean&gt;<br> &lt;bean id="methodLoggingPointCut" class="org.springframework.aop.support.DefaultPointcutAdvisor"&gt;<br> &lt;property name="advice"&gt;<br> &lt;bean id="methodLoggingInterceptor" class="org.kuali.core.util.spring.MethodLoggingInterceptor" /&gt;<br> &lt;/property&gt;<br> &lt;/bean&gt;<br> &lt;bean id="methodLoggingProxyCreator" class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator"&gt;<br> &lt;property name="interceptorNames"&gt;<br> &lt;list&gt;<br> &lt;idref local="methodLoggingPointCut" /&gt;<br> &lt;/list&gt;<br> &lt;/property&gt;<br> &lt;property name="beanNames"&gt;<br> &lt;list&gt;<br> &lt;idref bean="persistenceStructureService" /&gt;<br> &lt;/list&gt;<br> &lt;/property&gt;<br> &lt;/bean&gt;</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0.1</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="398074283" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7695" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7695/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7695">#7695</a> fix of SPR-2721 broke nested proxies (<em><strong>"is duplicated by"</strong></em>)</li> </ul>
0
<p dir="auto">seriously, each tsconfig.json has to have its own folder in order to be referenced with <code class="notranslate">--project</code> parameter</p> <ul dir="auto"> <li><strong>What if I need 2 projects based on the same set of files?</strong></li> </ul>
<p dir="auto">This would allow you to specify a tsconfig.json that has a different name.</p> <p dir="auto">If you specify a directory, it should first try to resolve tsconfig.json. If it can't find it, it should find the first tsconfig*.json file</p> <p dir="auto">References: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="70177839" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/2868" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/2868/hovercard?comment_id=95262429&amp;comment_type=issue_comment" href="https://github.com/microsoft/TypeScript/issues/2868#issuecomment-95262429">#2868 (comment)</a></p>
1
<p dir="auto">My main issue is with the character "$", currently when trying to select $myVar the double click only select myVar.<br> This is uber annoying since i'm used to call my variable like this.</p> <p dir="auto">Moreover when editing php scripts it gets more difficult to avoid this issue.</p> <p dir="auto">Overall, the double click selection should stick to the variable name pattern of the current language if possible, or accept the $ in the word, at least.</p>
<p dir="auto">Now that <a href="http://blog.atom.io/2014/10/31/language-scoped-config.html" rel="nofollow">Language Specific Configuration Settings</a>, have landed, should we consider removing <code class="notranslate">$</code> from <code class="notranslate">nonWordCharacters</code>? How often does one want to select only the text of a variable name, and not the dollar sign too?</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">ansible-vault</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.0.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.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.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] "><pre class="notranslate"><code class="notranslate">ansible 2.4.0.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.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.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">DEFAULT_VAULT_PASSWORD_FILE(env: ANSIBLE_VAULT_PASSWORD_FILE) = /test</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">running in ubuntu 16.04<br> not managing any os.</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">From the output of `ansible-vault --help decrypt</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" --output=OUTPUT_FILE output file name for encrypt or decrypt; use - for stdout"><pre class="notranslate"><code class="notranslate"> --output=OUTPUT_FILE output file name for encrypt or decrypt; use - for stdout </code></pre></div> <p dir="auto">When using <code class="notranslate">ansible-vault decrypt</code> with <code class="notranslate">--output=-</code> or <code class="notranslate">--output -</code> it decrypts to a file named <code class="notranslate">-</code> instead to stdout as expected.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Create Dockerfile</p> <div class="highlight highlight-source-dockerfile notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="FROM ubuntu:16.04 RUN apt-get update RUN apt-get install -y software-properties-common RUN apt-add-repository ppa:ansible/ansible RUN apt-get update RUN apt-get install -y ansible ENV ANSIBLE_VAULT_PASSWORD_FILE=test RUN echo &quot;test&quot; &gt; test RUN echo &quot;test&quot; &gt; test.txt RUN ansible-vault encrypt test.txt RUN ansible-vault decrypt test.txt --output - RUN cat ./-"><pre class="notranslate"><span class="pl-k">FROM</span> ubuntu:16.04 <span class="pl-k">RUN</span> apt-get update <span class="pl-k">RUN</span> apt-get install -y software-properties-common <span class="pl-k">RUN</span> apt-add-repository ppa:ansible/ansible <span class="pl-k">RUN</span> apt-get update <span class="pl-k">RUN</span> apt-get install -y ansible <span class="pl-k">ENV</span> ANSIBLE_VAULT_PASSWORD_FILE=test <span class="pl-k">RUN</span> echo <span class="pl-s">"test"</span> &gt; test <span class="pl-k">RUN</span> echo <span class="pl-s">"test"</span> &gt; test.txt <span class="pl-k">RUN</span> ansible-vault encrypt test.txt <span class="pl-k">RUN</span> ansible-vault decrypt test.txt --output - <span class="pl-k">RUN</span> cat ./-</pre></div> <p dir="auto">run:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="docker build -t ansible-vault-test . docker run -it --rm ansible-vault-test ansible-vault decrypt --output - test.txt docker run -it --rm ansible-vault-test cat -- ./-"><pre class="notranslate">docker build -t ansible-vault-test <span class="pl-c1">.</span> docker run -it --rm ansible-vault-test ansible-vault decrypt --output - test.txt docker run -it --rm ansible-vault-test cat -- ./-</pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">Breefly:<br> ansible-vault writes the decrypted file to stdout.</p> <p dir="auto">TLDR:<br> run:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="docker build -t ansible-vault-test . docker run -it --rm ansible-vault-test ansible-vault decrypt --output - test.txt"><pre class="notranslate">docker build -t ansible-vault-test <span class="pl-c1">.</span> docker run -it --rm ansible-vault-test ansible-vault decrypt --output - test.txt</pre></div> <p dir="auto">expected result (f.e using ansible 2.3.x ):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test Decryption successful"><pre class="notranslate"><code class="notranslate">test Decryption successful </code></pre></div> <p dir="auto">actual result:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Decryption successful"><pre class="notranslate"><code class="notranslate">Decryption successful </code></pre></div> <p dir="auto">run:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="docker run -it --rm ansible-vault-test cat -- ./-"><pre class="notranslate">docker run -it --rm ansible-vault-test cat -- ./-</pre></div> <p dir="auto">expected result:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cat: ./-: No such file or directory"><pre class="notranslate"><code class="notranslate">cat: ./-: No such file or directory </code></pre></div> <p dir="auto">actual result</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test"><pre class="notranslate"><code class="notranslate">test </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">ansible-vault writes the decrypted file to a file named <code class="notranslate">-</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"> </code></pre></div>
<h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.4.0.0"><pre class="notranslate"><code class="notranslate">ansible 2.4.0.0 </code></pre></div> <p dir="auto">In ansible 2.3.x, it was possible to do <code class="notranslate">ansible-vault decrypt example.txt --output -</code> to get the decrypted output into stdout. In fact, that is advertised in <code class="notranslate">ansible-vault decrypt --help</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" --output=OUTPUT_FILE output file name for encrypt or decrypt; use - for stdout"><pre class="notranslate"><code class="notranslate"> --output=OUTPUT_FILE output file name for encrypt or decrypt; use - for stdout </code></pre></div> <p dir="auto">In Ansible 2.4, this is bugged and results in a file named <code class="notranslate">-</code>.</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.5</li> <li>Operating System version: Win10</li> <li>Java version: JDK8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>use dubbo API show provider application</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ServiceConfig&lt;GreetingsService&gt; service = new ServiceConfig&lt;&gt;(); service.setApplication(new ApplicationConfig(&quot;first-dubbo-provider&quot;));"><pre class="notranslate"><code class="notranslate">ServiceConfig&lt;GreetingsService&gt; service = new ServiceConfig&lt;&gt;(); service.setApplication(new ApplicationConfig("first-dubbo-provider")); </code></pre></div> <ol start="3" dir="auto"> <li>but find this method is annotated by <code class="notranslate">@Deprecated</code></li> </ol> <p dir="auto">If i want to show a demo with dubbo API to my students, where can i find a method which with no <code class="notranslate">@Deprecated</code> ?</p> <hr> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.8</li> <li>Operating System version: xxx</li> <li>Java version: xxx</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/apache/dubbo/blob/56353aebc0c678582f7a2309dfd53d29b46deb3b/dubbo-remoting/dubbo-remoting-netty4/src/main/java/org/apache/dubbo/remoting/transport/netty4/NettyServer.java#L97-L118">dubbo/dubbo-remoting/dubbo-remoting-netty4/src/main/java/org/apache/dubbo/remoting/transport/netty4/NettyServer.java</a> </p> <p class="mb-0 color-fg-muted"> Lines 97 to 118 in <a data-pjax="true" class="commit-tease-sha" href="/apache/dubbo/commit/56353aebc0c678582f7a2309dfd53d29b46deb3b">56353ae</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="L97" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="97"></td> <td id="LC97" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">bootstrap</span>.<span class="pl-en">group</span>(<span class="pl-s1">bossGroup</span>, <span class="pl-s1">workerGroup</span>) </td> </tr> <tr class="border-0"> <td id="L98" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="98"></td> <td id="LC98" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> .<span class="pl-en">channel</span>(<span class="pl-smi">NettyEventLoopFactory</span>.<span class="pl-en">serverSocketChannelClass</span>()) </td> </tr> <tr class="border-0"> <td id="L99" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="99"></td> <td id="LC99" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> .<span class="pl-en">option</span>(<span class="pl-smi">ChannelOption</span>.<span class="pl-c1">SO_REUSEADDR</span>, <span class="pl-smi">Boolean</span>.<span class="pl-c1">TRUE</span>) </td> </tr> <tr class="border-0"> <td id="L100" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="100"></td> <td id="LC100" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> .<span class="pl-en">childOption</span>(<span class="pl-smi">ChannelOption</span>.<span class="pl-c1">TCP_NODELAY</span>, <span class="pl-smi">Boolean</span>.<span class="pl-c1">TRUE</span>) </td> </tr> <tr class="border-0"> <td id="L101" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="101"></td> <td id="LC101" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> .<span class="pl-en">childOption</span>(<span class="pl-smi">ChannelOption</span>.<span class="pl-c1">ALLOCATOR</span>, <span class="pl-smi">PooledByteBufAllocator</span>.<span class="pl-c1">DEFAULT</span>) </td> </tr> <tr class="border-0"> <td id="L102" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="102"></td> <td id="LC102" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> .<span class="pl-en">childHandler</span>(<span class="pl-k">new</span> <span class="pl-smi">ChannelInitializer</span>&lt;<span class="pl-smi">SocketChannel</span>&gt;() { </td> </tr> <tr class="border-0"> <td id="L103" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="103"></td> <td id="LC103" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">@</span><span class="pl-c1">Override</span> </td> </tr> <tr class="border-0"> <td id="L104" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="104"></td> <td id="LC104" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">protected</span> <span class="pl-smi">void</span> <span class="pl-en">initChannel</span>(<span class="pl-smi">SocketChannel</span> <span class="pl-s1">ch</span>) <span class="pl-k">throws</span> <span class="pl-smi">Exception</span> { </td> </tr> <tr class="border-0"> <td id="L105" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="105"></td> <td id="LC105" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c">// FIXME: should we use getTimeout()?</span> </td> </tr> <tr class="border-0"> <td id="L106" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="106"></td> <td id="LC106" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-smi">int</span> <span class="pl-s1">idleTimeout</span> = <span class="pl-smi">UrlUtils</span>.<span class="pl-en">getIdleTimeout</span>(<span class="pl-en">getUrl</span>()); </td> </tr> <tr class="border-0"> <td id="L107" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="107"></td> <td id="LC107" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-smi">NettyCodecAdapter</span> <span class="pl-s1">adapter</span> = <span class="pl-k">new</span> <span class="pl-smi">NettyCodecAdapter</span>(<span class="pl-en">getCodec</span>(), <span class="pl-en">getUrl</span>(), <span class="pl-smi">NettyServer</span>.<span class="pl-smi">this</span>); </td> </tr> <tr class="border-0"> <td id="L108" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="108"></td> <td id="LC108" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-en">getUrl</span>().<span class="pl-en">getParameter</span>(<span class="pl-c1">SSL_ENABLED_KEY</span>, <span class="pl-c1">false</span>)) { </td> </tr> <tr class="border-0"> <td id="L109" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="109"></td> <td id="LC109" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">ch</span>.<span class="pl-en">pipeline</span>().<span class="pl-en">addLast</span>(<span class="pl-s">"negotiation"</span>, </td> </tr> <tr class="border-0"> <td id="L110" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="110"></td> <td id="LC110" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-smi">SslHandlerInitializer</span>.<span class="pl-en">sslServerHandler</span>(<span class="pl-en">getUrl</span>(), <span class="pl-s1">nettyServerHandler</span>)); </td> </tr> <tr class="border-0"> <td id="L111" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="111"></td> <td id="LC111" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> } </td> </tr> <tr class="border-0"> <td id="L112" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="112"></td> <td id="LC112" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">ch</span>.<span class="pl-en">pipeline</span>() </td> </tr> <tr class="border-0"> <td id="L113" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="113"></td> <td id="LC113" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> .<span class="pl-en">addLast</span>(<span class="pl-s">"decoder"</span>, <span class="pl-s1">adapter</span>.<span class="pl-en">getDecoder</span>()) </td> </tr> <tr class="border-0"> <td id="L114" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="114"></td> <td id="LC114" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> .<span class="pl-en">addLast</span>(<span class="pl-s">"encoder"</span>, <span class="pl-s1">adapter</span>.<span class="pl-en">getEncoder</span>()) </td> </tr> <tr class="border-0"> <td id="L115" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="115"></td> <td id="LC115" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> .<span class="pl-en">addLast</span>(<span class="pl-s">"server-idle-handler"</span>, <span class="pl-k">new</span> <span class="pl-smi">IdleStateHandler</span>(<span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-s1">idleTimeout</span>, <span class="pl-c1">MILLISECONDS</span>)) </td> </tr> <tr class="border-0"> <td id="L116" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="116"></td> <td id="LC116" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> .<span class="pl-en">addLast</span>(<span class="pl-s">"handler"</span>, <span class="pl-s1">nettyServerHandler</span>); </td> </tr> <tr class="border-0"> <td id="L117" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="117"></td> <td id="LC117" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> } </td> </tr> <tr class="border-0"> <td id="L118" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="118"></td> <td id="LC118" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> }); </td> </tr> </tbody></table> </div> </div> <p></p> <h3 dir="auto">Expected Result</h3> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p>
0
<p dir="auto">Hi,</p> <p dir="auto">I have created a benchmark suite for Web Components librairies. Vue.js is implemented with his web component target feature, and you can see the raw results here : <a href="https://vogloblinsky.github.io/web-components-benchmark/" rel="nofollow">https://vogloblinsky.github.io/web-components-benchmark/</a></p> <p dir="auto">I will release soon a blog post explaining in detail that, but i want a feedback of many librairies authors before, to be sure i am not wrong in my implementations.</p> <p dir="auto">Source code here : <a href="https://github.com/vogloblinsky/web-components-benchmark">https://github.com/vogloblinsky/web-components-benchmark</a></p> <p dir="auto">Can you have a look and give me some feedbacks ?</p> <p dir="auto">Thanks</p>
<h3 dir="auto">Vue.js version</h3> <p dir="auto">2.1.6</p> <h3 dir="auto">Reproduction Link</h3> <p dir="auto"><a href="http://jsfiddle.net/bvjfa9xk/8/" rel="nofollow">http://jsfiddle.net/bvjfa9xk/8/</a></p> <h3 dir="auto">Steps to reproduce</h3> <h3 dir="auto">What is Expected? / What is actually happening?</h3> <p dir="auto">Dragging list item from one bucket to another paints outer item red on a <code class="notranslate">dragenter</code> event.<br> This is what the fiddle does as expected. I start to drag an item from the 3rd column to the 2nd, upon dragstart the 3rd gets the class immediately. The second gets it only when the mouse hovers over it. As I said this is what I expect to happen.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1974290/21194273/a00e52fc-c22f-11e6-8be5-0fb1650aa4b4.PNG"><img src="https://cloud.githubusercontent.com/assets/1974290/21194273/a00e52fc-c22f-11e6-8be5-0fb1650aa4b4.PNG" alt="jsfiddle" style="max-width: 100%;"></a></p> <p dir="auto">But if I copy the exact same code from the fiddle and paste it in a local folder /index.html, main.js, also link to vue 2.1.6/ This happens:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1974290/21194356/f1d84354-c22f-11e6-9dcc-14e7a874189d.PNG"><img src="https://cloud.githubusercontent.com/assets/1974290/21194356/f1d84354-c22f-11e6-9dcc-14e7a874189d.PNG" alt="local" style="max-width: 100%;"></a></p> <p dir="auto">Upon dragstart in the 3rd column, the 2nd one immediately gets the class as well.<br> Same code, same versions, same browser /latest Chrome/</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" methods: { dragenter: function (ev) { debugger this.$el.classList.add('drop-target') console.log(this) } }"><pre class="notranslate"><code class="notranslate"> methods: { dragenter: function (ev) { debugger this.$el.classList.add('drop-target') console.log(this) } } </code></pre></div> <p dir="auto">If I place a debugger statement before the class addition, by the time it stops there I see that the column where I started to drag already got the class and <code class="notranslate">$el</code> now referring to the second column.</p> <p dir="auto">Everything is the same, I don't know why it behaves different (I'm trying to develop a drag-and-drop application and I just bumped to this issue). First I thought it was webpack/node-module related, so I trashed all of these and started on a single html/js file.</p>
0
<h3 dir="auto">What problem does this feature solve?</h3> <p dir="auto">This is a problem to convert some Bootstrap 4 components (or other CSS frameworks) for example:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;div class=&quot;progress&quot;&gt; &lt;div class=&quot;progress-bar&quot; role=&quot;progressbar&quot; style=&quot;width: 15%&quot; aria-valuenow=&quot;15&quot; aria-valuemin=&quot;0&quot; aria-valuemax=&quot;100&quot;&gt;&lt;/div&gt; &lt;div class=&quot;progress-bar bg-success&quot; role=&quot;progressbar&quot; style=&quot;width: 30%&quot; aria-valuenow=&quot;30&quot; aria-valuemin=&quot;0&quot; aria-valuemax=&quot;100&quot;&gt;&lt;/div&gt; &lt;div class=&quot;progress-bar bg-info&quot; role=&quot;progressbar&quot; style=&quot;width: 20%&quot; aria-valuenow=&quot;20&quot; aria-valuemin=&quot;0&quot; aria-valuemax=&quot;100&quot;&gt;&lt;/div&gt; &lt;/div&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">progress</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">progress-bar</span>" <span class="pl-c1">role</span>="<span class="pl-s">progressbar</span>" <span class="pl-c1">style</span>="<span class="pl-s">width: 15%</span>" <span class="pl-c1">aria-valuenow</span>="<span class="pl-s">15</span>" <span class="pl-c1">aria-valuemin</span>="<span class="pl-s">0</span>" <span class="pl-c1">aria-valuemax</span>="<span class="pl-s">100</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">progress-bar bg-success</span>" <span class="pl-c1">role</span>="<span class="pl-s">progressbar</span>" <span class="pl-c1">style</span>="<span class="pl-s">width: 30%</span>" <span class="pl-c1">aria-valuenow</span>="<span class="pl-s">30</span>" <span class="pl-c1">aria-valuemin</span>="<span class="pl-s">0</span>" <span class="pl-c1">aria-valuemax</span>="<span class="pl-s">100</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">progress-bar bg-info</span>" <span class="pl-c1">role</span>="<span class="pl-s">progressbar</span>" <span class="pl-c1">style</span>="<span class="pl-s">width: 20%</span>" <span class="pl-c1">aria-valuenow</span>="<span class="pl-s">20</span>" <span class="pl-c1">aria-valuemin</span>="<span class="pl-s">0</span>" <span class="pl-c1">aria-valuemax</span>="<span class="pl-s">100</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">We can not create two components <code class="notranslate">progress-group</code> and <code class="notranslate">progress</code> because inside dives can not accept another div (<code class="notranslate">parent element</code>). Bootstrap 4 does not work in this way.</p> <p dir="auto">Existing <code class="notranslate">parent element</code> for each component destroys the Bootstrap 4 structure I can show you another examples:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;div id=&quot;carouselExampleControls&quot; class=&quot;carousel slide&quot; data-ride=&quot;carousel&quot;&gt; &lt;div class=&quot;carousel-inner&quot;&gt; &lt;div class=&quot;carousel-item active&quot;&gt; &lt;img src=&quot;...&quot; class=&quot;d-block w-100&quot; alt=&quot;...&quot;&gt; &lt;/div&gt; &lt;div class=&quot;carousel-item&quot;&gt; &lt;img src=&quot;...&quot; class=&quot;d-block w-100&quot; alt=&quot;...&quot;&gt; &lt;/div&gt; &lt;div class=&quot;carousel-item&quot;&gt; &lt;img src=&quot;...&quot; class=&quot;d-block w-100&quot; alt=&quot;...&quot;&gt; &lt;/div&gt; &lt;/div&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">id</span>="<span class="pl-s">carouselExampleControls</span>" <span class="pl-c1">class</span>="<span class="pl-s">carousel slide</span>" <span class="pl-c1">data-ride</span>="<span class="pl-s">carousel</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">carousel-inner</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">carousel-item active</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">src</span>="<span class="pl-s">...</span>" <span class="pl-c1">class</span>="<span class="pl-s">d-block w-100</span>" <span class="pl-c1">alt</span>="<span class="pl-s">...</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">carousel-item</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">src</span>="<span class="pl-s">...</span>" <span class="pl-c1">class</span>="<span class="pl-s">d-block w-100</span>" <span class="pl-c1">alt</span>="<span class="pl-s">...</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">carousel-item</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">src</span>="<span class="pl-s">...</span>" <span class="pl-c1">class</span>="<span class="pl-s">d-block w-100</span>" <span class="pl-c1">alt</span>="<span class="pl-s">...</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span></pre></div> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;div class=&quot;input-group mb-3&quot;&gt; &lt;div class=&quot;input-group-prepend&quot;&gt; &lt;span class=&quot;input-group-text&quot;&gt;$&lt;/span&gt; &lt;/div&gt; &lt;input type=&quot;text&quot; class=&quot;form-control&quot; aria-label=&quot;Amount (to the nearest dollar)&quot;&gt; &lt;div class=&quot;input-group-append&quot;&gt; &lt;span class=&quot;input-group-text&quot;&gt;.00&lt;/span&gt; &lt;/div&gt; &lt;/div&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">input-group mb-3</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">input-group-prepend</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">span</span> <span class="pl-c1">class</span>="<span class="pl-s">input-group-text</span>"<span class="pl-kos">&gt;</span>$<span class="pl-kos">&lt;/</span><span class="pl-ent">span</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" <span class="pl-c1">class</span>="<span class="pl-s">form-control</span>" <span class="pl-c1">aria-label</span>="<span class="pl-s">Amount (to the nearest dollar)</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">input-group-append</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">span</span> <span class="pl-c1">class</span>="<span class="pl-s">input-group-text</span>"<span class="pl-kos">&gt;</span>.00<span class="pl-kos">&lt;/</span><span class="pl-ent">span</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">and a lot more.</p> <p dir="auto">So I want to ask for <strong>containerless (a component without <code class="notranslate">parent element</code> as a wrapper) feature</strong> for component design system. It can help us to convert a CSS framework to complete Vue toolbox.</p> <h3 dir="auto">What does the proposed API look like?</h3> <p dir="auto">I am not sure the right way may be a config as <code class="notranslate">{ containerless : true }</code></p>
<h3 dir="auto">What problem does this feature solve?</h3> <p dir="auto">Right now you can only have 1 root element per template. I know this is by design, but I find myself wrapping everything around a <code class="notranslate">&lt;div&gt;</code> a lot. Now, most of the time is not a big deal, I can live with that, the problem is when either Bootstrap requires a very specific hierarchy, or when dealing with Tables that also require a very specific hierarchy and wrapping everything on a div is not an option.</p> <h3 dir="auto">What does the proposed API look like?</h3> <p dir="auto">Now, there will be a couple of things to figure out, mainly to what element will the properties provided on the Custom Element will be attached to. I think there two things that can be done:</p> <ol dir="auto"> <li>Find the first child and stick everything to it.</li> <li>Provide a custom attribute to indicate to what element they should be attached to.</li> </ol>
1
<p dir="auto">Uncaught Error: Atom can only handle files &lt; 2MB for now.</p> <p dir="auto"><strong>Atom Version</strong>: 0.162.0<br> <strong>System</strong>: Mac OS X 10.10.1<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Steps To Reproduce</h3> <ol dir="auto"> <li>...</li> <li>...</li> </ol> <h3 dir="auto">Stack Trace</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At /Applications/Atom.app/Contents/Resources/app/src/project.js:461 Error: Atom can only handle files &lt; 2MB for now. at Project.module.exports.Project.buildBuffer (/Applications/Atom.app/Contents/Resources/app/src/project.js:461:15) at Project.module.exports.Project.bufferForPath (/Applications/Atom.app/Contents/Resources/app/src/project.js:438:63) at Project.module.exports.Project.open (/Applications/Atom.app/Contents/Resources/app/src/project.js:392:19) at Workspace.module.exports.Workspace.openUriInPane (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:482:29) at Workspace.module.exports.Workspace.open (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:409:19) at Ipc.&lt;anonymous&gt; (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:45:32) at Ipc.emit (events.js:110:17) at process.&lt;anonymous&gt; (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/ipc.js:22:29) at process.emit (events.js:118:17) "><pre class="notranslate"><code class="notranslate">At /Applications/Atom.app/Contents/Resources/app/src/project.js:461 Error: Atom can only handle files &lt; 2MB for now. at Project.module.exports.Project.buildBuffer (/Applications/Atom.app/Contents/Resources/app/src/project.js:461:15) at Project.module.exports.Project.bufferForPath (/Applications/Atom.app/Contents/Resources/app/src/project.js:438:63) at Project.module.exports.Project.open (/Applications/Atom.app/Contents/Resources/app/src/project.js:392:19) at Workspace.module.exports.Workspace.openUriInPane (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:482:29) at Workspace.module.exports.Workspace.open (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:409:19) at Ipc.&lt;anonymous&gt; (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:45:32) at Ipc.emit (events.js:110:17) at process.&lt;anonymous&gt; (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/ipc.js:22:29) at process.emit (events.js:118:17) </code></pre></div>
<p dir="auto">Uncaught Error: Atom can only handle files &lt; 2MB for now.</p> <p dir="auto"><strong>Atom Version</strong>: 0.153.0<br> <strong>System</strong>: linux 3.13.0-40-generic<br> <strong>Thrown From</strong>: <a href="https://github.com/atom/tree-view">tree-view</a> package</p>
1
<p dir="auto">I'm trying to use the setDefaults method in a form type, but I can't figure out how to merge options with defaults, I'm doing this :</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;?php // Creating the form $form = $factory-&gt;create('my_type', null, array( 'test' =&gt; array( 'tata' =&gt; true, ) )); // FormType Class public function setDefaultOptions(OptionsResolverInterface $resolver) { $resolver-&gt;setDefaults(array( 'test' =&gt; array( 'toto' =&gt; true, 'tata' =&gt; false, ) )); } // Resolved options array( 'test' =&gt; array('tata' =&gt; true) ) // I was trying to get array( 'test' =&gt; array('tata' =&gt; true, 'toto' =&gt; true) )"><pre class="notranslate"><span class="pl-ent">&lt;?php</span> <span class="pl-c">// Creating the form</span> <span class="pl-s1"><span class="pl-c1">$</span>form</span> = <span class="pl-s1"><span class="pl-c1">$</span>factory</span>-&gt;<span class="pl-en">create</span>(<span class="pl-s">'my_type'</span>, <span class="pl-c1">null</span>, <span class="pl-en">array</span>( <span class="pl-s">'test'</span> =&gt; <span class="pl-en">array</span>( <span class="pl-s">'tata'</span> =&gt; <span class="pl-c1">true</span>, ) )); <span class="pl-c">// FormType Class</span> <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">setDefaultOptions</span>(<span class="pl-smi"><span class="pl-smi">OptionsResolverInterface</span></span> <span class="pl-s1"><span class="pl-c1">$</span>resolver</span>) { <span class="pl-s1"><span class="pl-c1">$</span>resolver</span>-&gt;<span class="pl-en">setDefaults</span>(<span class="pl-en">array</span>( <span class="pl-s">'test'</span> =&gt; <span class="pl-en">array</span>( <span class="pl-s">'toto'</span> =&gt; <span class="pl-c1">true</span>, <span class="pl-s">'tata'</span> =&gt; <span class="pl-c1">false</span>, ) )); } <span class="pl-c">// Resolved options</span> <span class="pl-en">array</span>( <span class="pl-s">'test'</span> =&gt; <span class="pl-en">array</span>(<span class="pl-s">'tata'</span> =&gt; <span class="pl-c1">true</span>) ) <span class="pl-c">// I was trying to get</span> <span class="pl-en">array</span>( <span class="pl-s">'test'</span> =&gt; <span class="pl-en">array</span>(<span class="pl-s">'tata'</span> =&gt; <span class="pl-c1">true</span>, <span class="pl-s">'toto'</span> =&gt; <span class="pl-c1">true</span>) )</pre></div> <p dir="auto">How can I achieve this? Thanks</p>
<p dir="auto">It is currently not possible to configure nested options. For example:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$resolver-&gt;setDefaults(array( 'db' =&gt; array( 'dsn' =&gt; null, 'user' =&gt; 'root, 'password' =&gt; '', 'port': 3306, ), ));"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>resolver</span>-&gt;<span class="pl-en">setDefaults</span>(<span class="pl-en">array</span>( <span class="pl-s">'db'</span> =&gt; <span class="pl-en">array</span>( <span class="pl-s">'dsn'</span> =&gt; <span class="pl-c1">null</span>, <span class="pl-s">'user'</span> =&gt; <span class="pl-s">'root,</span> <span class="pl-s"> 'password' =&gt; ''</span>, <span class="pl-s">'port'</span>: <span class="pl-c1">3306</span>, ), ));</pre></div> <p dir="auto">It is not possible to resolve this configuration in the following way:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$resolver-&gt;resolve(array( 'db' =&gt; array( 'dsn' =&gt; ... ), ));"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>resolver</span>-&gt;<span class="pl-en">resolve</span>(<span class="pl-en">array</span>( <span class="pl-s">'db'</span> =&gt; <span class="pl-en">array</span>( <span class="pl-s">'dsn'</span> =&gt; <span class="pl-c1">.</span>.<span class="pl-c1">.</span> ), ));</pre></div> <p dir="auto">because now the other default values under "db" will be dropped. Also, it is not possible to specify allowed values or types for the nested options.</p>
1
<p dir="auto">I work in an environment where we are not allowed to log on as administrator accounts we must Shift click -&gt; "Run as" to use any admin privileges.</p> <p dir="auto">Currently the Win Terminal only supports run as Administrator but in order to use this daily I need to be able to run this as an arbitrary user. To this date I don't think I have seen any UWP support this and thus it might not be possible.</p> <p dir="auto">Bonus : It would be even better if I could launch each tab as different users while having the settings and core UI under my user.</p> <p dir="auto">Thanks in advance</p> <p dir="auto">P.S. I hate the security policy</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.476] Windows Terminal version (if applicable): 0.6.2951.0 Any other software? -"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.476] Windows Terminal version (if applicable): 0.6.2951.0 Any other software? - </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ul dir="auto"> <li>Open up the "About" box</li> <li>Resize the window</li> </ul> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The overlay resizes with the window size and the about box itself stays centered</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The overlay and box stay at the position they were initially in which is ugly and, depending on the resize, allows selecting of the underlying text or cuts the contents of the box.</p> <h1 dir="auto">Screenshot</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5126798/69327096-3e921e80-0c4d-11ea-8f77-127e8f65dfea.png"><img src="https://user-images.githubusercontent.com/5126798/69327096-3e921e80-0c4d-11ea-8f77-127e8f65dfea.png" alt="image" style="max-width: 100%;"></a></p>
0
<h3 dir="auto">Bug summary</h3> <p dir="auto">See title</p> <h3 dir="auto">Code for reproduction</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import matplotlib.pyplot as plt X = np.random.randn(100, 5) ax = plt.figure().subplots() ax.boxplot(X, patch_artist=True) assert ax.artists"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-v">X</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randn</span>(<span class="pl-c1">100</span>, <span class="pl-c1">5</span>) <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>().<span class="pl-en">subplots</span>() <span class="pl-s1">ax</span>.<span class="pl-en">boxplot</span>(<span class="pl-v">X</span>, <span class="pl-s1">patch_artist</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-k">assert</span> <span class="pl-s1">ax</span>.<span class="pl-s1">artists</span></pre></div> <h3 dir="auto">Actual outcome</h3> <p dir="auto">AssertionError</p> <h3 dir="auto">Expected outcome</h3> <p dir="auto">pass</p> <h3 dir="auto">Matplotlib Version</h3> <p dir="auto">3.5.0b1</p> <h3 dir="auto">Installation</h3> <p dir="auto">pip</p>
<p dir="auto">I want to be able to set the <code class="notranslate">xticks</code> or <code class="notranslate">yticks</code> based on user input, but I can't seem to do this without invoking an <code class="notranslate">if</code> statement in order to use the default behaviour.</p> <p dir="auto">To get the default <code class="notranslate">xticks</code> for example, you can run:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import matplotlib.pyplot as plt x = np.linspace(0,1) plt.plot(x, x**2) plt.xticks() plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">0</span>,<span class="pl-c1">1</span>) <span class="pl-s1">plt</span>.<span class="pl-en">plot</span>(<span class="pl-s1">x</span>, <span class="pl-s1">x</span><span class="pl-c1">**</span><span class="pl-c1">2</span>) <span class="pl-s1">plt</span>.<span class="pl-en">xticks</span>() <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <p dir="auto">However, if I want a user-set variable to set the <code class="notranslate">xticks</code>, I have to do this:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import matplotlib.pyplot as plt user_option = None x = np.linspace(0,1) plt.plot(x, x**2) if user_option == None: plt.xticks() else: plt.xticks(user_option) plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-s1">user_option</span> <span class="pl-c1">=</span> <span class="pl-c1">None</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">0</span>,<span class="pl-c1">1</span>) <span class="pl-s1">plt</span>.<span class="pl-en">plot</span>(<span class="pl-s1">x</span>, <span class="pl-s1">x</span><span class="pl-c1">**</span><span class="pl-c1">2</span>) <span class="pl-k">if</span> <span class="pl-s1">user_option</span> <span class="pl-c1">==</span> <span class="pl-c1">None</span>: <span class="pl-s1">plt</span>.<span class="pl-en">xticks</span>() <span class="pl-k">else</span>: <span class="pl-s1">plt</span>.<span class="pl-en">xticks</span>(<span class="pl-s1">user_option</span>) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <p dir="auto">Since the code <code class="notranslate">plt.xticks(None)</code> gives the following error:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;tmp.py&quot;, line 9, in &lt;module&gt; plt.xticks(None) File &quot;/home/vanwyk/py_envs/py3/lib/python3.4/site-packages/matplotlib/pyplot.py&quot;, line 1671, in xticks locs = ax.set_xticks(args[0]) File &quot;/home/vanwyk/py_envs/py3/lib/python3.4/site-packages/matplotlib/axes/_base.py&quot;, line 2850, in set_xticks ret = self.xaxis.set_ticks(ticks, minor=minor) File &quot;/home/vanwyk/py_envs/py3/lib/python3.4/site-packages/matplotlib/axis.py&quot;, line 1595, in set_ticks if len(ticks) &gt; 1: TypeError: object of type 'NoneType' has no len()"><pre class="notranslate"><span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>): <span class="pl-v">File</span> <span class="pl-s">"tmp.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">9</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-s1">plt</span>.<span class="pl-en">xticks</span>(<span class="pl-c1">None</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/vanwyk/py_envs/py3/lib/python3.4/site-packages/matplotlib/pyplot.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1671</span>, <span class="pl-s1">in</span> <span class="pl-s1">xticks</span> <span class="pl-s1">locs</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">set_xticks</span>(<span class="pl-s1">args</span>[<span class="pl-c1">0</span>]) <span class="pl-v">File</span> <span class="pl-s">"/home/vanwyk/py_envs/py3/lib/python3.4/site-packages/matplotlib/axes/_base.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">2850</span>, <span class="pl-s1">in</span> <span class="pl-s1">set_xticks</span> <span class="pl-s1">ret</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">xaxis</span>.<span class="pl-en">set_ticks</span>(<span class="pl-s1">ticks</span>, <span class="pl-s1">minor</span><span class="pl-c1">=</span><span class="pl-s1">minor</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/vanwyk/py_envs/py3/lib/python3.4/site-packages/matplotlib/axis.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1595</span>, <span class="pl-s1">in</span> <span class="pl-s1">set_ticks</span> <span class="pl-k">if</span> <span class="pl-en">len</span>(<span class="pl-s1">ticks</span>) <span class="pl-c1">&gt;</span> <span class="pl-c1">1</span>: <span class="pl-v">TypeError</span>: <span class="pl-s1">object</span> <span class="pl-s1">of</span> <span class="pl-s1">type</span> <span class="pl-s">'NoneType'</span> <span class="pl-s1">has</span> <span class="pl-s1">no</span> <span class="pl-en">len</span>()</pre></div> <p dir="auto">Could the <code class="notranslate">plt.xticks</code> and <code class="notranslate">plt.yticks</code> functions allow the passing of <code class="notranslate">None</code> to retrieve default behaviour, or is there some way of getting the default ticks while still passing a variable?</p>
0
<p dir="auto">I am using</p> <ul dir="auto"> <li>node v13.12.0</li> <li>npm v6.14.1</li> <li>Windows-x86 1909 Build 18363.752</li> </ul> <p dir="auto">I should first tell that I recently update nodejs on my system &amp;<br> I was trying to install dependencies after cloning <a href="https://github.com/sveltejs/realworld">Realworld</a> repo when I encountered this error.</p> <p dir="auto">This the npm generated log <a href="https://github.com/npm/cli/files/4454106/2020-04-09T04_38_30_115Z-debug.log">2020-04-09T04_38_30_115Z-debug.log</a></p>
<h3 dir="auto">*Updated* as of 01/15/2021</h3> <p dir="auto"><strong>Note: Please read <a href="https://github.com/npm/cli/wiki/%22cb()-never-called%3F-Exit-handler-never-called%3F-I'm-having-the-same-problem!%22">this doc</a> before filing a new issue.</strong></p>
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-7539?redirect=false" rel="nofollow">SPR-7539</a></strong> and commented</p> <p dir="auto">The following lifecycle is extremely common in web apps:</p> <ol dir="auto"> <li>bind request input to a backing bean</li> <li>validate the bean</li> <li>if there are bind/validation errors, re-render the form so the user can retry their submission</li> </ol> <p dir="auto">Steps 1 and 2 are currently handled by the <code class="notranslate">@MVC</code> framework, via JavaBean <code class="notranslate">@Controller</code> method arguments annotated with the <code class="notranslate">@Valid</code> annotation. However, the 3rd step must always be performed manually by the developer. This leads to duplication across <code class="notranslate">@Controllers</code>.</p> <p dir="auto">An example of this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@RequestMapping(value=&quot;/apps&quot;, method=RequestMethod.POST) public String createApp(Account account, @Valid AppForm form, BindingResult bindingResult) { // duplicated if (bindingResult.hasErrors()) { return &quot;apps/new&quot;; } return &quot;redirect:/develop/apps/&quot; + appRepository.createApp(account.getId(), form); } @RequestMapping(value=&quot;/apps/edit/{slug}&quot;, method=RequestMethod.POST) public String updateApp(Account account, @PathVariable String slug, @Valid AppForm form, BindingResult bindingResult) { // duplicated if (bindingResult.hasErrors()) { return &quot;apps/edit&quot;; } return &quot;redirect:/develop/apps/&quot; + appRepository.updateApp(account.getId(), slug, form); }"><pre class="notranslate"><code class="notranslate">@RequestMapping(value="/apps", method=RequestMethod.POST) public String createApp(Account account, @Valid AppForm form, BindingResult bindingResult) { // duplicated if (bindingResult.hasErrors()) { return "apps/new"; } return "redirect:/develop/apps/" + appRepository.createApp(account.getId(), form); } @RequestMapping(value="/apps/edit/{slug}", method=RequestMethod.POST) public String updateApp(Account account, @PathVariable String slug, @Valid AppForm form, BindingResult bindingResult) { // duplicated if (bindingResult.hasErrors()) { return "apps/edit"; } return "redirect:/develop/apps/" + appRepository.updateApp(account.getId(), slug, form); } </code></pre></div> <p dir="auto">The duplicated code takes more than half of the method body. Imagine an app with hundreds of form controllers--the duplication adds up.</p> <p dir="auto">Something like the following would be ideal:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@RequestMapping(value=&quot;/apps&quot;, method=RequestMethod.POST) public String createApp(Account account, @Valid AppForm form, BindingResult bindingResult) { return &quot;redirect:/develop/apps/&quot; + appRepository.createApp(account.getId(), form); } @RequestMapping(value=&quot;/apps/edit/{slug}&quot;, method=RequestMethod.POST) public String updateApp(Account account, @PathVariable String slug, @Valid AppForm form, BindingResult bindingResult) { return &quot;redirect:/develop/apps/&quot; + appRepository.updateApp(account.getId(), slug, form); }"><pre class="notranslate"><code class="notranslate">@RequestMapping(value="/apps", method=RequestMethod.POST) public String createApp(Account account, @Valid AppForm form, BindingResult bindingResult) { return "redirect:/develop/apps/" + appRepository.createApp(account.getId(), form); } @RequestMapping(value="/apps/edit/{slug}", method=RequestMethod.POST) public String updateApp(Account account, @PathVariable String slug, @Valid AppForm form, BindingResult bindingResult) { return "redirect:/develop/apps/" + appRepository.updateApp(account.getId(), slug, form); } </code></pre></div> <p dir="auto">But the question is how can we get to something that is as simple as the above? In some cases, we can rely on RequestToViewNameTranslation. In other cases, additional metadata will be needed to tell Spring MVC which view to render on bind/validation errors.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.4</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="398104718" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11788" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11788/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11788">#11788</a> HandlerExceptionResolver for <code class="notranslate">@Valid</code></li> </ul> <p dir="auto">1 votes, 3 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=evgenyg" rel="nofollow">Evgeny Goldin</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7817?redirect=false" rel="nofollow">SPR-7817</a></strong> and commented</p> <p dir="auto">Today, I can't write</p> <p dir="auto">String s = Assert.hasText( o.getSomeText())</p> <p dir="auto">because Assert usually returns void. If it returns value checked then I can use Assert calls in the way shown above.<br> I wrote about this trick at <a href="http://evgeny-goldin.com/blog/return-something-not-void/" rel="nofollow">http://evgeny-goldin.com/blog/return-something-not-void/</a>.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.5</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="398153641" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14461" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14461/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14461">#14461</a> Modify org.springframework.util.Assert.* methods so that they will return checked values (<em><strong>"duplicates"</strong></em>)</li> </ul>
0
<p dir="auto">Describe what you were doing when the bug occurred:<br> 1.<br> 2.<br> 3.</p> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.11.0-39713716aa</p> <p dir="auto">Call stack: at updateTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:20505:53)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:20377:26)<br> at ProfilingCache_ProfilingCache.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:20951:11)<br> at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:35462:33)<br> at Rh (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13245:7)<br> at Ci (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13944:7)<br> at uk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16725:86)<br> at tk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16245:11)<br> at qk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16237:23)<br> at jk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16221:5)</p> <p dir="auto">Component stack: at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:35445:34)<br> at div<br> at div<br> at div<br> at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29121:3)<br> at Profiler_Profiler (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:37243:34)<br> at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30035:5)<br> at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30157:5)<br> at div<br> at div<br> at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34264:3)<br> at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:25356:3)<br> at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:25963:3)<br> at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30300:3)<br> at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:37639:3)</p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p> <p dir="auto">Feature</p> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">Consider I want to have a dynamically calculated list of options, and a piece of state that represents the currently selected option. I can achieve this using hooks as follows:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const options = useMemo(() =&gt; { // Calculate the options }, [dep1, dep2]); const [choice, setChoice] = useState(options[0]); const result = useMemo(() =&gt; { // Calculate the displayed result }, [choice]);"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">options</span> <span class="pl-c1">=</span> <span class="pl-en">useMemo</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">// Calculate the options</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s1">dep1</span><span class="pl-kos">,</span> <span class="pl-s1">dep2</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-kos">[</span><span class="pl-s1">choice</span><span class="pl-kos">,</span> <span class="pl-s1">setChoice</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-en">useState</span><span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-en">useMemo</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">// Calculate the displayed result</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s1">choice</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">However, a problem occurs if either <code class="notranslate">dep1</code> or <code class="notranslate">dep2</code> changes. The list of options changes, which means <code class="notranslate">choice</code> may no longer be valid. To fix this, I must split <code class="notranslate">choice</code> into a selected value and a memoized value that checks for validity:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const [selectedChoice, setSelectedChoice] = useState(options[0]); const choice = useMemo(() =&gt; { if (options.includes(selectedChoice) { return selectedChoice; } else { setSelectedChoice(options[0]); return options[0]; } }, [options, selectedChoice]);"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">[</span><span class="pl-s1">selectedChoice</span><span class="pl-kos">,</span> <span class="pl-s1">setSelectedChoice</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-en">useState</span><span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">choice</span> <span class="pl-c1">=</span> <span class="pl-en">useMemo</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-en">includes</span><span class="pl-kos">(</span><span class="pl-s1">selectedChoice</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-s1">selectedChoice</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-s1">setSelectedChoice</span><span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s1">options</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s1">options</span><span class="pl-kos">,</span> <span class="pl-s1">selectedChoice</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">It would useful if we could declare dependencies for <code class="notranslate">useState</code>, in the same way that we can for <code class="notranslate">useMemo</code>, and have the state reset back to the initial state if they change:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const [choice, setChoice] = useState(options[0], [options]);"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">[</span><span class="pl-s1">choice</span><span class="pl-kos">,</span> <span class="pl-s1">setChoice</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-en">useState</span><span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s1">options</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">In order to allow preserving the current value if its valid, React could supply <code class="notranslate">prevState</code> to the initial state factory function, if any exists, e.g.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const [choice, setChoice] = useState(prevState =&gt; { if (prevState &amp;&amp; options.includes(prevState) { return prevState; else { return options[0]; } }, [options]);"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">[</span><span class="pl-s1">choice</span><span class="pl-kos">,</span> <span class="pl-s1">setChoice</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">useState</span><span class="pl-kos">(</span><span class="pl-s1">prevState</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">prevState</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-en">includes</span><span class="pl-kos">(</span><span class="pl-s1">prevState</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-s1">prevState</span><span class="pl-kos">;</span> <span class="pl-s1">else</span><span class="pl-kos"></span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">options</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s1">options</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong></p> <p dir="auto">16.8.0-alpha.1</p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/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"><code class="notranslate">next build</code> does not include absolute path to node module</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto"><code class="notranslate">next build</code> includes absolute path in transpiled require path</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <h3 dir="auto">Correct</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="yarn add [email protected] next build # Transpiled output var _extends2 = require('babel-runtime/helpers/extends');"><pre class="notranslate">yarn add [email protected] next build <span class="pl-c"><span class="pl-c">#</span> Transpiled output</span> var _extends2 = require(<span class="pl-s"><span class="pl-pds">'</span>babel-runtime/helpers/extends<span class="pl-pds">'</span></span>)<span class="pl-k">;</span></pre></div> <h3 dir="auto">Incorrect</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="yarn add next@canary next build # Transpiled output var _extends2 = require('/Users/kyle/projects/test/node_modules/babel-runtime/helpers/extends');"><pre class="notranslate">yarn add next@canary next build <span class="pl-c"><span class="pl-c">#</span> Transpiled output</span> var _extends2 = require(<span class="pl-s"><span class="pl-pds">'</span>/Users/kyle/projects/test/node_modules/babel-runtime/helpers/extends<span class="pl-pds">'</span></span>)<span class="pl-k">;</span></pre></div> <h2 dir="auto">Context</h2> <p dir="auto">Unable to deploy to lambda using <a href="https://github.com/apex/up">up</a> due to <code class="notranslate">up</code> building locally and uploading zip file to s3 rendering absolute paths invalid</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>canary</td> </tr> <tr> <td>node</td> <td>8.9.0</td> </tr> <tr> <td>OS</td> <td>macos 10.13.2</td> </tr> </tbody> </table>
<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">Users should be able to bundle different modules into one final chunk.</p> <p dir="auto">For example, users importing component <code class="notranslate">hello1.js</code> and <code class="notranslate">hello2.js</code> may want to import both modules at the same time:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const Hello1 = dynamic(import('../components/hello1')) const Hello2 = dynamic(import('../components/hello2')) // This will request both hello1.js and hello2.js."><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-v">Hello1</span> <span class="pl-c1">=</span> <span class="pl-en">dynamic</span><span class="pl-kos">(</span><span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s">'../components/hello1'</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-v">Hello2</span> <span class="pl-c1">=</span> <span class="pl-en">dynamic</span><span class="pl-kos">(</span><span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s">'../components/hello2'</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-c">// This will request both hello1.js and hello2.js.</span></pre></div> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Webpack 3 allows you to do so using magic comments:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const Hello1 = dynamic(/* webpackChunkName: &quot;hello&quot; */ import('../components/hello1')) const Hello2 = dynamic(/* webpackChunkName: &quot;hello&quot; */ import('../components/hello2')) // This should request only one hello.js with both modules."><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-v">Hello1</span> <span class="pl-c1">=</span> <span class="pl-en">dynamic</span><span class="pl-kos">(</span><span class="pl-c">/* webpackChunkName: "hello" */</span> <span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s">'../components/hello1'</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-v">Hello2</span> <span class="pl-c1">=</span> <span class="pl-en">dynamic</span><span class="pl-kos">(</span><span class="pl-c">/* webpackChunkName: "hello" */</span> <span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s">'../components/hello2'</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-c">// This should request only one hello.js with both modules.</span></pre></div> <p dir="auto">But magic comments don't work on <strong>nextjs</strong>.</p> <h2 dir="auto">Context</h2> <p dir="auto">Sometimes a user requesting a module is going to need more modules in the future and you can bundle those in a single chunk to avoid server round trips.</p> <h2 dir="auto">Your Environment</h2> <ul dir="auto"> <li>Next.js version: 3.0.1-beta.5</li> <li>Environment name and version (e.g. Chrome 39, Node.js 5.4): Chrome 61, Node 6.11</li> <li>Operating System (Linux, maxOS, Windows): macOS</li> </ul>
0
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> bug<br> <strong>What is the current behavior?</strong><br> style attribute is not updated correctly when we set <code class="notranslate">padding</code> and <code class="notranslate">paddingTop</code> at the same time and then re-render with only <code class="notranslate">padding</code>. Same issue with <code class="notranslate">border</code>. I suppose that it would be the same with <code class="notranslate">margin</code> (not tested)</p> <p dir="auto">Example: <a href="http://codepen.io/testerez/pen/pNRQjW?editors=0010" rel="nofollow">http://codepen.io/testerez/pen/pNRQjW?editors=0010</a></p> <p dir="auto"><strong>What is the expected behavior?</strong><br> The DOM element style should be the last rendered one and should not be affected by the previous style value.</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> Tested on chrome 54 with React 15.4 and 15.3.2</p>
<h1 dir="auto">This "good first bug" is taken by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/YongPilMoon/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/YongPilMoon">@YongPilMoon</a>. Don't work on it unless that's you!</h1> <p dir="auto">This has been discussed a few times before but I don’t think there was any conclusion, and PRs intending to solve the issue were not merged for various reasons.</p> <p dir="auto">I would like to close those PRs as outdated, and reboot the discussion about this.<br> Performance considered, the conclusion from <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sebmarkbage/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sebmarkbage">@sebmarkbage</a> and <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/syranide/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/syranide">@syranide</a> seems to be:</p> <blockquote> <p dir="auto">We should consider not allowing conflicting style rules at all.</p> </blockquote> <p dir="auto">— <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="39882472" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/2013" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/2013/hovercard?comment_id=57338177&amp;comment_type=issue_comment" href="https://github.com/facebook/react/pull/2013#issuecomment-57338177">#2013 (comment)</a></p> <blockquote> <p dir="auto">IMHO, all things considered it's better to just disallow overlapping and warn in dev.</p> </blockquote> <p dir="auto">— <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="101949360" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/4661" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/4661/hovercard?comment_id=132996649&amp;comment_type=issue_comment" href="https://github.com/facebook/react/pull/4661#issuecomment-132996649">#4661 (comment)</a></p> <p dir="auto">Radium by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ianobermiller/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ianobermiller">@ianobermiller</a> came to the same conclusion in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="64869638" data-permission-text="Title is private" data-url="https://github.com/FormidableLabs/radium/issues/95" data-hovercard-type="issue" data-hovercard-url="/FormidableLabs/radium/issues/95/hovercard" href="https://github.com/FormidableLabs/radium/issues/95">FormidableLabs/radium#95</a> but there was some backlash afterwards. React Native seems to allow style expansions but only for a few attributes (e.g. <code class="notranslate">margin</code> and <code class="notranslate">padding</code>, but not <code class="notranslate">border</code>).</p> <p dir="auto">I’m closing old pull requests about this, and creating this issue to track implementation of the behavior we seem to agree upon: we should warn in <code class="notranslate">__DEV__</code> when <code class="notranslate">border</code> and <code class="notranslate">borderBottom</code> are used at the same time. We can discuss more specifics (should either be ignored? should we allow a few whitelisted properties but warn for others?) in this issue.</p> <p dir="auto">As a migration strategy, we can suggest people to use something like <a href="https://github.com/ActionIQ/style-builder">https://github.com/ActionIQ/style-builder</a> if they really need those shortcuts. It’s also something we’ll need to decide upon when implementing integrated styling.</p> <hr> <p dir="auto">Related issues:</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="43612695" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/2231" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/2231/hovercard" href="https://github.com/facebook/react/issues/2231">#2231</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="46729516" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/2407" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/2407/hovercard" href="https://github.com/facebook/react/issues/2407">#2407</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="109359892" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/5030" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/5030/hovercard" href="https://github.com/facebook/react/issues/5030">#5030</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="64869638" data-permission-text="Title is private" data-url="https://github.com/FormidableLabs/radium/issues/95" data-hovercard-type="issue" data-hovercard-url="/FormidableLabs/radium/issues/95/hovercard" href="https://github.com/FormidableLabs/radium/issues/95">FormidableLabs/radium#95</a></li> </ul> <p dir="auto">Related PRs:</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="39882472" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/2013" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/2013/hovercard" href="https://github.com/facebook/react/pull/2013">#2013</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="101949360" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/4661" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/4661/hovercard" href="https://github.com/facebook/react/pull/4661">#4661</a></li> </ul>
1
<p dir="auto">The idea is to instrument JavaScript code and collect types information from the runtime. For example:</p> <p dir="auto">Consider JavaScript code (in ES2015):</p> <p dir="auto">File <code class="notranslate">render.js</code>:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export function renderContact(contact, container) { let span = document.createElement('span'); span.textContent = `${contact.firstName} ${contact.secondName}`; container.appendChild(span); }"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">function</span> <span class="pl-en">renderContact</span><span class="pl-kos">(</span><span class="pl-s1">contact</span><span class="pl-kos">,</span> <span class="pl-s1">container</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">span</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">'span'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">span</span><span class="pl-kos">.</span><span class="pl-c1">textContent</span> <span class="pl-c1">=</span> <span class="pl-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">contact</span><span class="pl-kos">.</span><span class="pl-c1">firstName</span><span class="pl-kos">}</span></span> <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">contact</span><span class="pl-kos">.</span><span class="pl-c1">secondName</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">;</span> <span class="pl-s1">container</span><span class="pl-kos">.</span><span class="pl-en">appendChild</span><span class="pl-kos">(</span><span class="pl-s1">span</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Then we use it in file <code class="notranslate">main.js</code>:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {renderContact} from &quot;./render&quot;; renderContact({firstName: &quot;Steve&quot;, lastName: &quot;Works&quot;}, document.body);"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-s1">renderContact</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./render"</span><span class="pl-kos">;</span> <span class="pl-en">renderContact</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">firstName</span>: <span class="pl-s">"Steve"</span><span class="pl-kos">,</span> <span class="pl-c1">lastName</span>: <span class="pl-s">"Works"</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-c1">body</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Running this code as-is gives no help, but if it's instrumented then we may callect runtime information. <code class="notranslate">main.js</code> could be instrumented to the following form using esprima/escodegen or TypeScript's parser API:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {renderContact} from &quot;./render&quot;; CallExpression({line:3, col:0}, null, renderContact, [{firstName: &quot;Steve&quot;, lastName: &quot;Works&quot;}, document.body]) "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-s1">renderContact</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./render"</span><span class="pl-kos">;</span> <span class="pl-v">CallExpression</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">line</span>:<span class="pl-c1">3</span><span class="pl-kos">,</span> <span class="pl-c1">col</span>:<span class="pl-c1">0</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-s1">renderContact</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-kos">{</span><span class="pl-c1">firstName</span>: <span class="pl-s">"Steve"</span><span class="pl-kos">,</span> <span class="pl-c1">lastName</span>: <span class="pl-s">"Works"</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-c1">body</span><span class="pl-kos">]</span><span class="pl-kos">)</span> </pre></div> <p dir="auto"><code class="notranslate">CallExpression</code> body could roughly look like:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function CallExpression(position:Position, callee:any, fn:Function, args:any[) { // collect types information part args.forEach(arg=&gt;CollectArgumentTypesInformation(position, arg)); // execution part to conform JavaScript semantics and do not break the running application code return fn.apply(callee, args); } function CollectArgumentTypesInformation(position:Position, arg:any) { let type={}; Object.keys(arg).forEach(key=&gt;{ type[key]=typeof arg[key]; }); return type; }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-smi">CallExpression</span><span class="pl-kos">(</span><span class="pl-s1">position</span>:<span class="pl-smi">Position</span><span class="pl-kos">,</span> <span class="pl-s1">callee</span>:<span class="pl-smi">any</span><span class="pl-kos">,</span> <span class="pl-s1">fn</span>:<span class="pl-smi">Function</span><span class="pl-kos">,</span> <span class="pl-s1">args</span>:<span class="pl-smi">any</span><span class="pl-kos">[</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// collect types information part</span> <span class="pl-s1">args</span><span class="pl-kos">.</span><span class="pl-en">forEach</span><span class="pl-kos">(</span><span class="pl-s1">arg</span><span class="pl-c1">=&gt;</span><span class="pl-smi">CollectArgumentTypesInformation</span><span class="pl-kos">(</span><span class="pl-s1">position</span><span class="pl-kos">,</span> <span class="pl-s1">arg</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// execution part to conform JavaScript semantics and do not break the running application code</span> <span class="pl-k">return</span> <span class="pl-s1">fn</span><span class="pl-kos">.</span><span class="pl-en">apply</span><span class="pl-kos">(</span><span class="pl-s1">callee</span><span class="pl-kos">,</span> <span class="pl-s1">args</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-smi">CollectArgumentTypesInformation</span><span class="pl-kos">(</span><span class="pl-s1">position</span>:<span class="pl-smi">Position</span><span class="pl-kos">,</span> <span class="pl-s1">arg</span>:<span class="pl-smi">any</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">type</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-smi">Object</span><span class="pl-kos">.</span><span class="pl-en">keys</span><span class="pl-kos">(</span><span class="pl-s1">arg</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">forEach</span><span class="pl-kos">(</span><span class="pl-s1">key</span><span class="pl-c1">=&gt;</span><span class="pl-kos">{</span> <span class="pl-s1">type</span><span class="pl-kos">[</span><span class="pl-s1">key</span><span class="pl-kos">]</span><span class="pl-c1">=</span><span class="pl-k">typeof</span> <span class="pl-s1">arg</span><span class="pl-kos">[</span><span class="pl-s1">key</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s1">type</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><code class="notranslate">CollectArgumentTypesInformation</code> for <code class="notranslate">contact</code> parameter would yield something like:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ firstName:string, lastName:string }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-c1">firstName</span>:<span class="pl-s1">string</span><span class="pl-kos">,</span> <span class="pl-c1">lastName</span>:<span class="pl-s1">string</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">that could be later transformed into interface <code class="notranslate">contact</code> (name of the interface is based on <code class="notranslate">renderContact</code> 1st parameter name):</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface contact { firstName:string, lastName:string }"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">contact</span> <span class="pl-kos">{</span> <span class="pl-c1">firstName</span>:<span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-c1">lastName</span>:<span class="pl-smi">string</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Later on this TypeScript type could be injected into the file like <code class="notranslate">render.ts</code> (next to the <code class="notranslate">render.js</code>) and then be used to generate <code class="notranslate">d.ts</code> file using TypeScript's <code class="notranslate">tsc --declaration</code>. Before running <code class="notranslate">tsc --declaration</code> author could refactor names for better naming and the instrumentation and types collection tool would respect that changes and wouldn't override them.</p> <p dir="auto"><code class="notranslate">position</code> would be used to source-map <code class="notranslate">.js</code> and <code class="notranslate">.ts</code> files. Or it could be something similar, maybe using <code class="notranslate">sourceMaps</code> project itself.</p>
<p dir="auto">From <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="141163009" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/7535" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/7535/hovercard" href="https://github.com/microsoft/TypeScript/issues/7535">#7535</a>, it would be useful for JavaScript package authors to have the ability to generate declarations from their project. This would help with getting started on a type definition (it would be populated with known interfaces/functions/types that are exported) and would also allow the creation of continuous integration scripts that check the JavaScript types with the hand-coded definition for inconsistencies.</p>
1
<p dir="auto">I'm wanting to include Bootstrap in a Drupal distribution that I'm working on. Because I'm using the Drupal.org packaging system, I cannot include Bootstrap because the APLv2 is not compatible with GPLv2 (which is what all code on Drupal.org must be licensed as, per our license policy: <a href="http://drupal.org/licensing/faq#q4" rel="nofollow">http://drupal.org/licensing/faq#q4</a>)</p> <p dir="auto">I was wondering if you'd be willing to either release Bootstrap under another license (in parallel to the Apache license) that would be compatible with our packaging system, or license Bootstrap specifically to Drupal.org contributors under a compatible license.</p>
<p dir="auto"><a href="https://developer.mozilla.org/en-US/docs/HTML/Element/fieldset" rel="nofollow">In HTML5, <code class="notranslate">&lt;fieldset&gt;</code> gains support for the <code class="notranslate">disabled</code> attribute</a>, allowing you to disable an entire fieldset at once. However, Bootstrap does not seem to style all input elements under disabled fieldsets appropriately; some aren't grayed-out like individually disabled input elements. They should be.</p> <p dir="auto">(Re-reporting since <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="7777408" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/5605" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/5605/hovercard" href="https://github.com/twbs/bootstrap/issues/5605">#5605</a> was somehow <a href="https://github.com/twitter/bootstrap/issues/5605#issuecomment-10828991" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/5605/hovercard">erroneously closed as a <em>duplicate of itself</em></a>.)</p>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">user</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.0.0 config file = /ansible/configuration/ansible.cfg configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.2.0.0 config file = /ansible/configuration/ansible.cfg configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">RHEL6 on both source and target</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">The "user" module has an "expires" option to set up the expiration date of a user. This option is using the Epoch format (not very helpful), and it seems it does not take into account the timezone.<br> In my case, it means that setting a user to expire on 2017-02-18 00:00:00, the user actually expired on 2017-02-17 00:00:00, 24 hours earlier.</p> <p dir="auto">Since all my systems are set with the CET timezone, I fully expect that an expiration date set using that timezone to be applied consistent to it.<br> Since the Linux expiration is set using a number of days, and not seconds, it's confusing to say the least to have to deal with a proper time.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Convert a date to Epoch format, this is in local CET timezone:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ date -d &quot;2017-02-18 00:59:59&quot; +%s 1487375999"><pre class="notranslate"><code class="notranslate">$ date -d "2017-02-18 00:59:59" +%s 1487375999 </code></pre></div> <p dir="auto">Use that value in the "user" module to set a user's expiry date, run the task, then check the actual expiry date:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ sudo chage -l user Last password change : Feb 14, 2017 Password expires : never Password inactive : never Account expires : Feb 17, 2017 Minimum number of days between password change : 0 Maximum number of days between password change : 99999 Number of days of warning before password expires : 7"><pre class="notranslate"><code class="notranslate">$ sudo chage -l user Last password change : Feb 14, 2017 Password expires : never Password inactive : never Account expires : Feb 17, 2017 Minimum number of days between password change : 0 Maximum number of days between password change : 99999 Number of days of warning before password expires : 7 </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">I expect the expiry date to be set to the one I used.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">The expiry date was set 24 hours earlier than expected.</p> <h4 dir="auto">Note</h4> <p dir="auto">A case was initially opened with RedHat support.</p>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Feature Idea</li> </ul> <h5 dir="auto">SUMMARY</h5> <p dir="auto">With a fairly complicated and intertwined set of playbooks and roles such as <a href="https://github.com/openshift/openshift-ansible/">openshift-ansible</a> has developed for users to manage OpenShift, a common frustration is when running a playbook takes half an hour to run through dozens of roles and only then fails on something that could have been detected and corrected up front. We would like to enable a playbook run to fail early in common cases where the user hasn't supplied correct configuration or host prerequisites.</p> <p dir="auto">This seems like something that should be a core competency of Ansible. I'm submitting this issue to discuss the design of features that could help.</p> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">ansible-playbook and roles</p> <h5 dir="auto">PROPOSAL</h5> <p dir="auto">For each role that needs it, provide a set of tasks (perhaps in a subdirectory like <code class="notranslate">validations</code>) that are intended to run before the main tasks of the role or the main tasks of any of its dependencies, with the intent to fail quickly if there are obvious problems that would prevent the role from succeeding. Then Ansible can run through the playbook's role dependency tree twice, once for pre-validations, and once for the usual purpose.</p> <p dir="auto">The validations of a dependency role should run before the validations of the role that depends on it.</p> <p dir="auto">Probably the validations should run again during the main run, as runtime could have altered conditionals and even the dependency tree (for dynamic includes). As with check mode, this might imply supplying an awareness of whether a task is running in validation mode or runtime mode.</p> <h5 dir="auto">ALTERNATE APPROACHES</h5> <p dir="auto">Some initial ideas for solving under the current implementation that on reflection DO NOT seem like good approaches. The proposal above may prove clearly flawed as well, but hopefully some good ideas are generated.</p> <ul dir="auto"> <li>Use <code class="notranslate">include_role</code> for all role dependencies; for those with validations, include them twice, first <code class="notranslate">with_tasks: validations.yml</code> (which in turn would invoke the validations of any roles it depends on). The meta.yml couldn't specify any role dependencies (because they would all run before any validation tasks). This is very awkward and requires strict compliance to work at all. Every role would have to be aware of the two modes, even if it didn't have any validations, in case any of its dependencies did or ever gained some in the future. And you'd be specifying each role's dependencies in two places.</li> <li>Create a role for running validations and include it early in the relevant playbooks. <ul dir="auto"> <li>Issues would arise from tightly coupling all the roles into this role. With the validation in a central role, do the other roles invoke that central role, or duplicate the validation logic, or just not try?</li> <li>Different roles are meant to operate on different host groups and so the role would either need to be several roles (one for each host group where validations apply) or would require logic to determine whether validation tasks apply for a given host.</li> <li>It can be complicated to determine up front which role validations would even be relevant, so as not to require something for a component that's not even being used.</li> </ul> </li> <li>Tag all validation tasks with <code class="notranslate">validation</code> and have the user run the playbook twice, once with <code class="notranslate">--tags validation</code> and once without. It's not clear to me if this could accurately construct the dependency tree with <code class="notranslate">include_role</code> tasks in play, but it may work. To me the larger issue is that this just doesn't meet a user's expectations for how to use the tool, and it's not a very good UX to run it once with almost everything skipped, then run it again "for real".</li> </ul>
0
<p dir="auto">When trying to use the Julia package Images with julia-debug, the process crashes with the following message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; using Images julia-debug: dump.c:2117: jl_recache_type: Zusicherung »t-&gt;uid != 0« nicht erfüllt. signal (6): Abgebrochen gsignal at /lib/x86_64-linux-gnu/libc.so.6 (unknown line) abort at /lib/x86_64-linux-gnu/libc.so.6 (unknown line) ..."><pre class="notranslate"><code class="notranslate">julia&gt; using Images julia-debug: dump.c:2117: jl_recache_type: Zusicherung »t-&gt;uid != 0« nicht erfüllt. signal (6): Abgebrochen gsignal at /lib/x86_64-linux-gnu/libc.so.6 (unknown line) abort at /lib/x86_64-linux-gnu/libc.so.6 (unknown line) ... </code></pre></div> <p dir="auto">I've tried to use a self compiled Julia version as well as the original binaries from the home page:<br> Version 0.4.6 (2016-06-19 17:16 UTC)</p> <p dir="auto">The system runs with a x64 Ubuntu 16.04.1 OS</p>
<p dir="auto">Using Images commit fbf9e98112c88355fc0b6c986995b7e9875ebcba, and</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; versioninfo() Julia Version 0.5.0-dev+4015 Commit 0eb3875* (2016-05-10 17:38 UTC) DEBUG build Platform Info: System: Linux (x86_64-linux-gnu) CPU: Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge) LAPACK: libopenblas64_ LIBM: libopenlibm LLVM: libLLVM-3.7.1 (ORCJIT, sandybridge)"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">versioninfo</span>() Julia Version <span class="pl-c1">0.5</span>.<span class="pl-c1">0</span><span class="pl-k">-</span>dev<span class="pl-k">+</span><span class="pl-c1">4015</span> Commit <span class="pl-c1">0</span>eb3875<span class="pl-k">*</span> (<span class="pl-c1">2016</span><span class="pl-k">-</span><span class="pl-c1">05</span><span class="pl-k">-</span><span class="pl-c1">10</span> <span class="pl-c1">17</span><span class="pl-k">:</span><span class="pl-c1">38</span> UTC) DEBUG build Platform Info<span class="pl-k">:</span> System<span class="pl-k">:</span> Linux (x86_64<span class="pl-k">-</span>linux<span class="pl-k">-</span>gnu) CPU<span class="pl-k">:</span> <span class="pl-c1">Intel</span>(R) <span class="pl-c1">Xeon</span>(R) CPU E5<span class="pl-k">-</span><span class="pl-c1">2650</span> <span class="pl-c1">0</span> @ <span class="pl-c1">2.00</span>GHz WORD_SIZE<span class="pl-k">:</span> <span class="pl-c1">64</span> BLAS<span class="pl-k">:</span> libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge) LAPACK<span class="pl-k">:</span> libopenblas64_ LIBM<span class="pl-k">:</span> libopenlibm LLVM<span class="pl-k">:</span> libLLVM<span class="pl-k">-</span><span class="pl-c1">3.7</span>.<span class="pl-c1">1</span> (ORCJIT, sandybridge)</pre></div> <p dir="auto">(NB: this is a debug build)</p> <p dir="auto">I get a segfault from <code class="notranslate">dump.c</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia-0.5: /home/tim/src/julia-0.5/src/dump.c:2222: jl_recache_type: Assertion `t-&gt;uid != 0' failed. signal (6): Aborted while loading no file, in expression starting on line 0 gsignal at /lib/x86_64-linux-gnu/libc.so.6 (unknown line) abort at /lib/x86_64-linux-gnu/libc.so.6 (unknown line) unknown function (ip: 0x7f99e1da1b85) __assert_fail at /lib/x86_64-linux-gnu/libc.so.6 (unknown line) jl_recache_type at /home/tim/src/julia-0.5/src/dump.c:2222 jl_recache_types at /home/tim/src/julia-0.5/src/dump.c:2273 _jl_restore_incremental at /home/tim/src/julia-0.5/src/dump.c:2330 jl_restore_incremental at /home/tim/src/julia-0.5/src/dump.c:2379 _require_from_serialized at ./loading.jl:174 require at ./loading.jl:365 unknown function (ip: 0x7f99dea1f016) jl_call_method_internal at /home/tim/src/julia-0.5/src/julia_internal.h:76 jl_apply_generic at /home/tim/src/julia-0.5/src/gf.c:1561 jl_apply at /home/tim/src/julia-0.5/src/julia.h:1382 eval_import_path_ at /home/tim/src/julia-0.5/src/toplevel.c:375 eval_import_path at /home/tim/src/julia-0.5/src/toplevel.c:402 jl_toplevel_eval_flex at /home/tim/src/julia-0.5/src/toplevel.c:451 jl_toplevel_eval at /home/tim/src/julia-0.5/src/toplevel.c:557 jl_toplevel_eval_in_warn at /home/tim/src/julia-0.5/src/builtins.c:547 jl_toplevel_eval_in at /home/tim/src/julia-0.5/src/builtins.c:514 eval at ./boot.jl:230 unknown function (ip: 0x7f99de987070) jl_call_method_internal at /home/tim/src/julia-0.5/src/julia_internal.h:76 jl_apply_generic at /home/tim/src/julia-0.5/src/gf.c:1561 [inline] at ./REPL.jl:3 eval_user_input at ./REPL.jl:62 unknown function (ip: 0x7f97dcbfb5a6) jl_call_method_internal at /home/tim/src/julia-0.5/src/julia_internal.h:76 jl_apply_generic at /home/tim/src/julia-0.5/src/gf.c:1561 [inline] at ./REPL.jl:92 #1 at ./event.jl:46 unknown function (ip: 0x7f99e3e5b52f) jl_call_method_internal at /home/tim/src/julia-0.5/src/julia_internal.h:76 jl_apply_generic at /home/tim/src/julia-0.5/src/gf.c:1561 jl_apply at /home/tim/src/julia-0.5/src/julia.h:1382 start_task at /home/tim/src/julia-0.5/src/task.c:253 unknown function (ip: 0xffffffffffffffff) Allocations: 4340062 (Pool: 4338379; Big: 1683); GC: 9 Aborted (core dumped)"><pre class="notranslate"><code class="notranslate">julia-0.5: /home/tim/src/julia-0.5/src/dump.c:2222: jl_recache_type: Assertion `t-&gt;uid != 0' failed. signal (6): Aborted while loading no file, in expression starting on line 0 gsignal at /lib/x86_64-linux-gnu/libc.so.6 (unknown line) abort at /lib/x86_64-linux-gnu/libc.so.6 (unknown line) unknown function (ip: 0x7f99e1da1b85) __assert_fail at /lib/x86_64-linux-gnu/libc.so.6 (unknown line) jl_recache_type at /home/tim/src/julia-0.5/src/dump.c:2222 jl_recache_types at /home/tim/src/julia-0.5/src/dump.c:2273 _jl_restore_incremental at /home/tim/src/julia-0.5/src/dump.c:2330 jl_restore_incremental at /home/tim/src/julia-0.5/src/dump.c:2379 _require_from_serialized at ./loading.jl:174 require at ./loading.jl:365 unknown function (ip: 0x7f99dea1f016) jl_call_method_internal at /home/tim/src/julia-0.5/src/julia_internal.h:76 jl_apply_generic at /home/tim/src/julia-0.5/src/gf.c:1561 jl_apply at /home/tim/src/julia-0.5/src/julia.h:1382 eval_import_path_ at /home/tim/src/julia-0.5/src/toplevel.c:375 eval_import_path at /home/tim/src/julia-0.5/src/toplevel.c:402 jl_toplevel_eval_flex at /home/tim/src/julia-0.5/src/toplevel.c:451 jl_toplevel_eval at /home/tim/src/julia-0.5/src/toplevel.c:557 jl_toplevel_eval_in_warn at /home/tim/src/julia-0.5/src/builtins.c:547 jl_toplevel_eval_in at /home/tim/src/julia-0.5/src/builtins.c:514 eval at ./boot.jl:230 unknown function (ip: 0x7f99de987070) jl_call_method_internal at /home/tim/src/julia-0.5/src/julia_internal.h:76 jl_apply_generic at /home/tim/src/julia-0.5/src/gf.c:1561 [inline] at ./REPL.jl:3 eval_user_input at ./REPL.jl:62 unknown function (ip: 0x7f97dcbfb5a6) jl_call_method_internal at /home/tim/src/julia-0.5/src/julia_internal.h:76 jl_apply_generic at /home/tim/src/julia-0.5/src/gf.c:1561 [inline] at ./REPL.jl:92 #1 at ./event.jl:46 unknown function (ip: 0x7f99e3e5b52f) jl_call_method_internal at /home/tim/src/julia-0.5/src/julia_internal.h:76 jl_apply_generic at /home/tim/src/julia-0.5/src/gf.c:1561 jl_apply at /home/tim/src/julia-0.5/src/julia.h:1382 start_task at /home/tim/src/julia-0.5/src/task.c:253 unknown function (ip: 0xffffffffffffffff) Allocations: 4340062 (Pool: 4338379; Big: 1683); GC: 9 Aborted (core dumped) </code></pre></div> <p dir="auto">This doesn't happen if I set <code class="notranslate">__precompile__(false)</code>, or just directly <code class="notranslate">include("Images.jl")</code>.</p> <p dir="auto">I've reproduced this on two machines, and it happens every time at the <a href="https://github.com/JuliaLang/julia/blob/89ba12bfbb87c35044bed0438e9254233d78ac95/src/dump.c#L2222">same place</a>. It's not a complete corruption, because</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(gdb) call jl_(t) Images.Clamp{ColorTypes.BGRA{#T&lt;:Any}}"><pre class="notranslate"><code class="notranslate">(gdb) call jl_(t) Images.Clamp{ColorTypes.BGRA{#T&lt;:Any}} </code></pre></div>
1
<p dir="auto">When trying to use object spread in function parameters with default parameter present, transform-object-rest-spread doesn't apply.</p> <h3 dir="auto">Input Code</h3> <p dir="auto"><a href="https://babeljs.io/repl/#?babili=false&amp;evaluate=true&amp;lineWrap=false&amp;presets=stage-3&amp;experimental=false&amp;loose=false&amp;spec=false&amp;code=const%20a%20%3D%20(%7B%20x%2C%20...rest%20%7D)%20%3D%3E%20%7B%7D%3B%0Aconst%20b%20%3D%20(%7B%20x%2C%20...rest%20%7D%20%3D%20%7B%7D)%20%3D%3E%20%7B%7D%3B%0A" rel="nofollow">Minimal test case in REPL</a> . Transform doesn't apply after adding default parameter.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const b = ({ x, ...rest } = {}) =&gt; {};"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-en">b</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> x<span class="pl-kos">,</span> ...<span class="pl-s1">rest</span> <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <h3 dir="auto">Babel Configuration (.babelrc, package.json, cli command)</h3> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Transform applies also when default parameter is present.</p> <h3 dir="auto">Current Behavior</h3> <p dir="auto">Transform doesn't apply when default parameter is present.</p> <h3 dir="auto">Possible Solution</h3> <h3 dir="auto">Context</h3> <p dir="auto">I was trying to use object-rest-spread in node 6 without babel plugins for natively supported ES6 features.</p> <h3 dir="auto">Your Environment</h3> <table role="table"> <thead> <tr> <th>software</th> <th>version</th> </tr> </thead> <tbody> <tr> <td>Babel</td> <td></td> </tr> <tr> <td>node</td> <td></td> </tr> <tr> <td>npm</td> <td></td> </tr> <tr> <td>Operating System</td> <td></td> </tr> </tbody> </table>
<p dir="auto">With latest <code class="notranslate">transform-object-rest-spread</code> <code class="notranslate">6.19.0</code> and without <code class="notranslate">transform-es2015-destructuring</code>, <code class="notranslate">transform-es2015-parameters</code>, such code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function fn({a = 1, ...b} = {}) { return {a, b}; }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">fn</span><span class="pl-kos">(</span><span class="pl-kos">{</span>a <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> ...<span class="pl-s1">b</span><span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">{</span>a<span class="pl-kos">,</span> b<span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">remains the same after transformation</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function fn({a = 1, ...b} = {}) { return {a, b}; }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">fn</span><span class="pl-kos">(</span><span class="pl-kos">{</span>a <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> ...<span class="pl-s1">b</span><span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">{</span>a<span class="pl-kos">,</span> b<span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Without default object <code class="notranslate"> = {}</code> it is transformed as expected to</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function fn(_ref) { let { a = 1 } = _ref; let b = (0, _objectWithoutProperties3.default)(_ref, [&quot;a&quot;]); return { a, b }; } }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">fn</span><span class="pl-kos">(</span><span class="pl-s1">_ref</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-kos">{</span> a <span class="pl-c1">=</span> <span class="pl-c1">1</span> <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">_ref</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">_objectWithoutProperties3</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-s1">_ref</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">"a"</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> a<span class="pl-kos">,</span> b <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">Babel Configuration (.babelrc)</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ plugins: [ ['transform-object-rest-spread', {useBuiltIns: true}] ] }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-c1">plugins</span>: <span class="pl-kos">[</span> <span class="pl-kos">[</span><span class="pl-s">'transform-object-rest-spread'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-c1">useBuiltIns</span>: <span class="pl-c1">true</span><span class="pl-kos">}</span><span class="pl-kos">]</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div>
1
<ul dir="auto"> <li>Electron Version: 2.0.7 and 3.0.0-beta5</li> <li>Operating System (Platform and Version): Windows7 7601</li> <li>Last known working Electron version: 3.0.0-beta5</li> </ul> <p dir="auto"><strong>Expected Behavior</strong><br> Render behavior of electron is the same as chrome.</p> <p dir="auto"><strong>Actual behavior</strong><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9638801/44139810-c1ef704e-a0aa-11e8-9017-227ce675c773.png"><img src="https://user-images.githubusercontent.com/9638801/44139810-c1ef704e-a0aa-11e8-9017-227ce675c773.png" alt="capture" style="max-width: 100%;"></a><br> left: chrome right: electron-3.0.0-beta5 + electron-vue<br> Electron is more blur than chrome.</p>
<ul dir="auto"> <li>Electron version: 1.7.4, 1.6.11</li> <li>Operating system: Windows 10</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">Default background color is #FFF as described in the documentation. And texts don't have grayscale anti-aliasing.<br> ( <code class="notranslate">&lt;webview&gt;</code> also should have #FFF background (NOT CSS background) by default.)</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">BrowserWindow shows different rendering when using <code class="notranslate">backgroundColor: '#FFF'</code> in the constructor.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1412057/28245466-57ee60b4-6a42-11e7-9d34-30c59ebbf4f2.png"><img src="https://user-images.githubusercontent.com/1412057/28245466-57ee60b4-6a42-11e7-9d34-30c59ebbf4f2.png" alt="antialiasing_vs_backgroundcolor" style="max-width: 100%;"></a></p> <h3 dir="auto">How to reproduce</h3> <ol dir="auto"> <li>Use <code class="notranslate">backgroundColor</code> in BrowserWindow constructor.</li> <li>Load a html.</li> </ol> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;/head&gt; &lt;body&gt; &lt;p&gt;Electron&lt;/p&gt; &lt;/body&gt; &lt;/html&gt;"><pre class="notranslate"><span class="pl-c1">&lt;!DOCTYPE html<span class="pl-kos">&gt;</span></span> <span class="pl-kos">&lt;</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Electron<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">As far as reading <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163699397" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/6344" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/6344/hovercard" href="https://github.com/electron/electron/issues/6344">#6344</a>, the window doesn't have background color when not specifying <code class="notranslate">backgroundColor</code>. This might cause other anti-aliasing/blurry-text issues like <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="208462897" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/8708" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/8708/hovercard" href="https://github.com/electron/electron/issues/8708">#8708</a>. When I set <code class="notranslate">backgroundColor</code>, I got good anti-aliasing as well as Chrome.</p> <p dir="auto">And due to this anti-aliasing behavior, <code class="notranslate">&lt;webview&gt;</code> also should have #FFF background (NOT CSS background) by default.</p> <h3 dir="auto">Possible fixes</h3> <p dir="auto">I think the problem is that there are two ways to set background color.</p> <ul dir="auto"> <li><a href="https://github.com/electron/electron/blob/v1.7.4/atom/browser/native_window.cc#L188-L194">https://github.com/electron/electron/blob/v1.7.4/atom/browser/native_window.cc#L188-L194</a></li> <li><a href="https://github.com/electron/electron/blob/v1.7.4/atom/browser/api/atom_api_window.cc#L87-L93">https://github.com/electron/electron/blob/v1.7.4/atom/browser/api/atom_api_window.cc#L87-L93</a></li> </ul> <p dir="auto"><code class="notranslate">native_window.cc</code> tries to set #FFF by using <code class="notranslate">SetBackgroundColor()</code>, but its implementation is different from <code class="notranslate">atom_api_window.cc</code>.<br> And <code class="notranslate">atom_api_window.cc</code> doesn't set #FFF when <code class="notranslate">backgroundColor</code> doesn't exist, so the background is not set to #FFF.</p> <p dir="auto">Unfortunately I could not imagine a consist way to resolve this.</p>
1
<p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life" rel="nofollow">http://freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p> <p dir="auto">There's no syntactic reason to require double quotes. The following should pass, but fails.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" $($('.slot')[0]).html(slotOne); $($('.slot')[1]).html(slotTwo); $($('.slot')[2]).html(slotThree);"><pre class="notranslate"><code class="notranslate"> $($('.slot')[0]).html(slotOne); $($('.slot')[1]).html(slotTwo); $($('.slot')[2]).html(slotThree); </code></pre></div> <p dir="auto">Switching to double quotes passes.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/13168836/9404935/9687932c-47c1-11e5-8862-d308cc17eea1.png"><img src="https://cloud.githubusercontent.com/assets/13168836/9404935/9687932c-47c1-11e5-8862-d308cc17eea1.png" alt="untitled" style="max-width: 100%;"></a><br> Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-target-the-parent-of-an-element-using-jquery" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-target-the-parent-of-an-element-using-jquery</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
0
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Base { static getCorrectFoo(): any { return this; } static get foo(): any { return this; } } class Inherited extends Base {}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Base</span> <span class="pl-kos">{</span> <span class="pl-k">static</span> <span class="pl-en">getCorrectFoo</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">any</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">static</span> <span class="pl-k">get</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">any</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">Inherited</span> <span class="pl-k">extends</span> <span class="pl-smi">Base</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Base.foo === Base; Base.getCorrectFoo() === Base; Inherited.foo === Base; /// Should be `Inherited` Inherited.getCorrectFoo() === Inherited;"><pre class="notranslate"><span class="pl-smi">Base</span><span class="pl-kos">.</span><span class="pl-c1">foo</span> <span class="pl-c1">===</span> <span class="pl-smi">Base</span><span class="pl-kos">;</span> <span class="pl-smi">Base</span><span class="pl-kos">.</span><span class="pl-en">getCorrectFoo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">===</span> <span class="pl-smi">Base</span><span class="pl-kos">;</span> <span class="pl-smi">Inherited</span><span class="pl-kos">.</span><span class="pl-c1">foo</span> <span class="pl-c1">===</span> <span class="pl-smi">Base</span><span class="pl-kos">;</span> <span class="pl-c">/// Should be `Inherited`</span> <span class="pl-smi">Inherited</span><span class="pl-kos">.</span><span class="pl-en">getCorrectFoo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">===</span> <span class="pl-smi">Inherited</span><span class="pl-kos">;</span></pre></div> <p dir="auto">I believe this is because the <code class="notranslate">foo</code> getter will be defined via <code class="notranslate">Object.defineProperty(Base, {..})</code>, which hard-wires <code class="notranslate">this</code> to <code class="notranslate">Base</code> within the getter, rather than binding as expected to <code class="notranslate">Inherited</code> in <code class="notranslate">Inherited.foo</code>.</p>
<p dir="auto">The following code:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var i = 0, j = 0; class Base { get instanceAccessor() { return ++i; } static get staticAccessor() { return ++j; } toString = () =&gt; 'instance: ' + this.instanceAccessor + ' static: ' + Base.staticAccessor; } class Derived extends Base { toString = () =&gt; 'instance: ' + this.instanceAccessor + ' static: ' + Derived.staticAccessor; } console.log('Base:\n%s\n%s\n%s', new Base(), new Base(), new Base()); console.log('Derived:\n%s\n%s\n%s', new Derived(), new Derived(), new Derived());"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">j</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-k">class</span> <span class="pl-smi">Base</span> <span class="pl-kos">{</span> <span class="pl-k">get</span> <span class="pl-en">instanceAccessor</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">++</span><span class="pl-s1">i</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">static</span> <span class="pl-k">get</span> <span class="pl-en">staticAccessor</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">++</span><span class="pl-s1">j</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c1">toString</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s">'instance: '</span> <span class="pl-c1">+</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">instanceAccessor</span> <span class="pl-c1">+</span> <span class="pl-s">' static: '</span> <span class="pl-c1">+</span> <span class="pl-smi">Base</span><span class="pl-kos">.</span><span class="pl-c1">staticAccessor</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">Derived</span> <span class="pl-k">extends</span> <span class="pl-smi">Base</span> <span class="pl-kos">{</span> <span class="pl-c1">toString</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s">'instance: '</span> <span class="pl-c1">+</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">instanceAccessor</span> <span class="pl-c1">+</span> <span class="pl-s">' static: '</span> <span class="pl-c1">+</span> <span class="pl-smi">Derived</span><span class="pl-kos">.</span><span class="pl-c1">staticAccessor</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'Base:\n%s\n%s\n%s'</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-smi">Base</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-smi">Base</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-smi">Base</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'Derived:\n%s\n%s\n%s'</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-smi">Derived</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-smi">Derived</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-smi">Derived</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">generates the following output (with the v1.3 compiler):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Base: instance: 1 static: 2 instance: 2 static: 3 instance: 3 static: 4 Derived: instance: 4 static: 1 instance: 5 static: 1 instance: 6 static: 1"><pre class="notranslate"><code class="notranslate">Base: instance: 1 static: 2 instance: 2 static: 3 instance: 3 static: 4 Derived: instance: 4 static: 1 instance: 5 static: 1 instance: 6 static: 1 </code></pre></div> <p dir="auto">Clearly <code class="notranslate">Derived.staticAccessor</code> is no longer an accessor, but a 'snapshot' of the value of <code class="notranslate">Base.staticAccessor</code> when the <code class="notranslate">Derived</code> constructor function called <code class="notranslate">__extends</code>.</p> <p dir="auto">Just wondering if this is the expected/correct behaviour?</p> <p dir="auto">PS. I haven't run into this problem 'in the wild' as I rarely use classes or accessors, but merely came across a <a href="http://toshokelectric.com/blog/2013/04/04/why-im-ditching-coffeescript/" rel="nofollow">rant/blog post</a> about another compile-to-JS language doing something similar, and was curious how TypeScript handled it.</p>
1
<p dir="auto">The responsive classes used for show hide/elements should de "inline-block" insted "block" if i want to use this class on a inline element the "flow natural" will be distroy.</p>
<p dir="auto">related to issues <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="16856611" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/8500" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/8500/hovercard" href="https://github.com/twbs/bootstrap/pull/8500">#8500</a> , <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="14075731" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/7808" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/7808/hovercard" href="https://github.com/twbs/bootstrap/issues/7808">#7808</a> , <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6609454" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/4929" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/4929/hovercard" href="https://github.com/twbs/bootstrap/issues/4929">#4929</a> ; using <code class="notranslate">.hidden-sm</code> to hide span within <code class="notranslate">.nav &gt; li &gt; a</code> . Because class is <code class="notranslate">display: block</code> above -sm then text wraps to new line. Would you consider <code class="notranslate">.hidden-*</code> classes to be <code class="notranslate">display: inline-block</code> instead ?</p> <p dir="auto">Here's a jsfiddle of the two cases - but the repercussions could be greater outside of this situation so probably needs more consideration... <a href="http://jsfiddle.net/jholl/P86yf/" rel="nofollow">http://jsfiddle.net/jholl/P86yf/</a></p>
1
<p dir="auto">This error happens when trying to read in the weights file using an older version of Pytorch. I assume this is why you say Pytorch needs to be built from source. However I've tried that all evening and I can't find a way to navigate all of the nvcc/gcc/cuda incompatibilities to get it to compile. Many errors, all of which are common when I google, with lots of workarounds, but all of them only partially work. Fundamentally it seems like some sort of std::tuple issue with CUDA/nvcc which Nvidia acknowledges but say they won't fix until the next CUDA release.</p> <p dir="auto">Is there any chance you could cave your weight file out into an older PyTorch format? Then I could just install python-pytorch-cuda-0.3.1-2 for my version of linux and be up and running in moments. ELF itself compiled fine, and it runs with python-pytorch-cuda-0.3.1-2... it just can't read the weights file. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="304606324" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/5729" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/5729/hovercard" href="https://github.com/pytorch/pytorch/issues/5729">#5729</a> states it's because of the newer file format.</p> <p dir="auto">Thanks!</p> <p dir="auto">I did try going to <a href="https://pytorch.org/" rel="nofollow">https://pytorch.org/</a> and choosing Linux / pip / Python 3.6 / CUDA 9.2 which gives me these commands:</p> <p dir="auto">pip3 install <a href="http://download.pytorch.org/whl/cu91/torch-0.4.0-cp36-cp36m-linux_x86_64.whl" rel="nofollow">http://download.pytorch.org/whl/cu91/torch-0.4.0-cp36-cp36m-linux_x86_64.whl</a><br> pip3 install torchvision</p> <p dir="auto">Which doesn't give me the error above, but I do instead get:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="RuntimeError: Error(s) in loading state_dict for Model_PolicyValue: Unexpected key(s) in state_dict: &quot;init_conv.1.num_batches_tracked&quot;, &quot;pi_final_conv.1.num_batches_tracked&quot;, &quot;value_final_conv.1.num_batches_tracked&quot;, &quot;resnet.resnet.0.conv_lower.1.num_batches_tracked&quot;, &quot;resnet.resnet.0.conv_upper.1.num_batches_tracked&quot;, &quot;resnet.resnet.1.conv_lower.1.num_batches_tracked&quot;, &quot;resnet.resnet.1.conv_upper.1.num_batches_tracked&quot;, &quot;resnet.resnet.2.conv_lower.1.num_batches_tracked&quot;, &quot;resnet.resnet.2.conv_upper.1.num_batches_tracked&quot;, &quot;resnet.resnet.3.conv_lower.1.num_batches_tracked&quot;, &quot;resnet.resnet.3.conv_upper.1.num_batches_tracked&quot;, &quot;resnet.resnet.4.conv_lower.1.num_batches_tracked&quot;, &quot;resnet.resnet.4.conv_upper.1.num_batches_tracked&quot;, &quot;resnet.resnet.5.conv_lower.1.num_batches_tracked&quot;, &quot;resnet.resnet.5.conv_upper.1.num_batches_tracked&quot;, &quot;resnet.resnet.6.conv_lower.1.num_batches_tracked&quot;, &quot;resnet.resnet.6.conv_upper.1.num_batches_tracked&quot;, &quot;resnet.resnet.7.conv_lower.1.num_batches_tracked&quot;, &quot;resnet.resnet.7.conv_upper.1.num_batches_tracked&quot;, &quot;resnet.resnet.8.conv_lower.1.num_batches_tracked&quot;, &quot;resnet.resnet.8.conv_upper.1.num_batches_tracked&quot;, &quot;resnet.resnet.9.conv_lower.1.num_batches_tracked&quot;, &quot;resnet.resnet.9.conv_upper.1.num_batches_tracked&quot;, &quot;resnet.resnet.10.conv_lower.1.num_batches_tracked&quot;, &quot;resnet.resnet.10.conv_upper.1.num_batches_tracked&quot;, &quot;resnet.resnet.11.conv_lower.1.num_batches_tracked&quot;, &quot;resnet.resnet.11.conv_upper.1.num_batches_tracked&quot;, &quot;resnet.resnet.12.conv_lower.1.num_batches_tracked&quot;, &quot;resnet.resnet.12.conv_upper.1.num_batches_tracked&quot;, &quot;resnet.resnet.13.conv_lower.1.num_batches_tracked&quot;, &quot;resnet.resnet.13.conv_upper.1.num_batches_tracked&quot;, &quot;resnet.resnet.14.conv_lower.1.num_batches_tracked&quot;, &quot;resnet.resnet.14.conv_upper.1.num_batches_tracked&quot;, &quot;resnet.resnet.15.conv_lower.1.num_batches_tracked&quot;, &quot;resnet.resnet.15.conv_upper.1.num_batches_tracked&quot;, &quot;resnet.resnet.16.conv_lower.1.num_batches_tracked&quot;, &quot;resnet.resnet.16.conv_upper.1.num_batches_tracked&quot;, &quot;resnet.resnet.17.conv_lower.1.num_batches_tracked&quot;, &quot;resnet.resnet.17.conv_upper.1.num_batches_tracked&quot;, &quot;resnet.resnet.18.conv_lower.1.num_batches_tracked&quot;, &quot;resnet.resnet.18.conv_upper.1.num_batches_tracked&quot;, &quot;resnet.resnet.19.conv_lower.1.num_batches_tracked&quot;, &quot;resnet.resnet.19.conv_upper.1.num_batches_tracked&quot;."><pre class="notranslate"><code class="notranslate">RuntimeError: Error(s) in loading state_dict for Model_PolicyValue: Unexpected key(s) in state_dict: "init_conv.1.num_batches_tracked", "pi_final_conv.1.num_batches_tracked", "value_final_conv.1.num_batches_tracked", "resnet.resnet.0.conv_lower.1.num_batches_tracked", "resnet.resnet.0.conv_upper.1.num_batches_tracked", "resnet.resnet.1.conv_lower.1.num_batches_tracked", "resnet.resnet.1.conv_upper.1.num_batches_tracked", "resnet.resnet.2.conv_lower.1.num_batches_tracked", "resnet.resnet.2.conv_upper.1.num_batches_tracked", "resnet.resnet.3.conv_lower.1.num_batches_tracked", "resnet.resnet.3.conv_upper.1.num_batches_tracked", "resnet.resnet.4.conv_lower.1.num_batches_tracked", "resnet.resnet.4.conv_upper.1.num_batches_tracked", "resnet.resnet.5.conv_lower.1.num_batches_tracked", "resnet.resnet.5.conv_upper.1.num_batches_tracked", "resnet.resnet.6.conv_lower.1.num_batches_tracked", "resnet.resnet.6.conv_upper.1.num_batches_tracked", "resnet.resnet.7.conv_lower.1.num_batches_tracked", "resnet.resnet.7.conv_upper.1.num_batches_tracked", "resnet.resnet.8.conv_lower.1.num_batches_tracked", "resnet.resnet.8.conv_upper.1.num_batches_tracked", "resnet.resnet.9.conv_lower.1.num_batches_tracked", "resnet.resnet.9.conv_upper.1.num_batches_tracked", "resnet.resnet.10.conv_lower.1.num_batches_tracked", "resnet.resnet.10.conv_upper.1.num_batches_tracked", "resnet.resnet.11.conv_lower.1.num_batches_tracked", "resnet.resnet.11.conv_upper.1.num_batches_tracked", "resnet.resnet.12.conv_lower.1.num_batches_tracked", "resnet.resnet.12.conv_upper.1.num_batches_tracked", "resnet.resnet.13.conv_lower.1.num_batches_tracked", "resnet.resnet.13.conv_upper.1.num_batches_tracked", "resnet.resnet.14.conv_lower.1.num_batches_tracked", "resnet.resnet.14.conv_upper.1.num_batches_tracked", "resnet.resnet.15.conv_lower.1.num_batches_tracked", "resnet.resnet.15.conv_upper.1.num_batches_tracked", "resnet.resnet.16.conv_lower.1.num_batches_tracked", "resnet.resnet.16.conv_upper.1.num_batches_tracked", "resnet.resnet.17.conv_lower.1.num_batches_tracked", "resnet.resnet.17.conv_upper.1.num_batches_tracked", "resnet.resnet.18.conv_lower.1.num_batches_tracked", "resnet.resnet.18.conv_upper.1.num_batches_tracked", "resnet.resnet.19.conv_lower.1.num_batches_tracked", "resnet.resnet.19.conv_upper.1.num_batches_tracked". </code></pre></div>
<h2 dir="auto">PyTorch GitHub Issues Guidelines</h2> <p dir="auto">We like to limit our issues to bug reports and feature requests. If you have a question or would like help and support, please visit our forums: <a href="https://discuss.pytorch.org/" rel="nofollow">https://discuss.pytorch.org/</a></p> <p dir="auto">If you are submitting a feature request, please preface the title with [feature request].</p> <p dir="auto">When submitting a bug report, please include the following information (where relevant):</p> <ul dir="auto"> <li>PyTorch or Caffe2: <code class="notranslate">PyTorch</code></li> <li>OS: <code class="notranslate">Ubuntu 16.04</code></li> <li>PyTorch version: save using <code class="notranslate">0.4.0a0+67bbf58</code>, load using <code class="notranslate">0.2.0</code></li> <li>How you installed PyTorch (conda, pip, source): <code class="notranslate">source</code></li> <li>Python version: <code class="notranslate">python2.7</code></li> <li>CUDA/cuDNN version: <code class="notranslate">8.0/6.1</code></li> <li>GPU models and configuration: <code class="notranslate">TitanXp</code></li> <li>GCC version (if compiling from source): <code class="notranslate">gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609</code></li> <li>CMake version: <code class="notranslate">cmake version 3.5.1</code></li> <li>Build command you used (if compiling from source): <code class="notranslate">python setup.py install --user</code></li> <li>Versions of any other relevant libraries:</li> </ul> <p dir="auto">In addition, including the following information will also be very helpful for us to diagnose the problem:</p> <ul dir="auto"> <li>A script to reproduce the bug. Please try to provide as minimal of a test case as possible.</li> <li>Error messages and/or stack traces of the bug</li> <li>Context around what you are trying to do</li> </ul> <ul dir="auto"> <li>Create a tensor and save it in <code class="notranslate">0.4.0a0+67bbf58</code>:</li> </ul> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch as tc print(tc.__version__) # 0.2.0 t = tc.ones(3) tc.save(t, './t.pth')"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span> <span class="pl-k">as</span> <span class="pl-s1">tc</span> <span class="pl-en">print</span>(<span class="pl-s1">tc</span>.<span class="pl-s1">__version__</span>) <span class="pl-c"># 0.2.0</span> <span class="pl-s1">t</span> <span class="pl-c1">=</span> <span class="pl-s1">tc</span>.<span class="pl-en">ones</span>(<span class="pl-c1">3</span>) <span class="pl-s1">tc</span>.<span class="pl-en">save</span>(<span class="pl-s1">t</span>, <span class="pl-s">'./t.pth'</span>)</pre></div> <ul dir="auto"> <li>Load it in <code class="notranslate">0.2.0</code>:</li> </ul> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch as tc print(tc.__version__) # 0.4.0a0+67bbf58 t = tc.load('./t.pth') # error"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span> <span class="pl-k">as</span> <span class="pl-s1">tc</span> <span class="pl-en">print</span>(<span class="pl-s1">tc</span>.<span class="pl-s1">__version__</span>) <span class="pl-c"># 0.4.0a0+67bbf58</span> <span class="pl-s1">t</span> <span class="pl-c1">=</span> <span class="pl-s1">tc</span>.<span class="pl-en">load</span>(<span class="pl-s">'./t.pth'</span>) <span class="pl-c"># error</span></pre></div> <ul dir="auto"> <li>ERROR:</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) &lt;ipython-input-2-5932959b71e5&gt; in &lt;module&gt;() ----&gt; 1 x = tc.load('./t.pth') /home/ylxie/.local/lib/python2.7/site-packages/torch/serialization.pyc in load(f, map_location, pickle_module) 229 f = open(f, 'rb') 230 try: --&gt; 231 return _load(f, map_location, pickle_module) 232 finally: 233 if new_fd: /home/ylxie/.local/lib/python2.7/site-packages/torch/serialization.pyc in _load(f, map_location, pickle_module) 377 unpickler = pickle_module.Unpickler(f) 378 unpickler.persistent_load = persistent_load --&gt; 379 result = unpickler.load() 380 381 deserialized_storage_keys = pickle_module.load(f) AttributeError: 'module' object has no attribute '_rebuild_tensor_v2'"><pre class="notranslate"><code class="notranslate">--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) &lt;ipython-input-2-5932959b71e5&gt; in &lt;module&gt;() ----&gt; 1 x = tc.load('./t.pth') /home/ylxie/.local/lib/python2.7/site-packages/torch/serialization.pyc in load(f, map_location, pickle_module) 229 f = open(f, 'rb') 230 try: --&gt; 231 return _load(f, map_location, pickle_module) 232 finally: 233 if new_fd: /home/ylxie/.local/lib/python2.7/site-packages/torch/serialization.pyc in _load(f, map_location, pickle_module) 377 unpickler = pickle_module.Unpickler(f) 378 unpickler.persistent_load = persistent_load --&gt; 379 result = unpickler.load() 380 381 deserialized_storage_keys = pickle_module.load(f) AttributeError: 'module' object has no attribute '_rebuild_tensor_v2' </code></pre></div> <p dir="auto">How could I solve this? this is an abstract version of my issue, the <code class="notranslate">t</code> is actually a <code class="notranslate">state_dict</code>. Is there any way I can specify a saving protocol for the convenience of loading models at an older version.</p>
1
<p dir="auto">I haven't been able to find anything online that documents how the sync of reusable variables happens between CPU and GPU. Specifically, I'm interested in if a CPU pinned variable is used multiple times in a GPU computation without being updated, does it sync only once (i.e. use a dirty flag), or will it try sync again each time?</p>
<p dir="auto">Hello dear tensorflowers,</p> <p dir="auto">In a research project, I encountered the need to create tensors of the same shape than any other tensor with a custom value (not just 0 or 1), could be Boolean, Floats, Integers and so on.</p> <p dir="auto">The functions prototypes are the following and will be implemented in <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/ops/array_ops.py"> tensorflow/python/ops/array_ops.py</a>:</p> <ul dir="auto"> <li><strong>tf.alphas</strong> (shape, alpha_value, name=None)</li> <li><strong>tf.alphas_like</strong> (tensor, alpha_value, name=None, optimize=True)</li> </ul> <p dir="auto">The code is not created from scratch. It is <strong>highly</strong> inspired by the functions tf.ones, tf.zeros for tf.alphas and by tf.zeros_like, tf.ones_like for tf.alphas_like.</p> <p dir="auto">The code use the latest implementation and has been designed to work with <em>eager_mode</em>.<br> The number of modification is relatively small, thus I am relatively confident on the robustness of the new implementation (largely based on the existing one).</p> <p dir="auto">The idea is to reproduce and merge the functions while enabling to set any custom value in the tensor:</p> <ul dir="auto"> <li><strong>tf.alphas merges:</strong> <ul dir="auto"> <li>tf.ones</li> <li>tf.zeros</li> </ul> </li> <li><strong>tf.alphas_like merges:</strong> <ul dir="auto"> <li>tf.zeros_like</li> <li>tf.ones_like</li> </ul> </li> </ul> <h3 dir="auto">How is the API Working ?</h3> <p dir="auto">My new functions take a parameter <em>alpha_value</em> and fill the tensor with this value. This allows me to run such a script:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import tensorflow as tf a = tf.constant([ [ [4, 5, 6], [1, 2, 3] ], [ [4, 5, 6], [1, 2, 3] ] ]) b1 = tf.alphas_like(a, 0.5431) b2 = tf.alphas_like(a, 5) b3 = tf.alphas_like(a, -5) b4 = tf.alphas_like(a, True) with tf.Session() as sess: _b1, _b2, _b3, _b4 = sess.run([b1, b2, b3, b4]) print(&quot;b1:&quot;, _b1) print(&quot;b2:&quot;, _b2) print(&quot;b3:&quot;, _b3) print(&quot;b4:&quot;, _b4) ############### OUTPUTS ############### &gt;&gt;&gt; b1: [ [ [ 0.5431 0.5431 0.5431] [ 0.5431 0.5431 0.5431] ] [ [ 0.5431 0.5431 0.5431] [ 0.5431 0.5431 0.5431] ] ] &gt;&gt;&gt; b2: [ [ [5 5 5] [5 5 5] ] [ [5 5 5] [5 5 5] ] ] &gt;&gt;&gt; b3: [ [ [-5 -5 -5] [-5 -5 -5] ] [ [-5 -5 -5] [-5 -5 -5] ] ] &gt;&gt;&gt; b4: [ [ [ True True True] [ True True True] ] [ [ True True True] [ True True True] ] ]"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">constant</span>([ [ [<span class="pl-c1">4</span>, <span class="pl-c1">5</span>, <span class="pl-c1">6</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>] ], [ [<span class="pl-c1">4</span>, <span class="pl-c1">5</span>, <span class="pl-c1">6</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>] ] ]) <span class="pl-s1">b1</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">alphas_like</span>(<span class="pl-s1">a</span>, <span class="pl-c1">0.5431</span>) <span class="pl-s1">b2</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">alphas_like</span>(<span class="pl-s1">a</span>, <span class="pl-c1">5</span>) <span class="pl-s1">b3</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">alphas_like</span>(<span class="pl-s1">a</span>, <span class="pl-c1">-</span><span class="pl-c1">5</span>) <span class="pl-s1">b4</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">alphas_like</span>(<span class="pl-s1">a</span>, <span class="pl-c1">True</span>) <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-v">Session</span>() <span class="pl-k">as</span> <span class="pl-s1">sess</span>: <span class="pl-s1">_b1</span>, <span class="pl-s1">_b2</span>, <span class="pl-s1">_b3</span>, <span class="pl-s1">_b4</span> <span class="pl-c1">=</span> <span class="pl-s1">sess</span>.<span class="pl-en">run</span>([<span class="pl-s1">b1</span>, <span class="pl-s1">b2</span>, <span class="pl-s1">b3</span>, <span class="pl-s1">b4</span>]) <span class="pl-en">print</span>(<span class="pl-s">"b1:"</span>, <span class="pl-s1">_b1</span>) <span class="pl-en">print</span>(<span class="pl-s">"b2:"</span>, <span class="pl-s1">_b2</span>) <span class="pl-en">print</span>(<span class="pl-s">"b3:"</span>, <span class="pl-s1">_b3</span>) <span class="pl-en">print</span>(<span class="pl-s">"b4:"</span>, <span class="pl-s1">_b4</span>) <span class="pl-c">############### OUTPUTS ###############</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">b1</span>: [ [ [ <span class="pl-c1">0.5431</span> <span class="pl-c1">0.5431</span> <span class="pl-c1">0.5431</span>] [ <span class="pl-c1">0.5431</span> <span class="pl-c1">0.5431</span> <span class="pl-c1">0.5431</span>] ] [ [ <span class="pl-c1">0.5431</span> <span class="pl-c1">0.5431</span> <span class="pl-c1">0.5431</span>] [ <span class="pl-c1">0.5431</span> <span class="pl-c1">0.5431</span> <span class="pl-c1">0.5431</span>] ] ] <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">b2</span>: [ [ [<span class="pl-c1">5</span> <span class="pl-c1">5</span> <span class="pl-c1">5</span>] [<span class="pl-c1">5</span> <span class="pl-c1">5</span> <span class="pl-c1">5</span>] ] [ [<span class="pl-c1">5</span> <span class="pl-c1">5</span> <span class="pl-c1">5</span>] [<span class="pl-c1">5</span> <span class="pl-c1">5</span> <span class="pl-c1">5</span>] ] ] <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">b3</span>: [ [ [<span class="pl-c1">-</span><span class="pl-c1">5</span> <span class="pl-c1">-</span><span class="pl-c1">5</span> <span class="pl-c1">-</span><span class="pl-c1">5</span>] [<span class="pl-c1">-</span><span class="pl-c1">5</span> <span class="pl-c1">-</span><span class="pl-c1">5</span> <span class="pl-c1">-</span><span class="pl-c1">5</span>] ] [ [<span class="pl-c1">-</span><span class="pl-c1">5</span> <span class="pl-c1">-</span><span class="pl-c1">5</span> <span class="pl-c1">-</span><span class="pl-c1">5</span>] [<span class="pl-c1">-</span><span class="pl-c1">5</span> <span class="pl-c1">-</span><span class="pl-c1">5</span> <span class="pl-c1">-</span><span class="pl-c1">5</span>] ] ] <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">b4</span>: [ [ [ <span class="pl-c1">True</span> <span class="pl-v">True</span> <span class="pl-c1">True</span>] [ <span class="pl-c1">True</span> <span class="pl-v">True</span> <span class="pl-c1">True</span>] ] [ [ <span class="pl-c1">True</span> <span class="pl-v">True</span> <span class="pl-c1">True</span>] [ <span class="pl-c1">True</span> <span class="pl-v">True</span> <span class="pl-c1">True</span>] ] ]</pre></div> <h3 dir="auto">How can you help ?</h3> <p dir="auto">Before submitting a PR, I would like to know a few things:</p> <ul dir="auto"> <li>Is it something that would be any kind of interest and worth a PR?</li> <li>Are the names I have chosen (tf.alphas and tf.alphas_like) okay with everyone ?</li> <li>In my PR, should I delete the implementation of tf.zeros_likes and tf.ones_likes and replace them as an alias of my new function which basically does the same job, just in a more flexible way ?</li> </ul> <p dir="auto">Thanks for your time and attention,</p> <p dir="auto">Best Regards,</p> <p dir="auto">Jonathan</p>
0
<h1 dir="auto">The problem</h1> <blockquote> <p dir="auto">I have cloned <a href="https://github.com/microsoft/vscode-extension-samples.git">Microsoft's VSCode Language server</a>. I then change directory to the example I'm interested in (<code class="notranslate">lsp-samples</code>) and run <code class="notranslate">npm install</code> in that folder.</p> </blockquote> <p dir="auto">It quickly dies the the following error message:</p> <p dir="auto">npm ERR! code EEXIST<br> npm ERR! syscall mkdir<br> npm ERR! path G:\My Drive\Git\vscode-extension-samples\vscode-extension-samples\lsp-sample\node_modules.staging<br> npm ERR! errno -4075<br> npm ERR! EEXIST: file already exists, mkdir 'G:\My Drive\Git\vscode-extension-samples\vscode-extension-samples\lsp-sample\node_modules.staging'<br> npm ERR! File exists: G:\My Drive\Git\vscode-extension-samples\vscode-extension-samples\lsp-sample\node_modules.staging<br> npm ERR! Remove the existing file and try again, or run npm<br> npm ERR! with --force to overwrite files recklessly.</p> <p dir="auto">See attached log file.<br> <a href="https://github.com/npm/cli/files/4041728/2020-01-09T17_39_35_413Z-debug.log">2020-01-09T17_39_35_413Z-debug.log</a></p> <h1 dir="auto">What's weird</h1> <p dir="auto">is that it complains that the .staging directory already exists, when it is the install process itself that created the folder (when I start, there is no preexisting node_modules folder).</p> <p dir="auto">Any idea what the problem might be ? I've tried reinstalling npm, deleting the node_modules folder and starting over, deleting the intermediate .staging folder, using the --force option, to no avail...</p>
<h1 dir="auto">What / Why</h1> <p dir="auto"><code class="notranslate">npm</code> command is removed after running <code class="notranslate">npm install -g npm</code>.</p> <h2 dir="auto">When</h2> <ul dir="auto"> <li>2019/12/18</li> <li>I can't remember exactly when I succeeded in running this command but at least a week ago.</li> </ul> <h2 dir="auto">Where</h2> <ul dir="auto"> <li>npm/cli</li> </ul> <h2 dir="auto">How</h2> <h3 dir="auto">Current Behavior</h3> <p dir="auto">This is the log:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~ % brew install node ==&gt; Downloading https://homebrew.bintray.com/bottles/node-13.3.0_1.catalina.bottle.tar.gz Already downloaded: /Users/manabu/Library/Caches/Homebrew/downloads/8a482358c0487b3ffeeebf4d1f3b3ca825018f6318ecdd6368fd0a6f45e0bea1--node-13.3.0_1.catalina.bottle.tar.gz ==&gt; Pouring node-13.3.0_1.catalina.bottle.tar.gz ==&gt; Caveats Bash completion has been installed to: /usr/local/etc/bash_completion.d ==&gt; Summary 🍺 /usr/local/Cellar/node/13.3.0_1: 4,663 files, 59MB ~ % npm install -g npm /usr/local/bin/npx -&gt; /usr/local/lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npm -&gt; /usr/local/lib/node_modules/npm/bin/npm-cli.js npm ERR! code EEXIST npm ERR! syscall symlink npm ERR! path ../../../lib/node_modules/npm/man/man1/npm-access.1 npm ERR! dest /usr/local/share/man/man1/npm-access.1 npm ERR! errno -17 npm ERR! EEXIST: file already exists, symlink '../../../lib/node_modules/npm/man/man1/npm-access.1' -&gt; '/usr/local/share/man/man1/npm-access.1' npm ERR! File exists: /usr/local/share/man/man1/npm-access.1 npm ERR! Remove the existing file and try again, or run npm npm ERR! with --force to overwrite files recklessly. npm ERR! A complete log of this run can be found in: npm ERR! /Users/manabu/.npm/_logs/2019-12-18T07_51_00_280Z-debug.log"><pre class="notranslate"><code class="notranslate">~ % brew install node ==&gt; Downloading https://homebrew.bintray.com/bottles/node-13.3.0_1.catalina.bottle.tar.gz Already downloaded: /Users/manabu/Library/Caches/Homebrew/downloads/8a482358c0487b3ffeeebf4d1f3b3ca825018f6318ecdd6368fd0a6f45e0bea1--node-13.3.0_1.catalina.bottle.tar.gz ==&gt; Pouring node-13.3.0_1.catalina.bottle.tar.gz ==&gt; Caveats Bash completion has been installed to: /usr/local/etc/bash_completion.d ==&gt; Summary 🍺 /usr/local/Cellar/node/13.3.0_1: 4,663 files, 59MB ~ % npm install -g npm /usr/local/bin/npx -&gt; /usr/local/lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npm -&gt; /usr/local/lib/node_modules/npm/bin/npm-cli.js npm ERR! code EEXIST npm ERR! syscall symlink npm ERR! path ../../../lib/node_modules/npm/man/man1/npm-access.1 npm ERR! dest /usr/local/share/man/man1/npm-access.1 npm ERR! errno -17 npm ERR! EEXIST: file already exists, symlink '../../../lib/node_modules/npm/man/man1/npm-access.1' -&gt; '/usr/local/share/man/man1/npm-access.1' npm ERR! File exists: /usr/local/share/man/man1/npm-access.1 npm ERR! Remove the existing file and try again, or run npm npm ERR! with --force to overwrite files recklessly. npm ERR! A complete log of this run can be found in: npm ERR! /Users/manabu/.npm/_logs/2019-12-18T07_51_00_280Z-debug.log </code></pre></div> <p dir="auto">I confirmed that this happened again when I ran <code class="notranslate">brew reinstall node</code>.</p> <p dir="auto">Actually as the output said, I successfully ran it with <code class="notranslate">--force</code> but I think that just showing these logs is better than removing the <code class="notranslate">npm</code> command.</p> <p dir="auto"><strong>Edit (2020/01/11):</strong></p> <blockquote> <p dir="auto">Actually as the output said, I successfully ran it with <code class="notranslate">--force</code></p> </blockquote> <p dir="auto">More specifically, I did these steps:</p> <ol dir="auto"> <li>Restore <code class="notranslate">npm</code> command that was removed by <code class="notranslate">npm install -g npm</code> <ul dir="auto"> <li>Since I use Homebrew for managing Node.js, I ran <code class="notranslate">brew reinstall node</code> to restore it</li> </ul> </li> <li>Run <code class="notranslate">npm install -g --force npm</code> as the output mentioned</li> </ol> <h3 dir="auto">Steps to Reproduce</h3> <ul dir="auto"> <li>n/a</li> </ul> <h3 dir="auto">Expected Behavior</h3> <ul dir="auto"> <li>Updating npm is successful</li> </ul> <h2 dir="auto">Who</h2> <ul dir="auto"> <li>n/a</li> </ul> <h2 dir="auto">References</h2> <ul dir="auto"> <li>n/a</li> </ul>
1
<h1 dir="auto">Feature request</h1> <h2 dir="auto">Is your feature request related to a problem? Please describe.</h2> <p dir="auto">The current Webpack chunking strategy in Next.js is based around a ratio-based heuristic for including modules in a single "commons" chunk. Because there is very little granularity, a lot of code is either downloaded unnecessarily (because the commons chunk includes a lot of code that's not actually required for a particular route) or duplicated across multiple page bundles (because it was included in less than half of all pages).</p> <p dir="auto">Because these two problems are in opposition, simply adjusting the ratio will always make one better and one worse.</p> <h2 dir="auto">Describe the solution you'd like</h2> <p dir="auto">I suggest adopting a SplitChunksPlugin configuration such as the following:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cacheGroups: { default: false, vendors: false, framework: { name: 'framework', chunks: 'all', test: /[\\/]node_modules[\\/](react|react-dom)[\\/]/, priority: 40 }, lib: { test(module) { return module.size() &gt; 160000 }, name(module) { return /node_modules\/(.*)/.exec(module.identifier())[1] .replace(/\/|\\/g, &quot;_&quot;) }, priority: 30, minChunks: 1, reuseExistingChunk: true }, commons: { name: 'commons', chunks: 'all', minChunks: totalPages, priority: 20 }, shared: { name: false, priority: 10, minChunks: 2, reuseExistingChunk: true } }, maxInitialRequests: 20"><pre class="notranslate"><code class="notranslate">cacheGroups: { default: false, vendors: false, framework: { name: 'framework', chunks: 'all', test: /[\\/]node_modules[\\/](react|react-dom)[\\/]/, priority: 40 }, lib: { test(module) { return module.size() &gt; 160000 }, name(module) { return /node_modules\/(.*)/.exec(module.identifier())[1] .replace(/\/|\\/g, "_") }, priority: 30, minChunks: 1, reuseExistingChunk: true }, commons: { name: 'commons', chunks: 'all', minChunks: totalPages, priority: 20 }, shared: { name: false, priority: 10, minChunks: 2, reuseExistingChunk: true } }, maxInitialRequests: 20 </code></pre></div> <p dir="auto">That configuration was designed with these considerations:</p> <h3 dir="auto">Greater granularity</h3> <p dir="auto">The problems with the current chunking strategy arise from the low granularity of the page-chunk/commons-chunk paradigm. We can easily reduce code duplication by allowing SplitChunksPlugin to create more chunks. In the case of the library shared across 5 entry points, SplitChunksPlugin could simply create a chunk that only contains code shared across those 5 libraries.</p> <p dir="auto">Note that SplitChunksPlugin has configuration options to prevent runaway granularity, such as a situation where every module ends up in its own chunk, and the user has to download 100 chunks just to render a route. In particular, in the config above, I'm using the maxInitialRequests option to prevent the number of bundles from skyrocketing.</p> <h3 dir="auto">Cache efficiency</h3> <p dir="auto">It should be a priority to ensure that shared modules get chunked in a way that causes minimum unnecessary cache invalidation. For an example of this principle, consider an application with 20 entry point chunks. Chunk A and Chunk B both depend on a large library and several small modules. The default SplitChunksPlugin behavior would create a single shared chunk for the intersection of Chunk A and Chunk B, containing the library and modules.</p> <p dir="auto">However, in this scenario, all of the following would cache-invalidate the entire chunk, including the large library:</p> <ol dir="auto"> <li>Adding a new module depended on by A and B exclusively (adds module to the chunk)</li> <li>Adding a new dependency from a different entry point to one of the modules or the library (module moves out of the chunk)</li> <li>Any change to any of the small modules shared between A and B.</li> </ol> <p dir="auto">For a sufficiently large library, it makes sense to bundle it all by itself to avoid potential cache invalidations, and the code sample above does exactly that.</p> <h3 dir="auto">A framework chunk</h3> <p dir="auto">Some modules will be required for every entry point, because they are functionally part of the framework itself, such as React and React-dom. These chunks should be put into a framework chunk, which should be independent from any code introduced by the application developers--even if that code is depended on by 100% of entry points. This is because the frameworks libraries tend to be fairly large, and we know that they generally will not change except when the app developers update the version of Next.js itself. By isolating the framework code we ensure that it will not be cache-invalidated by irrelevant changes made to application code.</p> <h2 dir="auto">Describe alternatives you've considered</h2> <p dir="auto">I've considered smaller values for maxInitialRequests, but for Next.js applications with a very large number of pages (100+) that can cause a size regression. At 20 that issue goes away. I believe that even at maxInitialRequests 20, the majority of NextJS sites will still have initial requests in the single digits. It's also not clear to me that even if it the initial requests went up to 20 that it would cause any performance degradation for users on modern browsers.</p> <h2 dir="auto">Additional context</h2> <p dir="auto">In my initial testing on some small and medium sized Next.js apps, this enhanced webpack configuration reduces KB of total JS required for initial page load by as much as <strong>20%</strong>. For particularly-poorly optimized sites, I think the improvement could be even greater.</p>
<h1 dir="auto">Bug report</h1> <p dir="auto">duplicate component, weird render.<br> packages:<br> <code class="notranslate">"babel-polyfill": "^6.26.0", "metamask-logo": "^2.1.4", "next": "^6.0.3", "react": "^16.4.1", "react-countdown-now": "^1.3.0", "react-dom": "^16.4.1", "semantic-ui-css": "^2.3.2", "semantic-ui-react": "^0.81.2", "solc": "^0.4.24", "truffle-contract": "^3.0.6", "truffle-hdwallet-provider": "^0.0.5", "web3": "^1.0.0-beta.34"</code></p> <h2 dir="auto">Describe the bug</h2> <p dir="auto">Duplicate component, weird render.<br> While i add the components in the index.js page, i see duplicated renders of the components</p> <p dir="auto">My index.js looks like:<br> <code class="notranslate">export default () =&gt; { return ( &lt;span&gt; &lt;HeadPage /&gt; &lt;HomeFirstSection /&gt; &lt;HomeWhatIsThis /&gt; &lt;/span&gt; ); };</code><br> HomeWhatIsThis component renders twice:<br> <code class="notranslate">import React, { Component } from 'react'; import { Grid, Segment, Image } from 'semantic-ui-react'; class HomeWhatIsThis extends Component { render() { return( html ); } } export default HomeWhatIsThis;</code></p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: macOS</li> <li>Browser (if applies): chrome, safari, brave - the same pb, indicating is a server side render issue.</li> <li>Version of Next.js: 6.0.3</li> </ul>
0
<p dir="auto">React version: 18.0.0</p> <p dir="auto">In 18.0.0, StrictMode causes a <code class="notranslate">useEffect</code> with an empty deps array to execute twice when a component mounts. This did not happen in 17.0.2.</p> <h2 dir="auto">Steps To Reproduce</h2> <p dir="auto">Add a <code class="notranslate">useEffect</code> with an empty deps array, e.g</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="useEffect(() =&gt; { console.log(&quot;test&quot;) }, [])"><pre class="notranslate"><span class="pl-en">useEffect</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"test"</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span></pre></div> <p dir="auto">And ensure StrictMode is enabled:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;StrictMode&gt; &lt;App /&gt; &lt;/StrictMode&gt;,"><pre class="notranslate"> <span class="pl-c1">&lt;</span><span class="pl-ent">StrictMode</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">App</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">StrictMode</span><span class="pl-c1">&gt;</span><span class="pl-kos">,</span></pre></div> <p dir="auto">Link to code example:</p> <p dir="auto">React 17.0.2: <a href="https://codesandbox.io/s/youthful-smoke-z3nxmv" rel="nofollow">https://codesandbox.io/s/youthful-smoke-z3nxmv</a><br> React 18.0.0: <a href="https://codesandbox.io/s/nervous-tess-7qsm1r" rel="nofollow">https://codesandbox.io/s/nervous-tess-7qsm1r</a></p> <p dir="auto">Observe that in the 18.0.0 version, the <code class="notranslate">console.log</code> and <code class="notranslate">fetch</code> statements are executed twice.</p> <h2 dir="auto">The current behavior</h2> <p dir="auto"><code class="notranslate">useEffect</code> with empty deps array is executed twice.</p> <h2 dir="auto">The expected behavior</h2> <p dir="auto">17.0.2 behaviour is preserved, the <code class="notranslate">useEffect</code> is only fired once.</p> <p dir="auto">Is this an expected change with 18.0.0? One common use case for <code class="notranslate">useEffect</code> is to make a web request - these web requests are now being fired twice when in StrictMode. In the code examples, I am making such a request and both can be seen in the network tab in devtools.</p> <p dir="auto">To be clear, its not a major issue for me at the moment, but its plausible that the duplicated <code class="notranslate">useEffect</code> call could result in differing behaviour for a component in development with StrictMode vs in production, depending on what the <code class="notranslate">useEffect</code> is doing.</p>
<p dir="auto">Inline styles are awesome. But for <del>better or</del> worse, some CSS properties have vendor-prefixed values. How can we write these inline in React?</p> <p dir="auto"><code class="notranslate">display: flex</code> is the example I ran into:</p> <div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=".my-container { display: flex; display: -webkit-flex; /* etc */ }"><pre class="notranslate">.<span class="pl-c1">my-container</span> { <span class="pl-c1">display</span><span class="pl-kos">:</span> flex; <span class="pl-c1">display</span><span class="pl-kos">:</span> -webkit-flex; <span class="pl-c">/* etc */</span> }</pre></div> <p dir="auto">I found myself building something like</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="render: function() { var style = { display: &quot;flex&quot;, display: &quot;-webkit-flex&quot; }; return &lt;div style={style}&gt;/*...*/&lt;/div&gt; };"><pre class="notranslate">render: <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">style</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">display</span>: <span class="pl-s">"flex"</span><span class="pl-kos">,</span> <span class="pl-c1">display</span>: <span class="pl-s">"-webkit-flex"</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">style</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">style</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span>/*...*/<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">only to be reminded by the linter that it won't work.</p> <p dir="auto">What to do in these situations?</p>
0
<p dir="auto">Problem:<br> Funtional programming needs better support in TypeScript. Values are everything in FP and in TypeScript the expression statements just silently discard them. Not being able to track places where the values are discarded leads to severe bugs. Example:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// before refactoring function notify(message: string) : void { window.postMessage(message); // &lt;-- assuming always works } // turns out that window.postMessage crashes when window gets closed // need a check and a conditional result // after refactoring function notify(message: string) : Tried&lt;void, 'cant-send-a-message'&gt; { if (window.closed) { return failureFrom('cant-send-a-message'); } else { return successFrom(window.postMessage(message)); } } // after such change we need to make sure that all places that call `notify` are addressed // it's easy to overlook those without a help from a compiler"><pre class="notranslate"><span class="pl-c">// before refactoring</span> <span class="pl-k">function</span> <span class="pl-en">notify</span><span class="pl-kos">(</span><span class="pl-s1">message</span>: <span class="pl-smi">string</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-smi">window</span><span class="pl-kos">.</span><span class="pl-en">postMessage</span><span class="pl-kos">(</span><span class="pl-s1">message</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// &lt;-- assuming always works</span> <span class="pl-kos">}</span> <span class="pl-c">// turns out that window.postMessage crashes when window gets closed</span> <span class="pl-c">// need a check and a conditional result</span> <span class="pl-c">// after refactoring</span> <span class="pl-k">function</span> <span class="pl-en">notify</span><span class="pl-kos">(</span><span class="pl-s1">message</span>: <span class="pl-smi">string</span><span class="pl-kos">)</span> : <span class="pl-smi">Tried</span><span class="pl-kos">&lt;</span><span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">,</span> <span class="pl-s">'cant-send-a-message'</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">closed</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-en">failureFrom</span><span class="pl-kos">(</span><span class="pl-s">'cant-send-a-message'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-en">successFrom</span><span class="pl-kos">(</span><span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-en">postMessage</span><span class="pl-kos">(</span><span class="pl-s1">message</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-c">// after such change we need to make sure that all places that call `notify` are addressed</span> <span class="pl-c">// it's easy to overlook those without a help from a compiler</span></pre></div> <p dir="auto">Workaround:<br> use a linter rule</p> <p dir="auto">Solution:<br> add a flag to the compiler</p>
<p dir="auto">Hello.</p> <p dir="auto">Quite often while working with <code class="notranslate">ImmutableJS</code> data structures and other immutable libraries people forget that values are immutable:</p> <p dir="auto">They can accidentally write:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="obj.set('name', 'newName');"><pre class="notranslate"><code class="notranslate">obj.set('name', 'newName'); </code></pre></div> <p dir="auto">Instead of:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="let newObj = obj.set('name', 'newName');"><pre class="notranslate"><code class="notranslate">let newObj = obj.set('name', 'newName'); </code></pre></div> <p dir="auto">These errors are hard to discover and they are very annoying. I think that this problem can't be solved by <code class="notranslate">tslint</code>, so I propose to add some sort of <code class="notranslate">"you must use the result"</code> check into the compiler. But right now I have no idea how I want it to be expressed in the language, so I create this issue mainly to start a discussion.</p> <p dir="auto">Rust lang, for example, solves a similar problem with <code class="notranslate">#[must_use]</code> annotation. This is not exact what we want, but it's a good example and shows that the problem is quite common.</p>
1
<p dir="auto">When write the markdown in Chinese, but display boxes in the preview, see below screenshot:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/360603/7162513/a243b8de-e3c7-11e4-8bfc-0be52f0defe4.png"><img src="https://cloud.githubusercontent.com/assets/360603/7162513/a243b8de-e3c7-11e4-8bfc-0be52f0defe4.png" alt="atom_markdown_preview_cn_issue" style="max-width: 100%;"></a></p> <p dir="auto">The atom version is <strong>v0.191.0</strong>.<br> Running on openSUSE 13.2 .</p>
<p dir="auto">My OS openSUSE 13.2 (Harlequin) (x86_64) 64 位 with GNOME 3.14.2<br> Atom is 0.190.0<br> markdown-preview 0.148.0</p> <div class="highlight highlight-text-md notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#ymsWebClient ###build dist 1. 手工删当前的额dist文件夹 2. 项目根目录下执行命令 ` gulp build `"><pre class="notranslate">#ymsWebClient ###build dist <span class="pl-s">1</span><span class="pl-v">.</span> 手工删当前的额dist文件夹 <span class="pl-s">2</span><span class="pl-v">.</span> 项目根目录下执行命令 ` gulp build `</pre></div> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;h1 id=&quot;ymswebclient&quot;&gt;ymsWebClient&lt;/h1&gt; &lt;h3 id=&quot;build-dist&quot;&gt;build dist&lt;/h3&gt; &lt;ol&gt; &lt;li&gt;&lt;p&gt;手工删当前的额dist文件夹&lt;/p&gt; &lt;/li&gt; &lt;li&gt;&lt;p&gt;项目根目录下执行命令 &lt;code style=&quot;font-family: DejaVu Sans Mono,Source Code Pro,WenQuanYi Micro Hei;&quot;&gt;gulp build&lt;/code&gt;&lt;/p&gt; &lt;/li&gt; &lt;/ol&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">h1</span> <span class="pl-c1">id</span>="<span class="pl-s">ymswebclient</span>"<span class="pl-kos">&gt;</span>ymsWebClient<span class="pl-kos">&lt;/</span><span class="pl-ent">h1</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h3</span> <span class="pl-c1">id</span>="<span class="pl-s">build-dist</span>"<span class="pl-kos">&gt;</span>build dist<span class="pl-kos">&lt;/</span><span class="pl-ent">h3</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>手工删当前的额dist文件夹<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>项目根目录下执行命令 <span class="pl-kos">&lt;</span><span class="pl-ent">code</span> <span class="pl-c1">style</span>="<span class="pl-s">font-family: DejaVu Sans Mono,Source Code Pro,WenQuanYi Micro Hei;</span>"<span class="pl-kos">&gt;</span>gulp build<span class="pl-kos">&lt;/</span><span class="pl-ent">code</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">But privew is <a target="_blank" rel="noopener noreferrer nofollow" href="https://raw.githubusercontent.com/mingjunyang/myvimconf4c/master/2015-04-08.png"><img src="https://raw.githubusercontent.com/mingjunyang/myvimconf4c/master/2015-04-08.png" alt="image" style="max-width: 100%;"></a><br> config.cson</p> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&quot;*&quot;: &quot;exception-reporting&quot;: userId: &quot;3c3323ae-d7b7-8749-bdce-32c65bf202da&quot; welcome: showOnStartup: false core: disabledPackages: [ &quot;welcome&quot; &quot;language-r&quot; &quot;javascript-snippets&quot; &quot;git-diff-details&quot; ] themes: [ &quot;atom-dark-ui&quot; &quot;solarized-dark-syntax&quot; ] projectHome: &quot;/home/mingjunyang/git&quot; editor: invisibles: {} showIndentGuide: true tabLength: 4 zoomFontWhenCtrlScrolling: false softWrap: true fontFamily: &quot;DejaVu Sans Mono,Source Code Pro,WenQuanYi Micro Hei&quot; fontSize: 22 &quot;atom-beautify&quot;: _analyticsUserId: &quot;9821831b-a2aa-4903-a52f-3599aea0f6c0&quot; js_keep_function_indentation: true css_newline_between_rules: true css_selector_separator_newline: true minimap: plugins: &quot;git-diff&quot;: false &quot;language-context-free&quot;: variation: &quot;A&quot; &quot;todo-show&quot;: ignoreThesePaths: [ &quot;/node_modules/&quot; &quot;/.git/&quot; &quot;/app/bower_components/&quot; &quot;/app/dist/&quot; ] &quot;tree-view&quot;: hideVcsIgnoredFiles: true &quot;css-color-highlight&quot;: {} &quot;atom-color-highlight&quot;: {} &quot;autocomplete-plus&quot;: {} &quot;autocomplete-clang&quot;: preCompiledHeaders: {} std: {} &quot;markdown-preview&quot;: {}"><pre class="notranslate"><span class="pl-s"><span class="pl-pds">"</span>*<span class="pl-pds">"</span></span><span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">"</span>exception-reporting<span class="pl-pds">"</span></span><span class="pl-k">:</span> <span class="pl-v">userId</span><span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">"</span>3c3323ae-d7b7-8749-bdce-32c65bf202da<span class="pl-pds">"</span></span> <span class="pl-v">welcome</span><span class="pl-k">:</span> <span class="pl-v">showOnStartup</span><span class="pl-k">:</span> <span class="pl-c1">false</span> <span class="pl-v">core</span><span class="pl-k">:</span> <span class="pl-v">disabledPackages</span><span class="pl-k">:</span> [ <span class="pl-s"><span class="pl-pds">"</span>welcome<span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">"</span>language-r<span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">"</span>javascript-snippets<span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">"</span>git-diff-details<span class="pl-pds">"</span></span> ] <span class="pl-v">themes</span><span class="pl-k">:</span> [ <span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">"</span>solarized-dark-syntax<span class="pl-pds">"</span></span> ] <span class="pl-v">projectHome</span><span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">"</span>/home/mingjunyang/git<span class="pl-pds">"</span></span> <span class="pl-v">editor</span><span class="pl-k">:</span> <span class="pl-v">invisibles</span><span class="pl-k">:</span> {} <span class="pl-v">showIndentGuide</span><span class="pl-k">:</span> <span class="pl-c1">true</span> <span class="pl-v">tabLength</span><span class="pl-k">:</span> <span class="pl-c1">4</span> <span class="pl-v">zoomFontWhenCtrlScrolling</span><span class="pl-k">:</span> <span class="pl-c1">false</span> <span class="pl-v">softWrap</span><span class="pl-k">:</span> <span class="pl-c1">true</span> <span class="pl-v">fontFamily</span><span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">"</span>DejaVu Sans Mono,Source Code Pro,WenQuanYi Micro Hei<span class="pl-pds">"</span></span> <span class="pl-v">fontSize</span><span class="pl-k">:</span> <span class="pl-c1">22</span> <span class="pl-s"><span class="pl-pds">"</span>atom-beautify<span class="pl-pds">"</span></span><span class="pl-k">:</span> <span class="pl-v">_analyticsUserId</span><span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">"</span>9821831b-a2aa-4903-a52f-3599aea0f6c0<span class="pl-pds">"</span></span> <span class="pl-v">js_keep_function_indentation</span><span class="pl-k">:</span> <span class="pl-c1">true</span> <span class="pl-v">css_newline_between_rules</span><span class="pl-k">:</span> <span class="pl-c1">true</span> <span class="pl-v">css_selector_separator_newline</span><span class="pl-k">:</span> <span class="pl-c1">true</span> <span class="pl-v">minimap</span><span class="pl-k">:</span> <span class="pl-v">plugins</span><span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">"</span>git-diff<span class="pl-pds">"</span></span><span class="pl-k">:</span> <span class="pl-c1">false</span> <span class="pl-s"><span class="pl-pds">"</span>language-context-free<span class="pl-pds">"</span></span><span class="pl-k">:</span> <span class="pl-v">variation</span><span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">"</span>A<span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">"</span>todo-show<span class="pl-pds">"</span></span><span class="pl-k">:</span> <span class="pl-v">ignoreThesePaths</span><span class="pl-k">:</span> [ <span class="pl-s"><span class="pl-pds">"</span>/node_modules/<span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">"</span>/.git/<span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">"</span>/app/bower_components/<span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">"</span>/app/dist/<span class="pl-pds">"</span></span> ] <span class="pl-s"><span class="pl-pds">"</span>tree-view<span class="pl-pds">"</span></span><span class="pl-k">:</span> <span class="pl-v">hideVcsIgnoredFiles</span><span class="pl-k">:</span> <span class="pl-c1">true</span> <span class="pl-s"><span class="pl-pds">"</span>css-color-highlight<span class="pl-pds">"</span></span><span class="pl-k">:</span> {} <span class="pl-s"><span class="pl-pds">"</span>atom-color-highlight<span class="pl-pds">"</span></span><span class="pl-k">:</span> {} <span class="pl-s"><span class="pl-pds">"</span>autocomplete-plus<span class="pl-pds">"</span></span><span class="pl-k">:</span> {} <span class="pl-s"><span class="pl-pds">"</span>autocomplete-clang<span class="pl-pds">"</span></span><span class="pl-k">:</span> <span class="pl-v">preCompiledHeaders</span><span class="pl-k">:</span> {} <span class="pl-v">std</span><span class="pl-k">:</span> {} <span class="pl-s"><span class="pl-pds">"</span>markdown-preview<span class="pl-pds">"</span></span><span class="pl-k">:</span> {}</pre></div>
1
<h2 dir="auto">Problem</h2> <ol dir="auto"> <li> <p dir="auto">The files struct (<code class="notranslate">Record&lt;string,string&gt;</code>), returned by running <code class="notranslate">Deno.emit</code> has the (semi) correct extensions for the file names (the keys of the struct), but the code inside the emitted output uses the original <code class="notranslate">.ts</code> extension for the <code class="notranslate">import</code> statements.<br> This requires special handling after emitting the output to search and replace all references to the old file extensions (as using the old ones won't work).</p> </li> <li> <p dir="auto">I wrote above that the keys have "semi" correct extensions, because the <code class="notranslate">emit</code> method only appends <code class="notranslate">.js</code>, <code class="notranslate">.js.map</code> &amp; <code class="notranslate">.d.ts</code> to the keys, without considering that the <em>"real"</em> output file shouldn't have <code class="notranslate">.ts</code> in it's name.</p> </li> </ol> <h2 dir="auto">Example</h2> <p dir="auto">You can see below that the output for <code class="notranslate">a.ts.js</code> has <code class="notranslate">import * as b from '/b.ts';</code> instead of <code class="notranslate">a.ts.js</code> has <code class="notranslate">import * as b from '/b.ts.js';</code></p> <p dir="auto"><strong>build.ts</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const {files} = await Deno.emit( &quot;/a.ts&quot;, { sources: { &quot;/b.ts&quot;: &quot;export const foo=true&quot;, &quot;/a.ts&quot;: &quot;import * as b from '/b.ts';\nconsole.log(b)&quot; } } ); console.log(files)"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span>files<span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-en">emit</span><span class="pl-kos">(</span> <span class="pl-s">"/a.ts"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">sources</span>: <span class="pl-kos">{</span> <span class="pl-s">"/b.ts"</span>: <span class="pl-s">"export const foo=true"</span><span class="pl-kos">,</span> <span class="pl-s">"/a.ts"</span>: <span class="pl-s">"import * as b from '/b.ts';\nconsole.log(b)"</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">files</span><span class="pl-kos">)</span></pre></div> <p dir="auto"><strong>command</strong></p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno run -q --unstable build.ts"><pre class="notranslate">deno run -q --unstable build.ts</pre></div> <p dir="auto"><strong>output</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;file:///b.ts.js.map&quot;: '{&quot;version&quot;:3,&quot;file&quot;:&quot;&quot;,&quot;sourceRoot&quot;:&quot;&quot;,&quot;sources&quot;:[&quot;file:///b.ts&quot;],&quot;names&quot;:[],&quot;mappings&quot;:&quot;AAAA,MAAM,C...', &quot;file:///a.ts.js.map&quot;: '{&quot;version&quot;:3,&quot;file&quot;:&quot;&quot;,&quot;sourceRoot&quot;:&quot;&quot;,&quot;sources&quot;:[&quot;file:///a.ts&quot;],&quot;names&quot;:[],&quot;mappings&quot;:&quot;AAAA,OAAO,K...', &quot;file:///a.ts.js&quot;: &quot;import * as b from '/b.ts';\nconsole.log(b);\n&quot;, &quot;file:///b.ts.js&quot;: &quot;export const foo = true;\n&quot; }"><pre class="notranslate"><code class="notranslate">{ "file:///b.ts.js.map": '{"version":3,"file":"","sourceRoot":"","sources":["file:///b.ts"],"names":[],"mappings":"AAAA,MAAM,C...', "file:///a.ts.js.map": '{"version":3,"file":"","sourceRoot":"","sources":["file:///a.ts"],"names":[],"mappings":"AAAA,OAAO,K...', "file:///a.ts.js": "import * as b from '/b.ts';\nconsole.log(b);\n", "file:///b.ts.js": "export const foo = true;\n" } </code></pre></div>
<h2 dir="auto">Problem</h2> <p dir="auto"><code class="notranslate">Deno.compile()</code> does not convert local import URLs from <code class="notranslate">.ts</code> extension to <code class="notranslate">.js</code> extension, making it impossible to use inside browser and Node.js.</p> <h2 dir="auto">Steps to reproduce</h2> <p dir="auto">Run <a href="https://gist.github.com/KSXGitHub/c94a9d7eb8e976f1126b4b9dfeba0497">this file</a> (<code class="notranslate">deno run https://gist.githubusercontent.com/KSXGitHub/c94a9d7eb8e976f1126b4b9dfeba0497/raw/004a9ddb6872b9a2f05506f13f3efdfd6edd6d69/tmp.ts</code>).</p> <h2 dir="auto">Expected behavior</h2> <ol dir="auto"> <li>All local import URLs in output JS files should have <code class="notranslate">.js</code> extension.</li> </ol> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// foo.js should look like this export * from &quot;./bar.js&quot;;"><pre class="notranslate"><span class="pl-c">// foo.js should look like this</span> <span class="pl-k">export</span> <span class="pl-c1">*</span> <span class="pl-k">from</span> <span class="pl-s">"./bar.js"</span><span class="pl-kos">;</span></pre></div> <ol start="2" dir="auto"> <li>All local import URLs in output TypeScript definition files (<code class="notranslate">.d.ts</code>) should have no extension.</li> </ol> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// foo.d.ts should look like this export * from &quot;./bar&quot;;"><pre class="notranslate"><span class="pl-c">// foo.d.ts should look like this</span> <span class="pl-k">export</span> <span class="pl-c1">*</span> <span class="pl-k">from</span> <span class="pl-s">"./bar"</span><span class="pl-kos">;</span></pre></div> <h2 dir="auto">Actual behavior</h2> <p dir="auto">All local import URLs are preserved, which is incorrect.</p>
1
<ul dir="auto"> <li>VSCode Version:0.10.12-alpha</li> <li>OS Version: windows10</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Launch app and open any folder which contains .ts project</li> <li>Add task.json file or select the node.js environment to generate launch.json.</li> <li>Try to update the property value with predefined common variables like ${file},${cwd}, ${workspaceRoot} etc. in task.json or launch.json .</li> <li>Verify intellisense should display for all the predefined common variables.</li> </ol> <p dir="auto">Actual: Intellisense is displaying only for ${workspaceRoot}.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/17735796/14119581/a96818e6-f5a3-11e5-8b51-2a92289e769e.png"><img src="https://cloud.githubusercontent.com/assets/17735796/14119581/a96818e6-f5a3-11e5-8b51-2a92289e769e.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">It would be great of there are completion proposals for variables in launch.json.<br> That's now quite easy to add, check out <a href="https://github.com/Microsoft/vscode/blob/master/extensions/configuration-editing/src/extension.ts">https://github.com/Microsoft/vscode/blob/master/extensions/configuration-editing/src/extension.ts</a>.<br> This adds completions to keybindings.json.</p> <p dir="auto">You could add yourself also to the 'configuration-editing' extension, as launch is also a configuration file.</p>
1
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18652330/38233858-9aa243e2-374e-11e8-9b46-a3a91d99ac61.png"><img src="https://user-images.githubusercontent.com/18652330/38233858-9aa243e2-374e-11e8-9b46-a3a91d99ac61.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">In the with-ant-design example, i think these file too big for production. Is this a bug?</h3> <h3 dir="auto">Can we optimize it?</h3>
<p dir="auto">changing response code in custom error page, not working.</p> <p dir="auto">This is content in pages/_error.js file.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import React from 'react' function Error(props) { return ( &lt;div&gt; my custom page &lt;/div&gt; ) } Error.getInitialProps = ({ req, res, err }) =&gt; { res.status = 200 // changing the response code here return {} }"><pre class="notranslate"><code class="notranslate">import React from 'react' function Error(props) { return ( &lt;div&gt; my custom page &lt;/div&gt; ) } Error.getInitialProps = ({ req, res, err }) =&gt; { res.status = 200 // changing the response code here return {} } </code></pre></div> <p dir="auto">but status is always goes as 404. any suggestion?</p>
0
<p dir="auto">I have a top level navbar component which starts a web socket to listen for user notifications. Unfortunately the navbar is unmounted and remounted on every page load, forcing the websocket to disconnect/reconnect.</p> <p dir="auto">Is there no way around this with next.js?</p>
<p dir="auto">Having animated route transitions would be nice, as this is one of the many benefits through client-side routing. Doing so should be left up to the user in my opinion (some people prefer CSS transitions over more fine-grained control with <code class="notranslate">react-motion</code> etc). As I understand it, one would need to modify the top-level App component.</p> <p dir="auto">The <a href="https://github.com/zeit/next.js/blob/master/client/next.js#L13">client entry file</a> seems to look for a globally assigned <code class="notranslate">__NEXT_DATA__.app</code> variable but I can't find any documentation on that.</p>
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 =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> Service's method can't access the service attribute when called from a child component of ChildModule with <code class="notranslate">this</code> if the service is declared in the providers array of AppModule and ChildModule.</p> <p dir="auto"><strong>Expected behavior</strong><br> An error need to spawn to warning the duplicated declaration of the service. Because without this error I searched for 3 days where was the problem in my service /or/ my component trying everything but nothing was working, then I just removed the service from my ChildModule and it was working fine.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> I tried to make a <a href="http://plnkr.co/edit/kRyrAZm3jG0OIffqiZ3x?p=preview" rel="nofollow">Plunker</a>, but I can't manage to setup the router on it, so it's not representative because it seems we need to load the sub-module with the router loadChildren method.</p> <p dir="auto">You can see the code issuing this problem on my Github here (protected branch): <a href="https://github.com/SherlockStd/ME4N-Starter/tree/this-error/src/app">https://github.com/SherlockStd/ME4N-Starter/tree/this-error/src/app</a></p> <p dir="auto">Here is the main structure of the files:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="src/ ├── app.component.html ├── app.component.ts ├── app.module.ts &lt;== provide AuthenticationService ├── app.routes.ts &lt;== load authentication.module with router.loadChildren() │ ├── +authentication/ │   ├── authentication.component.html │   ├── authentication.component.ts │   ├── authentication.module.ts &lt;== provide AuthenticationService │   ├── authentication.routes.ts &lt;== expose a route to login component │   └── login │      ├── login.component.html │      └── login.component.ts &lt;== using service's methods here don't work │ └── shared/    └── services/       ├── authentication.service.ts       └── base.service.ts"><pre class="notranslate"><code class="notranslate">src/ ├── app.component.html ├── app.component.ts ├── app.module.ts &lt;== provide AuthenticationService ├── app.routes.ts &lt;== load authentication.module with router.loadChildren() │ ├── +authentication/ │   ├── authentication.component.html │   ├── authentication.component.ts │   ├── authentication.module.ts &lt;== provide AuthenticationService │   ├── authentication.routes.ts &lt;== expose a route to login component │   └── login │      ├── login.component.html │      └── login.component.ts &lt;== using service's methods here don't work │ └── shared/    └── services/       ├── authentication.service.ts       └── base.service.ts </code></pre></div> <p dir="auto">What I mean by <code class="notranslate">login.component.ts &lt;== using service's methods here don't work</code> is that the service is unable to set his own attributes, it can read them but can't write.</p> <p dir="auto">If we provide <code class="notranslate">AuthenticationService</code> only in <code class="notranslate">app.module.ts</code>, instead of both <code class="notranslate">app.module.ts</code> and <code class="notranslate">authentication.module.ts</code> (), the problem is solved.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> If something like this break the context, we need to display an error explaining why.</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> Ubuntu 16.10, VSCode, yarn 0.23.4</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 4.1.1</p> </li> <li> <p dir="auto"><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</p> </li> </ul> <ul dir="auto"> <li> <p dir="auto"><strong>Language:</strong> TypeScript 2.3.2 compiling to ES5 (with AoT for prod)</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> 7.10.0</p> </li> </ul>
<p dir="auto">We would like to implement bare bones change detection so that we can unblock ourselves for other parts of the system and work on them in parallel.</p> <p dir="auto"><a href="https://github.com/mhevery/angular/blob/master/modules/change_detection/src/watch_group.js">https://github.com/mhevery/angular/blob/master/modules/change_detection/src/watch_group.js</a><br> <a href="https://github.com/mhevery/angular/blob/master/modules/change_detection/src/record.js">https://github.com/mhevery/angular/blob/master/modules/change_detection/src/record.js</a></p> <p dir="auto">I would love to get a very simple change detection going which can only watch simple properties such as <code class="notranslate">foo</code> or <code class="notranslate">bar</code> ie no (<code class="notranslate">foo.bar</code> or <code class="notranslate">foo().bar</code> or anything of that sort)</p> <p dir="auto">We should be able to implement this without the need for parser.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class Person { var age; } var person = new Person(); var pwg = new ProtoWatchGroup(); pwg.watch('age'); var wg = pwg.instantiate(); wg.setContext(person); var cd = new ChangeDetection(wg); cd.detectChanges();"><pre class="notranslate"><code class="notranslate">class Person { var age; } var person = new Person(); var pwg = new ProtoWatchGroup(); pwg.watch('age'); var wg = pwg.instantiate(); wg.setContext(person); var cd = new ChangeDetection(wg); cd.detectChanges(); </code></pre></div> <p dir="auto">Make this test pass: </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/angular/angular/blob/69210e4fde38433b4aa6c66e7c4e0e0093171df3/modules/change_detection/test/change_detection_spec.js#L9">angular/modules/change_detection/test/change_detection_spec.js</a> </p> <p class="mb-0 color-fg-muted"> Line 9 in <a data-pjax="true" class="commit-tease-sha" href="/angular/angular/commit/69210e4fde38433b4aa6c66e7c4e0e0093171df3">69210e4</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="L9" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="9"></td> <td id="LC9" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en">it</span><span class="pl-kos">(</span><span class="pl-s">'should do simple watching'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> </td> </tr> </tbody></table> </div> </div> <p></p>
0
<p dir="auto">Please add additional key combinations to default key bindings for copy-paste like:</p> <p dir="auto">Copy: CTRL + INS,<br> Paste: SHIFT + INS</p> <p dir="auto">I think many people use this keys combinations.</p>
<p dir="auto">Sorry if this is a duplicate, I didn't really know how to search it. My replace button is not large enough to show the entire word Replace. I am not sure what version introduced this, as I haven't used find/replace much as of late. I think it would have been after 0.150.0, but I'm not sure.</p> <p dir="auto">Screenshot:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1779681/5354808/9859b566-7f5a-11e4-8620-217a134c8d2d.png"><img src="https://cloud.githubusercontent.com/assets/1779681/5354808/9859b566-7f5a-11e4-8620-217a134c8d2d.png" alt="untitled-1" style="max-width: 100%;"></a></p>
0
<p dir="auto">Hello,</p> <p dir="auto">I tried approaching OpenCv at <a href="mailto:[email protected]">[email protected]</a> yet I got no answer for days.<br> Hence I didn't who to approach besides this forum.</p> <p dir="auto">It seems like the Q&amp;A site of OpenCV isn't available for more than few weeks.</p> <p dir="auto">Could you please fix it?<br> It is a great source for OpenCV.</p> <p dir="auto">Thank You.</p>
<h1 dir="auto">System information</h1> <ul dir="auto"> <li>OpenCV =&gt; 3.1</li> <li>Operating System / Platform =&gt; macOS Sierra 10.12 (16A304a)</li> <li>Compiler =&gt; Xcode</li> </ul> <p dir="auto"><a href="https://github.com/Homebrew/homebrew-science/issues/4104">https://github.com/Homebrew/homebrew-science/issues/4104</a></p>
0
<h3 dir="auto">Describe your issue.</h3> <p dir="auto">Using <code class="notranslate">environment_meson.yml</code>.<br> Ubuntu: 20.4<br> python 3.10<br> Conda: 4.11.0</p> <p dir="auto">Build fails with missing <code class="notranslate">hpp</code> file<br> <code class="notranslate">python dev.py --build-only</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In file included from scipy/stats/_hypotests_pythran.cpp:24: /home/eduardo/miniconda3/envs/scipy-meson/lib/python3.10/site-packages/pythran/pythonic/include/numpy/ceil.hpp:8:10: fatal error: xsimd/xsimd.hpp: No such file or directory 8 | #include &lt;xsimd/xsimd.hpp&gt;"><pre class="notranslate"><code class="notranslate">In file included from scipy/stats/_hypotests_pythran.cpp:24: /home/eduardo/miniconda3/envs/scipy-meson/lib/python3.10/site-packages/pythran/pythonic/include/numpy/ceil.hpp:8:10: fatal error: xsimd/xsimd.hpp: No such file or directory 8 | #include &lt;xsimd/xsimd.hpp&gt; </code></pre></div> <p dir="auto">I noticed the compilation command includes: <code class="notranslate">-I"${CONDA_PREFIX}"/include/python3.10</code> but the <code class="notranslate">xsimd</code> files are located at <code class="notranslate">${CONDA_PREFIX}"/include</code> (notice the path on command has an extra <code class="notranslate">python3.10</code> in path).</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="python dev.py --build-only (scipy-meson) The Meson build system Version: 0.61.2 Source dir: /home/eduardo/work/scipy/scipy-doit Build dir: /home/eduardo/work/scipy/scipy-doit/build Build type: native build Project name: SciPy Project version: 1.9.0.dev0 C compiler for the host machine: cc (gcc 9.4.0 &quot;cc (GCC) 9.4.0&quot;) C linker for the host machine: cc ld.bfd 2.36.1 C++ compiler for the host machine: c++ (gcc 9.4.0 &quot;c++ (GCC) 9.4.0&quot;) C++ linker for the host machine: c++ ld.bfd 2.36.1 Host machine cpu family: x86_64 Host machine cpu: x86_64 Compiler for C supports arguments -Wno-unused-but-set-variable: YES Library m found: YES Fortran compiler for the host machine: gfortran (gcc 9.4.0 &quot;GNU Fortran (GCC) 9.4.0&quot;) Fortran linker for the host machine: gfortran ld.bfd 2.36.1 Program cython found: YES (/home/eduardo/miniconda3/envs/scipy-meson/bin/cython) Program pythran found: YES (/home/eduardo/miniconda3/envs/scipy-meson/bin/pythran) Program cp found: YES (/usr/bin/cp) Program python3 found: YES (/home/eduardo/miniconda3/envs/scipy-meson/bin/python3.10) WARNING: Python files installed by Meson might not be found by python interpreter. This warning can be avoided by setting &quot;python.platlibdir&quot; option. WARNING: Python files installed by Meson might not be found by python interpreter. This warning can be avoided by setting &quot;python.purelibdir&quot; option. Found pkg-config: /home/eduardo/miniconda3/envs/scipy-meson/bin/pkg-config (0.29.2) Library npymath found: YES Library npyrandom found: YES Run-time dependency openblas found: YES 0.3.18 Dependency openblas found: YES 0.3.18 (cached) Program _build_utils/cythoner.py found: YES (/home/eduardo/miniconda3/envs/scipy-meson/bin/python3.10 /home/eduardo/work/scipy/scipy-doit/scipy/_build_utils/cythoner.py) Checking for function &quot;open_memstream&quot; : NO Configuring messagestream_config.h using configuration Compiler for C++ supports arguments -fvisibility=hidden: YES Checking for size of &quot;void*&quot; : 8 Run-time dependency threads found: YES Checking for size of &quot;void*&quot; : 8 Dependency threads found: YES unknown (cached) Compiler for C++ supports arguments -fvisibility=hidden: YES (cached) Compiler for C supports arguments -Wno-unused-but-set-variable: YES (cached) Compiler for C supports arguments -Wno-unused-but-set-variable: YES (cached) Compiler for C++ supports arguments -Wno-format-truncation: YES Compiler for C++ supports arguments -Wno-class-memaccess: YES Build targets in project: 196 SciPy 1.9.0.dev0 User defined options prefix: /home/eduardo/work/scipy/scipy-doit/build-install"><pre class="notranslate"><span class="pl-s1">python</span> <span class="pl-s1">dev</span>.<span class="pl-s1">py</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-s1">build</span><span class="pl-c1">-</span><span class="pl-en">only</span> (<span class="pl-s1">scipy</span><span class="pl-c1">-</span><span class="pl-s1">meson</span>) <span class="pl-v">The</span> <span class="pl-v">Meson</span> <span class="pl-s1">build</span> <span class="pl-s1">system</span> <span class="pl-v">Version</span>: <span class="pl-c1">0.61</span>.<span class="pl-c1">2</span> <span class="pl-v">Source</span> <span class="pl-s1">dir</span>: <span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">eduardo</span><span class="pl-c1">/</span><span class="pl-s1">work</span><span class="pl-c1">/</span><span class="pl-s1">scipy</span><span class="pl-c1">/</span><span class="pl-s1">scipy</span><span class="pl-c1">-</span><span class="pl-s1">doit</span> <span class="pl-v">Build</span> <span class="pl-s1">dir</span>: <span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">eduardo</span><span class="pl-c1">/</span><span class="pl-s1">work</span><span class="pl-c1">/</span><span class="pl-s1">scipy</span><span class="pl-c1">/</span><span class="pl-s1">scipy</span><span class="pl-c1">-</span><span class="pl-s1">doit</span><span class="pl-c1">/</span><span class="pl-s1">build</span> <span class="pl-v">Build</span> <span class="pl-s1">type</span>: <span class="pl-s1">native</span> <span class="pl-s1">build</span> <span class="pl-v">Project</span> <span class="pl-s1">name</span>: <span class="pl-v">SciPy</span> <span class="pl-v">Project</span> <span class="pl-s1">version</span>: <span class="pl-c1">1.9</span>.<span class="pl-c1">0.</span><span class="pl-s1">dev0</span> <span class="pl-v">C</span> <span class="pl-s1">compiler</span> <span class="pl-k">for</span> <span class="pl-s1">the</span> <span class="pl-s1">host</span> <span class="pl-s1">machine</span>: <span class="pl-en">cc</span> (<span class="pl-s1">gcc</span> <span class="pl-c1">9.4</span><span class="pl-c1">.0</span> <span class="pl-s">"cc (GCC) 9.4.0"</span>) <span class="pl-v">C</span> <span class="pl-s1">linker</span> <span class="pl-s1">for</span> <span class="pl-s1">the</span> <span class="pl-s1">host</span> <span class="pl-s1">machine</span>: <span class="pl-s1">cc</span> <span class="pl-s1">ld</span>.<span class="pl-s1">bfd</span> <span class="pl-c1">2.36</span><span class="pl-c1">.1</span> <span class="pl-v">C</span><span class="pl-c1">+</span><span class="pl-c1">+</span> <span class="pl-s1">compiler</span> <span class="pl-k">for</span> <span class="pl-s1">the</span> <span class="pl-s1">host</span> <span class="pl-s1">machine</span>: <span class="pl-s1">c</span><span class="pl-c1">+</span><span class="pl-c1">+</span> (<span class="pl-s1">gcc</span> <span class="pl-c1">9.4</span><span class="pl-c1">.0</span> <span class="pl-s">"c++ (GCC) 9.4.0"</span>) <span class="pl-v">C</span><span class="pl-c1">+</span><span class="pl-c1">+</span> <span class="pl-s1">linker</span> <span class="pl-k">for</span> <span class="pl-s1">the</span> <span class="pl-s1">host</span> <span class="pl-s1">machine</span>: <span class="pl-s1">c</span><span class="pl-c1">+</span><span class="pl-c1">+</span> <span class="pl-s1">ld</span>.<span class="pl-s1">bfd</span> <span class="pl-c1">2.36</span><span class="pl-c1">.1</span> <span class="pl-v">Host</span> <span class="pl-s1">machine</span> <span class="pl-s1">cpu</span> <span class="pl-s1">family</span>: <span class="pl-s1">x86_64</span> <span class="pl-v">Host</span> <span class="pl-s1">machine</span> <span class="pl-s1">cpu</span>: <span class="pl-s1">x86_64</span> <span class="pl-v">Compiler</span> <span class="pl-k">for</span> <span class="pl-v">C</span> <span class="pl-s1">supports</span> <span class="pl-s1">arguments</span> <span class="pl-c1">-</span><span class="pl-v">Wno</span><span class="pl-c1">-</span><span class="pl-s1">unused</span><span class="pl-c1">-</span><span class="pl-s1">but</span><span class="pl-c1">-</span><span class="pl-s1">set</span><span class="pl-c1">-</span><span class="pl-s1">variable</span>: <span class="pl-v">YES</span> <span class="pl-v">Library</span> <span class="pl-s1">m</span> <span class="pl-s1">found</span>: <span class="pl-v">YES</span> <span class="pl-v">Fortran</span> <span class="pl-s1">compiler</span> <span class="pl-k">for</span> <span class="pl-s1">the</span> <span class="pl-s1">host</span> <span class="pl-s1">machine</span>: <span class="pl-en">gfortran</span> (<span class="pl-s1">gcc</span> <span class="pl-c1">9.4</span><span class="pl-c1">.0</span> <span class="pl-s">"GNU Fortran (GCC) 9.4.0"</span>) <span class="pl-v">Fortran</span> <span class="pl-s1">linker</span> <span class="pl-k">for</span> <span class="pl-s1">the</span> <span class="pl-s1">host</span> <span class="pl-s1">machine</span>: <span class="pl-s1">gfortran</span> <span class="pl-s1">ld</span>.<span class="pl-s1">bfd</span> <span class="pl-c1">2.36</span><span class="pl-c1">.1</span> <span class="pl-v">Program</span> <span class="pl-s1">cython</span> <span class="pl-s1">found</span>: <span class="pl-v">YES</span> (<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">eduardo</span><span class="pl-c1">/</span><span class="pl-s1">miniconda3</span><span class="pl-c1">/</span><span class="pl-s1">envs</span><span class="pl-c1">/</span><span class="pl-s1">scipy</span><span class="pl-c1">-</span><span class="pl-s1">meson</span><span class="pl-c1">/</span><span class="pl-s1">bin</span><span class="pl-c1">/</span><span class="pl-s1">cython</span>) <span class="pl-v">Program</span> <span class="pl-s1">pythran</span> <span class="pl-s1">found</span>: <span class="pl-v">YES</span> (<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">eduardo</span><span class="pl-c1">/</span><span class="pl-s1">miniconda3</span><span class="pl-c1">/</span><span class="pl-s1">envs</span><span class="pl-c1">/</span><span class="pl-s1">scipy</span><span class="pl-c1">-</span><span class="pl-s1">meson</span><span class="pl-c1">/</span><span class="pl-s1">bin</span><span class="pl-c1">/</span><span class="pl-s1">pythran</span>) <span class="pl-v">Program</span> <span class="pl-s1">cp</span> <span class="pl-s1">found</span>: <span class="pl-v">YES</span> (<span class="pl-c1">/</span><span class="pl-s1">usr</span><span class="pl-c1">/</span><span class="pl-s1">bin</span><span class="pl-c1">/</span><span class="pl-s1">cp</span>) <span class="pl-v">Program</span> <span class="pl-s1">python3</span> <span class="pl-s1">found</span>: <span class="pl-v">YES</span> (<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">eduardo</span><span class="pl-c1">/</span><span class="pl-s1">miniconda3</span><span class="pl-c1">/</span><span class="pl-s1">envs</span><span class="pl-c1">/</span><span class="pl-s1">scipy</span><span class="pl-c1">-</span><span class="pl-s1">meson</span><span class="pl-c1">/</span><span class="pl-s1">bin</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">10</span>) <span class="pl-v">WARNING</span>: <span class="pl-v">Python</span> <span class="pl-s1">files</span> <span class="pl-s1">installed</span> <span class="pl-s1">by</span> <span class="pl-v">Meson</span> <span class="pl-s1">might</span> <span class="pl-c1">not</span> <span class="pl-s1">be</span> <span class="pl-s1">found</span> <span class="pl-s1">by</span> <span class="pl-s1">python</span> <span class="pl-s1">interpreter</span>. <span class="pl-v">This</span> <span class="pl-s1">warning</span> <span class="pl-s1">can</span> <span class="pl-s1">be</span> <span class="pl-s1">avoided</span> <span class="pl-s1">by</span> <span class="pl-s1">setting</span> <span class="pl-s">"python.platlibdir"</span> <span class="pl-s1">option</span>. <span class="pl-v">WARNING</span>: <span class="pl-v">Python</span> <span class="pl-s1">files</span> <span class="pl-s1">installed</span> <span class="pl-s1">by</span> <span class="pl-v">Meson</span> <span class="pl-s1">might</span> <span class="pl-c1">not</span> <span class="pl-s1">be</span> <span class="pl-s1">found</span> <span class="pl-s1">by</span> <span class="pl-s1">python</span> <span class="pl-s1">interpreter</span>. <span class="pl-v">This</span> <span class="pl-s1">warning</span> <span class="pl-s1">can</span> <span class="pl-s1">be</span> <span class="pl-s1">avoided</span> <span class="pl-s1">by</span> <span class="pl-s1">setting</span> <span class="pl-s">"python.purelibdir"</span> <span class="pl-s1">option</span>. <span class="pl-v">Found</span> <span class="pl-s1">pkg</span><span class="pl-c1">-</span><span class="pl-s1">config</span>: <span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">eduardo</span><span class="pl-c1">/</span><span class="pl-s1">miniconda3</span><span class="pl-c1">/</span><span class="pl-s1">envs</span><span class="pl-c1">/</span><span class="pl-s1">scipy</span><span class="pl-c1">-</span><span class="pl-s1">meson</span><span class="pl-c1">/</span><span class="pl-s1">bin</span><span class="pl-c1">/</span><span class="pl-s1">pkg</span><span class="pl-c1">-</span><span class="pl-en">config</span> (<span class="pl-c1">0.29</span>.<span class="pl-c1">2</span>) <span class="pl-v">Library</span> <span class="pl-s1">npymath</span> <span class="pl-s1">found</span>: <span class="pl-v">YES</span> <span class="pl-v">Library</span> <span class="pl-s1">npyrandom</span> <span class="pl-s1">found</span>: <span class="pl-v">YES</span> <span class="pl-v">Run</span><span class="pl-c1">-</span><span class="pl-s1">time</span> <span class="pl-s1">dependency</span> <span class="pl-s1">openblas</span> <span class="pl-s1">found</span>: <span class="pl-v">YES</span> <span class="pl-c1">0.3</span><span class="pl-c1">.18</span> <span class="pl-v">Dependency</span> <span class="pl-s1">openblas</span> <span class="pl-s1">found</span>: <span class="pl-v">YES</span> <span class="pl-c1">0.3</span><span class="pl-c1">.18</span> (<span class="pl-s1">cached</span>) <span class="pl-v">Program</span> <span class="pl-s1">_build_utils</span><span class="pl-c1">/</span><span class="pl-s1">cythoner</span>.<span class="pl-s1">py</span> <span class="pl-s1">found</span>: <span class="pl-v">YES</span> (<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">eduardo</span><span class="pl-c1">/</span><span class="pl-s1">miniconda3</span><span class="pl-c1">/</span><span class="pl-s1">envs</span><span class="pl-c1">/</span><span class="pl-s1">scipy</span><span class="pl-c1">-</span><span class="pl-s1">meson</span><span class="pl-c1">/</span><span class="pl-s1">bin</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">10</span> <span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">eduardo</span><span class="pl-c1">/</span><span class="pl-s1">work</span><span class="pl-c1">/</span><span class="pl-s1">scipy</span><span class="pl-c1">/</span><span class="pl-s1">scipy</span><span class="pl-c1">-</span><span class="pl-s1">doit</span><span class="pl-c1">/</span><span class="pl-s1">scipy</span><span class="pl-c1">/</span><span class="pl-s1">_build_utils</span><span class="pl-c1">/</span><span class="pl-s1">cythoner</span>.<span class="pl-s1">py</span>) <span class="pl-v">Checking</span> <span class="pl-k">for</span> <span class="pl-s1">function</span> <span class="pl-s">"open_memstream"</span> : <span class="pl-v">NO</span> <span class="pl-v">Configuring</span> <span class="pl-s1">messagestream_config</span>.<span class="pl-s1">h</span> <span class="pl-s1">using</span> <span class="pl-s1">configuration</span> <span class="pl-v">Compiler</span> <span class="pl-k">for</span> <span class="pl-v">C</span><span class="pl-c1">+</span><span class="pl-c1">+</span> <span class="pl-s1">supports</span> <span class="pl-s1">arguments</span> <span class="pl-c1">-</span><span class="pl-s1">fvisibility</span><span class="pl-c1">=</span><span class="pl-s1">hidden</span>: <span class="pl-v">YES</span> <span class="pl-v">Checking</span> <span class="pl-k">for</span> <span class="pl-s1">size</span> <span class="pl-s1">of</span> <span class="pl-s">"void*"</span> : <span class="pl-c1">8</span> <span class="pl-v">Run</span><span class="pl-c1">-</span><span class="pl-s1">time</span> <span class="pl-s1">dependency</span> <span class="pl-s1">threads</span> <span class="pl-s1">found</span>: <span class="pl-v">YES</span> <span class="pl-v">Checking</span> <span class="pl-k">for</span> <span class="pl-s1">size</span> <span class="pl-s1">of</span> <span class="pl-s">"void*"</span> : <span class="pl-c1">8</span> <span class="pl-v">Dependency</span> <span class="pl-s1">threads</span> <span class="pl-s1">found</span>: <span class="pl-v">YES</span> <span class="pl-en">unknown</span> (<span class="pl-s1">cached</span>) <span class="pl-v">Compiler</span> <span class="pl-k">for</span> <span class="pl-v">C</span><span class="pl-c1">+</span><span class="pl-c1">+</span> <span class="pl-s1">supports</span> <span class="pl-s1">arguments</span> <span class="pl-c1">-</span><span class="pl-en">fvisibility</span><span class="pl-c1">=</span><span class="pl-s1">hidden</span>: <span class="pl-v">YES</span> (<span class="pl-s1">cached</span>) <span class="pl-v">Compiler</span> <span class="pl-k">for</span> <span class="pl-v">C</span> <span class="pl-s1">supports</span> <span class="pl-s1">arguments</span> <span class="pl-c1">-</span><span class="pl-v">Wno</span><span class="pl-c1">-</span><span class="pl-s1">unused</span><span class="pl-c1">-</span><span class="pl-s1">but</span><span class="pl-c1">-</span><span class="pl-s1">set</span><span class="pl-c1">-</span><span class="pl-en">variable</span>: <span class="pl-v">YES</span> (<span class="pl-s1">cached</span>) <span class="pl-v">Compiler</span> <span class="pl-k">for</span> <span class="pl-v">C</span> <span class="pl-s1">supports</span> <span class="pl-s1">arguments</span> <span class="pl-c1">-</span><span class="pl-v">Wno</span><span class="pl-c1">-</span><span class="pl-s1">unused</span><span class="pl-c1">-</span><span class="pl-s1">but</span><span class="pl-c1">-</span><span class="pl-s1">set</span><span class="pl-c1">-</span><span class="pl-en">variable</span>: <span class="pl-v">YES</span> (<span class="pl-s1">cached</span>) <span class="pl-v">Compiler</span> <span class="pl-k">for</span> <span class="pl-v">C</span><span class="pl-c1">+</span><span class="pl-c1">+</span> <span class="pl-s1">supports</span> <span class="pl-s1">arguments</span> <span class="pl-c1">-</span><span class="pl-v">Wno</span><span class="pl-c1">-</span><span class="pl-s1">format</span><span class="pl-c1">-</span><span class="pl-s1">truncation</span>: <span class="pl-v">YES</span> <span class="pl-v">Compiler</span> <span class="pl-k">for</span> <span class="pl-v">C</span><span class="pl-c1">+</span><span class="pl-c1">+</span> <span class="pl-s1">supports</span> <span class="pl-s1">arguments</span> <span class="pl-c1">-</span><span class="pl-v">Wno</span><span class="pl-c1">-</span><span class="pl-s1">class</span><span class="pl-c1">-</span><span class="pl-s1">memaccess</span>: <span class="pl-v">YES</span> <span class="pl-v">Build</span> <span class="pl-s1">targets</span> <span class="pl-c1">in</span> <span class="pl-s1">project</span>: <span class="pl-c1">196</span> <span class="pl-v">SciPy</span> <span class="pl-c1">1.9</span>.<span class="pl-c1">0.</span><span class="pl-s1">dev0</span> <span class="pl-v">User</span> <span class="pl-s1">defined</span> <span class="pl-s1">options</span> <span class="pl-s1">prefix</span>: <span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">eduardo</span><span class="pl-c1">/</span><span class="pl-s1">work</span><span class="pl-c1">/</span><span class="pl-s1">scipy</span><span class="pl-c1">/</span><span class="pl-s1">scipy</span><span class="pl-c1">-</span><span class="pl-s1">doit</span><span class="pl-c1">/</span><span class="pl-s1">build</span><span class="pl-c1">-</span><span class="pl-s1">install</span></pre></div> <h3 dir="auto">Error message</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Meson build setup OK ninja: Entering directory `build' [794/1557] Compiling C++ object scipy/stats/_h....p/meson-generated_..__hypotests_pythran.cpp.o FAILED: scipy/stats/_hypotests_pythran.cpython-310-x86_64-linux-gnu.so.p/meson-generated_..__hypotests_pythran.cpp.o c++ -Iscipy/stats/_hypotests_pythran.cpython-310-x86_64-linux-gnu.so.p -Iscipy/stats -I../scipy/stats -I/home/eduardo/miniconda3/envs/scipy-meson/lib/python3.10/site-packages/pythran -I/home/eduardo/miniconda3/envs/scipy-meson/lib/python3.10/site-packages/numpy/core/include -I/home/eduardo/miniconda3/envs/scipy-meson/include/python3.10 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++14 -O2 -g -fPIC -Wno-unused-function -Wno-unused-variable -Wno-deprecated-declarations -Wno-int-in-bool-context -DENABLE_PYTHON_MODULE -D__PYTHRAN__=3 -DPYTHRAN_BLAS_NONE -MD -MQ scipy/stats/_hypotests_pythran.cpython-310-x86_64-linux-gnu.so.p/meson-generated_..__hypotests_pythran.cpp.o -MF scipy/stats/_hypotests_pythran.cpython-310-x86_64-linux-gnu.so.p/meson-generated_..__hypotests_pythran.cpp.o.d -o scipy/stats/_hypotests_pythran.cpython-310-x86_64-linux-gnu.so.p/meson-generated_..__hypotests_pythran.cpp.o -c scipy/stats/_hypotests_pythran.cpp In file included from scipy/stats/_hypotests_pythran.cpp:24: /home/eduardo/miniconda3/envs/scipy-meson/lib/python3.10/site-packages/pythran/pythonic/include/numpy/ceil.hpp:8:10: fatal error: xsimd/xsimd.hpp: No such file or directory 8 | #include &lt;xsimd/xsimd.hpp&gt; | ^~~~~~~~~~~~~~~~~ compilation terminated. [803/1557] Compiling C++ object scipy/sparse/s...ls.cpython-310-x86_64-linux-gnu.so.p/bsr.cxx.o ninja: build stopped: subcommand failed. Build failed!"><pre class="notranslate">Meson build setup OK ninja: Entering directory <span class="pl-s"><span class="pl-pds">`</span>build<span class="pl-s"><span class="pl-pds">'</span></span></span> <span class="pl-s"><span class="pl-s">[794/1557] Compiling C++ object scipy/stats/_h....p/meson-generated_..__hypotests_pythran.cpp.o</span></span> <span class="pl-s"><span class="pl-s">FAILED: scipy/stats/_hypotests_pythran.cpython-310-x86_64-linux-gnu.so.p/meson-generated_..__hypotests_pythran.cpp.o </span></span> <span class="pl-s"><span class="pl-s">c++ -Iscipy/stats/_hypotests_pythran.cpython-310-x86_64-linux-gnu.so.p -Iscipy/stats -I../scipy/stats -I/home/eduardo/miniconda3/envs/scipy-meson/lib/python3.10/site-packages/pythran -I/home/eduardo/miniconda3/envs/scipy-meson/lib/python3.10/site-packages/numpy/core/include -I/home/eduardo/miniconda3/envs/scipy-meson/include/python3.10 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++14 -O2 -g -fPIC -Wno-unused-function -Wno-unused-variable -Wno-deprecated-declarations -Wno-int-in-bool-context -DENABLE_PYTHON_MODULE -D__PYTHRAN__=3 -DPYTHRAN_BLAS_NONE -MD -MQ scipy/stats/_hypotests_pythran.cpython-310-x86_64-linux-gnu.so.p/meson-generated_..__hypotests_pythran.cpp.o -MF scipy/stats/_hypotests_pythran.cpython-310-x86_64-linux-gnu.so.p/meson-generated_..__hypotests_pythran.cpp.o.d -o scipy/stats/_hypotests_pythran.cpython-310-x86_64-linux-gnu.so.p/meson-generated_..__hypotests_pythran.cpp.o -c scipy/stats/_hypotests_pythran.cpp</span></span> <span class="pl-s"><span class="pl-s">In file included from scipy/stats/_hypotests_pythran.cpp:24:</span></span> <span class="pl-s"><span class="pl-s">/home/eduardo/miniconda3/envs/scipy-meson/lib/python3.10/site-packages/pythran/pythonic/include/numpy/ceil.hpp:8:10: fatal error: xsimd/xsimd.hpp: No such file or directory</span></span> <span class="pl-s"><span class="pl-s"> 8 | #include &lt;xsimd/xsimd.hpp&gt;</span></span> <span class="pl-s"><span class="pl-s"> | ^~~~~~~~~~~~~~~~~</span></span> <span class="pl-s"><span class="pl-s">compilation terminated.</span></span> <span class="pl-s"><span class="pl-s">[803/1557] Compiling C++ object scipy/sparse/s...ls.cpython-310-x86_64-linux-gnu.so.p/bsr.cxx.o</span></span> <span class="pl-s"><span class="pl-s">ninja: build stopped: subcommand failed.</span></span> <span class="pl-s"><span class="pl-s">Build failed!</span></span></pre></div> <h3 dir="auto">SciPy/NumPy/Python version information</h3> <p dir="auto">(1.9.0.dev0', '1.22.2', sys.version_info(major=3, minor=10, micro=2, releaselevel='final', serial=0)</p>
<p dir="auto">I was a bit surprised to unearth some image tools in scipy.misc recently. Is there any interest in a PR that deprecates them in the misc namespace and moves them to ndimage? Seems like a more natural home for the image tools to me. In an ideal world, everything in misc could find a better home I'd hope.</p>
0
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">Blank screen appears when running application on iOS simulator</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5457221/39971088-426155a4-56fe-11e8-9598-686cccad437c.png"><img width="363" alt="screen shot 2018-05-13 at 10 36 53 pm" src="https://user-images.githubusercontent.com/5457221/39971088-426155a4-56fe-11e8-9598-686cccad437c.png" style="max-width: 100%;"></a></p> <h2 dir="auto">Dependencies</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dependencies: flutter: sdk: flutter shared_preferences: ^0.4.1 cupertino_icons: ^0.1.0 validate: ^1.6.0 json_object: ^1.0.19 dev_dependencies: flutter_test: sdk: flutter"><pre class="notranslate"><code class="notranslate">dependencies: flutter: sdk: flutter shared_preferences: ^0.4.1 cupertino_icons: ^0.1.0 validate: ^1.6.0 json_object: ^1.0.19 dev_dependencies: flutter_test: sdk: flutter </code></pre></div> <h2 dir="auto">Logs</h2> <h3 dir="auto">Running</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ flutter run -d 2C599B2B-8842-4165-9932-4D44CE278EEC --trace-startup --verbose "><pre class="notranslate"><code class="notranslate">$ flutter run -d 2C599B2B-8842-4165-9932-4D44CE278EEC --trace-startup --verbose </code></pre></div> <p dir="auto">Basic run command,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[VERBOSE-2:dart_error.cc(16)] error: import of dart:mirrors with --enable-mirrors=false [VERBOSE-2:engine.cc(147)] Could not prepare to run the isolate. [VERBOSE-2:engine.cc(112)] Engine not prepare and launch isolate. [VERBOSE-2:FlutterViewController.mm(170)] Could not launch engine with configuration. Syncing files to device iPhone 6s... 2.7s 🔥 To hot reload your app on the fly, press &quot;r&quot;. To restart the app entirely, press &quot;R&quot;. An Observatory debugger and profiler on iPhone 6s is available at: http://127.0.0.1:8100/ For a more detailed help message, press &quot;h&quot;. To quit, press &quot;q&quot;. "><pre class="notranslate"><code class="notranslate">[VERBOSE-2:dart_error.cc(16)] error: import of dart:mirrors with --enable-mirrors=false [VERBOSE-2:engine.cc(147)] Could not prepare to run the isolate. [VERBOSE-2:engine.cc(112)] Engine not prepare and launch isolate. [VERBOSE-2:FlutterViewController.mm(170)] Could not launch engine with configuration. Syncing files to device iPhone 6s... 2.7s 🔥 To hot reload your app on the fly, press "r". To restart the app entirely, press "R". An Observatory debugger and profiler on iPhone 6s is available at: http://127.0.0.1:8100/ For a more detailed help message, press "h". To quit, press "q". </code></pre></div> <p dir="auto">With <code class="notranslate">verbose</code> and <code class="notranslate">trace-startup</code>,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ +43 ms] [/Users/tarikyilmaz/External/mobile/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +52 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/master [ ] [/Users/tarikyilmaz/External/mobile/flutter/] git rev-parse --abbrev-ref HEAD [ +10 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] master [ ] [/Users/tarikyilmaz/External/mobile/flutter/] git ls-remote --get-url origin [ +10 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ +1 ms] [/Users/tarikyilmaz/External/mobile/flutter/] git log -n 1 --pretty=format:%H [ +11 ms] Exit code 0 from: git log -n 1 --pretty=format:%H [ ] f9bb4289e9fd861d70ae78bcc3a042ef1b35cc9d [ ] [/Users/tarikyilmaz/External/mobile/flutter/] git log -n 1 --pretty=format:%ar [ +8 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar [ ] 2 days ago [ +1 ms] [/Users/tarikyilmaz/External/mobile/flutter/] git describe --match v*.*.* --first-parent --long --tags [ +19 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ ] v0.4.3-8-gf9bb4289e [ +334 ms] Unable to locate an Android SDK. [ +11 ms] Unable to locate an Android SDK. [ +298 ms] Unable to locate an Android SDK. [ +7 ms] /usr/local/bin/adb devices -l [ +19 ms] Exit code 0 from: /usr/local/bin/adb devices -l [ +4 ms] List of devices attached [ +9 ms] idevice_id -h [ +139 ms] which ideviceinstaller [ +7 ms] Exit code 0 from: which ideviceinstaller [ ] /usr/local/bin/ideviceinstaller [ ] which iproxy [ +5 ms] Exit code 0 from: which iproxy [ ] /usr/local/bin/iproxy [ +61 ms] which ideviceinstaller [ +5 ms] Exit code 0 from: which ideviceinstaller [ ] /usr/local/bin/ideviceinstaller [ ] which iproxy [ +6 ms] Exit code 0 from: which iproxy [ ] /usr/local/bin/iproxy [ +4 ms] /usr/bin/xcrun simctl list --json devices [ +273 ms] Found plugin shared_preferences at /Users/tarikyilmaz/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.4.1/ [ +876 ms] Launching lib/main.dart on iPhone 6s in debug mode... [ +3 ms] /usr/bin/defaults read /Users/tarikyilmaz/External/mobile/spectrome_app/ios/Runner/Info CFBundleIdentifier [ +78 ms] Exit code 0 from: /usr/bin/defaults read /Users/tarikyilmaz/External/mobile/spectrome_app/ios/Runner/Info CFBundleIdentifier [ ] $(PRODUCT_BUNDLE_IDENTIFIER) [ ] [ios/Runner.xcodeproj/] /usr/bin/xcodebuild -project /Users/tarikyilmaz/External/mobile/spectrome_app/ios/Runner.xcodeproj -target Runner -showBuildSettings [+1187 ms] Exit code 0 from: /usr/bin/xcodebuild -project /Users/tarikyilmaz/External/mobile/spectrome_app/ios/Runner.xcodeproj -target Runner -showBuildSettings [ ] Build settings for action build and target Runner: ACTION = build AD_HOC_CODE_SIGNING_ALLOWED = NO ALTERNATE_GROUP = staff ALTERNATE_MODE = u+w,go-w,a+rX ALTERNATE_OWNER = tarikyilmaz ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO ALWAYS_SEARCH_USER_PATHS = NO ALWAYS_USE_SEPARATE_HEADERMAPS = NO APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer APPLE_INTERNAL_DIR = /AppleInternal APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation APPLE_INTERNAL_LIBRARY_DIR = /AppleInternal/Library APPLE_INTERNAL_TOOLS = /AppleInternal/Developer/Tools APPLICATION_EXTENSION_API_ONLY = NO APPLY_RULES_IN_COPY_FILES = NO ARCHS = armv7 arm64 ARCHS_STANDARD = armv7 arm64 ARCHS_STANDARD_32_64_BIT = armv7 arm64 ARCHS_STANDARD_32_BIT = armv7 ARCHS_STANDARD_64_BIT = arm64 ARCHS_STANDARD_INCLUDING_64_BIT = armv7 arm64 ARCHS_UNIVERSAL_IPHONE_OS = armv7 arm64 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon AVAILABLE_PLATFORMS = appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator BITCODE_GENERATION_MODE = marker BUILD_ACTIVE_RESOURCES_ONLY = NO BUILD_COMPONENTS = headers build BUILD_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios BUILD_ROOT = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios BUILD_STYLE = BUILD_VARIANTS = normal BUILT_PRODUCTS_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Release-iphoneos CACHE_ROOT = /var/folders/8c/vqtc6nqx1s5g6tv2dy2b1yx00000gn/C/com.apple.DeveloperTools/9.3-9E145/Xcode CCHROOT = /var/folders/8c/vqtc6nqx1s5g6tv2dy2b1yx00000gn/C/com.apple.DeveloperTools/9.3-9E145/Xcode CHMOD = /bin/chmod CHOWN = /usr/sbin/chown CLANG_ANALYZER_NONNULL = YES CLANG_CXX_LANGUAGE_STANDARD = gnu++0x CLANG_CXX_LIBRARY = libc++ CLANG_ENABLE_MODULES = YES CLANG_ENABLE_OBJC_ARC = YES CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES CLANG_WARN_BOOL_CONVERSION = YES CLANG_WARN_COMMA = YES CLANG_WARN_CONSTANT_CONVERSION = YES CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR CLANG_WARN_EMPTY_BODY = YES CLANG_WARN_ENUM_CONVERSION = YES CLANG_WARN_INFINITE_RECURSION = YES CLANG_WARN_INT_CONVERSION = YES CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES CLANG_WARN_OBJC_LITERAL_CONVERSION = YES CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR CLANG_WARN_RANGE_LOOP_ANALYSIS = YES CLANG_WARN_STRICT_PROTOTYPES = YES CLANG_WARN_SUSPICIOUS_MOVE = YES CLANG_WARN_UNREACHABLE_CODE = YES CLANG_WARN__DUPLICATE_METHOD_MATCH = YES CLASS_FILE_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/JavaClasses CLEAN_PRECOMPS = YES CLONE_HEADERS = NO CODESIGNING_FOLDER_PATH = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Release-iphoneos/Runner.app CODE_SIGNING_ALLOWED = YES CODE_SIGNING_REQUIRED = YES CODE_SIGN_CONTEXT_CLASS = XCiPhoneOSCodeSignContext CODE_SIGN_IDENTITY = iPhone Developer CODE_SIGN_INJECT_BASE_ENTITLEMENTS = YES COLOR_DIAGNOSTICS = NO COMBINE_HIDPI_IMAGES = NO COMPILER_INDEX_STORE_ENABLE = Default COMPOSITE_SDK_DIRS = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/CompositeSDKs COMPRESS_PNG_FILES = YES CONFIGURATION = Release CONFIGURATION_BUILD_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Release-iphoneos CONFIGURATION_TEMP_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos CONTENTS_FOLDER_PATH = Runner.app COPYING_PRESERVES_HFS_DATA = NO COPY_HEADERS_RUN_UNIFDEF = NO COPY_PHASE_STRIP = NO COPY_RESOURCES_FROM_STATIC_FRAMEWORKS = YES CORRESPONDING_SIMULATOR_PLATFORM_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform CORRESPONDING_SIMULATOR_PLATFORM_NAME = iphonesimulator CORRESPONDING_SIMULATOR_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk CORRESPONDING_SIMULATOR_SDK_NAME = iphonesimulator11.3 CP = /bin/cp CREATE_INFOPLIST_SECTION_IN_BINARY = NO CURRENT_ARCH = arm64 CURRENT_PROJECT_VERSION = 1 CURRENT_VARIANT = normal DEAD_CODE_STRIPPING = YES DEBUGGING_SYMBOLS = YES DEBUG_INFORMATION_FORMAT = dwarf-with-dsym DEFAULT_COMPILER = com.apple.compilers.llvm.clang.1_0 DEFAULT_KEXT_INSTALL_PATH = /System/Library/Extensions DEFINES_MODULE = NO DEPLOYMENT_LOCATION = NO DEPLOYMENT_POSTPROCESSING = NO DEPLOYMENT_TARGET_CLANG_ENV_NAME = IPHONEOS_DEPLOYMENT_TARGET DEPLOYMENT_TARGET_CLANG_FLAG_NAME = miphoneos-version-min DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX = -miphoneos-version-min= DEPLOYMENT_TARGET_SETTING_NAME = IPHONEOS_DEPLOYMENT_TARGET DEPLOYMENT_TARGET_SUGGESTED_VALUES = 8.0 8.1 8.2 8.3 8.4 9.0 9.1 9.2 9.3 10.0 10.1 10.2 10.3 11.0 11.3 DERIVED_FILES_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources DERIVED_FILE_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources DERIVED_SOURCES_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources DEVELOPER_APPLICATIONS_DIR = /Applications/Xcode.app/Contents/Developer/Applications DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/usr/bin DEVELOPER_DIR = /Applications/Xcode.app/Contents/Developer DEVELOPER_FRAMEWORKS_DIR = /Applications/Xcode.app/Contents/Developer/Library/Frameworks DEVELOPER_FRAMEWORKS_DIR_QUOTED = /Applications/Xcode.app/Contents/Developer/Library/Frameworks DEVELOPER_LIBRARY_DIR = /Applications/Xcode.app/Contents/Developer/Library DEVELOPER_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs DEVELOPER_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Tools DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/usr DEVELOPMENT_LANGUAGE = English DEVELOPMENT_TEAM = P6WQ63FJV3 DOCUMENTATION_FOLDER_PATH = Runner.app/English.lproj/Documentation DO_HEADER_SCANNING_IN_JAM = NO DSTROOT = /tmp/Runner.dst DT_TOOLCHAIN_DIR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain DWARF_DSYM_FILE_NAME = Runner.app.dSYM DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT = NO DWARF_DSYM_FOLDER_PATH = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Release-iphoneos EFFECTIVE_PLATFORM_NAME = -iphoneos EMBEDDED_CONTENT_CONTAINS_SWIFT = NO EMBEDDED_PROFILE_NAME = embedded.mobileprovision EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = NO ENABLE_BITCODE = NO ENABLE_DEFAULT_HEADER_SEARCH_PATHS = YES ENABLE_HEADER_DEPENDENCIES = YES ENABLE_NS_ASSERTIONS = NO ENABLE_ON_DEMAND_RESOURCES = YES ENABLE_STRICT_OBJC_MSGSEND = YES ENABLE_TESTABILITY = NO ENTITLEMENTS_ALLOWED = YES ENTITLEMENTS_REQUIRED = YES EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS = .DS_Store .svn .git .hg CVS EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES = *.nib *.lproj *.framework *.gch *.xcode* *.xcassets (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj EXECUTABLES_FOLDER_PATH = Runner.app/Executables EXECUTABLE_FOLDER_PATH = Runner.app EXECUTABLE_NAME = Runner EXECUTABLE_PATH = Runner.app/Runner EXPANDED_CODE_SIGN_IDENTITY = EXPANDED_CODE_SIGN_IDENTITY_NAME = EXPANDED_PROVISIONING_PROFILE = FILE_LIST = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects/LinkFileList FIXED_FILES_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/FixedFiles FLUTTER_APPLICATION_PATH = /Users/tarikyilmaz/External/mobile/spectrome_app FLUTTER_BUILD_DIR = build FLUTTER_BUILD_MODE = debug FLUTTER_FRAMEWORK_DIR = /Users/tarikyilmaz/External/mobile/flutter/bin/cache/artifacts/engine/ios FLUTTER_ROOT = /Users/tarikyilmaz/External/mobile/flutter FLUTTER_TARGET = lib/main.dart FRAMEWORKS_FOLDER_PATH = Runner.app/Frameworks FRAMEWORK_FLAG_PREFIX = -framework FRAMEWORK_SEARCH_PATHS = &quot;/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/../.symlinks/flutter/ios&quot; &quot;/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/../.symlinks/flutter/ios&quot; /Users/tarikyilmaz/External/mobile/spectrome_app/ios/Flutter FRAMEWORK_VERSION = A FULL_PRODUCT_NAME = Runner.app GCC3_VERSION = 3.3 GCC_C_LANGUAGE_STANDARD = gnu99 GCC_INLINES_ARE_PRIVATE_EXTERN = YES GCC_NO_COMMON_BLOCKS = YES GCC_PFE_FILE_C_DIALECTS = c objective-c c++ objective-c++ GCC_PREPROCESSOR_DEFINITIONS = COCOAPODS=1 COCOAPODS=1 GCC_SYMBOLS_PRIVATE_EXTERN = YES GCC_THUMB_SUPPORT = YES GCC_TREAT_WARNINGS_AS_ERRORS = NO GCC_VERSION = com.apple.compilers.llvm.clang.1_0 GCC_VERSION_IDENTIFIER = com_apple_compilers_llvm_clang_1_0 GCC_WARN_64_TO_32_BIT_CONVERSION = YES GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR GCC_WARN_UNDECLARED_SELECTOR = YES GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE GCC_WARN_UNUSED_FUNCTION = YES GCC_WARN_UNUSED_VARIABLE = YES GENERATE_MASTER_OBJECT_FILE = NO GENERATE_PKGINFO_FILE = YES GENERATE_PROFILING_CODE = NO GENERATE_TEXT_BASED_STUBS = NO GID = 20 GROUP = staff HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT = YES HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES = YES HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS = YES HEADERMAP_INCLUDES_PROJECT_HEADERS = YES HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES = YES HEADERMAP_USES_VFS = NO HEADER_SEARCH_PATHS = &quot;/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public&quot; &quot;/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public/Flutter&quot; &quot;/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public/shared_preferences&quot; &quot;/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public&quot; &quot;/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public/Flutter&quot; &quot;/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public/shared_preferences&quot; HIDE_BITCODE_SYMBOLS = YES HOME = /Users/tarikyilmaz ICONV = /usr/bin/iconv INFOPLIST_EXPAND_BUILD_SETTINGS = YES INFOPLIST_FILE = Runner/Info.plist INFOPLIST_OUTPUT_FORMAT = binary INFOPLIST_PATH = Runner.app/Info.plist INFOPLIST_PREPROCESS = NO INFOSTRINGS_PATH = Runner.app/English.lproj/InfoPlist.strings INLINE_PRIVATE_FRAMEWORKS = NO INSTALLHDRS_COPY_PHASE = NO INSTALLHDRS_SCRIPT_PHASE = NO INSTALL_DIR = /tmp/Runner.dst/Applications INSTALL_GROUP = staff INSTALL_MODE_FLAG = u+w,go-w,a+rX INSTALL_OWNER = tarikyilmaz INSTALL_PATH = /Applications INSTALL_ROOT = /tmp/Runner.dst IPHONEOS_DEPLOYMENT_TARGET = 8.0 JAVAC_DEFAULT_FLAGS = -J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8 JAVA_APP_STUB = /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub JAVA_ARCHIVE_CLASSES = YES JAVA_ARCHIVE_TYPE = JAR JAVA_COMPILER = /usr/bin/javac JAVA_FOLDER_PATH = Runner.app/Java JAVA_FRAMEWORK_RESOURCES_DIRS = Resources JAVA_JAR_FLAGS = cv JAVA_SOURCE_SUBDIR = . JAVA_USE_DEPENDENCIES = YES JAVA_ZIP_FLAGS = -urg JIKES_DEFAULT_FLAGS = +E +OLDCSO KASAN_DEFAULT_CFLAGS = -DKASAN=1 -fsanitize=address -mllvm -asan-globals-live-support -mllvm -asan-force-dynamic-shadow KEEP_PRIVATE_EXTERNS = NO LD_DEPENDENCY_INFO_FILE = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects-normal/arm64/Runner_dependency_info.dat LD_GENERATE_MAP_FILE = NO LD_MAP_FILE_PATH = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/Runner-LinkMap-normal-arm64.txt LD_NO_PIE = NO LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER = YES LD_RUNPATH_SEARCH_PATHS = '@executable_path/Frameworks' '@loader_path/Frameworks' '@executable_path/Frameworks' '@loader_path/Frameworks' @executable_path/Frameworks LEGACY_DEVELOPER_DIR = /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer LEX = lex LIBRARY_FLAG_NOSPACE = YES LIBRARY_FLAG_PREFIX = -l LIBRARY_KEXT_INSTALL_PATH = /Library/Extensions LIBRARY_SEARCH_PATHS = &quot;/Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Release-iphoneos/shared_preferences&quot; &quot;/Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Release-iphoneos/shared_preferences&quot; /Users/tarikyilmaz/External/mobile/spectrome_app/ios/Flutter LINKER_DISPLAYS_MANGLED_NAMES = NO LINK_FILE_LIST_normal_arm64 = LINK_FILE_LIST_normal_armv7 = LINK_WITH_STANDARD_LIBRARIES = YES LOCALIZABLE_CONTENT_DIR = LOCALIZED_RESOURCES_FOLDER_PATH = Runner.app/English.lproj LOCALIZED_STRING_MACRO_NAMES = NSLocalizedString CFLocalizedString LOCAL_ADMIN_APPS_DIR = /Applications/Utilities LOCAL_APPS_DIR = /Applications LOCAL_DEVELOPER_DIR = /Library/Developer LOCAL_LIBRARY_DIR = /Library LOCROOT = LOCSYMROOT = MACH_O_TYPE = mh_execute MAC_OS_X_PRODUCT_BUILD_VERSION = 17E202 MAC_OS_X_VERSION_ACTUAL = 101304 MAC_OS_X_VERSION_MAJOR = 101300 MAC_OS_X_VERSION_MINOR = 1304 METAL_LIBRARY_FILE_BASE = default METAL_LIBRARY_OUTPUT_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Release-iphoneos/Runner.app MODULE_CACHE_DIR = /Users/tarikyilmaz/Library/Developer/Xcode/DerivedData/ModuleCache.noindex MTL_ENABLE_DEBUG_INFO = NO NATIVE_ARCH = armv7 NATIVE_ARCH_32_BIT = i386 NATIVE_ARCH_64_BIT = x86_64 NATIVE_ARCH_ACTUAL = x86_64 NO_COMMON = YES OBJECT_FILE_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects OBJECT_FILE_DIR_normal = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects-normal OBJROOT = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios ONLY_ACTIVE_ARCH = NO OS = MACOS OSAC = /usr/bin/osacompile OTHER_CFLAGS = -isystem &quot;/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public&quot; -isystem &quot;/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public/Flutter&quot; -isystem &quot;/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public/shared_preferences&quot; -isystem &quot;/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public&quot; -isystem &quot;/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public/Flutter&quot; -isystem &quot;/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public/shared_preferences&quot; OTHER_CPLUSPLUSFLAGS = -isystem &quot;/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public&quot; -isystem &quot;/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public/Flutter&quot; -isystem &quot;/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public/shared_preferences&quot; -isystem &quot;/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public&quot; -isystem &quot;/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public/Flutter&quot; -isystem &quot;/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public/shared_preferences&quot; OTHER_LDFLAGS = -ObjC -l&quot;shared_preferences&quot; -framework &quot;Flutter&quot; -ObjC -l&quot;shared_preferences&quot; -framework &quot;Flutter&quot; PACKAGE_TYPE = com.apple.package-type.wrapper.application PASCAL_STRINGS = YES PATH = /Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/opt/X11/bin:/Applications/Wireshark.app/Contents/MacOS:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/bin:/Users/tarikyilmaz/External/tools/maven/bin:/Users/tarikyilmaz/External/tools/hadoop/bin:/Users/tarikyilmaz/External/tools/script:/usr/local/elasticsearch/bin:/Users/tarikyilmaz/External/tools/hadoop/sbin:/Users/tarikyilmaz/External/tools/hbase/bin:/Users/tarikyilmaz/External/path/go/bin:/Users/tarikyilmaz/External/path/rubygems/bin:/Users/tarikyilmaz/External/tools/gradle/bin:/Users/tarikyilmaz/External/tools/spark/bin:/Users/tarikyilmaz/External/tools/hive-2.1/bin:/Users/tarikyilmaz/External/mobile/flutter/bin:/Users/tarikyilmaz/External/tools/android/tools:/Users/tarikyilmaz/External/tools/android/platform-tools PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES = /usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Applications/Xcode.app/Contents/Developer/Headers /Applications/Xcode.app/Contents/Developer/SDKs /Applications/Xcode.app/Contents/Developer/Platforms PBDEVELOPMENTPLIST_PATH = Runner.app/pbdevelopment.plist PFE_FILE_C_DIALECTS = objective-c PKGINFO_FILE_PATH = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/PkgInfo PKGINFO_PATH = Runner.app/PkgInfo PLATFORM_DEVELOPER_APPLICATIONS_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Applications PLATFORM_DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin PLATFORM_DEVELOPER_LIBRARY_DIR = /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library PLATFORM_DEVELOPER_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs PLATFORM_DEVELOPER_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Tools PLATFORM_DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr PLATFORM_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform PLATFORM_DISPLAY_NAME = iOS PLATFORM_NAME = iphoneos PLATFORM_PREFERRED_ARCH = arm64 PLATFORM_PRODUCT_BUILD_VERSION = 15E217 PLIST_FILE_OUTPUT_FORMAT = binary PLUGINS_FOLDER_PATH = Runner.app/PlugIns PODS_BUILD_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios PODS_CONFIGURATION_BUILD_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Release-iphoneos PODS_PODFILE_DIR_PATH = /Users/tarikyilmaz/External/mobile/spectrome_app/ios/. PODS_ROOT = /Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = YES PRECOMP_DESTINATION_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/PrefixHeaders PRESERVE_DEAD_CODE_INITS_AND_TERMS = NO PREVIEW_DART_2 = true PRIVATE_HEADERS_FOLDER_PATH = Runner.app/PrivateHeaders PRODUCT_BUNDLE_IDENTIFIER = com.spectrome.App PRODUCT_MODULE_NAME = Runner PRODUCT_NAME = Runner PRODUCT_SETTINGS_PATH = /Users/tarikyilmaz/External/mobile/spectrome_app/ios/Runner/Info.plist PRODUCT_TYPE = com.apple.product-type.application PROFILING_CODE = NO PROJECT = Runner PROJECT_DERIVED_FILE_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/DerivedSources PROJECT_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/ios PROJECT_FILE_PATH = /Users/tarikyilmaz/External/mobile/spectrome_app/ios/Runner.xcodeproj PROJECT_NAME = Runner PROJECT_TEMP_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build PROJECT_TEMP_ROOT = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios PROVISIONING_PROFILE_REQUIRED = YES PUBLIC_HEADERS_FOLDER_PATH = Runner.app/Headers RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS = YES REMOVE_CVS_FROM_RESOURCES = YES REMOVE_GIT_FROM_RESOURCES = YES REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES = YES REMOVE_HG_FROM_RESOURCES = YES REMOVE_SVN_FROM_RESOURCES = YES RESOURCE_RULES_REQUIRED = YES REZ_COLLECTOR_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/ResourceManagerResources REZ_OBJECTS_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/ResourceManagerResources/Objects SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = NO SCRIPTS_FOLDER_PATH = Runner.app/Scripts SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk SDK_DIR_iphoneos11_3 = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk SDK_NAME = iphoneos11.3 SDK_NAMES = iphoneos11.3 SDK_PRODUCT_BUILD_VERSION = 15E217 SDK_VERSION = 11.3 SDK_VERSION_ACTUAL = 110300 SDK_VERSION_MAJOR = 110000 SDK_VERSION_MINOR = 300 SED = /usr/bin/sed SEPARATE_STRIP = NO SEPARATE_SYMBOL_EDIT = NO SET_DIR_MODE_OWNER_GROUP = YES SET_FILE_MODE_OWNER_GROUP = NO SHALLOW_BUNDLE = YES SHARED_DERIVED_FILE_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Release-iphoneos/DerivedSources SHARED_FRAMEWORKS_FOLDER_PATH = Runner.app/SharedFrameworks SHARED_PRECOMPS_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/SharedPrecompiledHeaders SHARED_SUPPORT_FOLDER_PATH = Runner.app/SharedSupport SKIP_INSTALL = NO SOURCE_ROOT = /Users/tarikyilmaz/External/mobile/spectrome_app/ios SRCROOT = /Users/tarikyilmaz/External/mobile/spectrome_app/ios STRINGS_FILE_OUTPUT_ENCODING = binary STRIP_BITCODE_FROM_COPIED_FILES = YES STRIP_INSTALLED_PRODUCT = YES STRIP_STYLE = all STRIP_SWIFT_SYMBOLS = YES SUPPORTED_DEVICE_FAMILIES = 1,2 SUPPORTED_PLATFORMS = iphonesimulator iphoneos SUPPORTS_TEXT_BASED_API = NO SWIFT_PLATFORM_TARGET_PREFIX = ios SYMROOT = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios SYSTEM_ADMIN_APPS_DIR = /Applications/Utilities SYSTEM_APPS_DIR = /Applications SYSTEM_CORE_SERVICES_DIR = /System/Library/CoreServices SYSTEM_DEMOS_DIR = /Applications/Extras SYSTEM_DEVELOPER_APPS_DIR = /Applications/Xcode.app/Contents/Developer/Applications SYSTEM_DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/usr/bin SYSTEM_DEVELOPER_DEMOS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Utilities/Built Examples SYSTEM_DEVELOPER_DIR = /Applications/Xcode.app/Contents/Developer SYSTEM_DEVELOPER_DOC_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Graphics Tools SYSTEM_DEVELOPER_JAVA_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Java Tools SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Performance Tools SYSTEM_DEVELOPER_RELEASENOTES_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes SYSTEM_DEVELOPER_TOOLS = /Applications/Xcode.app/Contents/Developer/Tools SYSTEM_DEVELOPER_TOOLS_DOC_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools SYSTEM_DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/usr SYSTEM_DEVELOPER_UTILITIES_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Utilities SYSTEM_DOCUMENTATION_DIR = /Library/Documentation SYSTEM_KEXT_INSTALL_PATH = /System/Library/Extensions SYSTEM_LIBRARY_DIR = /System/Library TAPI_VERIFY_MODE = ErrorsOnly TARGETED_DEVICE_FAMILY = 1 TARGETNAME = Runner TARGET_BUILD_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Release-iphoneos TARGET_NAME = Runner TARGET_TEMP_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_FILES_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_FILE_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_ROOT = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios TOOLCHAIN_DIR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain TREAT_MISSING_BASELINES_AS_TEST_FAILURES = NO UID = 501 UNLOCALIZED_RESOURCES_FOLDER_PATH = Runner.app UNSTRIPPED_PRODUCT = NO USER = tarikyilmaz USER_APPS_DIR = /Users/tarikyilmaz/Applications USER_LIBRARY_DIR = /Users/tarikyilmaz/Library USE_DYNAMIC_NO_PIC = YES USE_HEADERMAP = YES USE_HEADER_SYMLINKS = NO VALIDATE_PRODUCT = YES VALID_ARCHS = arm64 armv7 armv7s VERBOSE_PBXCP = NO VERSIONING_SYSTEM = apple-generic VERSIONPLIST_PATH = Runner.app/version.plist VERSION_INFO_BUILDER = tarikyilmaz VERSION_INFO_FILE = Runner_vers.c VERSION_INFO_STRING = &quot;@(#)PROGRAM:Runner PROJECT:Runner-1&quot; WRAPPER_EXTENSION = app WRAPPER_NAME = Runner.app WRAPPER_SUFFIX = .app WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES = NO XCODE_APP_SUPPORT_DIR = /Applications/Xcode.app/Contents/Developer/Library/Xcode XCODE_PRODUCT_BUILD_VERSION = 9E145 XCODE_VERSION_ACTUAL = 0930 XCODE_VERSION_MAJOR = 0900 XCODE_VERSION_MINOR = 0930 XPCSERVICES_FOLDER_PATH = Runner.app/XPCServices YACC = yacc arch = arm64 variant = normal [ +36 ms] Building Runner.app for 2C599B2B-8842-4165-9932-4D44CE278EEC. [ +16 ms] script /dev/null /usr/bin/log stream --style syslog --predicate processImagePath CONTAINS &quot;2C599B2B-8842-4165-9932-4D44CE278EEC&quot; [ +36 ms] [DEVICE LOG] Filtering the log data using &quot;processImagePath CONTAINS &quot;2C599B2B-8842-4165-9932-4D44CE278EEC&quot;&quot; [ +5 ms] [DEVICE LOG] Timestamp (process)[PID] [ +180 ms] Skipping kernel compilation. Fingerprint match. [ +293 ms] Building bundle [ ] Writing asset files to build/flutter_assets [ +120 ms] Wrote build/flutter_assets [ +2 ms] /usr/bin/xcrun simctl get_app_container 2C599B2B-8842-4165-9932-4D44CE278EEC com.spectrome.App [ ] /usr/bin/killall Runner [ +193 ms] /usr/bin/xcrun simctl launch 2C599B2B-8842-4165-9932-4D44CE278EEC com.spectrome.App --enable-dart-profiling --enable-checked-mode --observatory-port=8100 [ +210 ms] com.spectrome.App: 10817 [ +2 ms] Waiting for observatory port to be available... [ +307 ms] [DEVICE LOG] 2018-05-13 22:33:41.704108+0300 localhost Runner[10817]: (Runner) Created Activity ID: 0x230740, Description: Loading Preferences From System CFPrefsD For Search List [ +1 ms] [DEVICE LOG] 2018-05-13 22:33:41.704110+0300 localhost Runner[10817]: (Runner) Created Activity ID: 0x230741, Description: Loading Preferences From System CFPrefsD For Search List [ +47 ms] [DEVICE LOG] 2018-05-13 22:33:41.754198+0300 localhost Runner[10817]: (Runner) Created Activity ID: 0x230742, Description: Loading Preferences From System CFPrefsD For Search List [ +38 ms] [DEVICE LOG] 2018-05-13 22:33:41.793015+0300 localhost Runner[10817]: (libAccessibility.dylib) [com.apple.Accessibility:AccessibilitySupport] Retrieving resting unlock: 0 [ +276 ms] [DEVICE LOG] 2018-05-13 22:33:42.068851+0300 localhost Runner[10817]: (UIKit) You've implemented -[&lt;UIApplicationDelegate&gt; application:performFetchWithCompletionHandler:], but you still need to add &quot;fetch&quot; to the list of your supported UIBackgroundModes in your Info.plist. [ ] [DEVICE LOG] 2018-05-13 22:33:42.069063+0300 localhost Runner[10817]: (UIKit) You've implemented -[&lt;UIApplicationDelegate&gt; application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add &quot;remote-notification&quot; to the list of your supported UIBackgroundModes in your Info.plist. [ +66 ms] [DEVICE LOG] 2018-05-13 22:33:42.135991+0300 localhost Runner[10817]: (Flutter) flutter: Observatory listening on http://127.0.0.1:8100/ [ +3 ms] Observatory URL on device: http://127.0.0.1:8100/ [ +6 ms] Connecting to service protocol: http://127.0.0.1:8100/ [ +54 ms] [DEVICE LOG] 2018-05-13 22:33:42.153484+0300 localhost Runner[10817]: (Flutter) [VERBOSE-2:dart_error.cc(16)] error: import of dart:mirrors with --enable-mirrors=false [ ] [DEVICE LOG] 2018-05-13 22:33:42.155966+0300 localhost Runner[10817]: (Flutter) [VERBOSE-2:engine.cc(147)] Could not prepare to run the isolate. [ ] [DEVICE LOG] 2018-05-13 22:33:42.156227+0300 localhost Runner[10817]: (Flutter) [VERBOSE-2:engine.cc(112)] Engine not prepare and launch isolate. [ ] [DEVICE LOG] 2018-05-13 22:33:42.156414+0300 localhost Runner[10817]: (Flutter) [VERBOSE-2:FlutterViewController.mm(170)] Could not launch engine with configuration. [ ] [VERBOSE-2:dart_error.cc(16)] error: import of dart:mirrors with --enable-mirrors=false [ ] [VERBOSE-2:engine.cc(147)] Could not prepare to run the isolate. [ ] [VERBOSE-2:engine.cc(112)] Engine not prepare and launch isolate. [ ] [VERBOSE-2:FlutterViewController.mm(170)] Could not launch engine with configuration. [ +389 ms] Successfully connected to service protocol: http://127.0.0.1:8100/ [ +4 ms] getVM: {} [ +12 ms] getIsolate: {isolateId: isolates/255832070} [ +3 ms] _flutter.listViews: {} [ +52 ms] DevFS: Creating new filesystem on the device (null) [ ] _createDevFS: {fsName: spectrome_app} [ +24 ms] DevFS: Created new filesystem on the device (file:///Users/tarikyilmaz/Library/Developer/CoreSimulator/Devices/2C599B2B-8842-4165-9932-4D44CE278EEC/data/Containers/Data/Application/D6F91512-0F2D-4B80-93AE-121865C1414A/tmp/spectrome_appzeWBqh/spectrome_app/) [ +1 ms] Updating assets [ +223 ms] Syncing files to device iPhone 6s... [ +2 ms] DevFS: Starting sync from LocalDirectory: '/Users/tarikyilmaz/External/mobile/spectrome_app' [ ] Scanning project files [ +8 ms] Scanning package files [ +131 ms] Scanning asset files [ +1 ms] Scanning for deleted files [ +15 ms] Compiling dart to kernel with 534 updated files [ +3 ms] /Users/tarikyilmaz/External/mobile/flutter/bin/cache/dart-sdk/bin/dart /Users/tarikyilmaz/External/mobile/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/tarikyilmaz/External/mobile/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --strong --target=flutter --output-dill build/app.dill --packages /Users/tarikyilmaz/External/mobile/spectrome_app/.packages --filesystem-scheme org-dartlang-root [+1687 ms] Updating files [ +753 ms] DevFS: Sync finished [ ] Synced 0.7MB. [ +6 ms] _flutter.listViews: {} [ +3 ms] Connected to _flutterView/0x7fd9e260c678. [ ] 🔥 To hot reload your app on the fly, press &quot;r&quot;. To restart the app entirely, press &quot;R&quot;. [ +1 ms] An Observatory debugger and profiler on iPhone 6s is available at: http://127.0.0.1:8100/ [ ] For a more detailed help message, press &quot;h&quot;. To quit, press &quot;q&quot;."><pre class="notranslate"><code class="notranslate">[ +43 ms] [/Users/tarikyilmaz/External/mobile/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +52 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/master [ ] [/Users/tarikyilmaz/External/mobile/flutter/] git rev-parse --abbrev-ref HEAD [ +10 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] master [ ] [/Users/tarikyilmaz/External/mobile/flutter/] git ls-remote --get-url origin [ +10 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ +1 ms] [/Users/tarikyilmaz/External/mobile/flutter/] git log -n 1 --pretty=format:%H [ +11 ms] Exit code 0 from: git log -n 1 --pretty=format:%H [ ] f9bb4289e9fd861d70ae78bcc3a042ef1b35cc9d [ ] [/Users/tarikyilmaz/External/mobile/flutter/] git log -n 1 --pretty=format:%ar [ +8 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar [ ] 2 days ago [ +1 ms] [/Users/tarikyilmaz/External/mobile/flutter/] git describe --match v*.*.* --first-parent --long --tags [ +19 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ ] v0.4.3-8-gf9bb4289e [ +334 ms] Unable to locate an Android SDK. [ +11 ms] Unable to locate an Android SDK. [ +298 ms] Unable to locate an Android SDK. [ +7 ms] /usr/local/bin/adb devices -l [ +19 ms] Exit code 0 from: /usr/local/bin/adb devices -l [ +4 ms] List of devices attached [ +9 ms] idevice_id -h [ +139 ms] which ideviceinstaller [ +7 ms] Exit code 0 from: which ideviceinstaller [ ] /usr/local/bin/ideviceinstaller [ ] which iproxy [ +5 ms] Exit code 0 from: which iproxy [ ] /usr/local/bin/iproxy [ +61 ms] which ideviceinstaller [ +5 ms] Exit code 0 from: which ideviceinstaller [ ] /usr/local/bin/ideviceinstaller [ ] which iproxy [ +6 ms] Exit code 0 from: which iproxy [ ] /usr/local/bin/iproxy [ +4 ms] /usr/bin/xcrun simctl list --json devices [ +273 ms] Found plugin shared_preferences at /Users/tarikyilmaz/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.4.1/ [ +876 ms] Launching lib/main.dart on iPhone 6s in debug mode... [ +3 ms] /usr/bin/defaults read /Users/tarikyilmaz/External/mobile/spectrome_app/ios/Runner/Info CFBundleIdentifier [ +78 ms] Exit code 0 from: /usr/bin/defaults read /Users/tarikyilmaz/External/mobile/spectrome_app/ios/Runner/Info CFBundleIdentifier [ ] $(PRODUCT_BUNDLE_IDENTIFIER) [ ] [ios/Runner.xcodeproj/] /usr/bin/xcodebuild -project /Users/tarikyilmaz/External/mobile/spectrome_app/ios/Runner.xcodeproj -target Runner -showBuildSettings [+1187 ms] Exit code 0 from: /usr/bin/xcodebuild -project /Users/tarikyilmaz/External/mobile/spectrome_app/ios/Runner.xcodeproj -target Runner -showBuildSettings [ ] Build settings for action build and target Runner: ACTION = build AD_HOC_CODE_SIGNING_ALLOWED = NO ALTERNATE_GROUP = staff ALTERNATE_MODE = u+w,go-w,a+rX ALTERNATE_OWNER = tarikyilmaz ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO ALWAYS_SEARCH_USER_PATHS = NO ALWAYS_USE_SEPARATE_HEADERMAPS = NO APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer APPLE_INTERNAL_DIR = /AppleInternal APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation APPLE_INTERNAL_LIBRARY_DIR = /AppleInternal/Library APPLE_INTERNAL_TOOLS = /AppleInternal/Developer/Tools APPLICATION_EXTENSION_API_ONLY = NO APPLY_RULES_IN_COPY_FILES = NO ARCHS = armv7 arm64 ARCHS_STANDARD = armv7 arm64 ARCHS_STANDARD_32_64_BIT = armv7 arm64 ARCHS_STANDARD_32_BIT = armv7 ARCHS_STANDARD_64_BIT = arm64 ARCHS_STANDARD_INCLUDING_64_BIT = armv7 arm64 ARCHS_UNIVERSAL_IPHONE_OS = armv7 arm64 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon AVAILABLE_PLATFORMS = appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator BITCODE_GENERATION_MODE = marker BUILD_ACTIVE_RESOURCES_ONLY = NO BUILD_COMPONENTS = headers build BUILD_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios BUILD_ROOT = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios BUILD_STYLE = BUILD_VARIANTS = normal BUILT_PRODUCTS_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Release-iphoneos CACHE_ROOT = /var/folders/8c/vqtc6nqx1s5g6tv2dy2b1yx00000gn/C/com.apple.DeveloperTools/9.3-9E145/Xcode CCHROOT = /var/folders/8c/vqtc6nqx1s5g6tv2dy2b1yx00000gn/C/com.apple.DeveloperTools/9.3-9E145/Xcode CHMOD = /bin/chmod CHOWN = /usr/sbin/chown CLANG_ANALYZER_NONNULL = YES CLANG_CXX_LANGUAGE_STANDARD = gnu++0x CLANG_CXX_LIBRARY = libc++ CLANG_ENABLE_MODULES = YES CLANG_ENABLE_OBJC_ARC = YES CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES CLANG_WARN_BOOL_CONVERSION = YES CLANG_WARN_COMMA = YES CLANG_WARN_CONSTANT_CONVERSION = YES CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR CLANG_WARN_EMPTY_BODY = YES CLANG_WARN_ENUM_CONVERSION = YES CLANG_WARN_INFINITE_RECURSION = YES CLANG_WARN_INT_CONVERSION = YES CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES CLANG_WARN_OBJC_LITERAL_CONVERSION = YES CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR CLANG_WARN_RANGE_LOOP_ANALYSIS = YES CLANG_WARN_STRICT_PROTOTYPES = YES CLANG_WARN_SUSPICIOUS_MOVE = YES CLANG_WARN_UNREACHABLE_CODE = YES CLANG_WARN__DUPLICATE_METHOD_MATCH = YES CLASS_FILE_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/JavaClasses CLEAN_PRECOMPS = YES CLONE_HEADERS = NO CODESIGNING_FOLDER_PATH = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Release-iphoneos/Runner.app CODE_SIGNING_ALLOWED = YES CODE_SIGNING_REQUIRED = YES CODE_SIGN_CONTEXT_CLASS = XCiPhoneOSCodeSignContext CODE_SIGN_IDENTITY = iPhone Developer CODE_SIGN_INJECT_BASE_ENTITLEMENTS = YES COLOR_DIAGNOSTICS = NO COMBINE_HIDPI_IMAGES = NO COMPILER_INDEX_STORE_ENABLE = Default COMPOSITE_SDK_DIRS = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/CompositeSDKs COMPRESS_PNG_FILES = YES CONFIGURATION = Release CONFIGURATION_BUILD_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Release-iphoneos CONFIGURATION_TEMP_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos CONTENTS_FOLDER_PATH = Runner.app COPYING_PRESERVES_HFS_DATA = NO COPY_HEADERS_RUN_UNIFDEF = NO COPY_PHASE_STRIP = NO COPY_RESOURCES_FROM_STATIC_FRAMEWORKS = YES CORRESPONDING_SIMULATOR_PLATFORM_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform CORRESPONDING_SIMULATOR_PLATFORM_NAME = iphonesimulator CORRESPONDING_SIMULATOR_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk CORRESPONDING_SIMULATOR_SDK_NAME = iphonesimulator11.3 CP = /bin/cp CREATE_INFOPLIST_SECTION_IN_BINARY = NO CURRENT_ARCH = arm64 CURRENT_PROJECT_VERSION = 1 CURRENT_VARIANT = normal DEAD_CODE_STRIPPING = YES DEBUGGING_SYMBOLS = YES DEBUG_INFORMATION_FORMAT = dwarf-with-dsym DEFAULT_COMPILER = com.apple.compilers.llvm.clang.1_0 DEFAULT_KEXT_INSTALL_PATH = /System/Library/Extensions DEFINES_MODULE = NO DEPLOYMENT_LOCATION = NO DEPLOYMENT_POSTPROCESSING = NO DEPLOYMENT_TARGET_CLANG_ENV_NAME = IPHONEOS_DEPLOYMENT_TARGET DEPLOYMENT_TARGET_CLANG_FLAG_NAME = miphoneos-version-min DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX = -miphoneos-version-min= DEPLOYMENT_TARGET_SETTING_NAME = IPHONEOS_DEPLOYMENT_TARGET DEPLOYMENT_TARGET_SUGGESTED_VALUES = 8.0 8.1 8.2 8.3 8.4 9.0 9.1 9.2 9.3 10.0 10.1 10.2 10.3 11.0 11.3 DERIVED_FILES_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources DERIVED_FILE_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources DERIVED_SOURCES_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources DEVELOPER_APPLICATIONS_DIR = /Applications/Xcode.app/Contents/Developer/Applications DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/usr/bin DEVELOPER_DIR = /Applications/Xcode.app/Contents/Developer DEVELOPER_FRAMEWORKS_DIR = /Applications/Xcode.app/Contents/Developer/Library/Frameworks DEVELOPER_FRAMEWORKS_DIR_QUOTED = /Applications/Xcode.app/Contents/Developer/Library/Frameworks DEVELOPER_LIBRARY_DIR = /Applications/Xcode.app/Contents/Developer/Library DEVELOPER_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs DEVELOPER_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Tools DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/usr DEVELOPMENT_LANGUAGE = English DEVELOPMENT_TEAM = P6WQ63FJV3 DOCUMENTATION_FOLDER_PATH = Runner.app/English.lproj/Documentation DO_HEADER_SCANNING_IN_JAM = NO DSTROOT = /tmp/Runner.dst DT_TOOLCHAIN_DIR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain DWARF_DSYM_FILE_NAME = Runner.app.dSYM DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT = NO DWARF_DSYM_FOLDER_PATH = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Release-iphoneos EFFECTIVE_PLATFORM_NAME = -iphoneos EMBEDDED_CONTENT_CONTAINS_SWIFT = NO EMBEDDED_PROFILE_NAME = embedded.mobileprovision EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = NO ENABLE_BITCODE = NO ENABLE_DEFAULT_HEADER_SEARCH_PATHS = YES ENABLE_HEADER_DEPENDENCIES = YES ENABLE_NS_ASSERTIONS = NO ENABLE_ON_DEMAND_RESOURCES = YES ENABLE_STRICT_OBJC_MSGSEND = YES ENABLE_TESTABILITY = NO ENTITLEMENTS_ALLOWED = YES ENTITLEMENTS_REQUIRED = YES EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS = .DS_Store .svn .git .hg CVS EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES = *.nib *.lproj *.framework *.gch *.xcode* *.xcassets (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj EXECUTABLES_FOLDER_PATH = Runner.app/Executables EXECUTABLE_FOLDER_PATH = Runner.app EXECUTABLE_NAME = Runner EXECUTABLE_PATH = Runner.app/Runner EXPANDED_CODE_SIGN_IDENTITY = EXPANDED_CODE_SIGN_IDENTITY_NAME = EXPANDED_PROVISIONING_PROFILE = FILE_LIST = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects/LinkFileList FIXED_FILES_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/FixedFiles FLUTTER_APPLICATION_PATH = /Users/tarikyilmaz/External/mobile/spectrome_app FLUTTER_BUILD_DIR = build FLUTTER_BUILD_MODE = debug FLUTTER_FRAMEWORK_DIR = /Users/tarikyilmaz/External/mobile/flutter/bin/cache/artifacts/engine/ios FLUTTER_ROOT = /Users/tarikyilmaz/External/mobile/flutter FLUTTER_TARGET = lib/main.dart FRAMEWORKS_FOLDER_PATH = Runner.app/Frameworks FRAMEWORK_FLAG_PREFIX = -framework FRAMEWORK_SEARCH_PATHS = "/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/../.symlinks/flutter/ios" "/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/../.symlinks/flutter/ios" /Users/tarikyilmaz/External/mobile/spectrome_app/ios/Flutter FRAMEWORK_VERSION = A FULL_PRODUCT_NAME = Runner.app GCC3_VERSION = 3.3 GCC_C_LANGUAGE_STANDARD = gnu99 GCC_INLINES_ARE_PRIVATE_EXTERN = YES GCC_NO_COMMON_BLOCKS = YES GCC_PFE_FILE_C_DIALECTS = c objective-c c++ objective-c++ GCC_PREPROCESSOR_DEFINITIONS = COCOAPODS=1 COCOAPODS=1 GCC_SYMBOLS_PRIVATE_EXTERN = YES GCC_THUMB_SUPPORT = YES GCC_TREAT_WARNINGS_AS_ERRORS = NO GCC_VERSION = com.apple.compilers.llvm.clang.1_0 GCC_VERSION_IDENTIFIER = com_apple_compilers_llvm_clang_1_0 GCC_WARN_64_TO_32_BIT_CONVERSION = YES GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR GCC_WARN_UNDECLARED_SELECTOR = YES GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE GCC_WARN_UNUSED_FUNCTION = YES GCC_WARN_UNUSED_VARIABLE = YES GENERATE_MASTER_OBJECT_FILE = NO GENERATE_PKGINFO_FILE = YES GENERATE_PROFILING_CODE = NO GENERATE_TEXT_BASED_STUBS = NO GID = 20 GROUP = staff HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT = YES HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES = YES HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS = YES HEADERMAP_INCLUDES_PROJECT_HEADERS = YES HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES = YES HEADERMAP_USES_VFS = NO HEADER_SEARCH_PATHS = "/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public" "/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public/Flutter" "/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public/shared_preferences" "/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public" "/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public/Flutter" "/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public/shared_preferences" HIDE_BITCODE_SYMBOLS = YES HOME = /Users/tarikyilmaz ICONV = /usr/bin/iconv INFOPLIST_EXPAND_BUILD_SETTINGS = YES INFOPLIST_FILE = Runner/Info.plist INFOPLIST_OUTPUT_FORMAT = binary INFOPLIST_PATH = Runner.app/Info.plist INFOPLIST_PREPROCESS = NO INFOSTRINGS_PATH = Runner.app/English.lproj/InfoPlist.strings INLINE_PRIVATE_FRAMEWORKS = NO INSTALLHDRS_COPY_PHASE = NO INSTALLHDRS_SCRIPT_PHASE = NO INSTALL_DIR = /tmp/Runner.dst/Applications INSTALL_GROUP = staff INSTALL_MODE_FLAG = u+w,go-w,a+rX INSTALL_OWNER = tarikyilmaz INSTALL_PATH = /Applications INSTALL_ROOT = /tmp/Runner.dst IPHONEOS_DEPLOYMENT_TARGET = 8.0 JAVAC_DEFAULT_FLAGS = -J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8 JAVA_APP_STUB = /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub JAVA_ARCHIVE_CLASSES = YES JAVA_ARCHIVE_TYPE = JAR JAVA_COMPILER = /usr/bin/javac JAVA_FOLDER_PATH = Runner.app/Java JAVA_FRAMEWORK_RESOURCES_DIRS = Resources JAVA_JAR_FLAGS = cv JAVA_SOURCE_SUBDIR = . JAVA_USE_DEPENDENCIES = YES JAVA_ZIP_FLAGS = -urg JIKES_DEFAULT_FLAGS = +E +OLDCSO KASAN_DEFAULT_CFLAGS = -DKASAN=1 -fsanitize=address -mllvm -asan-globals-live-support -mllvm -asan-force-dynamic-shadow KEEP_PRIVATE_EXTERNS = NO LD_DEPENDENCY_INFO_FILE = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects-normal/arm64/Runner_dependency_info.dat LD_GENERATE_MAP_FILE = NO LD_MAP_FILE_PATH = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/Runner-LinkMap-normal-arm64.txt LD_NO_PIE = NO LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER = YES LD_RUNPATH_SEARCH_PATHS = '@executable_path/Frameworks' '@loader_path/Frameworks' '@executable_path/Frameworks' '@loader_path/Frameworks' @executable_path/Frameworks LEGACY_DEVELOPER_DIR = /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer LEX = lex LIBRARY_FLAG_NOSPACE = YES LIBRARY_FLAG_PREFIX = -l LIBRARY_KEXT_INSTALL_PATH = /Library/Extensions LIBRARY_SEARCH_PATHS = "/Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Release-iphoneos/shared_preferences" "/Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Release-iphoneos/shared_preferences" /Users/tarikyilmaz/External/mobile/spectrome_app/ios/Flutter LINKER_DISPLAYS_MANGLED_NAMES = NO LINK_FILE_LIST_normal_arm64 = LINK_FILE_LIST_normal_armv7 = LINK_WITH_STANDARD_LIBRARIES = YES LOCALIZABLE_CONTENT_DIR = LOCALIZED_RESOURCES_FOLDER_PATH = Runner.app/English.lproj LOCALIZED_STRING_MACRO_NAMES = NSLocalizedString CFLocalizedString LOCAL_ADMIN_APPS_DIR = /Applications/Utilities LOCAL_APPS_DIR = /Applications LOCAL_DEVELOPER_DIR = /Library/Developer LOCAL_LIBRARY_DIR = /Library LOCROOT = LOCSYMROOT = MACH_O_TYPE = mh_execute MAC_OS_X_PRODUCT_BUILD_VERSION = 17E202 MAC_OS_X_VERSION_ACTUAL = 101304 MAC_OS_X_VERSION_MAJOR = 101300 MAC_OS_X_VERSION_MINOR = 1304 METAL_LIBRARY_FILE_BASE = default METAL_LIBRARY_OUTPUT_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Release-iphoneos/Runner.app MODULE_CACHE_DIR = /Users/tarikyilmaz/Library/Developer/Xcode/DerivedData/ModuleCache.noindex MTL_ENABLE_DEBUG_INFO = NO NATIVE_ARCH = armv7 NATIVE_ARCH_32_BIT = i386 NATIVE_ARCH_64_BIT = x86_64 NATIVE_ARCH_ACTUAL = x86_64 NO_COMMON = YES OBJECT_FILE_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects OBJECT_FILE_DIR_normal = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects-normal OBJROOT = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios ONLY_ACTIVE_ARCH = NO OS = MACOS OSAC = /usr/bin/osacompile OTHER_CFLAGS = -isystem "/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public" -isystem "/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public/Flutter" -isystem "/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public/shared_preferences" -isystem "/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public" -isystem "/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public/Flutter" -isystem "/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public/shared_preferences" OTHER_CPLUSPLUSFLAGS = -isystem "/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public" -isystem "/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public/Flutter" -isystem "/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public/shared_preferences" -isystem "/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public" -isystem "/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public/Flutter" -isystem "/Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods/Headers/Public/shared_preferences" OTHER_LDFLAGS = -ObjC -l"shared_preferences" -framework "Flutter" -ObjC -l"shared_preferences" -framework "Flutter" PACKAGE_TYPE = com.apple.package-type.wrapper.application PASCAL_STRINGS = YES PATH = /Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/opt/X11/bin:/Applications/Wireshark.app/Contents/MacOS:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/bin:/Users/tarikyilmaz/External/tools/maven/bin:/Users/tarikyilmaz/External/tools/hadoop/bin:/Users/tarikyilmaz/External/tools/script:/usr/local/elasticsearch/bin:/Users/tarikyilmaz/External/tools/hadoop/sbin:/Users/tarikyilmaz/External/tools/hbase/bin:/Users/tarikyilmaz/External/path/go/bin:/Users/tarikyilmaz/External/path/rubygems/bin:/Users/tarikyilmaz/External/tools/gradle/bin:/Users/tarikyilmaz/External/tools/spark/bin:/Users/tarikyilmaz/External/tools/hive-2.1/bin:/Users/tarikyilmaz/External/mobile/flutter/bin:/Users/tarikyilmaz/External/tools/android/tools:/Users/tarikyilmaz/External/tools/android/platform-tools PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES = /usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Applications/Xcode.app/Contents/Developer/Headers /Applications/Xcode.app/Contents/Developer/SDKs /Applications/Xcode.app/Contents/Developer/Platforms PBDEVELOPMENTPLIST_PATH = Runner.app/pbdevelopment.plist PFE_FILE_C_DIALECTS = objective-c PKGINFO_FILE_PATH = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/PkgInfo PKGINFO_PATH = Runner.app/PkgInfo PLATFORM_DEVELOPER_APPLICATIONS_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Applications PLATFORM_DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin PLATFORM_DEVELOPER_LIBRARY_DIR = /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library PLATFORM_DEVELOPER_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs PLATFORM_DEVELOPER_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Tools PLATFORM_DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr PLATFORM_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform PLATFORM_DISPLAY_NAME = iOS PLATFORM_NAME = iphoneos PLATFORM_PREFERRED_ARCH = arm64 PLATFORM_PRODUCT_BUILD_VERSION = 15E217 PLIST_FILE_OUTPUT_FORMAT = binary PLUGINS_FOLDER_PATH = Runner.app/PlugIns PODS_BUILD_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios PODS_CONFIGURATION_BUILD_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Release-iphoneos PODS_PODFILE_DIR_PATH = /Users/tarikyilmaz/External/mobile/spectrome_app/ios/. PODS_ROOT = /Users/tarikyilmaz/External/mobile/spectrome_app/ios/Pods PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = YES PRECOMP_DESTINATION_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/PrefixHeaders PRESERVE_DEAD_CODE_INITS_AND_TERMS = NO PREVIEW_DART_2 = true PRIVATE_HEADERS_FOLDER_PATH = Runner.app/PrivateHeaders PRODUCT_BUNDLE_IDENTIFIER = com.spectrome.App PRODUCT_MODULE_NAME = Runner PRODUCT_NAME = Runner PRODUCT_SETTINGS_PATH = /Users/tarikyilmaz/External/mobile/spectrome_app/ios/Runner/Info.plist PRODUCT_TYPE = com.apple.product-type.application PROFILING_CODE = NO PROJECT = Runner PROJECT_DERIVED_FILE_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/DerivedSources PROJECT_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/ios PROJECT_FILE_PATH = /Users/tarikyilmaz/External/mobile/spectrome_app/ios/Runner.xcodeproj PROJECT_NAME = Runner PROJECT_TEMP_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build PROJECT_TEMP_ROOT = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios PROVISIONING_PROFILE_REQUIRED = YES PUBLIC_HEADERS_FOLDER_PATH = Runner.app/Headers RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS = YES REMOVE_CVS_FROM_RESOURCES = YES REMOVE_GIT_FROM_RESOURCES = YES REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES = YES REMOVE_HG_FROM_RESOURCES = YES REMOVE_SVN_FROM_RESOURCES = YES RESOURCE_RULES_REQUIRED = YES REZ_COLLECTOR_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/ResourceManagerResources REZ_OBJECTS_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build/ResourceManagerResources/Objects SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = NO SCRIPTS_FOLDER_PATH = Runner.app/Scripts SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk SDK_DIR_iphoneos11_3 = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk SDK_NAME = iphoneos11.3 SDK_NAMES = iphoneos11.3 SDK_PRODUCT_BUILD_VERSION = 15E217 SDK_VERSION = 11.3 SDK_VERSION_ACTUAL = 110300 SDK_VERSION_MAJOR = 110000 SDK_VERSION_MINOR = 300 SED = /usr/bin/sed SEPARATE_STRIP = NO SEPARATE_SYMBOL_EDIT = NO SET_DIR_MODE_OWNER_GROUP = YES SET_FILE_MODE_OWNER_GROUP = NO SHALLOW_BUNDLE = YES SHARED_DERIVED_FILE_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Release-iphoneos/DerivedSources SHARED_FRAMEWORKS_FOLDER_PATH = Runner.app/SharedFrameworks SHARED_PRECOMPS_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/SharedPrecompiledHeaders SHARED_SUPPORT_FOLDER_PATH = Runner.app/SharedSupport SKIP_INSTALL = NO SOURCE_ROOT = /Users/tarikyilmaz/External/mobile/spectrome_app/ios SRCROOT = /Users/tarikyilmaz/External/mobile/spectrome_app/ios STRINGS_FILE_OUTPUT_ENCODING = binary STRIP_BITCODE_FROM_COPIED_FILES = YES STRIP_INSTALLED_PRODUCT = YES STRIP_STYLE = all STRIP_SWIFT_SYMBOLS = YES SUPPORTED_DEVICE_FAMILIES = 1,2 SUPPORTED_PLATFORMS = iphonesimulator iphoneos SUPPORTS_TEXT_BASED_API = NO SWIFT_PLATFORM_TARGET_PREFIX = ios SYMROOT = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios SYSTEM_ADMIN_APPS_DIR = /Applications/Utilities SYSTEM_APPS_DIR = /Applications SYSTEM_CORE_SERVICES_DIR = /System/Library/CoreServices SYSTEM_DEMOS_DIR = /Applications/Extras SYSTEM_DEVELOPER_APPS_DIR = /Applications/Xcode.app/Contents/Developer/Applications SYSTEM_DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/usr/bin SYSTEM_DEVELOPER_DEMOS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Utilities/Built Examples SYSTEM_DEVELOPER_DIR = /Applications/Xcode.app/Contents/Developer SYSTEM_DEVELOPER_DOC_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Graphics Tools SYSTEM_DEVELOPER_JAVA_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Java Tools SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Performance Tools SYSTEM_DEVELOPER_RELEASENOTES_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes SYSTEM_DEVELOPER_TOOLS = /Applications/Xcode.app/Contents/Developer/Tools SYSTEM_DEVELOPER_TOOLS_DOC_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools SYSTEM_DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/usr SYSTEM_DEVELOPER_UTILITIES_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Utilities SYSTEM_DOCUMENTATION_DIR = /Library/Documentation SYSTEM_KEXT_INSTALL_PATH = /System/Library/Extensions SYSTEM_LIBRARY_DIR = /System/Library TAPI_VERIFY_MODE = ErrorsOnly TARGETED_DEVICE_FAMILY = 1 TARGETNAME = Runner TARGET_BUILD_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Release-iphoneos TARGET_NAME = Runner TARGET_TEMP_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_FILES_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_FILE_DIR = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_ROOT = /Users/tarikyilmaz/External/mobile/spectrome_app/build/ios TOOLCHAIN_DIR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain TREAT_MISSING_BASELINES_AS_TEST_FAILURES = NO UID = 501 UNLOCALIZED_RESOURCES_FOLDER_PATH = Runner.app UNSTRIPPED_PRODUCT = NO USER = tarikyilmaz USER_APPS_DIR = /Users/tarikyilmaz/Applications USER_LIBRARY_DIR = /Users/tarikyilmaz/Library USE_DYNAMIC_NO_PIC = YES USE_HEADERMAP = YES USE_HEADER_SYMLINKS = NO VALIDATE_PRODUCT = YES VALID_ARCHS = arm64 armv7 armv7s VERBOSE_PBXCP = NO VERSIONING_SYSTEM = apple-generic VERSIONPLIST_PATH = Runner.app/version.plist VERSION_INFO_BUILDER = tarikyilmaz VERSION_INFO_FILE = Runner_vers.c VERSION_INFO_STRING = "@(#)PROGRAM:Runner PROJECT:Runner-1" WRAPPER_EXTENSION = app WRAPPER_NAME = Runner.app WRAPPER_SUFFIX = .app WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES = NO XCODE_APP_SUPPORT_DIR = /Applications/Xcode.app/Contents/Developer/Library/Xcode XCODE_PRODUCT_BUILD_VERSION = 9E145 XCODE_VERSION_ACTUAL = 0930 XCODE_VERSION_MAJOR = 0900 XCODE_VERSION_MINOR = 0930 XPCSERVICES_FOLDER_PATH = Runner.app/XPCServices YACC = yacc arch = arm64 variant = normal [ +36 ms] Building Runner.app for 2C599B2B-8842-4165-9932-4D44CE278EEC. [ +16 ms] script /dev/null /usr/bin/log stream --style syslog --predicate processImagePath CONTAINS "2C599B2B-8842-4165-9932-4D44CE278EEC" [ +36 ms] [DEVICE LOG] Filtering the log data using "processImagePath CONTAINS "2C599B2B-8842-4165-9932-4D44CE278EEC"" [ +5 ms] [DEVICE LOG] Timestamp (process)[PID] [ +180 ms] Skipping kernel compilation. Fingerprint match. [ +293 ms] Building bundle [ ] Writing asset files to build/flutter_assets [ +120 ms] Wrote build/flutter_assets [ +2 ms] /usr/bin/xcrun simctl get_app_container 2C599B2B-8842-4165-9932-4D44CE278EEC com.spectrome.App [ ] /usr/bin/killall Runner [ +193 ms] /usr/bin/xcrun simctl launch 2C599B2B-8842-4165-9932-4D44CE278EEC com.spectrome.App --enable-dart-profiling --enable-checked-mode --observatory-port=8100 [ +210 ms] com.spectrome.App: 10817 [ +2 ms] Waiting for observatory port to be available... [ +307 ms] [DEVICE LOG] 2018-05-13 22:33:41.704108+0300 localhost Runner[10817]: (Runner) Created Activity ID: 0x230740, Description: Loading Preferences From System CFPrefsD For Search List [ +1 ms] [DEVICE LOG] 2018-05-13 22:33:41.704110+0300 localhost Runner[10817]: (Runner) Created Activity ID: 0x230741, Description: Loading Preferences From System CFPrefsD For Search List [ +47 ms] [DEVICE LOG] 2018-05-13 22:33:41.754198+0300 localhost Runner[10817]: (Runner) Created Activity ID: 0x230742, Description: Loading Preferences From System CFPrefsD For Search List [ +38 ms] [DEVICE LOG] 2018-05-13 22:33:41.793015+0300 localhost Runner[10817]: (libAccessibility.dylib) [com.apple.Accessibility:AccessibilitySupport] Retrieving resting unlock: 0 [ +276 ms] [DEVICE LOG] 2018-05-13 22:33:42.068851+0300 localhost Runner[10817]: (UIKit) You've implemented -[&lt;UIApplicationDelegate&gt; application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist. [ ] [DEVICE LOG] 2018-05-13 22:33:42.069063+0300 localhost Runner[10817]: (UIKit) You've implemented -[&lt;UIApplicationDelegate&gt; application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist. [ +66 ms] [DEVICE LOG] 2018-05-13 22:33:42.135991+0300 localhost Runner[10817]: (Flutter) flutter: Observatory listening on http://127.0.0.1:8100/ [ +3 ms] Observatory URL on device: http://127.0.0.1:8100/ [ +6 ms] Connecting to service protocol: http://127.0.0.1:8100/ [ +54 ms] [DEVICE LOG] 2018-05-13 22:33:42.153484+0300 localhost Runner[10817]: (Flutter) [VERBOSE-2:dart_error.cc(16)] error: import of dart:mirrors with --enable-mirrors=false [ ] [DEVICE LOG] 2018-05-13 22:33:42.155966+0300 localhost Runner[10817]: (Flutter) [VERBOSE-2:engine.cc(147)] Could not prepare to run the isolate. [ ] [DEVICE LOG] 2018-05-13 22:33:42.156227+0300 localhost Runner[10817]: (Flutter) [VERBOSE-2:engine.cc(112)] Engine not prepare and launch isolate. [ ] [DEVICE LOG] 2018-05-13 22:33:42.156414+0300 localhost Runner[10817]: (Flutter) [VERBOSE-2:FlutterViewController.mm(170)] Could not launch engine with configuration. [ ] [VERBOSE-2:dart_error.cc(16)] error: import of dart:mirrors with --enable-mirrors=false [ ] [VERBOSE-2:engine.cc(147)] Could not prepare to run the isolate. [ ] [VERBOSE-2:engine.cc(112)] Engine not prepare and launch isolate. [ ] [VERBOSE-2:FlutterViewController.mm(170)] Could not launch engine with configuration. [ +389 ms] Successfully connected to service protocol: http://127.0.0.1:8100/ [ +4 ms] getVM: {} [ +12 ms] getIsolate: {isolateId: isolates/255832070} [ +3 ms] _flutter.listViews: {} [ +52 ms] DevFS: Creating new filesystem on the device (null) [ ] _createDevFS: {fsName: spectrome_app} [ +24 ms] DevFS: Created new filesystem on the device (file:///Users/tarikyilmaz/Library/Developer/CoreSimulator/Devices/2C599B2B-8842-4165-9932-4D44CE278EEC/data/Containers/Data/Application/D6F91512-0F2D-4B80-93AE-121865C1414A/tmp/spectrome_appzeWBqh/spectrome_app/) [ +1 ms] Updating assets [ +223 ms] Syncing files to device iPhone 6s... [ +2 ms] DevFS: Starting sync from LocalDirectory: '/Users/tarikyilmaz/External/mobile/spectrome_app' [ ] Scanning project files [ +8 ms] Scanning package files [ +131 ms] Scanning asset files [ +1 ms] Scanning for deleted files [ +15 ms] Compiling dart to kernel with 534 updated files [ +3 ms] /Users/tarikyilmaz/External/mobile/flutter/bin/cache/dart-sdk/bin/dart /Users/tarikyilmaz/External/mobile/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/tarikyilmaz/External/mobile/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --strong --target=flutter --output-dill build/app.dill --packages /Users/tarikyilmaz/External/mobile/spectrome_app/.packages --filesystem-scheme org-dartlang-root [+1687 ms] Updating files [ +753 ms] DevFS: Sync finished [ ] Synced 0.7MB. [ +6 ms] _flutter.listViews: {} [ +3 ms] Connected to _flutterView/0x7fd9e260c678. [ ] 🔥 To hot reload your app on the fly, press "r". To restart the app entirely, press "R". [ +1 ms] An Observatory debugger and profiler on iPhone 6s is available at: http://127.0.0.1:8100/ [ ] For a more detailed help message, press "h". To quit, press "q". </code></pre></div> <h3 dir="auto">Analyze</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Analyzing spectrome_app... No issues found! (ran in 4.1s)"><pre class="notranslate"><code class="notranslate">Analyzing spectrome_app... No issues found! (ran in 4.1s) </code></pre></div> <h3 dir="auto">Doctor</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel master, v0.4.4-pre.8, on Mac OS X 10.13.4 17E202, locale en-US) • Flutter version 0.4.4-pre.8 at /Users/tarikyilmaz/External/mobile/flutter • Framework revision f9bb4289e9 (2 days ago), 2018-05-11 21:44:54 -0700 • Engine revision 06afdfe54e • Dart version 2.0.0-dev.54.0.flutter-46ab040e58 [✗] Android toolchain - develop for Android devices ✗ ANDROID_HOME = /Users/tarikyilmaz/External/tools/android but Android SDK not found at this location. [✓] iOS toolchain - develop for iOS devices (Xcode 9.3) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.3, Build version 9E145 • ios-deploy 1.9.2 • CocoaPods version 1.5.0 [✗] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.io/setup/#android-setup for detailed instructions). [✓] IntelliJ IDEA Ultimate Edition (version 2018.1.3) • IntelliJ at /Users/tarikyilmaz/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app • Flutter plugin version 24.1.2 • Dart plugin version 181.4668.60 [✓] Connected devices (2 available) • Tarık’s iPod touch • a2cb22d1cb0f32cfad68a96a283368ff7ec805e9 • ios • iOS 11.0.3 • iPhone 6s • 2C599B2B-8842-4165-9932-4D44CE278EEC • ios • iOS 11.3 (simulator) ! Doctor found issues in 2 categories."><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel master, v0.4.4-pre.8, on Mac OS X 10.13.4 17E202, locale en-US) • Flutter version 0.4.4-pre.8 at /Users/tarikyilmaz/External/mobile/flutter • Framework revision f9bb4289e9 (2 days ago), 2018-05-11 21:44:54 -0700 • Engine revision 06afdfe54e • Dart version 2.0.0-dev.54.0.flutter-46ab040e58 [✗] Android toolchain - develop for Android devices ✗ ANDROID_HOME = /Users/tarikyilmaz/External/tools/android but Android SDK not found at this location. [✓] iOS toolchain - develop for iOS devices (Xcode 9.3) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.3, Build version 9E145 • ios-deploy 1.9.2 • CocoaPods version 1.5.0 [✗] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.io/setup/#android-setup for detailed instructions). [✓] IntelliJ IDEA Ultimate Edition (version 2018.1.3) • IntelliJ at /Users/tarikyilmaz/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app • Flutter plugin version 24.1.2 • Dart plugin version 181.4668.60 [✓] Connected devices (2 available) • Tarık’s iPod touch • a2cb22d1cb0f32cfad68a96a283368ff7ec805e9 • ios • iOS 11.0.3 • iPhone 6s • 2C599B2B-8842-4165-9932-4D44CE278EEC • ios • iOS 11.3 (simulator) ! Doctor found issues in 2 categories. </code></pre></div>
<h2 dir="auto">Steps to Reproduce on Windows 10 64 bit</h2> <ol dir="auto"> <li>flutter upgrade (the previous version was beta 0.6.0</li> <li>Upgrade fails with errors and unable to run any commands</li> </ol> <p dir="auto">##Error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Checking Dart SDK version... Downloading Dart SDK from Flutter engine af42b6dc95bd9f719e43c4e9f29a00640f0f0bba... Unzipping Dart SDK... Building flutter tool... Running pub upgrade... The system cannot execute the specified program. Error Unable to 'pub upgrade' flutter tool. Retrying in five seconds..."><pre class="notranslate"><code class="notranslate">Checking Dart SDK version... Downloading Dart SDK from Flutter engine af42b6dc95bd9f719e43c4e9f29a00640f0f0bba... Unzipping Dart SDK... Building flutter tool... Running pub upgrade... The system cannot execute the specified program. Error Unable to 'pub upgrade' flutter tool. Retrying in five seconds... </code></pre></div> <h2 dir="auto">Logs</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Not able to run logs"><pre class="notranslate"><code class="notranslate">Not able to run logs </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="not able to run flutter doctor"><pre class="notranslate"><code class="notranslate">not able to run flutter doctor </code></pre></div>
0
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">Angular API reference states that there is only a <code class="notranslate">required</code> ValidatorFn in the class <code class="notranslate">Validators</code> but source code defines required, requiredTrue, compose, composeAsync, email and null.</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">API reference reflects the Validators defined.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto">Compare Angular API reference and Validators class source.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">Fixing an error in documentation.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <p dir="auto">N/A</p> <ul dir="auto"> <li><strong>Angular version:</strong> 4.0.0</li> </ul> <ul dir="auto"> <li><strong>Browser:</strong> N/A</li> </ul> <ul dir="auto"> <li><strong>Language:</strong> all</li> </ul> <p dir="auto">This can be considered a bug report for the Angular documentation.</p>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> Reactive forms do not support binding multiple input components to one formControl instance</p> <p dir="auto"><strong>Expected behavior</strong><br> The opposite</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> Duplicate input with <code class="notranslate">formControlName</code> in <a href="https://www.google.cz/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;cad=rja&amp;uact=8&amp;ved=0ahUKEwjkztrc0ozSAhWDzxQKHaoSAMIQFggbMAA&amp;url=https%3A%2F%2Fangular.io%2Fresources%2Flive-examples%2Freactive-forms%2Fts%2Ffinal.eplnkr.html&amp;usg=AFQjCNEvfokCZ2Ca3VW3h3LibNGuxIknwA" rel="nofollow">reactive forms demo</a><br> Form inputs are not in sync after change</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> Combination of slider and input field</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> OSX, VSCode</p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.X</li> </ul> <ul dir="auto"> <li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</li> </ul> <ul dir="auto"> <li> <p dir="auto"><strong>Language:</strong> [all]</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =</p> </li> </ul>
0
<p dir="auto">My company uses a proxy with SSL inspection, i cant find a way to set allowed trusted certificates.</p> <p dir="auto">Cheers</p>
<p dir="auto">I'm using vs code behind a proxy with a self-signed certificate, when i try to install plugins and typing "ext install ", it shows an error "unable to verify the first certificate".</p>
1
<p dir="auto">With pandas version 0.12:<br> In [3]: pandas.version.version<br> Out[3]: '0.12.0'</p> <h2 dir="auto">Code to reproduce:</h2> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import collections import pandas as pd import numpy as np cols = map(str, np.unique(np.random.randint(0, 1000000, 200))) index = map(str, np.unique(np.random.randint(0, 1000000, 5000))) df = pd.DataFrame(np.random.randint(0,5,(len(index), len(cols))), index=index, columns=cols) types = [] for _ in xrange(1000): subcols = np.random.choice(cols, 10) subindex = np.random.choice(index, 400) t = df.loc[subindex, subcols] if type(t[subcols[0]]) == pd.core.series.Series: types.append('Series') elif type(t[subcols[0]]) == pd.core.frame.DataFrame: types.append('Frame') else: raise Exception() print collections.Counter(types)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">collections</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">cols</span> <span class="pl-c1">=</span> <span class="pl-en">map</span>(<span class="pl-s1">str</span>, <span class="pl-s1">np</span>.<span class="pl-en">unique</span>(<span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randint</span>(<span class="pl-c1">0</span>, <span class="pl-c1">1000000</span>, <span class="pl-c1">200</span>))) <span class="pl-s1">index</span> <span class="pl-c1">=</span> <span class="pl-en">map</span>(<span class="pl-s1">str</span>, <span class="pl-s1">np</span>.<span class="pl-en">unique</span>(<span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randint</span>(<span class="pl-c1">0</span>, <span class="pl-c1">1000000</span>, <span class="pl-c1">5000</span>))) <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randint</span>(<span class="pl-c1">0</span>,<span class="pl-c1">5</span>,(<span class="pl-en">len</span>(<span class="pl-s1">index</span>), <span class="pl-en">len</span>(<span class="pl-s1">cols</span>))), <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">index</span>, <span class="pl-s1">columns</span><span class="pl-c1">=</span><span class="pl-s1">cols</span>) <span class="pl-s1">types</span> <span class="pl-c1">=</span> [] <span class="pl-k">for</span> <span class="pl-s1">_</span> <span class="pl-c1">in</span> <span class="pl-en">xrange</span>(<span class="pl-c1">1000</span>): <span class="pl-s1">subcols</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">choice</span>(<span class="pl-s1">cols</span>, <span class="pl-c1">10</span>) <span class="pl-s1">subindex</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">choice</span>(<span class="pl-s1">index</span>, <span class="pl-c1">400</span>) <span class="pl-s1">t</span> <span class="pl-c1">=</span> <span class="pl-s1">df</span>.<span class="pl-s1">loc</span>[<span class="pl-s1">subindex</span>, <span class="pl-s1">subcols</span>] <span class="pl-k">if</span> <span class="pl-en">type</span>(<span class="pl-s1">t</span>[<span class="pl-s1">subcols</span>[<span class="pl-c1">0</span>]]) <span class="pl-c1">==</span> <span class="pl-s1">pd</span>.<span class="pl-s1">core</span>.<span class="pl-s1">series</span>.<span class="pl-v">Series</span>: <span class="pl-s1">types</span>.<span class="pl-en">append</span>(<span class="pl-s">'Series'</span>) <span class="pl-k">elif</span> <span class="pl-en">type</span>(<span class="pl-s1">t</span>[<span class="pl-s1">subcols</span>[<span class="pl-c1">0</span>]]) <span class="pl-c1">==</span> <span class="pl-s1">pd</span>.<span class="pl-s1">core</span>.<span class="pl-s1">frame</span>.<span class="pl-v">DataFrame</span>: <span class="pl-s1">types</span>.<span class="pl-en">append</span>(<span class="pl-s">'Frame'</span>) <span class="pl-k">else</span>: <span class="pl-k">raise</span> <span class="pl-v">Exception</span>() <span class="pl-k">print</span> <span class="pl-s1">collections</span>.<span class="pl-v">Counter</span>(<span class="pl-s1">types</span>)</pre></div> <hr> <p dir="auto">About 20% of the time the result is a DataFrame and the other 80% is a Series</p>
<p dir="auto">I don't <em>think</em> there is a way to get the nlargest elements in a DataFrame without sorting.</p> <p dir="auto">In ordinary python you'd use heapq's nlargest (and we can hack a bit to use it for a DataFrame):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [10]: df Out[10]: IP Agent Count 0 74.86.158.106 Mozilla/5.0+(compatible; UptimeRobot/2.0; http... 369 1 203.81.107.103 Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20... 388 2 173.199.120.155 Mozilla/5.0 (compatible; AhrefsBot/4.0; +http:... 417 3 124.43.84.242 Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.3... 448 4 112.135.196.223 Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.3... 454 5 124.43.155.138 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) G... 461 6 124.43.104.198 Mozilla/5.0 (Windows NT 5.1; rv:21.0) Gecko/20... 467 In [11]: df.sort('Count', ascending=False).head(3) Out[11]: IP Agent Count 6 124.43.104.198 Mozilla/5.0 (Windows NT 5.1; rv:21.0) Gecko/20... 467 5 124.43.155.138 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) G... 461 4 112.135.196.223 Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.3... 454"><pre class="notranslate"><code class="notranslate">In [10]: df Out[10]: IP Agent Count 0 74.86.158.106 Mozilla/5.0+(compatible; UptimeRobot/2.0; http... 369 1 203.81.107.103 Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20... 388 2 173.199.120.155 Mozilla/5.0 (compatible; AhrefsBot/4.0; +http:... 417 3 124.43.84.242 Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.3... 448 4 112.135.196.223 Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.3... 454 5 124.43.155.138 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) G... 461 6 124.43.104.198 Mozilla/5.0 (Windows NT 5.1; rv:21.0) Gecko/20... 467 In [11]: df.sort('Count', ascending=False).head(3) Out[11]: IP Agent Count 6 124.43.104.198 Mozilla/5.0 (Windows NT 5.1; rv:21.0) Gecko/20... 467 5 124.43.155.138 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) G... 461 4 112.135.196.223 Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.3... 454 </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [21]: from heapq import nlargest In [22]: top_3 = nlargest(3, df.iterrows(), key=lambda x: x[1]['Count']) In [23]: pd.DataFrame.from_items(top_3).T Out[23]: IP Agent Count 6 124.43.104.198 Mozilla/5.0 (Windows NT 5.1; rv:21.0) Gecko/20... 467 5 124.43.155.138 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) G... 461 4 112.135.196.223 Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.3... 454"><pre class="notranslate"><code class="notranslate">In [21]: from heapq import nlargest In [22]: top_3 = nlargest(3, df.iterrows(), key=lambda x: x[1]['Count']) In [23]: pd.DataFrame.from_items(top_3).T Out[23]: IP Agent Count 6 124.43.104.198 Mozilla/5.0 (Windows NT 5.1; rv:21.0) Gecko/20... 467 5 124.43.155.138 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) G... 461 4 112.135.196.223 Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.3... 454 </code></pre></div> <p dir="auto">This is much slower than sorting, presumbly from the overhead, I thought I'd throw this as a feature idea anyway.</p> <p dir="auto">see <a href="http://stackoverflow.com/a/17194717/1240268" rel="nofollow">http://stackoverflow.com/a/17194717/1240268</a></p>
0
<p dir="auto"><code class="notranslate">x.numpy()</code></p> <p dir="auto">clearly means I want to convert something to numpy, which is always on the CPU. It is redundant to have to say .cpu().numpy(). The conversion should be automatic rather than throwing an exception.</p> <p dir="auto">In my specific case I have set default tensor type to CUDA because that is what I am using by default - and because it makes it really easy to switch everything to CPU in one line of code without cluttering up the rest of it with passing a device around. However when I call third party software they create a tensor without an explicit type; then try to numpy() it expecting it to be CPU based. I have suggested they add a .cpu() but would be better to fix in pytorch.</p>
<p dir="auto">Both following native tensor factory function entries generate same <code class="notranslate">descriptor</code> (<code class="notranslate">"bernoulli-5"</code>):</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- func: bernoulli(IntList size, Tensor p, *, TensorOptions options={}) -&gt; Tensor variants: function - func: bernoulli(IntList size, double p, *, TensorOptions options={}) -&gt; Tensor variants: function"><pre class="notranslate">- <span class="pl-ent">func</span>: <span class="pl-s">bernoulli(IntList size, Tensor p, *, TensorOptions options={}) -&gt; Tensor</span> <span class="pl-ent">variants</span>: <span class="pl-s">function</span> - <span class="pl-ent">func</span>: <span class="pl-s">bernoulli(IntList size, double p, *, TensorOptions options={}) -&gt; Tensor</span> <span class="pl-ent">variants</span>: <span class="pl-s">function</span></pre></div> <p dir="auto">The corresponding <code class="notranslate">decl</code>s are</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{'abstract': False, 'api_name': 'bernoulli', 'args': ['size', 'p', 'options'], 'arguments': [{'dynamic_type': 'IntList', 'is_nullable': False, 'name': 'size', 'simple_type': 'IntList', 'type': 'IntList'}, {'dynamic_type': 'Tensor', 'is_nullable': False, 'name': 'p', 'simple_type': 'Tensor', 'type': 'const Tensor &amp;'}, {'default': 'static_cast&lt;int64_t&gt;(at::kFloat)', 'name': 'dtype', 'simple_type': 'int64_t'}, {'default': '{static_cast&lt;int64_t&gt;(at::Device::Type::CPU), -1}', 'name': 'device', 'simple_type': 'IntList'}, {'default': 'static_cast&lt;int64_t&gt;(at::kStrided)', 'name': 'layout', 'simple_type': 'int64_t'}], 'base_name': 'bernoulli', 'deprecated': False, 'device_guard': True, 'formals': ['IntList size', 'const Tensor &amp; p', 'const TensorOptions &amp; options'], 'has_tensor_options': True, 'inplace': False, 'method_of': ['Type', 'namespace'], 'method_prefix_derived': '', 'mode': 'native', 'name': 'bernoulli', 'return_type': 'Tensor', 'returns': [{'dynamic_type': 'Tensor', 'name': 'result', 'type': 'Tensor'}], 'type_method_args': ['size', 'p', 'options'], 'type_method_formals': ['IntList size', 'const Tensor &amp; p', 'const TensorOptions &amp; options'], 'with_gil': False}"><pre class="notranslate">{<span class="pl-s">'abstract'</span>: <span class="pl-c1">False</span>, <span class="pl-s">'api_name'</span>: <span class="pl-s">'bernoulli'</span>, <span class="pl-s">'args'</span>: [<span class="pl-s">'size'</span>, <span class="pl-s">'p'</span>, <span class="pl-s">'options'</span>], <span class="pl-s">'arguments'</span>: [{<span class="pl-s">'dynamic_type'</span>: <span class="pl-s">'IntList'</span>, <span class="pl-s">'is_nullable'</span>: <span class="pl-c1">False</span>, <span class="pl-s">'name'</span>: <span class="pl-s">'size'</span>, <span class="pl-s">'simple_type'</span>: <span class="pl-s">'IntList'</span>, <span class="pl-s">'type'</span>: <span class="pl-s">'IntList'</span>}, {<span class="pl-s">'dynamic_type'</span>: <span class="pl-s">'Tensor'</span>, <span class="pl-s">'is_nullable'</span>: <span class="pl-c1">False</span>, <span class="pl-s">'name'</span>: <span class="pl-s">'p'</span>, <span class="pl-s">'simple_type'</span>: <span class="pl-s">'Tensor'</span>, <span class="pl-s">'type'</span>: <span class="pl-s">'const Tensor &amp;'</span>}, {<span class="pl-s">'default'</span>: <span class="pl-s">'static_cast&lt;int64_t&gt;(at::kFloat)'</span>, <span class="pl-s">'name'</span>: <span class="pl-s">'dtype'</span>, <span class="pl-s">'simple_type'</span>: <span class="pl-s">'int64_t'</span>}, {<span class="pl-s">'default'</span>: <span class="pl-s">'{static_cast&lt;int64_t&gt;(at::Device::Type::CPU), -1}'</span>, <span class="pl-s">'name'</span>: <span class="pl-s">'device'</span>, <span class="pl-s">'simple_type'</span>: <span class="pl-s">'IntList'</span>}, {<span class="pl-s">'default'</span>: <span class="pl-s">'static_cast&lt;int64_t&gt;(at::kStrided)'</span>, <span class="pl-s">'name'</span>: <span class="pl-s">'layout'</span>, <span class="pl-s">'simple_type'</span>: <span class="pl-s">'int64_t'</span>}], <span class="pl-s">'base_name'</span>: <span class="pl-s">'bernoulli'</span>, <span class="pl-s">'deprecated'</span>: <span class="pl-c1">False</span>, <span class="pl-s">'device_guard'</span>: <span class="pl-c1">True</span>, <span class="pl-s">'formals'</span>: [<span class="pl-s">'IntList size'</span>, <span class="pl-s">'const Tensor &amp; p'</span>, <span class="pl-s">'const TensorOptions &amp; options'</span>], <span class="pl-s">'has_tensor_options'</span>: <span class="pl-c1">True</span>, <span class="pl-s">'inplace'</span>: <span class="pl-c1">False</span>, <span class="pl-s">'method_of'</span>: [<span class="pl-s">'Type'</span>, <span class="pl-s">'namespace'</span>], <span class="pl-s">'method_prefix_derived'</span>: <span class="pl-s">''</span>, <span class="pl-s">'mode'</span>: <span class="pl-s">'native'</span>, <span class="pl-s">'name'</span>: <span class="pl-s">'bernoulli'</span>, <span class="pl-s">'return_type'</span>: <span class="pl-s">'Tensor'</span>, <span class="pl-s">'returns'</span>: [{<span class="pl-s">'dynamic_type'</span>: <span class="pl-s">'Tensor'</span>, <span class="pl-s">'name'</span>: <span class="pl-s">'result'</span>, <span class="pl-s">'type'</span>: <span class="pl-s">'Tensor'</span>}], <span class="pl-s">'type_method_args'</span>: [<span class="pl-s">'size'</span>, <span class="pl-s">'p'</span>, <span class="pl-s">'options'</span>], <span class="pl-s">'type_method_formals'</span>: [<span class="pl-s">'IntList size'</span>, <span class="pl-s">'const Tensor &amp; p'</span>, <span class="pl-s">'const TensorOptions &amp; options'</span>], <span class="pl-s">'with_gil'</span>: <span class="pl-c1">False</span>}</pre></div> <p dir="auto">and</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{'abstract': False, 'api_name': 'bernoulli', 'args': ['size', 'p', 'options'], 'arguments': [{'dynamic_type': 'IntList', 'is_nullable': False, 'name': 'size', 'simple_type': 'IntList', 'type': 'IntList'}, {'dynamic_type': 'double', 'is_nullable': False, 'name': 'p', 'simple_type': 'double', 'type': 'double'}, {'default': 'static_cast&lt;int64_t&gt;(at::kFloat)', 'name': 'dtype', 'simple_type': 'int64_t'}, {'default': '{static_cast&lt;int64_t&gt;(at::Device::Type::CPU), -1}', 'name': 'device', 'simple_type': 'IntList'}, {'default': 'static_cast&lt;int64_t&gt;(at::kStrided)', 'name': 'layout', 'simple_type': 'int64_t'}], 'base_name': 'bernoulli', 'deprecated': False, 'device_guard': True, 'formals': ['IntList size', 'double p', 'const TensorOptions &amp; options'], 'has_tensor_options': True, 'inplace': False, 'method_of': ['Type', 'namespace'], 'method_prefix_derived': '', 'mode': 'native', 'name': 'bernoulli', 'return_type': 'Tensor', 'returns': [{'dynamic_type': 'Tensor', 'name': 'result', 'type': 'Tensor'}], 'type_method_args': ['size', 'p', 'options'], 'type_method_formals': ['IntList size', 'double p', 'const TensorOptions &amp; options'], 'with_gil': False}"><pre class="notranslate">{<span class="pl-s">'abstract'</span>: <span class="pl-c1">False</span>, <span class="pl-s">'api_name'</span>: <span class="pl-s">'bernoulli'</span>, <span class="pl-s">'args'</span>: [<span class="pl-s">'size'</span>, <span class="pl-s">'p'</span>, <span class="pl-s">'options'</span>], <span class="pl-s">'arguments'</span>: [{<span class="pl-s">'dynamic_type'</span>: <span class="pl-s">'IntList'</span>, <span class="pl-s">'is_nullable'</span>: <span class="pl-c1">False</span>, <span class="pl-s">'name'</span>: <span class="pl-s">'size'</span>, <span class="pl-s">'simple_type'</span>: <span class="pl-s">'IntList'</span>, <span class="pl-s">'type'</span>: <span class="pl-s">'IntList'</span>}, {<span class="pl-s">'dynamic_type'</span>: <span class="pl-s">'double'</span>, <span class="pl-s">'is_nullable'</span>: <span class="pl-c1">False</span>, <span class="pl-s">'name'</span>: <span class="pl-s">'p'</span>, <span class="pl-s">'simple_type'</span>: <span class="pl-s">'double'</span>, <span class="pl-s">'type'</span>: <span class="pl-s">'double'</span>}, {<span class="pl-s">'default'</span>: <span class="pl-s">'static_cast&lt;int64_t&gt;(at::kFloat)'</span>, <span class="pl-s">'name'</span>: <span class="pl-s">'dtype'</span>, <span class="pl-s">'simple_type'</span>: <span class="pl-s">'int64_t'</span>}, {<span class="pl-s">'default'</span>: <span class="pl-s">'{static_cast&lt;int64_t&gt;(at::Device::Type::CPU), -1}'</span>, <span class="pl-s">'name'</span>: <span class="pl-s">'device'</span>, <span class="pl-s">'simple_type'</span>: <span class="pl-s">'IntList'</span>}, {<span class="pl-s">'default'</span>: <span class="pl-s">'static_cast&lt;int64_t&gt;(at::kStrided)'</span>, <span class="pl-s">'name'</span>: <span class="pl-s">'layout'</span>, <span class="pl-s">'simple_type'</span>: <span class="pl-s">'int64_t'</span>}], <span class="pl-s">'base_name'</span>: <span class="pl-s">'bernoulli'</span>, <span class="pl-s">'deprecated'</span>: <span class="pl-c1">False</span>, <span class="pl-s">'device_guard'</span>: <span class="pl-c1">True</span>, <span class="pl-s">'formals'</span>: [<span class="pl-s">'IntList size'</span>, <span class="pl-s">'double p'</span>, <span class="pl-s">'const TensorOptions &amp; options'</span>], <span class="pl-s">'has_tensor_options'</span>: <span class="pl-c1">True</span>, <span class="pl-s">'inplace'</span>: <span class="pl-c1">False</span>, <span class="pl-s">'method_of'</span>: [<span class="pl-s">'Type'</span>, <span class="pl-s">'namespace'</span>], <span class="pl-s">'method_prefix_derived'</span>: <span class="pl-s">''</span>, <span class="pl-s">'mode'</span>: <span class="pl-s">'native'</span>, <span class="pl-s">'name'</span>: <span class="pl-s">'bernoulli'</span>, <span class="pl-s">'return_type'</span>: <span class="pl-s">'Tensor'</span>, <span class="pl-s">'returns'</span>: [{<span class="pl-s">'dynamic_type'</span>: <span class="pl-s">'Tensor'</span>, <span class="pl-s">'name'</span>: <span class="pl-s">'result'</span>, <span class="pl-s">'type'</span>: <span class="pl-s">'Tensor'</span>}], <span class="pl-s">'type_method_args'</span>: [<span class="pl-s">'size'</span>, <span class="pl-s">'p'</span>, <span class="pl-s">'options'</span>], <span class="pl-s">'type_method_formals'</span>: [<span class="pl-s">'IntList size'</span>, <span class="pl-s">'double p'</span>, <span class="pl-s">'const TensorOptions &amp; options'</span>], <span class="pl-s">'with_gil'</span>: <span class="pl-c1">False</span>}</pre></div>
0
<p dir="auto">Issue Id: <b>5ff55400-6d9e-cf2f-f43a-b414cfe1e50b</b><br><br><em>Versions</em> <br>- <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/vscode/commit/043a4e760131b3bedc328b748a604494240ed0e5/hovercard" href="https://github.com/microsoft/vscode/commit/043a4e760131b3bedc328b748a604494240ed0e5"><tt>043a4e7</tt></a><br>- <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/vscode/commit/6c2d51a4b7b81753a3a4c46f9de9a15179e20304/hovercard" href="https://github.com/microsoft/vscode/commit/6c2d51a4b7b81753a3a4c46f9de9a15179e20304"><tt>6c2d51a</tt></a><br>- <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/vscode/commit/a5a983da6c98263aa603c2ca27b1a7297c7d9e1f/hovercard" href="https://github.com/microsoft/vscode/commit/a5a983da6c98263aa603c2ca27b1a7297c7d9e1f"><tt>a5a983d</tt></a><br>- <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/vscode/commit/b0b6af5754c6cae2574a540a0eb4f5ebfceec1ed/hovercard" href="https://github.com/microsoft/vscode/commit/b0b6af5754c6cae2574a540a0eb4f5ebfceec1ed"><tt>b0b6af5</tt></a><br><em>Stack</em> <br>TypeError: Cannot read property 'className' of null<br>[/vs/base/browser/dom.ts#L65:20 (_findClassName)](<a href="https://github.com/microsoft/vscode/blob/043a4e760131b3bedc328b748a604494240ed0e5/src/vs/base/browser/dom.ts#L65:20">https://github.com/microsoft/vscode/blob/043a4e760131b3bedc328b748a604494240ed0e5/src/vs/base/browser/dom.ts#L65:20</a> %28_findClassName%29)<br>[/vs/base/browser/dom.ts#L172:1 (toggleClass)](<a href="https://github.com/microsoft/vscode/blob/043a4e760131b3bedc328b748a604494240ed0e5/src/vs/base/browser/dom.ts#L172:1">https://github.com/microsoft/vscode/blob/043a4e760131b3bedc328b748a604494240ed0e5/src/vs/base/browser/dom.ts#L172:1</a> %28toggleClass%29)<br>[/vs/editor/contrib/suggest/browser/suggestWidget.ts#L650:2 (SuggestWidget.setState)](<a href="https://github.com/microsoft/vscode/blob/043a4e760131b3bedc328b748a604494240ed0e5/src/vs/editor/contrib/suggest/browser/suggestWidget.ts#L650:2">https://github.com/microsoft/vscode/blob/043a4e760131b3bedc328b748a604494240ed0e5/src/vs/editor/contrib/suggest/browser/suggestWidget.ts#L650:2</a> %28SuggestWidget.setState%29)<br>[/vs/editor/contrib/suggest/browser/suggestWidget.ts#L576:9 (SuggestWidget.onEditorBlur)](<a href="https://github.com/microsoft/vscode/blob/043a4e760131b3bedc328b748a604494240ed0e5/src/vs/editor/contrib/suggest/browser/suggestWidget.ts#L576:9">https://github.com/microsoft/vscode/blob/043a4e760131b3bedc328b748a604494240ed0e5/src/vs/editor/contrib/suggest/browser/suggestWidget.ts#L576:9</a> %28SuggestWidget.onEditorBlur%29)<br>[/vs/base/common/winjs.base.raw.js#L1782:0 (onComplete)](<a href="https://github.com/microsoft/vscode/blob/043a4e760131b3bedc328b748a604494240ed0e5/src/vs/base/common/winjs.base.raw.js#L1782:0">https://github.com/microsoft/vscode/blob/043a4e760131b3bedc328b748a604494240ed0e5/src/vs/base/common/winjs.base.raw.js#L1782:0</a> %28onComplete%29)<br>[/vs/base/common/winjs.base.raw.js#L1448:0 (call)](<a href="https://github.com/microsoft/vscode/blob/043a4e760131b3bedc328b748a604494240ed0e5/src/vs/base/common/winjs.base.raw.js#L1448:0">https://github.com/microsoft/vscode/blob/043a4e760131b3bedc328b748a604494240ed0e5/src/vs/base/common/winjs.base.raw.js#L1448:0</a> %28call%29)<br>[/vs/base/common/winjs.base.raw.js#L1127:0 (_notify)](<a href="https://github.com/microsoft/vscode/blob/043a4e760131b3bedc328b748a604494240ed0e5/src/vs/base/common/winjs.base.raw.js#L1127:0">https://github.com/microsoft/vscode/blob/043a4e760131b3bedc328b748a604494240ed0e5/src/vs/base/common/winjs.base.raw.js#L1127:0</a> %28_notify%29)<br>[/vs/base/common/winjs.base.raw.js#L1343:0 (enter)](<a href="https://github.com/microsoft/vscode/blob/043a4e760131b3bedc328b748a604494240ed0e5/src/vs/base/common/winjs.base.raw.js#L1343:0">https://github.com/microsoft/vscode/blob/043a4e760131b3bedc328b748a604494240ed0e5/src/vs/base/common/winjs.base.raw.js#L1343:0</a> %28enter%29)<br>[/vs/base/common/winjs.base.raw.js#L1311:0 (_run)](<a href="https://github.com/microsoft/vscode/blob/043a4e760131b3bedc328b748a604494240ed0e5/src/vs/base/common/winjs.base.raw.js#L1311:0">https://github.com/microsoft/vscode/blob/043a4e760131b3bedc328b748a604494240ed0e5/src/vs/base/common/winjs.base.raw.js#L1311:0</a> %28_run%29)<br></p>
<p dir="auto">Today when you open VS Code on wrong casing workspace path, all file events stop to work. We should detect this case and either fix it or print a warning.</p>
0
<h3 dir="auto">Problem description</h3> <p dir="auto">The v1 documentation <a href="https://material-ui-1dab0.firebaseapp.com/customization/overrides/" rel="nofollow">here</a> states that, "The CSS injected by Material-UI to style a component has the lowest specificity possible as the is injected at the top of the ". However, I am observing locally that the styles are being injected at the <em>bottom</em> of . I do not have any custom configuration set for JSS, so I don't believe anything in my codebase would be causing the difference in behavior.</p> <p dir="auto">I'm trying to follow the JSS docs to customize the insertion point via a comment, but everything I do within <code class="notranslate">jss.setup()</code> seems to be overriden with a MUIThemProvider that uses<code class="notranslate">muiThemeProviderFactory.js</code>, which I don't have direct access to.</p> <p dir="auto">The docs examples use <code class="notranslate">getContext</code>, but that seems like a <em>lot</em> of extra boilerplate just to set a CSS insertion point. Does anyone have any advice on how I can get the JSS styles to actually render at the bottom of the <code class="notranslate">&lt;head /&gt;</code> element?</p> <p dir="auto">I'm reporting this here instead of SO, because I believe that the documentation is incorrect, and could use some examples for what I would expect to be a common use case for MUI consumers that don't also rely on JSS as their primary styling solution.</p> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: 1.0.0-beta.6</li> <li>React: 15.6.1</li> <li>Browser: Chrome latest</li> </ul>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Positioning of the IconButton as an InputAdornment should be the same on IE11 as it is on other browsers.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">The IconButton is rendered too low and further to the right (for a right adornment).</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>An example of this is on the material-ui-pickers doc site (<a href="https://material-ui-pic.firebaseapp.com/" rel="nofollow">https://material-ui-pic.firebaseapp.com/</a>)</li> <li>Source to produce this is here: <a href="https://github.com/dmtrKovalenko/material-ui-pickers/blob/master/lib/src/_shared/DateTextField.jsx">https://github.com/dmtrKovalenko/material-ui-pickers/blob/master/lib/src/_shared/DateTextField.jsx</a></li> </ol> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1242475/36368662-3c41507e-1550-11e8-8930-8e2102d8a4f2.png"><img src="https://user-images.githubusercontent.com/1242475/36368662-3c41507e-1550-11e8-8930-8e2102d8a4f2.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">The horizontal positioning issue can also be seen on the example on material-ui.com. However, the vertical positioning seems to come from using an IconButton.</p> <p dir="auto">The horizontal issue is because width: 100% is set on the input element. Removing this and setting flex-grow: 1 fixes this.</p> <p dir="auto">The vertical issue can be fixed by setting a fixed height of 48px on the input adornment.</p> <h2 dir="auto">Context</h2> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.33</td> </tr> <tr> <td>React</td> <td>16.2.0</td> </tr> <tr> <td>browser</td> <td>IE11</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
0
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/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.1</p> <h3 dir="auto">What operating system are you using?</h3> <p dir="auto">Windows</p> <h3 dir="auto">Operating System Version</h3> <p dir="auto">Windows 10 Pro Version 2004</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">11.3.0</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">navigator.bluetooth.requestDevice({acceptAllDevices: true})should scan the BLE devices and returns it.<br> But it worked in MacOS.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">navigator.bluetooth.requestDevice({acceptAllDevices: true}) is not returning anything and keeps scanning.<br> It is not working in windows only and worked in MacOS.</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>
<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">12.0.1</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">Version: Home 2004 / OS build: 19041.867</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">11.3.0</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto"><code class="notranslate">navigator.bluetooth.requestDevice({acceptAllDevices: true});</code> in a renderer JS file should trigger the <code class="notranslate">select-bluetooth-device</code> event registered in an electron/main JS file.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">Does not trigger the event.</p> <h3 dir="auto">Testcase Gist URL</h3> <p dir="auto"><a href="https://gist.github.com/910403defe0696032c1f5ccb1a9b1d7e">https://gist.github.com/910403defe0696032c1f5ccb1a9b1d7e</a></p>
1
<h4 dir="auto">Description</h4> <p dir="auto">The gradient of tsne blows up on Mac platform, whereas on Linux it works fine.</p> <h4 dir="auto">Steps/Code to Reproduce</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sklearn import manifold, datasets data = datasets.load_digits() X = data['data'] n_components = 2 tsne = manifold.TSNE(n_components=n_components, init='pca', perplexity=30, random_state=0, verbose=0) Y = tsne.fit_transform(X)"><pre class="notranslate"><code class="notranslate">from sklearn import manifold, datasets data = datasets.load_digits() X = data['data'] n_components = 2 tsne = manifold.TSNE(n_components=n_components, init='pca', perplexity=30, random_state=0, verbose=0) Y = tsne.fit_transform(X) </code></pre></div> <h4 dir="auto">Expected Results</h4> <p dir="auto">On Linux it's like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[t-SNE] Computing pairwise distances... [t-SNE] Computing 25 nearest neighbors... [t-SNE] Computed conditional probabilities for sample 1000 / 1797 [t-SNE] Computed conditional probabilities for sample 1797 / 1797 [t-SNE] Mean sigma: 6.575750 [t-SNE] Iteration 25: error = 1.5046589, gradient norm = 0.0049618 [t-SNE] Iteration 50: error = 1.3538314, gradient norm = 0.0032258 [t-SNE] Iteration 75: error = 1.2344432, gradient norm = 0.0039027 [t-SNE] Iteration 100: error = 1.1257976, gradient norm = 0.0020792 [t-SNE] KL divergence after 100 iterations with early exaggeration: 1.125798 [t-SNE] Iteration 125: error = 1.0774719, gradient norm = 0.0021276 [t-SNE] Iteration 150: error = 1.0245292, gradient norm = 0.0012681 [t-SNE] Iteration 175: error = 0.9789007, gradient norm = 0.0012602 [t-SNE] Iteration 200: error = 0.9449817, gradient norm = 0.0015506 [t-SNE] Iteration 225: error = 0.9181468, gradient norm = 0.0011456 [t-SNE] Iteration 250: error = 0.8979204, gradient norm = 0.0008980 [t-SNE] Iteration 250: gradient norm 0.000898. Finished. [t-SNE] Error after 250 iterations: 0.897920"><pre class="notranslate"><code class="notranslate">[t-SNE] Computing pairwise distances... [t-SNE] Computing 25 nearest neighbors... [t-SNE] Computed conditional probabilities for sample 1000 / 1797 [t-SNE] Computed conditional probabilities for sample 1797 / 1797 [t-SNE] Mean sigma: 6.575750 [t-SNE] Iteration 25: error = 1.5046589, gradient norm = 0.0049618 [t-SNE] Iteration 50: error = 1.3538314, gradient norm = 0.0032258 [t-SNE] Iteration 75: error = 1.2344432, gradient norm = 0.0039027 [t-SNE] Iteration 100: error = 1.1257976, gradient norm = 0.0020792 [t-SNE] KL divergence after 100 iterations with early exaggeration: 1.125798 [t-SNE] Iteration 125: error = 1.0774719, gradient norm = 0.0021276 [t-SNE] Iteration 150: error = 1.0245292, gradient norm = 0.0012681 [t-SNE] Iteration 175: error = 0.9789007, gradient norm = 0.0012602 [t-SNE] Iteration 200: error = 0.9449817, gradient norm = 0.0015506 [t-SNE] Iteration 225: error = 0.9181468, gradient norm = 0.0011456 [t-SNE] Iteration 250: error = 0.8979204, gradient norm = 0.0008980 [t-SNE] Iteration 250: gradient norm 0.000898. Finished. [t-SNE] Error after 250 iterations: 0.897920 </code></pre></div> <h4 dir="auto">Actual Results</h4> <p dir="auto">However, on Mac it throws a NaN error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[t-SNE] Computing pairwise distances... [t-SNE] Computing 91 nearest neighbors... [t-SNE] Computed conditional probabilities for sample 1000 / 1797 [t-SNE] Computed conditional probabilities for sample 1797 / 1797 [t-SNE] Mean sigma: 8.121136 [t-SNE] Iteration 25: error = 2.9662576, gradient norm = 147135766419682099200.0000000 [t-SNE] Iteration 25: error difference 0.000000. Finished. --------------------------------------------------------------------------- ValueError Traceback (most recent call last) &lt;ipython-input-1-0786d974304a&gt; in &lt;module&gt;() 5 tsne = manifold.TSNE(n_components=n_components, init='pca', perplexity=30, 6 random_state=0, verbose=3) ----&gt; 7 Y = tsne.fit_transform(X) /Users/luyuwang/anaconda/lib/python2.7/site-packages/sklearn/manifold/t_sne.pyc in fit_transform(self, X, y) 894 Embedding of the training data in low-dimensional space. 895 &quot;&quot;&quot; --&gt; 896 embedding = self._fit(X) 897 self.embedding_ = embedding 898 return self.embedding_ /Users/luyuwang/anaconda/lib/python2.7/site-packages/sklearn/manifold/t_sne.pyc in _fit(self, X, skip_num_points) 792 X_embedded=X_embedded, 793 neighbors=neighbors_nn, --&gt; 794 skip_num_points=skip_num_points) 795 796 @property /Users/luyuwang/anaconda/lib/python2.7/site-packages/sklearn/manifold/t_sne.pyc in _tsne(self, P, degrees_of_freedom, n_samples, random_state, X_embedded, neighbors, skip_num_points) 856 opt_args['it'] = it + 1 857 params, kl_divergence, it = _gradient_descent(obj_func, params, --&gt; 858 **opt_args) 859 if self.verbose: 860 print(&quot;[t-SNE] KL divergence after %d iterations with early &quot; /Users/luyuwang/anaconda/lib/python2.7/site-packages/sklearn/manifold/t_sne.pyc in _gradient_descent(objective, p0, it, n_iter, objective_error, n_iter_check, n_iter_without_progress, momentum, learning_rate, min_gain, min_grad_norm, min_error_diff, verbose, args, kwargs) 387 for i in range(it, n_iter): 388 new_error, grad = objective(p, *args, **kwargs) --&gt; 389 grad_norm = linalg.norm(grad) 390 391 inc = update * grad &lt; 0.0 /Users/luyuwang/anaconda/lib/python2.7/site-packages/scipy/linalg/misc.pyc in norm(a, ord, axis, keepdims) 127 &quot;&quot;&quot; 128 # Differs from numpy only in non-finite handling and the use of blas. --&gt; 129 a = np.asarray_chkfinite(a) 130 131 # Only use optimized norms if axis and keepdims are not specified. /Users/luyuwang/anaconda/lib/python2.7/site-packages/numpy/lib/function_base.pyc in asarray_chkfinite(a, dtype, order) 1213 if a.dtype.char in typecodes['AllFloat'] and not np.isfinite(a).all(): 1214 raise ValueError( -&gt; 1215 &quot;array must not contain infs or NaNs&quot;) 1216 return a 1217 ValueError: array must not contain infs or NaNs"><pre class="notranslate"><code class="notranslate">[t-SNE] Computing pairwise distances... [t-SNE] Computing 91 nearest neighbors... [t-SNE] Computed conditional probabilities for sample 1000 / 1797 [t-SNE] Computed conditional probabilities for sample 1797 / 1797 [t-SNE] Mean sigma: 8.121136 [t-SNE] Iteration 25: error = 2.9662576, gradient norm = 147135766419682099200.0000000 [t-SNE] Iteration 25: error difference 0.000000. Finished. --------------------------------------------------------------------------- ValueError Traceback (most recent call last) &lt;ipython-input-1-0786d974304a&gt; in &lt;module&gt;() 5 tsne = manifold.TSNE(n_components=n_components, init='pca', perplexity=30, 6 random_state=0, verbose=3) ----&gt; 7 Y = tsne.fit_transform(X) /Users/luyuwang/anaconda/lib/python2.7/site-packages/sklearn/manifold/t_sne.pyc in fit_transform(self, X, y) 894 Embedding of the training data in low-dimensional space. 895 """ --&gt; 896 embedding = self._fit(X) 897 self.embedding_ = embedding 898 return self.embedding_ /Users/luyuwang/anaconda/lib/python2.7/site-packages/sklearn/manifold/t_sne.pyc in _fit(self, X, skip_num_points) 792 X_embedded=X_embedded, 793 neighbors=neighbors_nn, --&gt; 794 skip_num_points=skip_num_points) 795 796 @property /Users/luyuwang/anaconda/lib/python2.7/site-packages/sklearn/manifold/t_sne.pyc in _tsne(self, P, degrees_of_freedom, n_samples, random_state, X_embedded, neighbors, skip_num_points) 856 opt_args['it'] = it + 1 857 params, kl_divergence, it = _gradient_descent(obj_func, params, --&gt; 858 **opt_args) 859 if self.verbose: 860 print("[t-SNE] KL divergence after %d iterations with early " /Users/luyuwang/anaconda/lib/python2.7/site-packages/sklearn/manifold/t_sne.pyc in _gradient_descent(objective, p0, it, n_iter, objective_error, n_iter_check, n_iter_without_progress, momentum, learning_rate, min_gain, min_grad_norm, min_error_diff, verbose, args, kwargs) 387 for i in range(it, n_iter): 388 new_error, grad = objective(p, *args, **kwargs) --&gt; 389 grad_norm = linalg.norm(grad) 390 391 inc = update * grad &lt; 0.0 /Users/luyuwang/anaconda/lib/python2.7/site-packages/scipy/linalg/misc.pyc in norm(a, ord, axis, keepdims) 127 """ 128 # Differs from numpy only in non-finite handling and the use of blas. --&gt; 129 a = np.asarray_chkfinite(a) 130 131 # Only use optimized norms if axis and keepdims are not specified. /Users/luyuwang/anaconda/lib/python2.7/site-packages/numpy/lib/function_base.pyc in asarray_chkfinite(a, dtype, order) 1213 if a.dtype.char in typecodes['AllFloat'] and not np.isfinite(a).all(): 1214 raise ValueError( -&gt; 1215 "array must not contain infs or NaNs") 1216 return a 1217 ValueError: array must not contain infs or NaNs </code></pre></div> <h4 dir="auto">Versions</h4> <p dir="auto">Darwin-15.6.0-x86_64-i386-64bit<br> ('Python', '2.7.12 |Anaconda custom (x86_64)| (default, Jul 2 2016, 17:43:17) \n[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)]')<br> ('NumPy', '1.12.1')<br> ('SciPy', '0.19.0')<br> ('Scikit-Learn', '0.19.dev0')</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Darwin-15.0.0-x86_64-i386-64bit ('Python', '2.7.11 |Anaconda custom (x86_64)| (default, Dec 6 2015, 18:57:58) \n[GCC 4.2.1 (Apple Inc. build 5577)]') ('NumPy', '1.11.0') ('SciPy', '0.17.0') ('Scikit-Learn', '0.17.1')"><pre class="notranslate"><code class="notranslate">Darwin-15.0.0-x86_64-i386-64bit ('Python', '2.7.11 |Anaconda custom (x86_64)| (default, Dec 6 2015, 18:57:58) \n[GCC 4.2.1 (Apple Inc. build 5577)]') ('NumPy', '1.11.0') ('SciPy', '0.17.0') ('Scikit-Learn', '0.17.1') </code></pre></div> <p dir="auto">When trying to run a t-SNE</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="proj = TSNE().fit_transform(X) ValueError: array must not contain infs or NaNs"><pre class="notranslate"><code class="notranslate">proj = TSNE().fit_transform(X) ValueError: array must not contain infs or NaNs </code></pre></div> <p dir="auto">However</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="np.isfinite(X).all() # True np.isnan(X).all() # False np.isinf(X).all() # False"><pre class="notranslate"><code class="notranslate">np.isfinite(X).all() # True np.isnan(X).all() # False np.isinf(X).all() # False </code></pre></div> <p dir="auto">Full Stack Trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ValueError Traceback (most recent call last) &lt;ipython-input-16-c25f35fd042c&gt; in &lt;module&gt;() ----&gt; 1 plot(X, y) &lt;ipython-input-1-72bdb7124d13&gt; in plot(X, y) 74 75 def plot(X, y): ---&gt; 76 proj = TSNE().fit_transform(X) 77 scatter(proj, y) /Users/joelkuiper/anaconda/lib/python2.7/site-packages/sklearn/manifold/t_sne.pyc in fit_transform(self, X, y) 864 Embedding of the training data in low-dimensional space. 865 &quot;&quot;&quot; --&gt; 866 embedding = self._fit(X) 867 self.embedding_ = embedding 868 return self.embedding_ /Users/joelkuiper/anaconda/lib/python2.7/site-packages/sklearn/manifold/t_sne.pyc in _fit(self, X, skip_num_points) 775 X_embedded=X_embedded, 776 neighbors=neighbors_nn, --&gt; 777 skip_num_points=skip_num_points) 778 779 def _tsne(self, P, degrees_of_freedom, n_samples, random_state, /Users/joelkuiper/anaconda/lib/python2.7/site-packages/sklearn/manifold/t_sne.pyc in _tsne(self, P, degrees_of_freedom, n_samples, random_state, X_embedded, neighbors, skip_num_points) 830 opt_args['momentum'] = 0.8 831 opt_args['it'] = it + 1 --&gt; 832 params, error, it = _gradient_descent(obj_func, params, **opt_args) 833 if self.verbose: 834 print(&quot;[t-SNE] Error after %d iterations with early &quot; /Users/joelkuiper/anaconda/lib/python2.7/site-packages/sklearn/manifold/t_sne.pyc in _gradient_descent(objective, p0, it, n_iter, objective_error, n_iter_check, n_iter_without_progress, momentum, learning_rate, min_gain, min_grad_norm, min_error_diff, verbose, args, kwargs) 385 for i in range(it, n_iter): 386 new_error, grad = objective(p, *args, **kwargs) --&gt; 387 grad_norm = linalg.norm(grad) 388 389 inc = update * grad &gt;= 0.0 /Users/joelkuiper/anaconda/lib/python2.7/site-packages/scipy/linalg/misc.pyc in norm(a, ord, axis, keepdims) 127 &quot;&quot;&quot; 128 # Differs from numpy only in non-finite handling and the use of blas. --&gt; 129 a = np.asarray_chkfinite(a) 130 131 # Only use optimized norms if axis and keepdims are not specified. /Users/joelkuiper/anaconda/lib/python2.7/site-packages/numpy/lib/function_base.pyc in asarray_chkfinite(a, dtype, order) 1020 if a.dtype.char in typecodes['AllFloat'] and not np.isfinite(a).all(): 1021 raise ValueError( -&gt; 1022 &quot;array must not contain infs or NaNs&quot;) 1023 return a 1024 ValueError: array must not contain infs or NaNs"><pre class="notranslate"><code class="notranslate"> ValueError Traceback (most recent call last) &lt;ipython-input-16-c25f35fd042c&gt; in &lt;module&gt;() ----&gt; 1 plot(X, y) &lt;ipython-input-1-72bdb7124d13&gt; in plot(X, y) 74 75 def plot(X, y): ---&gt; 76 proj = TSNE().fit_transform(X) 77 scatter(proj, y) /Users/joelkuiper/anaconda/lib/python2.7/site-packages/sklearn/manifold/t_sne.pyc in fit_transform(self, X, y) 864 Embedding of the training data in low-dimensional space. 865 """ --&gt; 866 embedding = self._fit(X) 867 self.embedding_ = embedding 868 return self.embedding_ /Users/joelkuiper/anaconda/lib/python2.7/site-packages/sklearn/manifold/t_sne.pyc in _fit(self, X, skip_num_points) 775 X_embedded=X_embedded, 776 neighbors=neighbors_nn, --&gt; 777 skip_num_points=skip_num_points) 778 779 def _tsne(self, P, degrees_of_freedom, n_samples, random_state, /Users/joelkuiper/anaconda/lib/python2.7/site-packages/sklearn/manifold/t_sne.pyc in _tsne(self, P, degrees_of_freedom, n_samples, random_state, X_embedded, neighbors, skip_num_points) 830 opt_args['momentum'] = 0.8 831 opt_args['it'] = it + 1 --&gt; 832 params, error, it = _gradient_descent(obj_func, params, **opt_args) 833 if self.verbose: 834 print("[t-SNE] Error after %d iterations with early " /Users/joelkuiper/anaconda/lib/python2.7/site-packages/sklearn/manifold/t_sne.pyc in _gradient_descent(objective, p0, it, n_iter, objective_error, n_iter_check, n_iter_without_progress, momentum, learning_rate, min_gain, min_grad_norm, min_error_diff, verbose, args, kwargs) 385 for i in range(it, n_iter): 386 new_error, grad = objective(p, *args, **kwargs) --&gt; 387 grad_norm = linalg.norm(grad) 388 389 inc = update * grad &gt;= 0.0 /Users/joelkuiper/anaconda/lib/python2.7/site-packages/scipy/linalg/misc.pyc in norm(a, ord, axis, keepdims) 127 """ 128 # Differs from numpy only in non-finite handling and the use of blas. --&gt; 129 a = np.asarray_chkfinite(a) 130 131 # Only use optimized norms if axis and keepdims are not specified. /Users/joelkuiper/anaconda/lib/python2.7/site-packages/numpy/lib/function_base.pyc in asarray_chkfinite(a, dtype, order) 1020 if a.dtype.char in typecodes['AllFloat'] and not np.isfinite(a).all(): 1021 raise ValueError( -&gt; 1022 "array must not contain infs or NaNs") 1023 return a 1024 ValueError: array must not contain infs or NaNs </code></pre></div>
1
<p dir="auto">For me, a increasingly common issue is that I have duplicate translation files. Let me explain with a use case:</p> <p dir="auto">Given an entity named 'Article', say you want users to create articles on your website. To make that happen you create a form, and for convenience you set up a convention notation for each of the entity's fields:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# forms.en.yml article: fields: title: Title summary: Summary body: Article text datetime_published: Publish at"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> forms.en.yml</span> <span class="pl-ent">article</span>: <span class="pl-ent">fields</span>: <span class="pl-ent">title</span>: <span class="pl-s">Title</span> <span class="pl-ent">summary</span>: <span class="pl-s">Summary</span> <span class="pl-ent">body</span>: <span class="pl-s">Article text</span> <span class="pl-ent">datetime_published</span>: <span class="pl-s">Publish at</span></pre></div> <p dir="auto">And the user sees nicely labeled fields at the form.</p> <p dir="auto">Now imagine a CMS for this website, where you want to list the articles. The column names could be the same as above, but since the context is different, you'll want some translations to be different, like this:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# cms.en.yml article: fields: title: Title summary: Summary body: Body datetime_published: Publication date"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> cms.en.yml</span> <span class="pl-ent">article</span>: <span class="pl-ent">fields</span>: <span class="pl-ent">title</span>: <span class="pl-s">Title</span> <span class="pl-ent">summary</span>: <span class="pl-s">Summary</span> <span class="pl-ent">body</span>: <span class="pl-s">Body</span> <span class="pl-ent">datetime_published</span>: <span class="pl-s">Publication date</span></pre></div> <p dir="auto">As your website gets larger and/or the number of entities grow, so do the duplicate translations. There are more use cases to think of where you'd want some sort of inheritance. Something that would work like this:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# domain.en.yml article: fields: title: Title summary: Summary body: Body datetime_published: Publication date"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> domain.en.yml</span> <span class="pl-ent">article</span>: <span class="pl-ent">fields</span>: <span class="pl-ent">title</span>: <span class="pl-s">Title</span> <span class="pl-ent">summary</span>: <span class="pl-s">Summary</span> <span class="pl-ent">body</span>: <span class="pl-s">Body</span> <span class="pl-ent">datetime_published</span>: <span class="pl-s">Publication date</span></pre></div> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# forms.en.yml imports: - { resource: %kernel.root_dir%/../src/Acme/DemoBundle/Resources/translations/domain.en.yml } article: fields: body: Article text datetime_published: Publish at"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> forms.en.yml</span> <span class="pl-ent">imports</span>: - <span class="pl-s">{ resource: %kernel.root_dir%/../src/Acme/DemoBundle/Resources/translations/domain.en.yml }</span> <span class="pl-ent">article</span>: <span class="pl-ent">fields</span>: <span class="pl-ent">body</span>: <span class="pl-s">Article text</span> <span class="pl-ent">datetime_published</span>: <span class="pl-s">Publish at</span></pre></div> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# cms.en.yml imports: - { resource: %kernel.root_dir%/../src/Acme/DemoBundle/Resources/translations/domain.en.yml }"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> cms.en.yml</span> <span class="pl-ent">imports</span>: - <span class="pl-s">{ resource: %kernel.root_dir%/../src/Acme/DemoBundle/Resources/translations/domain.en.yml }</span></pre></div> <p dir="auto">I have a working proof of concept in a project that's currently running in production. Basically I've extended the regular translation file loader with one that looks for imports in translations, and merges them with the rest of the translation file.</p> <p dir="auto">I'm curious if this is something that more people want. Comments and feedback are welcome.</p>
<p dir="auto">So, back at square one i guess :)</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="189685529" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/20533" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/20533/hovercard" href="https://github.com/symfony/symfony/pull/20533">#20533</a> reverted the integrity check for accessing services, before the container builder is actually compiled. Making it real tricky, yet convenient. However, it is done for the right reasons, for now.</p> <p dir="auto">Where does that leave us? Will it be put back? And what is the alternative/right approach?</p> <p dir="auto">Imo. we all agree the check is needed to keep the container trusty, but we lose major flexibility on simple services (ones that can actually be resolved fully <strong>at some point</strong> before compilation).</p> <p dir="auto">Some ideas;</p> <ul dir="auto"> <li>(1) Keep it as is. If this was already decided by now, please close :) Basically saying to the user; with great power, comes great responsibility; do as you like / whatever works for you. Until it breaks that is :))</li> <li>Deprecate it! <ul dir="auto"> <li>(2) Teach the user to do a different approach in user-land (ie. just initialize a service hardcoded, where needed, when needed). As there will be many tickets about this i guess.</li> <li>(3) Introduce a 2nd container, compiled and accessible, <em>before</em> compiling the 1st container. The user can configure required services as usual. Ie. what about tagging required services with <code class="notranslate">bootstrap</code>, making the full service available on booting, ie. one config and no duplicate service definitions.</li> <li>(4) Allow the user to get a service without compiling the current container (ie. clone it, compile it, then get it). However this basically acts the same as option 1 (keeping it as is), whenever it breaks / doesnt work anymore you still need to revise your approach.</li> <li>(5) Detect which services are safe, and which arent out-of-the-box (the holy grail).</li> <li>(6) Allow compiler passes to run last with scope on a (sub)compiled version of the container, still allowing to modify the actual container. Doing it in 2 steps, the other way around.</li> </ul> </li> </ul>
0
<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>yes</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>3.4.x-dev (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/symfony/symfony/commit/8c4a1e75bee9e8110937fb6ec1ccf94aa1556a52/hovercard" href="https://github.com/symfony/symfony/commit/8c4a1e75bee9e8110937fb6ec1ccf94aa1556a52"><tt>8c4a1e7</tt></a>)</td> </tr> </tbody> </table> <p dir="auto">Error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PHP Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\LogicException: %scheb_two_factor.security_voter.class% should implement the Symfony\Component\Security\Core\Authorization\Voter\VoterInterface interface when used as voter. in vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSecurityVotersPass.php:54"><pre class="notranslate"><code class="notranslate">PHP Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\LogicException: %scheb_two_factor.security_voter.class% should implement the Symfony\Component\Security\Core\Authorization\Voter\VoterInterface interface when used as voter. in vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSecurityVotersPass.php:54 </code></pre></div> <p dir="auto">This service is defined in <a href="https://github.com/scheb/two-factor-bundle/blob/master/Resources/config/security.xml#L52">https://github.com/scheb/two-factor-bundle/blob/master/Resources/config/security.xml#L52</a>. Looks like class is not resolved in <a href="https://github.com/symfony/security-bundle/blob/master/DependencyInjection/Compiler/AddSecurityVotersPass.php#L45">https://github.com/symfony/security-bundle/blob/master/DependencyInjection/Compiler/AddSecurityVotersPass.php#L45</a>.<br> It returns parameter instead.<br> Error is going away when I hardcode FQCN instead of <code class="notranslate">%scheb_two_factor.security_voter.class%</code> parameter.</p> <p dir="auto">I've read <a href="https://github.com/symfony/symfony/blob/master/UPGRADE-3.4.md#securitybundle">https://github.com/symfony/symfony/blob/master/UPGRADE-3.4.md#securitybundle</a> and this class does implement <code class="notranslate">VoterInterface</code>, the problem lies in fact that <code class="notranslate">AddSecurityVotersPass</code> is operating with <code class="notranslate">"%scheb_two_factor.security_voter.class%"</code> string instead with FQCN.</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nicolas-grekas/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nicolas-grekas">@nicolas-grekas</a></p>
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>yes</td> </tr> <tr> <td>Feature request?</td> <td>no</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>3.4</td> </tr> </tbody> </table> <p dir="auto">When voter service class is parameter, it is not yet resolved while checking if it implements VoterInterface.<br> Maybe type of AddSecurityVotersPass should be "optimization"?</p>
1
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="trait Foo: Fn(i32) + Send { } impl&lt;T:?Sized + Fn(i32) + Send&gt; Foo for T { } fn wants_foo(t: Box&lt;Foo&gt;) { } fn main() { let f = Box::new(|x| println!(&quot;{}&quot;, x)); wants_foo(f); }"><pre class="notranslate"><span class="pl-k">trait</span> <span class="pl-smi">Foo</span><span class="pl-kos">:</span> <span class="pl-smi">Fn</span><span class="pl-kos">(</span><span class="pl-smi">i32</span><span class="pl-kos">)</span> + <span class="pl-smi">Send</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-k">impl</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">:</span>?<span class="pl-smi">Sized</span> + <span class="pl-smi">Fn</span><span class="pl-kos">(</span><span class="pl-smi">i32</span><span class="pl-kos">)</span> + <span class="pl-smi">Send</span><span class="pl-kos">&gt;</span> <span class="pl-smi">Foo</span> <span class="pl-k">for</span> <span class="pl-smi">T</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">wants_foo</span><span class="pl-kos">(</span><span class="pl-s1">t</span><span class="pl-kos">:</span> <span class="pl-smi">Box</span><span class="pl-kos">&lt;</span><span class="pl-smi">Foo</span><span class="pl-kos">&gt;</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> f = <span class="pl-smi">Box</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span>|x| <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"{}"</span>, x<span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">wants_foo</span><span class="pl-kos">(</span>f<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;anon&gt;:9:13: 9:14 error: the value of the associated type `Output` (from the trait `core::ops::FnOnce`) must be specified [E0191] &lt;anon&gt;:9 wants_foo(f); ^"><pre class="notranslate"><code class="notranslate">&lt;anon&gt;:9:13: 9:14 error: the value of the associated type `Output` (from the trait `core::ops::FnOnce`) must be specified [E0191] &lt;anon&gt;:9 wants_foo(f); ^ </code></pre></div> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nikomatsakis/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nikomatsakis">@nikomatsakis</a></p>
<p dir="auto"><a href="http://static.rust-lang.org/doc/master/std/hash/index.html" rel="nofollow">http://static.rust-lang.org/doc/master/std/hash/index.html</a></p>
0
<p dir="auto">When a tsconfig.json file is used to target a directory instead of an explicit file list, inherited classes aren't guaranteed to be ordered correctly unless they contain /// &lt;reference tags. It would be nice if directory based compilation could work out the order for inherited classes without the need for the extra tags.</p> <p dir="auto">eg.<br> If i have an empty tsconfig.json file:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{}"><pre class="notranslate"><code class="notranslate">{} </code></pre></div> <p dir="auto">A base class:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/** Base class */ class ServiceBase { }"><pre class="notranslate"><code class="notranslate">/** Base class */ class ServiceBase { } </code></pre></div> <p dir="auto">And inheriting class:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/** Child class */ class MyService extends ServiceBase { constructor(){ super(); } }"><pre class="notranslate"><code class="notranslate">/** Child class */ class MyService extends ServiceBase { constructor(){ super(); } } </code></pre></div> <p dir="auto">And a project structure like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ProjectDir --MyService.ts --ServiceBase.ts --tsconfig.json"><pre class="notranslate"><code class="notranslate">ProjectDir --MyService.ts --ServiceBase.ts --tsconfig.json </code></pre></div> <p dir="auto">The output .js will output the child class before the base class which gives runtime errors:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var __extends = this.__extends || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } __.prototype = b.prototype; d.prototype = new __(); }; /** Child class */ var MyService = (function (_super) { __extends(MyService, _super); function MyService() { _super.call(this); } return MyService; })(ServiceBase); /** Base class */ var ServiceBase = (function () { function ServiceBase() { } return ServiceBase; })();"><pre class="notranslate"><code class="notranslate">var __extends = this.__extends || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } __.prototype = b.prototype; d.prototype = new __(); }; /** Child class */ var MyService = (function (_super) { __extends(MyService, _super); function MyService() { _super.call(this); } return MyService; })(ServiceBase); /** Base class */ var ServiceBase = (function () { function ServiceBase() { } return ServiceBase; })(); </code></pre></div> <p dir="auto">If I add a reference comment to my child class, the ordering will be correct:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/// &lt;reference path=&quot;ServiceBase.ts&quot;/&gt;"><pre class="notranslate"><code class="notranslate">/// &lt;reference path="ServiceBase.ts"/&gt; </code></pre></div> <p dir="auto">I'd like to not have to do this, since the reference tags no longer seem necessary for most other use cases:</p>
<p dir="auto">Hello,</p> <p dir="auto">I am having the same issue, which had lot of activity on codeplex.<br> <a href="https://typescript.codeplex.com/workitem/627" rel="nofollow">https://typescript.codeplex.com/workitem/627</a></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class A extends B { // ... } class B { // ... }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">A</span> <span class="pl-k">extends</span> <span class="pl-smi">B</span> <span class="pl-kos">{</span> <span class="pl-c">// ...</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">B</span> <span class="pl-kos">{</span> <span class="pl-c">// ...</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Compiles without error but obviously fails at runtime.</p>
1
<p dir="auto">Running this piece of code on Babeljs (abstracted):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="for(var el of arr) do()"><pre class="notranslate"><code class="notranslate">for(var el of arr) do() </code></pre></div> <p dir="auto">Throws the following error:<br> <code class="notranslate">[Error] ReferenceError: Can't find variable: Symbol</code></p> <p dir="auto">Using Safari 8.0.6</p> <p dir="auto">Chrome is ok<br> Firefox is ok</p>
<p dir="auto">I have some code like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="for (var n of geoHashes) { console.log(n); }"><pre class="notranslate"><code class="notranslate">for (var n of geoHashes) { console.log(n); } </code></pre></div> <p dir="auto">Only in firefox it throws an error: ReferenceError: Symbol is not defined</p>
1
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1321938/18496190/4b29bc28-7a67-11e6-9e32-e1a7dd4fcf96.png"><img src="https://cloud.githubusercontent.com/assets/1321938/18496190/4b29bc28-7a67-11e6-9e32-e1a7dd4fcf96.png" alt="webpack_warning" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Current behavior</strong><br> When compiling using webpack, in angular rc7 core libraries there are a couple of warnings.</p> <p dir="auto"><strong>Expected behavior</strong><br> I guess no warnings... :-)</p> <p dir="auto"><strong>Reproduction of the problem</strong><br> Install a bare project, the simplest you like using webpack with the Angular2 rc7 revision and you will get the warnings.</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> All the last versions of Angular2 rc7, typings, ts and webpack related dependencies. All of them on the latest versions npm has.</p> <ul dir="auto"> <li><strong>Angular version:</strong><br> 2.0.0-rc.7</li> </ul>
<p dir="auto">#<strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> AoT works with simple translations, but does not seem to work with ICU expressions.</p> <p dir="auto">I successfully follow the same process with static translations, but with expressions it errors.</p> <p dir="auto"><strong>Expected behavior</strong><br> Should work with ICU expressions</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> Here is my component:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { Component } from '@angular/core'; @Component({ selector: 'redbox-dashboard', template: ` &lt;span i18n=&quot;wolf count|describing how many wolves there are&quot;&gt;{wolves, plural, =0 {no wolves} =1 {one wolf} =2 {two wolves} other {a wolf pack}}&lt;/span&gt; ({{wolves}})` }) export class DashboardComponent { wolves = 0; addWolfs() { this.wolves++; } }"><pre class="notranslate"><code class="notranslate">import { Component } from '@angular/core'; @Component({ selector: 'redbox-dashboard', template: ` &lt;span i18n="wolf count|describing how many wolves there are"&gt;{wolves, plural, =0 {no wolves} =1 {one wolf} =2 {two wolves} other {a wolf pack}}&lt;/span&gt; ({{wolves}})` }) export class DashboardComponent { wolves = 0; addWolfs() { this.wolves++; } } </code></pre></div> <p dir="auto">I run <code class="notranslate">ng-xi18n --i18nFormat=xlf -p tsconfig-aot.json</code> to generate the base xlf</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt; &lt;xliff version=&quot;1.2&quot; xmlns=&quot;urn:oasis:names:tc:xliff:document:1.2&quot;&gt; &lt;file source-language=&quot;en&quot; datatype=&quot;plaintext&quot; original=&quot;ng2.template&quot;&gt; &lt;body&gt; &lt;trans-unit id=&quot;ada0bafc6896b2d762094ae188738e8aeadfe1ec&quot; datatype=&quot;html&quot;&gt; &lt;source/&gt; &lt;target/&gt; &lt;note priority=&quot;1&quot; from=&quot;description&quot;&gt;describing how many wolves there are&lt;/note&gt; &lt;note priority=&quot;1&quot; from=&quot;meaning&quot;&gt;wolf count&lt;/note&gt; &lt;/trans-unit&gt; &lt;/body&gt; &lt;/file&gt; &lt;/xliff&gt; "><pre class="notranslate"><code class="notranslate">&lt;?xml version="1.0" encoding="UTF-8" ?&gt; &lt;xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"&gt; &lt;file source-language="en" datatype="plaintext" original="ng2.template"&gt; &lt;body&gt; &lt;trans-unit id="ada0bafc6896b2d762094ae188738e8aeadfe1ec" datatype="html"&gt; &lt;source/&gt; &lt;target/&gt; &lt;note priority="1" from="description"&gt;describing how many wolves there are&lt;/note&gt; &lt;note priority="1" from="meaning"&gt;wolf count&lt;/note&gt; &lt;/trans-unit&gt; &lt;/body&gt; &lt;/file&gt; &lt;/xliff&gt; </code></pre></div> <p dir="auto">I duplicate the base xlf and make a new, language specific version:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt; &lt;xliff version=&quot;1.2&quot; xmlns=&quot;urn:oasis:names:tc:xliff:document:1.2&quot;&gt; &lt;file source-language=&quot;en&quot; datatype=&quot;plaintext&quot; original=&quot;ng2.template&quot;&gt; &lt;body&gt; &lt;trans-unit id=&quot;ada0bafc6896b2d762094ae188738e8aeadfe1ec&quot; datatype=&quot;html&quot;&gt; &lt;source/&gt; &lt;target&gt;{wolves, plural, =0 {ningún lobo} =1 {un lobo} =2 {dos lobos} other {una horda de lobos}}&lt;/target&gt; &lt;note priority=&quot;1&quot; from=&quot;description&quot;&gt;describing how many wolves there are&lt;/note&gt; &lt;note priority=&quot;1&quot; from=&quot;meaning&quot;&gt;wolf count&lt;/note&gt; &lt;/trans-unit&gt; &lt;/body&gt; &lt;/file&gt; &lt;/xliff&gt; "><pre class="notranslate"><code class="notranslate">&lt;?xml version="1.0" encoding="UTF-8" ?&gt; &lt;xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"&gt; &lt;file source-language="en" datatype="plaintext" original="ng2.template"&gt; &lt;body&gt; &lt;trans-unit id="ada0bafc6896b2d762094ae188738e8aeadfe1ec" datatype="html"&gt; &lt;source/&gt; &lt;target&gt;{wolves, plural, =0 {ningún lobo} =1 {un lobo} =2 {dos lobos} other {una horda de lobos}}&lt;/target&gt; &lt;note priority="1" from="description"&gt;describing how many wolves there are&lt;/note&gt; &lt;note priority="1" from="meaning"&gt;wolf count&lt;/note&gt; &lt;/trans-unit&gt; &lt;/body&gt; &lt;/file&gt; &lt;/xliff&gt; </code></pre></div> <p dir="auto">The language specific version contains the ICU expression.</p> <p dir="auto">When compiling the language specific version using <code class="notranslate">ngc --i18nFile=ng-messages-es.xlf --locale=es --i18nFormat=xlf -p tsconfig-aot.json</code></p> <p dir="auto">I get the error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: Missing translation for message 3a8b5c14d335fa003953a4c69a7785ea1eaa08e4 (&quot; &lt;span i18n=&quot;wolf count|describing how many wolves there are&quot;&gt;[ERROR -&gt;]{wolves, plural, =0 {no wolves} =1 {one wolf} =2 {two wolves} other {a wolf pack}}&lt;/span&gt; ({{wolv&quot;): DashboardComponent@1:65 at TranslationBundle.get (/Users/helgevot/development/architecture/redbox_angular/node_modules/@angular/compiler/bundles/compiler.umd.js:8835:21) at _Visitor._translateMessage (/Users/helgevot/development/architecture/redbox_angular/node_modules/@angular/compiler/bundles/compiler.umd.js:7174:63) at _Visitor.visitElement (/Users/helgevot/development/architecture/redbox_angular/node_modules/@angular/compiler/bundles/compiler.umd.js:7045:37) at Element.visit (/Users/helgevot/development/architecture/redbox_angular/node_modules/@angular/compiler/bundles/compiler.umd.js:4953:78) at /Users/helgevot/development/architecture/redbox_angular/node_modules/@angular/compiler/bundles/compiler.umd.js:7066:60 at Array.forEach (native) at _Visitor.visitElement (/Users/helgevot/development/architecture/redbox_angular/node_modules/@angular/compiler/bundles/compiler.umd.js:7065:31) at Element.visit (/Users/helgevot/development/architecture/redbox_angular/node_modules/@angular/compiler/bundles/compiler.umd.js:4953:78) at _Visitor.merge (/Users/helgevot/development/architecture/redbox_angular/node_modules/@angular/compiler/bundles/compiler.umd.js:6926:57) at mergeTranslations (/Users/helgevot/development/architecture/redbox_angular/node_modules/@angular/compiler/bundles/compiler.umd.js:6866:22) Compilation failed "><pre class="notranslate"><code class="notranslate">Error: Missing translation for message 3a8b5c14d335fa003953a4c69a7785ea1eaa08e4 (" &lt;span i18n="wolf count|describing how many wolves there are"&gt;[ERROR -&gt;]{wolves, plural, =0 {no wolves} =1 {one wolf} =2 {two wolves} other {a wolf pack}}&lt;/span&gt; ({{wolv"): DashboardComponent@1:65 at TranslationBundle.get (/Users/helgevot/development/architecture/redbox_angular/node_modules/@angular/compiler/bundles/compiler.umd.js:8835:21) at _Visitor._translateMessage (/Users/helgevot/development/architecture/redbox_angular/node_modules/@angular/compiler/bundles/compiler.umd.js:7174:63) at _Visitor.visitElement (/Users/helgevot/development/architecture/redbox_angular/node_modules/@angular/compiler/bundles/compiler.umd.js:7045:37) at Element.visit (/Users/helgevot/development/architecture/redbox_angular/node_modules/@angular/compiler/bundles/compiler.umd.js:4953:78) at /Users/helgevot/development/architecture/redbox_angular/node_modules/@angular/compiler/bundles/compiler.umd.js:7066:60 at Array.forEach (native) at _Visitor.visitElement (/Users/helgevot/development/architecture/redbox_angular/node_modules/@angular/compiler/bundles/compiler.umd.js:7065:31) at Element.visit (/Users/helgevot/development/architecture/redbox_angular/node_modules/@angular/compiler/bundles/compiler.umd.js:4953:78) at _Visitor.merge (/Users/helgevot/development/architecture/redbox_angular/node_modules/@angular/compiler/bundles/compiler.umd.js:6926:57) at mergeTranslations (/Users/helgevot/development/architecture/redbox_angular/node_modules/@angular/compiler/bundles/compiler.umd.js:6866:22) Compilation failed </code></pre></div> <p dir="auto">The ids on the two files match, but the compiler is complaining about a second id <code class="notranslate">3a8b5c14d335fa003953a4c69a7785ea1eaa08e4</code> that is not defined anywhere.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 2.3.0</p> </li> <li> <p dir="auto"><strong>Language:</strong> [TypeScript]</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = 6.2.1</p> </li> </ul>
0
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current behavior</strong><br> Application does not compile with <code class="notranslate">@babel/[email protected]</code>, using version <code class="notranslate">7.10.1</code> does.</p> <p dir="auto"><strong>Input Code</strong><br> <a href="https://github.com/Amsterdam/atlas/tree/babel-bugreport">https://github.com/Amsterdam/atlas/tree/babel-bugreport</a></p> <p dir="auto">Run <code class="notranslate">npm run start</code> on this branch.</p> <p dir="auto"><strong>Expected behavior</strong><br> Code compiles as before</p> <p dir="auto"><strong>Environment</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" System: OS: Linux 5.6 Fedora 32 (Workstation Edition) 32 (Workstation Edition) Binaries: Node: 14.5.0 - ~/.nvm/versions/node/v14.5.0/bin/node Yarn: 1.22.4 - ~/.nvm/versions/node/v14.5.0/bin/yarn npm: 6.14.5 - ~/.nvm/versions/node/v14.5.0/bin/npm npmPackages: @babel/core: ^7.10.4 =&gt; 7.10.4 @babel/plugin-transform-runtime: ^7.10.4 =&gt; 7.10.4 @babel/preset-env: ^7.10.4 =&gt; 7.10.4 @babel/preset-react: ^7.10.1 =&gt; 7.10.1 @babel/preset-typescript: ^7.10.4 =&gt; 7.10.4 @babel/runtime: ^7.10.4 =&gt; 7.10.4 babel-eslint: ^10.1.0 =&gt; 10.1.0 babel-loader: ^8.1.0 =&gt; 8.1.0 babel-plugin-styled-components: ^1.10.7 =&gt; 1.10.7 babel-plugin-transform-commonjs-es2015-modules: ^4.0.1 =&gt; 4.0.1 eslint: ^7.3.1 =&gt; 7.3.1 jest: 26.1.0 =&gt; 26.1.0 karma-babel-preprocessor: 8.0.1 =&gt; 8.0.1 webpack: 4.43.0 =&gt; 4.43.0 "><pre class="notranslate"><code class="notranslate"> System: OS: Linux 5.6 Fedora 32 (Workstation Edition) 32 (Workstation Edition) Binaries: Node: 14.5.0 - ~/.nvm/versions/node/v14.5.0/bin/node Yarn: 1.22.4 - ~/.nvm/versions/node/v14.5.0/bin/yarn npm: 6.14.5 - ~/.nvm/versions/node/v14.5.0/bin/npm npmPackages: @babel/core: ^7.10.4 =&gt; 7.10.4 @babel/plugin-transform-runtime: ^7.10.4 =&gt; 7.10.4 @babel/preset-env: ^7.10.4 =&gt; 7.10.4 @babel/preset-react: ^7.10.1 =&gt; 7.10.1 @babel/preset-typescript: ^7.10.4 =&gt; 7.10.4 @babel/runtime: ^7.10.4 =&gt; 7.10.4 babel-eslint: ^10.1.0 =&gt; 10.1.0 babel-loader: ^8.1.0 =&gt; 8.1.0 babel-plugin-styled-components: ^1.10.7 =&gt; 1.10.7 babel-plugin-transform-commonjs-es2015-modules: ^4.0.1 =&gt; 4.0.1 eslint: ^7.3.1 =&gt; 7.3.1 jest: 26.1.0 =&gt; 26.1.0 karma-babel-preprocessor: 8.0.1 =&gt; 8.0.1 webpack: 4.43.0 =&gt; 4.43.0 </code></pre></div> <p dir="auto"><strong>Additional context</strong><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/695720/86457020-4e193000-bd23-11ea-81aa-adfbbab6a8e5.png"><img src="https://user-images.githubusercontent.com/695720/86457020-4e193000-bd23-11ea-81aa-adfbbab6a8e5.png" alt="image" style="max-width: 100%;"></a></p>
<blockquote> <p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/stefanoverna/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/stefanoverna">@stefanoverna</a></p> </blockquote> <h3 dir="auto">Bug information</h3> <ul dir="auto"> <li><strong>Babel version:</strong> 6.1.21</li> <li><strong>Node version:</strong> 5.1.0</li> <li><strong>npm version:</strong> 3.3.12</li> </ul> <h3 dir="auto">Input code</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="I prepared a small sample that illustrates the problem: https://github.com/stefanoverna/babel-react-skeleton Just `npm run dev` and open the Inspector to see the exception"><pre class="notranslate"><span class="pl-v">I</span> <span class="pl-s1">prepared</span> <span class="pl-s1">a</span> <span class="pl-s1">small</span> <span class="pl-s1">sample</span> <span class="pl-s1">that</span> <span class="pl-s1">illustrates</span> <span class="pl-s1">the</span> problem: https:<span class="pl-c">//github.com/stefanoverna/babel-react-skeleton</span> <span class="pl-v">Just</span> <span class="pl-s">`npm run dev`</span> <span class="pl-s1">and</span> <span class="pl-s1">open</span> <span class="pl-s1">the</span> <span class="pl-v">Inspector</span> <span class="pl-s1">to</span> <span class="pl-s1">see</span> <span class="pl-s1">the</span> <span class="pl-s1">exception</span></pre></div> <h3 dir="auto">Description</h3> <p dir="auto">It seems that the following code doesn't get transformed correctly by the <code class="notranslate">babel-plugin-transform-class-properties</code> package:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import React from &quot;react&quot;; class App extends React.Component { state = { count: 0 }; render() { return &lt;div&gt;Hello there!&lt;/div&gt;; } } export default App;"><pre class="notranslate"><code class="notranslate">import React from "react"; class App extends React.Component { state = { count: 0 }; render() { return &lt;div&gt;Hello there!&lt;/div&gt;; } } export default App; </code></pre></div> <p dir="auto">At runtime, the following error is thrown by the <code class="notranslate">_possibleConstructorReturn</code> function:</p> <p dir="auto"><code class="notranslate">ReferenceError: this hasn't been initialised - super() hasn't been called</code></p>
0
<p dir="auto">I find this a bit annoying, because I'm used to use the exponent notation to declare large numbers. Of course I could do zeros(10^4) but I think it should also work with 1e4.</p> <p dir="auto">The problem is that 1e4 is a float and 10^4 an int, and that Array doesn't accept floats for dimensional arguments.</p> <p dir="auto">Is there any problems with trying to convert floats to int when declaring arrays ? I think it would simplify things quite a bit, and it seems safe to me, since convert will give an InexactError when trying to declare an array with 10.5 elements.</p> <p dir="auto">It would also solve this kind of weird behavior:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; zeros(100/10) ERROR: no method Array(DataType,Float64) in zeros at array.jl:205"><pre class="notranslate"><code class="notranslate">julia&gt; zeros(100/10) ERROR: no method Array(DataType,Float64) in zeros at array.jl:205 </code></pre></div>
<p dir="auto">Currently, rand(1,1e7) fails:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; rand(1,1e7) ERROR: no method rand(Int64,Float64)"><pre class="notranslate"><code class="notranslate">julia&gt; rand(1,1e7) ERROR: no method rand(Int64,Float64) </code></pre></div> <p dir="auto">Should using FloatingPoints be allowed? Shall it throw InexactError() if round(m)!=m?</p>
1
<p dir="auto">Describe what you were doing when the bug occurred:<br> 1.<br> 2.<br> 3.</p> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.6.0-6cceaeb67</p> <p dir="auto">Call stack: at n.value (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:173658)<br> at p (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:359968)<br> at Zc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:360183)<br> at ci (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59620)<br> at nl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:69923)<br> at Ll (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:110996)<br> at qc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:102381)<br> at Hc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:102306)<br> at Vc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:102171)<br> at Tc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:98781)</p> <p dir="auto">Component stack: in Zc<br> in div<br> in div<br> in So<br> in Unknown<br> in n<br> in Unknown<br> in div<br> in div<br> in rl<br> in Ze<br> in fn<br> in Ga<br> in _s</p>
<p dir="auto">The DevTools Profiler occasionally encounters the error:</p> <blockquote> <p dir="auto">Could not find commit data for root "..." and commit ...</p> </blockquote> <p dir="auto">This issue is intermittent and we do not currently know hot to reproduce it. <strong>If you can reproduce it</strong> we would love to get any of the following information from you:</p> <ul dir="auto"> <li>Info about how you reproduce it. (Share your code or site with us?)</li> <li>An exported Profiler JSON that contains the bug. (This may be less useful, since the bug likely happens pre-export- but may still be helpful.)</li> </ul>
1
<h3 dir="auto">Reason:</h3> <p dir="auto">It allows the user to compute these metrics on soft classifications. E.g. let Y be a (n,k) ndarray, where each row is a probability distribution over classes. Let C be a (n,c) ground truth ndarray, each row is a probability distribution over classes. Then A = np.dot(Y.T, C) is the expected contingency matrix.</p> <h3 dir="auto">Example of a function where it's currently implemented:</h3> <p dir="auto"><code class="notranslate">mutual_info_score</code></p> <h3 dir="auto">Functions for which it should be implemented:</h3> <p dir="auto"><code class="notranslate">adjusted_rand_score</code><br> <code class="notranslate">fowlkes_mallows_score </code><br> <code class="notranslate">normalized_mutual_info_score</code><br> <code class="notranslate">adjusted_mutual_info_score</code><br> <code class="notranslate">homogeneity_completeness_v_measure</code></p> <h3 dir="auto">Discussion</h3> <p dir="auto">Is there an architectural or semantic reason for why we wouldn't want to allow custom contingency matrices? Otherwise this seems like an easy update.</p>
<p dir="auto">Supervised clustering metrics (at least where there is a fixed set of samples, unlike in coreference resolution with system mentions) can usually be calculated from the contingency matrix alone. I think passing <code class="notranslate">y_true=contingency, y_pred=None</code> should trigger this behaviour, saving computational time when calculating multiple measures.</p>
1
<p dir="auto">Choose one: is this a bug report or feature request? A bug report.</p> <p dir="auto">I couldn't tell if this was the same bug as other similar issues. Sorry for any duplication.</p> <h3 dir="auto">Input Code</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="for(let [a] of c) { a=1; ()=&gt;a; }"><pre class="notranslate"><span class="pl-k">for</span><span class="pl-kos">(</span><span class="pl-k">let</span> <span class="pl-kos">[</span><span class="pl-s1">a</span><span class="pl-kos">]</span> <span class="pl-k">of</span> <span class="pl-s1">c</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">a</span><span class="pl-c1">=</span><span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-c1">=&gt;</span><span class="pl-s1">a</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">Babel/Babylon Configuration (.babelrc, package.json, cli command)</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ presets: [ [ '@babel/env', { debug: true } ] ] }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-c1">presets</span>: <span class="pl-kos">[</span> <span class="pl-kos">[</span> <span class="pl-s">'@babel/env'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">debug</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="BROWSERSLIST='IE 11' npx babel --config-file ./.babelrc test.js"><pre class="notranslate">BROWSERSLIST=<span class="pl-s"><span class="pl-pds">'</span>IE 11<span class="pl-pds">'</span></span> npx babel --config-file ./.babelrc test.js</pre></div> <p dir="auto">Adding in the destructuring plugin doesn't change anything.</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Something like <code class="notranslate">@babel/preset-es2015</code> produces (boilerplate omitted):</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" var _loop = function _loop() { var _step$value = _slicedToArray(_step.value, 1), a = _step$value[0]; a = 1; (function () { return a; }); }; for (var _iterator = c[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { _loop(); }"><pre class="notranslate"> <span class="pl-k">var</span> <span class="pl-en">_loop</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-en">_loop</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">_step$value</span> <span class="pl-c1">=</span> <span class="pl-en">_slicedToArray</span><span class="pl-kos">(</span><span class="pl-s1">_step</span><span class="pl-kos">.</span><span class="pl-c1">value</span><span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">_step$value</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">a</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">var</span> <span class="pl-s1">_iterator</span> <span class="pl-c1">=</span> <span class="pl-s1">c</span><span class="pl-kos">[</span><span class="pl-v">Symbol</span><span class="pl-kos">.</span><span class="pl-c1">iterator</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">_step</span><span class="pl-kos">;</span> <span class="pl-c1">!</span><span class="pl-kos">(</span><span class="pl-s1">_iteratorNormalCompletion</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">_step</span> <span class="pl-c1">=</span> <span class="pl-s1">_iterator</span><span class="pl-kos">.</span><span class="pl-en">next</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">done</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">_iteratorNormalCompletion</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">_loop</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">Current Behavior</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var _loop = function _loop(_a) { _a = 1; (function () { return _a; }); a = _a; }; var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = c[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var _ref3 = _step.value; var _ref2 = _slicedToArray(_ref3, 1); var _a2 = _ref2[0]; _loop(_a2); }"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-en">_loop</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-en">_loop</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-s1">_a</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">_a</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">_a</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">_iteratorNormalCompletion</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">_didIteratorError</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">_iteratorError</span> <span class="pl-c1">=</span> <span class="pl-c1">undefined</span><span class="pl-kos">;</span> <span class="pl-k">try</span> <span class="pl-kos">{</span> <span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">var</span> <span class="pl-s1">_iterator</span> <span class="pl-c1">=</span> <span class="pl-s1">c</span><span class="pl-kos">[</span><span class="pl-v">Symbol</span><span class="pl-kos">.</span><span class="pl-c1">iterator</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">_step</span><span class="pl-kos">;</span> <span class="pl-c1">!</span><span class="pl-kos">(</span><span class="pl-s1">_iteratorNormalCompletion</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">_step</span> <span class="pl-c1">=</span> <span class="pl-s1">_iterator</span><span class="pl-kos">.</span><span class="pl-en">next</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">done</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">_iteratorNormalCompletion</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">_ref3</span> <span class="pl-c1">=</span> <span class="pl-s1">_step</span><span class="pl-kos">.</span><span class="pl-c1">value</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">_ref2</span> <span class="pl-c1">=</span> <span class="pl-en">_slicedToArray</span><span class="pl-kos">(</span><span class="pl-s1">_ref3</span><span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">_a2</span> <span class="pl-c1">=</span> <span class="pl-s1">_ref2</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-en">_loop</span><span class="pl-kos">(</span><span class="pl-s1">_a2</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos"></span></pre></div> <p dir="auto">The line <code class="notranslate">a = _a</code> assigns to <code class="notranslate">a</code> when no variable <code class="notranslate">a</code> is in scope.</p> <p dir="auto">It seems <code class="notranslate">@babel/preset-env</code> orders the relevant transforms like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" transform-block-scoping { &quot;ie&quot;:&quot;11&quot; } transform-for-of { &quot;ie&quot;:&quot;11&quot; }"><pre class="notranslate"><code class="notranslate"> transform-block-scoping { "ie":"11" } transform-for-of { "ie":"11" } </code></pre></div> <p dir="auto">when they really should be ordered like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" transform-for-of { &quot;ie&quot;:&quot;11&quot; } transform-block-scoping { &quot;ie&quot;:&quot;11&quot; }"><pre class="notranslate"><code class="notranslate"> transform-for-of { "ie":"11" } transform-block-scoping { "ie":"11" } </code></pre></div> <p dir="auto">or the relevant transformations should be insensitive to ordering.</p> <p dir="auto">You can run them by themselves to confirm:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="npx babel --no-babelrc --plugins @babel/transform-for-of,@babel/transform-block-scoping test.js # works correctly npx babel --no-babelrc --plugins @babel/transform-block-scoping,@babel/transform-for-of test.js # breaks"><pre class="notranslate">npx babel --no-babelrc --plugins @babel/transform-for-of,@babel/transform-block-scoping test.js <span class="pl-c"><span class="pl-c">#</span> works correctly</span> npx babel --no-babelrc --plugins @babel/transform-block-scoping,@babel/transform-for-of test.js <span class="pl-c"><span class="pl-c">#</span> breaks</span></pre></div> <h3 dir="auto">Context</h3> <p dir="auto">Our code had a more convoluted example, but basically captured a mutated loop variable within a lambda, and threw an exception at runtime because of the bogus assignment.</p> <h3 dir="auto">Your Environment</h3> <table role="table"> <thead> <tr> <th>software</th> <th>version(s)</th> </tr> </thead> <tbody> <tr> <td>Babel</td> <td>7.0.0-beta.40</td> </tr> <tr> <td>node</td> <td>9.8.0</td> </tr> <tr> <td>npm</td> <td>5.6.0</td> </tr> <tr> <td>Operating System</td> <td>macOS 10.13.3</td> </tr> </tbody> </table>
<p dir="auto">This generates invalid code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="({ foo: (/*string*/ x) =&gt; /*object*/ 10 });"><pre class="notranslate"><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-en">foo</span>: <span class="pl-kos">(</span><span class="pl-c">/*string*/</span> <span class="pl-s1">x</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-c">/*object*/</span> <span class="pl-c1">10</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Returns implicit <code class="notranslate">undefined</code>:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&quot;use strict&quot;; ({ foo: function foo( /*string*/x) { return /*object*/ 10; } });"><pre class="notranslate"><span class="pl-s">"use strict"</span><span class="pl-kos">;</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-en">foo</span>: <span class="pl-k">function</span> <span class="pl-en">foo</span><span class="pl-kos">(</span> <span class="pl-c">/*string*/</span><span class="pl-s1">x</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c">/*object*/</span> <span class="pl-c1">10</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
0
<p dir="auto"><strong>TypeScript Version:</strong></p> <ul dir="auto"> <li>Version 1.9.0-dev.20160525-1.0</li> </ul> <p dir="auto"><strong>Code</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// A self-contained demonstration of the problem follows... async function getBar(params: number) { return 1; }"><pre class="notranslate"><span class="pl-c">// A self-contained demonstration of the problem follows...</span> <span class="pl-k">async</span> <span class="pl-k">function</span> <span class="pl-en">getBar</span><span class="pl-kos">(</span><span class="pl-s1">params</span>: <span class="pl-smi">number</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">transform into with <code class="notranslate">--target ES6</code></p> <p dir="auto"><strong>Expected behavior:</strong></p> <ul dir="auto"> <li>Don't transform async/await with polyfill codes. <ul dir="auto"> <li>I would not like to transform async/awai in typescript phase, use babel or something to transform them, or use browser's natively support.</li> <li>In this case, I'd like to use TypeScript compiler as a very nice type checker and down transform to ECMA262's latest standard syntax.</li> </ul> </li> </ul> <p dir="auto"><strong>Actual behavior:</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var __awaiter = (this &amp;&amp; this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator.throw(value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments)).next()); }); }; function getBar(params) { return __awaiter(this, void 0, void 0, function* () { return 1; }); }"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">__awaiter</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-smi">this</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">__awaiter</span><span class="pl-kos">)</span> <span class="pl-c1">||</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">thisArg</span><span class="pl-kos">,</span> <span class="pl-s1">_arguments</span><span class="pl-kos">,</span> <span class="pl-v">P</span><span class="pl-kos">,</span> <span class="pl-s1">generator</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-kos">(</span><span class="pl-v">P</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-v">P</span> <span class="pl-c1">=</span> <span class="pl-v">Promise</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">resolve</span><span class="pl-kos">,</span> <span class="pl-s1">reject</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">function</span> <span class="pl-en">fulfilled</span><span class="pl-kos">(</span><span class="pl-s1">value</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">try</span> <span class="pl-kos">{</span> <span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s1">generator</span><span class="pl-kos">.</span><span class="pl-en">next</span><span class="pl-kos">(</span><span class="pl-s1">value</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">catch</span> <span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">reject</span><span class="pl-kos">(</span><span class="pl-s1">e</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">function</span> <span class="pl-en">rejected</span><span class="pl-kos">(</span><span class="pl-s1">value</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">try</span> <span class="pl-kos">{</span> <span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s1">generator</span><span class="pl-kos">.</span><span class="pl-en">throw</span><span class="pl-kos">(</span><span class="pl-s1">value</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">catch</span> <span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">reject</span><span class="pl-kos">(</span><span class="pl-s1">e</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">function</span> <span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s1">result</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">result</span><span class="pl-kos">.</span><span class="pl-c1">done</span> ? <span class="pl-s1">resolve</span><span class="pl-kos">(</span><span class="pl-s1">result</span><span class="pl-kos">.</span><span class="pl-c1">value</span><span class="pl-kos">)</span> : <span class="pl-k">new</span> <span class="pl-v">P</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">resolve</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">resolve</span><span class="pl-kos">(</span><span class="pl-s1">result</span><span class="pl-kos">.</span><span class="pl-c1">value</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-s1">fulfilled</span><span class="pl-kos">,</span> <span class="pl-s1">rejected</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">generator</span> <span class="pl-c1">=</span> <span class="pl-s1">generator</span><span class="pl-kos">.</span><span class="pl-en">apply</span><span class="pl-kos">(</span><span class="pl-s1">thisArg</span><span class="pl-kos">,</span> <span class="pl-s1">_arguments</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">next</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-en">getBar</span><span class="pl-kos">(</span><span class="pl-s1">params</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">__awaiter</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-k">void</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-k">void</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-c1">*</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div>
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mathiasdose/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mathiasdose">@mathiasdose</a> on February 11, 2016 8:20</em></p> <p dir="auto">One of the features that I really liked with vscode was the folder path intellisense inside require('path') while doing NodeJs development. Now I just see a list of global variables. I don't use the new salsa, and I'm targeting ES5.</p> <p dir="auto">Something that might be worth mentioning is that the intellisense of the required modules is working as before.</p> <p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="132914331" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/2923" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/2923/hovercard" href="https://github.com/microsoft/vscode/issues/2923">microsoft/vscode#2923</a></em></p>
0
<p dir="auto">Add a view for extension management like Atom with detailed lists, extension download / update progress.</p>
<p dir="auto">The quick open UI isn't working fully well.</p> <p dir="auto">We need to come up with a better UI story that can</p> <ul dir="auto"> <li>increase visibility of extensions;</li> <li>fix awkward UI interactions we have today (status bar widget, error output pane, messages, etc);</li> <li>enable us to implement more features in the future (enablement/disablement, statistics, etc).</li> </ul>
1
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues in this issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one message broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue with retries, ETA/Countdown &amp; rate limits disabled.</li> </ul> <p dir="auto"><strong>ISSUE</strong><br> Working with celery 4.2.0 and Redis as broker and backend.</p> <p dir="auto">Having a task</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@shared_task() def add(a, b): return a+b"><pre class="notranslate"><code class="notranslate">@shared_task() def add(a, b): return a+b </code></pre></div> <p dir="auto">And while a worker is active, running the fallowing command:</p> <p dir="auto"><code class="notranslate">add.apply_async(countdown=60) </code>Results in the task not being registered to the default celery queue, but still being executed after the period of time stated in countdown</p> <p dir="auto">Why is that, and how can I look for all pending tasks? Doing this would have worked if the task would be registered to the queue:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" with celery_app.pool.acquire(block=True) as conn: tasks = conn.default_channel.client.lrange('celery', 0, -1)"><pre class="notranslate"><code class="notranslate"> with celery_app.pool.acquire(block=True) as conn: tasks = conn.default_channel.client.lrange('celery', 0, -1) </code></pre></div> <p dir="auto">If I terminate the worker while task havent been started I get the fallowing:</p> <blockquote> <p dir="auto">[WARNING/MainProcess] Restoring 1 unacknowledged message(s)</p> </blockquote> <p dir="auto">This tells me the task is kept somewhere else other then the queue, but why ?</p>
<p dir="auto">We've seen this CI failure sporadically since we fixed the pypy3 CI job. It possible an attribute in a timer is being mocked/assigned incorrectly, or there's just some difference in how pypy3 implements <code class="notranslate">Timer</code> objects (I believe the complaint is about a <code class="notranslate">threading.Timer()</code> object).</p> <h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>:</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: N/A or Unknown</li> <li><strong>Minimal Celery Version</strong>: N/A or Unknown</li> <li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <h1 dir="auto">Actual Behavior</h1> <details> <summary>Output from failed unit tests on pypy</summary> ``` t/unit/worker/test_worker.py::test_Consumer::test_receieve_message_eta_isoformat FAILED [ 97%] <p dir="auto">t/unit/worker/test_worker.py::test_Consumer::test_receieve_message_eta_isoformat ERROR [ 97%]</p> <p dir="auto">==================================== ERRORS ====================================</p> <p dir="auto">____ ERROR at teardown of test_Consumer.test_receieve_message_eta_isoformat ____</p> <p dir="auto">self = &lt;t.unit.worker.test_worker.test_Consumer object at 0x0000000008936528&gt;</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def teardown(self):"><pre class="notranslate"><code class="notranslate">def teardown(self): </code></pre></div> <blockquote> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" self.timer.stop()"><pre class="notranslate"><code class="notranslate"> self.timer.stop() </code></pre></div> </blockquote> <p dir="auto">t/unit/worker/test_worker.py:92:</p> <hr> <p dir="auto">self = &lt;Timer(Timer-106, stopped daemon 139665216587520)&gt;</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def stop(self): self._is_shutdown.set() if self.running:"><pre class="notranslate"><code class="notranslate">def stop(self): self._is_shutdown.set() if self.running: </code></pre></div> <blockquote> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" self._is_stopped.wait()"><pre class="notranslate"><code class="notranslate"> self._is_stopped.wait() </code></pre></div> </blockquote> <p dir="auto">E AttributeError: 'bool' object has no attribute 'wait'</p> <p dir="auto">celery/utils/timer2.py:96: AttributeError</p> <p dir="auto">=================================== FAILURES ===================================</p> <p dir="auto">______________ test_Consumer.test_receieve_message_eta_isoformat _______________</p> <p dir="auto">self = &lt;t.unit.worker.test_worker.test_Consumer object at 0x0000000008936528&gt;</p> <blockquote> <p dir="auto">???</p> </blockquote> <p dir="auto">t/unit/worker/test_worker.py:417:</p> <hr> <p dir="auto">self = &lt;Timer(Timer-106, stopped daemon 139665216587520)&gt;</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def stop(self): self._is_shutdown.set() if self.running:"><pre class="notranslate"><code class="notranslate">def stop(self): self._is_shutdown.set() if self.running: </code></pre></div> <blockquote> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" self._is_stopped.wait()"><pre class="notranslate"><code class="notranslate"> self._is_stopped.wait() </code></pre></div> </blockquote> <p dir="auto">E AttributeError: 'bool' object has no attribute 'wait'</p> <p dir="auto">celery/utils/timer2.py:96: AttributeError</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;/details&gt;"><pre class="notranslate"><code class="notranslate">&lt;/details&gt; </code></pre></div></details>
0
<p dir="auto">Challenge doesn't count as complete on Firefox, same code works on Chrome just fine.</p> <p dir="auto">Challenge <a href="http://beta.freecodecamp.com/en/challenges/applied-visual-design/adjusting-the-color-of-various-elements-to-complementary-colors" rel="nofollow">adjusting-the-color-of-various-elements-to-complementary-colors</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;style&gt; body { background-color: white; } header { background-color: #09A7A1; color: white; padding: 0.25em; } h2 { color: #09A7A1; } button { background-color: #FF790E; } footer { background-color: #09A7A1; color: white; padding: 0.5em; } &lt;/style&gt; &lt;header&gt; &lt;h1&gt;Cooking with FCC!&lt;/h1&gt; &lt;/header&gt; &lt;main&gt; &lt;article&gt; &lt;h2&gt;Machine Learning in the Kitchen&lt;/h2&gt; &lt;p&gt;Join this two day workshop that walks through how to implement cutting-edge snack-getting algorithms with a command line interface. Coding usually involves writing exact instructions, but sometimes you need your computer to execute flexible commands, like &lt;code&gt;fetch Pringles&lt;/code&gt;.&lt;/p&gt; &lt;button&gt;Sign Up&lt;/button&gt; &lt;/article&gt; &lt;article&gt; &lt;h2&gt;Bisection Vegetable Chopping&lt;/h2&gt; &lt;p&gt;This week-long retreat will level-up your coding ninja skills to actual ninja skills. No longer is the humble bisection search limited to sorted arrays or coding interview questions, applying its concepts in the kitchen will have you chopping carrots in O(log n) time before you know it.&lt;/p&gt; &lt;button&gt;Sign Up&lt;/button&gt; &lt;/article&gt; &lt;/main&gt; &lt;br&gt; &lt;footer&gt;&amp;copy;2016 FCC Kitchen&lt;/footer&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-ent">body</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> white; } <span class="pl-ent">header</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>09A7A1</span>; <span class="pl-c1">color</span><span class="pl-kos">:</span> white; <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">0.25<span class="pl-smi">em</span></span>; } <span class="pl-ent">h2</span> { <span class="pl-c1">color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>09A7A1</span>; } <span class="pl-ent">button</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>FF790E</span>; } <span class="pl-ent">footer</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>09A7A1</span>; <span class="pl-c1">color</span><span class="pl-kos">:</span> white; <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">0.5<span class="pl-smi">em</span></span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">header</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h1</span><span class="pl-kos">&gt;</span>Cooking with FCC!<span class="pl-kos">&lt;/</span><span class="pl-ent">h1</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">header</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">main</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">article</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span>Machine Learning in the Kitchen<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Join this two day workshop that walks through how to implement cutting-edge snack-getting algorithms with a command line interface. Coding usually involves writing exact instructions, but sometimes you need your computer to execute flexible commands, like <span class="pl-kos">&lt;</span><span class="pl-ent">code</span><span class="pl-kos">&gt;</span>fetch Pringles<span class="pl-kos">&lt;/</span><span class="pl-ent">code</span><span class="pl-kos">&gt;</span>.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span>Sign Up<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">article</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">article</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span>Bisection Vegetable Chopping<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>This week-long retreat will level-up your coding ninja skills to actual ninja skills. No longer is the humble bisection search limited to sorted arrays or coding interview questions, applying its concepts in the kitchen will have you chopping carrots in O(log n) time before you know it.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span>Sign Up<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">article</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">main</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">br</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">footer</span><span class="pl-kos">&gt;</span>&amp;copy;2016 FCC Kitchen<span class="pl-kos">&lt;/</span><span class="pl-ent">footer</span><span class="pl-kos">&gt;</span></pre></div>
<h4 dir="auto">Issue Description</h4> <p dir="auto">This is for the feature/curriculum-expansion branch only when run locally, and NOT the staging branch.</p> <p dir="auto">For several challenges (challengeType: 0, using the code editor with the mobile-phone output layout), the jQuery method .css() doesn't seem to be accessing the styles applied in a <code class="notranslate">style</code> tag in the given code. This is affecting any assert tests that use a pattern of <code class="notranslate">assert($('selector').css('propertyToCheck') == 'valueToCompare', 'message: ...');</code>.Here's an example:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;style&gt; h2 { position: relative; top: 15px; } &lt;/style&gt; &lt;body&gt; &lt;h1&gt;On Being Well-Positioned&lt;/h1&gt; &lt;h2 class=&quot;testCode&quot;&gt;Move me!&lt;/h2&gt; &lt;p&gt;I still think the h2 is where it normally sits.&lt;/p&gt; &lt;/body&gt; &lt;script&gt; console.log($('h2').attr('class')); // Works great, returns testCode console.log($('h2').css('position')); // returns undefined console.log($('h2').css('top')); // returns undefined &lt;/script&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-ent">h2</span> { <span class="pl-c1">position</span><span class="pl-kos">:</span> relative; <span class="pl-c1">top</span><span class="pl-kos">:</span> <span class="pl-c1">15<span class="pl-smi">px</span></span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h1</span><span class="pl-kos">&gt;</span>On Being Well-Positioned<span class="pl-kos">&lt;/</span><span class="pl-ent">h1</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">testCode</span>"<span class="pl-kos">&gt;</span>Move me!<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>I still think the h2 is where it normally sits.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">'h2'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">attr</span><span class="pl-kos">(</span><span class="pl-s">'class'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Works great, returns testCode</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-en">$</span><span class="pl-kos">(</span><span class="pl-s">'h2'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">'position'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// returns undefined</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-en">$</span><span class="pl-kos">(</span><span class="pl-s">'h2'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">'top'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// returns undefined</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">Related assert tests that aren't passing:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="assert($('h2').css('position') == 'relative', 'message: Add a CSS rule to specify that the &lt;code&gt;h2&lt;/code&gt; has a &lt;code&gt;position&lt;/code&gt; set to &lt;code&gt;relative&lt;/code&gt;.'); assert($('h2').css('top') == '15px', 'message: Use a CSS offset to relatively position the &lt;code&gt;h2&lt;/code&gt; 15px away from the &lt;code&gt;top&lt;/code&gt; of where it normally sits.');"><pre class="notranslate"><span class="pl-en">assert</span><span class="pl-kos">(</span><span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">'h2'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">'position'</span><span class="pl-kos">)</span> <span class="pl-c1">==</span> <span class="pl-s">'relative'</span><span class="pl-kos">,</span> <span class="pl-s">'message: Add a CSS rule to specify that the &lt;code&gt;h2&lt;/code&gt; has a &lt;code&gt;position&lt;/code&gt; set to &lt;code&gt;relative&lt;/code&gt;.'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">assert</span><span class="pl-kos">(</span><span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">'h2'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">'top'</span><span class="pl-kos">)</span> <span class="pl-c1">==</span> <span class="pl-s">'15px'</span><span class="pl-kos">,</span> <span class="pl-s">'message: Use a CSS offset to relatively position the &lt;code&gt;h2&lt;/code&gt; 15px away from the &lt;code&gt;top&lt;/code&gt; of where it normally sits.'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <h4 dir="auto">Browser Information</h4> <ul dir="auto"> <li>Browser Name, Version: Firefox 48.0.1</li> <li>Operating System: Mac OS X, El Capitan v10.11.3</li> <li>Mobile, Desktop, or Tablet:</li> </ul>
1
<p dir="auto">[x] 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.</p> <p dir="auto">It appears that https cannot work with nextjs in development but there is no documentation or direct answer to this question in the issues history.</p> <p dir="auto">I want to use https through the node https module on my local machine and communicate in dev environment over https to secure api's.</p> <p dir="auto">As far as I can tell the https server does not work properly. While I can create the https server the connection is not considered secure by chrome. I do see in the server specific http server handling, is this not accessible through the api to configure?</p> <p dir="auto">in the server I am using</p> <p dir="auto"><code class="notranslate">const handle = app.getRequestHandler(); </code><br> to handle the requests, as far as I can tell this should be all that I need to do to server the pages securely.</p> <p dir="auto"><code class="notranslate">return handle(req, res, parsedUrl) </code></p> <p dir="auto">next v 3.0.1-beta.8<br> node v 7.8.0<br> OS osx</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?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">My index.html file is at this URL: <code class="notranslate">mydomain.com/test-proj/test-slug/</code></p> <p dir="auto">When I put a prefetch attribute on my Link tag, like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;Link prefetch href={`${publicRuntimeConfig.ASSET_PATH}/about`}&gt; &lt;a&gt;About this project&lt;/a&gt; &lt;/Link&gt;"><pre class="notranslate"><code class="notranslate">&lt;Link prefetch href={`${publicRuntimeConfig.ASSET_PATH}/about`}&gt; &lt;a&gt;About this project&lt;/a&gt; &lt;/Link&gt; </code></pre></div> <p dir="auto">It should prefetch the code at this address: <code class="notranslate">mydomain.com/test-proj/test-slug/_next/8a75d7ea-0f56-4f5e-880e-5ca422462521/page/about.js</code></p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Instead, prefetch attempts to fetch the code at this address: <code class="notranslate">mydomain.com/test-proj/test-slug/_next/8a75d7ea-0f56-4f5e-880e-5ca422462521/page/test-proj/test-slug/about.js</code></p> <p dir="auto">If the link looks like this instead, the prefetch works properly, but the actual link goes to <code class="notranslate">mydomain.com/about</code> which 404s on refresh.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;Link prefetch href={`/about`}&gt; &lt;a&gt;About this project&lt;/a&gt; &lt;/Link&gt;"><pre class="notranslate"><code class="notranslate">&lt;Link prefetch href={`/about`}&gt; &lt;a&gt;About this project&lt;/a&gt; &lt;/Link&gt; </code></pre></div> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Create a project hosted on a non-root domain path.</li> <li>Create a link to a page with a prefetch attribute.</li> <li>See that the prefetch fails when the link has its asset path provided.</li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">I would like to prefetch content, but can't until this is resolved.</p> <h2 dir="auto">Your Environment</h2> <p dir="auto">This bug was observed using Chrome on Mac OS Sierra.</p>
0
<p dir="auto"><a href="https://travis-ci.org/pandas-dev/pandas/jobs/348215410#L2717" rel="nofollow">https://travis-ci.org/pandas-dev/pandas/jobs/348215410#L2717</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[gw1] linux -- Python 3.6.4 /home/travis/miniconda3/envs/pandas/bin/python self = &lt;pandas.tests.frame.test_analytics.TestDataFrameAnalytics object at 0x7f86fa5d54a8&gt; axis = 0 @pytest.mark.parametrize(&quot;axis&quot;, [0, 1, None]) def test_clip_against_frame(self, axis): df = DataFrame(np.random.randn(1000, 2)) lb = DataFrame(np.random.randn(1000, 2)) ub = lb + 1 &gt; clipped_df = df.clip(lb, ub, axis=axis) pandas/tests/frame/test_analytics.py:2066: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pandas/core/generic.py:5605: in clip if np.any(pd.isnull(lower)): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = 0 False 1 False dtype: bool def __nonzero__(self): raise ValueError(&quot;The truth value of a {0} is ambiguous. &quot; &quot;Use a.empty, a.bool(), a.item(), a.any() or a.all().&quot; &gt; .format(self.__class__.__name__)) E ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()."><pre class="notranslate"><code class="notranslate">[gw1] linux -- Python 3.6.4 /home/travis/miniconda3/envs/pandas/bin/python self = &lt;pandas.tests.frame.test_analytics.TestDataFrameAnalytics object at 0x7f86fa5d54a8&gt; axis = 0 @pytest.mark.parametrize("axis", [0, 1, None]) def test_clip_against_frame(self, axis): df = DataFrame(np.random.randn(1000, 2)) lb = DataFrame(np.random.randn(1000, 2)) ub = lb + 1 &gt; clipped_df = df.clip(lb, ub, axis=axis) pandas/tests/frame/test_analytics.py:2066: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pandas/core/generic.py:5605: in clip if np.any(pd.isnull(lower)): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = 0 False 1 False dtype: bool def __nonzero__(self): raise ValueError("The truth value of a {0} is ambiguous. " "Use a.empty, a.bool(), a.item(), a.any() or a.all()." &gt; .format(self.__class__.__name__)) E ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). </code></pre></div>
<p dir="auto">Reproducible example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [10]: df = pd.DataFrame({'col': range(9)}, index=pd.MultiIndex.from_product([['A0', 'A1', 'A2'], ['B0', 'B1', 'B2']], names=[1,2])) In [11]: df Out[11]: col 1 2 A0 B0 0 B1 1 B2 2 A1 B0 3 B1 4 B2 5 A2 B0 6 B1 7 B2 8 In [12]: pd.options.display.max_rows = 4 In [13]: df Out[13]: col 1 2 A0 A0 0 A0 1 ... ... A2 A2 7 A2 8 [9 rows x 1 columns]"><pre class="notranslate"><code class="notranslate">In [10]: df = pd.DataFrame({'col': range(9)}, index=pd.MultiIndex.from_product([['A0', 'A1', 'A2'], ['B0', 'B1', 'B2']], names=[1,2])) In [11]: df Out[11]: col 1 2 A0 B0 0 B1 1 B2 2 A1 B0 3 B1 4 B2 5 A2 B0 6 B1 7 B2 8 In [12]: pd.options.display.max_rows = 4 In [13]: df Out[13]: col 1 2 A0 A0 0 A0 1 ... ... A2 A2 7 A2 8 [9 rows x 1 columns] </code></pre></div> <p dir="auto">So the truncated repr shows incorrectly the first index level (with integer level name <code class="notranslate">1</code>) again for the second level.</p> <hr> <p dir="auto">Original post:</p> <h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" import wget import pandas import pickle url = 'https://www.dropbox.com/s/aldllo0bi3m3wkl/stock?dl=1' filename = wget.download(url) df = pickle.load(open(filename)) df #bad display, index duplicated? df.head() #expected display "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">wget</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">import</span> <span class="pl-s1">pickle</span> <span class="pl-s1">url</span> <span class="pl-c1">=</span> <span class="pl-s">'https://www.dropbox.com/s/aldllo0bi3m3wkl/stock?dl=1'</span> <span class="pl-s1">filename</span> <span class="pl-c1">=</span> <span class="pl-s1">wget</span>.<span class="pl-en">download</span>(<span class="pl-s1">url</span>) <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pickle</span>.<span class="pl-en">load</span>(<span class="pl-en">open</span>(<span class="pl-s1">filename</span>)) <span class="pl-s1">df</span> <span class="pl-c">#bad display, index duplicated?</span> <span class="pl-s1">df</span>.<span class="pl-en">head</span>() <span class="pl-c">#expected display</span></pre></div> <h4 dir="auto">Problem description</h4> <table border="1" role="table"> <thead> <tr> <th></th> <th></th> <th>merged</th> </tr> <tr> <th>1</th> <th>2</th> <th></th> </tr> </thead> <tbody> <tr> <th>a.</th> <th>a.</th> <td>2</td> </tr> <tr> <th>abel</th> <th>abel</th> <td>1</td> </tr> <tr> <th>agnes</th> <th>agnes</th> <td>2</td> </tr> <tr> <th rowspan="2" valign="top">alain</th> <th>alain</th> <td>8</td> </tr> <tr> <th>alain</th> <td>2</td> </tr> </tbody> </table> <p dir="auto">I have created a multi-index based on 2 columns .<br> Those two columns wont appear properly, index_column "2" being duplicated from "1"<br> When displaying up to the 60th first rows of dataframe, it's fine, then it duplicates again the column 1 in the column 2.</p> <h4 dir="auto">Expected Output</h4> <table border="1" role="table"> <thead> <tr> <th></th> <th></th> <th>merged</th> </tr> <tr> <th>1</th> <th>2</th> <th></th> </tr> </thead> <tbody> <tr> <th>a.</th> <th>masson-dubois</th> <td>2</td> </tr> <tr> <th>abel</th> <th>pinchard</th> <td>1</td> </tr> <tr> <th>agnes</th> <th>paquet</th> <td>2</td> </tr> <tr> <th rowspan="2" valign="top">alain</th> <th>corcia</th> <td>8</td> </tr> <tr> <th>hudelot-noellat</th> <td>2</td> </tr> </tbody></table> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> INSTALLED VERSIONS ------------------ commit: None python: 2.7.9.final.0 python-bits: 64 OS: Linux OS-release: 4.9.4-moby machine: x86_64 processor: byteorder: little LC_ALL: None LANG: None LOCALE: None.None <p dir="auto">pandas: 0.19.1<br> nose: None<br> pip: 9.0.1<br> setuptools: 28.8.0<br> Cython: None<br> numpy: 1.11.2<br> scipy: 0.18.0<br> statsmodels: 0.6.1<br> xarray: None<br> IPython: 5.1.0<br> sphinx: None<br> patsy: 0.4.1<br> dateutil: 2.5.0<br> pytz: 2016.7<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: None<br> matplotlib: 1.5.3<br> openpyxl: None<br> xlrd: None<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: 4.5.1<br> html5lib: None<br> httplib2: 0.9.2<br> apiclient: 1.5.1<br> sqlalchemy: None<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.8<br> boto: None<br> pandas_datareader: None</p> </details>
0
<blockquote> <p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jedireza/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jedireza">@jedireza</a></p> </blockquote> <h3 dir="auto">Bug information</h3> <ul dir="auto"> <li><strong>Babel version:</strong> 6.13.2</li> <li><strong>Node version:</strong> 6.3.1</li> <li><strong>npm version:</strong> 3.10.3</li> </ul> <h3 dir="auto">Options</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ filename: filename, sourceMap: 'inline', sourceFileName: filename, auxiliaryCommentBefore: '$lab:coverage:off$', auxiliaryCommentAfter: '$lab:coverage:on$' }"><pre class="notranslate"><code class="notranslate">{ filename: filename, sourceMap: 'inline', sourceFileName: filename, auxiliaryCommentBefore: '$lab:coverage:off$', auxiliaryCommentAfter: '$lab:coverage:on$' } </code></pre></div> <h3 dir="auto">Description</h3> <p dir="auto">I noticed a case when testing a class with only static methods that my code coverage misses <code class="notranslate">_classCallCheck</code>.</p> <p dir="auto">A simple demo repo is setup here: <a href="https://github.com/jedireza/lab-es6">https://github.com/jedireza/lab-es6</a></p> <p dir="auto">{F80637}</p>
<p dir="auto">As per <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="86859373" data-permission-text="Title is private" data-url="https://github.com/nlf/lab-babel/issues/4" data-hovercard-type="pull_request" data-hovercard-url="/nlf/lab-babel/pull/4/hovercard?comment_id=123840734&amp;comment_type=issue_comment" href="https://github.com/nlf/lab-babel/pull/4#issuecomment-123840734">nlf/lab-babel#4 (comment)</a></p> <p dir="auto">The auxiliaryComment before/after are working awesomely but they aren't applied to the <code class="notranslate">_classCallCheck</code> method call in a class constructor. If they were applied to that line, lab would be able to report coverage correctly.</p> <p dir="auto">Thanks!</p> <p dir="auto">EDIT by hzoo: also <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="175603675" data-permission-text="Title is private" data-url="https://github.com/babel/babel/issues/4450" data-hovercard-type="issue" data-hovercard-url="/babel/babel/issues/4450/hovercard" href="https://github.com/babel/babel/issues/4450">#4450</a> + <code class="notranslate">_possibleConstructorReturn</code></p>
1
<p dir="auto">Internet explorer and Firefox ignores width and height of images when embedded in forum using img tag, ok in Chrome . Bootstrap v2.3.1</p> <p dir="auto">Bootstrap css:</p> <p dir="auto">img {<br> width: auto\9;<br> height: auto;<br> max-width: 100%;<br> vertical-align: middle;<br> border: 0;<br> -ms-interpolation-mode: bicubic;<br> }</p> <p dir="auto">bootstrap.min.css<br> img{max-width:100%;width:auto\9;height:auto;vertical-align:middle;border:0;-ms-interpolation-mode:bicubic;}</p> <p dir="auto">If i remove max-width:100% then the problem i am having on FF and IE9 also appears in chrome.</p>
1
<p dir="auto">There are a few other related issues regarding to this problem. But I think none of them explained why this is really needed.</p> <p dir="auto">asset() by default, will only output a path that is absolute under the current domain. If assets_base_urls is set then it will output an absolute url with domain. This is generally fine in most cases. However if twig is used to generate an email template, we will always want an absolute url with domain name regardless of the assets_base_urls setting.</p> <p dir="auto">Given that it is not easily possible to detect whether assets_base_urls is set, a better alternative is to accept a second parameter for asset(). If assets_base_urls is not set, then it will use the current domain and scheme. If otherwise then it will simply follow the original behaviour.</p>
<p dir="auto">Hey guys!</p> <p dir="auto">Currently, there's no standard way of retrieving the absolute URL to an asset. This would be useful when generating asset paths in a template for an email. Would be cool a function like:</p> <div class="highlight highlight-text-html-twig notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{{ asset_url('images/foo.jpg') }}"><pre class="notranslate">{{ asset_url(<span class="pl-s"><span class="pl-pds">'</span>images/foo.jpg<span class="pl-pds">'</span></span>) }}</pre></div> <p dir="auto">The current solution is not pratical and breaks when using CDN.</p> <p dir="auto">Thanks,<br> Marcos</p>
1
<h3 dir="auto">Description</h3> <p dir="auto"><code class="notranslate">jax.scipy.special.betaln</code> becomes very inaccurate for large inputs.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/391217/202057219-814b0ca5-ea8c-41c0-8f5c-748e19fa8fe0.png"><img width="608" alt="Screen Shot 2022-11-15 at 4 54 10 PM" src="https://user-images.githubusercontent.com/391217/202057219-814b0ca5-ea8c-41c0-8f5c-748e19fa8fe0.png" style="max-width: 100%;"></a></p> <p dir="auto">The image is comparing jax, scipy, and a jax version I made that parallels scipy's version (at the expense of duplicated work, due to the evaluation of both branches).</p> <p dir="auto">The more accurate jax version can be found <a href="https://gist.github.com/imh/b6e3e7e2ea3224e365360cea85578240">here</a>. I would be happy to open up a PR for it, if someone could answer the following:</p> <ul dir="auto"> <li>If this went in <code class="notranslate">jax._src.scipy.special</code>, where should I import <code class="notranslate">jnp.where</code> from to avoid circular dependencies?</li> <li>Since I just ported (two branches of) of scipy's version of <code class="notranslate">betaln</code>, I expect there may be be license issues including it in jax. Is that the case? Scipy's license is linked in the ported version.</li> </ul> <h3 dir="auto">What jax/jaxlib version are you using?</h3> <p dir="auto">0.3.23</p> <h3 dir="auto">Which accelerator(s) are you using?</h3> <p dir="auto">CPU</p> <h3 dir="auto">Additional system info</h3> <p dir="auto">MacOS 12.6</p> <h3 dir="auto">NVIDIA GPU info</h3> <p dir="auto"><em>No response</em></p>
<p dir="auto">Analogous to <a href="https://github.com/HIPS/autograd/blob/c6f630a5ec18bd30f1485bc0dbbccb8664c77510/autograd/differential_operators.py#L192-L202"><code class="notranslate">checkpoint</code> in Autograd</a> (but handling closed-over tracers).</p>
0
<p dir="auto">by <strong>arnehormann</strong>:</p> <pre class="notranslate">What is the expected output? There should be a way to access the full information a driver has for result columns. Workarounds are brittle and slow. They depend on the struct layout, require reflect or unsafe and involve some duplication. What do you see instead? I can only get the names by calling Columns(). The rest of the result metadata can not be retrieved. Please provide any additional information below. I posted a proposal on go-nuts: <a href="https://groups.google.com/forum/#" rel="nofollow">https://groups.google.com/forum/#</a>!topic/golang-nuts/2aLctcVyp6Q In short, I propose to add a new interface to database/sql/driver that passes a callback function to the driver. The callback is returned after a type assertion in database/sql.Register. It can be used to get the driver.Rows implementation given database/sql/Row[s]. The native Rows implementation by the driver is returned as interface{}. Given this function, a driver can decide to expose more detailed metadata for the result columns by implementing the interface and providing an exported function that retrieves the metadata from *Row or *Rows.</pre>
<p dir="auto">Please expose original database column type at least as string. this is currently so restricting on this package. this will help us to do some level dynamic column value parsing</p>
1
<p dir="auto">I am using Axios in my most of my react native projects but I have never met this strange error. I am trying to do a post request to my server but it always giving me Network Error. I tried to do with curl and it worked perfectly and I also tried to visit the IP address from my mobile using a browser and it worked there too. When I try to run the server locally it works perfectly (via reverse TCP)</p>
<p dir="auto"><strong>Bug</strong><br> Hello, How can i fix duplicate POST and DELETE axios request and i think PUT AND PATCH also. whenever i submit the data or deleting the data using the code below i get duplicate request and response. on the first request it works fine, on the second request a duplicate request/response will happen.</p> <p dir="auto"><strong>Expected behavior</strong><br> Remove Duplicate Request and Response.</p> <p dir="auto"><strong>Code</strong></p> <p dir="auto"><strong>DELETE REQUEST</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function setDeleteModal(event) { const dataToBeDelete = event.target.getAttribute(&quot;id&quot;).toString(); reportsDeletemodal.classList.add(&quot;is-active&quot;); htmlClipped.classList.add(&quot;is-clipped&quot;); reportsDeleteClose.addEventListener(&quot;click&quot;, removeDeleteModal, false); async function ConfirmDelete(e) { e.preventDefault(); try { const responseData = await axios.delete( `/admin/reports/delete/report/${dataToBeDelete}`); } catch (error) { console.log(error); } reportsDeletemodal.classList.remove(&quot;is-active&quot;); htmlClipped.classList.remove(&quot;is-clipped&quot;); loadInitialPagination(); } function cancelDelete() { reportsDeletemodal.classList.remove(&quot;is-active&quot;); htmlClipped.classList.remove(&quot;is-clipped&quot;); } reportsModalConfirmBtn.addEventListener(&quot;click&quot;, ConfirmDelete, false); reportsModalCancelBtn.addEventListener(&quot;click&quot;, cancelDelete, false); } function removeDeleteModal() { reportsDeletemodal.classList.remove(&quot;is-active&quot;); htmlClipped.classList.remove(&quot;is-clipped&quot;); } for (let i = 0, index = removeReportsButtton.length; i &lt; index; i++) { removeReportsButtton[i].addEventListener(&quot;click&quot;, setDeleteModal, false); }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">setDeleteModal</span><span class="pl-kos">(</span><span class="pl-s1">event</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">dataToBeDelete</span> <span class="pl-c1">=</span> <span class="pl-s1">event</span><span class="pl-kos">.</span><span class="pl-c1">target</span><span class="pl-kos">.</span><span class="pl-en">getAttribute</span><span class="pl-kos">(</span><span class="pl-s">"id"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toString</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">reportsDeletemodal</span><span class="pl-kos">.</span><span class="pl-c1">classList</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span><span class="pl-s">"is-active"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">htmlClipped</span><span class="pl-kos">.</span><span class="pl-c1">classList</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span><span class="pl-s">"is-clipped"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">reportsDeleteClose</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span><span class="pl-s">"click"</span><span class="pl-kos">,</span> <span class="pl-s1">removeDeleteModal</span><span class="pl-kos">,</span> <span class="pl-c1">false</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">async</span> <span class="pl-k">function</span> <span class="pl-v">ConfirmDelete</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">e</span><span class="pl-kos">.</span><span class="pl-en">preventDefault</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">try</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">responseData</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-en">delete</span><span class="pl-kos">(</span> <span class="pl-s">`/admin/reports/delete/report/<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">dataToBeDelete</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">catch</span> <span class="pl-kos">(</span><span class="pl-s1">error</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">error</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-s1">reportsDeletemodal</span><span class="pl-kos">.</span><span class="pl-c1">classList</span><span class="pl-kos">.</span><span class="pl-en">remove</span><span class="pl-kos">(</span><span class="pl-s">"is-active"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">htmlClipped</span><span class="pl-kos">.</span><span class="pl-c1">classList</span><span class="pl-kos">.</span><span class="pl-en">remove</span><span class="pl-kos">(</span><span class="pl-s">"is-clipped"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">loadInitialPagination</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">function</span> <span class="pl-en">cancelDelete</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">reportsDeletemodal</span><span class="pl-kos">.</span><span class="pl-c1">classList</span><span class="pl-kos">.</span><span class="pl-en">remove</span><span class="pl-kos">(</span><span class="pl-s">"is-active"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">htmlClipped</span><span class="pl-kos">.</span><span class="pl-c1">classList</span><span class="pl-kos">.</span><span class="pl-en">remove</span><span class="pl-kos">(</span><span class="pl-s">"is-clipped"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-s1">reportsModalConfirmBtn</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span><span class="pl-s">"click"</span><span class="pl-kos">,</span> <span class="pl-v">ConfirmDelete</span><span class="pl-kos">,</span> <span class="pl-c1">false</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">reportsModalCancelBtn</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span><span class="pl-s">"click"</span><span class="pl-kos">,</span> <span class="pl-s1">cancelDelete</span><span class="pl-kos">,</span> <span class="pl-c1">false</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-en">removeDeleteModal</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">reportsDeletemodal</span><span class="pl-kos">.</span><span class="pl-c1">classList</span><span class="pl-kos">.</span><span class="pl-en">remove</span><span class="pl-kos">(</span><span class="pl-s">"is-active"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">htmlClipped</span><span class="pl-kos">.</span><span class="pl-c1">classList</span><span class="pl-kos">.</span><span class="pl-en">remove</span><span class="pl-kos">(</span><span class="pl-s">"is-clipped"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">let</span> <span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">index</span> <span class="pl-c1">=</span> <span class="pl-s1">removeReportsButtton</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">;</span> <span class="pl-s1">i</span> <span class="pl-c1">&lt;</span> <span class="pl-s1">index</span><span class="pl-kos">;</span> <span class="pl-s1">i</span><span class="pl-c1">++</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">removeReportsButtton</span><span class="pl-kos">[</span><span class="pl-s1">i</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span><span class="pl-s">"click"</span><span class="pl-kos">,</span> <span class="pl-s1">setDeleteModal</span><span class="pl-kos">,</span> <span class="pl-c1">false</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>POST REQUEST</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="async function insertDataIntoDatabase(event) { event.preventDefault(); addSuccessContainer.style.display = &quot;none&quot;; addErrorContainer.style.display = &quot;none&quot;; addSuccessContainer.innerHTML = &quot;&quot;; addErrorContainer.innerHTML = &quot;&quot;; let errorsHtml = &quot;&quot;; if (!reportsName.value || !reportsType.value || !reportsDescription.value || !reportsDocument.value === &quot;&quot;) { addErrorContainer.innerHTML = '&lt;p class=&quot;has-text-centered&quot;&gt;Incomplete Field or invalid Field! please Complete Required fields!&lt;/p&gt;'; addErrorContainer.style.display = &quot;block&quot;; } else { try { const responseAddData = await axios.post(&quot;/admin/reports&quot;,new FormData(addReportForm)); console.log(responseAddData); if (responseAddData.data.errors) { for (let i = 0, index = responseAddData.data.errors.length; i &lt; index; i++) { errorsHtml += `&lt;p class=&quot;has-text-left&quot;&gt;${responseAddData.data.errors[i]}&lt;/p&gt;`; } addErrorContainer.innerHTML = errorsHtml; addErrorContainer.style.display = &quot;block&quot;; } else if (!responseAddData.data.errors) { addSuccessContainer.innerHTML = '&lt;p class=&quot;has-text-centered&quot;&gt;Data Successfully Added!&lt;/p&gt;'; addSuccessContainer.style.display = &quot;block&quot;; loadInitialPagination(); } } catch (error) { console.log(error.response); } } } addReportForm.addEventListener(&quot;submit&quot;, insertDataIntoDatabase, false); reportsAddCancel.addEventListener(&quot;click&quot;, removeAddModalContainer, false); addReportsButton.addEventListener( &quot;click&quot;,showAddModalContainer,false);"><pre class="notranslate"><span class="pl-k">async</span> <span class="pl-k">function</span> <span class="pl-en">insertDataIntoDatabase</span><span class="pl-kos">(</span><span class="pl-s1">event</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">event</span><span class="pl-kos">.</span><span class="pl-en">preventDefault</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">addSuccessContainer</span><span class="pl-kos">.</span><span class="pl-c1">style</span><span class="pl-kos">.</span><span class="pl-c1">display</span> <span class="pl-c1">=</span> <span class="pl-s">"none"</span><span class="pl-kos">;</span> <span class="pl-s1">addErrorContainer</span><span class="pl-kos">.</span><span class="pl-c1">style</span><span class="pl-kos">.</span><span class="pl-c1">display</span> <span class="pl-c1">=</span> <span class="pl-s">"none"</span><span class="pl-kos">;</span> <span class="pl-s1">addSuccessContainer</span><span class="pl-kos">.</span><span class="pl-c1">innerHTML</span> <span class="pl-c1">=</span> <span class="pl-s">""</span><span class="pl-kos">;</span> <span class="pl-s1">addErrorContainer</span><span class="pl-kos">.</span><span class="pl-c1">innerHTML</span> <span class="pl-c1">=</span> <span class="pl-s">""</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">errorsHtml</span> <span class="pl-c1">=</span> <span class="pl-s">""</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-s1">reportsName</span><span class="pl-kos">.</span><span class="pl-c1">value</span> <span class="pl-c1">||</span> <span class="pl-c1">!</span><span class="pl-s1">reportsType</span><span class="pl-kos">.</span><span class="pl-c1">value</span> <span class="pl-c1">||</span> <span class="pl-c1">!</span><span class="pl-s1">reportsDescription</span><span class="pl-kos">.</span><span class="pl-c1">value</span> <span class="pl-c1">||</span> <span class="pl-c1">!</span><span class="pl-s1">reportsDocument</span><span class="pl-kos">.</span><span class="pl-c1">value</span> <span class="pl-c1">===</span> <span class="pl-s">""</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">addErrorContainer</span><span class="pl-kos">.</span><span class="pl-c1">innerHTML</span> <span class="pl-c1">=</span> <span class="pl-s">'&lt;p class="has-text-centered"&gt;Incomplete Field or invalid Field! please Complete Required fields!&lt;/p&gt;'</span><span class="pl-kos">;</span> <span class="pl-s1">addErrorContainer</span><span class="pl-kos">.</span><span class="pl-c1">style</span><span class="pl-kos">.</span><span class="pl-c1">display</span> <span class="pl-c1">=</span> <span class="pl-s">"block"</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-k">try</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">responseAddData</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-en">post</span><span class="pl-kos">(</span><span class="pl-s">"/admin/reports"</span><span class="pl-kos">,</span><span class="pl-k">new</span> <span class="pl-v">FormData</span><span class="pl-kos">(</span><span class="pl-s1">addReportForm</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">responseAddData</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">responseAddData</span><span class="pl-kos">.</span><span class="pl-c1">data</span><span class="pl-kos">.</span><span class="pl-c1">errors</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">let</span> <span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">index</span> <span class="pl-c1">=</span> <span class="pl-s1">responseAddData</span><span class="pl-kos">.</span><span class="pl-c1">data</span><span class="pl-kos">.</span><span class="pl-c1">errors</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">;</span> <span class="pl-s1">i</span> <span class="pl-c1">&lt;</span> <span class="pl-s1">index</span><span class="pl-kos">;</span> <span class="pl-s1">i</span><span class="pl-c1">++</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">errorsHtml</span> <span class="pl-c1">+=</span> <span class="pl-s">`&lt;p class="has-text-left"&gt;<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">responseAddData</span><span class="pl-kos">.</span><span class="pl-c1">data</span><span class="pl-kos">.</span><span class="pl-c1">errors</span><span class="pl-kos">[</span><span class="pl-s1">i</span><span class="pl-kos">]</span><span class="pl-kos">}</span></span>&lt;/p&gt;`</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-s1">addErrorContainer</span><span class="pl-kos">.</span><span class="pl-c1">innerHTML</span> <span class="pl-c1">=</span> <span class="pl-s1">errorsHtml</span><span class="pl-kos">;</span> <span class="pl-s1">addErrorContainer</span><span class="pl-kos">.</span><span class="pl-c1">style</span><span class="pl-kos">.</span><span class="pl-c1">display</span> <span class="pl-c1">=</span> <span class="pl-s">"block"</span><span class="pl-kos">;</span> <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-c1">!</span><span class="pl-s1">responseAddData</span><span class="pl-kos">.</span><span class="pl-c1">data</span><span class="pl-kos">.</span><span class="pl-c1">errors</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">addSuccessContainer</span><span class="pl-kos">.</span><span class="pl-c1">innerHTML</span> <span class="pl-c1">=</span> <span class="pl-s">'&lt;p class="has-text-centered"&gt;Data Successfully Added!&lt;/p&gt;'</span><span class="pl-kos">;</span> <span class="pl-s1">addSuccessContainer</span><span class="pl-kos">.</span><span class="pl-c1">style</span><span class="pl-kos">.</span><span class="pl-c1">display</span> <span class="pl-c1">=</span> <span class="pl-s">"block"</span><span class="pl-kos">;</span> <span class="pl-en">loadInitialPagination</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">catch</span> <span class="pl-kos">(</span><span class="pl-s1">error</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">error</span><span class="pl-kos">.</span><span class="pl-c1">response</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-s1">addReportForm</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span><span class="pl-s">"submit"</span><span class="pl-kos">,</span> <span class="pl-s1">insertDataIntoDatabase</span><span class="pl-kos">,</span> <span class="pl-c1">false</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">reportsAddCancel</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span><span class="pl-s">"click"</span><span class="pl-kos">,</span> <span class="pl-s1">removeAddModalContainer</span><span class="pl-kos">,</span> <span class="pl-c1">false</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">addReportsButton</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span> <span class="pl-s">"click"</span><span class="pl-kos">,</span><span class="pl-s1">showAddModalContainer</span><span class="pl-kos">,</span><span class="pl-c1">false</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Environment:</strong></p> <ul dir="auto"> <li>Axios 0.19.2</li> <li>OS: Windows 10</li> <li>Chrome</li> <li>Version 80.0.3987.87</li> <li>Polyfill.io v3 with async/await feature</li> <li>Laravel 6.0</li> </ul> <p dir="auto"><strong>DATABASE</strong><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13129014/74375736-d56d1200-4e1b-11ea-84f5-86be6262ea00.png"><img src="https://user-images.githubusercontent.com/13129014/74375736-d56d1200-4e1b-11ea-84f5-86be6262ea00.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><strong>POST RESPONSE</strong><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13129014/74375609-98088480-4e1b-11ea-936b-7e0a30a36366.png"><img src="https://user-images.githubusercontent.com/13129014/74375609-98088480-4e1b-11ea-936b-7e0a30a36366.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><strong>DELETE RESPONSE</strong><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13129014/74375830-03525680-4e1c-11ea-8744-68ef5c4f0d6a.png"><img src="https://user-images.githubusercontent.com/13129014/74375830-03525680-4e1c-11ea-8744-68ef5c4f0d6a.png" alt="image" style="max-width: 100%;"></a></p>
0
<p dir="auto">I'm seeing an issue when PdoSessionStorage is enabled where values set on the user's session are not being saved at all.</p> <p dir="auto">More details at the forum -&gt; <a href="http://forum.symfony-project.org/viewtopic.php?f=23&amp;t=51646" rel="nofollow">http://forum.symfony-project.org/viewtopic.php?f=23&amp;t=51646</a></p> <p dir="auto">I'm using PHP 5.4.4 and Symfony 2.1.2 (just updated using php composer.phar update).</p> <p dir="auto">I appreciate any help with this problem.</p>
<p dir="auto">Image a website where content can be created in 80 languages, but the team in charge of translating the UI can only translate it in two languages.</p> <p dir="auto">The UI locale may be given with an url parameter named <code class="notranslate">_locale</code>, while the content local may be given with an url parameter named <code class="notranslate">content_locale</code>. It would be nice to be able to reuse the <code class="notranslate">LocaleListener</code> to handle both cases, which would mean having a <code class="notranslate">parameter_name</code> string dependency that would be used in the class instead of the hardcoded <code class="notranslate">_locale</code> and would default to it. For the moment, my team has copy / pasted the whole class because private properties make it hard to extend, which, I'm given to understand after reading <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fabpot/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fabpot">@fabpot</a> 's <a href="http://fabien.potencier.org/article/47/pragmatism-over-theory-protected-vs-private" rel="nofollow">article</a>, is by design, in order to let feature requests like this one be formulated.</p>
0
<p dir="auto">try this:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if(true){ //} }"><pre class="notranslate"><span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">{</span> <span class="pl-c">//}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/10367616/7416674/64150b6c-ef61-11e4-886f-b9e082f0c49f.png"><img src="https://cloud.githubusercontent.com/assets/10367616/7416674/64150b6c-ef61-11e4-886f-b9e082f0c49f.png" alt="zaznaczenie_001" style="max-width: 100%;"></a></p>
<p dir="auto">Related: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="46850008" data-permission-text="Title is private" data-url="https://github.com/lee-dohm/emacs-flow/issues/3" data-hovercard-type="issue" data-hovercard-url="/lee-dohm/emacs-flow/issues/3/hovercard" href="https://github.com/lee-dohm/emacs-flow/issues/3">lee-dohm/emacs-flow#3</a></p> <p dir="auto">Repro case can be found (with permission) at: <a href="https://gist.github.com/debtosh/e5b25c7719867ec56382">https://gist.github.com/debtosh/e5b25c7719867ec56382</a></p> <h2 dir="auto">Repro Steps</h2> <ol dir="auto"> <li>Open a new file</li> <li>Paste in the text from the Gist linked above</li> <li>Set the grammar to C++</li> <li>Place the cursor after the brace at the end of line 2</li> </ol> <p dir="auto"><strong>Expected:</strong> Matches brace on line 33<br> <strong>Actual:</strong> Does not match</p> <ol dir="auto"> <li>Place the cursor after the brace <em>in the comment</em> at the end of line 20</li> </ol> <p dir="auto"><strong>Expected:</strong> Does not match<br> <strong>Actual:</strong> Matches brace on line 33</p> <p dir="auto">If the braces at the end of the comment lines are deleted, all braces match as they would be expected to.</p>
1