text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<p dir="auto">Hi,</p>
<p dir="auto">I am a newbie to Elasticsearch, i was going through the code and found lack of Documentation. Because of which lot of confusion about what is happening.</p>
<p dir="auto">As i am going through the code (fresh eye) will like to add JavaDocs while browsing the code.</p>
|
<p dir="auto">A hosted version of the Javadocs will greatly help out on the mailing-list/forum when trying to point out a class/method to someone. The online documentation is great for illustrating concepts, but something at the class level would also help</p>
| 1 |
<h3 dir="auto"><code class="notranslate">savefig</code> saves cropped images by default.</h3>
<h3 dir="auto"><strong>Bug summary</strong></h3>
<p dir="auto">It's probably an issue that almost everybody who uses matplotlib would have encountered. If you generate a figure - which often contains axis labels and legends - and save it with default settings, you'll get a cropped image.</p>
<p dir="auto">It's a duplicate of <a href="https://stackoverflow.com/q/61192115/3521099" rel="nofollow">my question on stackoverflow</a>.</p>
<h4 dir="auto"><strong>Code for reproduction</strong></h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt
def plot():
plt.figure(figsize=[3,3],linewidth=5,edgecolor='r')
ax=plt.subplot()
ax.plot(range(10),range(10),label='label')
ax.set_xlabel('xlabel\nxlabel\nxlabel')
ax.set_ylabel('ylabel\nylabel\nylabel')
ax.legend(bbox_to_anchor=[1,1])
plot()
plt.savefig('no_tight_layout.png')"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">def</span> <span class="pl-en">plot</span>():
<span class="pl-s1">plt</span>.<span class="pl-en">figure</span>(<span class="pl-s1">figsize</span><span class="pl-c1">=</span>[<span class="pl-c1">3</span>,<span class="pl-c1">3</span>],<span class="pl-s1">linewidth</span><span class="pl-c1">=</span><span class="pl-c1">5</span>,<span class="pl-s1">edgecolor</span><span class="pl-c1">=</span><span class="pl-s">'r'</span>)
<span class="pl-s1">ax</span><span class="pl-c1">=</span><span class="pl-s1">plt</span>.<span class="pl-en">subplot</span>()
<span class="pl-s1">ax</span>.<span class="pl-en">plot</span>(<span class="pl-en">range</span>(<span class="pl-c1">10</span>),<span class="pl-en">range</span>(<span class="pl-c1">10</span>),<span class="pl-s1">label</span><span class="pl-c1">=</span><span class="pl-s">'label'</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">set_xlabel</span>(<span class="pl-s">'xlabel<span class="pl-cce">\n</span>xlabel<span class="pl-cce">\n</span>xlabel'</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">set_ylabel</span>(<span class="pl-s">'ylabel<span class="pl-cce">\n</span>ylabel<span class="pl-cce">\n</span>ylabel'</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">legend</span>(<span class="pl-s1">bbox_to_anchor</span><span class="pl-c1">=</span>[<span class="pl-c1">1</span>,<span class="pl-c1">1</span>])
<span class="pl-en">plot</span>()
<span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'no_tight_layout.png'</span>)</pre></div>
<h4 dir="auto"><strong>Actual outcome</strong></h4>
<p dir="auto"><a href="https://i.stack.imgur.com/PcZgn.png" rel="nofollow"><img src="https://camo.githubusercontent.com/6255553d8a7b317d251abaf2ee0aba3bda398b2c7b5700a41e65bdfce21a990c/68747470733a2f2f692e737461636b2e696d6775722e636f6d2f50635a676e2e706e67" alt="no_tight_layout.png" data-canonical-src="https://i.stack.imgur.com/PcZgn.png" style="max-width: 100%;"></a></p>
<h3 dir="auto"><strong>Expected outcome</strong></h3>
<p dir="auto">If I generate the same plot in a jupyter notebook, without using <code class="notranslate">tight_layout</code> option, I see that all the elements of the plot are contained within the figure boundaries (shown in red).</p>
<p dir="auto"><a href="https://i.stack.imgur.com/TJh4r.png" rel="nofollow"><img src="https://camo.githubusercontent.com/97dd4a102df9934d1ac0643ada4079c80cf3a2a6d2fe2a681df473fb9ce27a01/68747470733a2f2f692e737461636b2e696d6775722e636f6d2f544a6834722e706e67" alt="jupyter notebook" data-canonical-src="https://i.stack.imgur.com/TJh4r.png" style="max-width: 100%;"></a></p>
<p dir="auto">This figure is generated in the output cell of a jupyter notebook(!).<br>
Then why it is not saved as it is? Why the saved image is by default different from the image jupyter notebook?<br>
In my opinion this is a very fundamental issue with matplotlib.<br>
Would't it make the lives of the users easier, if by default, all the elements are contained in the saved figure without the need of any workarounds?</p>
<h3 dir="auto"><strong>(Thanks to stackoverflow), we know few workarounds but each has a caveat of its own</strong>..</h3>
<p dir="auto"><strong>Workaround <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="611170" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/1" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/1/hovercard" href="https://github.com/matplotlib/matplotlib/pull/1">#1</a>:</strong> from within matplotlib: use of <strong><code class="notranslate">tight_layout</code></strong> option.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="plot()
plt.savefig('tight_layout.png',bbox_inches='tight')"><pre class="notranslate"><code class="notranslate">plot()
plt.savefig('tight_layout.png',bbox_inches='tight')
</code></pre></div>
<p dir="auto"><a href="https://i.stack.imgur.com/HQl7S.png" rel="nofollow"><img src="https://camo.githubusercontent.com/62053ded4f9b3fbf82a63cfe4ac37efd34b13b93735d1c96822e1aad0ec4c78d/68747470733a2f2f692e737461636b2e696d6775722e636f6d2f48516c37532e706e67" alt="tight_layout.png" data-canonical-src="https://i.stack.imgur.com/HQl7S.png" style="max-width: 100%;"></a></p>
<p dir="auto">It works for simple figures.<br>
<strong>However</strong>, in my experience, it is not reliable option in the case of more complex, multi-panel figures.<br>
<code class="notranslate">tight_layout</code> often fails with errors such as these:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="UserWarning: This figure includes Axes that are not compatible with tight_layout, so results might be incorrect.
UserWarning: tight_layout not applied: number of rows in subplot specifications must be multiples of one another."><pre class="notranslate"><code class="notranslate">UserWarning: This figure includes Axes that are not compatible with tight_layout, so results might be incorrect.
UserWarning: tight_layout not applied: number of rows in subplot specifications must be multiples of one another.
</code></pre></div>
<p dir="auto"><strong>Workaround <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="611662" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/2" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/2/hovercard" href="https://github.com/matplotlib/matplotlib/pull/2">#2</a>:</strong> from outside of matplotlib: save the image in SVG format and then convert to png. For example using <code class="notranslate">--export-area-drawing</code> option in the <strong>inkscape</strong> command line UI or "resize to page" option in the inkscape's GUI.</p>
<p dir="auto"><strong>However</strong>, in this case you have to depend on external softwares which are difficult to add as dependencies in python packages (currently conda only hosts Windows version of inkscape).</p>
<h3 dir="auto"><strong>So my question is..</strong></h3>
<p dir="auto">Why doesn't matplotlib save the whole figure by default?</p>
<hr>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: Ubuntu 18.04</li>
<li>Matplotlib version: 3.1.2 (this is issue reproducible in previous version too.)</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>):</li>
<li>Python version: 3.6.5</li>
<li>Jupyter version (if applicable): 1.0</li>
<li>Other libraries:</li>
</ul>
|
<p dir="auto">Some ideas:</p>
<ul dir="auto">
<li>Drop the duplicate "nothing" entries in the marker style combo box (at least present in 1.5.0rc3).</li>
<li>Sort the entries alphabetically.</li>
<li>Add an icon with a representation of the marker/line style.</li>
</ul>
| 0 |
<p dir="auto">Kubelet relies on <code class="notranslate">docker history</code> to get the size of layers for each image, so that it can deduplicate shared layers. This is fine for docker v1.9 or before. For docker 1.10+, docker stops generating a random image ID for each layer, and just uses the content addressable IDs. Except for the top layer, every other layer has a <code class="notranslate"><missing></code> ID. Kubelet relies on using the image layer IDs as keys, and this affects the calculation of total used space.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="======== d023c050c065 ===========
IMAGE CREATED CREATED BY SIZE COMMENT
d023c050c065 7 days ago /bin/sh -c #(nop) ENTRYPOINT &{["/dashboard" 0 B
<missing> 7 days ago /bin/sh -c #(nop) EXPOSE 9090/tcp 0 B
<missing> 7 days ago /bin/sh -c #(nop) ADD dir:6bf26a2727be5df090a 58.65 MB
<missing> 4 months ago /bin/sh -c #(nop) MAINTAINER Piotr Bryk <bryk 0 B
======== 18ea23a675da ===========
IMAGE CREATED CREATED BY SIZE COMMENT
18ea23a675da 2 weeks ago /bin/sh -c #(nop) CMD ["nginx" "-g" "daemon o 0 B
<missing> 2 weeks ago /bin/sh -c #(nop) EXPOSE 443/tcp 80/tcp 0 B
<missing> 2 weeks ago /bin/sh -c ln -sf /dev/stderr /var/log/nginx/ 11 B
<missing> 2 weeks ago /bin/sh -c ln -sf /dev/stdout /var/log/nginx/ 11 B
<missing> 2 weeks ago /bin/sh -c /tmp/build.sh 53.91 MB
<missing> 2 weeks ago /bin/sh -c #(nop) COPY file:bf2b48e7f6cbf1964 8.221 kB
<missing> 7 weeks ago /bin/sh -c #(nop) CMD ["/bin/sh"] 0 B
<missing> 7 weeks ago /bin/sh -c #(nop) ADD file:2df43ffb0761746c1f 56.57 MB "><pre class="notranslate"><code class="notranslate">======== d023c050c065 ===========
IMAGE CREATED CREATED BY SIZE COMMENT
d023c050c065 7 days ago /bin/sh -c #(nop) ENTRYPOINT &{["/dashboard" 0 B
<missing> 7 days ago /bin/sh -c #(nop) EXPOSE 9090/tcp 0 B
<missing> 7 days ago /bin/sh -c #(nop) ADD dir:6bf26a2727be5df090a 58.65 MB
<missing> 4 months ago /bin/sh -c #(nop) MAINTAINER Piotr Bryk <bryk 0 B
======== 18ea23a675da ===========
IMAGE CREATED CREATED BY SIZE COMMENT
18ea23a675da 2 weeks ago /bin/sh -c #(nop) CMD ["nginx" "-g" "daemon o 0 B
<missing> 2 weeks ago /bin/sh -c #(nop) EXPOSE 443/tcp 80/tcp 0 B
<missing> 2 weeks ago /bin/sh -c ln -sf /dev/stderr /var/log/nginx/ 11 B
<missing> 2 weeks ago /bin/sh -c ln -sf /dev/stdout /var/log/nginx/ 11 B
<missing> 2 weeks ago /bin/sh -c /tmp/build.sh 53.91 MB
<missing> 2 weeks ago /bin/sh -c #(nop) COPY file:bf2b48e7f6cbf1964 8.221 kB
<missing> 7 weeks ago /bin/sh -c #(nop) CMD ["/bin/sh"] 0 B
<missing> 7 weeks ago /bin/sh -c #(nop) ADD file:2df43ffb0761746c1f 56.57 MB
</code></pre></div>
<p dir="auto">On the other hand, we can get all the layers from inspecting the image, but there is no information about its sizes.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" "RootFS": {
"Type": "layers",
"Layers": [
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
"sha256:4636ee4859c26ceb06787821cbfb166a81ca82db61656ab01ae168d5e7dee664",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
]
}"><pre class="notranslate"><code class="notranslate"> "RootFS": {
"Type": "layers",
"Layers": [
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
"sha256:4636ee4859c26ceb06787821cbfb166a81ca82db61656ab01ae168d5e7dee664",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
]
}
</code></pre></div>
<p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vishh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vishh">@vishh</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ronnielai/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ronnielai">@ronnielai</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Random-Liu/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Random-Liu">@Random-Liu</a></p>
|
<ol dir="auto">
<li>
<p dir="auto">Followed the README.md for cluster setup with 4 nodes using</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ kubectl scale rc cassandra --replicas=4"><pre class="notranslate"><code class="notranslate">$ kubectl scale rc cassandra --replicas=4
</code></pre></div>
</li>
<li>
<p dir="auto">Following status command supposed to list all 4-nodes in cluster</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ kubectl exec -ti cassandra -- nodetool status"><pre class="notranslate"><code class="notranslate">$ kubectl exec -ti cassandra -- nodetool status
</code></pre></div>
</li>
</ol>
<p dir="auto">Instead of 4-nodes, we <strong>see just 1-node</strong>.</p>
<p dir="auto">Seems like the "KubernetesSeedProvider" is not doing the needed cluster discovery?</p>
| 0 |
<h3 dir="auto">First Check</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I added a very descriptive title to this issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I used the GitHub search to find a similar issue and didn't find it.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I searched the FastAPI documentation, with the integrated search.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already searched in Google "How to X in FastAPI" and didn't find any information.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already read and followed all the tutorial in the docs and didn't find an answer.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/samuelcolvin/pydantic">Pydantic</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/swagger-api/swagger-ui">Swagger UI</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/Redocly/redoc">ReDoc</a>.</li>
</ul>
<h3 dir="auto">Commit to Help</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I commit to help with one of those options <g-emoji class="g-emoji" alias="point_up_2" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f446.png">👆</g-emoji></li>
</ul>
<h3 dir="auto">Example Code</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class ControlValue(BaseModel):
"""V4l2 control value model"""
value: Union[int, str, List[int], TriggerSequenceValue, Any]
""": value of v4l2 control"""
class FrameSize(BaseModel):
"""Frame size model"""
width: int
height: int
class Config:
"""Config class"""
fields = {"width": {"example": 1024}, "height": {"example": 1024}}
class FrameResolution(FrameSize):
"""Video device frame resolution model"""
width: Optional[int] = None
height: Optional[int] = None
class CropRect(FrameSize):
"""Video device frame crop rectangle model"""
left: int = Field(default=..., example=0)
top: int = Field(default=..., example=0)
class ControlExamples:
"""Examples for controls API"""
name = {
"exposure": {
"summary": "Exposure Time",
"value": "Exposure Time, Absolute",
},
"gain": {"summary": "Gain", "value": "Gain"},
"red": {"summary": "Red Gain", "value": "Red Balance"},
"green": {"summary": "Green Gain", "value": "Green Balance"},
"blue": {"summary": "Blue Gain", "value": "Blue Balance"},
"fpn": {
"summary": "Fixed Pattern Noise Correction",
"value": "Fixed Pattern Noise Correction",
},
}
value = {
"exposure": {
"summary": "Exposure Time",
"value": {"value": 5000},
},
"gain": {"summary": "Gain", "value": {"value": 0}},
"red": {"summary": "Red Gain", "value": {"value": 16384}},
"green": {"summary": "Green Gain", "value": {"value": 16384}},
"blue": {"summary": "Blue Gain", "value": {"value": 16384}},
"array": {"summary": "Array Control", "value": {"value": [1, 2, 3]}},
}
get_control_responses = {
200: {
"description": "Success",
"content": {
"application/json": {
"examples": {
**ControlExamples.value,
"sensor type": {
"summary": "Sensor Type",
"value": {"value": "CMV4000v3 Bayer"},
},
}
}
},
},
}
@app.get(
V4L2_ROUTE + V4L2Endpoints.control + "/{ctrl_id_or_name}",
response_model=ControlValue,
responses=get_control_responses,
tags=[Tags.controls],
)
def get_control(
ctrl_id_or_name: Union[int, str] = Path( # noqa: B008
description="Id or Name of v4l2 control",
examples={
**ControlExamples.name,
"sensor type": {
"summary": "Sensor Type",
"value": "Sensor Type",
},
},
),
params: CommonParams = Depends(), # noqa: B008
) -> JSONResponse:
"""
Get value of single v4l2 control
Supports both normal and extended controls
"""
return check_exceptions(Camera.get_control, ctrl_id_or_name, params.dev)
set_control_responses = {
200: {
"description": "Success",
"content": {"application/json": {"examples": ControlExamples.value}},
},
}
@app.post(
V4L2_ROUTE + V4L2Endpoints.control + "/{ctrl_id_or_name}",
response_model=ControlValue,
responses=set_control_responses,
tags=[Tags.controls],
)
def set_control(
ctrl_id_or_name: Union[int, str] = Path( # noqa: B008
description="Id or Name of v4l2 control",
examples=ControlExamples.name,
),
value: ControlValue = Body( # noqa: B008
examples=ControlExamples.value, descripton="v4l2 control value"
),
params: CommonParams = Depends(), # noqa: B008
) -> JSONResponse:
"""
Set value of single v4l2 control
Supports both normal and extended controls
"""
return check_exceptions(Camera.set_control, ctrl_id_or_name, value, params.dev)
...
client = TestClient(app)
class TestControl:
"""Tests for 'control' endpoint"""
base_route = V4L2_ROUTE + V4L2Endpoints.control
def test_get_control(self):
control_name = "exposure time, absolute"
response = client.get(self.base_route + "/" + control_name)
assert response.status_code == 200
parse_obj_as(ControlValue, response.json())
def test_get_control_bad(self):
response = client.get(self.base_route + "/bla")
assert response.status_code == 422
def test_set_control(self):
control_name = "exposure time, absolute"
control_value = 5000
print(ControlValue.schema_json())
json_value = jsonable_encoder(ControlValue(value=control_value))
response = client.post(
self.base_route + "/" + control_name,
json=json_value,
)
assert response.status_code == 200
assert response.json() == json_value"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">ControlValue</span>(<span class="pl-v">BaseModel</span>):
<span class="pl-s">"""V4l2 control value model"""</span>
<span class="pl-s1">value</span>: <span class="pl-v">Union</span>[<span class="pl-s1">int</span>, <span class="pl-s1">str</span>, <span class="pl-v">List</span>[<span class="pl-s1">int</span>], <span class="pl-v">TriggerSequenceValue</span>, <span class="pl-v">Any</span>]
<span class="pl-s">""": value of v4l2 control"""</span>
<span class="pl-k">class</span> <span class="pl-v">FrameSize</span>(<span class="pl-v">BaseModel</span>):
<span class="pl-s">"""Frame size model"""</span>
<span class="pl-s1">width</span>: <span class="pl-s1">int</span>
<span class="pl-s1">height</span>: <span class="pl-s1">int</span>
<span class="pl-k">class</span> <span class="pl-v">Config</span>:
<span class="pl-s">"""Config class"""</span>
<span class="pl-s1">fields</span> <span class="pl-c1">=</span> {<span class="pl-s">"width"</span>: {<span class="pl-s">"example"</span>: <span class="pl-c1">1024</span>}, <span class="pl-s">"height"</span>: {<span class="pl-s">"example"</span>: <span class="pl-c1">1024</span>}}
<span class="pl-k">class</span> <span class="pl-v">FrameResolution</span>(<span class="pl-v">FrameSize</span>):
<span class="pl-s">"""Video device frame resolution model"""</span>
<span class="pl-s1">width</span>: <span class="pl-v">Optional</span>[<span class="pl-s1">int</span>] <span class="pl-c1">=</span> <span class="pl-c1">None</span>
<span class="pl-s1">height</span>: <span class="pl-v">Optional</span>[<span class="pl-s1">int</span>] <span class="pl-c1">=</span> <span class="pl-c1">None</span>
<span class="pl-k">class</span> <span class="pl-v">CropRect</span>(<span class="pl-v">FrameSize</span>):
<span class="pl-s">"""Video device frame crop rectangle model"""</span>
<span class="pl-s1">left</span>: <span class="pl-s1">int</span> <span class="pl-c1">=</span> <span class="pl-v">Field</span>(<span class="pl-s1">default</span><span class="pl-c1">=</span>..., <span class="pl-s1">example</span><span class="pl-c1">=</span><span class="pl-c1">0</span>)
<span class="pl-s1">top</span>: <span class="pl-s1">int</span> <span class="pl-c1">=</span> <span class="pl-v">Field</span>(<span class="pl-s1">default</span><span class="pl-c1">=</span>..., <span class="pl-s1">example</span><span class="pl-c1">=</span><span class="pl-c1">0</span>)
<span class="pl-k">class</span> <span class="pl-v">ControlExamples</span>:
<span class="pl-s">"""Examples for controls API"""</span>
<span class="pl-s1">name</span> <span class="pl-c1">=</span> {
<span class="pl-s">"exposure"</span>: {
<span class="pl-s">"summary"</span>: <span class="pl-s">"Exposure Time"</span>,
<span class="pl-s">"value"</span>: <span class="pl-s">"Exposure Time, Absolute"</span>,
},
<span class="pl-s">"gain"</span>: {<span class="pl-s">"summary"</span>: <span class="pl-s">"Gain"</span>, <span class="pl-s">"value"</span>: <span class="pl-s">"Gain"</span>},
<span class="pl-s">"red"</span>: {<span class="pl-s">"summary"</span>: <span class="pl-s">"Red Gain"</span>, <span class="pl-s">"value"</span>: <span class="pl-s">"Red Balance"</span>},
<span class="pl-s">"green"</span>: {<span class="pl-s">"summary"</span>: <span class="pl-s">"Green Gain"</span>, <span class="pl-s">"value"</span>: <span class="pl-s">"Green Balance"</span>},
<span class="pl-s">"blue"</span>: {<span class="pl-s">"summary"</span>: <span class="pl-s">"Blue Gain"</span>, <span class="pl-s">"value"</span>: <span class="pl-s">"Blue Balance"</span>},
<span class="pl-s">"fpn"</span>: {
<span class="pl-s">"summary"</span>: <span class="pl-s">"Fixed Pattern Noise Correction"</span>,
<span class="pl-s">"value"</span>: <span class="pl-s">"Fixed Pattern Noise Correction"</span>,
},
}
<span class="pl-s1">value</span> <span class="pl-c1">=</span> {
<span class="pl-s">"exposure"</span>: {
<span class="pl-s">"summary"</span>: <span class="pl-s">"Exposure Time"</span>,
<span class="pl-s">"value"</span>: {<span class="pl-s">"value"</span>: <span class="pl-c1">5000</span>},
},
<span class="pl-s">"gain"</span>: {<span class="pl-s">"summary"</span>: <span class="pl-s">"Gain"</span>, <span class="pl-s">"value"</span>: {<span class="pl-s">"value"</span>: <span class="pl-c1">0</span>}},
<span class="pl-s">"red"</span>: {<span class="pl-s">"summary"</span>: <span class="pl-s">"Red Gain"</span>, <span class="pl-s">"value"</span>: {<span class="pl-s">"value"</span>: <span class="pl-c1">16384</span>}},
<span class="pl-s">"green"</span>: {<span class="pl-s">"summary"</span>: <span class="pl-s">"Green Gain"</span>, <span class="pl-s">"value"</span>: {<span class="pl-s">"value"</span>: <span class="pl-c1">16384</span>}},
<span class="pl-s">"blue"</span>: {<span class="pl-s">"summary"</span>: <span class="pl-s">"Blue Gain"</span>, <span class="pl-s">"value"</span>: {<span class="pl-s">"value"</span>: <span class="pl-c1">16384</span>}},
<span class="pl-s">"array"</span>: {<span class="pl-s">"summary"</span>: <span class="pl-s">"Array Control"</span>, <span class="pl-s">"value"</span>: {<span class="pl-s">"value"</span>: [<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>]}},
}
<span class="pl-s1">get_control_responses</span> <span class="pl-c1">=</span> {
<span class="pl-c1">200</span>: {
<span class="pl-s">"description"</span>: <span class="pl-s">"Success"</span>,
<span class="pl-s">"content"</span>: {
<span class="pl-s">"application/json"</span>: {
<span class="pl-s">"examples"</span>: {
<span class="pl-c1">**</span><span class="pl-v">ControlExamples</span>.<span class="pl-s1">value</span>,
<span class="pl-s">"sensor type"</span>: {
<span class="pl-s">"summary"</span>: <span class="pl-s">"Sensor Type"</span>,
<span class="pl-s">"value"</span>: {<span class="pl-s">"value"</span>: <span class="pl-s">"CMV4000v3 Bayer"</span>},
},
}
}
},
},
}
<span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">get</span>(</span>
<span class="pl-en"> <span class="pl-v">V4L2_ROUTE</span> <span class="pl-c1">+</span> <span class="pl-v">V4L2Endpoints</span>.<span class="pl-s1">control</span> <span class="pl-c1">+</span> <span class="pl-s">"/{ctrl_id_or_name}"</span>,</span>
<span class="pl-en"> <span class="pl-s1">response_model</span><span class="pl-c1">=</span><span class="pl-v">ControlValue</span>,</span>
<span class="pl-en"> <span class="pl-s1">responses</span><span class="pl-c1">=</span><span class="pl-s1">get_control_responses</span>,</span>
<span class="pl-en"> <span class="pl-s1">tags</span><span class="pl-c1">=</span>[<span class="pl-v">Tags</span>.<span class="pl-s1">controls</span>],</span>
<span class="pl-en">)</span>
<span class="pl-k">def</span> <span class="pl-en">get_control</span>(
<span class="pl-s1">ctrl_id_or_name</span>: <span class="pl-v">Union</span>[<span class="pl-s1">int</span>, <span class="pl-s1">str</span>] <span class="pl-c1">=</span> <span class="pl-v">Path</span>( <span class="pl-c"># noqa: B008</span>
<span class="pl-s1">description</span><span class="pl-c1">=</span><span class="pl-s">"Id or Name of v4l2 control"</span>,
<span class="pl-s1">examples</span><span class="pl-c1">=</span>{
<span class="pl-c1">**</span><span class="pl-v">ControlExamples</span>.<span class="pl-s1">name</span>,
<span class="pl-s">"sensor type"</span>: {
<span class="pl-s">"summary"</span>: <span class="pl-s">"Sensor Type"</span>,
<span class="pl-s">"value"</span>: <span class="pl-s">"Sensor Type"</span>,
},
},
),
<span class="pl-s1">params</span>: <span class="pl-v">CommonParams</span> <span class="pl-c1">=</span> <span class="pl-v">Depends</span>(), <span class="pl-c"># noqa: B008</span>
) <span class="pl-c1">-></span> <span class="pl-v">JSONResponse</span>:
<span class="pl-s">"""</span>
<span class="pl-s"> Get value of single v4l2 control</span>
<span class="pl-s"></span>
<span class="pl-s"> Supports both normal and extended controls</span>
<span class="pl-s"> """</span>
<span class="pl-k">return</span> <span class="pl-en">check_exceptions</span>(<span class="pl-v">Camera</span>.<span class="pl-s1">get_control</span>, <span class="pl-s1">ctrl_id_or_name</span>, <span class="pl-s1">params</span>.<span class="pl-s1">dev</span>)
<span class="pl-s1">set_control_responses</span> <span class="pl-c1">=</span> {
<span class="pl-c1">200</span>: {
<span class="pl-s">"description"</span>: <span class="pl-s">"Success"</span>,
<span class="pl-s">"content"</span>: {<span class="pl-s">"application/json"</span>: {<span class="pl-s">"examples"</span>: <span class="pl-v">ControlExamples</span>.<span class="pl-s1">value</span>}},
},
}
<span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">post</span>(</span>
<span class="pl-en"> <span class="pl-v">V4L2_ROUTE</span> <span class="pl-c1">+</span> <span class="pl-v">V4L2Endpoints</span>.<span class="pl-s1">control</span> <span class="pl-c1">+</span> <span class="pl-s">"/{ctrl_id_or_name}"</span>,</span>
<span class="pl-en"> <span class="pl-s1">response_model</span><span class="pl-c1">=</span><span class="pl-v">ControlValue</span>,</span>
<span class="pl-en"> <span class="pl-s1">responses</span><span class="pl-c1">=</span><span class="pl-s1">set_control_responses</span>,</span>
<span class="pl-en"> <span class="pl-s1">tags</span><span class="pl-c1">=</span>[<span class="pl-v">Tags</span>.<span class="pl-s1">controls</span>],</span>
<span class="pl-en">)</span>
<span class="pl-k">def</span> <span class="pl-en">set_control</span>(
<span class="pl-s1">ctrl_id_or_name</span>: <span class="pl-v">Union</span>[<span class="pl-s1">int</span>, <span class="pl-s1">str</span>] <span class="pl-c1">=</span> <span class="pl-v">Path</span>( <span class="pl-c"># noqa: B008</span>
<span class="pl-s1">description</span><span class="pl-c1">=</span><span class="pl-s">"Id or Name of v4l2 control"</span>,
<span class="pl-s1">examples</span><span class="pl-c1">=</span><span class="pl-v">ControlExamples</span>.<span class="pl-s1">name</span>,
),
<span class="pl-s1">value</span>: <span class="pl-v">ControlValue</span> <span class="pl-c1">=</span> <span class="pl-v">Body</span>( <span class="pl-c"># noqa: B008</span>
<span class="pl-s1">examples</span><span class="pl-c1">=</span><span class="pl-v">ControlExamples</span>.<span class="pl-s1">value</span>, <span class="pl-s1">descripton</span><span class="pl-c1">=</span><span class="pl-s">"v4l2 control value"</span>
),
<span class="pl-s1">params</span>: <span class="pl-v">CommonParams</span> <span class="pl-c1">=</span> <span class="pl-v">Depends</span>(), <span class="pl-c"># noqa: B008</span>
) <span class="pl-c1">-></span> <span class="pl-v">JSONResponse</span>:
<span class="pl-s">"""</span>
<span class="pl-s"> Set value of single v4l2 control</span>
<span class="pl-s"></span>
<span class="pl-s"> Supports both normal and extended controls</span>
<span class="pl-s"> """</span>
<span class="pl-k">return</span> <span class="pl-en">check_exceptions</span>(<span class="pl-v">Camera</span>.<span class="pl-s1">set_control</span>, <span class="pl-s1">ctrl_id_or_name</span>, <span class="pl-s1">value</span>, <span class="pl-s1">params</span>.<span class="pl-s1">dev</span>)
...
<span class="pl-s1">client</span> <span class="pl-c1">=</span> <span class="pl-v">TestClient</span>(<span class="pl-s1">app</span>)
<span class="pl-k">class</span> <span class="pl-v">TestControl</span>:
<span class="pl-s">"""Tests for 'control' endpoint"""</span>
<span class="pl-s1">base_route</span> <span class="pl-c1">=</span> <span class="pl-v">V4L2_ROUTE</span> <span class="pl-c1">+</span> <span class="pl-v">V4L2Endpoints</span>.<span class="pl-s1">control</span>
<span class="pl-k">def</span> <span class="pl-en">test_get_control</span>(<span class="pl-s1">self</span>):
<span class="pl-s1">control_name</span> <span class="pl-c1">=</span> <span class="pl-s">"exposure time, absolute"</span>
<span class="pl-s1">response</span> <span class="pl-c1">=</span> <span class="pl-s1">client</span>.<span class="pl-en">get</span>(<span class="pl-s1">self</span>.<span class="pl-s1">base_route</span> <span class="pl-c1">+</span> <span class="pl-s">"/"</span> <span class="pl-c1">+</span> <span class="pl-s1">control_name</span>)
<span class="pl-k">assert</span> <span class="pl-s1">response</span>.<span class="pl-s1">status_code</span> <span class="pl-c1">==</span> <span class="pl-c1">200</span>
<span class="pl-en">parse_obj_as</span>(<span class="pl-v">ControlValue</span>, <span class="pl-s1">response</span>.<span class="pl-en">json</span>())
<span class="pl-k">def</span> <span class="pl-en">test_get_control_bad</span>(<span class="pl-s1">self</span>):
<span class="pl-s1">response</span> <span class="pl-c1">=</span> <span class="pl-s1">client</span>.<span class="pl-en">get</span>(<span class="pl-s1">self</span>.<span class="pl-s1">base_route</span> <span class="pl-c1">+</span> <span class="pl-s">"/bla"</span>)
<span class="pl-k">assert</span> <span class="pl-s1">response</span>.<span class="pl-s1">status_code</span> <span class="pl-c1">==</span> <span class="pl-c1">422</span>
<span class="pl-k">def</span> <span class="pl-en">test_set_control</span>(<span class="pl-s1">self</span>):
<span class="pl-s1">control_name</span> <span class="pl-c1">=</span> <span class="pl-s">"exposure time, absolute"</span>
<span class="pl-s1">control_value</span> <span class="pl-c1">=</span> <span class="pl-c1">5000</span>
<span class="pl-en">print</span>(<span class="pl-v">ControlValue</span>.<span class="pl-en">schema_json</span>())
<span class="pl-s1">json_value</span> <span class="pl-c1">=</span> <span class="pl-en">jsonable_encoder</span>(<span class="pl-v">ControlValue</span>(<span class="pl-s1">value</span><span class="pl-c1">=</span><span class="pl-s1">control_value</span>))
<span class="pl-s1">response</span> <span class="pl-c1">=</span> <span class="pl-s1">client</span>.<span class="pl-en">post</span>(
<span class="pl-s1">self</span>.<span class="pl-s1">base_route</span> <span class="pl-c1">+</span> <span class="pl-s">"/"</span> <span class="pl-c1">+</span> <span class="pl-s1">control_name</span>,
<span class="pl-s1">json</span><span class="pl-c1">=</span><span class="pl-s1">json_value</span>,
)
<span class="pl-k">assert</span> <span class="pl-s1">response</span>.<span class="pl-s1">status_code</span> <span class="pl-c1">==</span> <span class="pl-c1">200</span>
<span class="pl-k">assert</span> <span class="pl-s1">response</span>.<span class="pl-en">json</span>() <span class="pl-c1">==</span> <span class="pl-s1">json_value</span></pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">I have made an API in which I defined examples for pretty much everything: in the BaseModels, responses, Query, ...</p>
<p dir="auto">This has made interactive testing with swagger <code class="notranslate">/docs</code> pretty nice.</p>
<p dir="auto">However now I wan't to move to proper testing with <code class="notranslate">pytest</code>.</p>
<p dir="auto">I have found this: <a href="https://fastapi.tiangolo.com/tutorial/testing/" rel="nofollow">https://fastapi.tiangolo.com/tutorial/testing/</a> but I can't find information on how to make the testing more "automatic".</p>
<p dir="auto">For example, I would like to be able to re-use the examples defined in the API instead of duplicating them in the test files.</p>
<p dir="auto">And as my API interacts with HW (a v4l2 camera) I can't necessary check that the response content is right because I don't know it before hand.<br>
But it could be relevant to check that the type is right (BaseModel)?<br>
Or is that overkill because of all the internal validation?<br>
So far I came up with: <code class="notranslate">parse_obj_as(ControlValue, response.json())</code></p>
<h3 dir="auto">Operating System</h3>
<p dir="auto">Linux</p>
<h3 dir="auto">Operating System Details</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">FastAPI Version</h3>
<p dir="auto">0.85.0</p>
<h3 dir="auto">Python Version</h3>
<p dir="auto">Python 3.10.5</p>
<h3 dir="auto">Additional Context</h3>
<p dir="auto"><em>No response</em></p>
|
<h3 dir="auto">First Check</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I added a very descriptive title to this issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I used the GitHub search to find a similar issue and didn't find it.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I searched the FastAPI documentation, with the integrated search.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already searched in Google "How to X in FastAPI" and didn't find any information.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already read and followed all the tutorial in the docs and didn't find an answer.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/samuelcolvin/pydantic">Pydantic</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/swagger-api/swagger-ui">Swagger UI</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/Redocly/redoc">ReDoc</a>.</li>
</ul>
<h3 dir="auto">Commit to Help</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I commit to help with one of those options <g-emoji class="g-emoji" alias="point_up_2" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f446.png">👆</g-emoji></li>
</ul>
<h3 dir="auto">Example Code</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import json
from fastapi import FastAPI, Header, Request
from fastapi.openapi.utils import get_openapi
app = FastAPI()
@app.get("/items/")
async def read_items(x_tenant_id: str = Header()):
return [{"hello": "world"}]
@app.get("/users")
async def read_users(request: Request):
return [{"tag": "@jayashankarjayan"}]
def custom_openapi():
header = {
"required": True,
"schema": {
"title": "X-Custom-Id",
"type": "string"
},
"name": "x-custom-id",
"in": "header"
}
if app.openapi_schema:
return app.openapi_schema
openapi_schema = get_openapi(
title="Custom title",
version="2.5.0",
description="This is a very custom OpenAPI schema",
routes=app.routes,
)
openapi_schema["info"]["x-logo"] = {
"url": "https://fastapi.tiangolo.com/img/logo-margin/logo-teal.png"
}
app.openapi_schema = openapi_schema
paths = openapi_schema["paths"]
for url, methods in paths.items():
for method in methods:
if methods[method].get("parameters"):
methods[method]["parameters"].append(header)
else:
methods[method]["parameters"] = [header]
return app.openapi_schema
app.openapi = custom_openapi"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">json</span>
<span class="pl-k">from</span> <span class="pl-s1">fastapi</span> <span class="pl-k">import</span> <span class="pl-v">FastAPI</span>, <span class="pl-v">Header</span>, <span class="pl-v">Request</span>
<span class="pl-k">from</span> <span class="pl-s1">fastapi</span>.<span class="pl-s1">openapi</span>.<span class="pl-s1">utils</span> <span class="pl-k">import</span> <span class="pl-s1">get_openapi</span>
<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">FastAPI</span>()
<span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">get</span>(<span class="pl-s">"/items/"</span>)</span>
<span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">read_items</span>(<span class="pl-s1">x_tenant_id</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-v">Header</span>()):
<span class="pl-k">return</span> [{<span class="pl-s">"hello"</span>: <span class="pl-s">"world"</span>}]
<span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">get</span>(<span class="pl-s">"/users"</span>)</span>
<span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">read_users</span>(<span class="pl-s1">request</span>: <span class="pl-v">Request</span>):
<span class="pl-k">return</span> [{<span class="pl-s">"tag"</span>: <span class="pl-s">"@jayashankarjayan"</span>}]
<span class="pl-k">def</span> <span class="pl-en">custom_openapi</span>():
<span class="pl-s1">header</span> <span class="pl-c1">=</span> {
<span class="pl-s">"required"</span>: <span class="pl-c1">True</span>,
<span class="pl-s">"schema"</span>: {
<span class="pl-s">"title"</span>: <span class="pl-s">"X-Custom-Id"</span>,
<span class="pl-s">"type"</span>: <span class="pl-s">"string"</span>
},
<span class="pl-s">"name"</span>: <span class="pl-s">"x-custom-id"</span>,
<span class="pl-s">"in"</span>: <span class="pl-s">"header"</span>
}
<span class="pl-k">if</span> <span class="pl-s1">app</span>.<span class="pl-s1">openapi_schema</span>:
<span class="pl-k">return</span> <span class="pl-s1">app</span>.<span class="pl-s1">openapi_schema</span>
<span class="pl-s1">openapi_schema</span> <span class="pl-c1">=</span> <span class="pl-en">get_openapi</span>(
<span class="pl-s1">title</span><span class="pl-c1">=</span><span class="pl-s">"Custom title"</span>,
<span class="pl-s1">version</span><span class="pl-c1">=</span><span class="pl-s">"2.5.0"</span>,
<span class="pl-s1">description</span><span class="pl-c1">=</span><span class="pl-s">"This is a very custom OpenAPI schema"</span>,
<span class="pl-s1">routes</span><span class="pl-c1">=</span><span class="pl-s1">app</span>.<span class="pl-s1">routes</span>,
)
<span class="pl-s1">openapi_schema</span>[<span class="pl-s">"info"</span>][<span class="pl-s">"x-logo"</span>] <span class="pl-c1">=</span> {
<span class="pl-s">"url"</span>: <span class="pl-s">"https://fastapi.tiangolo.com/img/logo-margin/logo-teal.png"</span>
}
<span class="pl-s1">app</span>.<span class="pl-s1">openapi_schema</span> <span class="pl-c1">=</span> <span class="pl-s1">openapi_schema</span>
<span class="pl-s1">paths</span> <span class="pl-c1">=</span> <span class="pl-s1">openapi_schema</span>[<span class="pl-s">"paths"</span>]
<span class="pl-k">for</span> <span class="pl-s1">url</span>, <span class="pl-s1">methods</span> <span class="pl-c1">in</span> <span class="pl-s1">paths</span>.<span class="pl-en">items</span>():
<span class="pl-k">for</span> <span class="pl-s1">method</span> <span class="pl-c1">in</span> <span class="pl-s1">methods</span>:
<span class="pl-k">if</span> <span class="pl-s1">methods</span>[<span class="pl-s1">method</span>].<span class="pl-en">get</span>(<span class="pl-s">"parameters"</span>):
<span class="pl-s1">methods</span>[<span class="pl-s1">method</span>][<span class="pl-s">"parameters"</span>].<span class="pl-en">append</span>(<span class="pl-s1">header</span>)
<span class="pl-k">else</span>:
<span class="pl-s1">methods</span>[<span class="pl-s1">method</span>][<span class="pl-s">"parameters"</span>] <span class="pl-c1">=</span> [<span class="pl-s1">header</span>]
<span class="pl-k">return</span> <span class="pl-s1">app</span>.<span class="pl-s1">openapi_schema</span>
<span class="pl-s1">app</span>.<span class="pl-s1">openapi</span> <span class="pl-c1">=</span> <span class="pl-s1">custom_openapi</span></pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">I have a requirement in my application where all my APIs spread across multiple routers are required to have custom headers, eg: <code class="notranslate">x-custom-header</code>. I want these headers to be visible as fields on the Swagger UI as well so that a user who accesses this Swagger UI can use the API endpoints by providing valid values to the headers.</p>
<p dir="auto">I have two options -</p>
<ol dir="auto">
<li>I add the header as an argument to every single route individually. This introduces a lot of duplication as I have to repeat the same arguments over multiple routes.</li>
<li>I modify the OpenAPI Schema (as seen in the above code snippet) and add the header across all routes at one go. While this works, it seems more like a somewhat ugly hack.</li>
</ol>
<p dir="auto">I would like to know that is there a better, elegant option than the aforementioned one which I can use to get header fields in my Swagger UI while avoiding duplication in my code and keeping it elegant.</p>
<p dir="auto">All help is appreciated. Thanks!</p>
<h3 dir="auto">Operating System</h3>
<p dir="auto">Linux, Windows, macOS</p>
<h3 dir="auto">Operating System Details</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">FastAPI Version</h3>
<p dir="auto">0.86.0</p>
<h3 dir="auto">Python Version</h3>
<p dir="auto">3.8.9</p>
<h3 dir="auto">Additional Context</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/20151948/207940178-8cc90f2a-f697-4177-bd5e-d749229acaf3.png"><img width="1509" alt="image" src="https://user-images.githubusercontent.com/20151948/207940178-8cc90f2a-f697-4177-bd5e-d749229acaf3.png" style="max-width: 100%;"></a></p>
<p dir="auto">This is how I would like the custom header to appear without actually mentioning it explicitly on the route itself (the result seen in the screenshot can be replicated using the code snippet shared above)</p>
<p dir="auto">Kindly note that there could be multiple such custom headers that I want to see on my Swagger UI</p>
| 0 |
<p dir="auto">My project has one root folder with a bunch of related projects in subfolders each with their own git rep attached.</p>
<p dir="auto">In Xamarin Studio it shows each project/subfolder with a description of which branch each repo is on.. i.e. "master". So instantly I can see each project is its own repo and which branch they are currently set to.</p>
<p dir="auto">I deliberately avoided git submodules for other reasons.</p>
<p dir="auto">Is it possible for VSCode to support different subfolders each with their own git repo?</p>
|
<p dir="auto">Right now it doesn't seem possible to opening multiple project folders in the same window which imho is a bit constraining. If you are working on modular modern projects it's a must have to be productive.</p>
| 1 |
<p dir="auto"><strong>Symfony version(s) affected</strong>: master</p>
<p dir="auto"><strong>Description</strong><br>
Routes are not recognized when using one dynamic on one hand, and one with a specified host on the other hand.</p>
<p dir="auto"><strong>How to reproduce</strong><br>
Here is a simple PHPUnit test :</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" public function testDynamic()
{
$routes = new RouteCollection();
$routes->add('a_host', new Route('/', [], [], [], 'api.example.com'));
$routes->add('a_dot', new Route('/a/{letter}.dot', [], [], [], 'localhost'));
$routes->add('a_dot_any_host', new Route('/b/{letter}.dot'));
$dumper = new PhpMatcherDumper($routes);
eval(substr($dumper->dump(), 5));
$context = new RequestContext();
$urlMatcher = new \ProjectUrlMatcher($context);
$this->assertInternalType('array', $urlMatcher->match('/a/a.dot'));
$this->assertInternalType('array', $urlMatcher->match('/b/a.dot'));
}"><pre class="notranslate"> <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">testDynamic</span>()
{
<span class="pl-s1"><span class="pl-c1">$</span>routes</span> = <span class="pl-k">new</span> <span class="pl-v">RouteCollection</span>();
<span class="pl-s1"><span class="pl-c1">$</span>routes</span>-><span class="pl-en">add</span>(<span class="pl-s">'a_host'</span>, <span class="pl-k">new</span> <span class="pl-v">Route</span>(<span class="pl-s">'/'</span>, [], [], [], <span class="pl-s">'api.example.com'</span>));
<span class="pl-s1"><span class="pl-c1">$</span>routes</span>-><span class="pl-en">add</span>(<span class="pl-s">'a_dot'</span>, <span class="pl-k">new</span> <span class="pl-v">Route</span>(<span class="pl-s">'/a/{letter}.dot'</span>, [], [], [], <span class="pl-s">'localhost'</span>));
<span class="pl-s1"><span class="pl-c1">$</span>routes</span>-><span class="pl-en">add</span>(<span class="pl-s">'a_dot_any_host'</span>, <span class="pl-k">new</span> <span class="pl-v">Route</span>(<span class="pl-s">'/b/{letter}.dot'</span>));
<span class="pl-s1"><span class="pl-c1">$</span>dumper</span> = <span class="pl-k">new</span> <span class="pl-v">PhpMatcherDumper</span>(<span class="pl-s1"><span class="pl-c1">$</span>routes</span>);
eval(substr(<span class="pl-s1"><span class="pl-c1">$</span>dumper</span>-><span class="pl-en">dump</span>(), <span class="pl-c1">5</span>));
<span class="pl-s1"><span class="pl-c1">$</span>context</span> = <span class="pl-k">new</span> <span class="pl-v">RequestContext</span>();
<span class="pl-s1"><span class="pl-c1">$</span>urlMatcher</span> = <span class="pl-k">new</span> \<span class="pl-v">ProjectUrlMatcher</span>(<span class="pl-s1"><span class="pl-c1">$</span>context</span>);
<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-en">assertInternalType</span>(<span class="pl-s">'array'</span>, <span class="pl-s1"><span class="pl-c1">$</span>urlMatcher</span>-><span class="pl-en">match</span>(<span class="pl-s">'/a/a.dot'</span>));
<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-en">assertInternalType</span>(<span class="pl-s">'array'</span>, <span class="pl-s1"><span class="pl-c1">$</span>urlMatcher</span>-><span class="pl-en">match</span>(<span class="pl-s">'/b/a.dot'</span>));
}</pre></div>
<p dir="auto">The second test will raise a <code class="notranslate">Symfony\Component\Routing\Exception\ResourceNotFoundException</code>.</p>
<p dir="auto"><strong>Possible Solution</strong></p>
<p dir="auto">I think the host pattern is too greedy in the dynamic host routes compilation and should not match <code class="notranslate">/</code> as well as <code class="notranslate">.</code>, as it was in previous commit.</p>
<p dir="auto">See <a href="https://github.com/symfony/symfony/pull/27511/files#diff-3b72491a9ba1cff58442b845ae837eb3R382">https://github.com/symfony/symfony/pull/27511/files#diff-3b72491a9ba1cff58442b845ae837eb3R382</a></p>
<p dir="auto"><strong>Additional context</strong></p>
<p dir="auto">The problem occurs if you specify a route with a specified host and the profiler : the <code class="notranslate">exception.css</code> route of the profiler doesn't match...</p>
|
<p dir="auto"><strong>Symfony version(s) affected</strong>: 4.1.1</p>
<p dir="auto"><strong>Description</strong><br>
We have a URL with a variable that will contain a dot, but that doesn't work under Symfony 4.1.1 any more when there is another route that has a <code class="notranslate">host</code> requirement set.</p>
<p dir="auto"><strong>How to reproduce</strong></p>
<ol dir="auto">
<li>Put the following in <code class="notranslate">routes.yaml</code>:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo:
path: /foo
host: 'foo.example.com'
controller: foo_controller
bar:
path: /bar/{baz}
controller: baz_controller"><pre class="notranslate"><code class="notranslate">foo:
path: /foo
host: 'foo.example.com'
controller: foo_controller
bar:
path: /bar/{baz}
controller: baz_controller
</code></pre></div>
<ol start="2" dir="auto">
<li>Try to visit <code class="notranslate">/bar/abc.123</code></li>
</ol>
<p dir="auto">When you remove <code class="notranslate">host: 'foo.example.com'</code> from the <code class="notranslate">foo</code> route it <em>does</em> work.</p>
| 1 |
<ul dir="auto">
<li>Electron version: 0.36.10</li>
<li>Operating system: Windows 8.1 64bit</li>
</ul>
<p dir="auto">Hello ! I have just created a simple window which loads an url.</p>
<p dir="auto">The problem is that while visiting the URL in chrome or any other browser, everything is fine, but when opening it in Electron, it says jQuery is not defined.</p>
<p dir="auto">The problem comes from here:</p>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script type="text/javascript">
// some code using jQuery
</script>
<p dir="auto">Returning <code class="notranslate">Uncaught ReferenceError: $ is not defined</code>.<br>
if I would set a timeout, everything works. But, wasn't that supposed to happen when <code class="notranslate">async</code> tag is set to true ?</p>
<p dir="auto">This behaviour looks pretty much like <code class="notranslate">async="true"</code> on script tags.<br>
I have also tried setting that <code class="notranslate">async</code> tag to <code class="notranslate">false</code> but still, same behaviour.</p>
<p dir="auto">I decided not to use a local <code class="notranslate">index.html</code> file that would contain a <code class="notranslate">webview</code> because of the white background that appears, and then, the <code class="notranslate">did-finish-loading</code> which gets triggered when the local page loads but not the webview ( which is to be expected )</p>
<p dir="auto">Therefore I am running the app like the following <code class="notranslate">window.loadURL('https://tribul.net')</code>;</p>
<p dir="auto">Is it an expected behaviour ?</p>
|
<p dir="auto">jQuery contains something along this lines:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if ( typeof module === "object" && typeof module.exports === "object" ) {
// set jQuery in `module`
} else {
// set jQuery in `window`
}"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-kos">(</span> <span class="pl-k">typeof</span> <span class="pl-smi">module</span> <span class="pl-c1">===</span> <span class="pl-s">"object"</span> <span class="pl-c1">&&</span> <span class="pl-k">typeof</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-s">"object"</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// set jQuery in `module`</span>
<span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span>
<span class="pl-c">// set jQuery in `window`</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">module is defined, even in the browser-side scripts. This causes jQuery to ignore the <code class="notranslate">window</code> object and use <code class="notranslate">module</code>, so the other scripts won't find <code class="notranslate">$</code> nor <code class="notranslate">jQuery</code> in global scope..</p>
<p dir="auto">I am not sure if this is a jQuery or atom-shell bug, but I wanted to put this on the web, so others won't search as long as I did.</p>
| 1 |
<p dir="auto">I have index with parent "model" and child "sell" documents at one index with millions of documents and heavy concurrent indexing.</p>
<p dir="auto">All nodes works with Oracle Hotspot 8 with 30gb heap, ElasticSearch 1.3.5.</p>
<p dir="auto">I'm execute delete by query like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="curl -XDELETE 'http://127.0.0.1:9200/sells/sell/_query' -d '{"query":{"filtered":{"query":{"match_all":{}},"filter":{"and":{"filters":[{"term":{"client_id":123}}]}}}}}]}'"><pre class="notranslate"><code class="notranslate">curl -XDELETE 'http://127.0.0.1:9200/sells/sell/_query' -d '{"query":{"filtered":{"query":{"match_all":{}},"filter":{"and":{"filters":[{"term":{"client_id":123}}]}}}}}]}'
</code></pre></div>
<p dir="auto">and our index is corrupted with this error message and exception stack trace in logs:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2014-11-18 12:49:33,650][DEBUG][action.deletebyquery ] [elastic1] [sells][3], node[hv2718pkQm-5SZq7agcY9g], [P], s[STARTED]: Failed to execute [delete_by_query {[sells][sell], query [{"query":{"filtered":{"query":{"match_all":{}},"filter":{"and":{"filters":[{"term":{"client_id":123}}]}}}}}]}]
org.elasticsearch.index.engine.RefreshFailedEngineException: [sells][3] Refresh failed
at org.elasticsearch.index.engine.internal.InternalEngine.refresh(InternalEngine.java:789)
at org.elasticsearch.index.engine.internal.InternalEngine.delete(InternalEngine.java:686)
at org.elasticsearch.index.shard.service.InternalIndexShard.deleteByQuery(InternalIndexShard.java:465)
at org.elasticsearch.action.deletebyquery.TransportShardDeleteByQueryAction.shardOperationOnPrimary(TransportShardDeleteByQueryAction.java:123)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:535)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:434)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: parentFilter must return FixedBitSet; got org.apache.lucene.search.BitsFilteredDocIdSet@74ebc73d
at org.elasticsearch.index.search.nested.IncludeNestedDocsQuery$IncludeNestedDocsWeight.scorer(IncludeNestedDocsQuery.java:123)
at org.apache.lucene.search.QueryWrapperFilter$1.iterator(QueryWrapperFilter.java:59)
at org.apache.lucene.index.BufferedUpdatesStream.applyQueryDeletes(BufferedUpdatesStream.java:554)
at org.apache.lucene.index.BufferedUpdatesStream.applyDeletesAndUpdates(BufferedUpdatesStream.java:287)
at org.apache.lucene.index.IndexWriter.applyAllDeletesAndUpdates(IndexWriter.java:3322)
at org.apache.lucene.index.IndexWriter.maybeApplyDeletes(IndexWriter.java:3313)
at org.apache.lucene.index.IndexWriter.getReader(IndexWriter.java:425)
at org.apache.lucene.index.StandardDirectoryReader.doOpenFromWriter(StandardDirectoryReader.java:292)
at org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:267)
at org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:257)
at org.apache.lucene.index.DirectoryReader.openIfChanged(DirectoryReader.java:171)
at org.apache.lucene.search.SearcherManager.refreshIfNeeded(SearcherManager.java:118)
at org.apache.lucene.search.SearcherManager.refreshIfNeeded(SearcherManager.java:58)
at org.apache.lucene.search.ReferenceManager.doMaybeRefresh(ReferenceManager.java:176)
at org.apache.lucene.search.ReferenceManager.maybeRefresh(ReferenceManager.java:225)
at org.elasticsearch.index.engine.internal.InternalEngine.refresh(InternalEngine.java:779)
... 8 more"><pre class="notranslate"><code class="notranslate">[2014-11-18 12:49:33,650][DEBUG][action.deletebyquery ] [elastic1] [sells][3], node[hv2718pkQm-5SZq7agcY9g], [P], s[STARTED]: Failed to execute [delete_by_query {[sells][sell], query [{"query":{"filtered":{"query":{"match_all":{}},"filter":{"and":{"filters":[{"term":{"client_id":123}}]}}}}}]}]
org.elasticsearch.index.engine.RefreshFailedEngineException: [sells][3] Refresh failed
at org.elasticsearch.index.engine.internal.InternalEngine.refresh(InternalEngine.java:789)
at org.elasticsearch.index.engine.internal.InternalEngine.delete(InternalEngine.java:686)
at org.elasticsearch.index.shard.service.InternalIndexShard.deleteByQuery(InternalIndexShard.java:465)
at org.elasticsearch.action.deletebyquery.TransportShardDeleteByQueryAction.shardOperationOnPrimary(TransportShardDeleteByQueryAction.java:123)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:535)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:434)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: parentFilter must return FixedBitSet; got org.apache.lucene.search.BitsFilteredDocIdSet@74ebc73d
at org.elasticsearch.index.search.nested.IncludeNestedDocsQuery$IncludeNestedDocsWeight.scorer(IncludeNestedDocsQuery.java:123)
at org.apache.lucene.search.QueryWrapperFilter$1.iterator(QueryWrapperFilter.java:59)
at org.apache.lucene.index.BufferedUpdatesStream.applyQueryDeletes(BufferedUpdatesStream.java:554)
at org.apache.lucene.index.BufferedUpdatesStream.applyDeletesAndUpdates(BufferedUpdatesStream.java:287)
at org.apache.lucene.index.IndexWriter.applyAllDeletesAndUpdates(IndexWriter.java:3322)
at org.apache.lucene.index.IndexWriter.maybeApplyDeletes(IndexWriter.java:3313)
at org.apache.lucene.index.IndexWriter.getReader(IndexWriter.java:425)
at org.apache.lucene.index.StandardDirectoryReader.doOpenFromWriter(StandardDirectoryReader.java:292)
at org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:267)
at org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:257)
at org.apache.lucene.index.DirectoryReader.openIfChanged(DirectoryReader.java:171)
at org.apache.lucene.search.SearcherManager.refreshIfNeeded(SearcherManager.java:118)
at org.apache.lucene.search.SearcherManager.refreshIfNeeded(SearcherManager.java:58)
at org.apache.lucene.search.ReferenceManager.doMaybeRefresh(ReferenceManager.java:176)
at org.apache.lucene.search.ReferenceManager.maybeRefresh(ReferenceManager.java:225)
at org.elasticsearch.index.engine.internal.InternalEngine.refresh(InternalEngine.java:779)
... 8 more
</code></pre></div>
<p dir="auto">I cannot reproduce this error on our test stand cluster, sorry. It's seems like a concurrent access error.</p>
<p dir="auto">What's a kind of problem? Does it just bug?</p>
|
<p dir="auto">The ability to have several types on the same index is causing problems:</p>
<ul dir="auto">
<li>the mappings APIs need to maintain one mapping per type, yet those mappings can't be independent and keeping them synchronized is complicated (see eg. discussions on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="122943851" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/15539" data-hovercard-type="pull_request" data-hovercard-url="/elastic/elasticsearch/pull/15539/hovercard" href="https://github.com/elastic/elasticsearch/pull/15539">#15539</a>)</li>
<li>it gives the feeling that the system can easily deal with documents that have very different mappings in the same index, which is not true. This is why in 2.0 we added more restrictions on mappings across types. In addition types encourage sparsity and sparse fields cause Lucene to either be slow when there is a special impl for the sparse case (eg. doc values) or use tremendous memory and disk space in spite of the fact that few documents have a value (eg. norms, because a fixed amount of memory is used for every doc, regardless of whether they have a value for this field or not).</li>
</ul>
<p dir="auto">Migrating existing users is certainly going to be complicated but this would also make the system more honest to new users about the fact that we can't do index-level multi-tenancy efficiently. Also I suspect that the restrictions that we added in 2.0 (that eg. two fields that have the same name in different types) already made lots of users migrate to a single index per data type instead of folding them into different types of the same index.</p>
<p dir="auto">See also <a href="https://www.elastic.co/blog/index-vs-type" rel="nofollow">https://www.elastic.co/blog/index-vs-type</a>.</p>
| 0 |
<p dir="auto">When the same <code class="notranslate">[router-link]</code> is clicked multiple times, multiple history entries are created with the exact same URL. Would it be possible to compare the current URL of the page to the destination URL, and not call pushState if the URL is already correct?</p>
<p dir="auto">From a user perspective, if I am on page A and click a link to page B, then click the link to page B again, I should only have to press the back button once to get back to page A.</p>
|
<p dir="auto">[x] bug report => search github for a similar issue or PR before submitting<br>
[ ] feature request<br>
[ ] support request => Please do not submit support request here, instead see</p>
<p dir="auto"><strong>Current behavior</strong><br>
I am using upgrade adapter. When using *ngIf on components angular runs the components outside of zone which causes the GUI not to update.</p>
<p dir="auto"><strong>Expected behavior</strong><br>
I expect the angular component to run in a zone regardless of upgrade adapter (because without it works just fine)</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
<a href="https://plnkr.co/edit/xgyiXw?p=preview" rel="nofollow">zone lost example</a> open the console click on ng2 and you will see that I am logging if in zone ore not. As you can see when using *ngIf we suddenly are outside of zone!</p>
<p dir="auto">here is example without upgrade adapter which is working and logging in the console that we still are in zone.<br>
<a href="https://plnkr.co/edit/DGuyBsT95vv7vRerfe8y?p=preview" rel="nofollow">zone working</a></p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
It is working without upgrade adapter so it should work in the same way with upgrade adapter.</p>
<p dir="auto"><strong>Please tell us about your environment:</strong><br>
chrome</p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Angular version:</strong> 2.4.1</p>
</li>
<li>
<p dir="auto"><strong>Browser:</strong> [all ]</p>
</li>
<li>
<p dir="auto"><strong>Language:</strong> [ TypeScript]</p>
</li>
</ul>
| 0 |
<p dir="auto">Hi,</p>
<p dir="auto">I am using Tensorflow v0.11 and I have tried on Mac OS X and Centos 6</p>
<p dir="auto">I am running into an error when running the following code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="W = tf.get_variable('W', (5, 3))
x = tf.placeholder(tf.float32, shape=(None, 5))
h = tf.matmul(x, W)
grads = tf.map_fn(lambda x: tf.gradients(x, W)[0], h)"><pre class="notranslate"><code class="notranslate">W = tf.get_variable('W', (5, 3))
x = tf.placeholder(tf.float32, shape=(None, 5))
h = tf.matmul(x, W)
grads = tf.map_fn(lambda x: tf.gradients(x, W)[0], h)
</code></pre></div>
<p dir="auto">I basically want to have the following but without a fixed batch size:<br>
<code class="notranslate">grads = [tf.gradients(h[t], W)[0] for t in range(batch_size)]</code></p>
<p dir="auto">My error is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Invalid argument: TensorArray map/TensorArray_1@map/while/gradients: Could not write to TensorArray index 3 because it has already been read.
[...]
tensorflow.python.framework.errors.InvalidArgumentError: TensorArray map/TensorArray_1@map/while/gradients: Could not write to TensorArray index 3 because it has already been read.
[[Node: map/while/gradients/map/while/TensorArrayRead_grad/TensorArrayWrite = TensorArrayWrite[T=DT_FLOAT, _class=["loc:@map/TensorArray"], _device="/job:localhost/replica:0/task:0/cpu:0"](map/while/gradients/map/while/TensorArrayRead_grad/TensorArrayGrad/TensorArrayGrad, map/while/Identity, map/while/gradients/Fill, map/while/gradients/map/while/TensorArrayRead_grad/TensorArrayGrad/gradient_flow)]]"><pre class="notranslate"><code class="notranslate">Invalid argument: TensorArray map/TensorArray_1@map/while/gradients: Could not write to TensorArray index 3 because it has already been read.
[...]
tensorflow.python.framework.errors.InvalidArgumentError: TensorArray map/TensorArray_1@map/while/gradients: Could not write to TensorArray index 3 because it has already been read.
[[Node: map/while/gradients/map/while/TensorArrayRead_grad/TensorArrayWrite = TensorArrayWrite[T=DT_FLOAT, _class=["loc:@map/TensorArray"], _device="/job:localhost/replica:0/task:0/cpu:0"](map/while/gradients/map/while/TensorArrayRead_grad/TensorArrayGrad/TensorArrayGrad, map/while/Identity, map/while/gradients/Fill, map/while/gradients/map/while/TensorArrayRead_grad/TensorArrayGrad/gradient_flow)]]
</code></pre></div>
<p dir="auto">I have tried the following workaround using <code class="notranslate">scan</code> instead of <code class="notranslate">map_fn</code> with a zero initializer but to no avail:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="initializer = np.zeros((5, 3)).astype('float32')
grads = tf.scan(
lambda a, x: tf.gradients(x, W)[0],
h,
initializer)"><pre class="notranslate"><code class="notranslate">initializer = np.zeros((5, 3)).astype('float32')
grads = tf.scan(
lambda a, x: tf.gradients(x, W)[0],
h,
initializer)
</code></pre></div>
<p dir="auto">Is this a know issue?</p>
|
<p dir="auto">GitHub issues are for bugs / installation problems / feature requests.<br>
For general support from the community, see <a href="https://stackoverflow.com/questions/tagged/tensorflow" rel="nofollow">StackOverflow</a>.<br>
To make bugs and feature requests more easy to find and organize, we close issues that are deemed<br>
out of scope for GitHub Issues and point people to StackOverflow.</p>
<p dir="auto">For bugs or installation issues, please provide the following information.<br>
The more information you provide, the more easily we will be able to offer<br>
help and advice.</p>
<h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System:<br>
Mac OS 10.10</p>
<p dir="auto">Installed version of CUDA and cuDNN:<br>
(please attach the output of <code class="notranslate">ls -l /path/to/cuda/lib/libcud*</code>):<br>
None</p>
<p dir="auto">If installed from binary pip package, provide:</p>
<ol dir="auto">
<li>Which pip package you installed.</li>
<li>The output from <code class="notranslate">python -c "import tensorflow; print(tensorflow.__version__)"</code>.<br>
0.10.0rc0</li>
</ol>
<p dir="auto">If installed from source, provide</p>
<ol dir="auto">
<li>The commit hash (<code class="notranslate">git rev-parse HEAD</code>)</li>
<li>The output of <code class="notranslate">bazel version</code></li>
</ol>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">I want to evaluate the diagonal of Hessian with <code class="notranslate">tf.map_fn</code>, which takes a function that maps each dimension (scalar) to its Hessian</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import tensorflow as tf
def hessian_factory(f):
def hessian1(x):
g = tf.gradients(f, x)[0]
h = tf.gradients(g, x)[0]
return h
return hessian1
sess = tf.Session()
x = tf.Variable(1.0)
sess.run(tf.initialize_all_variables())
f = 1. / (1 + tf.exp(-x))
func = hessian_factory(f)
h = tf.map_fn(func, x)
print(sess.run(h))"><pre class="notranslate"><code class="notranslate">import tensorflow as tf
def hessian_factory(f):
def hessian1(x):
g = tf.gradients(f, x)[0]
h = tf.gradients(g, x)[0]
return h
return hessian1
sess = tf.Session()
x = tf.Variable(1.0)
sess.run(tf.initialize_all_variables())
f = 1. / (1 + tf.exp(-x))
func = hessian_factory(f)
h = tf.map_fn(func, x)
print(sess.run(h))
</code></pre></div>
<p dir="auto">However, it seems <code class="notranslate">tf.gradients(f, x)</code> produces <code class="notranslate">None</code>.</p>
<p dir="auto">Even the following statements gives <code class="notranslate">None</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import tensorflow as tf
sess = tf.Session()
x = tf.Variable(1.0)
sess.run(tf.initialize_all_variables())
f = 1. / (1 + tf.exp(-x))
h = tf.map_fn(lambda x: tf.gradients(f, x)[0], x)"><pre class="notranslate"><code class="notranslate">import tensorflow as tf
sess = tf.Session()
x = tf.Variable(1.0)
sess.run(tf.initialize_all_variables())
f = 1. / (1 + tf.exp(-x))
h = tf.map_fn(lambda x: tf.gradients(f, x)[0], x)
</code></pre></div>
<h3 dir="auto">What have you tried?</h3>
<ol dir="auto">
<li></li>
</ol>
<h3 dir="auto">Logs or other output that would be helpful</h3>
<p dir="auto">(If logs are large, please upload as attachment).</p>
| 1 |
<p dir="auto">According to <a href="http://yaml.org/type/merge.html" rel="nofollow">http://yaml.org/type/merge.html</a> one can overwrite keys of merged maps. But since <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="33545204" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/10902" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/10902/hovercard" href="https://github.com/symfony/symfony/pull/10902">#10902</a> this does not work anymore, which makes merging with anchors useless.</p>
<p dir="auto">Example YAML.</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- key-with-duplicate: &alias1
foo: bar
foo: ignore
- key-without-duplicate: &alias2
foo: other
- changed-value-before-merge:
foo: overwrite
<< : *alias1
- changed-value-after-merge:
<< : *alias1
foo: overwrite
- multiple-merges-as-repeat:
<< : *alias1
<< : *alias2
- multiple-merges-as-array:
<< : [*alias1, *alias2]"><pre class="notranslate">- <span class="pl-ent">key-with-duplicate</span>: <span class="pl-s">&alias1</span>
<span class="pl-ent">foo</span>: <span class="pl-s">bar</span>
<span class="pl-ent">foo</span>: <span class="pl-s">ignore</span>
- <span class="pl-ent">key-without-duplicate</span>: <span class="pl-s">&alias2</span>
<span class="pl-ent">foo</span>: <span class="pl-s">other</span>
- <span class="pl-ent">changed-value-before-merge</span>:
<span class="pl-ent">foo</span>: <span class="pl-s">overwrite</span>
<span class="pl-ent"><< </span>: <span class="pl-s">*alias1</span>
- <span class="pl-ent">changed-value-after-merge</span>:
<span class="pl-ent"><< </span>: <span class="pl-s">*alias1</span>
<span class="pl-ent">foo</span>: <span class="pl-s">overwrite</span>
- <span class="pl-ent">multiple-merges-as-repeat</span>:
<span class="pl-ent"><< </span>: <span class="pl-s">*alias1</span>
<span class="pl-ent"><< </span>: <span class="pl-s">*alias2</span>
- <span class="pl-ent">multiple-merges-as-array</span>:
<span class="pl-ent"><< </span>: <span class="pl-s">[*alias1, *alias2]</span></pre></div>
<p dir="auto">I tested <a href="http://yaml-online-parser.appspot.com/" rel="nofollow">http://yaml-online-parser.appspot.com/</a> and <a href="http://yamltojson.com/" rel="nofollow">http://yamltojson.com/</a> and <a href="http://nodeca.github.io/js-yaml/" rel="nofollow">http://nodeca.github.io/js-yaml/</a> and none of them works correctly.</p>
|
<p dir="auto">This is a meta-issue that groups all the proposed backward incompatible changes for the upcoming Symfony 3.0 version. It includes more information than <a href="https://github.com/symfony/symfony/milestones/3.0">the 3.0 milestone</a> because sometimes people propose ideas in the comments of the issues and pull requests.</p>
<h4 dir="auto">Commands</h4>
<ul dir="auto">
<li>Make <code class="notranslate">assets:install</code> even smarter and create symlinks by default (without providing the <code class="notranslate">--symlinks</code> option) (<a href="https://github.com/symfony/symfony/pull/11312" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/11312/hovercard">ref</a>)</li>
<li>...</li>
</ul>
<h4 dir="auto">Console</h4>
<ul dir="auto">
<li><del>As one may want to rely on the asset helper to generate URIs outside from a request (i.e., in a command-line, for sending e-mails), it should not depend on the request service, but rather on request_stack, in order to be available in a wider scope. (<a href="https://github.com/symfony/symfony/issues/11653" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/11653/hovercard">ref</a>, <a href="https://github.com/symfony/symfony/pull/10264" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/10264/hovercard">related</a>)</del></li>
<li><code class="notranslate">InputInterface</code> operates only with arguments passed to the Application. I suggest to add a method that would allow to operate with an input stream (<code class="notranslate">STDIN</code> in case of CLI application). (<a href="https://github.com/symfony/symfony/issues/10844" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/10844/hovercard">ref</a>)</li>
<li><del><code class="notranslate">Symfony\Component\Console\Output\OutputInteface</code> should include the following methods: <code class="notranslate">isQuiet</code>, <code class="notranslate">isVerbose</code>, <code class="notranslate">isVeryVerbose</code> and <code class="notranslate">isDebug</code>. (<a href="https://github.com/symfony/symfony/pull/10214" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/10214/hovercard">ref</a>, <a href="https://github.com/symfony/symfony/pull/11115" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/11115/hovercard">ref</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="52736590" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/13086" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/13086/hovercard" href="https://github.com/symfony/symfony/pull/13086">#13086</a>)</del></li>
<li><del>remove the shell feature (not that useful and bad side-effects see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="40990727" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/11750" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/11750/hovercard" href="https://github.com/symfony/symfony/issues/11750">#11750</a>)</del></li>
<li>...</li>
</ul>
<h4 dir="auto">DependencyInjection</h4>
<ul dir="auto">
<li><del>Remove the concept of "scopes" for services. (<a href="https://github.com/symfony/symfony/issues/10557#issuecomment-38811755" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/10557/hovercard">ref</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="104959582" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/15693" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/15693/hovercard" href="https://github.com/symfony/symfony/pull/15693">#15693</a>)</del></li>
<li><del>Remove all the <code class="notranslate">*.class</code> container parameters that define the namespace of the classes of the services (<a href="https://github.com/symfony/symfony/issues/11881" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/11881/hovercard">ref</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="64513688" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/14070" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/14070/hovercard" href="https://github.com/symfony/symfony/pull/14070">#14070</a>)</del></li>
<li>...</li>
</ul>
<h4 dir="auto">DomCrawler</h4>
<ul dir="auto">
<li>Add support for fallback hidden fields. (<a href="https://github.com/symfony/symfony/issues/11689" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/11689/hovercard">ref</a>)</li>
<li><del>Cleaning the Crawler API. (<a href="https://github.com/symfony/symfony/issues/15849" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/15849/hovercard">ref</a>)</del></li>
<li>...</li>
</ul>
<h4 dir="auto">Forms</h4>
<ul dir="auto">
<li><code class="notranslate">IntegerType</code> should be used for whole integers as the name suggests and not for floats. (<a href="https://github.com/symfony/symfony/issues/10240" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/10240/hovercard">ref</a>)</li>
<li><code class="notranslate">NumberType</code> should be used for floats (rendering as an <code class="notranslate">input[type="number"]</code>), and have a new option (for instance <code class="notranslate">support_locale_strings</code>) so that it renders as <code class="notranslate">input[type="text"]</code> and has the relevant attached <code class="notranslate">NumberToLocalizedStringTransformer</code>. (<a href="https://github.com/symfony/symfony/issues/10240" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/10240/hovercard">ref</a>)</li>
<li>Remove duplicated HTML attributes. Right now, the attributes passed in the <code class="notranslate">attr</code> option are rendered both in the <code class="notranslate"><form></code> tag and in the <code class="notranslate"><div>/<table></code> tag of the form. (<a href="https://github.com/symfony/symfony/issues/7709" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/7709/hovercard">ref</a>)</li>
<li>...</li>
</ul>
<h4 dir="auto">FrameworkBundle</h4>
<ul dir="auto">
<li><del>Methods of the base <code class="notranslate">Controller</code> class should be <code class="notranslate">protected</code> instead of <code class="notranslate">public</code> (<a href="https://github.com/symfony/symfony/issues/11294" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/11294/hovercard">ref</a>)</del></li>
<li><del>Removed unused logger from DelegatingLoader</del>, see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="9221736" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/6298" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/6298/hovercard" href="https://github.com/symfony/symfony/pull/6298">#6298</a></li>
<li>...</li>
</ul>
<h4 dir="auto">HttpFoundation</h4>
<ul dir="auto">
<li><del>Remove the request service (<a href="http://symfony.com/blog/new-in-symfony-2-4-the-request-stack" rel="nofollow">ref</a>)</del></li>
<li>Lazy initialization of Request headers. This can be a perfomance improvement for all requests which does not operate with request headers (almost all?) (<a href="https://github.com/symfony/symfony/issues/10077" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/10077/hovercard">ref</a>)</li>
<li><del><code class="notranslate">Request->getRequestFormat()</code> should only rely on the request attributes. (<a href="https://github.com/symfony/symfony/pull/8967" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/8967/hovercard">ref</a>)</del></li>
<li>Deprecate session as a service (<a href="https://github.com/symfony/symfony/issues/10557" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/10557/hovercard">ref</a>)</li>
<li>...</li>
</ul>
<h4 dir="auto">HttpKernel</h4>
<ul dir="auto">
<li><del>Remove <code class="notranslate">isClassInActiveBundle()</code> method from <code class="notranslate">Kernel</code> and <code class="notranslate">KernelInterface</code> (<a href="https://github.com/symfony/symfony/issues/11652" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/11652/hovercard">ref</a>)</del></li>
</ul>
<h4 dir="auto">Security</h4>
<ul dir="auto">
<li><del><code class="notranslate">supportsClass</code> and <code class="notranslate">supportAttribute</code> are actually never used in Symfony except by voters themselves. They should be removed from the <code class="notranslate">VoterInterface</code>. (<a href="https://github.com/symfony/symfony/pull/11183/files#r14050436">ref</a>)</del></li>
<li>A clear exception should be thrown if no voters voted on an attribute. So if you did a typo (e.g. <code class="notranslate">CREETE</code> instead of <code class="notranslate">CREATE</code>), you'd see a clear message, rather than nobody voting and access being granted/denied 100% of the time based on your voting strategy. (<a href="https://github.com/symfony/symfony/pull/11183/files#r14747264">ref</a>)</li>
<li>Update UserInterface and UserProviderInterface to change the name of the methods <code class="notranslate">getUsername()</code> and <code class="notranslate">loadUserByUsername()</code> because they are confusing. You can identify your users bu email for example, so hardcoding <code class="notranslate">username</code> doesn't look right (<a href="https://github.com/symfony/symfony/issues/10722" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/10722/hovercard">ref</a>, <a href="https://github.com/symfony/symfony/issues/10316" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/10316/hovercard">ref</a>)</li>
<li><del>Deprecate SecurityContext and move its code to the AuthorizationChecker and TokenStorage. (<a href="https://github.com/symfony/symfony/pull/11690" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/11690/hovercard">ref</a>)</del></li>
<li>Remove the RoleInterface and the Role class in favor of using strings only for roles: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="15763541" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/8313" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/8313/hovercard?comment_id=29796993&comment_type=issue_comment" href="https://github.com/symfony/symfony/pull/8313#issuecomment-29796993">#8313 (comment)</a></li>
<li>...</li>
</ul>
<h4 dir="auto">Translation</h4>
<ul dir="auto">
<li>Replace custom and <em>hackish</em> solutions (<a href="https://github.com/symfony/symfony/pull/4884" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/4884/hovercard">PR 4884</a>, <a href="https://github.com/symfony/symfony/pull/5547" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/5547/hovercard">PR 5547</a>) by the standard <code class="notranslate">MessageFormatter</code> PHP class. (<a href="https://github.com/symfony/symfony/issues/6009" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/6009/hovercard">ref</a>)</li>
<li>...</li>
</ul>
<h4 dir="auto">Web Profiler</h4>
<ul dir="auto">
<li><del>Remove the import/export feature of the Web Profiler. (<a href="https://twitter.com/fabpot/status/504996074684448768" rel="nofollow">ref</a>) -> see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="105215282" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/15709" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/15709/hovercard" href="https://github.com/symfony/symfony/pull/15709">#15709</a></del></li>
<li>...</li>
</ul>
| 0 |
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: 1.36.0</li>
<li>Operating System: macOS 13.0</li>
<li>Browser: Chromium</li>
<li>Other info: Running on Google Chrome</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>Script</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {chromium } from 'playwright'
(async () => {
console.log('connecting');
const browser = await chromium.connectOverCDP('http://localhost:9222');
console.log('connected');
const context = await browser.newContext();
const page = await context.newPage();
await page.goto('https://news.ycombinator.com');
browser.on('disconnected', () => {
console.log('disconnected');
});
})();"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-s1">chromium</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'playwright'</span><span class="pl-kos"></span>
<span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'connecting'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">browser</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">chromium</span><span class="pl-kos">.</span><span class="pl-en">connectOverCDP</span><span class="pl-kos">(</span><span class="pl-s">'http://localhost:9222'</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">'connected'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">context</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">newContext</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">context</span><span class="pl-kos">.</span><span class="pl-en">newPage</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'https://news.ycombinator.com'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'disconnected'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'disconnected'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from playwright.sync_api import sync_playwright
from playwright._impl._browser import Browser, prepare_browser_context_params
print('starting')
def run(playwright):
print('connecting')
chromium = playwright.chromium
browser = chromium.connect_over_cdp('ws://127.0.0.1:9222/devtools/browser/7f40aaee-1efb-4dc1-9e80-c6e3063c7e29')
print('connected')
context = browser.new_context()
page = context.new_page()
page.goto('https://harvard.edu')
with sync_playwright() as playwright:
run(playwright)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">playwright</span>.<span class="pl-s1">sync_api</span> <span class="pl-k">import</span> <span class="pl-s1">sync_playwright</span>
<span class="pl-k">from</span> <span class="pl-s1">playwright</span>.<span class="pl-s1">_impl</span>.<span class="pl-s1">_browser</span> <span class="pl-k">import</span> <span class="pl-v">Browser</span>, <span class="pl-s1">prepare_browser_context_params</span>
<span class="pl-en">print</span>(<span class="pl-s">'starting'</span>)
<span class="pl-k">def</span> <span class="pl-en">run</span>(<span class="pl-s1">playwright</span>):
<span class="pl-en">print</span>(<span class="pl-s">'connecting'</span>)
<span class="pl-s1">chromium</span> <span class="pl-c1">=</span> <span class="pl-s1">playwright</span>.<span class="pl-s1">chromium</span>
<span class="pl-s1">browser</span> <span class="pl-c1">=</span> <span class="pl-s1">chromium</span>.<span class="pl-en">connect_over_cdp</span>(<span class="pl-s">'ws://127.0.0.1:9222/devtools/browser/7f40aaee-1efb-4dc1-9e80-c6e3063c7e29'</span>)
<span class="pl-en">print</span>(<span class="pl-s">'connected'</span>)
<span class="pl-s1">context</span> <span class="pl-c1">=</span> <span class="pl-s1">browser</span>.<span class="pl-en">new_context</span>()
<span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-s1">context</span>.<span class="pl-en">new_page</span>()
<span class="pl-s1">page</span>.<span class="pl-en">goto</span>(<span class="pl-s">'https://harvard.edu'</span>)
<span class="pl-k">with</span> <span class="pl-en">sync_playwright</span>() <span class="pl-k">as</span> <span class="pl-s1">playwright</span>:
<span class="pl-en">run</span>(<span class="pl-s1">playwright</span>)</pre></div>
<p dir="auto"><strong>Steps</strong></p>
<ul dir="auto">
<li><code class="notranslate">open -a "Google Chrome" --args --profile-directory=Default --remote-debugging-port=9222</code></li>
<li>
<ul dir="auto">
<li>Leave the chrome open for 12hrs+`</li>
</ul>
</li>
<li>visit localhost:9222 and get CDP Url</li>
<li>Run python or js script</li>
</ul>
<p dir="auto"><strong>Expected</strong></p>
<p dir="auto">Playwright scripts connect to available CDP port and executes.</p>
<p dir="auto"><strong>Actual</strong></p>
<p dir="auto">Playwright scripts cannot connect and timeout. Browser able to display remote debugging port info and receive CDP commands:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"Browser": "Chrome/114.0.5735.198",
"Protocol-Version": "1.3",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36",
"V8-Version": "11.4.183.25",
"WebKit-Version": "537.36 (@c3029382d11c5f499e4fc317353a43d411a5ce1c)",
"webSocketDebuggerUrl": "ws://127.0.0.1:9222/devtools/browser/7f40aaee-1efb-4dc1-9e80-c6e3063c7e29"
}"><pre class="notranslate"><code class="notranslate">{
"Browser": "Chrome/114.0.5735.198",
"Protocol-Version": "1.3",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36",
"V8-Version": "11.4.183.25",
"WebKit-Version": "537.36 (@c3029382d11c5f499e4fc317353a43d411a5ce1c)",
"webSocketDebuggerUrl": "ws://127.0.0.1:9222/devtools/browser/7f40aaee-1efb-4dc1-9e80-c6e3063c7e29"
}
</code></pre></div>
<p dir="auto">this works without any issues, but playwright scripts don't work.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import WebSocket from 'ws';
const client = new WebSocket(
'ws://127.0.0.1:9222/devtools/browser/7f40aaee-1efb-4dc1-9e80-c6e3063c7e29'
);
client.on('open', function open() {
client.send(
JSON.stringify({
id: 1, // Unique identifier for the request
method: 'Target.createTarget',
params: {
url: 'https://yale.edu' // URL of the new target
}
})
);
});
client.on('message', function incoming(data) {
console.log(data);
});"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">WebSocket</span> <span class="pl-k">from</span> <span class="pl-s">'ws'</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">client</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">WebSocket</span><span class="pl-kos">(</span>
<span class="pl-s">'ws://127.0.0.1:9222/devtools/browser/7f40aaee-1efb-4dc1-9e80-c6e3063c7e29'</span>
<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">client</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'open'</span><span class="pl-kos">,</span> <span class="pl-k">function</span> <span class="pl-en">open</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">client</span><span class="pl-kos">.</span><span class="pl-en">send</span><span class="pl-kos">(</span>
<span class="pl-c1">JSON</span><span class="pl-kos">.</span><span class="pl-en">stringify</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">id</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c">// Unique identifier for the request</span>
<span class="pl-c1">method</span>: <span class="pl-s">'Target.createTarget'</span><span class="pl-kos">,</span>
<span class="pl-c1">params</span>: <span class="pl-kos">{</span>
<span class="pl-c1">url</span>: <span class="pl-s">'https://yale.edu'</span> <span class="pl-c">// URL of the new target</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">client</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'message'</span><span class="pl-kos">,</span> <span class="pl-k">function</span> <span class="pl-en">incoming</span><span class="pl-kos">(</span><span class="pl-s1">data</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-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">the playwright python script throws this error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(tmp-cdp) ➜ playwright-connect python playwright-test.py
starting
connecting
Traceback (most recent call last):
File "/Users/harshg/code/playwright-connect/playwright-test.py", line 15, in <module>
run(playwright)
File "/Users/harshg/code/playwright-connect/playwright-test.py", line 8, in run
browser = chromium.connect_over_cdp('ws://localhost:9222/devtools/browser/7f40aaee-1efb-4dc1-9e80-c6e3063c7e29')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/harshg/miniconda3/envs/tmp-cdp/lib/python3.11/site-packages/playwright/sync_api/_generated.py", line 15094, in connect_over_cdp
self._sync(
File "/Users/harshg/miniconda3/envs/tmp-cdp/lib/python3.11/site-packages/playwright/_impl/_sync_base.py", line 109, in _sync
return task.result()
^^^^^^^^^^^^^
File "/Users/harshg/miniconda3/envs/tmp-cdp/lib/python3.11/site-packages/playwright/_impl/_browser_type.py", line 172, in connect_over_cdp
response = await self._channel.send_return_as_dict("connectOverCDP", params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/harshg/miniconda3/envs/tmp-cdp/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 66, in send_return_as_dict
return await self._connection.wrap_api_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/harshg/miniconda3/envs/tmp-cdp/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 482, in wrap_api_call
return await cb()
^^^^^^^^^^
File "/Users/harshg/miniconda3/envs/tmp-cdp/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 97, in inner_send
result = next(iter(done)).result()
^^^^^^^^^^^^^^^^^^^^^^^^^
playwright._impl._api_types.TimeoutError: Timeout 30000ms exceeded.
=========================== logs ===========================
<ws connecting> ws://localhost:9222/devtools/browser/7f40aaee-1efb-4dc1-9e80-c6e3063c7e29
<ws connected> ws://localhost:9222/devtools/browser/7f40aaee-1efb-4dc1-9e80-c6e3063c7e29
============================================================"><pre class="notranslate"><code class="notranslate">(tmp-cdp) ➜ playwright-connect python playwright-test.py
starting
connecting
Traceback (most recent call last):
File "/Users/harshg/code/playwright-connect/playwright-test.py", line 15, in <module>
run(playwright)
File "/Users/harshg/code/playwright-connect/playwright-test.py", line 8, in run
browser = chromium.connect_over_cdp('ws://localhost:9222/devtools/browser/7f40aaee-1efb-4dc1-9e80-c6e3063c7e29')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/harshg/miniconda3/envs/tmp-cdp/lib/python3.11/site-packages/playwright/sync_api/_generated.py", line 15094, in connect_over_cdp
self._sync(
File "/Users/harshg/miniconda3/envs/tmp-cdp/lib/python3.11/site-packages/playwright/_impl/_sync_base.py", line 109, in _sync
return task.result()
^^^^^^^^^^^^^
File "/Users/harshg/miniconda3/envs/tmp-cdp/lib/python3.11/site-packages/playwright/_impl/_browser_type.py", line 172, in connect_over_cdp
response = await self._channel.send_return_as_dict("connectOverCDP", params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/harshg/miniconda3/envs/tmp-cdp/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 66, in send_return_as_dict
return await self._connection.wrap_api_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/harshg/miniconda3/envs/tmp-cdp/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 482, in wrap_api_call
return await cb()
^^^^^^^^^^
File "/Users/harshg/miniconda3/envs/tmp-cdp/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 97, in inner_send
result = next(iter(done)).result()
^^^^^^^^^^^^^^^^^^^^^^^^^
playwright._impl._api_types.TimeoutError: Timeout 30000ms exceeded.
=========================== logs ===========================
<ws connecting> ws://localhost:9222/devtools/browser/7f40aaee-1efb-4dc1-9e80-c6e3063c7e29
<ws connected> ws://localhost:9222/devtools/browser/7f40aaee-1efb-4dc1-9e80-c6e3063c7e29
============================================================
</code></pre></div>
<p dir="auto">Other info:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import puppeteer from 'puppeteer-core';
(async () => {
const browser = await puppeteer.connect({
browserWSEndpoint: 'ws://127.0.0.1:9222/devtools/browser/7f40aaee-1efb-4dc1-9e80-c6e3063c7e29'
});
const newPage = await browser.newPage();
await newPage.goto('https://harvard.edu');
})();"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">puppeteer</span> <span class="pl-k">from</span> <span class="pl-s">'puppeteer-core'</span><span class="pl-kos">;</span>
<span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">browser</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">puppeteer</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-c1">browserWSEndpoint</span>: <span class="pl-s">'ws://127.0.0.1:9222/devtools/browser/7f40aaee-1efb-4dc1-9e80-c6e3063c7e29'</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">newPage</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">newPage</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'https://harvard.edu'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">This puppeteer script is able to connect sporadically. Tried running 20 times, connected 4 times.</p>
|
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [v1.34.0]</li>
<li>Operating System: [All]</li>
<li>Browser: [All]</li>
</ul>
<h3 dir="auto">Source code</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public async waitWidgetsLoaded(seconds: number) {
const loadingDots = await this.widgetRefreshOverlay.all();
for (const dot of loadingDots) {
await dot.waitFor({ state: 'hidden', timeout: seconds * 1000 });
}
for (const dot of loadingDots) {
await expect(async () => {
const isDotContainsAttribute = (await dot.getAttribute('class'))!.includes('widget-loading');
expect(isDotContainsAttribute).toBeFalsy();
}).toPass({ timeout: seconds * 1000, intervals: [0.1 * 1000] });
}
}"><pre class="notranslate"><code class="notranslate">public async waitWidgetsLoaded(seconds: number) {
const loadingDots = await this.widgetRefreshOverlay.all();
for (const dot of loadingDots) {
await dot.waitFor({ state: 'hidden', timeout: seconds * 1000 });
}
for (const dot of loadingDots) {
await expect(async () => {
const isDotContainsAttribute = (await dot.getAttribute('class'))!.includes('widget-loading');
expect(isDotContainsAttribute).toBeFalsy();
}).toPass({ timeout: seconds * 1000, intervals: [0.1 * 1000] });
}
}
</code></pre></div>
<p dir="auto"><strong>Steps</strong></p>
<ul dir="auto">
<li>[Run the test] that contains step with polling</li>
</ul>
<p dir="auto">Note: polling triggers several times in period of time (condition <strong>is passed</strong> and it's passed <strong>not on 1st polling call</strong>)</p>
<p dir="auto"><strong>Expected</strong><br>
Step with polling is marked as <strong>passed</strong> (Green checkmark) in the html report</p>
<p dir="auto"><strong>Actual</strong><br>
Step with polling is marked as <strong>failed</strong> (Red checkmark) in the html report</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/13851264/241193978-c0e5447a-65b9-4703-a3d6-d21004c4ad07.png"><img src="https://user-images.githubusercontent.com/13851264/241193978-c0e5447a-65b9-4703-a3d6-d21004c4ad07.png" alt="image" style="max-width: 100%;"></a></p>
| 0 |
<h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>Current Behavior</strong><br>
When the value of an enum case references a string case on another enum an unexpected extra key is added to the compiled javascript object. This is especially apparent when the case names do not match.</p>
<p dir="auto"><strong>Input Code</strong><br>
<a href="https://bit.ly/2nRTcds" rel="nofollow">https://bit.ly/2nRTcds</a></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="enum Foo {
foo = "foo"
}
enum Baz {
baz = Foo.foo
}"><pre class="notranslate"><span class="pl-k">enum</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
<span class="pl-c1">foo</span> <span class="pl-c1">=</span> <span class="pl-s">"foo"</span>
<span class="pl-kos">}</span>
<span class="pl-k">enum</span> <span class="pl-smi">Baz</span> <span class="pl-kos">{</span>
<span class="pl-c1">baz</span> <span class="pl-c1">=</span> <span class="pl-smi">Foo</span><span class="pl-kos">.</span><span class="pl-c1">foo</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Expected behavior/code</strong><br>
With the code above, I would expect a javascript object that contained one key, "baz", with the value "foo". Instead, "Baz" has two keys, "baz", "foo", with the values, "foo" and "baz" respectively. This does not match what the Typescript compiler produces: <a href="https://bit.ly/2nbliQX" rel="nofollow">https://bit.ly/2nbliQX</a></p>
<p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p>
<p dir="auto">No special configuration. See the babel REPL link above for the full configuration.</p>
<p dir="auto"><strong>Environment</strong></p>
<ul dir="auto">
<li>Babel version(s): v7.6.2</li>
<li>Node/npm version: NA</li>
<li>OS: NA</li>
<li>Monorepo: no</li>
<li>How you are using Babel: repl</li>
</ul>
|
<p dir="auto">I was looking through the Babel docs, and I don't see a way to specify a different file other than .babelrc for the Babel config.</p>
<p dir="auto">My use case is I am writing a test runner. A project might use Babel in more than one way. For example, they may transpile their source with some Babel settings, but may transpile their tests with another Babel setting.</p>
<p dir="auto">So ideally, what I would have in the project root, would be:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="project-root/
.babelrc // used by project source
suman.babelrc // used for transpiling tests"><pre class="notranslate"><code class="notranslate">project-root/
.babelrc // used by project source
suman.babelrc // used for transpiling tests
</code></pre></div>
<p dir="auto">my thinking is that when I use babel-cli, I could pass the path to suman.babelrc to babel via the command line, or an env variable, either one.</p>
<p dir="auto">Is this supported yet? Like I said, had trouble finding out if this is supported. Thanks!</p>
| 0 |
<p dir="auto">I want to implement a transformer toolkit(a set of modules that will compose some kind of DL model with attention ).I have said a toolkit because the today's landscape of the transformer research is very diverse and I think that it will be better to have the separate modules ( attention layer , concat layer ,add& norm layer etc) and mix and match them rather to have one or two ready layer that will be very general and not good for any specific task</p>
|
<p dir="auto">I'm trying to use a tf op inside a Lambda layer. The goal is to basically wrap tf layers such that <code class="notranslate">model.compile</code> etc. still work. As I understood it I can just incorporate tf ops inside Lambda layers. If I do this however, serialization seems to be broken because it fails to pickle:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: can't pickle _thread.lock objects"><pre class="notranslate"><code class="notranslate">TypeError: can't pickle _thread.lock objects
</code></pre></div>
<p dir="auto">The weird thing is that if I create a model in the main method, it seems to work fine. If I create the model inside a separate method, it fails to serialize. I'm guessing this is due to some scoping problem, but it could also be a Keras issue. A minimum example where this occurs is shown below, where I replaced a <code class="notranslate">Conv2D</code> with a tf <code class="notranslate">conv2d</code> op to demonstrate the issue.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import tensorflow as tf
from keras.models import Model
from keras.layers import Input, Lambda
def weight_variable(shape):
initial = tf.truncated_normal(shape, stddev=0.1)
return tf.Variable(initial)
def conv2d(x, W):
return tf.nn.conv2d(x, W, strides=[1, 1, 1, 1], padding='SAME')
def create_model(num_classes):
inputs = Input(shape=(28, 28, 1))
W_conv1 = weight_variable([3, 3, 1, 32])
x = Lambda(lambda x: conv2d(x, W_conv1))(inputs)
model = Model(inputs=inputs, outputs=x)
return model
if __name__=='__main__':
inputs = Input(shape=(28, 28, 1))
W_conv1 = weight_variable([3, 3, 1, 32])
x = Lambda(lambda x: conv2d(x, W_conv1))(inputs)
# This works
model_working = Model(inputs=inputs, outputs=x)
print(model_working.to_json())
# This gives "TypeError: can't pickle _thread.lock objects"
model_broken = create_model(10)
print(model_broken.to_json())"><pre class="notranslate"><code class="notranslate">import tensorflow as tf
from keras.models import Model
from keras.layers import Input, Lambda
def weight_variable(shape):
initial = tf.truncated_normal(shape, stddev=0.1)
return tf.Variable(initial)
def conv2d(x, W):
return tf.nn.conv2d(x, W, strides=[1, 1, 1, 1], padding='SAME')
def create_model(num_classes):
inputs = Input(shape=(28, 28, 1))
W_conv1 = weight_variable([3, 3, 1, 32])
x = Lambda(lambda x: conv2d(x, W_conv1))(inputs)
model = Model(inputs=inputs, outputs=x)
return model
if __name__=='__main__':
inputs = Input(shape=(28, 28, 1))
W_conv1 = weight_variable([3, 3, 1, 32])
x = Lambda(lambda x: conv2d(x, W_conv1))(inputs)
# This works
model_working = Model(inputs=inputs, outputs=x)
print(model_working.to_json())
# This gives "TypeError: can't pickle _thread.lock objects"
model_broken = create_model(10)
print(model_broken.to_json())
</code></pre></div>
<p dir="auto">edit: <code class="notranslate">to_json</code>, <code class="notranslate">to_yaml</code> and <code class="notranslate">save</code> are at least broken with this code. I'm guessing its all methods that require the serialization of the network architecture that are broken with this model.</p>
| 0 |
<p dir="auto">On documentation page, when clicking on HEAD in sidebar, there's a 404 error.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Getting the HEAD Github documentation.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Get a 404 error</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">Go on <a href="http://www.material-ui.com/" rel="nofollow">documentation website</a>, open sidebar menu, and try to change version. All versions are working except HEAD (which should be 0.20.0).</p>
<h2 dir="auto">Context</h2>
<p dir="auto">No need</p>
<h2 dir="auto">Your Environment</h2>
<p dir="auto">No need</p>
|
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<p dir="auto">Thanks for the awesome library guys! I'm really pleased with it so far, other than the bug I've described below.</p>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">When I create an <code class="notranslate">IconButton</code> with a menu that activates on mouse click, the <code class="notranslate">Menu</code> should open <strong>on top of</strong> the <code class="notranslate">IconButton</code> because the <code class="notranslate">Iconbutton</code> has been set as the anchor element.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Instead, the <code class="notranslate">Menu</code>opens in the far left corner of the page. See the screenshot below to see what I mean:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7084294/30189706-72b1d7e2-93ea-11e7-9f6f-56f839e45b51.png"><img src="https://user-images.githubusercontent.com/7084294/30189706-72b1d7e2-93ea-11e7-9f6f-56f839e45b51.png" alt="stages leadsimple" style="max-width: 100%;"></a></p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">I can't include the steps to reproduce since I'm copy-pasting the code which isn't working directly from the <a href="https://material-ui-1dab0.firebaseapp.com/demos/menus/" rel="nofollow">MUI docs about menus</a>. Below is all my relevant code though:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="handleClick = event => {
this.setState({ open: true, anchorEl: event.currentTarget });
};
handleRequestClose = () => {
this.setState({ open: false });
};
render() {
return (
<div>
<IconButton
aria-label="More"
aria-owns={this.state.open ? 'simple-menu' : null}
aria-haspopup="true"
onClick={this.handleClick}
>
<Icon>more_vert</Icon>
</IconButton>
<Menu
id="simple-menu"
anchorEl={this.state.anchorEl}
open={this.state.open}
onRequestClose={this.handleRequestClose}
>
<MenuItem onClick={this.handleRequestClose}>Rename</MenuItem>
<MenuItem onClick={this.handleRequestClose}>Merge and Delete</MenuItem>
</Menu>
</div>
)
}"><pre class="notranslate"><span class="pl-en">handleClick</span> <span class="pl-c1">=</span> <span class="pl-s1">event</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">open</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">anchorEl</span>: <span class="pl-s1">event</span><span class="pl-kos">.</span><span class="pl-c1">currentTarget</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">handleRequestClose</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">open</span>: <span class="pl-c1">false</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos"></span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">IconButton</span>
<span class="pl-c1">aria-label</span><span class="pl-c1">=</span><span class="pl-s">"More"</span>
<span class="pl-c1">aria-owns</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">state</span><span class="pl-kos">.</span><span class="pl-c1">open</span> ? <span class="pl-s">'simple-menu'</span> : <span class="pl-c1">null</span><span class="pl-kos">}</span>
<span class="pl-c1">aria-haspopup</span><span class="pl-c1">=</span><span class="pl-s">"true"</span>
<span class="pl-c1">onClick</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">handleClick</span><span class="pl-kos">}</span>
<span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">Icon</span><span class="pl-c1">></span>more_vert<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">Icon</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">IconButton</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">Menu</span>
<span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"simple-menu"</span>
<span class="pl-c1">anchorEl</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">state</span><span class="pl-kos">.</span><span class="pl-c1">anchorEl</span><span class="pl-kos">}</span>
<span class="pl-c1">open</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">state</span><span class="pl-kos">.</span><span class="pl-c1">open</span><span class="pl-kos">}</span>
<span class="pl-c1">onRequestClose</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">handleRequestClose</span><span class="pl-kos">}</span>
<span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">MenuItem</span> <span class="pl-c1">onClick</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">handleRequestClose</span><span class="pl-kos">}</span><span class="pl-c1">></span>Rename<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">MenuItem</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">MenuItem</span> <span class="pl-c1">onClick</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">handleRequestClose</span><span class="pl-kos">}</span><span class="pl-c1">></span>Merge and Delete<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">MenuItem</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">Menu</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-kos">)</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Note that this button is nested (a few components down) inside a <code class="notranslate">Grid</code> component so that may potentially be an issue. I did test the menu outside of the <code class="notranslate">Grid</code> component however and I still encountered this problem. Please help as soon as you can. Thanks!</p>
<h2 dir="auto">My Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>v1.0.0-beta.8</td>
</tr>
<tr>
<td>React</td>
<td>15.6.1</td>
</tr>
<tr>
<td>browser</td>
<td>Google Chrome</td>
</tr>
</tbody>
</table>
| 0 |
<p dir="auto">If you know how to fix the issue, make a pull request instead.</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=""> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>. (Please ask any appropriate questions there).</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/bczengel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bczengel">@bczengel</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kuzn-ilya/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kuzn-ilya">@kuzn-ilya</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/stepancar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/stepancar">@stepancar</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ericanderson/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ericanderson">@ericanderson</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aj-r/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aj-r">@aj-r</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Ailrun/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Ailrun">@Ailrun</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/e-cloud/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/e-cloud">@e-cloud</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jtmthf/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jtmthf">@jtmthf</a></li>
</ul>
</li>
</ul>
<p dir="auto">The <code class="notranslate">NumericDictionaryIterator</code>'s <code class="notranslate">key</code> param is incorrectly typed compared to runtime values. The type of <code class="notranslate">key</code> is <code class="notranslate">number</code> (makes sense, since it's a Dictionary keyed by <code class="notranslate">number</code>), but at runtime, keys of objects are always <code class="notranslate">string</code>.</p>
<p dir="auto">I encountered this while using <code class="notranslate">_.map()</code> on a <code class="notranslate">NumericDictionary</code>. At runtime, <code class="notranslate">key</code> is a string and was creating incorrect data (because I expect it to be a number). I couldn't use <code class="notranslate">parseInt()</code> to convert it to a number, because <code class="notranslate">parseInt()</code> only accepts <code class="notranslate">string</code>, but <code class="notranslate">key</code> is typed as <code class="notranslate">number</code> at compile time.</p>
<p dir="auto">To get correct behavior, I needed to use <code class="notranslate">parseInt(key as any, 10)</code> to convert the run time string value to a number at run time.</p>
<p dir="auto">I didn't want to make a sweeping change like this in a PR, because I'm not aware of intricacies where the current definition of <code class="notranslate">NumericDictionaryIterator</code> may actually be correct at run time. Is the fix really as simple as replacing all current usages of <code class="notranslate">NumericDictionaryIterator</code> (and related) types with the corresponding <code class="notranslate">DictionaryIterator</code> (and related) types, and deleting the <code class="notranslate">NumericDictionaryIterator</code> (and related) types? It seems that the various overloads of methods like <code class="notranslate">_.map()</code> that accept a <code class="notranslate">NumericDictionary</code> should use a plain <code class="notranslate">DictionaryIterator</code>.</p>
<p dir="auto">If someone can confirm that the fix is that simple, I'd be willing to make the changes.</p>
|
<ul dir="auto">
<li>
<p dir="auto">[ x] I tried using the <code class="notranslate">@types/xml2js</code> package and had problems.</p>
<ul dir="auto">
<li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/michelsalib/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/michelsalib">@michelsalib</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jasonrm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jasonrm">@jasonrm</a></li>
</ul>
</li>
</ul>
<p dir="auto">After I installed xml2js typings, I get a ton of errors with Node typings.</p>
<p dir="auto">Here are a few samples. Do I have a collision here? Thanks</p>
<p dir="auto">ERROR in C:/src/Xbox.Ambassadors/Microsoft.Ambassadors/Microsoft.Ambassadors.Webv2/src/server/node_modules/@types/node/index.d.ts (4128,22): Cannot redeclare block-scoped variable 'S_IXOTH'.</p>
<p dir="auto">ERROR in C:/src/Xbox.Ambassadors/Microsoft.Ambassadors/Microsoft.Ambassadors.Webv2/src/server/node_modules/@types/node/index.d.ts (4427,18): Duplicate identifier 'TLSSocket'.</p>
<p dir="auto">ERROR in C:/src/Xbox.Ambassadors/Microsoft.Ambassadors/Microsoft.Ambassadors.Webv2/src/server/node_modules/@types/node/index.d.ts (4794,10): Duplicate identifier 'Utf8AsciiLatin1Encoding'.</p>
<p dir="auto">ERROR in C:/src/Xbox.Ambassadors/Microsoft.Ambassadors/Microsoft.Ambassadors.Webv2/src/server/node_modules/@types/node/index.d.ts (4795,10): Duplicate identifier 'HexBase64Latin1Encoding'.</p>
<p dir="auto">ERROR in C:/src/Xbox.Ambassadors/Microsoft.Ambassadors/Microsoft.Ambassadors.Webv2/src/server/node_modules/@types/node/index.d.ts (4796,10): Duplicate identifier 'Utf8AsciiBinaryEncoding'.</p>
<p dir="auto">ERROR in C:/src/Xbox.Ambassadors/Microsoft.Ambassadors/Microsoft.Ambassadors.Webv2/src/server/node_modules/@types/node/index.d.ts (4797,10): Duplicate identifier 'HexBase64BinaryEncoding'.</p>
<p dir="auto">ERROR in C:/src/Xbox.Ambassadors/Microsoft.Ambassadors/Microsoft.Ambassadors.Webv2/src/server/node_modules/@types/node/index.d.ts (4798,10): Duplicate identifier 'ECDHKeyFormat'.</p>
| 0 |
<p dir="auto">It works all fine but I get the exit code <code class="notranslate">3221225477</code>every time which causes npm to display an error if ran with a npm-script.</p>
<p dir="auto">OS: Windows 10 Version 1511<br>
Electron: 0.35.1</p>
|
<p dir="auto">In VS Code when I call process.exit() from the main side I get the following trace. I have not been able to reproduce on a bare Electron 0.34.1 though. Any ideas what I could look for to nail this down?</p>
<p dir="auto">C:\GitDevelopment\monaco> (No symbol) [0x0046D436](No symbol) [0x0036B0FF](No symbol) [0x0036AC8A]<br>
uv_async_send [0x6403A4FD+1003]<br>
_get_flsindex [0x63A3C01D+111]<br>
_get_flsindex [0x63A3C001+83]<br>
BaseThreadInitThunk [0x756E7C04+36]<br>
RtlInitializeExceptionChain [0x7706AD1F+143]<br>
RtlInitializeExceptionChain [0x7706ACEA+90]</p>
| 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=xarx" rel="nofollow">Xarx</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8343?redirect=false" rel="nofollow">SPR-8343</a></strong> and commented</p>
<p dir="auto">What happens:<br>
I have a field denoted by <code class="notranslate">@Autowire</code>. There is one <code class="notranslate">@Primary</code> bean candidate for the field, the other candidates are marked as <code class="notranslate">@Lazy</code>. However, even in this case, when a primary candidate is available, all lazy candidates are instantiated during the candidate lookup process.</p>
<p dir="auto">What should happen:<br>
When a primary candidate exists, it should be chosen without instantiation of other lazy-init candidates.</p>
<p dir="auto">I tried to use the <code class="notranslate">@Lazy</code> annotation to mark beans that are not to be instantiated unless realy used by the application. But this doesn't work currently.</p>
<p dir="auto">More details:<br>
Spring's (org.springframework.beans.factory.support) DefaultListBeanFactory.doResolveDependency() internally calls findAutowireCandidates(). findAutowireCandidates() instantiates all candidate beans, but the determination whether there exists a primary candidate is done only later in doResolveDependency() - which is too late. This determination should be done earlier in findAutowireCandidates(), before the other candidates are instantiated.</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="398112342" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12992" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12992/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12992">#12992</a> Lazy-init beans are unnecessarily created during the candidate determination process (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto">4 votes, 4 watchers</p>
|
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=nazin" rel="nofollow">Nazin Alexander</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5254?redirect=false" rel="nofollow">SPR-5254</a></strong> and commented</p>
<p dir="auto">public abstract class A {<br>
private Object service;</p>
<p dir="auto">public void setService(Object service) {<br>
this.service = service;<br>
}</p>
<p dir="auto">public Object getService() {<br>
return service;<br>
}</p>
<p dir="auto">}</p>
<p dir="auto">public class B extends A{</p>
<p dir="auto"><code class="notranslate">@Override</code><br>
public MyService getService() {<br>
return (MyService) super.getService();<br>
}<br>
}</p>
<p dir="auto"><bean id="myService" class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean" scope="singleton" lazy-init="true"><br>
<property name="serviceUrl" value="${protocol_type}://${server_ip}:${server_port}/application/javaservice/service"/><br>
<property name="serviceInterface" value="com.xxx.yyy.ServiceInt"/><br>
<property name="httpInvokerRequestExecutor" ref="commonsHttpInvokerRequestExecutor"/><br>
</bean><br>
<!--****************************************************************************************************--><br>
<bean id="dao" class="org.springframework.aop.framework.ProxyFactoryBean" scope="singleton" lazy-init="true"><br>
<property name="target"><br>
<bean class="com.xxxyyy.zzz.B"><br>
<property name="service" ref="myService"/><br>
</bean><br>
</property><br>
<property name="interceptorNames"><br>
<list><br>
<value>exceptionIntercepter</value><br>
</list><br>
</property><br>
</bean><br>
</beans><br>
When load application error: Bean property 'service' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.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="398071993" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7415" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7415/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7415">#7415</a> Dealing with covariant properties in CachedIntrospectionResults (<em><strong>"duplicates"</strong></em>)</li>
</ul>
| 0 |
<p dir="auto">Hi,</p>
<p dir="auto">Running opencv installed via OpenVINO on Windows and it cannot read video. Tried several formats (MP4, AVI, etc), but still getting:<br>
<code class="notranslate">MFX: Unsupported extension [ WARN:0] global opencv\modules\videoio\src\cap_msmf.cpp (680) CvCapture_MSMF::initStream Failed to set mediaType (stream 0, (352x288 @ 25) MFVideoFormat_RGB32(unsupported media type)</code><br>
I tried installing various codecs but I still have the issue.</p>
<p dir="auto">Platform info:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="4.3.0-14-g9a54a3273 (OpenVINO/2020.3)
releases/openvino/2020.3
9a54a3273da58e5992a7cf4bed1e30277f26dd22
General configuration for OpenCV 4.3.0-openvino-2020.3.0 =====================================
Version control: 9a54a3273da58e5992a7cf4bed1e30277f26dd22
Platform:
Host: Windows 10.0.18363 AMD64
CMake: 3.14.5
CMake generator: Visual Studio 14 2015 Win64
MSVC: 1900"><pre class="notranslate"><code class="notranslate">4.3.0-14-g9a54a3273 (OpenVINO/2020.3)
releases/openvino/2020.3
9a54a3273da58e5992a7cf4bed1e30277f26dd22
General configuration for OpenCV 4.3.0-openvino-2020.3.0 =====================================
Version control: 9a54a3273da58e5992a7cf4bed1e30277f26dd22
Platform:
Host: Windows 10.0.18363 AMD64
CMake: 3.14.5
CMake generator: Visual Studio 14 2015 Win64
MSVC: 1900
</code></pre></div>
<p dir="auto">Any help?</p>
<p dir="auto">Regards,<br>
Nedim</p>
|
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.3.0</li>
<li>Operating System / Platform => Windows 64 Bit</li>
<li>Compiler => Visual Studio 2019</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">if I use mp4 which has no audio stream (audio stream was removed with ffmpeg), no problem.</p>
<p dir="auto">I used opencv of release windows module(4.3.0).<br>
result of code is as follows.<br>
sample files are attached.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ INFO:0] global C:\build\master_winpack-build-win64-vc15\opencv\modules\videoio\src\videoio_registry.cpp (187) cv::`anonymous-namespace'::VideoBackendRegistry::VideoBackendRegistry VIDEOIO: Enabled backends(7, sorted by priority): FFMPEG(1000); GSTREAMER(990); INTEL_MFX(980); MSMF(970); DSHOW(960); CV_IMAGES(950); CV_MJPEG(940)
[ WARN:0] global C:\build\master_winpack-build-win64-vc15\opencv\modules\videoio\src\cap_msmf.cpp (681) CvCapture_MSMF::initStream Failed to set mediaType (stream 0, (0x0 @ 1) MFVideoFormat_RGB32(unsupported media type)
ng
ok"><pre class="notranslate"><code class="notranslate">[ INFO:0] global C:\build\master_winpack-build-win64-vc15\opencv\modules\videoio\src\videoio_registry.cpp (187) cv::`anonymous-namespace'::VideoBackendRegistry::VideoBackendRegistry VIDEOIO: Enabled backends(7, sorted by priority): FFMPEG(1000); GSTREAMER(990); INTEL_MFX(980); MSMF(970); DSHOW(960); CV_IMAGES(950); CV_MJPEG(940)
[ WARN:0] global C:\build\master_winpack-build-win64-vc15\opencv\modules\videoio\src\cap_msmf.cpp (681) CvCapture_MSMF::initStream Failed to set mediaType (stream 0, (0x0 @ 1) MFVideoFormat_RGB32(unsupported media type)
ng
ok
</code></pre></div>
<h5 dir="auto">Steps to reproduce</h5>
<div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#include <stdio.h>
#include <iostream>
#include <opencv2/opencv.hpp>
int main()
{
cv::VideoCapture cap("sample-has-sound.mp4", cv::CAP_MSMF);
cv::Mat image;
if (cap.isOpened())
{
bool ret = cap.read(image);
if (ret)
{
std::cout << "ok" << std::endl;
}
else
{
std::cout << "ng" << std::endl;
}
}
cv::VideoCapture cap2("sample-no-sound.mp4", cv::CAP_MSMF);
if (cap2.isOpened())
{
bool ret = cap2.read(image);
if (ret)
{
std::cout << "ok" << std::endl;
}
else
{
std::cout << "ng" << std::endl;
}
}
} "><pre class="notranslate">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>stdio.h<span class="pl-pds">></span></span>
#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>iostream<span class="pl-pds">></span></span>
#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>opencv2/opencv.hpp<span class="pl-pds">></span></span>
<span class="pl-k">int</span> <span class="pl-en">main</span>()
{
cv::VideoCapture <span class="pl-smi">cap</span>(<span class="pl-s"><span class="pl-pds">"</span>sample-has-sound.mp4<span class="pl-pds">"</span></span>, cv::CAP_MSMF);
cv::Mat image;
<span class="pl-k">if</span> (cap.<span class="pl-c1">isOpened</span>())
{
<span class="pl-k">bool</span> ret = cap.<span class="pl-c1">read</span>(image);
<span class="pl-k">if</span> (ret)
{
std::cout << <span class="pl-s"><span class="pl-pds">"</span>ok<span class="pl-pds">"</span></span> << std::endl;
}
<span class="pl-k">else</span>
{
std::cout << <span class="pl-s"><span class="pl-pds">"</span>ng<span class="pl-pds">"</span></span> << std::endl;
}
}
cv::VideoCapture <span class="pl-smi">cap2</span>(<span class="pl-s"><span class="pl-pds">"</span>sample-no-sound.mp4<span class="pl-pds">"</span></span>, cv::CAP_MSMF);
<span class="pl-k">if</span> (cap2.<span class="pl-c1">isOpened</span>())
{
<span class="pl-k">bool</span> ret = cap2.<span class="pl-c1">read</span>(image);
<span class="pl-k">if</span> (ret)
{
std::cout << <span class="pl-s"><span class="pl-pds">"</span>ok<span class="pl-pds">"</span></span> << std::endl;
}
<span class="pl-k">else</span>
{
std::cout << <span class="pl-s"><span class="pl-pds">"</span>ng<span class="pl-pds">"</span></span> << std::endl;
}
}
} </pre></div>
<p dir="auto">and I modified the code "cap_msmf.cpp" to pass only video types , it fixed;</p>
<div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
// class FormatStorage
void read(IMFSourceReader* source)
{
HRESULT hr = S_OK;
MediaID cur;
GUID majorType;
while (SUCCEEDED(hr))
{
_ComPtr<IMFMediaType> raw_type;
hr = source->GetNativeMediaType(cur.stream, cur.media, &raw_type);
if (hr == MF_E_NO_MORE_TYPES)
{
hr = S_OK;
cur.nextStream();
}
else if (SUCCEEDED(hr))
{
raw_type.Get()->GetMajorType(&majorType);
if (majorType == MFMediaType_Video) // add this condition
{
formats[cur] = MediaType(raw_type.Get());
}
cur.nextMedia();
}
}
}"><pre class="notranslate"> <span class="pl-c"><span class="pl-c">//</span> class FormatStorage</span>
<span class="pl-k">void</span> <span class="pl-en">read</span>(IMFSourceReader* source)
{
HRESULT hr = S_OK;
MediaID cur;
GUID majorType;
<span class="pl-k">while</span> (<span class="pl-c1">SUCCEEDED</span>(hr))
{
_ComPtr<IMFMediaType> raw_type;
hr = source-><span class="pl-c1">GetNativeMediaType</span>(cur.<span class="pl-smi">stream</span>, cur.<span class="pl-smi">media</span>, &raw_type);
<span class="pl-k">if</span> (hr == MF_E_NO_MORE_TYPES)
{
hr = S_OK;
cur.<span class="pl-c1">nextStream</span>();
}
<span class="pl-k">else</span> <span class="pl-k">if</span> (<span class="pl-c1">SUCCEEDED</span>(hr))
{
raw_type.<span class="pl-c1">Get</span>()-><span class="pl-c1">GetMajorType</span>(&majorType);
<span class="pl-k">if</span> (majorType == MFMediaType_Video) <span class="pl-c"><span class="pl-c">//</span> add this condition</span>
{
formats[cur] = <span class="pl-c1">MediaType</span>(raw_type.<span class="pl-c1">Get</span>());
}
cur.<span class="pl-c1">nextMedia</span>();
}
}
}</pre></div>
<p dir="auto"><a href="https://github.com/opencv/opencv/files/4687419/samples.zip">samples.zip</a></p>
| 1 |
<p dir="auto">Example</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: a = np.ones(10)[::2] # flat iter will use updateifcopy for non-contiguous array
In [2]: a.flags
Out[2]:
C_CONTIGUOUS : False
F_CONTIGUOUS : False
OWNDATA : False
WRITEABLE : True
ALIGNED : True
UPDATEIFCOPY : False
In [3]: a.flat.__array__().flags
Out[3]:
C_CONTIGUOUS : True
F_CONTIGUOUS : True
OWNDATA : True
WRITEABLE : True
ALIGNED : True
UPDATEIFCOPY : True
In [4]: a.flags
Out[4]:
C_CONTIGUOUS : False
F_CONTIGUOUS : False
OWNDATA : False
WRITEABLE : False
ALIGNED : True
UPDATEIFCOPY : False"><pre class="notranslate"><code class="notranslate">In [1]: a = np.ones(10)[::2] # flat iter will use updateifcopy for non-contiguous array
In [2]: a.flags
Out[2]:
C_CONTIGUOUS : False
F_CONTIGUOUS : False
OWNDATA : False
WRITEABLE : True
ALIGNED : True
UPDATEIFCOPY : False
In [3]: a.flat.__array__().flags
Out[3]:
C_CONTIGUOUS : True
F_CONTIGUOUS : True
OWNDATA : True
WRITEABLE : True
ALIGNED : True
UPDATEIFCOPY : True
In [4]: a.flags
Out[4]:
C_CONTIGUOUS : False
F_CONTIGUOUS : False
OWNDATA : False
WRITEABLE : False
ALIGNED : True
UPDATEIFCOPY : False
</code></pre></div>
|
<p dir="auto">What's going on here?</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> x = np.broadcast_to(1, (2,2))
>>> x.flags.writeable = True # ok, this is a little sketchy
>>> x.flags.writeable
True
>>> x.flat.__array__()
>>> x.flags.writeable
False"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">broadcast_to</span>(<span class="pl-c1">1</span>, (<span class="pl-c1">2</span>,<span class="pl-c1">2</span>))
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">x</span>.<span class="pl-s1">flags</span>.<span class="pl-s1">writeable</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span> <span class="pl-c"># ok, this is a little sketchy</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">x</span>.<span class="pl-s1">flags</span>.<span class="pl-s1">writeable</span>
<span class="pl-c1">True</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">x</span>.<span class="pl-s1">flat</span>.<span class="pl-en">__array__</span>()
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">x</span>.<span class="pl-s1">flags</span>.<span class="pl-s1">writeable</span>
<span class="pl-c1">False</span></pre></div>
| 1 |
<h4 dir="auto">Description</h4>
<p dir="auto">The ROC functionality reduces its workload by first extracting forward differences between scores and then discarding potential thresholds that are too close together by calling <a href="https://github.com/scikit-learn/scikit-learn/blob/51a765a/sklearn/utils/fixes.py#L221"><code class="notranslate">utils.isclose.fixes</code></a>. The problem is that this happens without notification of the user (or any chance to intervene, setting <code class="notranslate">drop_intermediate</code> argument to <code class="notranslate">False</code> does not change anything) and, moreover, without scaling the tolerance w.r.t. to the variance of the score vector.</p>
<h4 dir="auto">Steps/Code to Reproduce</h4>
<p dir="auto">This is the (slightly simplified) example given in the documentation of <a href="https://github.com/scikit-learn/scikit-learn/blob/51a765a/sklearn/metrics/ranking.py#L421"><code class="notranslate">metrics.roc_curve</code></a></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
from sklearn import metrics
y = np.array([False, False, True, True])
original_scores = np.array([0.1, 0.4, 0.35, 0.8])
scores = original_scores
fpr, tpr, thresholds = metrics.roc_curve(y, scores)
print fpr, tpr, thresholds, metrics.roc_auc_score(y, scores)
scores = 1e-6*original_scores
fpr, tpr, thresholds = metrics.roc_curve(y, scores)
print fpr, tpr, thresholds, metrics.roc_auc_score(y, scores)
scores = 1e-7*original_scores
fpr, tpr, thresholds = metrics.roc_curve(y, scores)
print fpr, tpr, thresholds, metrics.roc_auc_score(y, scores)
scores = 1e-8*original_scores
fpr, tpr, thresholds = metrics.roc_curve(y, scores)
print fpr, tpr, thresholds, metrics.roc_auc_score(y, scores)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">from</span> <span class="pl-s1">sklearn</span> <span class="pl-k">import</span> <span class="pl-s1">metrics</span>
<span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">False</span>, <span class="pl-c1">False</span>, <span class="pl-c1">True</span>, <span class="pl-c1">True</span>])
<span class="pl-s1">original_scores</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">0.1</span>, <span class="pl-c1">0.4</span>, <span class="pl-c1">0.35</span>, <span class="pl-c1">0.8</span>])
<span class="pl-s1">scores</span> <span class="pl-c1">=</span> <span class="pl-s1">original_scores</span>
<span class="pl-s1">fpr</span>, <span class="pl-s1">tpr</span>, <span class="pl-s1">thresholds</span> <span class="pl-c1">=</span> <span class="pl-s1">metrics</span>.<span class="pl-en">roc_curve</span>(<span class="pl-s1">y</span>, <span class="pl-s1">scores</span>)
<span class="pl-k">print</span> <span class="pl-s1">fpr</span>, <span class="pl-s1">tpr</span>, <span class="pl-s1">thresholds</span>, <span class="pl-s1">metrics</span>.<span class="pl-en">roc_auc_score</span>(<span class="pl-s1">y</span>, <span class="pl-s1">scores</span>)
<span class="pl-s1">scores</span> <span class="pl-c1">=</span> <span class="pl-c1">1e-6</span><span class="pl-c1">*</span><span class="pl-s1">original_scores</span>
<span class="pl-s1">fpr</span>, <span class="pl-s1">tpr</span>, <span class="pl-s1">thresholds</span> <span class="pl-c1">=</span> <span class="pl-s1">metrics</span>.<span class="pl-en">roc_curve</span>(<span class="pl-s1">y</span>, <span class="pl-s1">scores</span>)
<span class="pl-k">print</span> <span class="pl-s1">fpr</span>, <span class="pl-s1">tpr</span>, <span class="pl-s1">thresholds</span>, <span class="pl-s1">metrics</span>.<span class="pl-en">roc_auc_score</span>(<span class="pl-s1">y</span>, <span class="pl-s1">scores</span>)
<span class="pl-s1">scores</span> <span class="pl-c1">=</span> <span class="pl-c1">1e-7</span><span class="pl-c1">*</span><span class="pl-s1">original_scores</span>
<span class="pl-s1">fpr</span>, <span class="pl-s1">tpr</span>, <span class="pl-s1">thresholds</span> <span class="pl-c1">=</span> <span class="pl-s1">metrics</span>.<span class="pl-en">roc_curve</span>(<span class="pl-s1">y</span>, <span class="pl-s1">scores</span>)
<span class="pl-k">print</span> <span class="pl-s1">fpr</span>, <span class="pl-s1">tpr</span>, <span class="pl-s1">thresholds</span>, <span class="pl-s1">metrics</span>.<span class="pl-en">roc_auc_score</span>(<span class="pl-s1">y</span>, <span class="pl-s1">scores</span>)
<span class="pl-s1">scores</span> <span class="pl-c1">=</span> <span class="pl-c1">1e-8</span><span class="pl-c1">*</span><span class="pl-s1">original_scores</span>
<span class="pl-s1">fpr</span>, <span class="pl-s1">tpr</span>, <span class="pl-s1">thresholds</span> <span class="pl-c1">=</span> <span class="pl-s1">metrics</span>.<span class="pl-en">roc_curve</span>(<span class="pl-s1">y</span>, <span class="pl-s1">scores</span>)
<span class="pl-k">print</span> <span class="pl-s1">fpr</span>, <span class="pl-s1">tpr</span>, <span class="pl-s1">thresholds</span>, <span class="pl-s1">metrics</span>.<span class="pl-en">roc_auc_score</span>(<span class="pl-s1">y</span>, <span class="pl-s1">scores</span>)</pre></div>
<h4 dir="auto">Expected Results</h4>
<p dir="auto">All printed lines should yield the same output.</p>
<h4 dir="auto">Versions</h4>
<p dir="auto">Windows-10-10.0.10586<br>
('Python', '2.7.11 |Anaconda 2.5.0 (64-bit)| (default, Jan 29 2016, 14:26:21) [MSC v.1500 64 bit (AMD64)]')<br>
('NumPy', '1.10.4')<br>
('SciPy', '0.17.0')<br>
('Scikit-Learn', '0.17')</p>
|
<p dir="auto">pred=[1e-10, 0, 0]<br>
sol=[1, 0, 0]<br>
metrics.roc_auc_score(sol, pred) # 0.5, wrong, 1 is correct</p>
<p dir="auto">pred=[1, 0, 0]<br>
sol=[1, 0, 0]<br>
metrics.roc_auc_score(sol, pred) # 1 correct</p>
| 1 |
<p dir="auto">Hi,</p>
<p dir="auto">I'm pretty new at working with bootstrap, just switched to it so sorry if this is a dumb question:</p>
<p dir="auto">I have a button that triggers a modal dialog and I want to make that button also call a different function when it's clicked, so I decided to go with the following code:</p>
<p dir="auto">$(function () {<br>
$("#mycontainer").on('click.product-row.deleteproductbtn', function ( e ) {<br>
alert('button clicked!');<br>
})<br>
});</p>
<p dir="auto">Since the above code displays 3 alerts every time I click the button, I went with the following:</p>
<p dir="auto">$(function () {<br>
$(""#mycontainer").off('click').on('click.product-row.deleteproductbtn', function ( e ) {<br>
var <math-renderer class="js-inline-math" style="display: inline" data-static-url="https://github.githubassets.com/static" data-run-id="27b3b705abf08f28aa2062ec4faad0a7">$e = $</math-renderer>(e.target);<br>
e.preventDefault();<br>
alert('button clicked!');<br>
})<br>
});</p>
<p dir="auto">The second bit of code gets the job done, but I keep wondering if I'm damaging the rest of the events that come with bootstrap... How would you associate a button click (already activated through bootstrap) with a custom-made function ?</p>
|
<p dir="auto">Is it possible to add the ability to combine multiple hidden-x and/or visible-x?</p>
<p dir="auto">For example:</p>
<p dir="auto">I'm creating a list of things and would like to insert a "< br/ >" in the middle that only appears on xs and sm media queries, and not be present for the md and lg media queries. Idea below</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<span class="visible-sm visible-xs"><br/></span>"><pre class="notranslate"><code class="notranslate"><span class="visible-sm visible-xs"><br/></span>
</code></pre></div>
<p dir="auto">OR</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<span class="hidden-mg hidden-lg"><br/></span>"><pre class="notranslate"><code class="notranslate"><span class="hidden-mg hidden-lg"><br/></span>
</code></pre></div>
<p dir="auto">This would mean that it would be visible only for sm and xs views.</p>
<p dir="auto">Alternatively, I suppose another route would be to add onto the existing classes like this</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<span class="hidden-md hidden-down"><br/></span>"><pre class="notranslate"><code class="notranslate"><span class="hidden-md hidden-down"><br/></span>
</code></pre></div>
<p dir="auto">or</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<span class="hidden-md hidden-up"><br/></span>"><pre class="notranslate"><code class="notranslate"><span class="hidden-md hidden-up"><br/></span>
</code></pre></div>
<p dir="auto">where hidden-down would hide all media queries starting with md and down (s and xs) and hidden-up would hide all media queries starting with md and up (lg).</p>
<p dir="auto">Just food for thought, thanks!</p>
| 0 |
<p dir="auto"><code class="notranslate">io::Error</code> can't implement <code class="notranslate">Clone</code> right now because it uses a trait object internally for custom errors. With <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="66742065" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/24133" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/24133/hovercard" href="https://github.com/rust-lang/rust/pull/24133">#24133</a> adding the <code class="notranslate">Sync</code> bound, it becomes possible to put <code class="notranslate">io::Error</code> in <code class="notranslate">Arc</code>. But it would still be nice to be able to <code class="notranslate">Clone</code> it again, which could be accomplished by changing the private <code class="notranslate">Box<Custom></code> field to <code class="notranslate">Arc<Custom></code> instead.</p>
|
<p dir="auto">The <code class="notranslate">Cell::as_unsafe_cell</code> and <code class="notranslate">RefCell::as_unsafe_cell</code> methods return a reference to the underlying <code class="notranslate">UnsafeCell</code> in both cases.</p>
<p dir="auto">It's not clear what the use cases are for these methods and whether they can be achieved in some alternative way. If you are using these methods, please leave a comment with your use case.</p>
| 0 |
<p dir="auto">I cannot install jaxlib on Windows PC (CPU only).</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="> pip install --upgrade jaxlib
Collecting jaxlib
Could not find a version that satisfies the requirement jaxlib (from versions: )
No matching distribution found for jaxlib
> pip search jaxlib
jaxlib (0.1.11) - XLA library for JAX
> python
Python 3.6.8 |Anaconda, Inc.| (default, Feb 21 2019, 18:30:04) [MSC v.1916 64 bit (AMD64)] on win32"><pre class="notranslate"><code class="notranslate">> pip install --upgrade jaxlib
Collecting jaxlib
Could not find a version that satisfies the requirement jaxlib (from versions: )
No matching distribution found for jaxlib
> pip search jaxlib
jaxlib (0.1.11) - XLA library for JAX
> python
Python 3.6.8 |Anaconda, Inc.| (default, Feb 21 2019, 18:30:04) [MSC v.1916 64 bit (AMD64)] on win32
</code></pre></div>
<p dir="auto">How can I install it?</p>
|
<p dir="auto">I failed to build jax from source with(similar with <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="400123466" data-permission-text="Title is private" data-url="https://github.com/google/jax/issues/253" data-hovercard-type="issue" data-hovercard-url="/google/jax/issues/253/hovercard" href="https://github.com/google/jax/issues/253">#253</a>, but my system is win):<br>
Traceback (most recent call last):<br>
File "build/build.py", line 308, in <br>
main()<br>
File "build/build.py", line 304, in main<br>
[":install_xla_in_source_tree", os.getcwd()])<br>
File "build/build.py", line 50, in shell<br>
output = subprocess.check_output(cmd)<br>
File "C:\Users\wangd\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 336, in check_output<br>
**kwargs).stdout<br>
File "C:\Users\wangd\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 418, in run<br>
output=stdout, stderr=stderr)<br>
subprocess.CalledProcessError: Command '['C:\bazel\bazel.EXE', 'run', '--verbose_failures=true', '--config=mkl_open_source_only', ':install_xla_in_source_tree', 'C:\Users\wangd\jax\build']' returned non-zero exit status 2.</p>
| 1 |
<h1 dir="auto">🚀 Feature request</h1>
<p dir="auto">Thanks a lot for releasing LXMERT model. In the LXMERT model code samples, the visual feature extraction code (using generalized faster-rcnn: <a href="https://github.com/huggingface/transformers/blob/master/examples/lxmert/modeling_frcnn.py">modeling_frcnn</a>) only in the inference step is given. However, the visual feature extraction during the training phase is not given. For this reason if we use the same code for fine-tuning, it raises NotImplementedError as the visual feature extraction during training is not implemented. Is it possible to share the visual feature extraction during training?</p>
|
<p dir="auto">Right now the Trainer uses <code class="notranslate">IterableDatasetShard</code> to skip examples on each node and avoid ending up with duplicate data.<br>
This is not efficient for vision or audio tasks since we waste I/O and CPU time reading and decoding files that are not used.</p>
<p dir="auto">We consider implementing an optimized sharding for distributed training directly in <code class="notranslate">datasets</code>. Right now a <code class="notranslate">datasets.IterableDataset</code> is already a <code class="notranslate">torch.utils.data.IterableDataset</code> that automatically takes care of distributing the necessary input shards to subprocesses in single node (since <code class="notranslate">datasets</code> 2.3.0).</p>
<p dir="auto">The idea would be to also take into account the rank and world size to distribute the input shards. Maybe distributing the. <code class="notranslate">datasets.IterableDataset</code> across nodes should be asked explicitly by the user.</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sgugger/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sgugger">@sgugger</a> WDYT ? Do you have other ideas in mind to optimize the use of <code class="notranslate">datasets.IterableDataset</code> for distributed training in pytorch ?</p>
| 0 |
<p dir="auto">Instead of having a toggle button that reveal the filter widget we should just move into the panel header. That would make it not take extra space and still be easily discoverable.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1794099/15772900/33712628-2974-11e6-8034-91abb8a56197.png"><img width="1027" alt="screen shot 2016-06-03 at 10 13 52" src="https://cloud.githubusercontent.com/assets/1794099/15772900/33712628-2974-11e6-8034-91abb8a56197.png" style="max-width: 100%;"></a></p>
|
<ul dir="auto">
<li>VSCode Version: Latest alpha</li>
<li>OS Version: WIndows10</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>Launch VSCode and update setting in settings.json to some random text or just "powershell" (no extension) or "cms"<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/17735796/15517237/9d6f3df6-21ab-11e6-97a3-c8c70084ba4f.png"><img src="https://cloud.githubusercontent.com/assets/17735796/15517237/9d6f3df6-21ab-11e6-97a3-c8c70084ba4f.png" alt="image" style="max-width: 100%;"></a></li>
<li>Reload window to get reflection of the new setting.</li>
<li>Now try to launch terminal window with CTRL+` and verify app behavior.</li>
</ol>
<p dir="auto">Actual:</p>
<ol dir="auto">
<li>Most of the time Application is not responsive.</li>
<li>Restart app didn't solve the issue.</li>
<li>user is not able to modify settings as user not able to set mouse point on editor window.</li>
<li>In taskmanager you see VSCode is consuming lots of memory<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/17735796/15517426/82e1c3a4-21ac-11e6-8beb-4d56d47e81f1.png"><img src="https://cloud.githubusercontent.com/assets/17735796/15517426/82e1c3a4-21ac-11e6-8beb-4d56d47e81f1.png" alt="image" style="max-width: 100%;"></a></li>
</ol>
<p dir="auto"><strong>I could see Error: write EPIPE in developer tool.</strong></p>
<p dir="auto">index.html?config={"pathArguments"%3A[]%2C"programStart"%3A0%2C"enablePerformance"%3Afalse%2C"verbo…:31 Error: write EPIPE<br>
at exports._errnoException (util.js:890:11)<br>
at ChildProcess.target._send (internal/child_process.js:634:20)<br>
at ChildProcess.target.send (internal/child_process.js:521:19)<br>
at Terminal. (file:///C:/Program Files (x86)/Microsoft VS Code Alpha/resources/app/out/vs/workbench/parts/terminal/electron-browser/terminalPanel.js:4:2809)<br>
at Terminal.EventEmitter.emit (C:\Program Files (x86)\Microsoft VS Code Alpha\resources\app\node_modules\term.js\src\term.js:109:12)<br>
at Terminal.handler (C:\Program Files (x86)\Microsoft VS Code Alpha\resources\app\node_modules\term.js\src\term.js:3493:8)<br>
at Terminal.keyDown (C:\Program Files (x86)\Microsoft VS Code Alpha\resources\app\node_modules\term.js\src\term.js:3196:8)<br>
at HTMLDocument. (C:\Program Files (x86)\Microsoft VS Code Alpha\resources\app\node_modules\term.js\src\term.js:594:29)</p>
| 0 |
<pre class="notranslate">What steps will reproduce the problem?
1. edit httpd.go with sample code in Effective Go,
2. 6g httpd.go && 6g httpd.6
3. 6prof ./6.out
What is the expected output? What do you see instead?
davies@boromir ~ $ 6g http.go && 6l http.6 && 6prof ./6.out
futexsleep addr=0x4aab20 val=3 returned -110
SIGSEGV: segmentation violation
Faulting address: 0x1005
PC=0x43974a
futexsleep+0xc2 /home/davies/go/src/pkg/runtime/linux/thread.c:58
futexsleep(0x4aab20, 0x0, 0x3, 0x3)
futexlock+0x7a /home/davies/go/src/pkg/runtime/linux/thread.c:126
futexlock(0x4aab20, 0x0)
notesleep+0x1c /home/davies/go/src/pkg/runtime/linux/thread.c:206
notesleep(0x4aab20, 0x0)
nextgandunlock+0xfc /home/davies/go/src/pkg/runtime/proc.c:350
nextgandunlock()
scheduler+0xe0 /home/davies/go/src/pkg/runtime/proc.c:503
scheduler()
mstart+0x47 /home/davies/go/src/pkg/runtime/proc.c:394
mstart()
_rt0_amd64+0x74 /home/davies/go/src/pkg/runtime/amd64/asm.s:46
_rt0_amd64()
goroutine 2 [3]:
runtime·entersyscall+0x50 /home/davies/go/src/pkg/runtime/proc.c:543
runtime·entersyscall()
syscall·Syscall6+0x5 /home/davies/go/src/pkg/syscall/asm_linux_amd64.s:41
syscall·Syscall6()
syscall·EpollWait+0x84 /home/davies/go/src/pkg/syscall/zsyscall_linux_amd64.go:1
32
syscall·EpollWait(0x7, 0x2ace, 0x7a2f6a20, 0x2ace, 0x1, ...)
net·*pollster·WaitFD+0x2f5 /home/davies/go/src/pkg/net/fd_linux.go:118
net·*pollster·WaitFD(0x7a2f69b0, 0x2ace, 0x0, 0x0, 0x0, ...)
net·*pollServer·Run+0x9e /home/davies/go/src/pkg/net/fd.go:236
net·*pollServer·Run(0x7a2fe240, 0x2ace)
goexit /home/davies/go/src/pkg/runtime/proc.c:136
goexit()
0x2ace7a2fe240 unknown pc
goroutine 1 [4]:
gosched+0x34 /home/davies/go/src/pkg/runtime/proc.c:522
gosched()
chanrecv+0x167 /home/davies/go/src/pkg/runtime/chan.c:347
chanrecv(0x7a31c300, 0x2ace, 0x7a301d80, 0x2ace, 0x0, ...)
runtime·chanrecv1+0x50 /home/davies/go/src/pkg/runtime/chan.c:417
runtime·chanrecv1(0x7a31c300, 0x2ace)
net·*pollServer·WaitRead+0x49 /home/davies/go/src/pkg/net/fd.go:276
net·*pollServer·WaitRead(0x7a2fe240, 0x2ace, 0x7a2ff0a0, 0x2ace)
net·*netFD·accept+0x2e2 /home/davies/go/src/pkg/net/fd.go:512
net·*netFD·accept(0x7a2ff0a0, 0x2ace, 0x427e9a, 0x0, 0x7a301e80, ...)
net·*TCPListener·AcceptTCP+0x5a /home/davies/go/src/pkg/net/tcpsock.go:253
net·*TCPListener·AcceptTCP(0x7a2f50c8, 0x2ace, 0x4260a6, 0x0, 0x0, ...)
net·*TCPListener·Accept+0x34 /home/davies/go/src/pkg/net/tcpsock.go:263
net·*TCPListener·Accept(0x7a2f50c8, 0x2ace, 0x0, 0x0, 0x0, ...)
http·Serve+0x66 /home/davies/go/src/pkg/http/server.go:532
http·Serve(0x7a2fe2c0, 0x2ace, 0x7a2f50c8, 0x2ace, 0x7a2fd7e0, ...)
http·ListenAndServe+0x8e /home/davies/go/src/pkg/http/server.go:576
http·ListenAndServe(0x44cff8, 0x0, 0x5, 0x0, 0x0, ...)
main·main+0x77 /home/davies/http.go:22
main·main()
mainstart+0xf /home/davies/go/src/pkg/runtime/amd64/asm.s:54
mainstart()
goexit /home/davies/go/src/pkg/runtime/proc.c:136
goexit()
rax 0x1
rbx 0x1
rcx 0x439b10
rdx 0x1
rdi 0x1
rsi 0x4932b8
rbp 0x4932b8
rsp 0x7fff307ee970
r8 0x0
r9 0x0
r10 0x46acd8
r11 0x202
r12 0x250
r13 0x7fff307eeaa0
r14 0x4aaa78
r15 0x4aa9d8
rip 0x43974a
rflags 0x10202
cs 0x33
fs 0x0
gs 0x0
7 samples (avg 2 threads)
42.86% clone
42.86% syscall·Syscall6
14.29% breakpoint
14.29% exit
14.29% futex
14.29% futexsleep
14.29% syscall·Syscall
What is your $GOOS? $GOARCH?
$GOOS=linux
$GOARCH=amd64
Which revision are you using? (hg identify)
5074575b745b+ tip
Please provide any additional information below.</pre>
|
<pre class="notranslate">go ((func())(nil))()
Should it panic in the calling go routine, or at the start of the called goroutine?
defer ((func())(nil))()
Should it panic at the defer statement, or at the return point?
We've had some argument either way. Panicing in the calling goroutine / at defer
statement is failing early, might be useful for people. Panicing late might be
expected, as the go/deferred routine doesn't actually use the nil value until then.
Panicing late is what we do now.
The runtime meeting decided gri should figure this out, maybe update the spec.
Related to issues 8045 (go) and 8047 (defers).</pre>
| 0 |
<p dir="auto">During an upgrade from python 3.7 to 3.9 I face an error similar to the one reported on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="541767228" data-permission-text="Title is private" data-url="https://github.com/psf/requests/issues/5297" data-hovercard-type="issue" data-hovercard-url="/psf/requests/issues/5297/hovercard" href="https://github.com/psf/requests/issues/5297">#5297</a>.</p>
<p dir="auto">The proxies are defined on the system level (export http_proxy and export https_proxy).</p>
<p dir="auto">It works fine on 3.7.</p>
<h2 dir="auto">Expected Result</h2>
<p dir="auto">Requests respect the proxy</p>
<h2 dir="auto">Actual Result</h2>
<p dir="auto">Proxy causes the request fo fail</p>
<h2 dir="auto">Reproduction Steps</h2>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import requests
headers={}
payload={}
url='https://www.someurl.com'
response = requests.request("POST", url, headers=headers, data = payload)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">requests</span>
<span class="pl-s1">headers</span><span class="pl-c1">=</span>{}
<span class="pl-s1">payload</span><span class="pl-c1">=</span>{}
<span class="pl-s1">url</span><span class="pl-c1">=</span><span class="pl-s">'https://www.someurl.com'</span>
<span class="pl-s1">response</span> <span class="pl-c1">=</span> <span class="pl-s1">requests</span>.<span class="pl-en">request</span>(<span class="pl-s">"POST"</span>, <span class="pl-s1">url</span>, <span class="pl-s1">headers</span><span class="pl-c1">=</span><span class="pl-s1">headers</span>, <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">payload</span>)</pre></div>
<h2 dir="auto">System Information</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -m requests.help"><pre class="notranslate"><code class="notranslate">$ python -m requests.help
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"chardet": {
"version": "3.0.4"
},
"cryptography": {
"version": ""
},
"idna": {
"version": "2.8"
},
"implementation": {
"name": "CPython",
"version": "3.9.6"
},
"platform": {
"release": "20.6.0",
"system": "Darwin"
},
"pyOpenSSL": {
"openssl_version": "",
"version": null
},
"requests": {
"version": "2.22.0"
},
"system_ssl": {
"version": "101010bf"
},
"urllib3": {
"version": "1.25.11"
},
"using_pyopenssl": false
}"><pre class="notranslate"><code class="notranslate">{
"chardet": {
"version": "3.0.4"
},
"cryptography": {
"version": ""
},
"idna": {
"version": "2.8"
},
"implementation": {
"name": "CPython",
"version": "3.9.6"
},
"platform": {
"release": "20.6.0",
"system": "Darwin"
},
"pyOpenSSL": {
"openssl_version": "",
"version": null
},
"requests": {
"version": "2.22.0"
},
"system_ssl": {
"version": "101010bf"
},
"urllib3": {
"version": "1.25.11"
},
"using_pyopenssl": false
}
</code></pre></div>
<p dir="auto">Traceback</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" response = requests.request("POST", url, headers=headers, data = payload)
File "/usr/local/lib/python3.9/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 412, in send
conn = self.get_connection(request.url, proxies)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 309, in get_connection
proxy_manager = self.proxy_manager_for(proxy)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 193, in proxy_manager_for
manager = self.proxy_manager[proxy] = proxy_from_url(
File "/usr/local/lib/python3.9/site-packages/urllib3/poolmanager.py", line 492, in proxy_from_url
return ProxyManager(proxy_url=url, **kw)
File "/usr/local/lib/python3.9/site-packages/urllib3/poolmanager.py", line 429, in __init__
raise ProxySchemeUnknown(proxy.scheme)"><pre class="notranslate"><code class="notranslate"> response = requests.request("POST", url, headers=headers, data = payload)
File "/usr/local/lib/python3.9/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 412, in send
conn = self.get_connection(request.url, proxies)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 309, in get_connection
proxy_manager = self.proxy_manager_for(proxy)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 193, in proxy_manager_for
manager = self.proxy_manager[proxy] = proxy_from_url(
File "/usr/local/lib/python3.9/site-packages/urllib3/poolmanager.py", line 492, in proxy_from_url
return ProxyManager(proxy_url=url, **kw)
File "/usr/local/lib/python3.9/site-packages/urllib3/poolmanager.py", line 429, in __init__
raise ProxySchemeUnknown(proxy.scheme)
</code></pre></div>
|
<p dir="auto">In <a href="https://bugs.python.org/issue27657" rel="nofollow">https://bugs.python.org/issue27657</a> it was decided to reverse an earlier decision about how <code class="notranslate">urllib.parse.urlparse</code> handles URLs that don't specify a scheme (e.g. <code class="notranslate">example.org:80</code>). This behavior change is in Python 3.9.</p>
<p dir="auto">One way this can present to a user is by confusing requests's attempt to add the scheme if it's missing: </p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/psf/requests/blob/1466ad713cf84738cd28f1224a7ab4a19e50e361/requests/utils.py#L904">requests/requests/utils.py</a>
</p>
<p class="mb-0 color-fg-muted">
Line 904
in
<a data-pjax="true" class="commit-tease-sha" href="/psf/requests/commit/1466ad713cf84738cd28f1224a7ab4a19e50e361">1466ad7</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="L904" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="904"></td>
<td id="LC904" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">def</span> <span class="pl-en">prepend_scheme_if_needed</span>(<span class="pl-s1">url</span>, <span class="pl-s1">new_scheme</span>): </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto">With the old behavior, <code class="notranslate">urlparse</code> would return <code class="notranslate">ParseResult(scheme='', netloc='', path='example.org:80', params='', query='', fragment='')</code> and then <code class="notranslate">prepend_scheme_if_needed</code> would happily add the scheme, typically <code class="notranslate">http</code>. With the new behavior, you instead get <code class="notranslate">ParseResult(scheme='example.org', netloc='', path='80', params='', query='', fragment='')</code>, so <code class="notranslate">prepend_scheme_if_needed</code> thinks it has a scheme, and does nothing. Then later, if this is used as a proxy URL, <code class="notranslate">urllib3</code> will complain <a href="https://github.com/urllib3/urllib3/blob/dc25db8e9f03ef2c506431e8a98f77c304ac2941/src/urllib3/poolmanager.py#L534">here</a>, because it has <a href="https://github.com/urllib3/urllib3/blob/dc25db8e9f03ef2c506431e8a98f77c304ac2941/src/urllib3/util/url.py#L348">its own URL parser</a> that is now I think out of sync with the stdlib.</p>
<p dir="auto">(I guess this means you could fix this by making requests use <code class="notranslate">urllib3.util.url.parse_url</code> instead of <code class="notranslate">urllib.parse.urlparse</code>, but that's maybe an antisocial fix)</p>
<h2 dir="auto">Expected Result</h2>
<p dir="auto">If user code has given requests a proxy dict like <code class="notranslate">{'http': 'example.org:80'}</code>, the request is sent through that proxy.</p>
<h2 dir="auto">Actual Result</h2>
<p dir="auto"><code class="notranslate">urllib3</code> raises <code class="notranslate">ProxySchemeUnknown</code></p>
<h2 dir="auto">Reproduction Steps</h2>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import requests
session = requests.Session()
session.proxies = {'https': 'example.org:80'}
session.get('https://www.google.com/')"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">requests</span>
<span class="pl-s1">session</span> <span class="pl-c1">=</span> <span class="pl-s1">requests</span>.<span class="pl-v">Session</span>()
<span class="pl-s1">session</span>.<span class="pl-s1">proxies</span> <span class="pl-c1">=</span> {<span class="pl-s">'https'</span>: <span class="pl-s">'example.org:80'</span>}
<span class="pl-s1">session</span>.<span class="pl-en">get</span>(<span class="pl-s">'https://www.google.com/'</span>)</pre></div>
<h2 dir="auto">System Information</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -m requests.help"><pre class="notranslate"><code class="notranslate">$ python -m requests.help
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"implementation": {
"name": "CPython",
"version": "3.9.5"
},
"platform": {
"system": "Linux"
},
"requests": {
"version": "2.22.0"
},
"urllib3": {
"version": "1.25.3"
},
"using_pyopenssl": false
}"><pre class="notranslate"><code class="notranslate">{
"implementation": {
"name": "CPython",
"version": "3.9.5"
},
"platform": {
"system": "Linux"
},
"requests": {
"version": "2.22.0"
},
"urllib3": {
"version": "1.25.3"
},
"using_pyopenssl": false
}
</code></pre></div>
| 1 |
<h3 dir="auto">If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("/tmp/data/", one_hot=True)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">tensorflow</span>.<span class="pl-s1">examples</span>.<span class="pl-s1">tutorials</span>.<span class="pl-s1">mnist</span> <span class="pl-k">import</span> <span class="pl-s1">input_data</span>
<span class="pl-s1">mnist</span> <span class="pl-c1">=</span> <span class="pl-s1">input_data</span>.<span class="pl-en">read_data_sets</span>(<span class="pl-s">"/tmp/data/"</span>, <span class="pl-s1">one_hot</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</pre></div>
<p dir="auto">raises <code class="notranslate">http.client.RemoteDisconnected: Remote end closed connection without response</code>, if you don't already have the data cached. I believe this is because the underlying data <a href="http://yann.lecun.com/exdb/mnist/" rel="nofollow">SOURCE_URL</a> is currently <a href="http://downforeveryoneorjustme.com/http://yann.lecun.com/exdb/mnist/" rel="nofollow">down</a>.</p>
|
<p dir="auto">The website of Yann LeCun is down at the moment.<br>
Therefore the MNIST-Script for downloading the files doesn't work either. (-> learn/python/learn/datasets/mnist.py won't work)<br>
Are there any mirrors?</p>
| 1 |
<p dir="auto">An HPA request is submitted against namespaceA, but contains a reference to namespaceB (<a href="https://github.com/kubernetes/kubernetes/blob/master/pkg/apis/extensions/types.go#L75">https://github.com/kubernetes/kubernetes/blob/master/pkg/apis/extensions/types.go#L75</a>). The request is accepted because I have rights to create on in namespaceA, but no checking is done to see if I can scale what I'm asking.</p>
<p dir="auto">The HPA request has a namespace, but it also duplicated a namespace field instead of using a <code class="notranslate">LocalObjectReference</code> extended with <code class="notranslate">kind</code> and <code class="notranslate">subresource</code> field. The HPA controller then blindly uses the second namespace field: <a href="https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/podautoscaler/horizontal.go#L99">https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/podautoscaler/horizontal.go#L99</a>.</p>
<p dir="auto">This allowed someone in the dev namespace to accidentally (or intentionally) scale down resources in the production namespace.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ncdc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ncdc">@ncdc</a> Can you help me find the right groups to call out?</p>
|
<p dir="auto">Vagrant getting started guide: kubernetes/docs/getting-started-guides/vagrant.md is an empty shell pointing to its new location on the web at <a href="http://releases.k8s.io/release-1.2/docs/getting-started-guides/vagrant.md" rel="nofollow">http://releases.k8s.io/release-1.2/docs/getting-started-guides/vagrant.md</a> with the source for said web page being located at kubernetes.github.io/docs/getting-started-guides/vagrant.md. However, <a href="http://releases.k8s.io/release-1.2/docs/getting-started-guides/vagrant.md" rel="nofollow">http://releases.k8s.io/release-1.2/docs/getting-started-guides/vagrant.md</a> has been deleted. See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="144753032" data-permission-text="Title is private" data-url="https://github.com/kubernetes/website/issues/294" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/website/pull/294/hovercard" href="https://github.com/kubernetes/website/pull/294">kubernetes/website#294</a>. 1) Thus, the file kubernetes/docs/getting-started-guides/vagrant.md, the empty shell, is now pointing to a file that no longer exists. This file should be deleted.</p>
<p dir="auto">There was a similar almost duplicate version of the file that was deleted that is in the devel/ tree:<br>
<a href="https://github.com/kubernetes/kubernetes/blob/release-1.2/docs/devel/developer-guides/vagrant.md">https://github.com/kubernetes/kubernetes/blob/release-1.2/docs/devel/developer-guides/vagrant.md</a>. This version of the vagrant guide as with the other documents in the devel/ tree have not been moved to the web site docs in the releases.k8s.io fork. However the file docs/devel/running-locally.md has a link in it that is pointing to the now deleted version of the vagrant guide. <code class="notranslate">Not running Linux? Consider running Linux in a local virtual machine with [Vagrant](../getting-started-guides/vagrant.md), or on a cloud provider like [Google Compute Engine](../getting-started-guides/gce.md).</code> 2) This link needs to be updated to point to the remaining version of the vagrant guide instead of pointing to the deleted version.</p>
<p dir="auto">I have a PR that addresses these two issues: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="149582277" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/24495" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/24495/hovercard" href="https://github.com/kubernetes/kubernetes/pull/24495">#24495</a></p>
| 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.2.1-3816ae7c3</p>
<p dir="auto">Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157108<br>
at Map.forEach ()<br>
at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157054)<br>
at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157577)<br>
at vl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:314907)<br>
at gi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59907)<br>
at el (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:68139)<br>
at jl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:108547)<br>
at Lc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92715)<br>
at Pc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92640)</p>
<p dir="auto">Component stack: in vl<br>
in div<br>
in div<br>
in div<br>
in wo<br>
in Unknown<br>
in n<br>
in Unknown<br>
in div<br>
in div<br>
in Li<br>
in $e<br>
in dn<br>
in Ca<br>
in Pc</p>
|
<p dir="auto">PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE</p>
<p dir="auto">I got this error when I click 'Ranked'.</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 chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11441<br>
at Map.forEach ()<br>
at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11387)<br>
at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11920)<br>
at _i (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:277123)<br>
at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)<br>
at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:98280)<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</p>
<p dir="auto">Component stack: in _i<br>
in div<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 |
<p dir="auto">Post request works but response (on code 200) is not returned.</p>
<p dir="auto">axios<br>
.post(url, JSON.stringify(data))<br>
.then((resp) => {<br>
console.log("resp: ", resp.data.body);<br>
console.log("result: ", resp.data.result);<br>
alert(<code class="notranslate">Success ${JSON.stringify(resp.data.result)}</code>);<br>
})<br>
.catch((err) => {<br>
console.error("Problem with Add: ", err);<br>
alert(<code class="notranslate">Problem with Add: ${err}</code>);<br>
});<br>
};<br>
when running the same request in postman i get the response with custom error:</p>
<p dir="auto">{<br>
"statusCode": 200,<br>
"headers": {<br>
"Content-Type": "application/json",<br>
"Access-Control-Allow-Headers": "<em>",<br>
"Access-Control-Allow-Origin": "</em>",<br>
"Access-Control-Allow-Methods": "*",<br>
"Access-Control-Allow-Credentials": true<br>
},<br>
"body": ""Success"",<br>
"result": [<br>
{<br>
"@full_error": "ERROR 1062 (23000): Duplicate entry '501151' for key 'PRIMARY'"<br>
}<br>
]<br>
}<br>
Please advise</p>
|
<p dir="auto"><strong>Describe the bug</strong><br>
<code class="notranslate">axios.post</code> randomly sends duplicate POST request and ignores the first response.</p>
<p dir="auto">The code is below:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class SomeClass extends React.PureComponent
isReady = true
submitCounter = 0
lastSent = null
// ...
submit() {
this.submitCounter++;
if (!this.isReady) {
return;
}
this.isReady = false;
this.setState({
isReady: false
});
const formData = new FormData();
formData.append("ts", Date.now());
formData.append("um", Math.random().toString(36).substr(2));
formData.append("ctop", this.submitCounter);
formData.append("lastSent", this.lastSent);
axios
.post(`https://someurl.here`, formData)
.then(({data}) => {
this.lastSent = dayjs().format("YYYY-MM-DD HH:mm:ss");
this.isReady = true;
this.submitCounter = 0
if (data.status === false) {
return;
}
this.setState({
isReady: true
});
})
.catch(err => {
console.log(error);
});
}
// ...
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">SomeClass</span> <span class="pl-k">extends</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">PureComponent</span>
<span class="pl-s1">isReady</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span>
<span class="pl-s1">submitCounter</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span>
<span class="pl-s1">lastSent</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span>
<span class="pl-c">// ...</span>
<span class="pl-en">submit</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c1">this</span><span class="pl-kos">.</span><span class="pl-c1">submitCounter</span><span class="pl-c1">++</span><span class="pl-kos">;</span>
<span class="pl-en">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-s1">isReady</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-c1">this</span><span class="pl-kos">.</span><span class="pl-c1">isReady</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span>
<span class="pl-c1">this</span><span class="pl-kos">.</span><span class="pl-c1">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">isReady</span>: <span class="pl-s1">false</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c1">const</span> <span class="pl-s1">formData</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">FormData</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c1">formData</span><span class="pl-kos">.</span><span class="pl-s1">append</span><span class="pl-kos">(</span><span class="pl-s">"ts"</span><span class="pl-kos">,</span> <span class="pl-c1">Date</span><span class="pl-kos">.</span><span class="pl-c1">now</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">formData</span><span class="pl-kos">.</span><span class="pl-s1">append</span><span class="pl-kos">(</span><span class="pl-s">"um"</span><span class="pl-kos">,</span> <span class="pl-c1">Math</span><span class="pl-kos">.</span><span class="pl-c1">random</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">toString</span><span class="pl-kos">(</span><span class="pl-c1">36</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">substr</span><span class="pl-kos">(</span><span class="pl-c1">2</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c1">formData</span><span class="pl-kos">.</span><span class="pl-s1">append</span><span class="pl-kos">(</span><span class="pl-s">"ctop"</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">submitCounter</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c1">formData</span><span class="pl-kos">.</span><span class="pl-s1">append</span><span class="pl-kos">(</span><span class="pl-s">"lastSent"</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">lastSent</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">axios</span>
<span class="pl-kos">.</span><span class="pl-s1">post</span><span class="pl-kos">(</span>`<span class="pl-s1">https</span>:<span class="pl-c">//someurl.here`, formData)</span>
<span class="pl-kos">.</span><span class="pl-s1">then</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">{</span>data<span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">lastSent</span> <span class="pl-c1">=</span> <span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">format</span><span class="pl-kos">(</span><span class="pl-s">"YYYY-MM-DD HH:mm:ss"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">isReady</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">submitCounter</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">status</span> <span class="pl-c1">===</span> <span class="pl-c1">false</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">isReady</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-c1">catch</span><span class="pl-kos">(</span><span class="pl-s1">err</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
console<span class="pl-kos">.</span><span class="pl-s1">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-kos">)</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">The submit function above is only called once, while the <code class="notranslate">axios.post()</code> is called twice. I know it when I check the <code class="notranslate">ts</code>, <code class="notranslate">um</code>, <code class="notranslate">ctop</code>, and <code class="notranslate">lastSent</code> parameter are same with the previous record. Also, CPanel visitor record show that the request sent twice in short timespan.</p>
<p dir="auto">Is it because the connection issues, or there are some configurations I missed? I already read the documentation, search Google and Stack Overflow, but still no clues about it.</p>
<p dir="auto"><strong>To Reproduce</strong><br>
I don't know how to reproduce it since it's randomly occurred.</p>
<p dir="auto"><strong>Expected behavior</strong><br>
The request is only sent once.</p>
<p dir="auto"><strong>Environment:</strong></p>
<ul dir="auto">
<li>Axios Version: 0.18.0</li>
<li>OS: Windows 7</li>
<li>Browser: Chrome</li>
<li>Browser Version: 75.0.3770.90</li>
<li>Additional Library Versions: React 16.6.3</li>
<li>Server: Laravel 5.7</li>
<li>Database: MySQL 5.7</li>
</ul>
| 0 |
<p dir="auto">Internal: b/144873050</p>
<p dir="auto">Hey, looks like there is a bug preventing gesture detection on right side of the widget inside page view with only one element and viewport fraction smaller than 1.0.</p>
<p dir="auto">This is how my widget tree looks like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="column
- page view
- gesture detector
- green container
- gesture detector
- blue container
- page view
- gesture detector
- red container"><pre class="notranslate"><code class="notranslate">column
- page view
- gesture detector
- green container
- gesture detector
- blue container
- page view
- gesture detector
- red container
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2051417/47923808-a6e35600-deba-11e8-8149-d45601aa6027.png"><img src="https://user-images.githubusercontent.com/2051417/47923808-a6e35600-deba-11e8-8149-d45601aa6027.png" alt="screenshot from 2018-11-02 16-14-59" style="max-width: 100%;"></a></p>
<p dir="auto">Top gesture detectors (green&blue widgets) work fine, I can click anywhere and I can see debug logs in console.<br>
Bottom gesture detector (red widget) works fine only for left half of the widget. When I click on the right half then onTap callback is not fired. Looks like something is preventing gesture detector from getting input.</p>
<p dir="auto">flutter doctor output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel beta, v0.9.4, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] Android Studio (version 3.1)
[!] IntelliJ IDEA Community Edition (version 2018.2)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] Connected devices (1 available)"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel beta, v0.9.4, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] Android Studio (version 3.1)
[!] IntelliJ IDEA Community Edition (version 2018.2)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] Connected devices (1 available)
</code></pre></div>
<p dir="auto">Source code to reproduce bug:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',
theme: new ThemeData(
primarySwatch: Colors.blue,
),
home: Column(children: <Widget>[
Expanded(
child: ColorPages(
colors: <Color>[
Colors.green,
Colors.blue,
],
),
),
Expanded(
child: ColorPages(
colors: <Color>[
Colors.red,
],
),
),
]),
);
}
}
class ColorPages extends StatefulWidget {
final List<Color> colors;
const ColorPages({Key key, this.colors}) : super(key: key);
@override
ColorPagesState createState() {
return new ColorPagesState();
}
}
class ColorPagesState extends State<ColorPages> {
PageController _pageController;
@override
void initState() {
super.initState();
_pageController = new PageController(
viewportFraction: 0.5,
);
}
@override
Widget build(BuildContext context) {
return PageView.builder(
controller: _pageController,
itemBuilder: (context, index) {
return GestureDetector(
onTap: () {
print(DateTime.now().toIso8601String() + " " + widget.colors[index].toString());
},
child: Container(
color: widget.colors[index],
),
);
},
itemCount: widget.colors.length,
);
}
}"><pre class="notranslate"><code class="notranslate">import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',
theme: new ThemeData(
primarySwatch: Colors.blue,
),
home: Column(children: <Widget>[
Expanded(
child: ColorPages(
colors: <Color>[
Colors.green,
Colors.blue,
],
),
),
Expanded(
child: ColorPages(
colors: <Color>[
Colors.red,
],
),
),
]),
);
}
}
class ColorPages extends StatefulWidget {
final List<Color> colors;
const ColorPages({Key key, this.colors}) : super(key: key);
@override
ColorPagesState createState() {
return new ColorPagesState();
}
}
class ColorPagesState extends State<ColorPages> {
PageController _pageController;
@override
void initState() {
super.initState();
_pageController = new PageController(
viewportFraction: 0.5,
);
}
@override
Widget build(BuildContext context) {
return PageView.builder(
controller: _pageController,
itemBuilder: (context, index) {
return GestureDetector(
onTap: () {
print(DateTime.now().toIso8601String() + " " + widget.colors[index].toString());
},
child: Container(
color: widget.colors[index],
),
);
},
itemCount: widget.colors.length,
);
}
}
</code></pre></div>
|
<p dir="auto"><code class="notranslate">InkWell</code> will not work if <code class="notranslate">_file.length</code> is 1;<br>
but it will work if length is greater than or equal to 2;</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" Container(
height: 200,
child: PageView.builder(
itemCount: _file.length,
controller: PageController(viewportFraction: 0.4),
itemBuilder: (context, index) {
return Card(
child: InkWell(
onTap: () => _picImage(),
child: Center(
child: Icon(
Icons.add,
size: 40,
),
),
),
);
},
),
)"><pre class="notranslate"> <span class="pl-c1">Container</span>(
height<span class="pl-k">:</span> <span class="pl-c1">200</span>,
child<span class="pl-k">:</span> <span class="pl-c1">PageView</span>.<span class="pl-en">builder</span>(
itemCount<span class="pl-k">:</span> _file.length,
controller<span class="pl-k">:</span> <span class="pl-c1">PageController</span>(viewportFraction<span class="pl-k">:</span> <span class="pl-c1">0.4</span>),
itemBuilder<span class="pl-k">:</span> (context, index) {
<span class="pl-k">return</span> <span class="pl-c1">Card</span>(
child<span class="pl-k">:</span> <span class="pl-c1">InkWell</span>(
onTap<span class="pl-k">:</span> () <span class="pl-k">=></span> <span class="pl-en">_picImage</span>(),
child<span class="pl-k">:</span> <span class="pl-c1">Center</span>(
child<span class="pl-k">:</span> <span class="pl-c1">Icon</span>(
<span class="pl-c1">Icons</span>.add,
size<span class="pl-k">:</span> <span class="pl-c1">40</span>,
),
),
),
);
},
),
)</pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter doctor -v
[√] Flutter (Channel beta, v1.0.0, on Microsoft Windows [Version 10.0.17758.1], locale en-AS)
• Flutter version 1.0.0 at C:\flutter
• Framework revision 5391447fae (2 months ago), 2018-11-29 19:41:26 -0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at C:\Users\Suraj\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
• All Android licenses accepted.
[√] Android Studio (version 3.3)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 32.0.1
• Dart plugin version 182.5215
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
[!] IntelliJ IDEA Ultimate Edition (version 2018.2)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2018.2.3
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.io/intellij-setup/#installing-the-plugins"><pre class="notranslate"><code class="notranslate">flutter doctor -v
[√] Flutter (Channel beta, v1.0.0, on Microsoft Windows [Version 10.0.17758.1], locale en-AS)
• Flutter version 1.0.0 at C:\flutter
• Framework revision 5391447fae (2 months ago), 2018-11-29 19:41:26 -0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at C:\Users\Suraj\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
• All Android licenses accepted.
[√] Android Studio (version 3.3)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 32.0.1
• Dart plugin version 182.5215
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
[!] IntelliJ IDEA Ultimate Edition (version 2018.2)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2018.2.3
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.io/intellij-setup/#installing-the-plugins
</code></pre></div>
<p dir="auto">PS: Using Android Studio Not Intellij for Flutter</p>
| 1 |
<p dir="auto">In an extension, I tried to register an event listener for onDidSaveTextDocument() which would activate the format function, and save the file afterwards.<br>
Using the code:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="commands.executeCommands('editor.action.format').then(() => {
commands.executeCommands('workbench.action.files.save');
});"><pre class="notranslate"><span class="pl-s1">commands</span><span class="pl-kos">.</span><span class="pl-en">executeCommands</span><span class="pl-kos">(</span><span class="pl-s">'editor.action.format'</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-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-s1">commands</span><span class="pl-kos">.</span><span class="pl-en">executeCommands</span><span class="pl-kos">(</span><span class="pl-s">'workbench.action.files.save'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">The problem is that the file gets saved, then formatted, but not saved afterwards. Using a timer for a 500ms delay after the format, before the next save, gives the wanted result.</p>
<p dir="auto">The function inside of ".then((){ }" should not be called before the file is actually formatted, unless there is something else I don't understand.</p>
|
<p dir="auto">The use case is to call the <code class="notranslate">workbench.action.closeAllEditors</code> function and then assert that the number of visible editors is 0. Currently when doing the check after calling the function, <code class="notranslate">window.visibleTextEditors</code> is still 1.</p>
<p dir="auto">I think this is a timing issue where executing a built in command does not wait for any changes to be propagated to the PH side.</p>
<p dir="auto">Test case showing the issue (commented out atm): <a href="https://github.com/Microsoft/vscode/blob/master/extensions/vscode-api-tests/src/commands.test.ts#L19">https://github.com/Microsoft/vscode/blob/master/extensions/vscode-api-tests/src/commands.test.ts#L19</a></p>
| 1 |
<p dir="auto">I like the tabs in the title bar. However, the area where I can move the window is too small:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5169960/60040483-f5be4580-966d-11e9-8e34-2a17f26e0759.png"><img src="https://user-images.githubusercontent.com/5169960/60040483-f5be4580-966d-11e9-8e34-2a17f26e0759.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Compare this with Edge/Chrome where the entire area not used for tabs can be used to move the window around:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5169960/60040586-36b65a00-966e-11e9-9ba9-779a62e03d08.png"><img src="https://user-images.githubusercontent.com/5169960/60040586-36b65a00-966e-11e9-9ba9-779a62e03d08.png" alt="image" style="max-width: 100%;"></a></p>
|
<p dir="auto">I think its really nice that you can put the terminal-tabs in your titlebar but I got an issue there.</p>
<p dir="auto">You can't move the window around klicking on the blank space in the the-bar to move the window around (highlighted in the screenshot).</p>
<p dir="auto">Since people are moving their terminal quite often it would be nice to offer this space, so you can drag your terminal around.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/34196171/57354083-ccebfa80-716a-11e9-91ac-55747463a95c.png"><img src="https://user-images.githubusercontent.com/34196171/57354083-ccebfa80-716a-11e9-91ac-55747463a95c.png" alt="grafik" style="max-width: 100%;"></a></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
[ ] feature request
[ ] support request"><pre class="notranslate"><code class="notranslate">[x] bug report
[ ] feature request
[ ] support request
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
When a route with a specified outlet has children, the activated child is put into the main router outlet, along side the route component that is already active inside this outlet, rather than in the named outlet.</p>
<p dir="auto"><strong>Expected/desired behavior</strong><br>
Routes whose (componentless) parents have a specified outlet, should go into said outlet.</p>
<p dir="auto"><strong>Reproduction of the problem</strong></p>
<p dir="auto">The relevant route:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" {
path: 'session',
outlet: 'dialog',
children: [
{
path: 'login',
component: LoginComponent,
},
{
path: 'register',
component: RegisterComponent,
}
]
}"><pre class="notranslate"><code class="notranslate"> {
path: 'session',
outlet: 'dialog',
children: [
{
path: 'login',
component: LoginComponent,
},
{
path: 'register',
component: RegisterComponent,
}
]
}
</code></pre></div>
<p dir="auto">Plunkr reproducing the issue:<br>
<a href="http://plnkr.co/edit/W4t6c2hFWW3x9Sf2pn8S?p=preview" rel="nofollow">http://plnkr.co/edit/W4t6c2hFWW3x9Sf2pn8S?p=preview</a><br>
Click the three different links and you can see the login and register routes are put into the main outlet alongside the already activated home route, whereas the confirmation route is correctly placed in the named outlet.</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
I believe this to be a bug and the use case is demonstrated in the plunkr</p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.0-rc.5</li>
<li><strong>Browser:</strong> all</li>
<li><strong>Language:</strong> TypeScript 2.0.0</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 => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
Navigating to the <a href="https://angular.io/docs/ts/latest/cookbook/dynamic-component-loader.html" rel="nofollow">dynamic-component</a> documentation and trying to refer to the live example plunker at the <a href="https://angular.io/resources/live-examples/cb-dynamic-component-loader/ts/eplnkr.html" rel="nofollow">link</a> does not execute the code but throws errors</p>
<p dir="auto"><strong>Expected behavior</strong><br>
Example should be seen</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p>
<p dir="auto"><strong>Please tell us about your environment:</strong></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 | TypeScript X.X | ES6/7 | ES5]</p>
</li>
<li>
<p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = <strong>7.2</strong></p>
</li>
</ul>
| 0 |
<p dir="auto">It'd be really useful if there was a single endpoint that could be called that gathers all the config from nodes in the cluster as well as any cluster level config, this includes the local elasticsearch.yml from all nodes.</p>
|
<p dir="auto">Currently there is no way of seeing all settings that are enforced. For instance, defaults are not available and settings from the <code class="notranslate">config/elasticsearch.yml</code> are not available.</p>
<p dir="auto">Any setting which is different from the default should be returned by these APIs:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="GET /{index}/_settings
GET /_cluster/settings"><pre class="notranslate"><code class="notranslate">GET /{index}/_settings
GET /_cluster/settings
</code></pre></div>
<p dir="auto">Both should also support the <code class="notranslate">include_defaults</code> query string parameter, which would return all settings, including the defaults.</p>
<p dir="auto">Also, deleting a setting should reset the setting to the default.</p>
<p dir="auto">Setting an unknown setting, or a setting that can't be changed should throw an error.</p>
<p dir="auto">Relates to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="26953933" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/5018" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/5018/hovercard" href="https://github.com/elastic/elasticsearch/issues/5018">#5018</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19340352" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/3670" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/3670/hovercard" href="https://github.com/elastic/elasticsearch/issues/3670">#3670</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="11739095" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/2738" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/2738/hovercard" href="https://github.com/elastic/elasticsearch/issues/2738">#2738</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="11658370" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/2730" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/2730/hovercard" href="https://github.com/elastic/elasticsearch/issues/2730">#2730</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18541655" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/3572" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/3572/hovercard" href="https://github.com/elastic/elasticsearch/issues/3572">#3572</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="10724452" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/2628" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/2628/hovercard" href="https://github.com/elastic/elasticsearch/issues/2628">#2628</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19340512" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/3671" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/3671/hovercard" href="https://github.com/elastic/elasticsearch/issues/3671">#3671</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="26954220" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/5019" data-hovercard-type="pull_request" data-hovercard-url="/elastic/elasticsearch/pull/5019/hovercard" href="https://github.com/elastic/elasticsearch/pull/5019">#5019</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="34296305" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/6309" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/6309/hovercard" href="https://github.com/elastic/elasticsearch/issues/6309">#6309</a></p>
| 1 |
<p dir="auto"><code class="notranslate">kubectl</code> crashes when creating a pod with one or more empty arguments. This also happens when creating a deployment with this as a pod spec.</p>
<p dir="auto">I'm using v1.2.3.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ kubectl version
Client Version: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.3", GitCommit:"882d296a99218da8f6b2a340eb0e81c69e66ecc7", GitTreeState:"clean"}
Server Version: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.3", GitCommit:"882d296a99218da8f6b2a340eb0e81c69e66ecc7", GitTreeState:"clean"}"><pre class="notranslate">$ kubectl version
Client Version: version.Info{Major:<span class="pl-s"><span class="pl-pds">"</span>1<span class="pl-pds">"</span></span>, Minor:<span class="pl-s"><span class="pl-pds">"</span>2<span class="pl-pds">"</span></span>, GitVersion:<span class="pl-s"><span class="pl-pds">"</span>v1.2.3<span class="pl-pds">"</span></span>, GitCommit:<span class="pl-s"><span class="pl-pds">"</span>882d296a99218da8f6b2a340eb0e81c69e66ecc7<span class="pl-pds">"</span></span>, GitTreeState:<span class="pl-s"><span class="pl-pds">"</span>clean<span class="pl-pds">"</span></span>}
Server Version: version.Info{Major:<span class="pl-s"><span class="pl-pds">"</span>1<span class="pl-pds">"</span></span>, Minor:<span class="pl-s"><span class="pl-pds">"</span>2<span class="pl-pds">"</span></span>, GitVersion:<span class="pl-s"><span class="pl-pds">"</span>v1.2.3<span class="pl-pds">"</span></span>, GitCommit:<span class="pl-s"><span class="pl-pds">"</span>882d296a99218da8f6b2a340eb0e81c69e66ecc7<span class="pl-pds">"</span></span>, GitTreeState:<span class="pl-s"><span class="pl-pds">"</span>clean<span class="pl-pds">"</span></span>}</pre></div>
<p dir="auto">I was able to get a similar crash with <code class="notranslate">kubectl</code> 1.2.4.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ ./kubectl version
Client Version: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.4", GitCommit:"3eed1e3be6848b877ff80a93da3785d9034d0a4f", GitTreeState:"clean"}
Server Version: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.3", GitCommit:"882d296a99218da8f6b2a340eb0e81c69e66ecc7", GitTreeState:"clean"}"><pre class="notranslate">$ ./kubectl version
Client Version: version.Info{Major:<span class="pl-s"><span class="pl-pds">"</span>1<span class="pl-pds">"</span></span>, Minor:<span class="pl-s"><span class="pl-pds">"</span>2<span class="pl-pds">"</span></span>, GitVersion:<span class="pl-s"><span class="pl-pds">"</span>v1.2.4<span class="pl-pds">"</span></span>, GitCommit:<span class="pl-s"><span class="pl-pds">"</span>3eed1e3be6848b877ff80a93da3785d9034d0a4f<span class="pl-pds">"</span></span>, GitTreeState:<span class="pl-s"><span class="pl-pds">"</span>clean<span class="pl-pds">"</span></span>}
Server Version: version.Info{Major:<span class="pl-s"><span class="pl-pds">"</span>1<span class="pl-pds">"</span></span>, Minor:<span class="pl-s"><span class="pl-pds">"</span>2<span class="pl-pds">"</span></span>, GitVersion:<span class="pl-s"><span class="pl-pds">"</span>v1.2.3<span class="pl-pds">"</span></span>, GitCommit:<span class="pl-s"><span class="pl-pds">"</span>882d296a99218da8f6b2a340eb0e81c69e66ecc7<span class="pl-pds">"</span></span>, GitTreeState:<span class="pl-s"><span class="pl-pds">"</span>clean<span class="pl-pds">"</span></span>}</pre></div>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ kubectl create -f -
apiVersion: v1
kind: Pod
metadata:
name: busybox-sleep
spec:
containers:
- name: busybox
image: busybox
args:
- echo
- hello
-
- world
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0xa0 pc=0x8386fb]
goroutine 1 [running]:
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).validateField(0xc20811c480, 0x0, 0x0, 0xc2081fc3a0, 0x1a, 0xc208587d88, 0x6, 0x0, 0x0, 0x0, ...)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:247 +0x198b
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).validateField(0xc20811c480, 0x11677e0, 0xc2082b7fc0, 0xc2081fc300, 0x17, 0xc208587dc0, 0x5, 0xc208462750, 0x0, 0x0, ...)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:264 +0xa7b
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).ValidateObject(0xc20811c480, 0x118cbe0, 0xc20843ced0, 0xc2081fc2a0, 0x13, 0xc20848d050, 0xc, 0x0, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:214 +0x119d
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).validateField(0xc20811c480, 0x118cbe0, 0xc20843ced0, 0xc2081fc200, 0x12, 0xc20848d050, 0xc, 0x0, 0x0, 0x0, ...)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:237 +0xe0
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).validateField(0xc20811c480, 0x11677e0, 0xc2081fc020, 0xc20843a590, 0xf, 0xc20848d070, 0x5, 0xc2084626c0, 0x0, 0x0, ...)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:264 +0xa7b
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).ValidateObject(0xc20811c480, 0x118cbe0, 0xc20843cea0, 0xc20843a579, 0x5, 0xc208613320, 0xa, 0x0, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:214 +0x119d
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).validateField(0xc20811c480, 0x118cbe0, 0xc20843cea0, 0xc20842b8f4, 0x4, 0xc208613320, 0xa, 0xc208462630, 0x0, 0x0, ...)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:237 +0xe0
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).ValidateObject(0xc20811c480, 0x118cbe0, 0xc20843ce40, 0x0, 0x0, 0xc20843a498, 0x6, 0x0, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:214 +0x119d
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).ValidateBytes(0xc20811c480, 0xc20806d130, 0xa6, 0xb0, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:163 +0x89a
k8s.io/kubernetes/pkg/kubectl/cmd/util.getSchemaAndValidate(0x7fc7b327ee30, 0xc2081e86c0, 0xc20806d130, 0xa6, 0xb0, 0x1621220, 0x3, 0x1637ce0, 0x2, 0xc2081fda40, ...)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/util/factory.go:757 +0x407
k8s.io/kubernetes/pkg/kubectl/cmd/util.(*clientSwaggerSchema).ValidateBytes(0xc2082033b0, 0xc20806d130, 0xa6, 0xb0, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/util/factory.go:819 +0xf41
k8s.io/kubernetes/pkg/kubectl/resource.ValidateSchema(0xc20806d130, 0xa6, 0xb0, 0x7fc7b327ea20, 0xc2082033b0, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:213 +0x1f4
k8s.io/kubernetes/pkg/kubectl/resource.(*StreamVisitor).Visit(0xc20810b3c0, 0xc2081a85c0, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:481 +0x2e0
k8s.io/kubernetes/pkg/kubectl/resource.(*FileVisitor).Visit(0xc2081a83e0, 0xc2081a85c0, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:441 +0x12e
k8s.io/kubernetes/pkg/kubectl/resource.EagerVisitorList.Visit(0xc208116fe0, 0x1, 0x1, 0xc2081a8560, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:198 +0x17e
k8s.io/kubernetes/pkg/kubectl/resource.(*EagerVisitorList).Visit(0xc2081a8420, 0xc2081a8560, 0x0, 0x0)
<autogenerated>:100 +0xbd
k8s.io/kubernetes/pkg/kubectl/resource.FlattenListVisitor.Visit(0x7fc7b327eba0, 0xc2081a8420, 0xc20810aec0, 0xc2081a8520, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:361 +0x10b
k8s.io/kubernetes/pkg/kubectl/resource.(*FlattenListVisitor).Visit(0xc2081a8480, 0xc2081a8520, 0x0, 0x0)
<autogenerated>:117 +0xbd
k8s.io/kubernetes/pkg/kubectl/resource.DecoratedVisitor.Visit(0x7fc7b327ebc8, 0xc2081a8480, 0xc2081a84c0, 0x3, 0x4, 0xc2081a8500, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:269 +0x110
k8s.io/kubernetes/pkg/kubectl/resource.(*DecoratedVisitor).Visit(0xc208203c50, 0xc2081a8500, 0x0, 0x0)
<autogenerated>:138 +0xbc
k8s.io/kubernetes/pkg/kubectl/resource.ContinueOnErrorVisitor.Visit(0x7fc7b327ebf0, 0xc208203c50, 0xc208203c80, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:296 +0x171
k8s.io/kubernetes/pkg/kubectl/resource.(*ContinueOnErrorVisitor).Visit(0xc208117020, 0xc208203c80, 0x0, 0x0)
<autogenerated>:133 +0xbb
k8s.io/kubernetes/pkg/kubectl/resource.(*Result).Visit(0xc208201f80, 0xc208203c80, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/resource/result.go:79 +0x73
k8s.io/kubernetes/pkg/kubectl/cmd.RunCreate(0xc208162960, 0xc208122000, 0x7fc7b3278030, 0xc208046008, 0xc20801ee80, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/create.go:143 +0x743
k8s.io/kubernetes/pkg/kubectl/cmd.func·012(0xc208122000, 0xc2081a9200, 0x0, 0x2)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/create.go:66 +0x107
github.com/spf13/cobra.(*Command).execute(0xc208122000, 0xc2081a90a0, 0x2, 0x2, 0x0, 0x0)
/go/src/k8s.io/kubernetes/Godeps/_workspace/src/github.com/spf13/cobra/command.go:572 +0x82f
github.com/spf13/cobra.(*Command).ExecuteC(0xc20806b600, 0xc208122000, 0x0, 0x0)
/go/src/k8s.io/kubernetes/Godeps/_workspace/src/github.com/spf13/cobra/command.go:662 +0x4db
github.com/spf13/cobra.(*Command).Execute(0xc20806b600, 0x0, 0x0)
/go/src/k8s.io/kubernetes/Godeps/_workspace/src/github.com/spf13/cobra/command.go:618 +0x3a
k8s.io/kubernetes/cmd/kubectl/app.Run(0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubectl/app/kubectl.go:28 +0x101
main.main()
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubectl/kubectl.go:28 +0x2f
goroutine 5 [chan receive]:
github.com/golang/glog.(*loggingT).flushDaemon(0x1e6b160)
/go/src/k8s.io/kubernetes/Godeps/_workspace/src/github.com/golang/glog/glog.go:879 +0x78
created by github.com/golang/glog.init·1
/go/src/k8s.io/kubernetes/Godeps/_workspace/src/github.com/golang/glog/glog.go:410 +0x2a7
goroutine 13 [syscall]:
os/signal.loop()
/usr/src/go/src/os/signal/signal_unix.go:21 +0x1f
created by os/signal.init·1
/usr/src/go/src/os/signal/signal_unix.go:27 +0x35
goroutine 16 [IO wait]:
net.(*pollDesc).Wait(0xc2081c73a0, 0x72, 0x0, 0x0)
/usr/src/go/src/net/fd_poll_runtime.go:84 +0x47
net.(*pollDesc).WaitRead(0xc2081c73a0, 0x0, 0x0)
/usr/src/go/src/net/fd_poll_runtime.go:89 +0x43
net.(*netFD).Read(0xc2081c7340, 0xc2081e2000, 0x1000, 0x1000, 0x0, 0x7fc7b3278378, 0xc208117038)
/usr/src/go/src/net/fd_unix.go:242 +0x40f
net.(*conn).Read(0xc208046418, 0xc2081e2000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/src/go/src/net/net.go:121 +0xdc
net/http.noteEOFReader.Read(0x7fc7b327e1e0, 0xc208046418, 0xc20806ce18, 0xc2081e2000, 0x1000, 0x1000, 0x1309f20, 0x0, 0x0)
/usr/src/go/src/net/http/transport.go:1270 +0x6e
net/http.(*noteEOFReader).Read(0xc2081c9800, 0xc2081e2000, 0x1000, 0x1000, 0xc208012000, 0x0, 0x0)
<autogenerated>:125 +0xd4
bufio.(*Reader).fill(0xc20819fb60)
/usr/src/go/src/bufio/bufio.go:97 +0x1ce
bufio.(*Reader).Peek(0xc20819fb60, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/src/go/src/bufio/bufio.go:132 +0xf0
net/http.(*persistConn).readLoop(0xc20806cdc0)
/usr/src/go/src/net/http/transport.go:842 +0xa4
created by net/http.(*Transport).dialConn
/usr/src/go/src/net/http/transport.go:660 +0xc9f
goroutine 17 [select]:
net/http.(*persistConn).writeLoop(0xc20806cdc0)
/usr/src/go/src/net/http/transport.go:945 +0x41d
created by net/http.(*Transport).dialConn
/usr/src/go/src/net/http/transport.go:661 +0xcbc"><pre class="notranslate">$ kubectl create -f -
apiVersion: v1
kind: Pod
metadata:
name: busybox-sleep
spec:
containers:
- name: busybox
image: busybox
args:
- <span class="pl-c1">echo</span>
- hello
-
- world
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code<span class="pl-k">=</span>0x1 addr<span class="pl-k">=</span>0xa0 pc<span class="pl-k">=</span>0x8386fb]
goroutine 1 [running]:
k8s.io/kubernetes/pkg/api/validation.(<span class="pl-k">*</span>SwaggerSchema).validateField(0xc20811c480, 0x0, 0x0, 0xc2081fc3a0, 0x1a, 0xc208587d88, 0x6, 0x0, 0x0, 0x0, ...)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:247 +0x198b
k8s.io/kubernetes/pkg/api/validation.(<span class="pl-k">*</span>SwaggerSchema).validateField(0xc20811c480, 0x11677e0, 0xc2082b7fc0, 0xc2081fc300, 0x17, 0xc208587dc0, 0x5, 0xc208462750, 0x0, 0x0, ...)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:264 +0xa7b
k8s.io/kubernetes/pkg/api/validation.(<span class="pl-k">*</span>SwaggerSchema).ValidateObject(0xc20811c480, 0x118cbe0, 0xc20843ced0, 0xc2081fc2a0, 0x13, 0xc20848d050, 0xc, 0x0, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:214 +0x119d
k8s.io/kubernetes/pkg/api/validation.(<span class="pl-k">*</span>SwaggerSchema).validateField(0xc20811c480, 0x118cbe0, 0xc20843ced0, 0xc2081fc200, 0x12, 0xc20848d050, 0xc, 0x0, 0x0, 0x0, ...)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:237 +0xe0
k8s.io/kubernetes/pkg/api/validation.(<span class="pl-k">*</span>SwaggerSchema).validateField(0xc20811c480, 0x11677e0, 0xc2081fc020, 0xc20843a590, 0xf, 0xc20848d070, 0x5, 0xc2084626c0, 0x0, 0x0, ...)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:264 +0xa7b
k8s.io/kubernetes/pkg/api/validation.(<span class="pl-k">*</span>SwaggerSchema).ValidateObject(0xc20811c480, 0x118cbe0, 0xc20843cea0, 0xc20843a579, 0x5, 0xc208613320, 0xa, 0x0, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:214 +0x119d
k8s.io/kubernetes/pkg/api/validation.(<span class="pl-k">*</span>SwaggerSchema).validateField(0xc20811c480, 0x118cbe0, 0xc20843cea0, 0xc20842b8f4, 0x4, 0xc208613320, 0xa, 0xc208462630, 0x0, 0x0, ...)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:237 +0xe0
k8s.io/kubernetes/pkg/api/validation.(<span class="pl-k">*</span>SwaggerSchema).ValidateObject(0xc20811c480, 0x118cbe0, 0xc20843ce40, 0x0, 0x0, 0xc20843a498, 0x6, 0x0, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:214 +0x119d
k8s.io/kubernetes/pkg/api/validation.(<span class="pl-k">*</span>SwaggerSchema).ValidateBytes(0xc20811c480, 0xc20806d130, 0xa6, 0xb0, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:163 +0x89a
k8s.io/kubernetes/pkg/kubectl/cmd/util.getSchemaAndValidate(0x7fc7b327ee30, 0xc2081e86c0, 0xc20806d130, 0xa6, 0xb0, 0x1621220, 0x3, 0x1637ce0, 0x2, 0xc2081fda40, ...)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/util/factory.go:757 +0x407
k8s.io/kubernetes/pkg/kubectl/cmd/util.(<span class="pl-k">*</span>clientSwaggerSchema).ValidateBytes(0xc2082033b0, 0xc20806d130, 0xa6, 0xb0, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/util/factory.go:819 +0xf41
k8s.io/kubernetes/pkg/kubectl/resource.ValidateSchema(0xc20806d130, 0xa6, 0xb0, 0x7fc7b327ea20, 0xc2082033b0, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:213 +0x1f4
k8s.io/kubernetes/pkg/kubectl/resource.(<span class="pl-k">*</span>StreamVisitor).Visit(0xc20810b3c0, 0xc2081a85c0, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:481 +0x2e0
k8s.io/kubernetes/pkg/kubectl/resource.(<span class="pl-k">*</span>FileVisitor).Visit(0xc2081a83e0, 0xc2081a85c0, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:441 +0x12e
k8s.io/kubernetes/pkg/kubectl/resource.EagerVisitorList.Visit(0xc208116fe0, 0x1, 0x1, 0xc2081a8560, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:198 +0x17e
k8s.io/kubernetes/pkg/kubectl/resource.(<span class="pl-k">*</span>EagerVisitorList).Visit(0xc2081a8420, 0xc2081a8560, 0x0, 0x0)
<span class="pl-k"><</span>autogenerated<span class="pl-k">></span>:100 +0xbd
k8s.io/kubernetes/pkg/kubectl/resource.FlattenListVisitor.Visit(0x7fc7b327eba0, 0xc2081a8420, 0xc20810aec0, 0xc2081a8520, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:361 +0x10b
k8s.io/kubernetes/pkg/kubectl/resource.(<span class="pl-k">*</span>FlattenListVisitor).Visit(0xc2081a8480, 0xc2081a8520, 0x0, 0x0)
<span class="pl-k"><</span>autogenerated<span class="pl-k">></span>:117 +0xbd
k8s.io/kubernetes/pkg/kubectl/resource.DecoratedVisitor.Visit(0x7fc7b327ebc8, 0xc2081a8480, 0xc2081a84c0, 0x3, 0x4, 0xc2081a8500, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:269 +0x110
k8s.io/kubernetes/pkg/kubectl/resource.(<span class="pl-k">*</span>DecoratedVisitor).Visit(0xc208203c50, 0xc2081a8500, 0x0, 0x0)
<span class="pl-k"><</span>autogenerated<span class="pl-k">></span>:138 +0xbc
k8s.io/kubernetes/pkg/kubectl/resource.ContinueOnErrorVisitor.Visit(0x7fc7b327ebf0, 0xc208203c50, 0xc208203c80, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:296 +0x171
k8s.io/kubernetes/pkg/kubectl/resource.(<span class="pl-k">*</span>ContinueOnErrorVisitor).Visit(0xc208117020, 0xc208203c80, 0x0, 0x0)
<span class="pl-k"><</span>autogenerated<span class="pl-k">></span>:133 +0xbb
k8s.io/kubernetes/pkg/kubectl/resource.(<span class="pl-k">*</span>Result).Visit(0xc208201f80, 0xc208203c80, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/resource/result.go:79 +0x73
k8s.io/kubernetes/pkg/kubectl/cmd.RunCreate(0xc208162960, 0xc208122000, 0x7fc7b3278030, 0xc208046008, 0xc20801ee80, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/create.go:143 +0x743
k8s.io/kubernetes/pkg/kubectl/cmd.func·012(0xc208122000, 0xc2081a9200, 0x0, 0x2)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/create.go:66 +0x107
github.com/spf13/cobra.(<span class="pl-k">*</span>Command).execute(0xc208122000, 0xc2081a90a0, 0x2, 0x2, 0x0, 0x0)
/go/src/k8s.io/kubernetes/Godeps/_workspace/src/github.com/spf13/cobra/command.go:572 +0x82f
github.com/spf13/cobra.(<span class="pl-k">*</span>Command).ExecuteC(0xc20806b600, 0xc208122000, 0x0, 0x0)
/go/src/k8s.io/kubernetes/Godeps/_workspace/src/github.com/spf13/cobra/command.go:662 +0x4db
github.com/spf13/cobra.(<span class="pl-k">*</span>Command).Execute(0xc20806b600, 0x0, 0x0)
/go/src/k8s.io/kubernetes/Godeps/_workspace/src/github.com/spf13/cobra/command.go:618 +0x3a
k8s.io/kubernetes/cmd/kubectl/app.Run(0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubectl/app/kubectl.go:28 +0x101
<span class="pl-en">main.main</span>()
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubectl/kubectl.go:28 +0x2f
goroutine 5 [chan receive]:
github.com/golang/glog.(<span class="pl-k">*</span>loggingT).flushDaemon(0x1e6b160)
/go/src/k8s.io/kubernetes/Godeps/_workspace/src/github.com/golang/glog/glog.go:879 +0x78
created by github.com/golang/glog.init·1
/go/src/k8s.io/kubernetes/Godeps/_workspace/src/github.com/golang/glog/glog.go:410 +0x2a7
goroutine 13 [syscall]:
<span class="pl-en">os/signal.loop</span>()
/usr/src/go/src/os/signal/signal_unix.go:21 +0x1f
created by os/signal.init·1
/usr/src/go/src/os/signal/signal_unix.go:27 +0x35
goroutine 16 [IO wait]:
net.(<span class="pl-k">*</span>pollDesc).Wait(0xc2081c73a0, 0x72, 0x0, 0x0)
/usr/src/go/src/net/fd_poll_runtime.go:84 +0x47
net.(<span class="pl-k">*</span>pollDesc).WaitRead(0xc2081c73a0, 0x0, 0x0)
/usr/src/go/src/net/fd_poll_runtime.go:89 +0x43
net.(<span class="pl-k">*</span>netFD).Read(0xc2081c7340, 0xc2081e2000, 0x1000, 0x1000, 0x0, 0x7fc7b3278378, 0xc208117038)
/usr/src/go/src/net/fd_unix.go:242 +0x40f
net.(<span class="pl-k">*</span>conn).Read(0xc208046418, 0xc2081e2000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/src/go/src/net/net.go:121 +0xdc
net/http.noteEOFReader.Read(0x7fc7b327e1e0, 0xc208046418, 0xc20806ce18, 0xc2081e2000, 0x1000, 0x1000, 0x1309f20, 0x0, 0x0)
/usr/src/go/src/net/http/transport.go:1270 +0x6e
net/http.(<span class="pl-k">*</span>noteEOFReader).Read(0xc2081c9800, 0xc2081e2000, 0x1000, 0x1000, 0xc208012000, 0x0, 0x0)
<span class="pl-k"><</span>autogenerated<span class="pl-k">></span>:125 +0xd4
bufio.(<span class="pl-k">*</span>Reader).fill(0xc20819fb60)
/usr/src/go/src/bufio/bufio.go:97 +0x1ce
bufio.(<span class="pl-k">*</span>Reader).Peek(0xc20819fb60, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/src/go/src/bufio/bufio.go:132 +0xf0
net/http.(<span class="pl-k">*</span>persistConn).readLoop(0xc20806cdc0)
/usr/src/go/src/net/http/transport.go:842 +0xa4
created by net/http.(<span class="pl-k">*</span>Transport).dialConn
/usr/src/go/src/net/http/transport.go:660 +0xc9f
goroutine 17 [select]:
net/http.(<span class="pl-k">*</span>persistConn).writeLoop(0xc20806cdc0)
/usr/src/go/src/net/http/transport.go:945 +0x41d
created by net/http.(<span class="pl-k">*</span>Transport).dialConn
/usr/src/go/src/net/http/transport.go:661 +0xcbc</pre></div>
|
<p dir="auto">I am getting this runtime error on kubectl create:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ kubectl version
Client Version: version.Info{Major:"1", Minor:"1", GitVersion:"v1.1.7+e4e6878", GitCommit:"e4e6878293a339e4087dae684647c9e53f1cf9f0", GitTreeState:"not a git tree"}
Server Version: version.Info{Major:"1", Minor:"1", GitVersion:"v1.1.3", GitCommit:"6a81b50c7e97bbe0ade075de55ab4fa34f049dc2", GitTreeState:"clean"}
$ kubectl --server=http://localhost:18080 create -f test-rc.yaml
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0xa0 pc=0x3b5cdc]
goroutine 1 [running]:
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).validateField(0xc8202f80c0, 0x0, 0x0, 0xc8205e7c80, 0x28, 0xc82056a130, 0x6, 0x0, 0x0, 0x0, ...)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:241 +0x127c
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).validateField(0xc8202f80c0, 0x74c480, 0xc8203d4900, 0xc8205e7c20, 0x25, 0xc82056a150, 0x5, 0xc8205d9680, 0x0, 0x0, ...)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:258 +0xc87
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).ValidateObject(0xc8202f80c0, 0x7656e0, 0xc8205e7890, 0xc8205e7bf0, 0x21, 0xc8204400a0, 0xc, 0x0, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:208 +0x11d0
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).validateField(0xc8202f80c0, 0x7656e0, 0xc8205e7890, 0xc8203d4de0, 0x20, 0xc8204400a0, 0xc, 0x0, 0x0, 0x0, ...)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:231 +0xd3
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).validateField(0xc8202f80c0, 0x74c480, 0xc8203d49c0, 0xc8203d4dc0, 0x1d, 0xc8204400c0, 0x5, 0xc8205d95f0, 0x0, 0x0, ...)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:258 +0xc87
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).ValidateObject(0xc8202f80c0, 0x7656e0, 0xc8205e7860, 0xc8203d4ba0, 0x13, 0xc82025bbe0, 0xa, 0x0, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:208 +0x11d0
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).validateField(0xc8202f80c0, 0x7656e0, 0xc8205e7860, 0xc8203d4b40, 0x12, 0xc82025bbe0, 0xa, 0xc8205d9200, 0x0, 0x0, ...)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:231 +0xd3
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).ValidateObject(0xc8202f80c0, 0x7656e0, 0xc8205e77d0, 0xc82056b440, 0xe, 0xc82040fbe0, 0x12, 0x0, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:208 +0x11d0
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).validateField(0xc8202f80c0, 0x7656e0, 0xc8205e77d0, 0xc82056b430, 0xd, 0xc82040fbe0, 0x12, 0xc8205d9050, 0x0, 0x0, ...)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:231 +0xd3
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).ValidateObject(0xc8202f80c0, 0x7656e0, 0xc8205e7770, 0xc82056b400, 0x5, 0xc82000e180, 0x1c, 0x0, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:208 +0x11d0
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).validateField(0xc8202f80c0, 0x7656e0, 0xc8205e7770, 0xc82056ae80, 0x4, 0xc82000e180, 0x1c, 0xc8205d8d80, 0x0, 0x0, ...)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:231 +0xd3
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).ValidateObject(0xc8202f80c0, 0x7656e0, 0xc8205e76e0, 0x0, 0x0, 0xc8203d4a40, 0x18, 0x0, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:208 +0x11d0
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).ValidateBytes(0xc8202f80c0, 0xc820302000, 0x2ff, 0x300, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:156 +0x8a1
k8s.io/kubernetes/pkg/kubectl/cmd/util.getSchemaAndValidate(0x13a03d0, 0xc8202660a0, 0xc820302000, 0x2ff, 0x300, 0xa08c30, 0x3, 0xc8203005e0, 0x2, 0xc8200f2520, ...)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/util/factory.go:357 +0x8a1
k8s.io/kubernetes/pkg/kubectl/cmd/util.(*clientSwaggerSchema).ValidateBytes(0xc8202569f0, 0xc820302000, 0x2ff, 0x300, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/util/factory.go:379 +0x803
k8s.io/kubernetes/pkg/kubectl/resource.ValidateSchema(0xc820302000, 0x2ff, 0x300, 0x13a0178, 0xc8202569f0, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:210 +0x1e4
k8s.io/kubernetes/pkg/kubectl/resource.(*StreamVisitor).Visit(0xc8202e2c00, 0xc8202f36a0, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:481 +0x2fc
k8s.io/kubernetes/pkg/kubectl/resource.(*FileVisitor).Visit(0xc8202f35a0, 0xc8202f36a0, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:441 +0x12d
k8s.io/kubernetes/pkg/kubectl/resource.EagerVisitorList.Visit(0xc8202e8e70, 0x1, 0x1, 0xc8202ea990, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:186 +0x12c
k8s.io/kubernetes/pkg/kubectl/resource.(*EagerVisitorList).Visit(0xc8202f35c0, 0xc8202ea990, 0x0, 0x0)
<autogenerated>:98 +0xb7
k8s.io/kubernetes/pkg/kubectl/resource.FlattenListVisitor.Visit(0x13a02b8, 0xc8202f35c0, 0xc8202ea930, 0xc8202e2c80, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:361 +0xaa
k8s.io/kubernetes/pkg/kubectl/resource.(*FlattenListVisitor).Visit(0xc8202f35e0, 0xc8202e2c80, 0x0, 0x0)
<autogenerated>:111 +0xb7
k8s.io/kubernetes/pkg/kubectl/resource.DecoratedVisitor.Visit(0x13a02e0, 0xc8202f35e0, 0xc8202f3620, 0x3, 0x4, 0xc8202f3660, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:276 +0xf0
k8s.io/kubernetes/pkg/kubectl/resource.(*DecoratedVisitor).Visit(0xc8202ea960, 0xc8202f3660, 0x0, 0x0)
<autogenerated>:127 +0xac
k8s.io/kubernetes/pkg/kubectl/resource.ContinueOnErrorVisitor.Visit(0x13a0308, 0xc8202ea960, 0xc8202e2c40, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:294 +0x12f
k8s.io/kubernetes/pkg/kubectl/resource.(*ContinueOnErrorVisitor).Visit(0xc8202e8e90, 0xc8202e2c40, 0x0, 0x0)
<autogenerated>:123 +0xae
k8s.io/kubernetes/pkg/kubectl/resource.(*Result).Visit(0xc8202f4230, 0xc8202e2c40, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/kubectl/resource/result.go:79 +0x6d
k8s.io/kubernetes/pkg/kubectl/cmd.RunCreate(0xc8201174a0, 0xc82000d180, 0x13643d0, 0xc820030010, 0xc8201d11c0, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/create.go:128 +0x547
k8s.io/kubernetes/pkg/kubectl/cmd.NewCmdCreate.func1(0xc82000d180, 0xc8201fed80, 0x0, 0x3)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/create.go:61 +0xf8
github.com/spf13/cobra.(*Command).execute(0xc82000d180, 0xc8201fecf0, 0x3, 0x3, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/Godeps/_workspace/src/github.com/spf13/cobra/command.go:499 +0x869
github.com/spf13/cobra.(*Command).Execute(0xc82000cc40, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/Godeps/_workspace/src/github.com/spf13/cobra/command.go:582 +0x46a
main.main()
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/cmd/kubectl/kubectl.go:30 +0xf9
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/local/Cellar/go/1.5.3/libexec/src/runtime/asm_amd64.s:1721 +0x1
goroutine 5 [chan receive]:
github.com/golang/glog.(*loggingT).flushDaemon(0xedf360)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/Godeps/_workspace/src/github.com/golang/glog/glog.go:879 +0x67
created by github.com/golang/glog.init.1
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/Godeps/_workspace/src/github.com/golang/glog/glog.go:410 +0x297
goroutine 10 [syscall]:
os/signal.loop()
/usr/local/Cellar/go/1.5.3/libexec/src/os/signal/signal_unix.go:22 +0x18
created by os/signal.init.1
/usr/local/Cellar/go/1.5.3/libexec/src/os/signal/signal_unix.go:28 +0x37
goroutine 14 [IO wait]:
net.runtime_pollWait(0x136c228, 0x72, 0xc820012160)
/usr/local/Cellar/go/1.5.3/libexec/src/runtime/netpoll.go:157 +0x60
net.(*pollDesc).Wait(0xc82022ad10, 0x72, 0x0, 0x0)
/usr/local/Cellar/go/1.5.3/libexec/src/net/fd_poll_runtime.go:73 +0x3a
net.(*pollDesc).WaitRead(0xc82022ad10, 0x0, 0x0)
/usr/local/Cellar/go/1.5.3/libexec/src/net/fd_poll_runtime.go:78 +0x36
net.(*netFD).Read(0xc82022acb0, 0xc820236000, 0x1000, 0x1000, 0x0, 0x1360050, 0xc820012160)
/usr/local/Cellar/go/1.5.3/libexec/src/net/fd_unix.go:232 +0x23a
net.(*conn).Read(0xc8200303f8, 0xc820236000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.5.3/libexec/src/net/net.go:172 +0xe4
net/http.noteEOFReader.Read(0x136c2e8, 0xc8200303f8, 0xc8202007e8, 0xc820236000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.5.3/libexec/src/net/http/transport.go:1370 +0x67
net/http.(*noteEOFReader).Read(0xc820232a00, 0xc820236000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
<autogenerated>:126 +0xd0
bufio.(*Reader).fill(0xc820234240)
/usr/local/Cellar/go/1.5.3/libexec/src/bufio/bufio.go:97 +0x1e9
bufio.(*Reader).Peek(0xc820234240, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.5.3/libexec/src/bufio/bufio.go:132 +0xcc
net/http.(*persistConn).readLoop(0xc820200790)
/usr/local/Cellar/go/1.5.3/libexec/src/net/http/transport.go:876 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/Cellar/go/1.5.3/libexec/src/net/http/transport.go:685 +0xc78
goroutine 15 [select]:
net/http.(*persistConn).writeLoop(0xc820200790)
/usr/local/Cellar/go/1.5.3/libexec/src/net/http/transport.go:1009 +0x40c
created by net/http.(*Transport).dialConn
/usr/local/Cellar/go/1.5.3/libexec/src/net/http/transport.go:686 +0xc9d"><pre class="notranslate"><code class="notranslate">$ kubectl version
Client Version: version.Info{Major:"1", Minor:"1", GitVersion:"v1.1.7+e4e6878", GitCommit:"e4e6878293a339e4087dae684647c9e53f1cf9f0", GitTreeState:"not a git tree"}
Server Version: version.Info{Major:"1", Minor:"1", GitVersion:"v1.1.3", GitCommit:"6a81b50c7e97bbe0ade075de55ab4fa34f049dc2", GitTreeState:"clean"}
$ kubectl --server=http://localhost:18080 create -f test-rc.yaml
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0xa0 pc=0x3b5cdc]
goroutine 1 [running]:
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).validateField(0xc8202f80c0, 0x0, 0x0, 0xc8205e7c80, 0x28, 0xc82056a130, 0x6, 0x0, 0x0, 0x0, ...)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:241 +0x127c
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).validateField(0xc8202f80c0, 0x74c480, 0xc8203d4900, 0xc8205e7c20, 0x25, 0xc82056a150, 0x5, 0xc8205d9680, 0x0, 0x0, ...)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:258 +0xc87
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).ValidateObject(0xc8202f80c0, 0x7656e0, 0xc8205e7890, 0xc8205e7bf0, 0x21, 0xc8204400a0, 0xc, 0x0, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:208 +0x11d0
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).validateField(0xc8202f80c0, 0x7656e0, 0xc8205e7890, 0xc8203d4de0, 0x20, 0xc8204400a0, 0xc, 0x0, 0x0, 0x0, ...)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:231 +0xd3
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).validateField(0xc8202f80c0, 0x74c480, 0xc8203d49c0, 0xc8203d4dc0, 0x1d, 0xc8204400c0, 0x5, 0xc8205d95f0, 0x0, 0x0, ...)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:258 +0xc87
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).ValidateObject(0xc8202f80c0, 0x7656e0, 0xc8205e7860, 0xc8203d4ba0, 0x13, 0xc82025bbe0, 0xa, 0x0, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:208 +0x11d0
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).validateField(0xc8202f80c0, 0x7656e0, 0xc8205e7860, 0xc8203d4b40, 0x12, 0xc82025bbe0, 0xa, 0xc8205d9200, 0x0, 0x0, ...)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:231 +0xd3
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).ValidateObject(0xc8202f80c0, 0x7656e0, 0xc8205e77d0, 0xc82056b440, 0xe, 0xc82040fbe0, 0x12, 0x0, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:208 +0x11d0
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).validateField(0xc8202f80c0, 0x7656e0, 0xc8205e77d0, 0xc82056b430, 0xd, 0xc82040fbe0, 0x12, 0xc8205d9050, 0x0, 0x0, ...)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:231 +0xd3
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).ValidateObject(0xc8202f80c0, 0x7656e0, 0xc8205e7770, 0xc82056b400, 0x5, 0xc82000e180, 0x1c, 0x0, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:208 +0x11d0
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).validateField(0xc8202f80c0, 0x7656e0, 0xc8205e7770, 0xc82056ae80, 0x4, 0xc82000e180, 0x1c, 0xc8205d8d80, 0x0, 0x0, ...)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:231 +0xd3
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).ValidateObject(0xc8202f80c0, 0x7656e0, 0xc8205e76e0, 0x0, 0x0, 0xc8203d4a40, 0x18, 0x0, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:208 +0x11d0
k8s.io/kubernetes/pkg/api/validation.(*SwaggerSchema).ValidateBytes(0xc8202f80c0, 0xc820302000, 0x2ff, 0x300, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/api/validation/schema.go:156 +0x8a1
k8s.io/kubernetes/pkg/kubectl/cmd/util.getSchemaAndValidate(0x13a03d0, 0xc8202660a0, 0xc820302000, 0x2ff, 0x300, 0xa08c30, 0x3, 0xc8203005e0, 0x2, 0xc8200f2520, ...)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/util/factory.go:357 +0x8a1
k8s.io/kubernetes/pkg/kubectl/cmd/util.(*clientSwaggerSchema).ValidateBytes(0xc8202569f0, 0xc820302000, 0x2ff, 0x300, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/util/factory.go:379 +0x803
k8s.io/kubernetes/pkg/kubectl/resource.ValidateSchema(0xc820302000, 0x2ff, 0x300, 0x13a0178, 0xc8202569f0, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:210 +0x1e4
k8s.io/kubernetes/pkg/kubectl/resource.(*StreamVisitor).Visit(0xc8202e2c00, 0xc8202f36a0, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:481 +0x2fc
k8s.io/kubernetes/pkg/kubectl/resource.(*FileVisitor).Visit(0xc8202f35a0, 0xc8202f36a0, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:441 +0x12d
k8s.io/kubernetes/pkg/kubectl/resource.EagerVisitorList.Visit(0xc8202e8e70, 0x1, 0x1, 0xc8202ea990, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:186 +0x12c
k8s.io/kubernetes/pkg/kubectl/resource.(*EagerVisitorList).Visit(0xc8202f35c0, 0xc8202ea990, 0x0, 0x0)
<autogenerated>:98 +0xb7
k8s.io/kubernetes/pkg/kubectl/resource.FlattenListVisitor.Visit(0x13a02b8, 0xc8202f35c0, 0xc8202ea930, 0xc8202e2c80, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:361 +0xaa
k8s.io/kubernetes/pkg/kubectl/resource.(*FlattenListVisitor).Visit(0xc8202f35e0, 0xc8202e2c80, 0x0, 0x0)
<autogenerated>:111 +0xb7
k8s.io/kubernetes/pkg/kubectl/resource.DecoratedVisitor.Visit(0x13a02e0, 0xc8202f35e0, 0xc8202f3620, 0x3, 0x4, 0xc8202f3660, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:276 +0xf0
k8s.io/kubernetes/pkg/kubectl/resource.(*DecoratedVisitor).Visit(0xc8202ea960, 0xc8202f3660, 0x0, 0x0)
<autogenerated>:127 +0xac
k8s.io/kubernetes/pkg/kubectl/resource.ContinueOnErrorVisitor.Visit(0x13a0308, 0xc8202ea960, 0xc8202e2c40, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:294 +0x12f
k8s.io/kubernetes/pkg/kubectl/resource.(*ContinueOnErrorVisitor).Visit(0xc8202e8e90, 0xc8202e2c40, 0x0, 0x0)
<autogenerated>:123 +0xae
k8s.io/kubernetes/pkg/kubectl/resource.(*Result).Visit(0xc8202f4230, 0xc8202e2c40, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/kubectl/resource/result.go:79 +0x6d
k8s.io/kubernetes/pkg/kubectl/cmd.RunCreate(0xc8201174a0, 0xc82000d180, 0x13643d0, 0xc820030010, 0xc8201d11c0, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/create.go:128 +0x547
k8s.io/kubernetes/pkg/kubectl/cmd.NewCmdCreate.func1(0xc82000d180, 0xc8201fed80, 0x0, 0x3)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/create.go:61 +0xf8
github.com/spf13/cobra.(*Command).execute(0xc82000d180, 0xc8201fecf0, 0x3, 0x3, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/Godeps/_workspace/src/github.com/spf13/cobra/command.go:499 +0x869
github.com/spf13/cobra.(*Command).Execute(0xc82000cc40, 0x0, 0x0)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/Godeps/_workspace/src/github.com/spf13/cobra/command.go:582 +0x46a
main.main()
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/_output/local/go/src/k8s.io/kubernetes/cmd/kubectl/kubectl.go:30 +0xf9
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/local/Cellar/go/1.5.3/libexec/src/runtime/asm_amd64.s:1721 +0x1
goroutine 5 [chan receive]:
github.com/golang/glog.(*loggingT).flushDaemon(0xedf360)
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/Godeps/_workspace/src/github.com/golang/glog/glog.go:879 +0x67
created by github.com/golang/glog.init.1
/private/tmp/kubernetes-cli20160129-22889-8puto1/kubernetes-1.1.7/Godeps/_workspace/src/github.com/golang/glog/glog.go:410 +0x297
goroutine 10 [syscall]:
os/signal.loop()
/usr/local/Cellar/go/1.5.3/libexec/src/os/signal/signal_unix.go:22 +0x18
created by os/signal.init.1
/usr/local/Cellar/go/1.5.3/libexec/src/os/signal/signal_unix.go:28 +0x37
goroutine 14 [IO wait]:
net.runtime_pollWait(0x136c228, 0x72, 0xc820012160)
/usr/local/Cellar/go/1.5.3/libexec/src/runtime/netpoll.go:157 +0x60
net.(*pollDesc).Wait(0xc82022ad10, 0x72, 0x0, 0x0)
/usr/local/Cellar/go/1.5.3/libexec/src/net/fd_poll_runtime.go:73 +0x3a
net.(*pollDesc).WaitRead(0xc82022ad10, 0x0, 0x0)
/usr/local/Cellar/go/1.5.3/libexec/src/net/fd_poll_runtime.go:78 +0x36
net.(*netFD).Read(0xc82022acb0, 0xc820236000, 0x1000, 0x1000, 0x0, 0x1360050, 0xc820012160)
/usr/local/Cellar/go/1.5.3/libexec/src/net/fd_unix.go:232 +0x23a
net.(*conn).Read(0xc8200303f8, 0xc820236000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.5.3/libexec/src/net/net.go:172 +0xe4
net/http.noteEOFReader.Read(0x136c2e8, 0xc8200303f8, 0xc8202007e8, 0xc820236000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.5.3/libexec/src/net/http/transport.go:1370 +0x67
net/http.(*noteEOFReader).Read(0xc820232a00, 0xc820236000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
<autogenerated>:126 +0xd0
bufio.(*Reader).fill(0xc820234240)
/usr/local/Cellar/go/1.5.3/libexec/src/bufio/bufio.go:97 +0x1e9
bufio.(*Reader).Peek(0xc820234240, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.5.3/libexec/src/bufio/bufio.go:132 +0xcc
net/http.(*persistConn).readLoop(0xc820200790)
/usr/local/Cellar/go/1.5.3/libexec/src/net/http/transport.go:876 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/Cellar/go/1.5.3/libexec/src/net/http/transport.go:685 +0xc78
goroutine 15 [select]:
net/http.(*persistConn).writeLoop(0xc820200790)
/usr/local/Cellar/go/1.5.3/libexec/src/net/http/transport.go:1009 +0x40c
created by net/http.(*Transport).dialConn
/usr/local/Cellar/go/1.5.3/libexec/src/net/http/transport.go:686 +0xc9d
</code></pre></div>
<p dir="auto">And this is test-rc.yaml file:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="apiVersion: v1
kind: ReplicationController
metadata:
name: kube-dns-v10
namespace: kube-system
labels:
k8s-app: kube-dns
version: v10
kubernetes.io/cluster-service: "true"
spec:
replicas: 1
selector:
k8s-app: kube-dns
version: v10
template:
metadata:
labels:
k8s-app: kube-dns
version: v10
kubernetes.io/cluster-service: "true"
spec:
containers:
- name: carbon-relay
image: banno/carbon-relay
resources:
limits:
cpu: 100m
memory: 50Mi
requests:
cpu: 100m
memory: 50Mi
env:
- name: DESTINATIONS
# Azure DNS
value: 192.168.81.25:17124
args:
-
volumes:
- name: etcd-storage
emptyDir: {}
- hostPath:
path: /etc/ssl/certs
name: ssl-certs-host
dnsPolicy: Default"><pre class="notranslate"><code class="notranslate">apiVersion: v1
kind: ReplicationController
metadata:
name: kube-dns-v10
namespace: kube-system
labels:
k8s-app: kube-dns
version: v10
kubernetes.io/cluster-service: "true"
spec:
replicas: 1
selector:
k8s-app: kube-dns
version: v10
template:
metadata:
labels:
k8s-app: kube-dns
version: v10
kubernetes.io/cluster-service: "true"
spec:
containers:
- name: carbon-relay
image: banno/carbon-relay
resources:
limits:
cpu: 100m
memory: 50Mi
requests:
cpu: 100m
memory: 50Mi
env:
- name: DESTINATIONS
# Azure DNS
value: 192.168.81.25:17124
args:
-
volumes:
- name: etcd-storage
emptyDir: {}
- hostPath:
path: /etc/ssl/certs
name: ssl-certs-host
dnsPolicy: Default
</code></pre></div>
<p dir="auto">I can see that the empty <code class="notranslate">args: -</code> may be causing this but I'm sure we can show a better error for this.</p>
| 1 |
<h3 dir="auto">Preflight Checklist</h3>
<p dir="auto">I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.<br>
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.<br>
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.</p>
<h3 dir="auto">Electron Version</h3>
<p dir="auto">11.3.0</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">Windows</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">Windows 7 SP1</p>
<h3 dir="auto">What arch are you using?</h3>
<p dir="auto">ia32</p>
<h3 dir="auto">Last Known Working Electron version</h3>
<p dir="auto">9.3.5</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">webview can be loaded successfully</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">random webview crashed in windows</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><em>No response</em></p>
<p dir="auto">This is the crash report<br>
<a href="https://github.com/electron/electron/files/6269372/report.zip">report.zip</a></p>
|
<h3 dir="auto">Preflight Checklist</h3>
<p dir="auto">I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.<br>
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.<br>
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.</p>
<h3 dir="auto">Electron Version</h3>
<p dir="auto">11.2.1,12.0.0</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">Windows</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">Windows 7</p>
<h3 dir="auto">What arch are you using?</h3>
<p dir="auto">ia32</p>
<h3 dir="auto">Last Known Working Electron version</h3>
<p dir="auto">don't know</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">run correctly</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">When open window. this bug appread frequently</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><em>No response</em></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Exception thrown during bootstrapping
Error installing extension 'extensions::SafeBuiltins'.
[15296:0329/160109.446:FATAL:v8_initializer.cc(96)]"><pre class="notranslate"><code class="notranslate">Exception thrown during bootstrapping
Error installing extension 'extensions::SafeBuiltins'.
[15296:0329/160109.446:FATAL:v8_initializer.cc(96)]
</code></pre></div>
| 1 |
<p dir="auto">Hello,</p>
<p dir="auto">Compiling tensorflow source on Skylake-X Intel i9 with "--config=opt" gives the following error in the snappy external module:</p>
<hr>
<blockquote>
<p dir="auto">ERROR: /home/armafire/.cache/bazel/<em>bazel_armafire/efbef35334c587b69e16a82829bb0e2d/external/snappy/BUILD:19:1: C++ compilation of rule '@snappy//:snappy' failed (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command<br>
(cd /home/armafire/.cache/bazel/<em>bazel_armafire/efbef35334c587b69e16a82829bb0e2d/execroot/org_tensorflow && <br>
exec env - <br>
CUDA_TOOLKIT_PATH=/usr/local/cuda <br>
CUDNN_INSTALL_PATH=/usr/local/cuda-8.0 <br>
GCC_HOST_COMPILER_PATH=/usr/bin/gcc <br>
PWD=/proc/self/cwd <br>
PYTHON_BIN_PATH=/usr/bin/python <br>
PYTHON_LIB_PATH=/usr/local/lib/python2.7/dist-packages <br>
TF_CUDA_CLANG=0 <br>
TF_CUDA_COMPUTE_CAPABILITIES=6.1 <br>
TF_CUDA_VERSION=8.0 <br>
TF_CUDNN_VERSION=6 <br>
TF_NEED_CUDA=1 <br>
TF_NEED_OPENCL=0 <br>
external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections '-march=native' '-std=c++11' '-march=native' -MD -MF bazel-out/local_linux-opt/bin/external/snappy/<em>objs/snappy/external/snappy/snappy.pic.d '-frandom-seed=bazel-out/local_linux-opt/bin/external/snappy/<em>objs/snappy/external/snappy/snappy.pic.o' -fPIC -iquote external/snappy -iquote bazel-out/local_linux-opt/genfiles/external/snappy -iquote external/bazel_tools -iquote bazel-out/local_linux-opt/genfiles/external/bazel_tools -isystem external/bazel_tools/tools/cpp/gcc3 -Wno-shift-negative-value -Wno-implicit-function-declaration -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE</em></em>="redacted"' '-D__TIMESTAMP</em></em>="redacted"' '-D__TIME__="redacted"' -fno-canonical-system-headers -c external/snappy/snappy.cc -o bazel-out/local_linux-opt/bin/external/snappy/<em>objs/snappy/external/snappy/snappy.pic.o)<br>
cc1plus: warning: command line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++<br>
external/snappy/snappy.cc: In member function 'void snappy::SnappySinkAllocator::Flush(size_t)':<br>
external/snappy/snappy.cc:1403:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br>
for (int i = 0; i < blocks</em>.size(); ++i) {<br>
~~^~~~~~~~~~~~~~~~<br>
In file included from external/snappy/snappy-internal.h:34:0,<br>
from external/snappy/snappy.cc:30:<br>
external/snappy/snappy.cc: In instantiation of 'bool snappy::SnappyScatteredWriter::AppendFromSelf(size_t, size_t) [with Allocator = snappy::SnappySinkAllocator; size_t = long unsigned int]':<br>
external/snappy/snappy.cc:715:13: required from 'void snappy::SnappyDecompressor::DecompressAllTags(Writer*) [with Writer = snappy::SnappyScatteredWritersnappy::SnappySinkAllocator]'<br>
external/snappy/snappy.cc:799:3: required from 'bool snappy::InternalUncompressAllTags(snappy::SnappyDecompressor*, Writer*, snappy::uint32) [with Writer = snappy::SnappyScatteredWritersnappy::SnappySinkAllocator; snappy::uint32 = unsigned int]'<br>
external/snappy/snappy.cc:1460:78: required from here<br>
external/snappy/snappy.cc:1316:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]<br>
if (PREDICT_TRUE(offset - 1u < op_ptr_ - op_base_ && op_end <= op_limit_)) {<br>
~~~~~~~~~~~~^~~~~~~~~~~~~<br>
external/snappy/snappy-stubs-internal.h:80:25: note: in definition of macro 'PREDICT_TRUE'<br>
#define PREDICT_TRUE(x) x<br>
^<br>
/tmp/ccxBWytY.s: Assembler messages:<br>
<strong><em>/tmp/ccxBWytY.s:389: Error: no such instruction: <code class="notranslate">kmovq %rdx,%k3' /tmp/ccxBWytY.s:391: Error: no such instruction: </code>kshiftrq $32,%k3,%k2'<br>
/tmp/ccxBWytY.s:394: Error: no such instruction: <code class="notranslate">kmovq %k2,%rdx' /tmp/ccxBWytY.s:600: Error: no such instruction: </code>kmovq %rsi,%k1'<br>
/tmp/ccxBWytY.s:602: Error: no such instruction: <code class="notranslate">kshiftrq $32,%k1,%k0' /tmp/ccxBWytY.s:605: Error: no such instruction: </code>kmovq %k0,%rsi'</em></strong><br>
Target //tensorflow/tools/pip_package:build_pip_package failed to build<br>
INFO: Elapsed time: 34.595s, Critical Path: 14.66s<br>
FAILED: Build did NOT complete successfully</p>
</blockquote>
<hr>
<p dir="auto">The command I use is:</p>
<p dir="auto">bazel build --config=opt -c opt //tensorflow/tools/pip_package:build_pip_package --verbose_failures -j 64</p>
<p dir="auto">If I change to --config=mkl, then it compiles fine. Therefore, it seems that the problem is "--march=native" (generated by "--config=opt"), which forces the snappy module to generate AVX512, however, the generated assembly is not correct for Skylake-X Intel i9 (which supports AVX512). I tried "--march=skylake-avx512" and all other AVX512 options like "-mavx512f" and similar, and all result in the same error.</p>
<p dir="auto">My goal is to compile tensorflow with Eigen AVX512. Any ideas how this can be done?</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 16.04</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: building from source</li>
<li><strong>TensorFlow version (use command below)</strong>: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/5ae244ed0b702e50fd6bb7bc73d45b9188c4239d/hovercard" href="https://github.com/tensorflow/tensorflow/commit/5ae244ed0b702e50fd6bb7bc73d45b9188c4239d"><tt>5ae244e</tt></a></li>
<li><strong>Bazel version (if compiling from source)</strong>: 0.4.5</li>
<li><strong>CUDA/cuDNN version</strong>: CUDA 8.0.61, cudnn 6.0.21 (tried also 5.1)</li>
<li><strong>GPU model and memory</strong>: 2x Tesla P100-PCIE-12GB</li>
<li><strong>Exact command to reproduce</strong>: building</li>
<li><strong>Additional information</strong>: Intel(R) Xeon(R) CPU E7-4860 v2 @ 2.60GHz, gcc version 5.4.1 20170519 (Ubuntu 5.4.1-11ubuntu2~16.04)</li>
</ul>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">On the regular rebuild of Tensorflow, the build crashes with bunch of <code class="notranslate">error: argument of type "const void *" is incompatible with parameter of type "const something *"</code></p>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">Crash log:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INFO: From Compiling tensorflow/core/kernels/scatter_functor_gpu.cu.cc:
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9218): error: argument of type "const void *" is incompatible with parameter of type "const float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9229): error: argument of type "const void *" is incompatible with parameter of type "const float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9242): error: argument of type "const void *" is incompatible with parameter of type "const double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9253): error: argument of type "const void *" is incompatible with parameter of type "const double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9266): error: argument of type "const void *" is incompatible with parameter of type "const float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9277): error: argument of type "const void *" is incompatible with parameter of type "const float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9290): error: argument of type "const void *" is incompatible with parameter of type "const double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9301): error: argument of type "const void *" is incompatible with parameter of type "const double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9314): error: argument of type "const void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9325): error: argument of type "const void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9338): error: argument of type "const void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9350): error: argument of type "const void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9363): error: argument of type "const void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9374): error: argument of type "const void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9387): error: argument of type "const void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9399): error: argument of type "const void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9408): error: argument of type "void *" is incompatible with parameter of type "float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9417): error: argument of type "void *" is incompatible with parameter of type "float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9426): error: argument of type "void *" is incompatible with parameter of type "double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9435): error: argument of type "void *" is incompatible with parameter of type "double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9443): error: argument of type "void *" is incompatible with parameter of type "float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9452): error: argument of type "void *" is incompatible with parameter of type "float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9461): error: argument of type "void *" is incompatible with parameter of type "double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9470): error: argument of type "void *" is incompatible with parameter of type "double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9479): error: argument of type "void *" is incompatible with parameter of type "int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9488): error: argument of type "void *" is incompatible with parameter of type "int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9497): error: argument of type "void *" is incompatible with parameter of type "long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9506): error: argument of type "void *" is incompatible with parameter of type "long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9515): error: argument of type "void *" is incompatible with parameter of type "int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9524): error: argument of type "void *" is incompatible with parameter of type "int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9533): error: argument of type "void *" is incompatible with parameter of type "long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9542): error: argument of type "void *" is incompatible with parameter of type "long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(54): error: argument of type "const void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(62): error: argument of type "const void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(70): error: argument of type "const void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(78): error: argument of type "const void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(86): error: argument of type "void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(95): error: argument of type "void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(104): error: argument of type "void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(112): error: argument of type "void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(120): error: argument of type "void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(129): error: argument of type "void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(138): error: argument of type "void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(146): error: argument of type "void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10223): error: argument of type "const void *" is incompatible with parameter of type "const float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10235): error: argument of type "const void *" is incompatible with parameter of type "const float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10247): error: argument of type "const void *" is incompatible with parameter of type "const double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10259): error: argument of type "const void *" is incompatible with parameter of type "const double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10271): error: argument of type "const void *" is incompatible with parameter of type "const float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10283): error: argument of type "const void *" is incompatible with parameter of type "const float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10295): error: argument of type "const void *" is incompatible with parameter of type "const double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10307): error: argument of type "const void *" is incompatible with parameter of type "const double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10319): error: argument of type "const void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10331): error: argument of type "const void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10343): error: argument of type "const void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10355): error: argument of type "const void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10367): error: argument of type "const void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10379): error: argument of type "const void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10391): error: argument of type "const void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10403): error: argument of type "const void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10413): error: argument of type "void *" is incompatible with parameter of type "float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10424): error: argument of type "void *" is incompatible with parameter of type "float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10433): error: argument of type "void *" is incompatible with parameter of type "float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10444): error: argument of type "void *" is incompatible with parameter of type "float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10453): error: argument of type "void *" is incompatible with parameter of type "double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10464): error: argument of type "void *" is incompatible with parameter of type "double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10473): error: argument of type "void *" is incompatible with parameter of type "double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10484): error: argument of type "void *" is incompatible with parameter of type "double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10493): error: argument of type "void *" is incompatible with parameter of type "float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10504): error: argument of type "void *" is incompatible with parameter of type "float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10513): error: argument of type "void *" is incompatible with parameter of type "float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10524): error: argument of type "void *" is incompatible with parameter of type "float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10533): error: argument of type "void *" is incompatible with parameter of type "double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10544): error: argument of type "void *" is incompatible with parameter of type "double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10553): error: argument of type "void *" is incompatible with parameter of type "double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10564): error: argument of type "void *" is incompatible with parameter of type "double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10573): error: argument of type "void *" is incompatible with parameter of type "int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10584): error: argument of type "void *" is incompatible with parameter of type "int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10593): error: argument of type "void *" is incompatible with parameter of type "int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10604): error: argument of type "void *" is incompatible with parameter of type "int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10613): error: argument of type "void *" is incompatible with parameter of type "long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10624): error: argument of type "void *" is incompatible with parameter of type "long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10633): error: argument of type "void *" is incompatible with parameter of type "long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10644): error: argument of type "void *" is incompatible with parameter of type "long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10653): error: argument of type "void *" is incompatible with parameter of type "int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10664): error: argument of type "void *" is incompatible with parameter of type "int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10673): error: argument of type "void *" is incompatible with parameter of type "int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10684): error: argument of type "void *" is incompatible with parameter of type "int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10693): error: argument of type "void *" is incompatible with parameter of type "long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10704): error: argument of type "void *" is incompatible with parameter of type "long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10713): error: argument of type "void *" is incompatible with parameter of type "long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10724): error: argument of type "void *" is incompatible with parameter of type "long long *"
92 errors detected in the compilation of "/tmp/tmpxft_00008f12_00000000-7_scatter_functor_gpu.cu.cpp1.ii".
ERROR: /scratch/chaimb/tensorflow/tensorflow/core/kernels/BUILD:1140:1: output 'tensorflow/core/kernels/_objs/scatter_functor_gpu/tensorflow/core/kernels/scatter_functor_gpu.cu.pic.o' was not created.
ERROR: /scratch/chaimb/tensorflow/tensorflow/core/kernels/BUILD:1140:1: not all outputs were created or valid.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 147.888s, Critical Path: 69.54s"><pre class="notranslate"><code class="notranslate">INFO: From Compiling tensorflow/core/kernels/scatter_functor_gpu.cu.cc:
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9218): error: argument of type "const void *" is incompatible with parameter of type "const float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9229): error: argument of type "const void *" is incompatible with parameter of type "const float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9242): error: argument of type "const void *" is incompatible with parameter of type "const double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9253): error: argument of type "const void *" is incompatible with parameter of type "const double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9266): error: argument of type "const void *" is incompatible with parameter of type "const float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9277): error: argument of type "const void *" is incompatible with parameter of type "const float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9290): error: argument of type "const void *" is incompatible with parameter of type "const double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9301): error: argument of type "const void *" is incompatible with parameter of type "const double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9314): error: argument of type "const void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9325): error: argument of type "const void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9338): error: argument of type "const void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9350): error: argument of type "const void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9363): error: argument of type "const void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9374): error: argument of type "const void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9387): error: argument of type "const void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9399): error: argument of type "const void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9408): error: argument of type "void *" is incompatible with parameter of type "float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9417): error: argument of type "void *" is incompatible with parameter of type "float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9426): error: argument of type "void *" is incompatible with parameter of type "double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9435): error: argument of type "void *" is incompatible with parameter of type "double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9443): error: argument of type "void *" is incompatible with parameter of type "float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9452): error: argument of type "void *" is incompatible with parameter of type "float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9461): error: argument of type "void *" is incompatible with parameter of type "double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9470): error: argument of type "void *" is incompatible with parameter of type "double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9479): error: argument of type "void *" is incompatible with parameter of type "int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9488): error: argument of type "void *" is incompatible with parameter of type "int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9497): error: argument of type "void *" is incompatible with parameter of type "long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9506): error: argument of type "void *" is incompatible with parameter of type "long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9515): error: argument of type "void *" is incompatible with parameter of type "int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9524): error: argument of type "void *" is incompatible with parameter of type "int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9533): error: argument of type "void *" is incompatible with parameter of type "long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9542): error: argument of type "void *" is incompatible with parameter of type "long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(54): error: argument of type "const void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(62): error: argument of type "const void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(70): error: argument of type "const void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(78): error: argument of type "const void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(86): error: argument of type "void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(95): error: argument of type "void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(104): error: argument of type "void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(112): error: argument of type "void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(120): error: argument of type "void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(129): error: argument of type "void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(138): error: argument of type "void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(146): error: argument of type "void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10223): error: argument of type "const void *" is incompatible with parameter of type "const float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10235): error: argument of type "const void *" is incompatible with parameter of type "const float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10247): error: argument of type "const void *" is incompatible with parameter of type "const double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10259): error: argument of type "const void *" is incompatible with parameter of type "const double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10271): error: argument of type "const void *" is incompatible with parameter of type "const float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10283): error: argument of type "const void *" is incompatible with parameter of type "const float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10295): error: argument of type "const void *" is incompatible with parameter of type "const double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10307): error: argument of type "const void *" is incompatible with parameter of type "const double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10319): error: argument of type "const void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10331): error: argument of type "const void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10343): error: argument of type "const void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10355): error: argument of type "const void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10367): error: argument of type "const void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10379): error: argument of type "const void *" is incompatible with parameter of type "const int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10391): error: argument of type "const void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10403): error: argument of type "const void *" is incompatible with parameter of type "const long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10413): error: argument of type "void *" is incompatible with parameter of type "float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10424): error: argument of type "void *" is incompatible with parameter of type "float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10433): error: argument of type "void *" is incompatible with parameter of type "float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10444): error: argument of type "void *" is incompatible with parameter of type "float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10453): error: argument of type "void *" is incompatible with parameter of type "double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10464): error: argument of type "void *" is incompatible with parameter of type "double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10473): error: argument of type "void *" is incompatible with parameter of type "double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10484): error: argument of type "void *" is incompatible with parameter of type "double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10493): error: argument of type "void *" is incompatible with parameter of type "float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10504): error: argument of type "void *" is incompatible with parameter of type "float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10513): error: argument of type "void *" is incompatible with parameter of type "float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10524): error: argument of type "void *" is incompatible with parameter of type "float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10533): error: argument of type "void *" is incompatible with parameter of type "double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10544): error: argument of type "void *" is incompatible with parameter of type "double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10553): error: argument of type "void *" is incompatible with parameter of type "double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10564): error: argument of type "void *" is incompatible with parameter of type "double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10573): error: argument of type "void *" is incompatible with parameter of type "int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10584): error: argument of type "void *" is incompatible with parameter of type "int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10593): error: argument of type "void *" is incompatible with parameter of type "int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10604): error: argument of type "void *" is incompatible with parameter of type "int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10613): error: argument of type "void *" is incompatible with parameter of type "long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10624): error: argument of type "void *" is incompatible with parameter of type "long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10633): error: argument of type "void *" is incompatible with parameter of type "long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10644): error: argument of type "void *" is incompatible with parameter of type "long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10653): error: argument of type "void *" is incompatible with parameter of type "int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10664): error: argument of type "void *" is incompatible with parameter of type "int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10673): error: argument of type "void *" is incompatible with parameter of type "int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10684): error: argument of type "void *" is incompatible with parameter of type "int *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10693): error: argument of type "void *" is incompatible with parameter of type "long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10704): error: argument of type "void *" is incompatible with parameter of type "long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10713): error: argument of type "void *" is incompatible with parameter of type "long long *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10724): error: argument of type "void *" is incompatible with parameter of type "long long *"
92 errors detected in the compilation of "/tmp/tmpxft_00008f12_00000000-7_scatter_functor_gpu.cu.cpp1.ii".
ERROR: /scratch/chaimb/tensorflow/tensorflow/core/kernels/BUILD:1140:1: output 'tensorflow/core/kernels/_objs/scatter_functor_gpu/tensorflow/core/kernels/scatter_functor_gpu.cu.pic.o' was not created.
ERROR: /scratch/chaimb/tensorflow/tensorflow/core/kernels/BUILD:1140:1: not all outputs were created or valid.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 147.888s, Critical Path: 69.54s
</code></pre></div>
<p dir="auto">I've tried disabling most of the options (MKL, architecture optimizations, computability) but the crash happens even with full-default (except CUDA and XLA) configuration.</p>
| 1 |
<p dir="auto">If using <code class="notranslate">trackBy</code>/<code class="notranslate">ngForTrackBy</code> to track the addition/removal of an element to the array being iterated in <code class="notranslate">ngFor</code>, it appears the elements are actually redrawn rather than re-ordered. I'm using 2.0.0-beta.14.</p>
<p dir="auto">Issue can be seen here using the network/Docs tab in chrome console: <a href="http://plnkr.co/edit/qZf6yv?p=preview" rel="nofollow">http://plnkr.co/edit/qZf6yv?p=preview</a></p>
<p dir="auto">Open the Network tab and then remove one of the Heroes near the top of the list. Every hero item below that one will be redrawn, as seen by the iframe being reloaded. This behavior can be repoduced without an iframe present, but this makes it easier to see the behavior.</p>
<p dir="auto">It's possible that I misunderstood the functionality of <code class="notranslate">trackBy</code>, but it was my understanding that it would leave elements in place if they retained the same reference property from the custom track-by function.</p>
<p dir="auto"><strong>EDIT</strong>: I previously thought that the iframes were triggered by a reflow and this somehow caused their content to refresh, but that's apparently not always the case. <a href="https://plnkr.co/edit/RTEHgQ?p=preview" rel="nofollow">This plunker</a> recreates the functionality of adding a node with an iframe child, but the other iframes don't reload their content. It appears that ngTrackBy may not fully be working in 2.0.0-beta.14.</p>
|
<p dir="auto">Type: bug (or possibly non-optimal behavior)<br>
Plunkr: <a href="http://plnkr.co/edit/WHJs6F4lfkDZNyrQHYbQ?p=preview" rel="nofollow">http://plnkr.co/edit/WHJs6F4lfkDZNyrQHYbQ?p=preview</a><br>
Version (UPDATED): Angular 2 beta 11</p>
<p dir="auto">The current combined behavior for <code class="notranslate">DefaultIterableDiffer</code>/<code class="notranslate">ngFor</code> currently exposes this bad behavior:</p>
<ol dir="auto">
<li>remove the head item in an array</li>
<li>On check, the <code class="notranslate">DefaultIterableDiffer</code> will now produce a "removed" record for the first item and "moved" records for the rest</li>
<li>This leads <code class="notranslate">ngFor</code> to remove all items, and then add back the non-removed items, thereby leading to a lot of unnecessary DOM removals and adds, losing DOM state (such as focused elements/selection etc.) ( see <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/f9fb72fb0e9bcbda7aeebbf8321ce5d70d78ecee/modules/angular2/src/common/directives/ng_for.ts#L106">angular/modules/angular2/src/common/directives/ng_for.ts</a>
</p>
<p class="mb-0 color-fg-muted">
Line 106
in
<a data-pjax="true" class="commit-tease-sha" href="/angular/angular/commit/f9fb72fb0e9bcbda7aeebbf8321ce5d70d78ecee">f9fb72f</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="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-s1">changes</span><span class="pl-kos">.</span><span class="pl-en">forEachMovedItem</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">movedRecord</span>: <span class="pl-smi">CollectionChangeRecord</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> </td>
</tr>
</tbody></table>
</div>
</div>
)</li>
</ol>
<p dir="auto">On a related note, the current diff structure doesn't impose any necessary order between removals, moves, and adds (each having an independent forEach method). (There's just a todo by rado on improving this.) Which means that it's unclear (aside from any documentation notes) in which order they should be applied for indices to be valid. To me it seems much more logical that the <code class="notranslate">DefaultIterableDiffer</code> deduces an <strong>array</strong> of operations to perform on the previous data structure to reach the current state. If you accept that notion, the moves are extraneous and can be removed. Which is something I'd like to propose. Thus, a head removal would just translate to something like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[{type: 'removed', item: 'A', previousIndex=0, ... }]"><pre class="notranslate"><code class="notranslate">[{type: 'removed', item: 'A', previousIndex=0, ... }]
</code></pre></div>
<p dir="auto">...rather than (the currently implicit through different forEachXXX)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
removed: [{type: 'removed', item: 'A', previousIndex=0, ... }],
moved: [
{type: 'moved', item: 'B', previousIndex=1, currentIndex=0, ... },
{type: 'moved', item: 'C', previousIndex=2, currentIndex=1, ... },
]
}"><pre class="notranslate"><code class="notranslate">{
removed: [{type: 'removed', item: 'A', previousIndex=0, ... }],
moved: [
{type: 'moved', item: 'B', previousIndex=1, currentIndex=0, ... },
{type: 'moved', item: 'C', previousIndex=2, currentIndex=1, ... },
]
}
</code></pre></div>
| 1 |
<p dir="auto">I have a few files for making HTTP requests. I want to extend those to allow easier access to our API. Here is some sample code:</p>
<p dir="auto">http.ts</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export type HTTPParameters = { [key: string]: string };
export type HTTPHeaders = { [key: string]: string };
export enum HTTPMethod { Get, Head, Post, Put, ... };"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">type</span> <span class="pl-smi">HTTPParameters</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">key</span>: <span class="pl-smi">string</span><span class="pl-kos">]</span>: <span class="pl-smi">string</span> <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">type</span> <span class="pl-smi">HTTPHeaders</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">key</span>: <span class="pl-smi">string</span><span class="pl-kos">]</span>: <span class="pl-smi">string</span> <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">enum</span> <span class="pl-smi">HTTPMethod</span> <span class="pl-kos">{</span> <span class="pl-c1">Get</span><span class="pl-kos">,</span> <span class="pl-c1">Head</span><span class="pl-kos">,</span> <span class="pl-c1">Post</span><span class="pl-kos">,</span> <span class="pl-c1">Put</span><span class="pl-kos">,</span> ... <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">api.ts (->Arrows<- point out where the errors are.)</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { HTTPParameters, HTTPHeaders, HTTPMethod } from './http.ts';
export type ApiParameters = HTTPParameters;
export type ApiHeaders = HTTPHeaders;
/* Try one */
export type ApiMethod = HTTPMethod;
export class Foo {
constructor(public method: ApiRequestMethod = ->ApiRequestMethod<-.Get) {}
// Cannot find name 'ApiRequestMethod'
}
/* Try two */
export var ApiMethod = HTTPMethod;
export class Foo {
constructor(public method: ->ApiRequestMethod<- = ApiRequestMethod.Get) {}
// Cannot find name 'ApiRequestMethod'
}
/* Try three */
export enum ApiRequestMethod ->=<- HTTPRequestMethod;
// Expected '{'
/* Try four */
export enum ApiRequestMethod ->HTTPRequestMethod<-;
// Expected '{'"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">HTTPParameters</span><span class="pl-kos">,</span> <span class="pl-smi">HTTPHeaders</span><span class="pl-kos">,</span> <span class="pl-smi">HTTPMethod</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./http.ts'</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">type</span> <span class="pl-smi">ApiParameters</span> <span class="pl-c1">=</span> <span class="pl-smi">HTTPParameters</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">type</span> <span class="pl-smi">ApiHeaders</span> <span class="pl-c1">=</span> <span class="pl-smi">HTTPHeaders</span><span class="pl-kos">;</span>
<span class="pl-c">/* Try one */</span>
<span class="pl-k">export</span> <span class="pl-k">type</span> <span class="pl-smi">ApiMethod</span> <span class="pl-c1">=</span> <span class="pl-smi">HTTPMethod</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-k">public</span> <span class="pl-s1">method</span>: <span class="pl-smi">ApiRequestMethod</span> <span class="pl-c1">=</span> <span class="pl-c1">-</span><span class="pl-c1">></span><span class="pl-smi">ApiRequestMethod</span><span class="pl-c1"><</span><span class="pl-c1">-</span><span class="pl-kos">.</span><span class="pl-smi">Get</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-c">// Cannot find name 'ApiRequestMethod'</span>
<span class="pl-kos">}</span>
<span class="pl-c">/* Try two */</span>
<span class="pl-k">export</span> <span class="pl-k">var</span> <span class="pl-smi">ApiMethod</span> <span class="pl-c1">=</span> <span class="pl-smi">HTTPMethod</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-k">public</span> <span class="pl-s1">method</span>: <span class="pl-c1">-</span><span class="pl-c1">></span><span class="pl-smi">ApiRequestMethod</span><span class="pl-c1"><</span><span class="pl-c1">-</span> <span class="pl-c1">=</span> <span class="pl-smi">ApiRequestMethod</span><span class="pl-kos">.</span><span class="pl-c1">Get</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-c">// Cannot find name 'ApiRequestMethod'</span>
<span class="pl-kos">}</span>
<span class="pl-c">/* Try three */</span>
<span class="pl-s1">export</span> <span class="pl-k">enum</span> <span class="pl-smi">ApiRequestMethod</span> <span class="pl-c1">-</span><span class="pl-c1">>=</span><span class="pl-c1"><</span><span class="pl-c1">-</span> <span class="pl-smi">HTTPRequestMethod</span><span class="pl-kos">;</span>
<span class="pl-c">// Expected '{'</span>
<span class="pl-c">/* Try four */</span>
<span class="pl-s1">export</span> <span class="pl-k">enum</span> <span class="pl-smi">ApiRequestMethod</span> <span class="pl-c1">-</span><span class="pl-c1">></span><span class="pl-smi">HTTPRequestMethod</span><span class="pl-c1"><</span><span class="pl-c1">-</span><span class="pl-s1"></span><span class="pl-kos">;</span>
<span class="pl-c">// Expected '{'</span></pre></div>
<p dir="auto">The actual working solution looks like this:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { SomeEnum as MyEnum } from './http.ts';
export { MyEnum };
export class Foo {
constructor(public method: MyEnum = MyEnum.Get) {}
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">SomeEnum</span> <span class="pl-k">as</span> <span class="pl-smi">MyEnum</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./http.ts'</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-smi">MyEnum</span> <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-k">public</span> <span class="pl-s1">method</span>: <span class="pl-smi">MyEnum</span> <span class="pl-c1">=</span> <span class="pl-smi">MyEnum</span><span class="pl-kos">.</span><span class="pl-c1">Get</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">I might be missing something here, but if this is really the only solution, then it's pretty ugly and it would be nice to have something better.</p>
|
<p dir="auto">It seems to me, it's very inconvenient, that import declaration can't have none qualified symbol as target. By the reason I have to use next way to do this:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class S {}
export type SS = S;
export var SS = S;"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">S</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-k">export</span> <span class="pl-k">type</span> <span class="pl-smi">SS</span> <span class="pl-c1">=</span> <span class="pl-smi">S</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">var</span> <span class="pl-smi">SS</span> <span class="pl-c1">=</span> <span class="pl-smi">S</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Maybe, removing the qualified name restriction will be more convenient than combination of type alias and var alias.</p>
| 1 |
<p dir="auto">In Julia master (but not in Julia 0.6) this apparently harmless function:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="using StaticArrays
const v1 = SVector(1)
const v2 = SVector(2)
const v3 = SVector(3)
const v4 = SVector(4)
function foo()
a, b, c, d = 1:4
arg = @. v1 * a + v2 * b + v3 * c + v4 * d
end"><pre class="notranslate"><span class="pl-k">using</span> StaticArrays
<span class="pl-k">const</span> v1 <span class="pl-k">=</span> <span class="pl-c1">SVector</span>(<span class="pl-c1">1</span>)
<span class="pl-k">const</span> v2 <span class="pl-k">=</span> <span class="pl-c1">SVector</span>(<span class="pl-c1">2</span>)
<span class="pl-k">const</span> v3 <span class="pl-k">=</span> <span class="pl-c1">SVector</span>(<span class="pl-c1">3</span>)
<span class="pl-k">const</span> v4 <span class="pl-k">=</span> <span class="pl-c1">SVector</span>(<span class="pl-c1">4</span>)
<span class="pl-k">function</span> <span class="pl-en">foo</span>()
a, b, c, d <span class="pl-k">=</span> <span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">4</span>
arg <span class="pl-k">=</span> <span class="pl-c1">@.</span> v1 <span class="pl-k">*</span> a <span class="pl-k">+</span> v2 <span class="pl-k">*</span> b <span class="pl-k">+</span> v3 <span class="pl-k">*</span> c <span class="pl-k">+</span> v4 <span class="pl-k">*</span> d
<span class="pl-k">end</span></pre></div>
<p dir="auto">is type-unstable:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> @code_warntype foo()
Variables:
#1::getfield(Main, Symbol("##1#2"))
a::Int64
b::Int64
c::Int64
d::Int64
#temp#@_7::Int64
arg<optimized out>
#temp#@_9::Tuple{Int64,Int64}
#temp#@_10::Tuple{Int64,Int64}
#temp#@_11::Tuple{Int64,Int64}
#temp#@_12::Tuple{Int64,Int64}
Body:
begin
SSAValue(0) = $(Expr(:new, UnitRange{Int64}, 1, :((Base.select_value)((Base.sle_int)(1, 4)::Bool, 4, (Base.sub_int)(1, 1)::Int64)::Int64)))
#temp#@_7::Int64 = (Core.getfield)(SSAValue(0), :start)::Int64
# meta: location tuple.jl indexed_next 60
unless (#temp#@_7::Int64 === (Base.add_int)((Core.getfield)(SSAValue(0), :stop)::Int64, 1)::Int64)::Bool goto 7
#temp#@_9::Tuple{Int64,Int64} = (Base.throw)($(Expr(:invoke, MethodInstance for BoundsError(::Any, ::Int64), :(Base.BoundsError), SSAValue(0), 1))::BoundsError)::Union{}
goto 9
7:
#temp#@_9::Tuple{Int64,Int64} = (Core.tuple)(#temp#@_7::Int64, (Base.add_int)(#temp#@_7::Int64, 1)::Int64)::Tuple{Int64,Int64}
9:
# meta: pop location
SSAValue(1) = #temp#@_9::Tuple{Int64,Int64}
a::Int64 = (Core.getfield)(SSAValue(1), 1)::Int64
#temp#@_7::Int64 = (Core.getfield)(SSAValue(1), 2)::Int64
# meta: location tuple.jl indexed_next 60
unless (#temp#@_7::Int64 === (Base.add_int)((Core.getfield)(SSAValue(0), :stop)::Int64, 1)::Int64)::Bool goto 18
#temp#@_10::Tuple{Int64,Int64} = (Base.throw)($(Expr(:invoke, MethodInstance for BoundsError(::Any, ::Int64), :(Base.BoundsError), SSAValue(0), 2))::BoundsError)::Union{}
goto 20
18:
#temp#@_10::Tuple{Int64,Int64} = (Core.tuple)(#temp#@_7::Int64, (Base.add_int)(#temp#@_7::Int64, 1)::Int64)::Tuple{Int64,Int64}
20:
# meta: pop location
SSAValue(2) = #temp#@_10::Tuple{Int64,Int64}
b::Int64 = (Core.getfield)(SSAValue(2), 1)::Int64
#temp#@_7::Int64 = (Core.getfield)(SSAValue(2), 2)::Int64
# meta: location tuple.jl indexed_next 60
unless (#temp#@_7::Int64 === (Base.add_int)((Core.getfield)(SSAValue(0), :stop)::Int64, 1)::Int64)::Bool goto 29
#temp#@_11::Tuple{Int64,Int64} = (Base.throw)($(Expr(:invoke, MethodInstance for BoundsError(::Any, ::Int64), :(Base.BoundsError), SSAValue(0), 3))::BoundsError)::Union{}
goto 31
29:
#temp#@_11::Tuple{Int64,Int64} = (Core.tuple)(#temp#@_7::Int64, (Base.add_int)(#temp#@_7::Int64, 1)::Int64)::Tuple{Int64,Int64}
31:
# meta: pop location
SSAValue(3) = #temp#@_11::Tuple{Int64,Int64}
c::Int64 = (Core.getfield)(SSAValue(3), 1)::Int64
#temp#@_7::Int64 = (Core.getfield)(SSAValue(3), 2)::Int64
# meta: location tuple.jl indexed_next 60
unless (#temp#@_7::Int64 === (Base.add_int)((Core.getfield)(SSAValue(0), :stop)::Int64, 1)::Int64)::Bool goto 40
#temp#@_12::Tuple{Int64,Int64} = (Base.throw)($(Expr(:invoke, MethodInstance for BoundsError(::Any, ::Int64), :(Base.BoundsError), SSAValue(0), 4))::BoundsError)::Union{}
goto 42
40:
#temp#@_12::Tuple{Int64,Int64} = (Core.tuple)(#temp#@_7::Int64, (Base.add_int)(#temp#@_7::Int64, 1)::Int64)::Tuple{Int64,Int64}
42:
# meta: pop location
SSAValue(4) = #temp#@_12::Tuple{Int64,Int64}
d::Int64 = (Core.getfield)(SSAValue(4), 1)::Int64
#temp#@_7::Int64 = (Core.getfield)(SSAValue(4), 2)::Int64
#= line 11 =#
#1::getfield(Main, Symbol("##1#2")) = $(Expr(:new, :(Main.##1#2)))
# meta: location broadcast.jl broadcast 434
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl broadcast_c 33
SSAValue(10) = (Core._apply)(Core.tuple, (Size(1,),), $(Expr(:invoke, MethodInstance for broadcast_sizes(::Int64, ::SVector{1,Int64}, ::Vararg{Any,N} where N), :(StaticArrays.broadcast_sizes), :(a), :(Main.v2), :(b), :(Main.v3), :(c), :(Main.v4), :(d)))::Tuple{StaticArrays.Size{()},StaticArrays.Size{(1,)},Vararg{Any,N} where N})::Tuple{StaticArrays.Size{(1,)},StaticArrays.Size{()},StaticArrays.Size{(1,)},Vararg{Any,N} where N}
# meta: pop locations (2)
SSAValue(9) = (StaticArrays._broadcast)(#1::getfield(Main, Symbol("##1#2")), SSAValue(10), Main.v1, a::Int64, Main.v2, b::Int64, Main.v3, c::Int64, Main.v4, d::Int64)::Any
return SSAValue(9)
end::Any"><pre class="notranslate">julia<span class="pl-k">></span> <span class="pl-c1">@code_warntype</span> <span class="pl-c1">foo</span>()
Variables<span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span>1::getfield(Main, Symbol("##1#2"))</span>
a<span class="pl-k">::</span><span class="pl-c1">Int64</span>
b<span class="pl-k">::</span><span class="pl-c1">Int64</span>
c<span class="pl-k">::</span><span class="pl-c1">Int64</span>
d<span class="pl-k">::</span><span class="pl-c1">Int64</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_7::Int64</span>
arg<span class="pl-k"><</span>optimized out<span class="pl-k">></span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_9::Tuple{Int64,Int64}</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_10::Tuple{Int64,Int64}</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_11::Tuple{Int64,Int64}</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_12::Tuple{Int64,Int64}</span>
Body<span class="pl-k">:</span>
<span class="pl-k">begin</span>
<span class="pl-en">SSAValue</span>(<span class="pl-c1">0</span>) <span class="pl-k">=</span> <span class="pl-k">$</span>(<span class="pl-c1">Expr</span>(<span class="pl-c1">:new</span>, UnitRange{Int64}, <span class="pl-c1">1</span>, :((Base<span class="pl-k">.</span>select_value)((Base<span class="pl-k">.</span>sle_int)(<span class="pl-c1">1</span>, <span class="pl-c1">4</span>)<span class="pl-k">::</span><span class="pl-c1">Bool</span>, <span class="pl-c1">4</span>, (Base<span class="pl-k">.</span>sub_int)(<span class="pl-c1">1</span>, <span class="pl-c1">1</span>)<span class="pl-k">::</span><span class="pl-c1">Int64</span>)<span class="pl-k">::</span><span class="pl-c1">Int64</span>)))
<span class="pl-c"><span class="pl-c">#</span>temp#@_7::Int64 = (Core.getfield)(SSAValue(0), :start)::Int64</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location tuple.jl indexed_next 60</span>
unless (<span class="pl-c"><span class="pl-c">#</span>temp#@_7::Int64 === (Base.add_int)((Core.getfield)(SSAValue(0), :stop)::Int64, 1)::Int64)::Bool goto 7</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_9::Tuple{Int64,Int64} = (Base.throw)($(Expr(:invoke, MethodInstance for BoundsError(::Any, ::Int64), :(Base.BoundsError), SSAValue(0), 1))::BoundsError)::Union{}</span>
goto <span class="pl-c1">9</span>
<span class="pl-c1">7</span><span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_9::Tuple{Int64,Int64} = (Core.tuple)(#temp#@_7::Int64, (Base.add_int)(#temp#@_7::Int64, 1)::Int64)::Tuple{Int64,Int64}</span>
<span class="pl-c1">9</span><span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span> meta: pop location</span>
<span class="pl-en">SSAValue</span>(<span class="pl-c1">1</span>) <span class="pl-k">=</span> <span class="pl-c"><span class="pl-c">#</span>temp#@_9::Tuple{Int64,Int64}</span>
a<span class="pl-k">::</span><span class="pl-c1">Int64</span> <span class="pl-k">=</span> (Core<span class="pl-k">.</span>getfield)(<span class="pl-c1">SSAValue</span>(<span class="pl-c1">1</span>), <span class="pl-c1">1</span>)<span class="pl-k">::</span><span class="pl-c1">Int64</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_7::Int64 = (Core.getfield)(SSAValue(1), 2)::Int64</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location tuple.jl indexed_next 60</span>
unless (<span class="pl-c"><span class="pl-c">#</span>temp#@_7::Int64 === (Base.add_int)((Core.getfield)(SSAValue(0), :stop)::Int64, 1)::Int64)::Bool goto 18</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_10::Tuple{Int64,Int64} = (Base.throw)($(Expr(:invoke, MethodInstance for BoundsError(::Any, ::Int64), :(Base.BoundsError), SSAValue(0), 2))::BoundsError)::Union{}</span>
goto <span class="pl-c1">20</span>
<span class="pl-c1">18</span><span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_10::Tuple{Int64,Int64} = (Core.tuple)(#temp#@_7::Int64, (Base.add_int)(#temp#@_7::Int64, 1)::Int64)::Tuple{Int64,Int64}</span>
<span class="pl-c1">20</span><span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span> meta: pop location</span>
<span class="pl-en">SSAValue</span>(<span class="pl-c1">2</span>) <span class="pl-k">=</span> <span class="pl-c"><span class="pl-c">#</span>temp#@_10::Tuple{Int64,Int64}</span>
b<span class="pl-k">::</span><span class="pl-c1">Int64</span> <span class="pl-k">=</span> (Core<span class="pl-k">.</span>getfield)(<span class="pl-c1">SSAValue</span>(<span class="pl-c1">2</span>), <span class="pl-c1">1</span>)<span class="pl-k">::</span><span class="pl-c1">Int64</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_7::Int64 = (Core.getfield)(SSAValue(2), 2)::Int64</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location tuple.jl indexed_next 60</span>
unless (<span class="pl-c"><span class="pl-c">#</span>temp#@_7::Int64 === (Base.add_int)((Core.getfield)(SSAValue(0), :stop)::Int64, 1)::Int64)::Bool goto 29</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_11::Tuple{Int64,Int64} = (Base.throw)($(Expr(:invoke, MethodInstance for BoundsError(::Any, ::Int64), :(Base.BoundsError), SSAValue(0), 3))::BoundsError)::Union{}</span>
goto <span class="pl-c1">31</span>
<span class="pl-c1">29</span><span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_11::Tuple{Int64,Int64} = (Core.tuple)(#temp#@_7::Int64, (Base.add_int)(#temp#@_7::Int64, 1)::Int64)::Tuple{Int64,Int64}</span>
<span class="pl-c1">31</span><span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span> meta: pop location</span>
<span class="pl-en">SSAValue</span>(<span class="pl-c1">3</span>) <span class="pl-k">=</span> <span class="pl-c"><span class="pl-c">#</span>temp#@_11::Tuple{Int64,Int64}</span>
c<span class="pl-k">::</span><span class="pl-c1">Int64</span> <span class="pl-k">=</span> (Core<span class="pl-k">.</span>getfield)(<span class="pl-c1">SSAValue</span>(<span class="pl-c1">3</span>), <span class="pl-c1">1</span>)<span class="pl-k">::</span><span class="pl-c1">Int64</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_7::Int64 = (Core.getfield)(SSAValue(3), 2)::Int64</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location tuple.jl indexed_next 60</span>
unless (<span class="pl-c"><span class="pl-c">#</span>temp#@_7::Int64 === (Base.add_int)((Core.getfield)(SSAValue(0), :stop)::Int64, 1)::Int64)::Bool goto 40</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_12::Tuple{Int64,Int64} = (Base.throw)($(Expr(:invoke, MethodInstance for BoundsError(::Any, ::Int64), :(Base.BoundsError), SSAValue(0), 4))::BoundsError)::Union{}</span>
goto <span class="pl-c1">42</span>
<span class="pl-c1">40</span><span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_12::Tuple{Int64,Int64} = (Core.tuple)(#temp#@_7::Int64, (Base.add_int)(#temp#@_7::Int64, 1)::Int64)::Tuple{Int64,Int64}</span>
<span class="pl-c1">42</span><span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span> meta: pop location</span>
<span class="pl-en">SSAValue</span>(<span class="pl-c1">4</span>) <span class="pl-k">=</span> <span class="pl-c"><span class="pl-c">#</span>temp#@_12::Tuple{Int64,Int64}</span>
d<span class="pl-k">::</span><span class="pl-c1">Int64</span> <span class="pl-k">=</span> (Core<span class="pl-k">.</span>getfield)(<span class="pl-c1">SSAValue</span>(<span class="pl-c1">4</span>), <span class="pl-c1">1</span>)<span class="pl-k">::</span><span class="pl-c1">Int64</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_7::Int64 = (Core.getfield)(SSAValue(4), 2)::Int64</span>
<span class="pl-c"><span class="pl-c">#=</span> line 11 <span class="pl-c">=#</span></span>
<span class="pl-c"><span class="pl-c">#</span>1::getfield(Main, Symbol("##1#2")) = $(Expr(:new, :(Main.##1#2)))</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location broadcast.jl broadcast 434</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl broadcast_c 33</span>
<span class="pl-en">SSAValue</span>(<span class="pl-c1">10</span>) <span class="pl-k">=</span> (Core<span class="pl-k">.</span>_apply)(Core<span class="pl-k">.</span>tuple, (<span class="pl-c1">Size</span>(<span class="pl-c1">1</span>,),), <span class="pl-k">$</span>(<span class="pl-c1">Expr</span>(<span class="pl-c1">:invoke</span>, MethodInstance <span class="pl-k">for</span> <span class="pl-c1">broadcast_sizes</span>(<span class="pl-k">::</span><span class="pl-c1">Int64</span>, <span class="pl-k">::</span><span class="pl-c1">SVector{1,Int64}</span>, <span class="pl-k">::</span><span class="pl-c1">Vararg{Any,N}</span> <span class="pl-k">where</span> N), :(StaticArrays<span class="pl-k">.</span>broadcast_sizes), :(a), :(Main<span class="pl-k">.</span>v2), :(b), :(Main<span class="pl-k">.</span>v3), :(c), :(Main<span class="pl-k">.</span>v4), :(d)))<span class="pl-k">::</span><span class="pl-c1">Tuple{StaticArrays.Size{()},StaticArrays.Size{(1,)},Vararg{Any,N} where N}</span>)<span class="pl-k">::</span><span class="pl-c1">Tuple{StaticArrays.Size{(1,)},StaticArrays.Size{()},StaticArrays.Size{(1,)},Vararg{Any,N} where N}</span>
<span class="pl-c"><span class="pl-c">#</span> meta: pop locations (2)</span>
<span class="pl-en">SSAValue</span>(<span class="pl-c1">9</span>) <span class="pl-k">=</span> (StaticArrays<span class="pl-k">.</span>_broadcast)(<span class="pl-c"><span class="pl-c">#</span>1::getfield(Main, Symbol("##1#2")), SSAValue(10), Main.v1, a::Int64, Main.v2, b::Int64, Main.v3, c::Int64, Main.v4, d::Int64)::Any</span>
<span class="pl-k">return</span> <span class="pl-c1">SSAValue</span>(<span class="pl-c1">9</span>)
<span class="pl-k">end</span><span class="pl-k">::</span><span class="pl-c1">Any</span></pre></div>
<p dir="auto">It is instead stable if broadcast is not used (remove the <code class="notranslate">@.</code>):</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> function foo()
a, b, c, d = 1:4
arg = v1 * a + v2 * b + v3 * c + v4 * d
end
foo (generic function with 1 method)
julia> @code_warntype foo()
Variables:
a::Int64
b::Int64
c::Int64
d::Int64
#temp#@_6::Int64
arg<optimized out>
#temp#@_8::Tuple{Int64,Int64}
#temp#@_9::Tuple{Int64,Int64}
#temp#@_10::Tuple{Int64,Int64}
#temp#@_11::Tuple{Int64,Int64}
#temp#@_12::SVector{1,Int64}
#temp#@_18::SVector{1,Int64}
Body:
begin
SSAValue(0) = $(Expr(:new, UnitRange{Int64}, 1, :((Base.select_value)((Base.sle_int)(1, 4)::Bool, 4, (Base.sub_int)(1, 1)::Int64)::Int64)))
#temp#@_6::Int64 = (Core.getfield)(SSAValue(0), :start)::Int64
# meta: location tuple.jl indexed_next 60
unless (#temp#@_6::Int64 === (Base.add_int)((Core.getfield)(SSAValue(0), :stop)::Int64, 1)::Int64)::Bool goto 7
#temp#@_8::Tuple{Int64,Int64} = (Base.throw)($(Expr(:invoke, MethodInstance for BoundsError(::Any, ::Int64), :(Base.BoundsError), SSAValue(0), 1))::BoundsError)::Union{}
goto 9
7:
#temp#@_8::Tuple{Int64,Int64} = (Core.tuple)(#temp#@_6::Int64, (Base.add_int)(#temp#@_6::Int64, 1)::Int64)::Tuple{Int64,Int64}
9:
# meta: pop location
SSAValue(1) = #temp#@_8::Tuple{Int64,Int64}
a::Int64 = (Core.getfield)(SSAValue(1), 1)::Int64
#temp#@_6::Int64 = (Core.getfield)(SSAValue(1), 2)::Int64
# meta: location tuple.jl indexed_next 60
unless (#temp#@_6::Int64 === (Base.add_int)((Core.getfield)(SSAValue(0), :stop)::Int64, 1)::Int64)::Bool goto 18
#temp#@_9::Tuple{Int64,Int64} = (Base.throw)($(Expr(:invoke, MethodInstance for BoundsError(::Any, ::Int64), :(Base.BoundsError), SSAValue(0), 2))::BoundsError)::Union{}
goto 20
18:
#temp#@_9::Tuple{Int64,Int64} = (Core.tuple)(#temp#@_6::Int64, (Base.add_int)(#temp#@_6::Int64, 1)::Int64)::Tuple{Int64,Int64}
20:
# meta: pop location
SSAValue(2) = #temp#@_9::Tuple{Int64,Int64}
b::Int64 = (Core.getfield)(SSAValue(2), 1)::Int64
#temp#@_6::Int64 = (Core.getfield)(SSAValue(2), 2)::Int64
# meta: location tuple.jl indexed_next 60
unless (#temp#@_6::Int64 === (Base.add_int)((Core.getfield)(SSAValue(0), :stop)::Int64, 1)::Int64)::Bool goto 29
#temp#@_10::Tuple{Int64,Int64} = (Base.throw)($(Expr(:invoke, MethodInstance for BoundsError(::Any, ::Int64), :(Base.BoundsError), SSAValue(0), 3))::BoundsError)::Union{}
goto 31
29:
#temp#@_10::Tuple{Int64,Int64} = (Core.tuple)(#temp#@_6::Int64, (Base.add_int)(#temp#@_6::Int64, 1)::Int64)::Tuple{Int64,Int64}
31:
# meta: pop location
SSAValue(3) = #temp#@_10::Tuple{Int64,Int64}
c::Int64 = (Core.getfield)(SSAValue(3), 1)::Int64
#temp#@_6::Int64 = (Core.getfield)(SSAValue(3), 2)::Int64
# meta: location tuple.jl indexed_next 60
unless (#temp#@_6::Int64 === (Base.add_int)((Core.getfield)(SSAValue(0), :stop)::Int64, 1)::Int64)::Bool goto 40
#temp#@_11::Tuple{Int64,Int64} = (Base.throw)($(Expr(:invoke, MethodInstance for BoundsError(::Any, ::Int64), :(Base.BoundsError), SSAValue(0), 4))::BoundsError)::Union{}
goto 42
40:
#temp#@_11::Tuple{Int64,Int64} = (Core.tuple)(#temp#@_6::Int64, (Base.add_int)(#temp#@_6::Int64, 1)::Int64)::Tuple{Int64,Int64}
42:
# meta: pop location
SSAValue(4) = #temp#@_11::Tuple{Int64,Int64}
d::Int64 = (Core.getfield)(SSAValue(4), 1)::Int64
#temp#@_6::Int64 = (Core.getfield)(SSAValue(4), 2)::Int64
#= line 3 =#
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/linalg.jl * 26
# meta: location broadcast.jl broadcast 434
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl broadcast_c 33
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl _broadcast 52
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl @generated body
#= line 110 =#
SSAValue(25) = (Base.mul_int)((Base.getfield)((Core.getfield)(Main.v1, :data)::Tuple{Int64}, 1, false)::Int64, a::Int64)::Int64
goto 57
# meta: pop location
57:
# meta: pop locations (4)
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/linalg.jl * 26
# meta: location broadcast.jl broadcast 434
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl broadcast_c 33
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl _broadcast 52
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl @generated body
#= line 110 =#
SSAValue(27) = (Base.mul_int)((Base.getfield)((Core.getfield)(Main.v2, :data)::Tuple{Int64}, 1, false)::Int64, b::Int64)::Int64
goto 68
# meta: pop location
68:
# meta: pop locations (4)
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/linalg.jl * 26
# meta: location broadcast.jl broadcast 434
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl broadcast_c 33
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl _broadcast 52
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl @generated body
#= line 110 =#
SSAValue(29) = (Base.mul_int)((Base.getfield)((Core.getfield)(Main.v3, :data)::Tuple{Int64}, 1, false)::Int64, c::Int64)::Int64
goto 79
# meta: pop location
79:
# meta: pop locations (4)
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/linalg.jl * 26
# meta: location broadcast.jl broadcast 434
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl broadcast_c 33
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl _broadcast 52
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl @generated body
#= line 110 =#
#temp#@_12::SVector{1,Int64} = $(Expr(:new, SVector{1,Int64}, :((StaticArrays.tuple)((Base.mul_int)((Base.getfield)((Core.getfield)(Main.v4, :data)::Tuple{Int64}, 1, false)::Int64, d)::Int64)::Tuple{Int64})))
goto 90
# meta: pop location
90:
# meta: pop locations (4)
# meta: location operators.jl + 469
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/linalg.jl + 10
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/mapreduce.jl map 15
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/mapreduce.jl _map 20
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/mapreduce.jl @generated body
#= line 29 =#
SSAValue(21) = (Base.add_int)(SSAValue(25), SSAValue(27))::Int64
goto 101
# meta: pop location
101:
# meta: pop locations (3)
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/linalg.jl + 10
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/mapreduce.jl map 15
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/mapreduce.jl _map 20
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/mapreduce.jl @generated body
#= line 29 =#
SSAValue(23) = (Base.add_int)(SSAValue(21), SSAValue(29))::Int64
goto 111
# meta: pop location
111:
# meta: pop locations (3)
# meta: location operators.jl afoldl 456
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/linalg.jl + 10
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/mapreduce.jl map 15
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/mapreduce.jl _map 20
# meta: location /home/mose/.julia/v0.7/StaticArrays/src/mapreduce.jl @generated body
#= line 29 =#
#temp#@_18::SVector{1,Int64} = $(Expr(:new, SVector{1,Int64}, :((StaticArrays.tuple)((Base.add_int)(SSAValue(23), (Base.getfield)((Core.getfield)(#temp#@_12, :data)::Tuple{Int64}, 1, false)::Int64)::Int64)::Tuple{Int64})))
goto 122
# meta: pop location
122:
# meta: pop locations (5)
return #temp#@_18::SVector{1,Int64}
end::SVector{1,Int64}"><pre class="notranslate">julia<span class="pl-k">></span> <span class="pl-k">function</span> <span class="pl-en">foo</span>()
a, b, c, d <span class="pl-k">=</span> <span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">4</span>
arg <span class="pl-k">=</span> v1 <span class="pl-k">*</span> a <span class="pl-k">+</span> v2 <span class="pl-k">*</span> b <span class="pl-k">+</span> v3 <span class="pl-k">*</span> c <span class="pl-k">+</span> v4 <span class="pl-k">*</span> d
<span class="pl-k">end</span>
foo (generic <span class="pl-k">function</span> with <span class="pl-c1">1</span> method)
julia<span class="pl-k">></span> <span class="pl-c1">@code_warntype</span> <span class="pl-c1">foo</span>()
Variables<span class="pl-k">:</span>
a<span class="pl-k">::</span><span class="pl-c1">Int64</span>
b<span class="pl-k">::</span><span class="pl-c1">Int64</span>
c<span class="pl-k">::</span><span class="pl-c1">Int64</span>
d<span class="pl-k">::</span><span class="pl-c1">Int64</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_6::Int64</span>
arg<span class="pl-k"><</span>optimized out<span class="pl-k">></span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_8::Tuple{Int64,Int64}</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_9::Tuple{Int64,Int64}</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_10::Tuple{Int64,Int64}</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_11::Tuple{Int64,Int64}</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_12::SVector{1,Int64}</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_18::SVector{1,Int64}</span>
Body<span class="pl-k">:</span>
<span class="pl-k">begin</span>
<span class="pl-en">SSAValue</span>(<span class="pl-c1">0</span>) <span class="pl-k">=</span> <span class="pl-k">$</span>(<span class="pl-c1">Expr</span>(<span class="pl-c1">:new</span>, UnitRange{Int64}, <span class="pl-c1">1</span>, :((Base<span class="pl-k">.</span>select_value)((Base<span class="pl-k">.</span>sle_int)(<span class="pl-c1">1</span>, <span class="pl-c1">4</span>)<span class="pl-k">::</span><span class="pl-c1">Bool</span>, <span class="pl-c1">4</span>, (Base<span class="pl-k">.</span>sub_int)(<span class="pl-c1">1</span>, <span class="pl-c1">1</span>)<span class="pl-k">::</span><span class="pl-c1">Int64</span>)<span class="pl-k">::</span><span class="pl-c1">Int64</span>)))
<span class="pl-c"><span class="pl-c">#</span>temp#@_6::Int64 = (Core.getfield)(SSAValue(0), :start)::Int64</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location tuple.jl indexed_next 60</span>
unless (<span class="pl-c"><span class="pl-c">#</span>temp#@_6::Int64 === (Base.add_int)((Core.getfield)(SSAValue(0), :stop)::Int64, 1)::Int64)::Bool goto 7</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_8::Tuple{Int64,Int64} = (Base.throw)($(Expr(:invoke, MethodInstance for BoundsError(::Any, ::Int64), :(Base.BoundsError), SSAValue(0), 1))::BoundsError)::Union{}</span>
goto <span class="pl-c1">9</span>
<span class="pl-c1">7</span><span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_8::Tuple{Int64,Int64} = (Core.tuple)(#temp#@_6::Int64, (Base.add_int)(#temp#@_6::Int64, 1)::Int64)::Tuple{Int64,Int64}</span>
<span class="pl-c1">9</span><span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span> meta: pop location</span>
<span class="pl-en">SSAValue</span>(<span class="pl-c1">1</span>) <span class="pl-k">=</span> <span class="pl-c"><span class="pl-c">#</span>temp#@_8::Tuple{Int64,Int64}</span>
a<span class="pl-k">::</span><span class="pl-c1">Int64</span> <span class="pl-k">=</span> (Core<span class="pl-k">.</span>getfield)(<span class="pl-c1">SSAValue</span>(<span class="pl-c1">1</span>), <span class="pl-c1">1</span>)<span class="pl-k">::</span><span class="pl-c1">Int64</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_6::Int64 = (Core.getfield)(SSAValue(1), 2)::Int64</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location tuple.jl indexed_next 60</span>
unless (<span class="pl-c"><span class="pl-c">#</span>temp#@_6::Int64 === (Base.add_int)((Core.getfield)(SSAValue(0), :stop)::Int64, 1)::Int64)::Bool goto 18</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_9::Tuple{Int64,Int64} = (Base.throw)($(Expr(:invoke, MethodInstance for BoundsError(::Any, ::Int64), :(Base.BoundsError), SSAValue(0), 2))::BoundsError)::Union{}</span>
goto <span class="pl-c1">20</span>
<span class="pl-c1">18</span><span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_9::Tuple{Int64,Int64} = (Core.tuple)(#temp#@_6::Int64, (Base.add_int)(#temp#@_6::Int64, 1)::Int64)::Tuple{Int64,Int64}</span>
<span class="pl-c1">20</span><span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span> meta: pop location</span>
<span class="pl-en">SSAValue</span>(<span class="pl-c1">2</span>) <span class="pl-k">=</span> <span class="pl-c"><span class="pl-c">#</span>temp#@_9::Tuple{Int64,Int64}</span>
b<span class="pl-k">::</span><span class="pl-c1">Int64</span> <span class="pl-k">=</span> (Core<span class="pl-k">.</span>getfield)(<span class="pl-c1">SSAValue</span>(<span class="pl-c1">2</span>), <span class="pl-c1">1</span>)<span class="pl-k">::</span><span class="pl-c1">Int64</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_6::Int64 = (Core.getfield)(SSAValue(2), 2)::Int64</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location tuple.jl indexed_next 60</span>
unless (<span class="pl-c"><span class="pl-c">#</span>temp#@_6::Int64 === (Base.add_int)((Core.getfield)(SSAValue(0), :stop)::Int64, 1)::Int64)::Bool goto 29</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_10::Tuple{Int64,Int64} = (Base.throw)($(Expr(:invoke, MethodInstance for BoundsError(::Any, ::Int64), :(Base.BoundsError), SSAValue(0), 3))::BoundsError)::Union{}</span>
goto <span class="pl-c1">31</span>
<span class="pl-c1">29</span><span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_10::Tuple{Int64,Int64} = (Core.tuple)(#temp#@_6::Int64, (Base.add_int)(#temp#@_6::Int64, 1)::Int64)::Tuple{Int64,Int64}</span>
<span class="pl-c1">31</span><span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span> meta: pop location</span>
<span class="pl-en">SSAValue</span>(<span class="pl-c1">3</span>) <span class="pl-k">=</span> <span class="pl-c"><span class="pl-c">#</span>temp#@_10::Tuple{Int64,Int64}</span>
c<span class="pl-k">::</span><span class="pl-c1">Int64</span> <span class="pl-k">=</span> (Core<span class="pl-k">.</span>getfield)(<span class="pl-c1">SSAValue</span>(<span class="pl-c1">3</span>), <span class="pl-c1">1</span>)<span class="pl-k">::</span><span class="pl-c1">Int64</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_6::Int64 = (Core.getfield)(SSAValue(3), 2)::Int64</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location tuple.jl indexed_next 60</span>
unless (<span class="pl-c"><span class="pl-c">#</span>temp#@_6::Int64 === (Base.add_int)((Core.getfield)(SSAValue(0), :stop)::Int64, 1)::Int64)::Bool goto 40</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_11::Tuple{Int64,Int64} = (Base.throw)($(Expr(:invoke, MethodInstance for BoundsError(::Any, ::Int64), :(Base.BoundsError), SSAValue(0), 4))::BoundsError)::Union{}</span>
goto <span class="pl-c1">42</span>
<span class="pl-c1">40</span><span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_11::Tuple{Int64,Int64} = (Core.tuple)(#temp#@_6::Int64, (Base.add_int)(#temp#@_6::Int64, 1)::Int64)::Tuple{Int64,Int64}</span>
<span class="pl-c1">42</span><span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span> meta: pop location</span>
<span class="pl-en">SSAValue</span>(<span class="pl-c1">4</span>) <span class="pl-k">=</span> <span class="pl-c"><span class="pl-c">#</span>temp#@_11::Tuple{Int64,Int64}</span>
d<span class="pl-k">::</span><span class="pl-c1">Int64</span> <span class="pl-k">=</span> (Core<span class="pl-k">.</span>getfield)(<span class="pl-c1">SSAValue</span>(<span class="pl-c1">4</span>), <span class="pl-c1">1</span>)<span class="pl-k">::</span><span class="pl-c1">Int64</span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_6::Int64 = (Core.getfield)(SSAValue(4), 2)::Int64</span>
<span class="pl-c"><span class="pl-c">#=</span> line 3 <span class="pl-c">=#</span></span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/linalg.jl * 26</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location broadcast.jl broadcast 434</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl broadcast_c 33</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl _broadcast 52</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl @generated body</span>
<span class="pl-c"><span class="pl-c">#=</span> line 110 <span class="pl-c">=#</span></span>
<span class="pl-en">SSAValue</span>(<span class="pl-c1">25</span>) <span class="pl-k">=</span> (Base<span class="pl-k">.</span>mul_int)((Base<span class="pl-k">.</span>getfield)((Core<span class="pl-k">.</span>getfield)(Main<span class="pl-k">.</span>v1, <span class="pl-c1">:data</span>)<span class="pl-k">::</span><span class="pl-c1">Tuple{Int64}</span>, <span class="pl-c1">1</span>, <span class="pl-c1">false</span>)<span class="pl-k">::</span><span class="pl-c1">Int64</span>, a<span class="pl-k">::</span><span class="pl-c1">Int64</span>)<span class="pl-k">::</span><span class="pl-c1">Int64</span>
goto <span class="pl-c1">57</span>
<span class="pl-c"><span class="pl-c">#</span> meta: pop location</span>
<span class="pl-c1">57</span><span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span> meta: pop locations (4)</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/linalg.jl * 26</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location broadcast.jl broadcast 434</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl broadcast_c 33</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl _broadcast 52</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl @generated body</span>
<span class="pl-c"><span class="pl-c">#=</span> line 110 <span class="pl-c">=#</span></span>
<span class="pl-en">SSAValue</span>(<span class="pl-c1">27</span>) <span class="pl-k">=</span> (Base<span class="pl-k">.</span>mul_int)((Base<span class="pl-k">.</span>getfield)((Core<span class="pl-k">.</span>getfield)(Main<span class="pl-k">.</span>v2, <span class="pl-c1">:data</span>)<span class="pl-k">::</span><span class="pl-c1">Tuple{Int64}</span>, <span class="pl-c1">1</span>, <span class="pl-c1">false</span>)<span class="pl-k">::</span><span class="pl-c1">Int64</span>, b<span class="pl-k">::</span><span class="pl-c1">Int64</span>)<span class="pl-k">::</span><span class="pl-c1">Int64</span>
goto <span class="pl-c1">68</span>
<span class="pl-c"><span class="pl-c">#</span> meta: pop location</span>
<span class="pl-c1">68</span><span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span> meta: pop locations (4)</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/linalg.jl * 26</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location broadcast.jl broadcast 434</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl broadcast_c 33</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl _broadcast 52</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl @generated body</span>
<span class="pl-c"><span class="pl-c">#=</span> line 110 <span class="pl-c">=#</span></span>
<span class="pl-en">SSAValue</span>(<span class="pl-c1">29</span>) <span class="pl-k">=</span> (Base<span class="pl-k">.</span>mul_int)((Base<span class="pl-k">.</span>getfield)((Core<span class="pl-k">.</span>getfield)(Main<span class="pl-k">.</span>v3, <span class="pl-c1">:data</span>)<span class="pl-k">::</span><span class="pl-c1">Tuple{Int64}</span>, <span class="pl-c1">1</span>, <span class="pl-c1">false</span>)<span class="pl-k">::</span><span class="pl-c1">Int64</span>, c<span class="pl-k">::</span><span class="pl-c1">Int64</span>)<span class="pl-k">::</span><span class="pl-c1">Int64</span>
goto <span class="pl-c1">79</span>
<span class="pl-c"><span class="pl-c">#</span> meta: pop location</span>
<span class="pl-c1">79</span><span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span> meta: pop locations (4)</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/linalg.jl * 26</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location broadcast.jl broadcast 434</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl broadcast_c 33</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl _broadcast 52</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/broadcast.jl @generated body</span>
<span class="pl-c"><span class="pl-c">#=</span> line 110 <span class="pl-c">=#</span></span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_12::SVector{1,Int64} = $(Expr(:new, SVector{1,Int64}, :((StaticArrays.tuple)((Base.mul_int)((Base.getfield)((Core.getfield)(Main.v4, :data)::Tuple{Int64}, 1, false)::Int64, d)::Int64)::Tuple{Int64})))</span>
goto <span class="pl-c1">90</span>
<span class="pl-c"><span class="pl-c">#</span> meta: pop location</span>
<span class="pl-c1">90</span><span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span> meta: pop locations (4)</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location operators.jl + 469</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/linalg.jl + 10</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/mapreduce.jl map 15</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/mapreduce.jl _map 20</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/mapreduce.jl @generated body</span>
<span class="pl-c"><span class="pl-c">#=</span> line 29 <span class="pl-c">=#</span></span>
<span class="pl-en">SSAValue</span>(<span class="pl-c1">21</span>) <span class="pl-k">=</span> (Base<span class="pl-k">.</span>add_int)(<span class="pl-c1">SSAValue</span>(<span class="pl-c1">25</span>), <span class="pl-c1">SSAValue</span>(<span class="pl-c1">27</span>))<span class="pl-k">::</span><span class="pl-c1">Int64</span>
goto <span class="pl-c1">101</span>
<span class="pl-c"><span class="pl-c">#</span> meta: pop location</span>
<span class="pl-c1">101</span><span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span> meta: pop locations (3)</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/linalg.jl + 10</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/mapreduce.jl map 15</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/mapreduce.jl _map 20</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/mapreduce.jl @generated body</span>
<span class="pl-c"><span class="pl-c">#=</span> line 29 <span class="pl-c">=#</span></span>
<span class="pl-en">SSAValue</span>(<span class="pl-c1">23</span>) <span class="pl-k">=</span> (Base<span class="pl-k">.</span>add_int)(<span class="pl-c1">SSAValue</span>(<span class="pl-c1">21</span>), <span class="pl-c1">SSAValue</span>(<span class="pl-c1">29</span>))<span class="pl-k">::</span><span class="pl-c1">Int64</span>
goto <span class="pl-c1">111</span>
<span class="pl-c"><span class="pl-c">#</span> meta: pop location</span>
<span class="pl-c1">111</span><span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span> meta: pop locations (3)</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location operators.jl afoldl 456</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/linalg.jl + 10</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/mapreduce.jl map 15</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/mapreduce.jl _map 20</span>
<span class="pl-c"><span class="pl-c">#</span> meta: location /home/mose/.julia/v0.7/StaticArrays/src/mapreduce.jl @generated body</span>
<span class="pl-c"><span class="pl-c">#=</span> line 29 <span class="pl-c">=#</span></span>
<span class="pl-c"><span class="pl-c">#</span>temp#@_18::SVector{1,Int64} = $(Expr(:new, SVector{1,Int64}, :((StaticArrays.tuple)((Base.add_int)(SSAValue(23), (Base.getfield)((Core.getfield)(#temp#@_12, :data)::Tuple{Int64}, 1, false)::Int64)::Int64)::Tuple{Int64})))</span>
goto <span class="pl-c1">122</span>
<span class="pl-c"><span class="pl-c">#</span> meta: pop location</span>
<span class="pl-c1">122</span><span class="pl-k">:</span>
<span class="pl-c"><span class="pl-c">#</span> meta: pop locations (5)</span>
<span class="pl-k">return</span> <span class="pl-c"><span class="pl-c">#</span>temp#@_18::SVector{1,Int64}</span>
<span class="pl-k">end</span><span class="pl-k">::</span><span class="pl-c1">SVector{1,Int64}</span></pre></div>
<p dir="auto">First reported at <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="265926863" data-permission-text="Title is private" data-url="https://github.com/JuliaArrays/StaticArrays.jl/issues/321" data-hovercard-type="issue" data-hovercard-url="/JuliaArrays/StaticArrays.jl/issues/321/hovercard" href="https://github.com/JuliaArrays/StaticArrays.jl/issues/321">JuliaArrays/StaticArrays.jl#321</a>.</p>
|
<h3 dir="auto">Updated OP</h3>
<p dir="auto">While working through the issue, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jebej/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jebej">@jebej</a> identified that the problem is fusing 12+ broadcasts in this comment (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="234026490" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/22255" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/22255/hovercard?comment_id=306814370&comment_type=issue_comment" href="https://github.com/JuliaLang/julia/issues/22255#issuecomment-306814370">#22255 (comment)</a>) which contains an MWE.</p>
<h3 dir="auto">Original OP</h3>
<p dir="auto">In OrdinaryDiffEq.jl, I see a 10x performance regression due to using broadcast. With the testing code:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const ζ = 0.5
const ω₀ = 10.0
using OrdinaryDiffEq, DiffEqBase
const y₀ = Float64[0., sqrt(1-ζ^2)*ω₀]
const A = 1
const ϕ = 0
function f(t::Float64)
α = sqrt(1-ζ^2)*ω₀
x = A*exp(-ζ*ω₀*t)*sin(α*t + ϕ)
p = A*exp(-ζ*ω₀*t)*(-ζ*ω₀*sin(α*t + ϕ) + α*cos(α*t + ϕ))
return [x,p]
end
function df(t::Float64, y::Vector{Float64}, dy::Vector{Float64})
dy[1] = y[2]
dy[2] = -2*ζ*ω₀*y[2] - ω₀^2*y[1]
return nothing
end
const T = [0.,10.]
using BenchmarkTools
prob = ODEProblem(df,y₀,(T[1],T[2]))
@benchmark init($prob,Tsit5(),dense=false,dt=1/10)
@benchmark solve($prob,Tsit5(),dense=false,dt=1/10)
using ProfileView
@profile for i in 1:1000; solve(prob,Tsit5(),dense=false,dt=1/10); end
ProfileView.view()"><pre class="notranslate"><span class="pl-k">const</span> ζ <span class="pl-k">=</span> <span class="pl-c1">0.5</span>
<span class="pl-k">const</span> ω₀ <span class="pl-k">=</span> <span class="pl-c1">10.0</span>
<span class="pl-k">using</span> OrdinaryDiffEq, DiffEqBase
<span class="pl-k">const</span> y₀ <span class="pl-k">=</span> Float64[<span class="pl-c1">0.</span>, <span class="pl-c1">sqrt</span>(<span class="pl-c1">1</span><span class="pl-k">-</span>ζ<span class="pl-k">^</span><span class="pl-c1">2</span>)<span class="pl-k">*</span>ω₀]
<span class="pl-k">const</span> A <span class="pl-k">=</span> <span class="pl-c1">1</span>
<span class="pl-k">const</span> ϕ <span class="pl-k">=</span> <span class="pl-c1">0</span>
<span class="pl-k">function</span> <span class="pl-en">f</span>(t<span class="pl-k">::</span><span class="pl-c1">Float64</span>)
α <span class="pl-k">=</span> <span class="pl-c1">sqrt</span>(<span class="pl-c1">1</span><span class="pl-k">-</span>ζ<span class="pl-k">^</span><span class="pl-c1">2</span>)<span class="pl-k">*</span>ω₀
x <span class="pl-k">=</span> A<span class="pl-k">*</span><span class="pl-c1">exp</span>(<span class="pl-k">-</span>ζ<span class="pl-k">*</span>ω₀<span class="pl-k">*</span>t)<span class="pl-k">*</span><span class="pl-c1">sin</span>(α<span class="pl-k">*</span>t <span class="pl-k">+</span> ϕ)
p <span class="pl-k">=</span> A<span class="pl-k">*</span><span class="pl-c1">exp</span>(<span class="pl-k">-</span>ζ<span class="pl-k">*</span>ω₀<span class="pl-k">*</span>t)<span class="pl-k">*</span>(<span class="pl-k">-</span>ζ<span class="pl-k">*</span>ω₀<span class="pl-k">*</span><span class="pl-c1">sin</span>(α<span class="pl-k">*</span>t <span class="pl-k">+</span> ϕ) <span class="pl-k">+</span> α<span class="pl-k">*</span><span class="pl-c1">cos</span>(α<span class="pl-k">*</span>t <span class="pl-k">+</span> ϕ))
<span class="pl-k">return</span> [x,p]
<span class="pl-k">end</span>
<span class="pl-k">function</span> <span class="pl-en">df</span>(t<span class="pl-k">::</span><span class="pl-c1">Float64</span>, y<span class="pl-k">::</span><span class="pl-c1">Vector{Float64}</span>, dy<span class="pl-k">::</span><span class="pl-c1">Vector{Float64}</span>)
dy[<span class="pl-c1">1</span>] <span class="pl-k">=</span> y[<span class="pl-c1">2</span>]
dy[<span class="pl-c1">2</span>] <span class="pl-k">=</span> <span class="pl-k">-</span><span class="pl-c1">2</span><span class="pl-k">*</span>ζ<span class="pl-k">*</span>ω₀<span class="pl-k">*</span>y[<span class="pl-c1">2</span>] <span class="pl-k">-</span> ω₀<span class="pl-k">^</span><span class="pl-c1">2</span><span class="pl-k">*</span>y[<span class="pl-c1">1</span>]
<span class="pl-k">return</span> <span class="pl-c1">nothing</span>
<span class="pl-k">end</span>
<span class="pl-k">const</span> T <span class="pl-k">=</span> [<span class="pl-c1">0.</span>,<span class="pl-c1">10.</span>]
<span class="pl-k">using</span> BenchmarkTools
prob <span class="pl-k">=</span> <span class="pl-c1">ODEProblem</span>(df,y₀,(T[<span class="pl-c1">1</span>],T[<span class="pl-c1">2</span>]))
<span class="pl-c1">@benchmark</span> <span class="pl-c1">init</span>(<span class="pl-k">$</span>prob,<span class="pl-c1">Tsit5</span>(),dense<span class="pl-k">=</span><span class="pl-c1">false</span>,dt<span class="pl-k">=</span><span class="pl-c1">1</span><span class="pl-k">/</span><span class="pl-c1">10</span>)
<span class="pl-c1">@benchmark</span> <span class="pl-c1">solve</span>(<span class="pl-k">$</span>prob,<span class="pl-c1">Tsit5</span>(),dense<span class="pl-k">=</span><span class="pl-c1">false</span>,dt<span class="pl-k">=</span><span class="pl-c1">1</span><span class="pl-k">/</span><span class="pl-c1">10</span>)
<span class="pl-k">using</span> ProfileView
<span class="pl-c1">@profile</span> <span class="pl-k">for</span> i <span class="pl-k">in</span> <span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">1000</span>; <span class="pl-c1">solve</span>(prob,<span class="pl-c1">Tsit5</span>(),dense<span class="pl-k">=</span><span class="pl-c1">false</span>,dt<span class="pl-k">=</span><span class="pl-c1">1</span><span class="pl-k">/</span><span class="pl-c1">10</span>); <span class="pl-k">end</span>
ProfileView<span class="pl-k">.</span><span class="pl-c1">view</span>()</pre></div>
<p dir="auto">I get a 10x regression by changing the inner loop from:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function perform_step!(integrator,cache::Tsit5Cache,f=integrator.f)
@unpack t,dt,uprev,u,k = integrator
uidx = eachindex(integrator.uprev)
@unpack c1,c2,c3,c4,c5,c6,a21,a31,a32,a41,a42,a43,a51,a52,a53,a54,a61,a62,a63,a64,a65,a71,a72,a73,a74,a75,a76,b1,b2,b3,b4,b5,b6,b7 = cache.tab
@unpack k1,k2,k3,k4,k5,k6,k7,utilde,tmp,atmp = cache
a = dt*a21
for i in uidx
tmp[i] = @muladd uprev[i]+a*k1[i]
end
f(@muladd(t+c1*dt),tmp,k2)
for i in uidx
tmp[i] = @muladd uprev[i]+dt*(a31*k1[i]+a32*k2[i])
end
f(@muladd(t+c2*dt),tmp,k3)
for i in uidx
tmp[i] = @muladd uprev[i]+dt*(a41*k1[i]+a42*k2[i]+a43*k3[i])
end
f(@muladd(t+c3*dt),tmp,k4)
for i in uidx
tmp[i] = @muladd uprev[i]+dt*(a51*k1[i]+a52*k2[i]+a53*k3[i]+a54*k4[i])
end
f(@muladd(t+c4*dt),tmp,k5)
for i in uidx
tmp[i] = @muladd uprev[i]+dt*(a61*k1[i]+a62*k2[i]+a63*k3[i]+a64*k4[i]+a65*k5[i])
end
f(t+dt,tmp,k6)
for i in uidx
u[i] = @muladd uprev[i]+dt*(a71*k1[i]+a72*k2[i]+a73*k3[i]+a74*k4[i]+a75*k5[i]+a76*k6[i])
end
f(t+dt,u,k7)
if integrator.opts.adaptive
for i in uidx
utilde[i] = @muladd uprev[i] + dt*(b1*k1[i] + b2*k2[i] + b3*k3[i] + b4*k4[i] + b5*k5[i] + b6*k6[i] + b7*k7[i])
atmp[i] = ((utilde[i]-u[i])./@muladd(integrator.opts.abstol+max(abs(uprev[i]),abs(u[i])).*integrator.opts.reltol))
end
integrator.EEst = integrator.opts.internalnorm(atmp)
end
@pack integrator = t,dt,u,k
end"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">perform_step!</span>(integrator,cache<span class="pl-k">::</span><span class="pl-c1">Tsit5Cache</span>,f<span class="pl-k">=</span>integrator<span class="pl-k">.</span>f)
<span class="pl-c1">@unpack</span> t,dt,uprev,u,k <span class="pl-k">=</span> integrator
uidx <span class="pl-k">=</span> <span class="pl-c1">eachindex</span>(integrator<span class="pl-k">.</span>uprev)
<span class="pl-c1">@unpack</span> c1,c2,c3,c4,c5,c6,a21,a31,a32,a41,a42,a43,a51,a52,a53,a54,a61,a62,a63,a64,a65,a71,a72,a73,a74,a75,a76,b1,b2,b3,b4,b5,b6,b7 <span class="pl-k">=</span> cache<span class="pl-k">.</span>tab
<span class="pl-c1">@unpack</span> k1,k2,k3,k4,k5,k6,k7,utilde,tmp,atmp <span class="pl-k">=</span> cache
a <span class="pl-k">=</span> dt<span class="pl-k">*</span>a21
<span class="pl-k">for</span> i <span class="pl-k">in</span> uidx
tmp[i] <span class="pl-k">=</span> <span class="pl-c1">@muladd</span> uprev[i]<span class="pl-k">+</span>a<span class="pl-k">*</span>k1[i]
<span class="pl-k">end</span>
<span class="pl-c1">f</span>(<span class="pl-c1">@muladd</span>(t<span class="pl-k">+</span>c1<span class="pl-k">*</span>dt),tmp,k2)
<span class="pl-k">for</span> i <span class="pl-k">in</span> uidx
tmp[i] <span class="pl-k">=</span> <span class="pl-c1">@muladd</span> uprev[i]<span class="pl-k">+</span>dt<span class="pl-k">*</span>(a31<span class="pl-k">*</span>k1[i]<span class="pl-k">+</span>a32<span class="pl-k">*</span>k2[i])
<span class="pl-k">end</span>
<span class="pl-c1">f</span>(<span class="pl-c1">@muladd</span>(t<span class="pl-k">+</span>c2<span class="pl-k">*</span>dt),tmp,k3)
<span class="pl-k">for</span> i <span class="pl-k">in</span> uidx
tmp[i] <span class="pl-k">=</span> <span class="pl-c1">@muladd</span> uprev[i]<span class="pl-k">+</span>dt<span class="pl-k">*</span>(a41<span class="pl-k">*</span>k1[i]<span class="pl-k">+</span>a42<span class="pl-k">*</span>k2[i]<span class="pl-k">+</span>a43<span class="pl-k">*</span>k3[i])
<span class="pl-k">end</span>
<span class="pl-c1">f</span>(<span class="pl-c1">@muladd</span>(t<span class="pl-k">+</span>c3<span class="pl-k">*</span>dt),tmp,k4)
<span class="pl-k">for</span> i <span class="pl-k">in</span> uidx
tmp[i] <span class="pl-k">=</span> <span class="pl-c1">@muladd</span> uprev[i]<span class="pl-k">+</span>dt<span class="pl-k">*</span>(a51<span class="pl-k">*</span>k1[i]<span class="pl-k">+</span>a52<span class="pl-k">*</span>k2[i]<span class="pl-k">+</span>a53<span class="pl-k">*</span>k3[i]<span class="pl-k">+</span>a54<span class="pl-k">*</span>k4[i])
<span class="pl-k">end</span>
<span class="pl-c1">f</span>(<span class="pl-c1">@muladd</span>(t<span class="pl-k">+</span>c4<span class="pl-k">*</span>dt),tmp,k5)
<span class="pl-k">for</span> i <span class="pl-k">in</span> uidx
tmp[i] <span class="pl-k">=</span> <span class="pl-c1">@muladd</span> uprev[i]<span class="pl-k">+</span>dt<span class="pl-k">*</span>(a61<span class="pl-k">*</span>k1[i]<span class="pl-k">+</span>a62<span class="pl-k">*</span>k2[i]<span class="pl-k">+</span>a63<span class="pl-k">*</span>k3[i]<span class="pl-k">+</span>a64<span class="pl-k">*</span>k4[i]<span class="pl-k">+</span>a65<span class="pl-k">*</span>k5[i])
<span class="pl-k">end</span>
<span class="pl-c1">f</span>(t<span class="pl-k">+</span>dt,tmp,k6)
<span class="pl-k">for</span> i <span class="pl-k">in</span> uidx
u[i] <span class="pl-k">=</span> <span class="pl-c1">@muladd</span> uprev[i]<span class="pl-k">+</span>dt<span class="pl-k">*</span>(a71<span class="pl-k">*</span>k1[i]<span class="pl-k">+</span>a72<span class="pl-k">*</span>k2[i]<span class="pl-k">+</span>a73<span class="pl-k">*</span>k3[i]<span class="pl-k">+</span>a74<span class="pl-k">*</span>k4[i]<span class="pl-k">+</span>a75<span class="pl-k">*</span>k5[i]<span class="pl-k">+</span>a76<span class="pl-k">*</span>k6[i])
<span class="pl-k">end</span>
<span class="pl-c1">f</span>(t<span class="pl-k">+</span>dt,u,k7)
<span class="pl-k">if</span> integrator<span class="pl-k">.</span>opts<span class="pl-k">.</span>adaptive
<span class="pl-k">for</span> i <span class="pl-k">in</span> uidx
utilde[i] <span class="pl-k">=</span> <span class="pl-c1">@muladd</span> uprev[i] <span class="pl-k">+</span> dt<span class="pl-k">*</span>(b1<span class="pl-k">*</span>k1[i] <span class="pl-k">+</span> b2<span class="pl-k">*</span>k2[i] <span class="pl-k">+</span> b3<span class="pl-k">*</span>k3[i] <span class="pl-k">+</span> b4<span class="pl-k">*</span>k4[i] <span class="pl-k">+</span> b5<span class="pl-k">*</span>k5[i] <span class="pl-k">+</span> b6<span class="pl-k">*</span>k6[i] <span class="pl-k">+</span> b7<span class="pl-k">*</span>k7[i])
atmp[i] <span class="pl-k">=</span> ((utilde[i]<span class="pl-k">-</span>u[i])<span class="pl-k">.</span><span class="pl-k">/</span><span class="pl-c1">@muladd</span>(integrator<span class="pl-k">.</span>opts<span class="pl-k">.</span>abstol<span class="pl-k">+</span><span class="pl-c1">max</span>(<span class="pl-c1">abs</span>(uprev[i]),<span class="pl-c1">abs</span>(u[i]))<span class="pl-k">.*</span>integrator<span class="pl-k">.</span>opts<span class="pl-k">.</span>reltol))
<span class="pl-k">end</span>
integrator<span class="pl-k">.</span>EEst <span class="pl-k">=</span> integrator<span class="pl-k">.</span>opts<span class="pl-k">.</span><span class="pl-c1">internalnorm</span>(atmp)
<span class="pl-k">end</span>
<span class="pl-c1">@pack</span> integrator <span class="pl-k">=</span> t,dt,u,k
<span class="pl-k">end</span></pre></div>
<p dir="auto">to:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function perform_step!(integrator,cache::Tsit5Cache,f=integrator.f)
@unpack t,dt,uprev,u,k = integrator
@unpack c1,c2,c3,c4,c5,c6,a21,a31,a32,a41,a42,a43,a51,a52,a53,a54,a61,a62,a63,a64,a65,a71,a72,a73,a74,a75,a76,b1,b2,b3,b4,b5,b6,b7 = cache.tab
@unpack k1,k2,k3,k4,k5,k6,k7,utilde,tmp,atmp = cache
a = dt*a21
tmp .= @muladd uprev+a*k1
f(@muladd(t+c1*dt),tmp,k2)
tmp .= @muladd uprev+dt*(a31*k1+a32*k2)
f(@muladd(t+c2*dt),tmp,k3)
tmp .= @muladd uprev+dt*(a41*k1+a42*k2+a43*k3)
f(@muladd(t+c3*dt),tmp,k4)
tmp .= @muladd uprev+dt*(a51*k1+a52*k2+a53*k3+a54*k4)
f(@muladd(t+c4*dt),tmp,k5)
tmp .= @muladd uprev+dt*(a61*k1+a62*k2+a63*k3+a64*k4+a65*k5)
f(t+dt,tmp,k6)
u .= @muladd uprev+dt*(a71*k1+a72*k2+a73*k3+a74*k4+a75*k5+a76*k6)
f(t+dt,u,k7)
if integrator.opts.adaptive
utilde .= @muladd uprev + dt*(b1*k1 + b2*k2 + b3*k3 + b4*k4 + b5*k5 + b6*k6 + b7*k7)
atmp .= ((utilde.-u)./@muladd(integrator.opts.abstol+max.(abs.(uprev),abs.(u)).*integrator.opts.reltol))
integrator.EEst = integrator.opts.internalnorm(atmp)
end
@pack integrator = t,dt,u,k
end"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">perform_step!</span>(integrator,cache<span class="pl-k">::</span><span class="pl-c1">Tsit5Cache</span>,f<span class="pl-k">=</span>integrator<span class="pl-k">.</span>f)
<span class="pl-c1">@unpack</span> t,dt,uprev,u,k <span class="pl-k">=</span> integrator
<span class="pl-c1">@unpack</span> c1,c2,c3,c4,c5,c6,a21,a31,a32,a41,a42,a43,a51,a52,a53,a54,a61,a62,a63,a64,a65,a71,a72,a73,a74,a75,a76,b1,b2,b3,b4,b5,b6,b7 <span class="pl-k">=</span> cache<span class="pl-k">.</span>tab
<span class="pl-c1">@unpack</span> k1,k2,k3,k4,k5,k6,k7,utilde,tmp,atmp <span class="pl-k">=</span> cache
a <span class="pl-k">=</span> dt<span class="pl-k">*</span>a21
tmp <span class="pl-k">.=</span> <span class="pl-c1">@muladd</span> uprev<span class="pl-k">+</span>a<span class="pl-k">*</span>k1
<span class="pl-c1">f</span>(<span class="pl-c1">@muladd</span>(t<span class="pl-k">+</span>c1<span class="pl-k">*</span>dt),tmp,k2)
tmp <span class="pl-k">.=</span> <span class="pl-c1">@muladd</span> uprev<span class="pl-k">+</span>dt<span class="pl-k">*</span>(a31<span class="pl-k">*</span>k1<span class="pl-k">+</span>a32<span class="pl-k">*</span>k2)
<span class="pl-c1">f</span>(<span class="pl-c1">@muladd</span>(t<span class="pl-k">+</span>c2<span class="pl-k">*</span>dt),tmp,k3)
tmp <span class="pl-k">.=</span> <span class="pl-c1">@muladd</span> uprev<span class="pl-k">+</span>dt<span class="pl-k">*</span>(a41<span class="pl-k">*</span>k1<span class="pl-k">+</span>a42<span class="pl-k">*</span>k2<span class="pl-k">+</span>a43<span class="pl-k">*</span>k3)
<span class="pl-c1">f</span>(<span class="pl-c1">@muladd</span>(t<span class="pl-k">+</span>c3<span class="pl-k">*</span>dt),tmp,k4)
tmp <span class="pl-k">.=</span> <span class="pl-c1">@muladd</span> uprev<span class="pl-k">+</span>dt<span class="pl-k">*</span>(a51<span class="pl-k">*</span>k1<span class="pl-k">+</span>a52<span class="pl-k">*</span>k2<span class="pl-k">+</span>a53<span class="pl-k">*</span>k3<span class="pl-k">+</span>a54<span class="pl-k">*</span>k4)
<span class="pl-c1">f</span>(<span class="pl-c1">@muladd</span>(t<span class="pl-k">+</span>c4<span class="pl-k">*</span>dt),tmp,k5)
tmp <span class="pl-k">.=</span> <span class="pl-c1">@muladd</span> uprev<span class="pl-k">+</span>dt<span class="pl-k">*</span>(a61<span class="pl-k">*</span>k1<span class="pl-k">+</span>a62<span class="pl-k">*</span>k2<span class="pl-k">+</span>a63<span class="pl-k">*</span>k3<span class="pl-k">+</span>a64<span class="pl-k">*</span>k4<span class="pl-k">+</span>a65<span class="pl-k">*</span>k5)
<span class="pl-c1">f</span>(t<span class="pl-k">+</span>dt,tmp,k6)
u <span class="pl-k">.=</span> <span class="pl-c1">@muladd</span> uprev<span class="pl-k">+</span>dt<span class="pl-k">*</span>(a71<span class="pl-k">*</span>k1<span class="pl-k">+</span>a72<span class="pl-k">*</span>k2<span class="pl-k">+</span>a73<span class="pl-k">*</span>k3<span class="pl-k">+</span>a74<span class="pl-k">*</span>k4<span class="pl-k">+</span>a75<span class="pl-k">*</span>k5<span class="pl-k">+</span>a76<span class="pl-k">*</span>k6)
<span class="pl-c1">f</span>(t<span class="pl-k">+</span>dt,u,k7)
<span class="pl-k">if</span> integrator<span class="pl-k">.</span>opts<span class="pl-k">.</span>adaptive
utilde <span class="pl-k">.=</span> <span class="pl-c1">@muladd</span> uprev <span class="pl-k">+</span> dt<span class="pl-k">*</span>(b1<span class="pl-k">*</span>k1 <span class="pl-k">+</span> b2<span class="pl-k">*</span>k2 <span class="pl-k">+</span> b3<span class="pl-k">*</span>k3 <span class="pl-k">+</span> b4<span class="pl-k">*</span>k4 <span class="pl-k">+</span> b5<span class="pl-k">*</span>k5 <span class="pl-k">+</span> b6<span class="pl-k">*</span>k6 <span class="pl-k">+</span> b7<span class="pl-k">*</span>k7)
atmp <span class="pl-k">.=</span> ((utilde<span class="pl-k">.-</span>u)<span class="pl-k">.</span><span class="pl-k">/</span><span class="pl-c1">@muladd</span>(integrator<span class="pl-k">.</span>opts<span class="pl-k">.</span>abstol<span class="pl-k">+</span><span class="pl-c1">max</span>.(<span class="pl-c1">abs</span>.(uprev),<span class="pl-c1">abs</span>.(u))<span class="pl-k">.*</span>integrator<span class="pl-k">.</span>opts<span class="pl-k">.</span>reltol))
integrator<span class="pl-k">.</span>EEst <span class="pl-k">=</span> integrator<span class="pl-k">.</span>opts<span class="pl-k">.</span><span class="pl-c1">internalnorm</span>(atmp)
<span class="pl-k">end</span>
<span class="pl-c1">@pack</span> integrator <span class="pl-k">=</span> t,dt,u,k
<span class="pl-k">end</span></pre></div>
<p dir="auto">I.e. all that's changed are loops to broadcast. The input array is <code class="notranslate">y0</code> which is length 2. For reference, the <code class="notranslate">@muladd</code> macro acts like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="println(macroexpand(:(u .= @muladd uprev+dt*(a71*k1+a72*k2+a73*k3+a74*k4+a75*k5+a76*k6))))
#u .= (muladd).(dt, (muladd).(a71, k1, (muladd).(a72, k2, (muladd).(a73, k3, (muladd).(a74, k4, (muladd).(a75, k5, a76 .* k6))))), uprev)
println(macroexpand(:(atmp .= ((utilde.-u)./@muladd(integrator.opts.abstol+max.(abs.(uprev),abs.(u)).*integrator.opts.reltol)))))
#atmp .= (utilde .- u) ./ (muladd).(max.(abs.(uprev), abs.(u)), integrator.opts.reltol, integrator.opts.abstol)"><pre lang="juila" class="notranslate"><code class="notranslate">println(macroexpand(:(u .= @muladd uprev+dt*(a71*k1+a72*k2+a73*k3+a74*k4+a75*k5+a76*k6))))
#u .= (muladd).(dt, (muladd).(a71, k1, (muladd).(a72, k2, (muladd).(a73, k3, (muladd).(a74, k4, (muladd).(a75, k5, a76 .* k6))))), uprev)
println(macroexpand(:(atmp .= ((utilde.-u)./@muladd(integrator.opts.abstol+max.(abs.(uprev),abs.(u)).*integrator.opts.reltol)))))
#atmp .= (utilde .- u) ./ (muladd).(max.(abs.(uprev), abs.(u)), integrator.opts.reltol, integrator.opts.abstol)
</code></pre></div>
<p dir="auto">The profile is here: <a href="https://ufile.io/2lu0f" rel="nofollow">https://ufile.io/2lu0f</a></p>
<p dir="auto">The benchmark results are using loops:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="BenchmarkTools.Trial:
memory estimate: 87.43 KiB
allocs estimate: 3757
--------------
minimum time: 281.032 μs (0.00% GC)
median time: 526.934 μs (0.00% GC)
mean time: 475.180 μs (2.88% GC)
maximum time: 5.601 ms (87.13% GC)
--------------
samples: 10000
evals/sample: 1"><pre class="notranslate">BenchmarkTools<span class="pl-k">.</span>Trial<span class="pl-k">:</span>
memory estimate<span class="pl-k">:</span> <span class="pl-c1">87.43</span> KiB
allocs estimate<span class="pl-k">:</span> <span class="pl-c1">3757</span>
<span class="pl-k">--------------</span>
minimum time<span class="pl-k">:</span> <span class="pl-c1">281.032</span> μs (<span class="pl-c1">0.00</span><span class="pl-k">%</span> GC)
median time<span class="pl-k">:</span> <span class="pl-c1">526.934</span> μs (<span class="pl-c1">0.00</span><span class="pl-k">%</span> GC)
mean time<span class="pl-k">:</span> <span class="pl-c1">475.180</span> μs (<span class="pl-c1">2.88</span><span class="pl-k">%</span> GC)
maximum time<span class="pl-k">:</span> <span class="pl-c1">5.601</span> ms (<span class="pl-c1">87.13</span><span class="pl-k">%</span> GC)
<span class="pl-k">--------------</span>
samples<span class="pl-k">:</span> <span class="pl-c1">10000</span>
evals<span class="pl-k">/</span>sample<span class="pl-k">:</span> <span class="pl-c1">1</span></pre></div>
<p dir="auto">and using broadcast:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="BenchmarkTools.Trial:
memory estimate: 854.34 KiB
allocs estimate: 37976
--------------
minimum time: 3.246 ms (0.00% GC)
median time: 6.185 ms (0.00% GC)
mean time: 5.762 ms (2.40% GC)
maximum time: 13.919 ms (26.41% GC)
--------------
samples: 867
evals/sample: 1"><pre class="notranslate">BenchmarkTools<span class="pl-k">.</span>Trial<span class="pl-k">:</span>
memory estimate<span class="pl-k">:</span> <span class="pl-c1">854.34</span> KiB
allocs estimate<span class="pl-k">:</span> <span class="pl-c1">37976</span>
<span class="pl-k">--------------</span>
minimum time<span class="pl-k">:</span> <span class="pl-c1">3.246</span> ms (<span class="pl-c1">0.00</span><span class="pl-k">%</span> GC)
median time<span class="pl-k">:</span> <span class="pl-c1">6.185</span> ms (<span class="pl-c1">0.00</span><span class="pl-k">%</span> GC)
mean time<span class="pl-k">:</span> <span class="pl-c1">5.762</span> ms (<span class="pl-c1">2.40</span><span class="pl-k">%</span> GC)
maximum time<span class="pl-k">:</span> <span class="pl-c1">13.919</span> ms (<span class="pl-c1">26.41</span><span class="pl-k">%</span> GC)
<span class="pl-k">--------------</span>
samples<span class="pl-k">:</span> <span class="pl-c1">867</span>
evals<span class="pl-k">/</span>sample<span class="pl-k">:</span> <span class="pl-c1">1</span></pre></div>
<p dir="auto">Am I hitting some broadcasting splatting penalty or something?</p>
| 1 |
<ul dir="auto">
<li>[*] I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li>[*] I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.6.3-release</li>
<li>Operating System version: windows 10</li>
<li>Java version: JDK 1.8</li>
</ul>
<h3 dir="auto">Step to reproduce this issue</h3>
<ol dir="auto">
<li>mvn clean install -e</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">What do you expected from the above steps?<br>
UT pass</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What is actually happen?<br>
dubbo-common IOUtilsTest#testWriteLines assert error</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="expect "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890\r"
actually "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890\r\n""><pre class="notranslate"><code class="notranslate">expect "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890\r"
actually "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890\r\n"
</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.6.4</li>
<li>Operating System version: CentOS 6.7</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Getter
@Setter
public class BaseResponse {
@JSONField(name = "order_id")
private int orderId;
}"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">Getter</span>
<span class="pl-c1">@</span><span class="pl-c1">Setter</span>
<span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">BaseResponse</span> {
<span class="pl-c1">@</span><span class="pl-c1">JSONField</span>(<span class="pl-s1">name</span> = <span class="pl-s">"order_id"</span>)
<span class="pl-k">private</span> <span class="pl-smi">int</span> <span class="pl-s1">orderId</span>;
}</pre></div>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">BaseResponse {<br>
private int order_id;<br>
}</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">BaseResponse {<br>
private int orderId;<br>
}</p>
| 0 |
<h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">To avoid constant serializing and function duplication and improve handling of work areas, introduce WorkAreaUniqueId struct instead of using serialized string</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.18363.900]
PowerToys version: v0.19.1
PowerToy module for which you are reporting the bug (if applicable): PowerToys Run"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18363.900]
PowerToys version: v0.19.1
PowerToy module for which you are reporting the bug (if applicable): PowerToys Run
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>For example set PT Run hotkey to default <code class="notranslate">Alt</code> + <code class="notranslate">Space</code></li>
<li>Sometimes this hotkey triggers window menu instead of opening PT Run (check <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="654970150" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/4922" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/4922/hovercard" href="https://github.com/microsoft/PowerToys/issues/4922">#4922</a>)</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">PT Run launches</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Sometimes window menu opens. I tried different hotkeys (eg: <code class="notranslate">Win</code> + <code class="notranslate">Space</code>) the same thing happened sometimes. This time sometimes keyboard layout selector opened instead of PT Run.</p>
<h1 dir="auto">Screenshots</h1>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/29130291/87236276-306d5a00-c3f8-11ea-87fe-0a7859b07df4.png"><img src="https://user-images.githubusercontent.com/29130291/87236276-306d5a00-c3f8-11ea-87fe-0a7859b07df4.png" alt="image" style="max-width: 100%;"></a></p>
| 0 |
<p dir="auto">If you have a navbar with navbar-fixed-top, and items in a navbar-right, the last item hangs over the container by 15px. You can see this with the example on the getbootstrap site: <a href="http://getbootstrap.com/examples/navbar-fixed-top/" rel="nofollow">http://getbootstrap.com/examples/navbar-fixed-top/</a></p>
|
<p dir="auto"><strong>Issue in:</strong> <a href="http://getbootstrap.com/components/#navbar" rel="nofollow">Navbar component</a></p>
<div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=".navbar-nav.navbar-right:last-child {
margin-right: -15px;
}"><pre class="notranslate">.<span class="pl-c1">navbar-nav</span>.<span class="pl-c1">navbar-right</span><span class="pl-kos">:</span><span class="pl-c1">last-child</span> {
<span class="pl-c1">margin-right</span><span class="pl-kos">:</span> <span class="pl-c1">-15<span class="pl-smi">px</span></span>;
}</pre></div>
<p dir="auto">That's the CSS style applied on the right-floating menu items' container. It does its intended job only as long as there's only one <strong><code class="notranslate"><element class=" ... navbar-right"></code></strong> in the Navbar. Add another and it messes the spacing of the last container ("last" not in HTML but in the order of appearance in browser, considering it's <code class="notranslate">float: right;</code>).</p>
<p dir="auto">The <a href="http://getbootstrap.com/examples/dashboard/" rel="nofollow">Dashboard example template</a> has the necessary items to reproduce the issue. Take a look at the snapshots, they should be self-explanatory.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3120801/2682509/0637f3a4-c19c-11e3-806e-53709349a75a.png"><img src="https://cloud.githubusercontent.com/assets/3120801/2682509/0637f3a4-c19c-11e3-806e-53709349a75a.png" alt="Screenshot (1)" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3120801/2682508/0637b5c4-c19c-11e3-8762-a173fc9d3eae.png"><img src="https://cloud.githubusercontent.com/assets/3120801/2682508/0637b5c4-c19c-11e3-8762-a173fc9d3eae.png" alt="Screenshot (2)" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3120801/2682510/06389d68-c19c-11e3-8da9-df9ea71b6ee8.png"><img src="https://cloud.githubusercontent.com/assets/3120801/2682510/06389d68-c19c-11e3-8da9-df9ea71b6ee8.png" alt="Screenshot (3)" style="max-width: 100%;"></a></p>
<p dir="auto">I am not saying <code class="notranslate">margin-right: -15px;</code> is wrong. It's needed, but doesn't suit all cases like I clearly explained. Manually adding a class like <code class="notranslate">.last-child</code> on the element itself is probably the way to go, but what do I know!</p>
| 1 |
<blockquote>
<p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Lapixx/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Lapixx">@Lapixx</a></p>
</blockquote>
<h3 dir="auto">Bug information</h3>
<ul dir="auto">
<li><strong>Babel version:</strong> 6.7.7</li>
<li><strong>Node version:</strong> 5.3.0</li>
<li><strong>npm version:</strong> 3.3.12</li>
</ul>
<h3 dir="auto">Options</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ES2015 and Stage 0 preset."><pre class="notranslate"><code class="notranslate">ES2015 and Stage 0 preset.
</code></pre></div>
<h3 dir="auto">Input code</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// modified from kadirahq/graphql-errors
const modifyResolver = (field, handler) => {
const originalResolve = field.resolve;
field.resolve = async (...args) => { // Workaround 1: use `async function(...args) {`
try {
// const b = args; // Workaround 2: Access args -- even when unused.
const res = originalResolve(...args); // Problem: arguments is undefined here
return await Promise.resolve(res);
}
catch (err) {
throw handler(err);
}
};
};"><pre class="notranslate"><code class="notranslate">// modified from kadirahq/graphql-errors
const modifyResolver = (field, handler) => {
const originalResolve = field.resolve;
field.resolve = async (...args) => { // Workaround 1: use `async function(...args) {`
try {
// const b = args; // Workaround 2: Access args -- even when unused.
const res = originalResolve(...args); // Problem: arguments is undefined here
return await Promise.resolve(res);
}
catch (err) {
throw handler(err);
}
};
};
</code></pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">Basically, when I try to define a function like so:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const myFunc = async (...args) => {
otherFunc(...args);
};"><pre class="notranslate"><code class="notranslate">const myFunc = async (...args) => {
otherFunc(...args);
};
</code></pre></div>
<p dir="auto">The arguments are undefined. When you look at the output you can clearly see that <code class="notranslate">arguments</code> gets assigned outside of the function scope. I'm not sure why that happens. Removing <code class="notranslate">async</code> fixes the problem, using the <code class="notranslate">function</code> keyword fixes the problem, and (my favourite), assigning <code class="notranslate">args</code> to a value (or otherwise accessing it) also fixes the problem.</p>
<p dir="auto">[[ https://babeljs.io/repl/#?evaluate=true&lineWrap=false&presets=es2015%2Creact%2Cstage-0&experimental=true&loose=false&spec=false&code=%2F%2F%20modified%20from%20kadirahq%2Fgraphql-errors%0A%0Aconst%20modifyResolver%20%3D%20(field%2C%20handler)%20%3D%3E%20%7B%0A%20%20%0A%20%20const%20originalResolve%20%3D%20field.resolve%3B%0A%20%20%0A%20%20field.resolve%20%3D%20async%20(...args)%20%3D%3E%20%7B%20%2F%2F%20Workaround%201%3A%20use%20%60async%20function(...args)%20%7B%60%0A%0A%20%20%20%20try%20%7B%0A%20%20%20%20%20%20%2F%2F%20const%20b%20%3D%20args%3B%20%2F%2F%20Workaround%202%3A%20Access%20args%20--%20even%20when%20unused.%0A%20%20%20%20%20%20const%20res%20%3D%20originalResolve(...args)%3B%20%2F%2F%20Problem%3A%20arguments%20is%20undefined%20here%0A%20%20%20%20%20%20return%20await%20Promise.resolve(res)%3B%0A%20%20%20%20%7D%0A%20%20%20%20catch%20(err)%20%7B%0A%20%20%20%20%20%20throw%20handler(err)%3B%0A%20%20%20%20%7D%0A%20%20%7D%3B%0A%7D%3B | REPL with sample code ]]</p>
|
<blockquote>
<p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/spudly/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/spudly">@spudly</a></p>
</blockquote>
<h3 dir="auto">Options</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="preset-es2015, preset-stage-3"><pre class="notranslate"><code class="notranslate">preset-es2015, preset-stage-3
</code></pre></div>
<h3 dir="auto">Input code</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const callTest = async (...args) => {
await test(...args);
};
const test = (arg) => console.log(arg);
callTest('yo');"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-en">callTest</span> <span class="pl-c1">=</span> <span class="pl-k">async</span> <span class="pl-kos">(</span>...<span class="pl-s1">args</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">await</span> <span class="pl-en">test</span><span class="pl-kos">(</span>...<span class="pl-s1">args</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-en">test</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">arg</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">arg</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">callTest</span><span class="pl-kos">(</span><span class="pl-s">'yo'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">This is similar to: T2776: Generators and async functions with default args place _this and _arguments incorrectly.</p>
<p dir="auto">When you use an async arrow function that uses a rest arg and then spread the resulting array into another function call without first accessing the variable, the _arguments variable is placed outside of the function, causing it to send the wrong arguments.</p>
<p dir="auto">Simply accessing the variable fixes this issue. All I have to do is add "args;" as the first line in the callTest() function and it starts working.</p>
<p dir="auto">Tested with the REPL at babeljs.io, version 6.7.4.</p>
| 1 |
<p dir="auto">Using <code class="notranslate">.table-reponsive</code> only works on the smallest screen size.</p>
<p dir="auto">Solution 1: Use <code class="notranslate">@grid-float-breakpoint</code> so it becomes responsive when the navbar does (currently what we do in projects)<br>
Solution 2: Use another variable that defaults to <code class="notranslate">@screen-sm-max</code> that can be overwritten in another less file</p>
|
<p dir="auto">I have a panel with a table inside and the table has a few columns making it rather wide. If you view the panel table on a mobile device the table is wider than the panel making it look bad.</p>
<p dir="auto">This only occurs on tables that are quite wide. I've tried using table-responsive and the issue still occurs. This occurs when the word is too long to \n to the next line. Simple fix would be to just make the panel width move with the table width.</p>
<p dir="auto">Tested on Chrome and Firefox for Mac with the latest versions.</p>
<p dir="auto"><a href="http://jsbin.com/bixetifi/1" rel="nofollow">http://jsbin.com/bixetifi/1</a></p>
<p dir="auto">Image:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3672996/2541520/e04375ca-b5dd-11e3-8491-cdd0a3d835c7.png"><img src="https://cloud.githubusercontent.com/assets/3672996/2541520/e04375ca-b5dd-11e3-8491-cdd0a3d835c7.png" alt="panel-table issue" style="max-width: 100%;"></a></p>
| 1 |
<p dir="auto">If I take away the minWidth from a select control, I expect the width to adjust to the currently selected option. This works perfectly on Chrome on my Mac. However it shows truncated text with ellipses on Safari as well as on mobile browsers.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Here's the expected behavior which is what I get on Chrome. This is after removing <code class="notranslate">minWidth: 120</code> from the Select example:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1220198/32149549-84e256ba-bcdc-11e7-8e5a-cba7ab3f9da7.png"><img src="https://user-images.githubusercontent.com/1220198/32149549-84e256ba-bcdc-11e7-8e5a-cba7ab3f9da7.png" alt="image" style="max-width: 100%;"></a></p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Here's the current behavior in Safari and several mobile browsers:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1220198/32149507-fecf48da-bcdb-11e7-99f5-fa295974dc3b.png"><img src="https://user-images.githubusercontent.com/1220198/32149507-fecf48da-bcdb-11e7-99f5-fa295974dc3b.png" alt="image" style="max-width: 100%;"></a></p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">In the <a href="https://github.com/callemall/material-ui/blob/v1-beta/docs/src/pages/demos/selects/SimpleSelect.js">SimpleSelect</a> example, remove minWidth:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" formControl: {
margin: theme.spacing.unit,
// minWidth: 120,
},"><pre class="notranslate"><code class="notranslate"> formControl: {
margin: theme.spacing.unit,
// minWidth: 120,
},
</code></pre></div>
<p dir="auto">Change some of the options to be super long to exaggerate the problem:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<MenuItem value={10}>Ten</MenuItem>
<MenuItem value={20}>Twenty</MenuItem>
<MenuItem value={30}>Three Hundred and twenty</MenuItem>"><pre class="notranslate"><code class="notranslate"><MenuItem value={10}>Ten</MenuItem>
<MenuItem value={20}>Twenty</MenuItem>
<MenuItem value={30}>Three Hundred and twenty</MenuItem>
</code></pre></div>
<h2 dir="auto">Context</h2>
<p dir="auto">I am trying to pack 3 select controls in a mobile app horizontally. Having them autosize makes the best use of space and shows all the selected options without ellipses. If I have to specify minWidths, it will not make the best use of the available space.</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>v1.0.0-beta.18</td>
</tr>
<tr>
<td>React</td>
<td>16.0.0</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome and Safari on Mac + Mobile</td>
</tr>
<tr>
<td>etc</td>
<td></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/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">Using <code class="notranslate">create-react-app-with-typescript</code> should work when I attempt to install it</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">I've tried to install <code class="notranslate">create-react-app-with-typescript</code> about a dozen different ways, and every single time I try to run it, I get the error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(project_dir)/node_modules/material-ui/styles/MuiThemeProvider.d.ts
(8,10): Type 'StyleSheet' is not generic."><pre class="notranslate"><code class="notranslate">(project_dir)/node_modules/material-ui/styles/MuiThemeProvider.d.ts
(8,10): Type 'StyleSheet' is not generic.
</code></pre></div>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Download <code class="notranslate">create-react-app-with-typescript</code></li>
<li><code class="notranslate">npm install --save</code></li>
<li><code class="notranslate">yarn start</code></li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">So far, I've been trying to install this so I can build a web frontend, and it's not worked at all.</p>
<h2 dir="auto">Your Environment</h2>
<p dir="auto">Mac OS, using brew to install. All settings identical to those in <code class="notranslate">create-react-app-with-typescript</code>. Using Google Chrome with the Fish terminal, but I'm fairly certain neither of those affect the issue.</p>
| 0 |
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/taste-the-bootstrap-button-color-rainbow#?solution=%0A%3Clink%20href%3D%22https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Cdiv%20class%3D%22container-fluid%22%3E%0A%20%20%3Ch2%20class%3D%22red-text%20text-center%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%20%20%3Cp%3EClick%20here%20for%20%3Ca%20href%3D%22%23%22%3Ecat%20photos%3C%2Fa%3E.%3C%2Fp%3E%0A%0A%20%20%3Ca%20href%3D%22%23%22%3E%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%20alt%3D%22A%20cute%20orange%20cat%20lying%20on%20its%20back.%20%22%3E%3C%2Fa%3E%0A%0A%20%20%3Cimg%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-running-cats%22%20class%3D%22img-responsive%22%20alt%3D%22Three%20kittens%20running%20towards%20the%20camera.%20%22%3E%0A%20%20%3Cbutton%20class%3D%22btn%20btn-block%22%3ELike%3C%2Fbutton%3E%0A%20%20%3Cp%3EThings%20cats%20love%3A%3C%2Fp%3E%0A%20%20%3Cul%3E%0A%20%20%20%20%3Cli%3Ecat%20nip%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Elaser%20pointers%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Elasagna%3C%2Fli%3E%0A%20%20%3C%2Ful%3E%0A%20%20%3Cp%3ETop%203%20things%20cats%20hate%3A%3C%2Fp%3E%0A%20%20%3Col%3E%0A%20%20%20%20%3Cli%3Eflea%20treatment%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Ethunder%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Eother%20cats%3C%2Fli%3E%0A%20%20%3C%2Fol%3E%0A%20%20%3Cform%20fccfaa%3D%22%2Fsubmit-cat-photo%22%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22radio%22%20name%3D%22indoor-outdoor%22%3E%20Indoor%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22radio%22%20name%3D%22indoor-outdoor%22%3E%20Outdoor%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Loving%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Lazy%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Crazy%3C%2Flabel%3E%0A%20%20%20%20%3Cinput%20type%3D%22text%22%20placeholder%3D%22cat%20photo%20URL%22%20required%3E%0A%20%20%20%20%3Cbutton%20type%3D%22submit%22%3ESubmit%3C%2Fbutton%3E%0A%20%20%3C%2Fform%3E%0A%3C%2Fdiv%3E%0A" rel="nofollow">Taste the Bootstrap Button Color Rainbow</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My code:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}
h2 {
font-family: Lobster, Monospace;
}
p {
font-size: 16px;
font-family: Monospace;
}
.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}
.smaller-image {
width: 100px;
}
</style>
<div class="container-fluid">
<h2 class="red-text text-center">CatPhotoApp</h2>
<p>Click here for <a href="#">cat photos</a>.</p>
<a href="#"><img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. "></a>
<img src="https://bit.ly/fcc-running-cats" class="img-responsive" alt="Three kittens running towards the camera. ">
<button class="btn btn-block">Like</button> **# I could not type,click past the btn-b <-----
**
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Crazy</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>
"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">link</span> <span class="pl-c1">href</span>="<span class="pl-s">https://fonts.googleapis.com/css?family=Lobster</span>" <span class="pl-c1">rel</span>="<span class="pl-s">stylesheet</span>" <span class="pl-c1">type</span>="<span class="pl-s">text/css</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">style</span><span class="pl-kos">></span>
.<span class="pl-c1">red-text</span> {
<span class="pl-c1">color</span><span class="pl-kos">:</span> red;
}
<span class="pl-ent">h2</span> {
<span class="pl-c1">font-family</span><span class="pl-kos">:</span> Lobster<span class="pl-kos">,</span> Monospace;
}
<span class="pl-ent">p</span> {
<span class="pl-c1">font-size</span><span class="pl-kos">:</span> <span class="pl-c1">16<span class="pl-smi">px</span></span>;
<span class="pl-c1">font-family</span><span class="pl-kos">:</span> Monospace;
}
.<span class="pl-c1">thick-green-border</span> {
<span class="pl-c1">border-color</span><span class="pl-kos">:</span> green;
<span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>;
<span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid;
<span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">50<span class="pl-smi">%</span></span>;
}
.<span class="pl-c1">smaller-image</span> {
<span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">100<span class="pl-smi">px</span></span>;
}
<span class="pl-kos"></</span><span class="pl-ent">style</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">container-fluid</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text text-center</span>"<span class="pl-kos">></span>CatPhotoApp<span class="pl-kos"></</span><span class="pl-ent">h2</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Click here for <span class="pl-kos"><</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">></span>cat photos<span class="pl-kos"></</span><span class="pl-ent">a</span><span class="pl-kos">></span>.<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">img</span> <span class="pl-c1">class</span>="<span class="pl-s">smaller-image thick-green-border</span>" <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-relaxing-cat</span>" <span class="pl-c1">alt</span>="<span class="pl-s">A cute orange cat lying on its back. </span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">a</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">img</span> <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-running-cats</span>" <span class="pl-c1">class</span>="<span class="pl-s">img-responsive</span>" <span class="pl-c1">alt</span>="<span class="pl-s">Three kittens running towards the camera. </span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-block</span>"<span class="pl-kos">></span>Like<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span> **# I could not type,click past the btn-b <span class="pl-kos"><</span><span class="pl-ent">-----</span>
<span class="pl-c1">**</span><span class="pl-kos"></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Things cats love:<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">ul</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>cat nip<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>laser pointers<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>lasagna<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">ul</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Top 3 things cats hate:<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">ol</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>flea treatment<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>thunder<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>other cats<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">ol</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">form</span> <span class="pl-c1">action</span>="<span class="pl-s">/submit-cat-photo</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">indoor-outdoor</span>"<span class="pl-kos">></span> Indoor<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">indoor-outdoor</span>"<span class="pl-kos">></span> Outdoor<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">></span> Loving<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">></span> Lazy<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">></span> Crazy<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" <span class="pl-c1">placeholder</span>="<span class="pl-s">cat photo URL</span>" <span class="pl-c1">required</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">type</span>="<span class="pl-s">submit</span>"<span class="pl-kos">></span>Submit<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">form</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div>
|
<p dir="auto">Please tell us in detail here how we can make this challenge better. Padding-right should say 20px in directions on the bottom, it says 40px.</p>
| 0 |
<p dir="auto">The <code class="notranslate">orient</code> method in countplot does not work. Pass a list like:<br>
<code class="notranslate">['Rose', 'Teal', 'Teal', 'Orange', 'Orange', 'Orange']</code> and try to adjust the orientation to see the issue.</p>
|
<p dir="auto">Hi,<br>
The code in IPython notebook:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="%matplotlib inline
import pandas as pd
import seaborn as sns
df = pd.DataFrame([[2], [2], [1], [1], [1], [3]])
sns.countplot(x=0, data=df, orient='v')
sns.countplot(x=0, data=df, orient='h')"><pre class="notranslate"><code class="notranslate">%matplotlib inline
import pandas as pd
import seaborn as sns
df = pd.DataFrame([[2], [2], [1], [1], [1], [3]])
sns.countplot(x=0, data=df, orient='v')
sns.countplot(x=0, data=df, orient='h')
</code></pre></div>
<p dir="auto">produces exactly the same output plots. This means that the option for orienting is not working.</p>
| 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<p dir="auto">When using the <code class="notranslate">Chip</code> element, behavior differs in browser. While in Chrome it has width calculated based on label and avatar, in MS Edge the element is 100% width. I did a <a href="https://codesandbox.io/s/8x8n9q5pyj" rel="nofollow">CodeSandbox snippet</a> to reproduce it.</p>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">The <code class="notranslate">Chip</code> should be as narrow as its content, like it does in Chrome</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">On MS Edge (versions: Microsoft Edge 41.16299.15.0; Microsoft EdgeHTML 16.16299) the <code class="notranslate">Chip</code> element is full width</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li><a href="https://codesandbox.io/s/8x8n9q5pyj" rel="nofollow">CodeSandbox snippet</a></li>
<li>Add a <code class="notranslate">Chip</code> element to App</li>
<li>The rendering differs in Chrome and Edge</li>
<li>Wrapping Chip with <code class="notranslate">inline-flex</code> container (e.g. <code class="notranslate">Badge</code> or custom div) fixes an issue.</li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">I'm rendering a statistic page, where <code class="notranslate">Avatar</code> shows ID and <code class="notranslate">label</code> displays aggregation data. I show each chip on new line (in a narrow <code class="notranslate">Grid</code> element) so it's not a big problem, but in this case Avatar is not left-most.</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>1.0.0-beta.24</td>
</tr>
<tr>
<td>React</td>
<td>16.2</td>
</tr>
<tr>
<td>browser</td>
<td>Edge</td>
</tr>
<tr>
<td>Microsoft Edge</td>
<td>41.16299.15.0</td>
</tr>
<tr>
<td>Microsoft EdgeHTML</td>
<td>16.16299</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/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">When passing a function as the <code class="notranslate">theme</code> prop to <code class="notranslate">MuiThemeProvider</code> the first parameter of that function is <code class="notranslate">outerTheme</code>. <code class="notranslate">outerTheme</code> should contain the actual theme properties.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto"><code class="notranslate">outerTheme</code> is <code class="notranslate">null</code>. Trying to access any property gives an error (of course): <code class="notranslate">Cannot read property 'whatever' of null</code>.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">Even the <a href="https://material-ui-next.com/customization/themes/#typography" rel="nofollow">official example</a> from the docs doesn't work:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function theme(outerTheme) {
return createMuiTheme({
typography: {
fontFamily:
'-apple-system,system-ui,BlinkMacSystemFont,' +
'"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif',
body1: {
fontWeight: outerTheme.typography.fontWeightMedium, // <-- Cannot read property 'typography' of null
},
button: {
fontStyle: 'italic',
},
},
});
}"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">theme</span><span class="pl-kos">(</span><span class="pl-s1">outerTheme</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</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-kos">{</span>
<span class="pl-c1">fontFamily</span>:
<span class="pl-s">'-apple-system,system-ui,BlinkMacSystemFont,'</span> <span class="pl-c1">+</span>
<span class="pl-s">'"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif'</span><span class="pl-kos">,</span>
<span class="pl-c1">body1</span>: <span class="pl-kos">{</span>
<span class="pl-c1">fontWeight</span>: <span class="pl-s1">outerTheme</span><span class="pl-kos">.</span><span class="pl-c1">typography</span><span class="pl-kos">.</span><span class="pl-c1">fontWeightMedium</span><span class="pl-kos">,</span> <span class="pl-c">// <-- Cannot read property 'typography' of null</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">button</span>: <span class="pl-kos">{</span>
<span class="pl-c1">fontStyle</span>: <span class="pl-s">'italic'</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Check it out on <a href="https://codesandbox.io/s/xrr7mvpm04" rel="nofollow">CodeSandbox</a>.</p>
<h2 dir="auto">Context</h2>
<p dir="auto">I wanted to overwrite the line height of <code class="notranslate">body2</code> with the line height of <code class="notranslate">body1</code></p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>1.0.0-beta.23</td>
</tr>
<tr>
<td>React</td>
<td>16.2.0</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome 63.0.3239.84</td>
</tr>
</tbody>
</table>
| 0 |
<p dir="auto">I am using Anaconda Python distribution. I have noticed, that among 1000 randomly generated unitary matrices (that I get from QR decomposition), there always is one "bad" matrix. It is bad in the sense of results of DGETRF -- it returns the same pivot twice.</p>
<p dir="auto">Here is simple example of what is happening (pivot 247 is duplicated):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: import numpy as np
In [2]: np.random.seed(100)
In [3]: a = [np.linalg.qr(np.random.randn(1800, 60))[0].copy(order='F') for i in range(141)]
In [4]: from scipy.linalg.lapack import dgetrf
In [5]: dgetrf(a[140])[2]
Out[5]: 0
In [6]: dgetrf(a[140])[1]
Out[6]:
array([ 624, 1296, 240, 285, 538, 762, 748, 1318, 247, 793, 470,
1604, 247, 1461, 1694, 975, 781, 80, 805, 1160, 580, 79,
226, 65, 225, 771, 1403, 242, 515, 1450, 213, 822, 552,
842, 326, 1223, 248, 702, 350, 1625, 873, 620, 349, 660,
1663, 406, 547, 749, 1230, 1585, 488, 1298, 1475, 408, 993,
578, 1068, 1108, 1405, 248], dtype=int32)"><pre class="notranslate"><code class="notranslate">In [1]: import numpy as np
In [2]: np.random.seed(100)
In [3]: a = [np.linalg.qr(np.random.randn(1800, 60))[0].copy(order='F') for i in range(141)]
In [4]: from scipy.linalg.lapack import dgetrf
In [5]: dgetrf(a[140])[2]
Out[5]: 0
In [6]: dgetrf(a[140])[1]
Out[6]:
array([ 624, 1296, 240, 285, 538, 762, 748, 1318, 247, 793, 470,
1604, 247, 1461, 1694, 975, 781, 80, 805, 1160, 580, 79,
226, 65, 225, 771, 1403, 242, 515, 1450, 213, 822, 552,
842, 326, 1223, 248, 702, 350, 1625, 873, 620, 349, 660,
1663, 406, 547, 749, 1230, 1585, 488, 1298, 1475, 408, 993,
578, 1068, 1108, 1405, 248], dtype=int32)
</code></pre></div>
<p dir="auto">I also attach matrix in npz format, which is "bad" for scipy.linalg.lapack.dgetrf (pivot 810 is duplicated)<br>
<a href="https://github.com/scipy/scipy/files/329667/matrix.zip">matrix.zip</a></p>
<p dir="auto">However, if I use scipy.linalg.lu, then no pivot is duplicated, although resulting pivots are, practically, the same, as from scipy.linalg.lapack.dgetrf</p>
|
<h3 dir="auto">Describe your issue.</h3>
<p dir="auto">Hi, I just got the MBA M1 and I am trying to install SciPy, but for some reason I am getting errors which I don't quite understand. Would appreciate any advice on how to move forward. I am running Monterey 12.0.1. I have been able to install most libraries, just scipy has been giving me problems. The whole error message is too long to post, but I can reply with relevant information, just get back to me on this thread.</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="~ % brew --version
Homebrew 3.3.3
Homebrew/homebrew-core (git revision 4530cc439e5; last commit 2021-11-12)
Homebrew/homebrew-cask (git revision e60e8f7a05; last commit 2021-11-13)
~ % pip install cython pybind11 pythran numpy
Requirement already satisfied: cython in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (0.29.24)
Requirement already satisfied: pybind11 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (2.8.1)
Requirement already satisfied: pythran in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (0.10.0)
Requirement already satisfied: numpy in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (1.21.4)
Requirement already satisfied: beniget~=0.4.0 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from pythran) (0.4.1)
Requirement already satisfied: gast~=0.5.0 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from pythran) (0.5.2)
Requirement already satisfied: ply>=3.4 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from pythran) (3.11)
~ % OPENBLAS=$(brew --prefix openblas) CFLAGS="-falign-functions=8 ${CFLAGS}" pip install --no-use-pep517 scipy==1.7.0"><pre class="notranslate"><span class="pl-c1">~</span> <span class="pl-c1">%</span> <span class="pl-s1">brew</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-s1">version</span>
<span class="pl-v">Homebrew</span> <span class="pl-c1">3.3</span><span class="pl-c1">.3</span>
<span class="pl-v">Homebrew</span><span class="pl-c1">/</span><span class="pl-s1">homebrew</span><span class="pl-c1">-</span><span class="pl-en">core</span> (<span class="pl-s1">git</span> <span class="pl-s1">revision</span> <span class="pl-c1">4530</span><span class="pl-s1">cc439e5</span>; <span class="pl-s1">last</span> <span class="pl-s1">commit</span> <span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">11</span><span class="pl-c1">-</span><span class="pl-c1">12</span>)
<span class="pl-v">Homebrew</span><span class="pl-c1">/</span><span class="pl-s1">homebrew</span><span class="pl-c1">-</span><span class="pl-en">cask</span> (<span class="pl-s1">git</span> <span class="pl-s1">revision</span> <span class="pl-s1">e60e8f7a05</span>; <span class="pl-s1">last</span> <span class="pl-s1">commit</span> <span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">11</span><span class="pl-c1">-</span><span class="pl-c1">13</span>)
<span class="pl-c1">~</span> <span class="pl-c1">%</span> <span class="pl-s1">pip</span> <span class="pl-s1">install</span> <span class="pl-s1">cython</span> <span class="pl-s1">pybind11</span> <span class="pl-s1">pythran</span> <span class="pl-s1">numpy</span>
<span class="pl-v">Requirement</span> <span class="pl-s1">already</span> <span class="pl-s1">satisfied</span>: <span class="pl-s1">cython</span> <span class="pl-c1">in</span> <span class="pl-c1">/</span><span class="pl-v">Library</span><span class="pl-c1">/</span><span class="pl-v">Frameworks</span><span class="pl-c1">/</span><span class="pl-v">Python</span>.<span class="pl-s1">framework</span><span class="pl-c1">/</span><span class="pl-v">Versions</span><span class="pl-c1">/</span><span class="pl-c1">3.9</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">9</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-en">packages</span> (<span class="pl-c1">0.29</span>.<span class="pl-c1">24</span>)
<span class="pl-v">Requirement</span> <span class="pl-s1">already</span> <span class="pl-s1">satisfied</span>: <span class="pl-s1">pybind11</span> <span class="pl-c1">in</span> <span class="pl-c1">/</span><span class="pl-v">Library</span><span class="pl-c1">/</span><span class="pl-v">Frameworks</span><span class="pl-c1">/</span><span class="pl-v">Python</span>.<span class="pl-s1">framework</span><span class="pl-c1">/</span><span class="pl-v">Versions</span><span class="pl-c1">/</span><span class="pl-c1">3.9</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">9</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-en">packages</span> (<span class="pl-c1">2.8</span>.<span class="pl-c1">1</span>)
<span class="pl-v">Requirement</span> <span class="pl-s1">already</span> <span class="pl-s1">satisfied</span>: <span class="pl-s1">pythran</span> <span class="pl-c1">in</span> <span class="pl-c1">/</span><span class="pl-v">Library</span><span class="pl-c1">/</span><span class="pl-v">Frameworks</span><span class="pl-c1">/</span><span class="pl-v">Python</span>.<span class="pl-s1">framework</span><span class="pl-c1">/</span><span class="pl-v">Versions</span><span class="pl-c1">/</span><span class="pl-c1">3.9</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">9</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-en">packages</span> (<span class="pl-c1">0.10</span>.<span class="pl-c1">0</span>)
<span class="pl-v">Requirement</span> <span class="pl-s1">already</span> <span class="pl-s1">satisfied</span>: <span class="pl-s1">numpy</span> <span class="pl-c1">in</span> <span class="pl-c1">/</span><span class="pl-v">Library</span><span class="pl-c1">/</span><span class="pl-v">Frameworks</span><span class="pl-c1">/</span><span class="pl-v">Python</span>.<span class="pl-s1">framework</span><span class="pl-c1">/</span><span class="pl-v">Versions</span><span class="pl-c1">/</span><span class="pl-c1">3.9</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">9</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-en">packages</span> (<span class="pl-c1">1.21</span>.<span class="pl-c1">4</span>)
<span class="pl-v">Requirement</span> <span class="pl-s1">already</span> <span class="pl-s1">satisfied</span>: <span class="pl-s1">beniget</span><span class="pl-c1">~</span><span class="pl-c1">=</span><span class="pl-c1">0.4</span>.<span class="pl-c1">0</span> <span class="pl-c1">in</span> <span class="pl-c1">/</span><span class="pl-v">Library</span><span class="pl-c1">/</span><span class="pl-v">Frameworks</span><span class="pl-c1">/</span><span class="pl-v">Python</span>.<span class="pl-s1">framework</span><span class="pl-c1">/</span><span class="pl-v">Versions</span><span class="pl-c1">/</span><span class="pl-c1">3.9</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">9</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-en">packages</span> (<span class="pl-s1">from</span> <span class="pl-s1">pythran</span>) (<span class="pl-c1">0.4</span>.<span class="pl-c1">1</span>)
<span class="pl-v">Requirement</span> <span class="pl-s1">already</span> <span class="pl-s1">satisfied</span>: <span class="pl-s1">gast</span><span class="pl-c1">~</span><span class="pl-c1">=</span><span class="pl-c1">0.5</span>.<span class="pl-c1">0</span> <span class="pl-c1">in</span> <span class="pl-c1">/</span><span class="pl-v">Library</span><span class="pl-c1">/</span><span class="pl-v">Frameworks</span><span class="pl-c1">/</span><span class="pl-v">Python</span>.<span class="pl-s1">framework</span><span class="pl-c1">/</span><span class="pl-v">Versions</span><span class="pl-c1">/</span><span class="pl-c1">3.9</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">9</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-en">packages</span> (<span class="pl-s1">from</span> <span class="pl-s1">pythran</span>) (<span class="pl-c1">0.5</span>.<span class="pl-c1">2</span>)
<span class="pl-v">Requirement</span> <span class="pl-s1">already</span> <span class="pl-s1">satisfied</span>: <span class="pl-s1">ply</span><span class="pl-c1">>=</span><span class="pl-c1">3.4</span> <span class="pl-c1">in</span> <span class="pl-c1">/</span><span class="pl-v">Library</span><span class="pl-c1">/</span><span class="pl-v">Frameworks</span><span class="pl-c1">/</span><span class="pl-v">Python</span>.<span class="pl-s1">framework</span><span class="pl-c1">/</span><span class="pl-v">Versions</span><span class="pl-c1">/</span><span class="pl-c1">3.9</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">9</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-en">packages</span> (<span class="pl-s1">from</span> <span class="pl-s1">pythran</span>) (<span class="pl-c1">3.11</span>)
<span class="pl-c1">~</span> <span class="pl-c1">%</span> <span class="pl-v">OPENBLAS</span><span class="pl-c1">=</span>$(<span class="pl-s1">brew</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-s1">prefix</span> <span class="pl-s1">openblas</span>) <span class="pl-v">CFLAGS</span><span class="pl-c1">=</span><span class="pl-s">"-falign-functions=8 ${CFLAGS}"</span> <span class="pl-s1">pip</span> <span class="pl-s1">install</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-s1">no</span><span class="pl-c1">-</span><span class="pl-s1">use</span><span class="pl-c1">-</span><span class="pl-s1">pep517</span> <span class="pl-s1">scipy</span><span class="pl-c1">==</span><span class="pl-c1">1.7</span>.<span class="pl-c1">0</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="ollecting scipy==1.7.0
Using cached scipy-1.7.0.tar.gz (36.1 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy<1.23.0,>=1.16.5 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from scipy==1.7.0) (1.21.4)
Building wheels for collected packages: scipy
Building wheel for scipy (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-install-otct1we2/scipy_443d1f5e1f1e403f84a3325c1b1e3401/setup.py'"'"'; __file__='"'"'/private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-install-otct1we2/scipy_443d1f5e1f1e403f84a3325c1b1e3401/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-wheel-uozvxwo6
cwd: /private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-install-otct1we2/scipy_443d1f5e1f1e403f84a3325c1b1e3401/
error: Command "ar rcs build/temp.macosx-10.9-universal2-3.9/libsc_cephes.a build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/scipy_iv.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/shichi.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/sici.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/sindg.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/sinpi.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/spence.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/stdtr.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/struve.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/tandg.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/tukey.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/unity.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/yn.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/yv.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/zeta.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/zetac.o" failed with exit status 1
########### CLIB COMPILER OPTIMIZATION ###########
Platform :
Architecture: unsupported
Compiler : gcc
CPU baseline :
Requested : optimization disabled
Enabled : none
Flags : none
Extra checks: none
Requested : optimization disabled
CPU dispatch :
Enabled : none
Generated : none
CCompilerOpt.cache_flush[809] : write cache to path -> /private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-install-otct1we2/scipy_443d1f5e1f1e403f84a3325c1b1e3401/build/temp.macosx-10.9-universal2-3.9/ccompiler_opt_cache_clib.py
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-install-otct1we2/scipy_443d1f5e1f1e403f84a3325c1b1e3401/setup.py'"'"'; __file__='"'"'/private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-install-otct1we2/scipy_443d1f5e1f1e403f84a3325c1b1e3401/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-record-bkv6xrzk/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/scipy Check the logs for full command output."><pre class="notranslate">ollecting scipy==1.7.0
Using cached scipy-1.7.0.tar.gz (36.1 MB)
Preparing metadata (setup.py) ... <span class="pl-k">done</span>
Requirement already satisfied: numpy<span class="pl-k"><</span>1.23.0,<span class="pl-k">></span>=1.16.5 <span class="pl-k">in</span> /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from scipy==1.7.0) (1.21.4)
Building wheels <span class="pl-k">for</span> collected packages: scipy
Building wheel <span class="pl-k">for</span> scipy (setup.py) ... error
ERROR: Command errored out with <span class="pl-c1">exit</span> status 1:
command: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -u -c <span class="pl-s"><span class="pl-pds">'</span>import io, os, sys, setuptools, tokenize; sys.argv[0] = <span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>/private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-install-otct1we2/scipy_443d1f5e1f1e403f84a3325c1b1e3401/setup.py<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>; __file__=<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>/private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-install-otct1we2/scipy_443d1f5e1f1e403f84a3325c1b1e3401/setup.py<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>;f = getattr(tokenize, <span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>open<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>, open)(__file__) if os.path.exists(__file__) else io.StringIO(<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>from setuptools import setup; setup()<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>);code = f.read().replace(<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>\r\n<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>\n<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>);f.close();exec(compile(code, __file__, <span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>exec<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>))<span class="pl-pds">'</span></span> bdist_wheel -d /private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-wheel-uozvxwo6
cwd: /private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-install-otct1we2/scipy_443d1f5e1f1e403f84a3325c1b1e3401/
error: Command "ar rcs build/temp.macosx-10.9-universal2-3.9/libsc_cephes.a build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/scipy_iv.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/shichi.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/sici.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/sindg.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/sinpi.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/spence.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/stdtr.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/struve.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/tandg.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/tukey.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/unity.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/yn.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/yv.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/zeta.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/zetac.o" failed with exit status 1
<span class="pl-c"><span class="pl-c">#</span>########## CLIB COMPILER OPTIMIZATION ###########</span>
Platform <span class="pl-c1">:</span>
Architecture: unsupported
Compiler <span class="pl-c1">:</span> gcc
CPU baseline <span class="pl-c1">:</span>
Requested <span class="pl-c1">:</span> optimization disabled
Enabled <span class="pl-c1">:</span> none
Flags <span class="pl-c1">:</span> none
Extra checks: none
Requested <span class="pl-c1">:</span> optimization disabled
CPU dispatch <span class="pl-c1">:</span>
Enabled <span class="pl-c1">:</span> none
Generated <span class="pl-c1">:</span> none
CCompilerOpt.cache_flush[809] <span class="pl-c1">:</span> write cache to path -<span class="pl-k">></span> /private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-install-otct1we2/scipy_443d1f5e1f1e403f84a3325c1b1e3401/build/temp.macosx-10.9-universal2-3.9/ccompiler_opt_cache_clib.py
----------------------------------------
ERROR: Command errored out with <span class="pl-c1">exit</span> status 1: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -u -c <span class="pl-s"><span class="pl-pds">'</span>import io, os, sys, setuptools, tokenize; sys.argv[0] = <span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>/private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-install-otct1we2/scipy_443d1f5e1f1e403f84a3325c1b1e3401/setup.py<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>; __file__=<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>/private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-install-otct1we2/scipy_443d1f5e1f1e403f84a3325c1b1e3401/setup.py<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>;f = getattr(tokenize, <span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>open<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>, open)(__file__) if os.path.exists(__file__) else io.StringIO(<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>from setuptools import setup; setup()<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>);code = f.read().replace(<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>\r\n<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>\n<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>);f.close();exec(compile(code, __file__, <span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>exec<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>))<span class="pl-pds">'</span></span> install --record /private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-record-bkv6xrzk/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/scipy Check the logs <span class="pl-k">for</span> full <span class="pl-c1">command</span> output.</pre></div>
<h3 dir="auto">SciPy/NumPy/Python version information</h3>
<blockquote>
<blockquote>
<blockquote>
<p dir="auto">print(numpy.<strong>version</strong>, sys.version_info) 1.21.4 sys.version_info(major=3, minor=9, micro=8, releaselevel='final', serial=0)</p>
</blockquote>
</blockquote>
</blockquote>
| 0 |
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="console.log(process.argv)"><pre class="notranslate"><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">argv</span><span class="pl-kos">)</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="> node index.js --help
[ '/usr/local/bin/node',
'/tmp/index.js',
'--help' ]"><pre class="notranslate"><code class="notranslate">> node index.js --help
[ '/usr/local/bin/node',
'/tmp/index.js',
'--help' ]
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="> babel-node index.js --help
Usage: node [options] [ -e script | script.js ] [arguments]
node debug script.js [arguments]
Options:
-v, --version print Node.js version
-e, --eval script evaluate script
-p, --print evaluate script and print result
-i, --interactive always enter the REPL even if stdin
does not appear to be a terminal
-r, --require module to preload (option can be repeated)
--no-deprecation silence deprecation warnings
--throw-deprecation throw an exception anytime a deprecated function is used
--trace-deprecation show stack traces on deprecations
--trace-sync-io show stack trace when use of sync IO
is detected after the first tick
--track-heap-objects track heap object allocations for heap snapshots
--v8-options print v8 command line options
--tls-cipher-list=val use an alternative default TLS cipher list
--icu-data-dir=dir set ICU data load path to dir
(overrides NODE_ICU_DATA)
Environment variables:
NODE_PATH ':'-separated list of directories
prefixed to the module search path.
NODE_DISABLE_COLORS set to 1 to disable colors in the REPL
NODE_ICU_DATA data path for ICU (Intl object) data
NODE_REPL_HISTORY path to the persistent REPL history file
Documentation can be found at https://nodejs.org/"><pre class="notranslate"><code class="notranslate">> babel-node index.js --help
Usage: node [options] [ -e script | script.js ] [arguments]
node debug script.js [arguments]
Options:
-v, --version print Node.js version
-e, --eval script evaluate script
-p, --print evaluate script and print result
-i, --interactive always enter the REPL even if stdin
does not appear to be a terminal
-r, --require module to preload (option can be repeated)
--no-deprecation silence deprecation warnings
--throw-deprecation throw an exception anytime a deprecated function is used
--trace-deprecation show stack traces on deprecations
--trace-sync-io show stack trace when use of sync IO
is detected after the first tick
--track-heap-objects track heap object allocations for heap snapshots
--v8-options print v8 command line options
--tls-cipher-list=val use an alternative default TLS cipher list
--icu-data-dir=dir set ICU data load path to dir
(overrides NODE_ICU_DATA)
Environment variables:
NODE_PATH ':'-separated list of directories
prefixed to the module search path.
NODE_DISABLE_COLORS set to 1 to disable colors in the REPL
NODE_ICU_DATA data path for ICU (Intl object) data
NODE_REPL_HISTORY path to the persistent REPL history file
Documentation can be found at https://nodejs.org/
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="> babel-node index.js -- --help
[ 'node', '/tmp/index.js', '--', '--help' ]"><pre class="notranslate"><code class="notranslate">> babel-node index.js -- --help
[ 'node', '/tmp/index.js', '--', '--help' ]
</code></pre></div>
<p dir="auto">It is annoying because I cannot put those <code class="notranslate">--</code> in the shebang (limited to 1 command and 1 arg -- <code class="notranslate">/usr/bin/env babel-node</code> for portability), so all my CLIs are screwed up.</p>
|
<h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>Current Behavior</strong><br>
Throws this exception:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: undefined: Duplicate declaration "i"
1 |
2 | for (let i of 'foo') {
> 3 | let i = 'a';
| ^
4 | console.log(i);
5 | }
6 | "><pre class="notranslate"><code class="notranslate">TypeError: undefined: Duplicate declaration "i"
1 |
2 | for (let i of 'foo') {
> 3 | let i = 'a';
| ^
4 | console.log(i);
5 | }
6 |
</code></pre></div>
<p dir="auto"><strong>Input Code</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="for (let i of 'foo') {
let i = 'a';
console.log(i);
}"><pre class="notranslate"><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-k">of</span> <span class="pl-s">'foo'</span><span class="pl-kos">)</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-s">'a'</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">i</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Expected behavior/code</strong><br>
Should prints <code class="notranslate">'a'</code> three times instead of throws this exception.<br>
This is the behaviour in Node and Safari, for example.</p>
<p dir="auto"><strong>Babel Configuration (CLI command)</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const output = require('@babel/core').transform(`
for (let i of 'foo') {
let i = 'a';
console.log(i);
}
`, {
presets: ['@babel/preset-env']
});"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">output</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'@babel/core'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">transform</span><span class="pl-kos">(</span><span class="pl-s">`</span>
<span class="pl-s">for (let i of 'foo') {</span>
<span class="pl-s"> let i = 'a';</span>
<span class="pl-s"> console.log(i);</span>
<span class="pl-s">}</span>
<span class="pl-s">`</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">presets</span>: <span class="pl-kos">[</span><span class="pl-s">'@babel/preset-env'</span><span class="pl-kos">]</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Environment</strong></p>
<ul dir="auto">
<li>Babel version(s): lastest</li>
<li>Node/npm version: Node 9</li>
<li>OS: macOS High Sierra</li>
<li>Monorepo: yes</li>
<li>How you are using Babel: <code class="notranslate">cli</code></li>
</ul>
| 0 |
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => all</li>
<li>Operating System / Platform => ppc64le GNU/Linux</li>
<li>Compiler => GCC 8.2.0</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Disabled: 10
List failed tests (first 10):
hal_intrin128.uint8x16_BASELINE :
SIMD128: void opencv_test::hal::intrin128::cpu_baseline::test_hal_intrin_uint8()
/worker/buildbot/Power9_Linux_gcc-8__opencv/opencv/modules/core/test/test_intrin_utils.hpp:295: Failure
Expected equality of these values:
data.a
Which is: { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }
out.a
Which is: { 9, 10, 11, 12, 13, 14, 15, 16, 1, 2, 3, 4, 5, 6, 7, 8 }
hal_intrin128.int8x16_BASELINE :
SIMD128: void opencv_test::hal::intrin128::cpu_baseline::test_hal_intrin_int8()
/worker/buildbot/Power9_Linux_gcc-8__opencv/opencv/modules/core/test/test_intrin_utils.hpp:295: Failure
Expected equality of these values:
data.a
Which is: { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }
out.a
Which is: { 9, 10, 11, 12, 13, 14, 15, 16, 1, 2, 3, 4, 5, 6, 7, 8 }
hal_intrin128.uint16x8_BASELINE :
SIMD128: void opencv_test::hal::intrin128::cpu_baseline::test_hal_intrin_uint16()
/worker/buildbot/Power9_Linux_gcc-8__opencv/opencv/modules/core/test/test_intrin_utils.hpp:295: Failure
Expected equality of these values:
data.a
Which is: { 1, 2, 3, 4, 5, 6, 7, 8 }
out.a
Which is: { 5, 6, 7, 8, 1, 2, 3, 4 }
hal_intrin128.int16x8_BASELINE :
SIMD128: void opencv_test::hal::intrin128::cpu_baseline::test_hal_intrin_int16()
/worker/buildbot/Power9_Linux_gcc-8__opencv/opencv/modules/core/test/test_intrin_utils.hpp:295: Failure
Expected equality of these values:
data.a
Which is: { 1, 2, 3, 4, 5, 6, 7, 8 }
out.a
Which is: { 5, 6, 7, 8, 1, 2, 3, 4 }
hal_intrin128.int32x4_BASELINE :
SIMD128: void opencv_test::hal::intrin128::cpu_baseline::test_hal_intrin_int32()
/worker/buildbot/Power9_Linux_gcc-8__opencv/opencv/modules/core/test/test_intrin_utils.hpp:295: Failure
Expected equality of these values:
data.a
Which is: { 1, 2, 3, 4 }
out.a
Which is: { 3, 4, 1, 2 }
hal_intrin128.uint32x4_BASELINE :
SIMD128: void opencv_test::hal::intrin128::cpu_baseline::test_hal_intrin_uint32()
/worker/buildbot/Power9_Linux_gcc-8__opencv/opencv/modules/core/test/test_intrin_utils.hpp:295: Failure
Expected equality of these values:
data.a
Which is: { 1, 2, 3, 4 }
out.a
Which is: { 3, 4, 1, 2 }
hal_intrin128.float32x4_BASELINE :
SIMD128: void opencv_test::hal::intrin128::cpu_baseline::test_hal_intrin_float32()
/worker/buildbot/Power9_Linux_gcc-8__opencv/opencv/modules/core/test/test_intrin_utils.hpp:295: Failure
Expected equality of these values:
data.a
Which is: { 1, 2, 3, 4 }
out.a
Which is: { 3, 4, 1, 2 }"><pre class="notranslate"><code class="notranslate">Disabled: 10
List failed tests (first 10):
hal_intrin128.uint8x16_BASELINE :
SIMD128: void opencv_test::hal::intrin128::cpu_baseline::test_hal_intrin_uint8()
/worker/buildbot/Power9_Linux_gcc-8__opencv/opencv/modules/core/test/test_intrin_utils.hpp:295: Failure
Expected equality of these values:
data.a
Which is: { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }
out.a
Which is: { 9, 10, 11, 12, 13, 14, 15, 16, 1, 2, 3, 4, 5, 6, 7, 8 }
hal_intrin128.int8x16_BASELINE :
SIMD128: void opencv_test::hal::intrin128::cpu_baseline::test_hal_intrin_int8()
/worker/buildbot/Power9_Linux_gcc-8__opencv/opencv/modules/core/test/test_intrin_utils.hpp:295: Failure
Expected equality of these values:
data.a
Which is: { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }
out.a
Which is: { 9, 10, 11, 12, 13, 14, 15, 16, 1, 2, 3, 4, 5, 6, 7, 8 }
hal_intrin128.uint16x8_BASELINE :
SIMD128: void opencv_test::hal::intrin128::cpu_baseline::test_hal_intrin_uint16()
/worker/buildbot/Power9_Linux_gcc-8__opencv/opencv/modules/core/test/test_intrin_utils.hpp:295: Failure
Expected equality of these values:
data.a
Which is: { 1, 2, 3, 4, 5, 6, 7, 8 }
out.a
Which is: { 5, 6, 7, 8, 1, 2, 3, 4 }
hal_intrin128.int16x8_BASELINE :
SIMD128: void opencv_test::hal::intrin128::cpu_baseline::test_hal_intrin_int16()
/worker/buildbot/Power9_Linux_gcc-8__opencv/opencv/modules/core/test/test_intrin_utils.hpp:295: Failure
Expected equality of these values:
data.a
Which is: { 1, 2, 3, 4, 5, 6, 7, 8 }
out.a
Which is: { 5, 6, 7, 8, 1, 2, 3, 4 }
hal_intrin128.int32x4_BASELINE :
SIMD128: void opencv_test::hal::intrin128::cpu_baseline::test_hal_intrin_int32()
/worker/buildbot/Power9_Linux_gcc-8__opencv/opencv/modules/core/test/test_intrin_utils.hpp:295: Failure
Expected equality of these values:
data.a
Which is: { 1, 2, 3, 4 }
out.a
Which is: { 3, 4, 1, 2 }
hal_intrin128.uint32x4_BASELINE :
SIMD128: void opencv_test::hal::intrin128::cpu_baseline::test_hal_intrin_uint32()
/worker/buildbot/Power9_Linux_gcc-8__opencv/opencv/modules/core/test/test_intrin_utils.hpp:295: Failure
Expected equality of these values:
data.a
Which is: { 1, 2, 3, 4 }
out.a
Which is: { 3, 4, 1, 2 }
hal_intrin128.float32x4_BASELINE :
SIMD128: void opencv_test::hal::intrin128::cpu_baseline::test_hal_intrin_float32()
/worker/buildbot/Power9_Linux_gcc-8__opencv/opencv/modules/core/test/test_intrin_utils.hpp:295: Failure
Expected equality of these values:
data.a
Which is: { 1, 2, 3, 4 }
out.a
Which is: { 3, 4, 1, 2 }
</code></pre></div>
<p dir="auto">CI url:<br>
<a href="https://ocv-power.imavr.com/#/builders/10/builds/1" rel="nofollow">https://ocv-power.imavr.com/#/builders/10/builds/1</a></p>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">build opencv on GCC 8.2 and run core accuracy test</p>
|
<p dir="auto">Hello im new to opencv</p>
<p dir="auto">i have installed opencv 3.4.5 , 4.0.0 in RP3 using this guide</p>
<p dir="auto"><a href="https://www.pyimagesearch.com/2017/10/09/optimizing-opencv-on-the-raspberry-pi/" rel="nofollow">https://www.pyimagesearch.com/2017/10/09/optimizing-opencv-on-the-raspberry-pi/</a></p>
<p dir="auto">im trying to run dnn module (yolodarknet) but im getting exactly same results after running with and without NEON and VFPU flags in the makes</p>
<p dir="auto">now a person have reached better results without the optimizations</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="393640708" data-permission-text="Title is private" data-url="https://github.com/AlexeyAB/darknet/issues/2093" data-hovercard-type="issue" data-hovercard-url="/AlexeyAB/darknet/issues/2093/hovercard?comment_id=450171737&comment_type=issue_comment" href="https://github.com/AlexeyAB/darknet/issues/2093#issuecomment-450171737">AlexeyAB/darknet#2093 (comment)</a></p>
<p dir="auto">what am i doing wrong or how do i check ?</p>
| 0 |
<p dir="auto">Version 1.8.9 succeeds but when updating to 1.8.10 I get an error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR in CommonsChunkPlugin: While running in normal mode it's not allowed to use a non-entry chunk"><pre class="notranslate"><code class="notranslate">ERROR in CommonsChunkPlugin: While running in normal mode it's not allowed to use a non-entry chunk
</code></pre></div>
<p dir="auto">The bundle js is not output.</p>
<p dir="auto">My build output from deploying to Heroku (this error is on line 514):<br>
<a href="https://gist.github.com/bdefore/838bbe5be65dcb114014">https://gist.github.com/bdefore/838bbe5be65dcb114014</a></p>
|
<h1 dir="auto">Bug report</h1>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto">Webpack randomly fails to bunle which causes <code class="notranslate">Uncaught SyntaxError: Unexpected token '}'</code> error message and broken code:</p>
<p dir="auto">It seems like it adds the following segment twice, which causes the problem:</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 target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7108843/165164825-293261bc-bbd6-4065-a3fc-cc0d1a8e347f.png"><img src="https://user-images.githubusercontent.com/7108843/165164825-293261bc-bbd6-4065-a3fc-cc0d1a8e347f.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<p dir="auto">The issue occurs randomly, the same codebase might fail without any code change.<br>
<code class="notranslate">cross-env NODE_ENV=production webpack --config ./webpack.config.js</code> is being used here.</p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">The build shouldn't fail randomly, the last 2 duplicate lines shouldn't be added at the end of the file.</p>
<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version: 5.72.0 (this started happening after we've upgraded Webpack from v4 to v5)<br>
Node.js version: 14.0<br>
Operating System: Ubuntu 20.04<br>
Additional tools: gulp, tailwind v1.2, react v16.8</p>
| 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version:2.7.6</li>
<li>Operating System version: linux</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">ServiceNameMapping publish config to config conter,it make config manger being confusion,how can i do to avoid this situation</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5662648/82404252-6692fb00-9a93-11ea-9b03-0c35fe64a0e0.png"><img src="https://user-images.githubusercontent.com/5662648/82404252-6692fb00-9a93-11ea-9b03-0c35fe64a0e0.png" alt="image" style="max-width: 100%;"></a></p>
|
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: master</li>
<li>Operating System version: any</li>
<li>Java version: any</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">no steps</p>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" private void doExportUrlsFor1Protocol(ProtocolConfig protocolConfig, List<URL> registryURLs) {
......
for (MethodConfig method : methods) {
.....
List<ArgumentConfig> arguments = method.getArguments();
for (ArgumentConfig argument : arguments) {
.....
Method[] methods = interfaceClass.getMethods();
for (int i = 0; i < methods.length; i++) {
String methodName = methods[i].getName();
if (methodName.equals(method.getName())) {
Class<?>[] argtypes = methods[i].getParameterTypes();
// one callback in the method
1. if (argument.getIndex() != -1){
......
}else{
if (argclazz.getName().equals(argument.getType())) {
2. if (argument.getIndex() != -1 && argument.getIndex() != j){
}
}
}
}
}
}
}"><pre class="notranslate"><code class="notranslate"> private void doExportUrlsFor1Protocol(ProtocolConfig protocolConfig, List<URL> registryURLs) {
......
for (MethodConfig method : methods) {
.....
List<ArgumentConfig> arguments = method.getArguments();
for (ArgumentConfig argument : arguments) {
.....
Method[] methods = interfaceClass.getMethods();
for (int i = 0; i < methods.length; i++) {
String methodName = methods[i].getName();
if (methodName.equals(method.getName())) {
Class<?>[] argtypes = methods[i].getParameterTypes();
// one callback in the method
1. if (argument.getIndex() != -1){
......
}else{
if (argclazz.getName().equals(argument.getType())) {
2. if (argument.getIndex() != -1 && argument.getIndex() != j){
}
}
}
}
}
}
}
</code></pre></div>
<p dir="auto">上面第二个标记处的判断是否多余呢?因为此时 argument.getIndex() == -1,这个判断是肯定不会执行的,并且此时已经执行了appendParameters(map,argument)</p>
<p dir="auto">What do you expected from the above steps?<br>
remove above unnecessary code</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here!
</code></pre></div>
| 0 |
<blockquote>
<p dir="auto">In order to make orchestration simpler and efficient, it is necesary to consider that we can get changed data from DataChangedEvent instead of getting them directly from registry in Orchestration module.</p>
</blockquote>
|
<p dir="auto">In the process of investigating <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1575341598" data-permission-text="Title is private" data-url="https://github.com/apache/shardingsphere/issues/24053" data-hovercard-type="issue" data-hovercard-url="/apache/shardingsphere/issues/24053/hovercard" href="https://github.com/apache/shardingsphere/issues/24053">#24053</a>, I found that there are still many functions that are not supported by the parser engine, and I think we can improve it gradually.</p>
<p dir="auto">Here are some references:</p>
<h4 dir="auto">MySQL</h4>
<ul dir="auto">
<li>Document: <a href="https://dev.mysql.com/doc/refman/8.0/en/functions.html" rel="nofollow">https://dev.mysql.com/doc/refman/8.0/en/functions.html</a></li>
<li>PR: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1604177717" data-permission-text="Title is private" data-url="https://github.com/apache/shardingsphere/issues/24396" data-hovercard-type="pull_request" data-hovercard-url="/apache/shardingsphere/pull/24396/hovercard" href="https://github.com/apache/shardingsphere/pull/24396">#24396</a></li>
</ul>
<h3 dir="auto">Tasks</h3>
<h4 dir="auto"></h4>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> REPEAT <a href="https://dev.mysql.com/doc/refman/8.0/en/string-functions.html#function_repeat" rel="nofollow">https://dev.mysql.com/doc/refman/8.0/en/string-functions.html#function_repeat</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> EXTRACT <a href="https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html#function_extract" rel="nofollow">https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html#function_extract</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> CAST <a href="https://dev.mysql.com/doc/refman/8.0/en/cast-functions.html#function_cast" rel="nofollow">https://dev.mysql.com/doc/refman/8.0/en/cast-functions.html#function_cast</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Optimize MySQLStatementSQLVisitor#visitCastFunction</li>
</ul>
| 0 |
<h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">If you decide to not use the "Relaunch as administrator" when administrative privileges are needed but instead <del>need</del> decide to use the alternative method "Always run as administrator", you need to click yes on every system boot up to grant permissions for powertoys admin privileges. On every single Windows boot up.</p>
<h1 dir="auto">Proposed technical implementation details (optional)</h1>
<p dir="auto">Is it technically possible to create a kind of silent mode for granting the admin privileges? A kind of one-time approval to start with admin privileges from now on, so that there isn't an admin prompt on every boot?</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.18363.778]
PowerToys version: 0.18.1
PowerToy module for which you are reporting the bug (if applicable):"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18363.778]
PowerToys version: 0.18.1
PowerToy module for which you are reporting the bug (if applicable):
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Freshly install PowerToys<br>
Make sure the checkbox "Automatically start PowerToys at logon" is selected<br>
Finish installing<br>
Open PowerToys settings</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">"Run at startup" should be activated in General settings</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">"Run at startup" is not activated.</p>
<h1 dir="auto">Screenshots</h1>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13349968/83293447-1979fc00-a1ec-11ea-9528-9f53be1aee2f.png"><img src="https://user-images.githubusercontent.com/13349968/83293447-1979fc00-a1ec-11ea-9528-9f53be1aee2f.png" alt="2020-05-29 20_33_21-Window" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13349968/83293472-226acd80-a1ec-11ea-93e1-9403469e6737.png"><img src="https://user-images.githubusercontent.com/13349968/83293472-226acd80-a1ec-11ea-93e1-9403469e6737.png" alt="2020-05-29 20_36_47-Window" style="max-width: 100%;"></a></p>
| 1 |
<p dir="auto">spam</p>
| 1 |
|
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br>
Bug.</p>
<p dir="auto"><strong>What is the current behavior?</strong><br>
React 15.6.0 generated input <em>DOES NOT</em> fire <code class="notranslate">onchange</code> event when programmatically filled. (<a href="https://jsfiddle.net/davidcalhoun/7xo3ysoy/" rel="nofollow">DEMO</a>)</p>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
React 15.5.4 generated input <em>DOES</em> fire <code class="notranslate">onchange</code> event when programmatically filled. (<a href="https://jsfiddle.net/davidcalhoun/770wbkve/" rel="nofollow">DEMO</a>)</p>
<p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong></p>
<ul dir="auto">
<li>The reported bug has been tested in Chrome 61.0.3163.100 and Safari 11.0 on macOS 10.13. Both experience the bug.</li>
<li>The bug was not present in React 15.5.4.</li>
<li>My core goal is to create a browser bookmarklet that auto-fills a form within my React app.</li>
</ul>
|
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br>
<em>bug</em></p>
<p dir="auto"><strong>What is the current behavior?</strong><br>
The <code class="notranslate">dispatchEvent</code> method has no effect on input/textarea elements.</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via <a href="https://jsfiddle.net" rel="nofollow">https://jsfiddle.net</a> or similar (template: <a href="https://jsfiddle.net/84v837e9/" rel="nofollow">https://jsfiddle.net/84v837e9/</a>).</strong><br>
v. 15.5.4: <a href="https://jsfiddle.net/c8tp5mqf/" rel="nofollow">https://jsfiddle.net/c8tp5mqf/</a> (working)<br>
v. 15.6.1: <a href="https://jsfiddle.net/6bv1581z/" rel="nofollow">https://jsfiddle.net/6bv1581z/</a> (not working)</p>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
The <code class="notranslate">dispatchEvent</code> method results in an event being handled.</p>
<p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong><br>
I'm using the latest Chrome browser. This has worked in 15.5.x, stopped working in 15.6.0 and is still not working in 15.6.1.</p>
<hr>
<p dir="auto">Usecase for this: some old tests that I'd happily remove, but have to support for now.</p>
| 1 |
<p dir="auto">Hello,</p>
<p dir="auto">I am using sns.lineplot for time-series data. I realize that lineplot automatically fills in missing data and I want to avoid this. Is there a way of avoiding this in sns.lineplot.</p>
<p dir="auto">I attach some screenshots that briefly explain my issue.</p>
<p dir="auto">Thanks,</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/28057910/83626669-12f5d680-a596-11ea-897b-3d2b8b22df69.png"><img src="https://user-images.githubusercontent.com/28057910/83626669-12f5d680-a596-11ea-897b-3d2b8b22df69.png" alt="Screen Shot 2020-06-03 at 12 29 40 PM" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/28057910/83626704-2012c580-a596-11ea-9e87-dcb01eb83519.png"><img src="https://user-images.githubusercontent.com/28057910/83626704-2012c580-a596-11ea-9e87-dcb01eb83519.png" alt="Screen Shot 2020-06-03 at 12 30 30 PM" style="max-width: 100%;"></a></p>
|
<p dir="auto">I've tried to visualize my data with Seaborn line plot. My series had lots of <code class="notranslate">Nans </code> and a generated line plot was quite misleading.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/40000494/44867601-f6c25880-ac90-11e8-9ccd-ceedda0c4fed.png"><img src="https://user-images.githubusercontent.com/40000494/44867601-f6c25880-ac90-11e8-9ccd-ceedda0c4fed.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">using code below I managed to solve this issue:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fig, ax = plt.subplots(figsize=(10, 5))
plot = sns.lineplot(
ax=ax
, data=df, x="Date", y="Data"
, hue=df["Data"].isna().cumsum()
, palette=["blue"]*sum(df["Data"].isna())
, legend=False, markers=True
)
ax.set_xticklabels([])
plt.show()"><pre class="notranslate"><code class="notranslate">fig, ax = plt.subplots(figsize=(10, 5))
plot = sns.lineplot(
ax=ax
, data=df, x="Date", y="Data"
, hue=df["Data"].isna().cumsum()
, palette=["blue"]*sum(df["Data"].isna())
, legend=False, markers=True
)
ax.set_xticklabels([])
plt.show()
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/40000494/44867731-5b7db300-ac91-11e8-9559-62ff68573436.png"><img src="https://user-images.githubusercontent.com/40000494/44867731-5b7db300-ac91-11e8-9559-62ff68573436.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">However - it would be very nice to add a parameter to line plot which would make it easy to specify the desired way to treat Nones.</p>
<p dir="auto">Thank you for your attention.</p>
| 1 |
<p dir="auto">Hi there,</p>
<p dir="auto">I'm looking for atrous (dilated) transposed convolutions, but did not find much.<br>
There is a brief section in the <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/api_docs/python/nn.md#tfnnatrous_conv2dvalue-filters-rate-padding-namenone-atrous_conv2d"><code class="notranslate">tf.nn.atrous_conv2d</code></a> doc</p>
<blockquote>
<p dir="auto">Used in conjunction with bilinear interpolation, it offers an alternative to conv2d_transpose in dense prediction tasks such as semantic image segmentation, optical flow computation, or depth estimation.</p>
</blockquote>
<p dir="auto">But it is not quite clear how to proceed from there, it looks like tensorflow does not implement the transposed atrous convolution, yet?</p>
|
<p dir="auto">Can we have a <code class="notranslate">atrous_conv2d_transpose()</code> function, just like the existing <code class="notranslate">conv2d_transpose()</code> function? Or is there some simple way to get what I am looking for using other existing functions?</p>
<p dir="auto">I had a look at the <code class="notranslate">conv2d_transpose()</code> code, and it seems shouldn't be too difficult to adapt it to get a <code class="notranslate">atrous_conv2d_transpose()</code>.</p>
<p dir="auto">Thanks.</p>
| 1 |
<p dir="auto">When using the class form-stacked on a form it gets pushed 20 pixels to the left. When this is done it is not possible to put 2 span8's next to each other without breaking the lay-out.</p>
<p dir="auto">A work-a-round is to change form-stacked padding left to 0; Doing this will brake the div.actions because it has a negative left-margin of 20px and padding-left 20px to align with the inputs and labels above when there is no modification made in form-stacked.</p>
<p dir="auto">When you zero out the margin and padding the first button positions to the most left position in the actions div.</p>
<p dir="auto">Is there a better work-a-round to use spans for the divs inside a form with the class of form-stacked?</p>
|
<p dir="auto">Any text found in a <code class="notranslate">.form-horizontal .controls</code> element is a few pixels above center. Adding</p>
<div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=".form-horizontal .controls{ line-height:28px; }"><pre class="notranslate">.<span class="pl-c1">form-horizontal</span> .<span class="pl-c1">controls</span>{ <span class="pl-c1">line-height</span><span class="pl-kos">:</span><span class="pl-c1">28<span class="pl-smi">px</span></span>; }</pre></div>
<p dir="auto">fixes the problem.</p>
<p dir="auto">My apologies if this is a duplicate. I doubt I'm the first to notice this, but I couldn't find an existing issue.</p>
| 0 |
<p dir="auto">Taking a look at <a href="https://material-design.storage.googleapis.com/publish/material_v_8/material_ext_publish/0B14F_FSUCc01emlGOWRnRkpMOVk/GoodTransition_QuickDo-v4.webm" rel="nofollow">https://material-design.storage.googleapis.com/publish/material_v_8/material_ext_publish/0B14F_FSUCc01emlGOWRnRkpMOVk/GoodTransition_QuickDo-v4.webm</a></p>
<p dir="auto">On iOS build of gallery, it looks like image is popping out and drawing above the app bar and then animating in. When animated back to the homescreen of Shrine, the image animates over the app bar before popping back down.</p>
<p dir="auto">For a slow-mo video of the behavior, see <a href="https://drive.google.com/open?id=0B-w2rH1ryIJdRW5VUHgwMVNyM1E" rel="nofollow">https://drive.google.com/open?id=0B-w2rH1ryIJdRW5VUHgwMVNyM1E</a></p>
<p dir="auto">(protip, watch the slow-mo video at .5 speed to really see the effect in action)</p>
|
<p dir="auto">Open Gallery, open pesto, scroll up enough to minimize the app bar. Tap a recipe.</p>
<p dir="auto">Notice how the app bar immediately disappears, before the recipe begins its motion up. This is a jarring effect that the user could notice.</p>
<p dir="auto">We could try something more subtle, like animating or fading the app bar away as the recipe opens?</p>
| 1 |
<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">When using both <code class="notranslate">title</code> and <code class="notranslate">suptitle</code> with <code class="notranslate">constrained_layout</code>, titles overlap.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt
plt.rcParams = plt.rcParamsDefault
plt.rcParams['figure.constrained_layout.use'] = True
plt.title('Test with b')
plt.suptitle('Test with p')"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-s1">plt</span>.<span class="pl-s1">rcParams</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-s1">rcParamsDefault</span>
<span class="pl-s1">plt</span>.<span class="pl-s1">rcParams</span>[<span class="pl-s">'figure.constrained_layout.use'</span>] <span class="pl-c1">=</span> <span class="pl-c1">True</span>
<span class="pl-s1">plt</span>.<span class="pl-en">title</span>(<span class="pl-s">'Test with b'</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">suptitle</span>(<span class="pl-s">'Test with p'</span>)</pre></div>
<p dir="auto">Other possibility is the exact demonstration that is used to work by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jklymak/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jklymak">@jklymak</a> <a href="https://github.com/matplotlib/matplotlib/issues/5355#issuecomment-441287273" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/5355/hovercard">here</a>, hence the “Regression?” tag in the title. I don’t have time to bisect currently though…</p>
<p dir="auto"><strong>Actual outcome</strong></p>
<p dir="auto"><a href="https://github.com/matplotlib/matplotlib/files/3167592/test.pdf">test.pdf</a></p>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">Titles are spaced correctly.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: ArchLinux</li>
<li>Matplotlib version: 3.1rc2</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): multiple</li>
<li>Python version: 3.7.3</li>
</ul>
<p dir="auto">Python and matplotlib are distro packages.</p>
|
<p dir="auto">I want to add a title to a matplotlib figure. Using the newer <code class="notranslate">constrained_layout</code> the title is nicely aligned with the axis.</p>
<p dir="auto">Unfortunately under certain circumstances the layout still overlaps as shown in the following examples in the Jupyter notebook (with different backends):</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="%matplotlib notebook
import numpy as np
from matplotlib import pyplot as plt
# example with low height
fig, axes = plt.subplots(nrows=2, ncols=2, figsize=(6, 3), constrained_layout=True)
axes[0,0].plot([0,1,2], label='test')
axes[1,0].plot([0,1,2], label='test 2')
fig.suptitle('a longer title') "><pre class="notranslate"><span class="pl-c1">%</span><span class="pl-s1">matplotlib</span> <span class="pl-s1">notebook</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-c"># example with low height</span>
<span class="pl-s1">fig</span>, <span class="pl-s1">axes</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-s1">nrows</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">ncols</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">figsize</span><span class="pl-c1">=</span>(<span class="pl-c1">6</span>, <span class="pl-c1">3</span>), <span class="pl-s1">constrained_layout</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">axes</span>[<span class="pl-c1">0</span>,<span class="pl-c1">0</span>].<span class="pl-en">plot</span>([<span class="pl-c1">0</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>], <span class="pl-s1">label</span><span class="pl-c1">=</span><span class="pl-s">'test'</span>)
<span class="pl-s1">axes</span>[<span class="pl-c1">1</span>,<span class="pl-c1">0</span>].<span class="pl-en">plot</span>([<span class="pl-c1">0</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>], <span class="pl-s1">label</span><span class="pl-c1">=</span><span class="pl-s">'test 2'</span>)
<span class="pl-s1">fig</span>.<span class="pl-en">suptitle</span>(<span class="pl-s">'a longer title'</span>) </pre></div>
<p dir="auto">This results in<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5851636/54355839-6c54ab80-465a-11e9-8c29-ecc19e7cebf7.png"><img src="https://user-images.githubusercontent.com/5851636/54355839-6c54ab80-465a-11e9-8c29-ecc19e7cebf7.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">But now increasing the plot height using the modified example</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[...]
fig, axes = plt.subplots(nrows=2, ncols=2, figsize=(6, 12), constrained_layout=True)
[...]"><pre class="notranslate">[...]
<span class="pl-s1">fig</span>, <span class="pl-s1">axes</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-s1">nrows</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">ncols</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">figsize</span><span class="pl-c1">=</span>(<span class="pl-c1">6</span>, <span class="pl-c1">12</span>), <span class="pl-s1">constrained_layout</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
[...]</pre></div>
<p dir="auto">shows the following overlapping title:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5851636/54355911-9ad28680-465a-11e9-89b8-0c61cf9fc6d2.png"><img src="https://user-images.githubusercontent.com/5851636/54355911-9ad28680-465a-11e9-89b8-0c61cf9fc6d2.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Is there anything that can be done here to find out why this is not taking into account the larger plot dimensions?</p>
<p dir="auto"><em>Originally posted by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/asteppke/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/asteppke">@asteppke</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="114199762" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/5355" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/5355/hovercard?comment_id=472828628&comment_type=issue_comment" href="https://github.com/matplotlib/matplotlib/issues/5355#issuecomment-472828628">#5355 (comment)</a></em></p>
| 1 |
<p dir="auto">As it's clear for us that Deno caches the deps in a cache folder (as I have in my GNU/Linux box), it'd be much nicer to have the control over deleting a specific version of any cached module with it's deps from the cache folder with a Deno <code class="notranslate">SUBCOMMAND</code> than deleting it manually.</p>
|
<p dir="auto">Remove the cache files corresponding to the given targets.</p>
<ul dir="auto">
<li><code class="notranslate">deno clean src/mod.ts</code> ≈ <code class="notranslate">rm -f $DENO_DIR/gen/file$PWD/src/mod.ts.{js,map,meta}</code></li>
<li><code class="notranslate">deno clean dir1 dir2</code> ≈ <code class="notranslate">rm -rf $DENO_DIR/gen/file$PWD/{dir1,dir2}</code></li>
<li><code class="notranslate">deno clean https://deno.land</code> ≈ <code class="notranslate">rm -rf $DENO_DIR/{deps,gen}/https/deno.land</code></li>
<li><code class="notranslate">deno clean --remote</code> ≈ <code class="notranslate">rm -rf $DENO_DIR/{deps,gen}/!(file)</code></li>
<li><code class="notranslate">deno clean --history</code> ≈ <code class="notranslate">rm -f $DENO_DIR/deno_history.txt</code></li>
<li><code class="notranslate">deno clean --web-storage=<URLs></code> ≈ <code class="notranslate">rm -rf $DENO_DIR/web_storage/{<URLs>}</code> refs <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="405972082" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/1657" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/1657/hovercard" href="https://github.com/denoland/deno/issues/1657">#1657</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="608987806" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/4981" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/4981/hovercard" href="https://github.com/denoland/deno/issues/4981">#4981</a></li>
<li><code class="notranslate">deno clean --all</code> ≈ <code class="notranslate">rm -rf $DENO_DIR</code></li>
</ul>
<p dir="auto">Due to the current cache structure, cleaning for remote modules can only be done per-domain or coarser.</p>
| 1 |
<p dir="auto">Electron <code class="notranslate">1.7.9</code><br>
OS - <code class="notranslate">macOS 10.12.6</code> <code class="notranslate">Windows 10</code></p>
<hr>
<p dir="auto">Calling <code class="notranslate">fs.readdirSync</code> in recursive manner from renderer process freezes the application.</p>
<p dir="auto"><strong>STR:</strong></p>
<ul dir="auto">
<li>Run following function from devtools and try to click via electron application<br>
<em>change <code class="notranslate">dir</code> with some large directory which contains many files, so function run for some time</em></li>
</ul>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var fs = require('fs')
var path = require('path')
var dir = '/Users'
var totalFiles = [0]
var filesArray = []
var sizesArray = []
function getFilesRecursively(dir, totalFiles, filesArray, sizesArray){
try { var files = fs.readdirSync(dir); }
catch(err) { } // 'fs.readdirSync(dir) -', console.warn(err.message) }
for(var i in files){
var name = path.join(dir, files[i])
try {
let stats = fs.lstatSync(name) // track symlink as link, but not as file
if (stats.isDirectory())
getFilesRecursively(name, totalFiles, filesArray, sizesArray)
// filtering out symlinks, sockets etc
else if (stats.isFile()) {
// we can't use regular counter, since incrementing a primitive value doesn't change the value back in the caller function's scope.
// https://stackoverflow.com/a/48378462/4537590
totalFiles[0]++
// filtering out 0 size files
if (stats.size > 0) {
sizesArray.push(stats.size)
filesArray.push(name)
}
}
} catch(err) { } // console.warn('fs.lstatSync(name) -', err.message) }
}
console.log(filesArray.length) // console logging to see function progress
return { "files" : filesArray, "sizes" : sizesArray, "total_files" : totalFiles }
}
"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">fs</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'fs'</span><span class="pl-kos">)</span>
<span class="pl-k">var</span> <span class="pl-s1">path</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'path'</span><span class="pl-kos">)</span>
<span class="pl-k">var</span> <span class="pl-s1">dir</span> <span class="pl-c1">=</span> <span class="pl-s">'/Users'</span>
<span class="pl-k">var</span> <span class="pl-s1">totalFiles</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-k">var</span> <span class="pl-s1">filesArray</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-kos">]</span>
<span class="pl-k">var</span> <span class="pl-s1">sizesArray</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-kos">]</span>
<span class="pl-k">function</span> <span class="pl-en">getFilesRecursively</span><span class="pl-kos">(</span><span class="pl-s1">dir</span><span class="pl-kos">,</span> <span class="pl-s1">totalFiles</span><span class="pl-kos">,</span> <span class="pl-s1">filesArray</span><span class="pl-kos">,</span> <span class="pl-s1">sizesArray</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">var</span> <span class="pl-s1">files</span> <span class="pl-c1">=</span> <span class="pl-s1">fs</span><span class="pl-kos">.</span><span class="pl-en">readdirSync</span><span class="pl-kos">(</span><span class="pl-s1">dir</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">err</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-c">// 'fs.readdirSync(dir) -', console.warn(err.message) }</span>
<span class="pl-k">for</span><span class="pl-kos">(</span><span class="pl-k">var</span> <span class="pl-s1">i</span> <span class="pl-k">in</span> <span class="pl-s1">files</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">name</span> <span class="pl-c1">=</span> <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-s1">dir</span><span class="pl-kos">,</span> <span class="pl-s1">files</span><span class="pl-kos">[</span><span class="pl-s1">i</span><span class="pl-kos">]</span><span class="pl-kos">)</span>
<span class="pl-k">try</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> <span class="pl-s1">stats</span> <span class="pl-c1">=</span> <span class="pl-s1">fs</span><span class="pl-kos">.</span><span class="pl-en">lstatSync</span><span class="pl-kos">(</span><span class="pl-s1">name</span><span class="pl-kos">)</span> <span class="pl-c">// track symlink as link, but not as file</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">stats</span><span class="pl-kos">.</span><span class="pl-en">isDirectory</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-en">getFilesRecursively</span><span class="pl-kos">(</span><span class="pl-s1">name</span><span class="pl-kos">,</span> <span class="pl-s1">totalFiles</span><span class="pl-kos">,</span> <span class="pl-s1">filesArray</span><span class="pl-kos">,</span> <span class="pl-s1">sizesArray</span><span class="pl-kos">)</span>
<span class="pl-c">// filtering out symlinks, sockets etc </span>
<span class="pl-k">else</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">stats</span><span class="pl-kos">.</span><span class="pl-en">isFile</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">// we can't use regular counter, since incrementing a primitive value doesn't change the value back in the caller function's scope.</span>
<span class="pl-c">// https://stackoverflow.com/a/48378462/4537590</span>
<span class="pl-s1">totalFiles</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-c1">++</span>
<span class="pl-c">// filtering out 0 size files</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">stats</span><span class="pl-kos">.</span><span class="pl-c1">size</span> <span class="pl-c1">></span> <span class="pl-c1">0</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">sizesArray</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s1">stats</span><span class="pl-kos">.</span><span class="pl-c1">size</span><span class="pl-kos">)</span>
<span class="pl-s1">filesArray</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s1">name</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">err</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-c">// console.warn('fs.lstatSync(name) -', err.message) } </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">filesArray</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">)</span> <span class="pl-c">// console logging to see function progress</span>
<span class="pl-k">return</span> <span class="pl-kos">{</span> <span class="pl-s">"files"</span> : <span class="pl-s1">filesArray</span><span class="pl-kos">,</span> <span class="pl-s">"sizes"</span> : <span class="pl-s1">sizesArray</span><span class="pl-kos">,</span> <span class="pl-s">"total_files"</span> : <span class="pl-s1">totalFiles</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="getFilesRecursively(dir, totalFiles, filesArray, sizesArray)"><pre class="notranslate"><span class="pl-en">getFilesRecursively</span><span class="pl-kos">(</span><span class="pl-s1">dir</span><span class="pl-kos">,</span> <span class="pl-s1">totalFiles</span><span class="pl-kos">,</span> <span class="pl-s1">filesArray</span><span class="pl-kos">,</span> <span class="pl-s1">sizesArray</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">I've tested this on <a href="https://github.com/electron/electron-api-demos">Electron API Demos</a> app as well which uses <code class="notranslate">"electron": "~1.6.2"</code> It also freezes.</p>
<p dir="auto">Kindly help</p>
|
<ul dir="auto">
<li>Electron version: 1.6.x, 1.7.x</li>
<li>Operating system: macOS 10.12.5, Windows 10</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Doing blocking (10ms or higher) node operations in main process or in renderer process shouldn't freeze CSS animations in an entirely different BrowserWindow/renderer processes (that only contains HTML/CSS, no JS/node, but has <code class="notranslate">noteIntegration: true</code>).</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Long <em>blocking</em> node operations (from 10ms to higher) in the main process or in a renderer process will freeze CSS animations in ALL renderer processes.</p>
<h3 dir="auto">How to reproduce</h3>
<ol dir="auto">
<li>Create one BrowserWindow with <code class="notranslate">nodeIntegration: true</code>, and rotate a green square div using CSS animation.</li>
<li>In main process or a different BrowserWindow, do anything that is blocking.</li>
<li>Even if nothing is happening in the BrowserWindow with the animation (pure html/css, no JS), the square rotating animation will be jerky when the blocking operation is happening in the main process or other renderer.</li>
</ol>
<p dir="auto">This is pretty annoying because even extremely small blocking operations will still make a fluid animation (like a infinite rotating loader) jerky.</p>
<p dir="auto">Also, doing the same operation in another BrowserWindow will have the same effect (I'm assuming all node operations, in main or renderer process, are all in the same node thread?).</p>
| 1 |
<h5 dir="auto">Description of the problem</h5>
<p dir="auto">Migrated to v118.1, gltf model with compressed textures stopped rendering it's material, here's the error:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5939063/85894113-6b666f80-b7f4-11ea-9dff-206868d56585.png"><img src="https://user-images.githubusercontent.com/5939063/85894113-6b666f80-b7f4-11ea-9dff-206868d56585.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">I suspect it's related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="435197805" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/16287" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/16287/hovercard" href="https://github.com/mrdoob/three.js/pull/16287">#16287</a></p>
<p dir="auto">here's what that looks like:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5939063/85894177-8cc75b80-b7f4-11ea-8215-92cad5ba1293.png"><img src="https://user-images.githubusercontent.com/5939063/85894177-8cc75b80-b7f4-11ea-8215-92cad5ba1293.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">just to be clear, the black things are the models with compressed textures. Here's a snippet of what those look like in gltf (only relevant parts):</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"extensionsUsed":[
"MSFT_texture_dds"
],
"images" : [
{
"name" : "diffuse",
"uri" : "props1_512.png"
},
{
"name" : "normal",
"uri" : "props1_n_512.png"
},
{
"name" : "metalness",
"uri" : "props1_arm_512.png"
},
{
"uri": "props1_512_dtx5.dds"
},
{
"uri": "props1_n_512_dtx5.dds"
},
{
"uri": "props1_arm_512_dtx5.dds"
}
],
"textures" : [
{
"source" : 0,
"extensions": {
"MSFT_texture_dds": {
"source": 3
}
}
},
{
"source" : 1,
"extensions": {
"MSFT_texture_dds": {
"source": 4
}
}
},
{
"source" : 2,
"extensions": {
"MSFT_texture_dds": {
"source": 5
}
}
}
],
"materials" : [
{
"name" : "Props1",
"normalTexture" : {
"index" : 1,
"scale" : 1,
"texCoord" : 0
},
"pbrMetallicRoughness" : {
"baseColorFactor" : [
1,
1,
1,
1.0
],
"baseColorTexture" : {
"index" : 0
},
"metallicRoughnessTexture" : {
"index" : 2
}
}
}
]
}"><pre class="notranslate">{
<span class="pl-ent">"extensionsUsed"</span>:[
<span class="pl-s"><span class="pl-pds">"</span>MSFT_texture_dds<span class="pl-pds">"</span></span>
],
<span class="pl-ent">"images"</span> : [
{
<span class="pl-ent">"name"</span> : <span class="pl-s"><span class="pl-pds">"</span>diffuse<span class="pl-pds">"</span></span>,
<span class="pl-ent">"uri"</span> : <span class="pl-s"><span class="pl-pds">"</span>props1_512.png<span class="pl-pds">"</span></span>
},
{
<span class="pl-ent">"name"</span> : <span class="pl-s"><span class="pl-pds">"</span>normal<span class="pl-pds">"</span></span>,
<span class="pl-ent">"uri"</span> : <span class="pl-s"><span class="pl-pds">"</span>props1_n_512.png<span class="pl-pds">"</span></span>
},
{
<span class="pl-ent">"name"</span> : <span class="pl-s"><span class="pl-pds">"</span>metalness<span class="pl-pds">"</span></span>,
<span class="pl-ent">"uri"</span> : <span class="pl-s"><span class="pl-pds">"</span>props1_arm_512.png<span class="pl-pds">"</span></span>
},
{
<span class="pl-ent">"uri"</span>: <span class="pl-s"><span class="pl-pds">"</span>props1_512_dtx5.dds<span class="pl-pds">"</span></span>
},
{
<span class="pl-ent">"uri"</span>: <span class="pl-s"><span class="pl-pds">"</span>props1_n_512_dtx5.dds<span class="pl-pds">"</span></span>
},
{
<span class="pl-ent">"uri"</span>: <span class="pl-s"><span class="pl-pds">"</span>props1_arm_512_dtx5.dds<span class="pl-pds">"</span></span>
}
],
<span class="pl-ent">"textures"</span> : [
{
<span class="pl-ent">"source"</span> : <span class="pl-c1">0</span>,
<span class="pl-ent">"extensions"</span>: {
<span class="pl-ent">"MSFT_texture_dds"</span>: {
<span class="pl-ent">"source"</span>: <span class="pl-c1">3</span>
}
}
},
{
<span class="pl-ent">"source"</span> : <span class="pl-c1">1</span>,
<span class="pl-ent">"extensions"</span>: {
<span class="pl-ent">"MSFT_texture_dds"</span>: {
<span class="pl-ent">"source"</span>: <span class="pl-c1">4</span>
}
}
},
{
<span class="pl-ent">"source"</span> : <span class="pl-c1">2</span>,
<span class="pl-ent">"extensions"</span>: {
<span class="pl-ent">"MSFT_texture_dds"</span>: {
<span class="pl-ent">"source"</span>: <span class="pl-c1">5</span>
}
}
}
],
<span class="pl-ent">"materials"</span> : [
{
<span class="pl-ent">"name"</span> : <span class="pl-s"><span class="pl-pds">"</span>Props1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"normalTexture"</span> : {
<span class="pl-ent">"index"</span> : <span class="pl-c1">1</span>,
<span class="pl-ent">"scale"</span> : <span class="pl-c1">1</span>,
<span class="pl-ent">"texCoord"</span> : <span class="pl-c1">0</span>
},
<span class="pl-ent">"pbrMetallicRoughness"</span> : {
<span class="pl-ent">"baseColorFactor"</span> : [
<span class="pl-c1">1</span>,
<span class="pl-c1">1</span>,
<span class="pl-c1">1</span>,
<span class="pl-c1">1.0</span>
],
<span class="pl-ent">"baseColorTexture"</span> : {
<span class="pl-ent">"index"</span> : <span class="pl-c1">0</span>
},
<span class="pl-ent">"metallicRoughnessTexture"</span> : {
<span class="pl-ent">"index"</span> : <span class="pl-c1">2</span>
}
}
}
]
}</pre></div>
<h5 dir="auto">Three.js version</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Dev</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r118</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>
|
<h5 dir="auto">Description of the problem</h5>
<p dir="auto">Due to the recently added usage of BitmapLoader in GLFTLoader (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="628099071" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/19518" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/19518/hovercard" href="https://github.com/mrdoob/three.js/pull/19518">#19518</a>), using handlers for specific file formats will be overwritten from the BitmapLoader.</p>
<p dir="auto">In r117 to support basis textures for gltf files you would just need to add</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var basisLoader = new BasisTextureLoader();
basisLoader.setTranscoderPath( 'js/libs/basis/' );
basisLoader.detectSupport( renderer );
THREE.DefaultLoadingManager.addHandler( /\.basis$/, basisLoader );"><pre class="notranslate"><code class="notranslate">var basisLoader = new BasisTextureLoader();
basisLoader.setTranscoderPath( 'js/libs/basis/' );
basisLoader.detectSupport( renderer );
THREE.DefaultLoadingManager.addHandler( /\.basis$/, basisLoader );
</code></pre></div>
<p dir="auto">This is not possible anymore, since the resolve will be overwritten here: </p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/mrdoob/three.js/blob/7df06a0e4054247f87a7b5aa555ca97cd6b15662/examples/jsm/loaders/GLTFLoader.js#L2077-L2093">three.js/examples/jsm/loaders/GLTFLoader.js</a>
</p>
<p class="mb-0 color-fg-muted">
Lines 2077 to 2093
in
<a data-pjax="true" class="commit-tease-sha" href="/mrdoob/three.js/commit/7df06a0e4054247f87a7b5aa555ca97cd6b15662">7df06a0</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="L2077" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2077"></td>
<td id="LC2077" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-v">Promise</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> </td>
</tr>
<tr class="border-0">
<td id="L2078" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2078"></td>
<td id="LC2078" 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="L2079" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2079"></td>
<td id="LC2079" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">var</span> <span class="pl-s1">onLoad</span> <span class="pl-c1">=</span> <span class="pl-s1">resolve</span><span class="pl-kos">;</span> </td>
</tr>
<tr class="border-0">
<td id="L2080" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2080"></td>
<td id="LC2080" 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="L2081" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2081"></td>
<td id="LC2081" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-kos">(</span> <span class="pl-s1">useImageBitmap</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span> </td>
</tr>
<tr class="border-0">
<td id="L2082" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2082"></td>
<td id="LC2082" 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="L2083" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2083"></td>
<td id="LC2083" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">onLoad</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span> <span class="pl-s1">imageBitmap</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span> </td>
</tr>
<tr class="border-0">
<td id="L2084" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2084"></td>
<td id="LC2084" 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="L2085" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2085"></td>
<td id="LC2085" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">resolve</span><span class="pl-kos">(</span> <span class="pl-k">new</span> <span class="pl-v">CanvasTexture</span><span class="pl-kos">(</span> <span class="pl-s1">imageBitmap</span> <span class="pl-kos">)</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> </td>
</tr>
<tr class="border-0">
<td id="L2086" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2086"></td>
<td id="LC2086" 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="L2087" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2087"></td>
<td id="LC2087" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">}</span><span class="pl-kos">;</span> </td>
</tr>
<tr class="border-0">
<td id="L2088" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2088"></td>
<td id="LC2088" 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="L2089" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2089"></td>
<td id="LC2089" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">}</span> </td>
</tr>
<tr class="border-0">
<td id="L2090" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2090"></td>
<td id="LC2090" 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="L2091" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2091"></td>
<td id="LC2091" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">loader</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">(</span> <span class="pl-en">resolveURL</span><span class="pl-kos">(</span> <span class="pl-s1">sourceURI</span><span class="pl-kos">,</span> <span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">path</span> <span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">onLoad</span><span class="pl-kos">,</span> <span class="pl-c1">undefined</span><span class="pl-kos">,</span> <span class="pl-s1">reject</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> </td>
</tr>
<tr class="border-0">
<td id="L2092" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2092"></td>
<td id="LC2092" 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="L2093" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2093"></td>
<td id="LC2093" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">}</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto">I'm getting the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="THREE.WebGLState: TypeError: Failed to execute 'texImage2D' on 'WebGL2RenderingContext': No function was found that matched the signature provided.
at Object.texImage2D (three.module.js:21828)
at uploadTexture (three.module.js:22749)
at setTexture2D (three.module.js:22274)
at WebGLTextures.safeSetTexture2D (three.module.js:23169)
at SingleUniform.setValueT1 [as setValue] (three.module.js:17755)
at Function.WebGLUniforms.upload (three.module.js:18260)
at setProgram (three.module.js:26406)
at WebGLRenderer.renderBufferDirect (three.module.js:25441)
at renderObject (three.module.js:25994)
at renderObjects (three.module.js:25966)"><pre class="notranslate"><code class="notranslate">THREE.WebGLState: TypeError: Failed to execute 'texImage2D' on 'WebGL2RenderingContext': No function was found that matched the signature provided.
at Object.texImage2D (three.module.js:21828)
at uploadTexture (three.module.js:22749)
at setTexture2D (three.module.js:22274)
at WebGLTextures.safeSetTexture2D (three.module.js:23169)
at SingleUniform.setValueT1 [as setValue] (three.module.js:17755)
at Function.WebGLUniforms.upload (three.module.js:18260)
at setProgram (three.module.js:26406)
at WebGLRenderer.renderBufferDirect (three.module.js:25441)
at renderObject (three.module.js:25994)
at renderObjects (three.module.js:25966)
</code></pre></div>
<ul dir="auto">
<li><a href="https://rawcdn.githack.com/JohannesDeml/three.js/37a8f7fd309b15900c624252147cbbec70bcc6eb/examples/webgl_loader_gltf_basis.html" rel="nofollow">demo</a></li>
<li><a href="https://github.com/JohannesDeml/three.js/blob/og-dev/examples/webgl_loader_gltf_basis.html">code</a></li>
</ul>
<h5 dir="auto">Three.js version</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Dev</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r118</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> r117</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"> Edge</li>
</ul>
<h5 dir="auto">OS</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li>
</ul>
<h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5>
| 1 |
<h3 dir="auto">Describe the problem</h3>
<p dir="auto"><code class="notranslate">tf.reduce_min</code> and <code class="notranslate">tf.reduce_max</code> do not propagate nans correctly. E.g.,</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> tf.reduce_min([inf, nan]).eval()
inf"><pre class="notranslate"><code class="notranslate">>>> tf.reduce_min([inf, nan]).eval()
inf
</code></pre></div>
<p dir="auto">but the correct answer (the one most useful for debugging) is <code class="notranslate">nan</code>. This is presumably due to a backwards comparison, similar to the old <code class="notranslate">tf.nn.relu(nan) == 0</code> bug that <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alexalemi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alexalemi">@alexalemi</a> found.</p>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">Here's a colab illustrating the problem with TensorFlow 1.6.0-rc1: <a href="https://drive.google.com/file/d/1nDA0Q48PveBlx_D5Zurchbw8l7eczRSB/view?usp=sharing" rel="nofollow">https://drive.google.com/file/d/1nDA0Q48PveBlx_D5Zurchbw8l7eczRSB/view?usp=sharing</a></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>: yes</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Linux CentOS 7</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: binary</li>
<li><strong>TensorFlow version (use command below)</strong>: 1.3.0</li>
<li><strong>Python version</strong>: 2.7.13</li>
<li><strong>Bazel version (if compiling from source)</strong>:</li>
<li><strong>CUDA/cuDNN version</strong>: 8.0/6.0</li>
<li><strong>GPU model and memory</strong>: Tesla K40m, 11439MiB</li>
<li><strong>Exact command to reproduce</strong>: python main.py</li>
</ul>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto"><code class="notranslate">tf.maximum(a, b)</code> should return <code class="notranslate">nan</code> when <code class="notranslate">a</code> or <code class="notranslate">b</code> contain <code class="notranslate">nan</code>. However, it does not at some cases.</p>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">main.py</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import tensorflow as tf
import numpy as np
a = tf.placeholder(dtype=tf.float32)
max_a = tf.maximum(a, 1.)
with tf.Session():
print max_a.eval(feed_dict={a: np.nan})"><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-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">a</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">placeholder</span>(<span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">tf</span>.<span class="pl-s1">float32</span>)
<span class="pl-s1">max_a</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">maximum</span>(<span class="pl-s1">a</span>, <span class="pl-c1">1.</span>)
<span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-v">Session</span>():
<span class="pl-k">print</span> <span class="pl-s1">max_a</span>.<span class="pl-en">eval</span>(<span class="pl-s1">feed_dict</span><span class="pl-c1">=</span>{<span class="pl-s1">a</span>: <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>})</pre></div>
<p dir="auto">The output is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1.0"><pre class="notranslate"><code class="notranslate">1.0
</code></pre></div>
| 1 |
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1011" rel="nofollow">http://projects.scipy.org/numpy/ticket/1011</a> on 2009-02-19 by trac user anjiro, assigned to unknown.</em></p>
<p dir="auto">Testing for <code class="notranslate">None</code> in an array always returns <code class="notranslate">False</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> import numpy as np
>>> 5 in np.array([None, 5, 23])
True
>>> None in np.array([None, 5, 23])
False"><pre class="notranslate"><code class="notranslate">>>> import numpy as np
>>> 5 in np.array([None, 5, 23])
True
>>> None in np.array([None, 5, 23])
False
</code></pre></div>
|
<p dir="auto">Sorry if this is a duplicate (I wasn't able to find any reference to it). It seems to me that the ties in argsort are sometimes reported incorrectly. For example for the code below shouldn't the result be either [2,0,1] or [2,1,0]? Instead I get [1, 2, 0]</p>
<h3 dir="auto">Reproducing code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
np.argsort([1, 0, 0])"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-s1">np</span>.<span class="pl-en">argsort</span>([<span class="pl-c1">1</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>])</pre></div>
<h3 dir="auto">Error message:</h3>
<h3 dir="auto">NumPy/Python version information:</h3>
<p dir="auto">1.19.2 3.7.4 (default, Aug 13 2019, 15:17:50)<br>
[Clang 4.0.1 (tags/RELEASE_401/final)]</p>
| 0 |
<h3 dir="auto">Vue.js version</h3>
<p dir="auto">1.0.25</p>
<h3 dir="auto">Reproduction Link</h3>
<p dir="auto"><a href="https://hyperdev.com/#!/join/aeb63834-e450-464d-86b8-0dc15f29439f" rel="nofollow">https://hyperdev.com/#!/join/aeb63834-e450-464d-86b8-0dc15f29439f</a> (be careful!!it will destroy your browser)</p>
<p dir="auto">my project is complicated than this demo... multiple occurrences of this problem after 1.0.20 version</p>
<p dir="auto">I do not know if this is not a bug in 1.0.20.. or the problem that appears after 1.0.20</p>
|
<p dir="auto">Hi, i came across something weird after upgrading to the latest 1.0.25 release. I tried everything but i wasn't able to reproduce it on jsfiddle. Sorry <g-emoji class="g-emoji" alias="cry" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f622.png">😢</g-emoji></p>
<p dir="auto">My problem: v-model with select element. For some reason my app gets stuck in a loop when i paginate into a page that has a select tag with v-model</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<select v-model="foo">
<option v-for="group in groups.data" :value="group.id">{{ group.id }}<option>
</select>"><pre class="notranslate"><code class="notranslate"><select v-model="foo">
<option v-for="group in groups.data" :value="group.id">{{ group.id }}<option>
</select>
</code></pre></div>
<p dir="auto">So i snooped around the vue source and found out that my problem lies on line 55 to 57 of the "handle v-model select initial value edge cases in IE (fix <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="157698097" data-permission-text="Title is private" data-url="https://github.com/vuejs/vue/issues/2983" data-hovercard-type="issue" data-hovercard-url="/vuejs/vue/issues/2983/hovercard" href="https://github.com/vuejs/vue/issues/2983">#2983</a>)" commit.<br>
Link: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/vuejs/vue/commit/aab74bd7ce58a4855d72d7fe40e0ca704ae02e8b/hovercard" href="https://github.com/vuejs/vue/commit/aab74bd7ce58a4855d72d7fe40e0ca704ae02e8b"><tt>aab74bd</tt></a></p>
<p dir="auto">If i comment out line 56 ["return nextTick(this.forceUpdate)"] of the commit, everything works smoothly.</p>
<p dir="auto">I am using vueify, vue-router and vue-resource.</p>
<h3 dir="auto">Vue.js version</h3>
<p dir="auto">1.0.25</p>
<h3 dir="auto">Reproduction Link</h3>
<p dir="auto">Wasn't able to re-produce it</p>
| 1 |
<p dir="auto">I am a Chinese cabbage, and when the time to release the next version.<br>
Will the folding function be added in the next version?<br>
There is also in the page. Write: 《script type= there is no hint like VS: text/javascript</p>
|
<p dir="auto">I searched but couldnt find this in the issues. Id love to be able to collapse sections of the code. Any thoughts?</p>
| 1 |
<h3 dir="auto">Is there an existing issue for this?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li>
</ul>
<h3 dir="auto">This issue exists in the latest npm version</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I am using the latest npm</li>
</ul>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>git clone <a href="https://github.com/lake2/npm_bug">https://github.com/lake2/npm_bug</a></li>
<li>cd ./npm_bug/b</li>
<li>npm i</li>
<li>antd is not be auto installed in b/node_modules</li>
</ol>
<p dir="auto">see <a href="https://github.com/npm/rfcs/blob/main/implemented/0025-install-peer-deps.md">https://github.com/npm/rfcs/blob/main/implemented/0025-install-peer-deps.md</a></p>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>npm: 8.1.0</li>
<li>Node.js: v16.12.0</li>
<li>OS Name: windows</li>
<li>System Model Name: windows</li>
<li>npm config:</li>
</ul>
<div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="; "user" config from C:\Users\LH\.npmrc
//registry.npmjs.org/:_authToken = (protected)
registry = "https://registry.npmjs.org/"
; node bin location = C:\Program Files\nodejs\node.exe
; cwd = D:\work\npm_bug\b
; HOME = C:\Users\LH
; Run `npm config ls -l` to show all defaults."><pre class="notranslate"><span class="pl-c"><span class="pl-c">;</span> "user" config from C:\Users\LH\.npmrc</span>
//registry.npmjs.org/:<span class="pl-k">_authToken</span> = (protected)
<span class="pl-k">registry</span> = <span class="pl-s"><span class="pl-pds">"</span>https://registry.npmjs.org/<span class="pl-pds">"</span></span>
<span class="pl-c"><span class="pl-c">;</span> node bin location = C:\Program Files\nodejs\node.exe</span>
<span class="pl-c"><span class="pl-c">;</span> cwd = D:\work\npm_bug\b</span>
<span class="pl-c"><span class="pl-c">;</span> HOME = C:\Users\LH</span>
<span class="pl-c"><span class="pl-c">;</span> Run `npm config ls -l` to show all defaults.</span></pre></div>
|
<h3 dir="auto">Current Behavior:</h3>
<p dir="auto">having 'library-project' with peer-dependencies adjacent to 'main-project'<br>
and 'main-project' with workspaces: ['../library-project'] (outside of 'main-project' folder)<br>
'npm install' in 'main-project' is not installing the peer-dependencies</p>
<p dir="auto">example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="library-project/
package.json // peerDependencies: {"dep-a": "1.0.0"}
main-project/
package.json // "workspaces": [ "../library-project" ]"><pre class="notranslate"><code class="notranslate">library-project/
package.json // peerDependencies: {"dep-a": "1.0.0"}
main-project/
package.json // "workspaces": [ "../library-project" ]
</code></pre></div>
<h3 dir="auto">Expected Behavior:</h3>
<p dir="auto">expecting node_modules in 'main-project' after 'npm i' to include 'dep-a':</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="node_modules
library-project (linked)
dep-a"><pre class="notranslate"><code class="notranslate">node_modules
library-project (linked)
dep-a
</code></pre></div>
<p dir="auto">actual result: missing 'dep-a' in node_modules</p>
<p dir="auto">this works fine if 'library-project' would be inside 'main-project'</p>
<h3 dir="auto">Steps To Reproduce:</h3>
<ol dir="auto">
<li>
<p dir="auto">main-project and library-project are two adjacent projects</p>
</li>
<li>
<p dir="auto">main-project package.json:</p>
</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"name": "main-project",
"version": "1.0.0",
"workspaces": [
"../library-project"
],
"dependencies": {
"library-project": "1.0.0"
}
}"><pre class="notranslate"><code class="notranslate">{
"name": "main-project",
"version": "1.0.0",
"workspaces": [
"../library-project"
],
"dependencies": {
"library-project": "1.0.0"
}
}
</code></pre></div>
<ol start="3" dir="auto">
<li>library-project package.json:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"name": "library-project",
"version": "1.0.0",
"peerDependencies": {
"@angular/core": "11.1.2"
}
}"><pre class="notranslate"><code class="notranslate">{
"name": "library-project",
"version": "1.0.0",
"peerDependencies": {
"@angular/core": "11.1.2"
}
}
</code></pre></div>
<ol start="4" dir="auto">
<li>
<p dir="auto">run 'npm install' in 'main-project'</p>
</li>
<li>
<p dir="auto">expected "@angular/core" to be installed as it's a peer dependency of 'library-project'</p>
</li>
</ol>
<h3 dir="auto">Environment:</h3>
<ul dir="auto">
<li>Node: 15.6.0</li>
<li>npm: 7.5.2</li>
</ul>
| 1 |
<p dir="auto">Hi, today I created a new react.js project in <strong>typescript</strong> template using this command :<br>
<code class="notranslate">npx create-react-app my-project-name --template typescript</code>.<br>
Then project's react version is: 16.13.1 .</p>
<p dir="auto">After completing this process, I ran it using this command: <code class="notranslate">npm start</code>. It ran successfully and I saw the result.<br>
Then when I tried to get install a new package like <code class="notranslate">react-router-dom</code>, I saw some of packages are removing from my project's <code class="notranslate">node_modules</code>.</p>
<p dir="auto">Now when I'm trying to run the project, it will getting an error as below:<br>
<code class="notranslate">./src/assets/styles/index.scss (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/react-scripts/node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-5-4!./src/assets/styles/index.scss) Error: Package exports for 'C:\projects\sokna-pwa\node_modules\autoprefixer\node_modules\kleur' do not define a valid './colors' target</code>.</p>
<p dir="auto">But when I removed css files from index.tsx and App.tsx, it compiled successfully. Then the problem is in the css files.</p>
<p dir="auto">After too many long searchs, I tries this command from this <strong><a href="https://github.com/symfony/webpack-encore/issues/717" data-hovercard-type="issue" data-hovercard-url="/symfony/webpack-encore/issues/717/hovercard">#issue</a></strong> :<br>
<code class="notranslate">yarn add sass-loader@^7.0.1 node-sass --dev</code></p>
<p dir="auto">This command will fixes my project for temp but when I getting try to add a new package to my project, the last error will appears.</p>
<p dir="auto">How can I fix this ???<br>
Thank for your help</p>
|
<p dir="auto">Getting following error when I attempt to run a newly created project using following command<br>
npx create-react-app my-app<br>
cd my-app</p>
<p dir="auto">When I pass this --> npm start command, I get following error in browser.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./src/index.css (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./src/index.css)
Error: Package exports for '..\node_modules\autoprefixer\node_modules\kleur' do not define a valid './colors' target"><pre lang="Failed" class="notranslate"><code class="notranslate">./src/index.css (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./src/index.css)
Error: Package exports for '..\node_modules\autoprefixer\node_modules\kleur' do not define a valid './colors' target
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/65842419/85186486-49567580-b267-11ea-91c9-00eab2827be0.png"><img src="https://user-images.githubusercontent.com/65842419/85186486-49567580-b267-11ea-91c9-00eab2827be0.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">I did google and tried running following commands but no luck.<br>
npm I autoprefixer<br>
npm install node-saas-<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/latest/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/latest">@latest</a>..</p>
<p dir="auto">I have following versions listed as dependencies<br>
"autoprefixer": "^9.8.1",<br>
"react": "^16.13.1",<br>
"react-dom": "^16.13.1",<br>
"react-scripts": "3.4.1"</p>
<p dir="auto">Note: I tried running old project and that works fine... having issue only when I create a new project from scratch and run.<br>
please advise.</p>
| 1 |
<p dir="auto">The <code class="notranslate">self.in_channels</code> in <a href="https://github.com/pytorch/pytorch/blob/master/torch/nn/modules/conv.py#L34">nn.Conv</a> and <code class="notranslate">self.in_features</code> in <a href="https://github.com/pytorch/pytorch/blob/master/torch/nn/modules/linear.py#L70">nn.Linear</a> are representing the same kind of param, so I suggest to use same name, for example <code class="notranslate">self.in_channels</code>. This is also do for other same situation.</p>
<p dir="auto">Thanks!</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ssnl/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ssnl">@ssnl</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a></p>
|
<p dir="auto">Linear layers accept <code class="notranslate">in_features</code> and <code class="notranslate">out_features</code> arguments, and save them as similarly named instance variables. Similar arguments for Conv1d/Conv2d/Conv3d layers are called <code class="notranslate">in_channels</code> and <code class="notranslate">out_channels</code>. I think its worth to standardize on one set of names.</p>
| 1 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Version 2004 build 19041.329
PowerToys version: 0.19.1
PowerToy module for which you are reporting the bug (if applicable): FancyZones"><pre class="notranslate"><code class="notranslate">Windows build number: Version 2004 build 19041.329
PowerToys version: 0.19.1
PowerToy module for which you are reporting the bug (if applicable): FancyZones
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Put one (or more) window in one fancy zone</li>
<li>Put the notebook in the sleep/hibernate mode (I'm just close the notebook screen)</li>
<li>Wake up the notebook (open the notebook screen)</li>
<li>Log in in the Windows and see the problem</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">FancyZones respecting the windows/taskbar size as did before</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">FancyZones respecting the windows/taskbar size.</p>
<h1 dir="auto">Screenshots</h1>
<h3 dir="auto">Please, pay attention to "write message field" in the telegram app</h3>
<h2 dir="auto">Before sleep mode</h2>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1964562/87351336-aa542f00-c52f-11ea-947f-492e6d894b5d.jpg"><img src="https://user-images.githubusercontent.com/1964562/87351336-aa542f00-c52f-11ea-947f-492e6d894b5d.jpg" alt="before" style="max-width: 100%;"></a></p>
<h2 dir="auto">After sleep mode</h2>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1964562/87351355-b0e2a680-c52f-11ea-89d2-91f36ec614bb.jpg"><img src="https://user-images.githubusercontent.com/1964562/87351355-b0e2a680-c52f-11ea-89d2-91f36ec614bb.jpg" alt="after" style="max-width: 100%;"></a></p>
|
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18363.900
PowerToys version: 0.19.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones
Monitor(s): 2 side-by-side 4K monitors (one set to display scaling 100% and the other to 125%)"><pre class="notranslate"><code class="notranslate">Windows build number: 10.0.18363.900
PowerToys version: 0.19.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones
Monitor(s): 2 side-by-side 4K monitors (one set to display scaling 100% and the other to 125%)
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ul dir="auto">
<li>Set Windows taskbar location to <em>Top</em></li>
<li>Snap a window to a FancyZone (2 priority grid zones in my case)</li>
</ul>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">The window should snap to the <em>full-height</em> of the FancyZone <em>below</em> the task bar</p>
<h1 dir="auto">Actual behavior</h1>
<ul dir="auto">
<li>The window snaps <em>behind</em> the task bar (as shown with the green arrows)</li>
<li>The window leaves a <em>gap</em> underneath each window (as shown with the red arrows), which exposes the desktop background underneath</li>
</ul>
<h1 dir="auto">Screenshots</h1>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25905330/86352863-c110a100-bc66-11ea-95ff-f5a876357ef6.png"><img src="https://user-images.githubusercontent.com/25905330/86352863-c110a100-bc66-11ea-95ff-f5a876357ef6.png" alt="image" style="max-width: 100%;"></a></p>
| 1 |
<p dir="auto">Running TestSS2TF.tst_matrix_shapes(p,q,r) (signal/tests/test_ltisys.py, line 14, scipy 0.11.0) with p,q,r values like in the test, and repeated here:<br>
(3,3,3)<br>
(1,3,3)<br>
(1,1,3)</p>
<p dir="auto">However, it will fail with:<br>
(2,3,3)<br>
(2,2,3)</p>
<p dir="auto">and so on where p is not the same as r, and is also not 1. Traceback below:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\Lib\site-packages\scipy\signal\tests\test_ltisys.py", line 17, in tst_matrix_shapes
np.zeros((r, q)), 0)
File "C:\Python27\lib\site-packages\scipy\signal\ltisys.py", line 176, in ss2tf
type_test = A[:, 0] + B[:, 0] + C[0, :] + D
ValueError: operands could not be broadcast together with shapes (2) (3) "><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\Lib\site-packages\scipy\signal\tests\test_ltisys.py", line 17, in tst_matrix_shapes
np.zeros((r, q)), 0)
File "C:\Python27\lib\site-packages\scipy\signal\ltisys.py", line 176, in ss2tf
type_test = A[:, 0] + B[:, 0] + C[0, :] + D
ValueError: operands could not be broadcast together with shapes (2) (3)
</code></pre></div>
<p dir="auto">I suspect that D should be subscripted in the type_test assignment in ltisys.py, but I haven't dug far enough to know if it will still work even if the type_test is changed.</p>
|
<ol dir="auto">
<li>ltisys:150:
<ul dir="auto">
<li>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="`# transfer function is C (sI - A)**(-1) B + D`"><pre class="notranslate"><code class="notranslate">`# transfer function is C (sI - A)**(-1) B + D`
</code></pre></div>
should read:<br>
<code class="notranslate"># transfer matrix is C (sI - A)**(-1) B + D</code></li>
<li>Although, this matrix is not actually calculated, so the comment should probably be removed.</li>
</ul>
</li>
<li>ltisys:179:
<ul dir="auto">
<li>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="`type_test = A[:, 0] + B[:, 0] + C[0, :] + D`"><pre class="notranslate"><code class="notranslate">`type_test = A[:, 0] + B[:, 0] + C[0, :] + D`
</code></pre></div>
</li>
<li>Results in an error when a system with multiple <strong>ouputs</strong> is passed to ss2tf.</li>
</ul>
</li>
</ol>
<p dir="auto">Suggested fix: add an optional argument 'output' which specifies the output for which the transfer function is desired.</p>
| 1 |
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/35" rel="nofollow">http://projects.scipy.org/scipy/ticket/35</a> on 2006-03-09 by trac user russel@..., assigned to unknown.</em></p>
<p dir="auto">Run the following program and watch it's memory usage. Removing the jacobian from the call to leastsq<br>
keeps memory usage constant. It also leaks at the same rate if the jacobian is transposed and col_deriv=0.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as N
from scipy.optimize import leastsq
x=N.arange(0,1,0.0001)
y=(x-0.3)**2
def residual(p, x, y):
return (p[0]*x+p[1])*x+p[2]-y
def jacobian(p, x, y):
jac=N.zeros(shape=(len(p),len(x)),dtype=float)
jac[0]=x*x
jac[1]=x
jac[2]=1
return jac
def fit_j(x, y):
p=N.ones(3, dtype=float)
fit, mesg = leastsq(residual, p, args=(x, y), Dfun=jacobian, col_deriv=1)
return p
def test_leak(nfit=10000):
for k in xrange(nfit):
p=fit_j(x,y)
if __name__=="__main__":
test_leak()"><pre class="notranslate"><code class="notranslate">import numpy as N
from scipy.optimize import leastsq
x=N.arange(0,1,0.0001)
y=(x-0.3)**2
def residual(p, x, y):
return (p[0]*x+p[1])*x+p[2]-y
def jacobian(p, x, y):
jac=N.zeros(shape=(len(p),len(x)),dtype=float)
jac[0]=x*x
jac[1]=x
jac[2]=1
return jac
def fit_j(x, y):
p=N.ones(3, dtype=float)
fit, mesg = leastsq(residual, p, args=(x, y), Dfun=jacobian, col_deriv=1)
return p
def test_leak(nfit=10000):
for k in xrange(nfit):
p=fit_j(x,y)
if __name__=="__main__":
test_leak()
</code></pre></div>
|
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jperkin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jperkin">@jperkin</a> added a patch to the pkgsrc package for scipy with the commit message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Apply a couple of patches to fix SunOS."><pre class="notranslate"><code class="notranslate">Apply a couple of patches to fix SunOS.
</code></pre></div>
<p dir="auto">I can't evaluate the patch or know details about the problem. Here's the patch:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--- scipy/special/_round.h.orig 2018-05-05 17:10:11.000000000 +0000
+++ scipy/special/_round.h
@@ -9,6 +9,10 @@
#include "_c99compat.h"
#include "cephes/dd_idefs.h"
+#if defined(__cplusplus)
+using std::isinf;
+using std::isnan;
+#endif
double add_round_up(double a, double b)
{"><pre class="notranslate"><code class="notranslate">--- scipy/special/_round.h.orig 2018-05-05 17:10:11.000000000 +0000
+++ scipy/special/_round.h
@@ -9,6 +9,10 @@
#include "_c99compat.h"
#include "cephes/dd_idefs.h"
+#if defined(__cplusplus)
+using std::isinf;
+using std::isnan;
+#endif
double add_round_up(double a, double b)
{
</code></pre></div>
| 0 |
<p dir="auto">Right now interfaces use the same syntax for properties with and without accessors. This is fine for duck typed interfaces, but the problem is, there is no way to specify properties with only one part (getter or setter) present. Usually, they are read only, without setter. The problem is, we can't tell this to a compiler, so it will not warn us when assigning to such a prop and JS runtime will simply ignore this assignment without throwing.</p>
<p dir="auto">It would be good to have syntax like this</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface IEmployee{
get fullName: string;
set firstName: string;
set lastName: string;
}"><pre class="notranslate"><span class="pl-s1">interface</span> <span class="pl-v">IEmployee</span><span class="pl-kos">{</span>
get <span class="pl-c1">fullName</span>: <span class="pl-s1">string</span><span class="pl-kos">;</span>
set <span class="pl-s1">firstName</span>: <span class="pl-s1">string</span><span class="pl-kos">;</span>
set <span class="pl-s1">lastName</span>: <span class="pl-s1">string</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">to prevent such errors.</p>
|
<p dir="auto">Some properties in JavaScript are actually read-only, i.e. writes to them either fail silently or cause an exception. These should be modelable in TypeScript.</p>
<p dir="auto">Previous attempts to design this have run into problems. A brief exploration:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Point {
x: number;
y: number;
}
interface ImmutablePoint {
readonly x: number;
readonly y: number;
}
var pt: ImmutablePoint = { x: 4, y: 5 }; // OK, can convert mutable to non-mutable
pt.x = 5; // Error, 'pt.x' is not a valid target of assignment
var pt2: Point = pt; // Error, cannot convert readonly 'x' to mutable 'x'
// Possibly bad behavior
var pt3: Point = { x: 1, y: 1 };
var pt4: ImmutablePoint = pt3; // OK
pt3.x = 5; // pt4.x is also changed?
// Really bad behavior
/** This function was written in TypeScript 1.0 **/
function magnitudeSquared(v: { x: number; y: number }) {
return v.x * v.x + v.y * v.y;
}
// Now try to use it with ImmutablePoint
console.log(magnitudeSquared(pt)); // Error, cannot use readonly object in non-readonly call"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Point</span> <span class="pl-kos">{</span>
<span class="pl-c1">x</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-c1">y</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">interface</span> <span class="pl-smi">ImmutablePoint</span> <span class="pl-kos">{</span>
<span class="pl-k">readonly</span> <span class="pl-c1">x</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-k">readonly</span> <span class="pl-c1">y</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">var</span> <span class="pl-s1">pt</span>: <span class="pl-smi">ImmutablePoint</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">x</span>: <span class="pl-c1">4</span><span class="pl-kos">,</span> <span class="pl-c1">y</span>: <span class="pl-c1">5</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-c">// OK, can convert mutable to non-mutable</span>
<span class="pl-s1">pt</span><span class="pl-kos">.</span><span class="pl-c1">x</span> <span class="pl-c1">=</span> <span class="pl-c1">5</span><span class="pl-kos">;</span> <span class="pl-c">// Error, 'pt.x' is not a valid target of assignment</span>
<span class="pl-k">var</span> <span class="pl-s1">pt2</span>: <span class="pl-smi">Point</span> <span class="pl-c1">=</span> <span class="pl-s1">pt</span><span class="pl-kos">;</span> <span class="pl-c">// Error, cannot convert readonly 'x' to mutable 'x'</span>
<span class="pl-c">// Possibly bad behavior</span>
<span class="pl-k">var</span> <span class="pl-s1">pt3</span>: <span class="pl-smi">Point</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">x</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">y</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">pt4</span>: <span class="pl-smi">ImmutablePoint</span> <span class="pl-c1">=</span> <span class="pl-s1">pt3</span><span class="pl-kos">;</span> <span class="pl-c">// OK</span>
<span class="pl-s1">pt3</span><span class="pl-kos">.</span><span class="pl-c1">x</span> <span class="pl-c1">=</span> <span class="pl-c1">5</span><span class="pl-kos">;</span> <span class="pl-c">// pt4.x is also changed?</span>
<span class="pl-c">// Really bad behavior</span>
<span class="pl-c">/** This function was written in TypeScript 1.0 **/</span>
<span class="pl-k">function</span> <span class="pl-en">magnitudeSquared</span><span class="pl-kos">(</span><span class="pl-s1">v</span>: <span class="pl-kos">{</span> <span class="pl-c1">x</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span> <span class="pl-c1">y</span>: <span class="pl-smi">number</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">v</span><span class="pl-kos">.</span><span class="pl-c1">x</span> <span class="pl-c1">*</span> <span class="pl-s1">v</span><span class="pl-kos">.</span><span class="pl-c1">x</span> <span class="pl-c1">+</span> <span class="pl-s1">v</span><span class="pl-kos">.</span><span class="pl-c1">y</span> <span class="pl-c1">*</span> <span class="pl-s1">v</span><span class="pl-kos">.</span><span class="pl-c1">y</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-c">// Now try to use it with ImmutablePoint</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">magnitudeSquared</span><span class="pl-kos">(</span><span class="pl-s1">pt</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Error, cannot use readonly object in non-readonly call</span></pre></div>
<p dir="auto">Possible solutions?</p>
<ul dir="auto">
<li>Allow bivariance of mutability: this is very unsound</li>
<li>Something else clever? C++ did not do well with const contamination</li>
</ul>
| 1 |
<p dir="auto">I have an image tag with a camera ip ad get a HTTP 401. Before upgrading to version 7 the login event would be invoke and authentication would happen occur.</p>
<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>
7.1.7
</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>macOS 10.13.6</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>6.7</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<h3 dir="auto">Actual Behavior</h3>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">// html file<br>
Add image tag "img href="<a href="http://1.1.1.1/cameraFeed" rel="nofollow">http://1.1.1.1/cameraFeed</a>" to render in view</p>
<p dir="auto">// main js<br>
app.on('login', (event, webContents, request, authInfo, callback) => {<br>
// perform auth - but never gets called<br>
callback(user, password);<br>
});</p>
<h3 dir="auto">Screenshots</h3>
<h3 dir="auto">Additional Information</h3>
|
<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.0.0</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>macOS</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>6.1.2</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto"><a href="https://github.com/electron/electron/blob/v7.0.0/docs/api/web-contents.md#event-login">https://github.com/electron/electron/blob/v7.0.0/docs/api/web-contents.md#event-login</a> triggered</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">login event not triggered</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">run following code</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const {app, BrowserWindow} = require('electron')
app.once('ready', async () => {
win = new BrowserWindow()
app.on('login', console.log)
win.webContents.on('login', console.log)
win.webContents.once('did-finish-load', async () => {
const html = await win.webContents.executeJavaScript('document.documentElement.innerHTML')
console.log(html)
app.quit()
})
await win.webContents.loadURL('https://httpbin.org/basic-auth/user/passwd')
})"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span>app<span class="pl-kos">,</span> BrowserWindow<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-s1">app</span><span class="pl-kos">.</span><span class="pl-en">once</span><span class="pl-kos">(</span><span class="pl-s">'ready'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-s1">win</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">BrowserWindow</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'login'</span><span class="pl-kos">,</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-c1">log</span><span class="pl-kos">)</span>
<span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-c1">webContents</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'login'</span><span class="pl-kos">,</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-c1">log</span><span class="pl-kos">)</span>
<span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-c1">webContents</span><span class="pl-kos">.</span><span class="pl-en">once</span><span class="pl-kos">(</span><span class="pl-s">'did-finish-load'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">html</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-c1">webContents</span><span class="pl-kos">.</span><span class="pl-en">executeJavaScript</span><span class="pl-kos">(</span><span class="pl-s">'document.documentElement.innerHTML'</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">html</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-k">await</span> <span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-c1">webContents</span><span class="pl-kos">.</span><span class="pl-en">loadURL</span><span class="pl-kos">(</span><span class="pl-s">'https://httpbin.org/basic-auth/user/passwd'</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
| 1 |
<p dir="auto">Edit: <del>Note: This suggestion is only a change meant for the Postgres dialect!</del></p>
<p dir="auto">Hi there,</p>
<p dir="auto">This is admittedly a nice-to-have for those (like me) who didn't know that an <code class="notranslate">insert</code> statement in Postgres could not have more than one <code class="notranslate">on conflict</code> clause. If I were to try and perform an insert such as:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="insert into table (col1, col2) values (val1, val2)
on conflict (col1) do update set col1 = 'something'
on conflict (col2) do update set col2 = 'something_else';"><pre class="notranslate"><code class="notranslate">insert into table (col1, col2) values (val1, val2)
on conflict (col1) do update set col1 = 'something'
on conflict (col2) do update set col2 = 'something_else';
</code></pre></div>
<p dir="auto">This would fail with a syntax error in Postgres, even though the intent of the query seems kind of sound (do one kind of update if some constraint is violated, and do another kind of update if some other constraint is violated)</p>
<p dir="auto">With SQLAlchemy, when executing a query such as:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="query = (
insert(ModelClass.__table__)
.values(...)
.on_conflict_do_update(...some_args)
.on_conflict_do_update(...some_args2)
)"><pre class="notranslate"><code class="notranslate">query = (
insert(ModelClass.__table__)
.values(...)
.on_conflict_do_update(...some_args)
.on_conflict_do_update(...some_args2)
)
</code></pre></div>
<p dir="auto">The query builds valid SQL, but what is sent to the database is a statement of the form</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="insert into model_table (...) values (...)
on conflict (...) do update set something = 'some_args2'; -- only the second on_conflict statement is present"><pre class="notranslate"><code class="notranslate">insert into model_table (...) values (...)
on conflict (...) do update set something = 'some_args2'; -- only the second on_conflict statement is present
</code></pre></div>
<p dir="auto">I personally think it's a bit unintuitive to be able to build what you might think is a query with many on conflict statements without error, but silently it is executing the wrong SQL and is choosing to keep only one <code class="notranslate">on conflict</code> clause.</p>
<p dir="auto">So, my request is, when building a query such as:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="query = (
insert(ModelClass.__table__)
.values(...)
.on_conflict_do_update(...some_args)
.on_conflict_do_update(...some_args2)
)"><pre class="notranslate"><code class="notranslate">query = (
insert(ModelClass.__table__)
.values(...)
.on_conflict_do_update(...some_args)
.on_conflict_do_update(...some_args2)
)
</code></pre></div>
<p dir="auto">I would really like to see an InvalidRequestError raised (much like the example in <a href="https://github.com/sqlalchemy/sqlalchemy/blob/master/lib/sqlalchemy/sql/dml.py#L419">https://github.com/sqlalchemy/sqlalchemy/blob/master/lib/sqlalchemy/sql/dml.py#L419</a>, where calling values() with some kwargs when the query is already inserting from a select is deemed illegal) that states something like: "This construct already has an on_conflict behavior set"</p>
<p dir="auto">More than happy to make a PR for this! I'd imagine it's a pretty simple change since it only affects the postgres dialect/DML, but I'd love to hear your thoughts on whether the change is merited (and also what the error message should be). Also, if the change is merited, perhaps <code class="notranslate">on_conflict_do_nothing</code> should also raise when it is trying to overwrite an on_conflict behavior that's already set.</p>
<p dir="auto">Thanks!</p>
|
<p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p>
<p dir="auto">using the "criterion" in a Query, invalidate objects, or just a subset of their attributes, within the session meeting this criterion, without issuing SQL for rudimentary criterion. for more complex criterion like EXISTS, may need to issue SQL. will need to add ClauseElement evaluation routines to accomplish this.</p>
<p dir="auto">while we really don't like to duplicate the behavior of a SQL database in Python, this is one case that is quite important, as it would allow mass UPDATE and DELETE statements to be reflected in the current session state without the need to clear or invalidate the entire session.</p>
| 0 |
<p dir="auto">I want to build a step activation function to use in keras.</p>
<p dir="auto">Thanks to <a href="https://stackoverflow.com/questions/39921607/how-to-make-a-custom-activation-function-with-only-python-in-tensorflow" rel="nofollow">Q&A here</a>, I am able to build a working step function called <code class="notranslate">tf_stepy</code> with tensorflow. (See code below)</p>
<p dir="auto">Now my question evolves into</p>
<blockquote>
<p dir="auto">How to make use of this <code class="notranslate">tf_stepy</code> activation function created in <code class="notranslate">tensorflow</code> to work in <code class="notranslate">keras</code>?</p>
</blockquote>
<p dir="auto">I tried to the following code to utilize <code class="notranslate">tf_stepy</code> in keras, but not working. Could anyone help me make it to work in keras? Thanks</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from tensorflow_step_function import tf_stepy
def buy_hold_sell(x):
return tf_stepy(x)
get_custom_objects().update({'custom_activation': Activation(buy_hold_sell)})"><pre class="notranslate"><code class="notranslate">from tensorflow_step_function import tf_stepy
def buy_hold_sell(x):
return tf_stepy(x)
get_custom_objects().update({'custom_activation': Activation(buy_hold_sell)})
</code></pre></div>
<p dir="auto">Below is the step activation function created with tensorflow</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# tensorflow_step_function.py
import tensorflow as tf
import keras.backend as K
from keras.backend.tensorflow_backend import _to_tensor
import numpy as np
def stepy(x):
if x < 0.33:
return 0.0
elif x > 0.66:
return 1.0
else:
return 0.5
import numpy as np
np_stepy = np.vectorize(stepy)
def d_stepy(x): # derivative
if x < 0.33:
return 0.0
elif x > 0.66:
return 1.0
else:
return 0.5
np_d_stepy = np.vectorize(d_stepy)
import tensorflow as tf
from tensorflow.python.framework import ops
np_d_stepy_32 = lambda x: np_d_stepy(x).astype(np.float32)
def py_func(func, inp, Tout, stateful=True, name=None, grad=None):
# Need to generate a unique name to avoid duplicates:
rnd_name = 'PyFuncGrad' + str(np.random.randint(0, 1E+8))
tf.RegisterGradient(rnd_name)(grad) # see _MySquareGrad for grad example
g = tf.get_default_graph()
with g.gradient_override_map({"PyFunc": rnd_name}):
return tf.py_func(func, inp, Tout, stateful=stateful, name=name)
def tf_d_stepy(x,name=None):
with ops.op_scope([x], name, "d_stepy") as name:
y = tf.py_func(np_d_stepy_32,
[x],
[tf.float32],
name=name,
stateful=False)
return y[0]
def stepygrad(op, grad):
x = op.inputs[0]
n_gr = tf_d_stepy(x)
return grad * n_gr
np_stepy_32 = lambda x: np_stepy(x).astype(np.float32)
def tf_stepy(x, name=None):
with ops.op_scope([x], name, "stepy") as name:
y = py_func(np_stepy_32,
[x],
[tf.float32],
name=name,
grad=stepygrad) # <-- here's the call to the gradient
return y[0]
with tf.Session() as sess:
x = tf.constant([0.2,0.7,0.4,0.6])
y = tf_stepy(x)
tf.initialize_all_variables().run()
print(x.eval(), y.eval(), tf.gradients(y, [x])[0].eval())"><pre class="notranslate"><code class="notranslate"># tensorflow_step_function.py
import tensorflow as tf
import keras.backend as K
from keras.backend.tensorflow_backend import _to_tensor
import numpy as np
def stepy(x):
if x < 0.33:
return 0.0
elif x > 0.66:
return 1.0
else:
return 0.5
import numpy as np
np_stepy = np.vectorize(stepy)
def d_stepy(x): # derivative
if x < 0.33:
return 0.0
elif x > 0.66:
return 1.0
else:
return 0.5
np_d_stepy = np.vectorize(d_stepy)
import tensorflow as tf
from tensorflow.python.framework import ops
np_d_stepy_32 = lambda x: np_d_stepy(x).astype(np.float32)
def py_func(func, inp, Tout, stateful=True, name=None, grad=None):
# Need to generate a unique name to avoid duplicates:
rnd_name = 'PyFuncGrad' + str(np.random.randint(0, 1E+8))
tf.RegisterGradient(rnd_name)(grad) # see _MySquareGrad for grad example
g = tf.get_default_graph()
with g.gradient_override_map({"PyFunc": rnd_name}):
return tf.py_func(func, inp, Tout, stateful=stateful, name=name)
def tf_d_stepy(x,name=None):
with ops.op_scope([x], name, "d_stepy") as name:
y = tf.py_func(np_d_stepy_32,
[x],
[tf.float32],
name=name,
stateful=False)
return y[0]
def stepygrad(op, grad):
x = op.inputs[0]
n_gr = tf_d_stepy(x)
return grad * n_gr
np_stepy_32 = lambda x: np_stepy(x).astype(np.float32)
def tf_stepy(x, name=None):
with ops.op_scope([x], name, "stepy") as name:
y = py_func(np_stepy_32,
[x],
[tf.float32],
name=name,
grad=stepygrad) # <-- here's the call to the gradient
return y[0]
with tf.Session() as sess:
x = tf.constant([0.2,0.7,0.4,0.6])
y = tf_stepy(x)
tf.initialize_all_variables().run()
print(x.eval(), y.eval(), tf.gradients(y, [x])[0].eval())
</code></pre></div>
|
<p dir="auto">As described in the Keras handbook -<em>Deep Learning with Pyhton</em>-, for a multi-output model we need to specify different loss functions for different heads of the network. But because gradient descent requires you to minimize a scalar, you must combine these losses into a single value in order to train the model.</p>
<p dir="auto">Very imbalanced loss contributions will cause the model representations to be optimized preferentially for the task with the largest individual loss, at the expense of the other tasks. To remedy this, you can assign different levels of importance to the loss values in their contribution to the final loss. This is useful in particular if the losses’ values use different scales.</p>
<p dir="auto">Can anyone help with the following:</p>
<p dir="auto">I've got a five-output model as described in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="320318126" data-permission-text="Title is private" data-url="https://github.com/keras-team/keras/issues/10120" data-hovercard-type="issue" data-hovercard-url="/keras-team/keras/issues/10120/hovercard" href="https://github.com/keras-team/keras/issues/10120">#10120</a>.<br>
The outputs of the model are the following:</p>
<ol dir="auto">
<li>emotion (multiclass, multilabel classification)</li>
<li>valence (regression)</li>
<li>arousal (regression)</li>
<li>dominance (regression)</li>
<li>age (multiclass classification)</li>
</ol>
<p dir="auto">I am using the following :</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" losses_list = {'EMOTIONS': 'binary_crossentropy',
'VALENCE': 'mse',
'AROUSAL': 'mse',
'DOMINANCE': 'mse',
'AGE': 'categorical_crossentropy'}"><pre class="notranslate"> <span class="pl-s1">losses_list</span> <span class="pl-c1">=</span> {<span class="pl-s">'EMOTIONS'</span>: <span class="pl-s">'binary_crossentropy'</span>,
<span class="pl-s">'VALENCE'</span>: <span class="pl-s">'mse'</span>,
<span class="pl-s">'AROUSAL'</span>: <span class="pl-s">'mse'</span>,
<span class="pl-s">'DOMINANCE'</span>: <span class="pl-s">'mse'</span>,
<span class="pl-s">'AGE'</span>: <span class="pl-s">'categorical_crossentropy'</span>}</pre></div>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" losses_weights = {'EMOTIONS': 1.0,
'VALENCE': 0.025,
'AROUSAL': 0.025,
'DOMINANCE': 0.025,
'AGE': 0.45}"><pre class="notranslate"> <span class="pl-s1">losses_weights</span> <span class="pl-c1">=</span> {<span class="pl-s">'EMOTIONS'</span>: <span class="pl-c1">1.0</span>,
<span class="pl-s">'VALENCE'</span>: <span class="pl-c1">0.025</span>,
<span class="pl-s">'AROUSAL'</span>: <span class="pl-c1">0.025</span>,
<span class="pl-s">'DOMINANCE'</span>: <span class="pl-c1">0.025</span>,
<span class="pl-s">'AGE'</span>: <span class="pl-c1">0.45</span>}</pre></div>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" metrics ={'EMOTIONS': 'crossentropy',
'VALENCE': 'mse',
'AROUSAL': 'mse',
'DOMINANCE': 'mse',
'AGE': 'categorical_accuracy'}"><pre class="notranslate"> <span class="pl-s1">metrics</span> <span class="pl-c1">=</span>{<span class="pl-s">'EMOTIONS'</span>: <span class="pl-s">'crossentropy'</span>,
<span class="pl-s">'VALENCE'</span>: <span class="pl-s">'mse'</span>,
<span class="pl-s">'AROUSAL'</span>: <span class="pl-s">'mse'</span>,
<span class="pl-s">'DOMINANCE'</span>: <span class="pl-s">'mse'</span>,
<span class="pl-s">'AGE'</span>: <span class="pl-s">'categorical_accuracy'</span>}</pre></div>
<p dir="auto">Can anyone comment on this ?<br>
Are those the right loss functions? Are those the right weights and are those metrics properly set?</p>
| 0 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=alef.arendsen" rel="nofollow">Alef Arendsen</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4061?redirect=false" rel="nofollow">SPR-4061</a></strong> and commented</p>
<p dir="auto">The following code in SpringJUnit4Runner swallows the exception thrown by context creation (if any) instead of throwing it. This means test execution is continuing, while it should fail:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Override
protected Object createTest() throws Exception {
final Object testInstance = super.createTest();
try {
getTestContextManager().prepareTestInstance(testInstance);
}
catch (Throwable t) {"><pre class="notranslate"><code class="notranslate">@Override
protected Object createTest() throws Exception {
final Object testInstance = super.createTest();
try {
getTestContextManager().prepareTestInstance(testInstance);
}
catch (Throwable t) {
</code></pre></div>
<p dir="auto">// should throw exception instead of only creating one<br>
new Exception(t);<br>
}<br>
return testInstance;<br>
}</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5 RC1</p>
|
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=springboy" rel="nofollow">Rick Evans</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4025?redirect=false" rel="nofollow">SPR-4025</a></strong> and commented</p>
<p dir="auto">Hola campers!</p>
<p dir="auto">SpringJUnit4ClassRunner, createTest() contains this code (sans comment):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="final Object testInstance = super.createTest();
try {
getTestContextManager().prepareTestInstance(testInstance);
}
catch (Throwable t) {
new Exception(t); // <--------------- eh?
}
return testInstance;"><pre class="notranslate"><code class="notranslate">final Object testInstance = super.createTest();
try {
getTestContextManager().prepareTestInstance(testInstance);
}
catch (Throwable t) {
new Exception(t); // <--------------- eh?
}
return testInstance;
</code></pre></div>
<p dir="auto">The line 'new Exception(t)' needs to be 'throw new Exception(t);' (At least I think it does.)</p>
<p dir="auto">Cheers<br>
Rick</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5 RC1</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/13055/SpringJUnit4ClassRunnerTests.java" rel="nofollow">SpringJUnit4ClassRunnerTests.java</a> (<em>933 bytes</em>)</li>
</ul>
| 1 |
<p dir="auto">Can't go to or refer any documentation(docs.scipy.org/doc/) in numpy and can't view numpy.scipy.org</p>
|
<p dir="auto">Now that with statement - context managers has become a thing. Please feel free to use them whenever we need to read/write to file.</p>
<p dir="auto">You can find the files here - <a href="https://lgtm.com/projects/g/numpy/numpy/alerts/?mode=tree&severity=warning&rule=10030095" rel="nofollow">https://lgtm.com/projects/g/numpy/numpy/alerts/?mode=tree&severity=warning&rule=10030095</a></p>
| 0 |
<pre class="notranslate">1. What is a short input program that triggers the error?
package main
const a string = b(0)
func main() {
println(a)
}
2. What is the full compiler output?
test.go:3: undefined: b
test.go:3: cannot use b(0) as type string in const initializer
test.go:6: internal compiler error: naddr: const string
Interestingly, changing the const line to either:
const a = b(0)
or
const a int = b(0)
gets rid of the internal compiler error (but not the other errors, of course).
3. What version of the compiler are you using? (Run it with the -V flag.)
g version weekly.2011-06-16 8815+</pre>
|
<p dir="auto">It would be nice if clients of the net/smtp package could access the TLS connection state in order to implement server certificate hash checking with STARTTLS. Currently net/smtp's <code class="notranslate">(c *Client)</code> does not expose the <code class="notranslate">conn</code> field, which is set during <code class="notranslate">(c *Client) StartTLS()</code>.<br>
<a href="https://github.com/golang/go/blob/go1.4/src/net/smtp/smtp.go#L154">https://github.com/golang/go/blob/go1.4/src/net/smtp/smtp.go#L154</a></p>
<p dir="auto">As an example, this is the kind of server certificate hash checking I'd like to do with net/smtp:<br>
<a href="https://github.com/agl/xmpp/blob/a5b10608a5c441a99c6380efa91d7f4fb517e9c2/xmpp.go#L509-517">https://github.com/agl/xmpp/blob/a5b10608a5c441a99c6380efa91d7f4fb517e9c2/xmpp.go#L509-517</a></p>
<p dir="auto">I ended up forking net/smtp in order to access the TLS connection state after STARTTLS, which is a lot of code duplication for such a small change. If this isn't too esoteric, an additional method on smtp's Client struct could expose the connection state to clients of the package, making server certificate hash verification possible.</p>
| 0 |
<p dir="auto">Hi, I have a problem with Python and some libraries. Install python from the official website, simply download and install it directly with version 3.7 on my Macbook Pro macOS Catalina version 10.15.4 where through Thonny, I installed the numpy, pandas, matlob and other libraries, I don't have any other python ; but it doesn't work for me and it marks this error.<br>
I tried all the solutions but still not working.</p>
<h3 dir="auto">Reproducing code example:</h3>
<p dir="auto">import numpy as np<br>
A=[4,7,8,9,10,4]<br>
B=[3,5,7,8,9,3]<br>
U=[-2,-3,4,5,6,-7,-8,9,10,0]<br>
print(np.add(A,B))<br>
print("Positive",np.positive(U))<br>
print(np.negative(U))<br>
print(np.multiply(A,B))<br>
print(np.multiply(A,3))<br>
print(np.power(B,2))<br>
print(np.subtract(B,A))<br>
print(np.floor_divide(B,2))<br>
print(np.divide(B,10))</p>
<h3 dir="auto">Error message:</h3>
<p dir="auto">ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy c-extensions failed. - Try uninstalling and reinstalling numpy. - If you have already done that, then: 1. Check that you expected to use Python3.7 from "/Applications/Thonny.app/Contents/Frameworks/Python.framework/Versions/3.7/bin/python3.7", and that you have no directories in your PATH or PYTHONPATH that can interfere with the Python and numpy version "1.18.2" you're trying to use. 2. If (1) looks fine, you can open a new issue at <a href="https://github.com/numpy/numpy/issues">https://github.com/numpy/numpy/issues</a>. Please include details on: - how you installed Python - how you installed numpy - your operating system - whether or not you have multiple versions of Python installed - if you built from source, your compiler versions and ideally a build log - If you're working with a numpy git repository, try <code class="notranslate">git clean -xdf</code> (removes all files not under version control) and rebuild numpy. Note: this error has many possible causes, so please don't comment on an existing issue about this - open a new one instead. Original error was: dlopen(/Users/cristhianjair/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so, 2): no suitable image found. Did find: /Users/cristhianjair/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so: code signature in (/Users/cristhianjair/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.</p>
<h3 dir="auto">Numpy/Python version information: 3.7</h3>
|
<p dir="auto">I'm very new to coding. Installed numpy using the built-in package manager of Thonny. Thonny comes bundled with Python 3.7. Also installed scipy that way, seems to be importing fine.</p>
<h3 dir="auto">The code</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np"><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></pre></div>
<h3 dir="auto">Error message</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/__init__.py", line 24, in <module>
from . import multiarray
File "/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/multiarray.py", line 14, in <module>
from . import overrides
File "/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/overrides.py", line 7, in <module>
from numpy.core._multiarray_umath import (
ImportError: dlopen(/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so, 2): no suitable image found. Did find:
/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so: code signature in (/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/user/Desktop/asdf.py", line 1, in <module>
import numpy as np
File "/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/__init__.py", line 142, in <module>
from . import core
File "/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/__init__.py", line 54, in <module>
raise ImportError(msg)
ImportError:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy c-extensions failed.
- Try uninstalling and reinstalling numpy.
- If you have already done that, then:
1. Check that you expected to use Python3.7 from "/Applications/Thonny.app/Contents/Frameworks/Python.framework/Versions/3.7/bin/python3.7",
and that you have no directories in your PATH or PYTHONPATH that can
interfere with the Python and numpy version "1.18.1" you're trying to use.
2. If (1) looks fine, you can open a new issue at
https://github.com/numpy/numpy/issues. Please include details on:
- how you installed Python
- how you installed numpy
- your operating system
- whether or not you have multiple versions of Python installed
- if you built from source, your compiler versions and ideally a build log
- If you're working with a numpy git repository, try `git clean -xdf`
(removes all files not under version control) and rebuild numpy.
Note: this error has many possible causes, so please don't comment on
an existing issue about this - open a new one instead.
Original error was: dlopen(/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so, 2): no suitable image found. Did find:
/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so: code signature in (/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed."><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/__init__.py", line 24, in <module>
from . import multiarray
File "/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/multiarray.py", line 14, in <module>
from . import overrides
File "/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/overrides.py", line 7, in <module>
from numpy.core._multiarray_umath import (
ImportError: dlopen(/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so, 2): no suitable image found. Did find:
/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so: code signature in (/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/user/Desktop/asdf.py", line 1, in <module>
import numpy as np
File "/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/__init__.py", line 142, in <module>
from . import core
File "/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/__init__.py", line 54, in <module>
raise ImportError(msg)
ImportError:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy c-extensions failed.
- Try uninstalling and reinstalling numpy.
- If you have already done that, then:
1. Check that you expected to use Python3.7 from "/Applications/Thonny.app/Contents/Frameworks/Python.framework/Versions/3.7/bin/python3.7",
and that you have no directories in your PATH or PYTHONPATH that can
interfere with the Python and numpy version "1.18.1" you're trying to use.
2. If (1) looks fine, you can open a new issue at
https://github.com/numpy/numpy/issues. Please include details on:
- how you installed Python
- how you installed numpy
- your operating system
- whether or not you have multiple versions of Python installed
- if you built from source, your compiler versions and ideally a build log
- If you're working with a numpy git repository, try `git clean -xdf`
(removes all files not under version control) and rebuild numpy.
Note: this error has many possible causes, so please don't comment on
an existing issue about this - open a new one instead.
Original error was: dlopen(/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so, 2): no suitable image found. Did find:
/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so: code signature in (/Users/user/Library/Python/3.7/lib/python/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
</code></pre></div>
<h3 dir="auto">Numpy/Python version information:</h3>
<p dir="auto">Numpy version 1.18.1<br>
Thonny version 3.2.6<br>
Python version 3.7.6<br>
macOS Catalina 10.15.3</p>
<p dir="auto">Trying</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import sys, numpy
print (numpy.__version__, sys.version)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">sys</span>, <span class="pl-s1">numpy</span>
<span class="pl-en">print</span> (<span class="pl-s1">numpy</span>.<span class="pl-s1">__version__</span>, <span class="pl-s1">sys</span>.<span class="pl-s1">version</span>)</pre></div>
<p dir="auto">returns the same error as above.</p>
<p dir="auto">Any help is greatly appreciated!</p>
| 1 |
<p dir="auto">I'm using TypeScript 1.6.</p>
<p dir="auto">I've targeted es5, shouldn't these *.es6.d.ts files be ignored by the compiler? at first I thought I can just use exclude but it doesn't support globs (I think) so I can't filter them out.</p>
<p dir="auto">It seems like it's not only the *.d.ts files but there's more files there to ignore.</p>
<p dir="auto">Is there a way I can <em>fix</em> that without deleting files?</p>
<p dir="auto">Here is the tsconfig.json I'm using.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"compilerOptions": {
"noImplicitAny": false,
"noEmitOnError": true,
"removeComments": false,
"inlineSourceMap": true,
"experimentalDecorators": true,
"target": "es5",
"module": "commonjs",
"outDir": "./.out"
}
}"><pre class="notranslate"><code class="notranslate">{
"compilerOptions": {
"noImplicitAny": false,
"noEmitOnError": true,
"removeComments": false,
"inlineSourceMap": true,
"experimentalDecorators": true,
"target": "es5",
"module": "commonjs",
"outDir": "./.out"
}
}
</code></pre></div>
<p dir="auto">Here are the errors I'm getting.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".build/node_modules/rx/ts/core/abstractobserver.ts(25,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/core/abstractobserver.ts(44,20): error TS2403: Subsequent variable declarations must have the same type. Variable 'AbstractObserver' must be of type 'AbstractObserverStatic', but here has type 'AbstractObserverStatic'.
.build/node_modules/rx/ts/core/anonymousobserver.ts(33,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'AnonymousObserver' must be of type 'AnonymousObserverStatic', but here has type 'AnonymousObserverStatic'.
.build/node_modules/rx/ts/core/concurrency/currentthreadscheduler.ts(8,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/core/concurrency/defaultscheduler.ts(4,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/core/concurrency/defaultscheduler.ts(5,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/core/concurrency/immediatescheduler.ts(4,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/core/concurrency/scheduleditem.ts(6,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/core/concurrency/scheduleditem.ts(7,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/core/concurrency/scheduleditem.ts(8,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/core/concurrency/scheduleditem.ts(9,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/core/concurrency/scheduleditem.ts(10,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/core/concurrency/scheduleditem.ts(11,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/core/concurrency/scheduleditem.ts(23,20): error TS2403: Subsequent variable declarations must have the same type. Variable 'ScheduledItem' must be of type 'ScheduledItemStatic', but here has type 'ScheduledItemStatic'.
.build/node_modules/rx/ts/core/concurrency/scheduleperiodicrecursive.ts(12,20): error TS2403: Subsequent variable declarations must have the same type. Variable 'SchedulePeriodicRecursive' must be of type 'SchedulePeriodicRecursiveStatic', but here has type 'SchedulePeriodicRecursiveStatic'.
.build/node_modules/rx/ts/core/concurrency/scheduler.ts(62,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/core/concurrency/virtualtimescheduler.ts(56,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/core/disposables/booleandisposable.ts(8,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/core/disposables/booleandisposable.ts(19,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'SingleAssignmentDisposable' must be of type 'SingleAssignmentDisposableStatic', but here has type 'SingleAssignmentDisposableStatic'.
.build/node_modules/rx/ts/core/disposables/booleandisposable.ts(26,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/core/disposables/booleandisposable.ts(37,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'SerialDisposable' must be of type 'SerialDisposableStatic', but here has type 'SerialDisposableStatic'.
.build/node_modules/rx/ts/core/disposables/compositedisposable.ts(35,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'CompositeDisposable' must be of type 'CompositeDisposableStatic', but here has type 'CompositeDisposableStatic'.
.build/node_modules/rx/ts/core/disposables/disposable.ts(8,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/core/disposables/disposable.ts(42,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'Disposable' must be of type 'DisposableStatic', but here has type 'DisposableStatic'.
.build/node_modules/rx/ts/core/disposables/refcountdisposable.ts(12,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/core/disposables/refcountdisposable.ts(30,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'RefCountDisposable' must be of type 'RefCountDisposableStatic', but here has type 'RefCountDisposableStatic'.
.build/node_modules/rx/ts/core/es5.ts(3,17): error TS2300: Duplicate identifier 'ObservableOrPromise'.
.build/node_modules/rx/ts/core/es5.ts(5,17): error TS2300: Duplicate identifier 'ArrayLike'.
.build/node_modules/rx/ts/core/es5.ts(8,17): error TS2300: Duplicate identifier 'ArrayOrIterable'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(8,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(15,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(43,5): error TS2300: Duplicate identifier 'hasInstance'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(49,5): error TS2300: Duplicate identifier 'isConcatSpreadable'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(55,5): error TS2300: Duplicate identifier 'iterator'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(61,5): error TS2300: Duplicate identifier 'match'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(67,5): error TS2300: Duplicate identifier 'replace'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(73,5): error TS2300: Duplicate identifier 'search'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(79,5): error TS2300: Duplicate identifier 'species'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(85,5): error TS2300: Duplicate identifier 'split'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(91,5): error TS2300: Duplicate identifier 'toPrimitive'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(97,5): error TS2300: Duplicate identifier 'toStringTag'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(103,5): error TS2300: Duplicate identifier 'unscopables'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(108,5): error TS2300: Duplicate identifier 'done'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(109,5): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(136,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(150,5): error TS2300: Duplicate identifier 'size'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(153,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(159,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(171,5): error TS2300: Duplicate identifier 'size'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(174,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(180,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(189,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(195,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/core/es6-promise.d.ts(34,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/core/es6-promise.d.ts(41,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/core/es6-promise.d.ts(94,5): error TS2300: Duplicate identifier '[Symbol.species]'.
.build/node_modules/rx/ts/core/es6.ts(5,17): error TS2300: Duplicate identifier 'ObservableOrPromise'.
.build/node_modules/rx/ts/core/es6.ts(7,17): error TS2300: Duplicate identifier 'ArrayLike'.
.build/node_modules/rx/ts/core/es6.ts(10,17): error TS2300: Duplicate identifier 'ArrayOrIterable'.
.build/node_modules/rx/ts/core/internal/errors.ts(3,53): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/core/internal/errors.ts(6,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/core/internal/errors.ts(9,66): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/core/internal/errors.ts(12,60): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/core/internal/errors.ts(15,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/core/internal/priorityqueue.ts(6,13): error TS2300: Duplicate identifier 'length'.
.build/node_modules/rx/ts/core/internal/priorityqueue.ts(23,20): error TS2403: Subsequent variable declarations must have the same type. Variable 'PriorityQueue' must be of type 'PriorityQueueStatic', but here has type 'PriorityQueueStatic'.
.build/node_modules/rx/ts/core/joins/plan.ts(2,18): error TS2300: Duplicate identifier 'Plan'.
.build/node_modules/rx/ts/core/linq/groupedobservable.ts(4,9): error TS2300: Duplicate identifier 'key'.
.build/node_modules/rx/ts/core/linq/groupedobservable.ts(5,9): error TS2300: Duplicate identifier 'underlyingObservable'.
.build/node_modules/rx/ts/core/linq/observable/ofarraychanges.ts(4,9): error TS2300: Duplicate identifier 'type'.
.build/node_modules/rx/ts/core/linq/observable/ofarraychanges.ts(5,9): error TS2300: Duplicate identifier 'object'.
.build/node_modules/rx/ts/core/linq/observable/ofarraychanges.ts(6,9): error TS2300: Duplicate identifier 'name'.
.build/node_modules/rx/ts/core/linq/observable/ofarraychanges.ts(7,9): error TS2300: Duplicate identifier 'oldValue'.
.build/node_modules/rx/ts/core/linq/observable/ofarraychanges.ts(8,9): error TS2300: Duplicate identifier 'index'.
.build/node_modules/rx/ts/core/linq/observable/ofarraychanges.ts(9,9): error TS2300: Duplicate identifier 'removed'.
.build/node_modules/rx/ts/core/linq/observable/ofarraychanges.ts(10,9): error TS2300: Duplicate identifier 'added'.
.build/node_modules/rx/ts/core/linq/observable/ofobjectchanges.ts(4,9): error TS2300: Duplicate identifier 'type'.
.build/node_modules/rx/ts/core/linq/observable/ofobjectchanges.ts(5,9): error TS2300: Duplicate identifier 'object'.
.build/node_modules/rx/ts/core/linq/observable/ofobjectchanges.ts(6,9): error TS2300: Duplicate identifier 'name'.
.build/node_modules/rx/ts/core/linq/observable/ofobjectchanges.ts(7,9): error TS2300: Duplicate identifier 'oldValue'.
.build/node_modules/rx/ts/core/linq/observable/timeinterval.ts(5,3): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/core/linq/observable/timeinterval.ts(6,3): error TS2300: Duplicate identifier 'interval'.
.build/node_modules/rx/ts/core/linq/observable/timestamp.ts(5,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/core/linq/observable/timestamp.ts(6,9): error TS2300: Duplicate identifier 'timestamp'.
.build/node_modules/rx/ts/core/notification.ts(40,9): error TS2300: Duplicate identifier 'hasValue'.
.build/node_modules/rx/ts/core/notification.ts(42,9): error TS2300: Duplicate identifier 'kind'.
.build/node_modules/rx/ts/core/notification.ts(43,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/core/notification.ts(44,9): error TS2300: Duplicate identifier 'exception'.
.build/node_modules/rx/ts/core/notification.ts(69,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'Notification' must be of type 'NotificationStatic', but here has type 'NotificationStatic'.
.build/node_modules/rx/ts/core/subjects/anonymoussubject.ts(17,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'AnonymousSubject' must be of type 'AnonymousSubjectStatic', but here has type 'AnonymousSubjectStatic'.
.build/node_modules/rx/ts/core/subjects/asyncsubject.ts(18,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'AsyncSubject' must be of type 'AsyncSubjectStatic', but here has type 'AsyncSubjectStatic'.
.build/node_modules/rx/ts/core/subjects/behaviorsubject.ts(27,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'BehaviorSubject' must be of type 'BehaviorSubjectStatic', but here has type 'BehaviorSubjectStatic'.
.build/node_modules/rx/ts/core/subjects/replaysubject.ts(20,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'ReplaySubject' must be of type 'ReplaySubjectStatic', but here has type 'ReplaySubjectStatic'.
.build/node_modules/rx/ts/core/subjects/subject.ts(17,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/core/subjects/subject.ts(39,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'Subject' must be of type 'SubjectStatic', but here has type 'SubjectStatic'.
.build/node_modules/rx/ts/core/testing/mockobserver.ts(7,9): error TS2300: Duplicate identifier 'messages'.
.build/node_modules/rx/ts/core/testing/mockobserver.ts(14,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'MockObserver' must be of type 'MockObserverStatic', but here has type 'MockObserverStatic'.
.build/node_modules/rx/ts/core/testing/recorded.ts(16,9): error TS2300: Duplicate identifier 'time'.
.build/node_modules/rx/ts/core/testing/recorded.ts(17,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/core/testing/recorded.ts(32,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'Recorded' must be of type 'RecordedStatic', but here has type 'RecordedStatic'.
.build/node_modules/rx/ts/core/testing/subscription.ts(27,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'Subscription' must be of type 'SubscriptionStatic', but here has type 'SubscriptionStatic'.
.build/node_modules/rx/ts/es6-promise.es6.d.ts(34,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/es6-promise.es6.d.ts(41,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/es6-promise.es6.d.ts(94,5): error TS2300: Duplicate identifier '[Symbol.species]'.
.build/node_modules/rx/ts/iterable.es6.d.ts(8,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/iterable.es6.d.ts(15,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/iterable.es6.d.ts(43,5): error TS2300: Duplicate identifier 'hasInstance'.
.build/node_modules/rx/ts/iterable.es6.d.ts(49,5): error TS2300: Duplicate identifier 'isConcatSpreadable'.
.build/node_modules/rx/ts/iterable.es6.d.ts(55,5): error TS2300: Duplicate identifier 'iterator'.
.build/node_modules/rx/ts/iterable.es6.d.ts(61,5): error TS2300: Duplicate identifier 'match'.
.build/node_modules/rx/ts/iterable.es6.d.ts(67,5): error TS2300: Duplicate identifier 'replace'.
.build/node_modules/rx/ts/iterable.es6.d.ts(73,5): error TS2300: Duplicate identifier 'search'.
.build/node_modules/rx/ts/iterable.es6.d.ts(79,5): error TS2300: Duplicate identifier 'species'.
.build/node_modules/rx/ts/iterable.es6.d.ts(85,5): error TS2300: Duplicate identifier 'split'.
.build/node_modules/rx/ts/iterable.es6.d.ts(91,5): error TS2300: Duplicate identifier 'toPrimitive'.
.build/node_modules/rx/ts/iterable.es6.d.ts(97,5): error TS2300: Duplicate identifier 'toStringTag'.
.build/node_modules/rx/ts/iterable.es6.d.ts(103,5): error TS2300: Duplicate identifier 'unscopables'.
.build/node_modules/rx/ts/iterable.es6.d.ts(108,5): error TS2300: Duplicate identifier 'done'.
.build/node_modules/rx/ts/iterable.es6.d.ts(109,5): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/iterable.es6.d.ts(136,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/iterable.es6.d.ts(150,5): error TS2300: Duplicate identifier 'size'.
.build/node_modules/rx/ts/iterable.es6.d.ts(153,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/iterable.es6.d.ts(159,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/iterable.es6.d.ts(171,5): error TS2300: Duplicate identifier 'size'.
.build/node_modules/rx/ts/iterable.es6.d.ts(174,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/iterable.es6.d.ts(180,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/iterable.es6.d.ts(189,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/iterable.es6.d.ts(195,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/rx.aggregates.d.ts(259,34): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.aggregates.es6.d.ts(284,34): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.all.d.ts(22,22): error TS2320: Interface 'IPromise<T>' cannot simultaneously extend types 'Promise<T>' and 'PromiseLike<T>'.
Named property 'then' of types 'Promise<T>' and 'PromiseLike<T>' are not identical.
.build/node_modules/rx/ts/rx.all.d.ts(35,53): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.d.ts(38,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.d.ts(41,66): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.d.ts(44,60): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.d.ts(47,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.d.ts(70,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.d.ts(90,9): error TS2300: Duplicate identifier 'empty'.
.build/node_modules/rx/ts/rx.all.d.ts(232,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/rx.all.d.ts(233,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/rx.all.d.ts(234,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/rx.all.d.ts(235,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/rx.all.d.ts(236,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/rx.all.d.ts(237,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/rx.all.d.ts(255,13): error TS2300: Duplicate identifier 'length'.
.build/node_modules/rx/ts/rx.all.d.ts(269,17): error TS2300: Duplicate identifier 'count'.
.build/node_modules/rx/ts/rx.all.d.ts(314,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.d.ts(332,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.d.ts(354,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.d.ts(433,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/rx.all.d.ts(545,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/rx.all.d.ts(553,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/rx.all.d.ts(557,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/rx.all.d.ts(558,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/rx.all.d.ts(648,9): error TS2300: Duplicate identifier 'hasValue'.
.build/node_modules/rx/ts/rx.all.d.ts(650,9): error TS2300: Duplicate identifier 'kind'.
.build/node_modules/rx/ts/rx.all.d.ts(651,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.all.d.ts(652,9): error TS2300: Duplicate identifier 'exception'.
.build/node_modules/rx/ts/rx.all.d.ts(704,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/rx.all.d.ts(939,9): error TS2300: Duplicate identifier 'type'.
.build/node_modules/rx/ts/rx.all.d.ts(940,9): error TS2300: Duplicate identifier 'object'.
.build/node_modules/rx/ts/rx.all.d.ts(941,9): error TS2300: Duplicate identifier 'name'.
.build/node_modules/rx/ts/rx.all.d.ts(942,9): error TS2300: Duplicate identifier 'oldValue'.
.build/node_modules/rx/ts/rx.all.d.ts(943,9): error TS2300: Duplicate identifier 'index'.
.build/node_modules/rx/ts/rx.all.d.ts(944,9): error TS2300: Duplicate identifier 'removed'.
.build/node_modules/rx/ts/rx.all.d.ts(945,9): error TS2300: Duplicate identifier 'added'.
.build/node_modules/rx/ts/rx.all.d.ts(958,9): error TS2300: Duplicate identifier 'type'.
.build/node_modules/rx/ts/rx.all.d.ts(959,9): error TS2300: Duplicate identifier 'object'.
.build/node_modules/rx/ts/rx.all.d.ts(960,9): error TS2300: Duplicate identifier 'name'.
.build/node_modules/rx/ts/rx.all.d.ts(961,9): error TS2300: Duplicate identifier 'oldValue'.
.build/node_modules/rx/ts/rx.all.d.ts(3221,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.d.ts(3771,18): error TS2300: Duplicate identifier 'Plan'.
.build/node_modules/rx/ts/rx.all.d.ts(4081,3): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.all.d.ts(4082,3): error TS2300: Duplicate identifier 'interval'.
.build/node_modules/rx/ts/rx.all.d.ts(4100,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.all.d.ts(4101,9): error TS2300: Duplicate identifier 'timestamp'.
.build/node_modules/rx/ts/rx.all.d.ts(4762,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/rx.all.d.ts(4787,9): error TS2300: Duplicate identifier 'key'.
.build/node_modules/rx/ts/rx.all.d.ts(4788,9): error TS2300: Duplicate identifier 'underlyingObservable'.
.build/node_modules/rx/ts/rx.all.d.ts(4840,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.all.d.ts(4841,27): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.all.es6.d.ts(32,53): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(35,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(38,66): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(41,60): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(44,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(67,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(87,9): error TS2300: Duplicate identifier 'empty'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(229,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(230,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(231,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(232,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(233,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(234,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(252,13): error TS2300: Duplicate identifier 'length'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(266,17): error TS2300: Duplicate identifier 'count'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(311,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(329,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(351,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(430,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(542,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(550,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(554,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(555,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(645,9): error TS2300: Duplicate identifier 'hasValue'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(647,9): error TS2300: Duplicate identifier 'kind'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(648,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(649,9): error TS2300: Duplicate identifier 'exception'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(701,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(936,9): error TS2300: Duplicate identifier 'type'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(937,9): error TS2300: Duplicate identifier 'object'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(938,9): error TS2300: Duplicate identifier 'name'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(939,9): error TS2300: Duplicate identifier 'oldValue'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(940,9): error TS2300: Duplicate identifier 'index'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(941,9): error TS2300: Duplicate identifier 'removed'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(942,9): error TS2300: Duplicate identifier 'added'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(955,9): error TS2300: Duplicate identifier 'type'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(956,9): error TS2300: Duplicate identifier 'object'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(957,9): error TS2300: Duplicate identifier 'name'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(958,9): error TS2300: Duplicate identifier 'oldValue'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(3243,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(3793,18): error TS2300: Duplicate identifier 'Plan'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4103,3): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4104,3): error TS2300: Duplicate identifier 'interval'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4122,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4123,9): error TS2300: Duplicate identifier 'timestamp'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4784,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4809,9): error TS2300: Duplicate identifier 'key'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4810,9): error TS2300: Duplicate identifier 'underlyingObservable'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4862,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4863,27): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.async.d.ts(73,29): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.async.es6.d.ts(73,29): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.backpressure.d.ts(21,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.backpressure.es6.d.ts(21,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.binding.d.ts(13,31): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.binding.es6.d.ts(13,31): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.coincidence.d.ts(181,9): error TS2300: Duplicate identifier 'key'.
.build/node_modules/rx/ts/rx.coincidence.d.ts(182,9): error TS2300: Duplicate identifier 'underlyingObservable'.
.build/node_modules/rx/ts/rx.coincidence.d.ts(186,35): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.coincidence.es6.d.ts(181,9): error TS2300: Duplicate identifier 'key'.
.build/node_modules/rx/ts/rx.coincidence.es6.d.ts(182,9): error TS2300: Duplicate identifier 'underlyingObservable'.
.build/node_modules/rx/ts/rx.coincidence.es6.d.ts(186,35): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.core.binding.d.ts(4,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.core.binding.es6.d.ts(4,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.core.d.ts(40,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.core.d.ts(60,9): error TS2300: Duplicate identifier 'empty'.
.build/node_modules/rx/ts/rx.core.d.ts(239,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.core.d.ts(257,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.core.d.ts(329,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/rx.core.d.ts(344,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/rx.core.d.ts(345,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/rx.core.d.ts(346,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/rx.core.d.ts(347,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/rx.core.d.ts(348,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/rx.core.d.ts(349,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/rx.core.d.ts(447,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/rx.core.d.ts(455,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/rx.core.d.ts(459,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/rx.core.d.ts(460,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/rx.core.d.ts(541,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/rx.core.d.ts(612,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.core.es6.d.ts(37,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(57,9): error TS2300: Duplicate identifier 'empty'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(236,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(254,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(326,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(341,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(342,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(343,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(344,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(345,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(346,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(444,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(452,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(456,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(457,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(538,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(609,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.core.testing.d.ts(6,13): error TS2300: Duplicate identifier 'length'.
.build/node_modules/rx/ts/rx.core.testing.d.ts(20,17): error TS2300: Duplicate identifier 'count'.
.build/node_modules/rx/ts/rx.core.testing.d.ts(77,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/rx.core.testing.d.ts(127,9): error TS2300: Duplicate identifier 'time'.
.build/node_modules/rx/ts/rx.core.testing.d.ts(128,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.core.testing.d.ts(216,9): error TS2300: Duplicate identifier 'messages'.
.build/node_modules/rx/ts/rx.core.testing.d.ts(293,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.core.testing.es6.d.ts(6,13): error TS2300: Duplicate identifier 'length'.
.build/node_modules/rx/ts/rx.core.testing.es6.d.ts(20,17): error TS2300: Duplicate identifier 'count'.
.build/node_modules/rx/ts/rx.core.testing.es6.d.ts(77,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/rx.core.testing.es6.d.ts(127,9): error TS2300: Duplicate identifier 'time'.
.build/node_modules/rx/ts/rx.core.testing.es6.d.ts(128,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.core.testing.es6.d.ts(216,9): error TS2300: Duplicate identifier 'messages'.
.build/node_modules/rx/ts/rx.core.testing.es6.d.ts(293,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.d.ts(35,53): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.d.ts(38,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.d.ts(41,66): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.d.ts(44,60): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.d.ts(47,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.d.ts(70,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.d.ts(90,9): error TS2300: Duplicate identifier 'empty'.
.build/node_modules/rx/ts/rx.d.ts(269,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.d.ts(287,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.d.ts(309,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.d.ts(388,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/rx.d.ts(403,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/rx.d.ts(404,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/rx.d.ts(405,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/rx.d.ts(406,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/rx.d.ts(407,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/rx.d.ts(408,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/rx.d.ts(522,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/rx.d.ts(530,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/rx.d.ts(534,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/rx.d.ts(535,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/rx.d.ts(625,9): error TS2300: Duplicate identifier 'hasValue'.
.build/node_modules/rx/ts/rx.d.ts(627,9): error TS2300: Duplicate identifier 'kind'.
.build/node_modules/rx/ts/rx.d.ts(628,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.d.ts(629,9): error TS2300: Duplicate identifier 'exception'.
.build/node_modules/rx/ts/rx.d.ts(681,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/rx.d.ts(2489,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.d.ts(2547,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.d.ts(2548,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.es6.d.ts(32,53): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.es6.d.ts(35,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.es6.d.ts(38,66): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.es6.d.ts(41,60): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.es6.d.ts(44,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.es6.d.ts(67,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.es6.d.ts(87,9): error TS2300: Duplicate identifier 'empty'.
.build/node_modules/rx/ts/rx.es6.d.ts(266,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.es6.d.ts(284,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.es6.d.ts(306,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.es6.d.ts(385,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/rx.es6.d.ts(400,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/rx.es6.d.ts(401,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/rx.es6.d.ts(402,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/rx.es6.d.ts(403,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/rx.es6.d.ts(404,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/rx.es6.d.ts(405,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/rx.es6.d.ts(519,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/rx.es6.d.ts(527,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/rx.es6.d.ts(531,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/rx.es6.d.ts(532,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/rx.es6.d.ts(622,9): error TS2300: Duplicate identifier 'hasValue'.
.build/node_modules/rx/ts/rx.es6.d.ts(624,9): error TS2300: Duplicate identifier 'kind'.
.build/node_modules/rx/ts/rx.es6.d.ts(625,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.es6.d.ts(626,9): error TS2300: Duplicate identifier 'exception'.
.build/node_modules/rx/ts/rx.es6.d.ts(678,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/rx.es6.d.ts(2486,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.es6.d.ts(2544,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.es6.d.ts(2545,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.experimental.d.ts(423,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.experimental.es6.d.ts(423,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.joinpatterns.d.ts(3,18): error TS2300: Duplicate identifier 'Plan'.
.build/node_modules/rx/ts/rx.joinpatterns.d.ts(143,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.joinpatterns.es6.d.ts(3,18): error TS2300: Duplicate identifier 'Plan'.
.build/node_modules/rx/ts/rx.joinpatterns.es6.d.ts(143,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.lite.d.ts(35,53): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.d.ts(38,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.d.ts(41,66): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.d.ts(44,60): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.d.ts(47,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.d.ts(70,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.d.ts(90,9): error TS2300: Duplicate identifier 'empty'.
.build/node_modules/rx/ts/rx.lite.d.ts(269,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.d.ts(287,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.d.ts(309,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.d.ts(388,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/rx.lite.d.ts(403,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/rx.lite.d.ts(404,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/rx.lite.d.ts(405,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/rx.lite.d.ts(406,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/rx.lite.d.ts(407,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/rx.lite.d.ts(408,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/rx.lite.d.ts(494,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/rx.lite.d.ts(502,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/rx.lite.d.ts(518,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/rx.lite.d.ts(519,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/rx.lite.d.ts(609,9): error TS2300: Duplicate identifier 'hasValue'.
.build/node_modules/rx/ts/rx.lite.d.ts(611,9): error TS2300: Duplicate identifier 'kind'.
.build/node_modules/rx/ts/rx.lite.d.ts(612,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.lite.d.ts(613,9): error TS2300: Duplicate identifier 'exception'.
.build/node_modules/rx/ts/rx.lite.d.ts(661,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/rx.lite.d.ts(2462,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.d.ts(2799,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.lite.d.ts(2800,9): error TS2300: Duplicate identifier 'timestamp'.
.build/node_modules/rx/ts/rx.lite.d.ts(3102,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.lite.d.ts(3103,28): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(32,53): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(35,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(38,66): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(41,60): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(44,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(67,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(87,9): error TS2300: Duplicate identifier 'empty'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(266,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(284,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(306,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(385,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(400,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(401,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(402,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(403,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(404,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(405,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(491,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(499,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(515,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(516,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(606,9): error TS2300: Duplicate identifier 'hasValue'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(608,9): error TS2300: Duplicate identifier 'kind'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(609,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(610,9): error TS2300: Duplicate identifier 'exception'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(658,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(2459,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(2796,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(2797,9): error TS2300: Duplicate identifier 'timestamp'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(3099,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(3100,28): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.lite.extras.d.ts(225,35): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.lite.extras.es6.d.ts(225,35): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.sorting.d.ts(22,31): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.sorting.es6.d.ts(22,31): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.testing.d.ts(44,9): error TS2300: Duplicate identifier 'time'.
.build/node_modules/rx/ts/rx.testing.d.ts(45,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.testing.d.ts(133,9): error TS2300: Duplicate identifier 'messages'.
.build/node_modules/rx/ts/rx.testing.d.ts(193,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/rx.testing.d.ts(270,31): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.testing.es6.d.ts(44,9): error TS2300: Duplicate identifier 'time'.
.build/node_modules/rx/ts/rx.testing.es6.d.ts(45,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.testing.es6.d.ts(133,9): error TS2300: Duplicate identifier 'messages'.
.build/node_modules/rx/ts/rx.testing.es6.d.ts(193,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/rx.testing.es6.d.ts(270,31): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.time.d.ts(64,3): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.time.d.ts(65,3): error TS2300: Duplicate identifier 'interval'.
.build/node_modules/rx/ts/rx.time.d.ts(283,28): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.time.es6.d.ts(64,3): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.time.es6.d.ts(65,3): error TS2300: Duplicate identifier 'interval'.
.build/node_modules/rx/ts/rx.time.es6.d.ts(283,28): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.virtualtime.d.ts(6,13): error TS2300: Duplicate identifier 'length'.
.build/node_modules/rx/ts/rx.virtualtime.d.ts(20,17): error TS2300: Duplicate identifier 'count'.
.build/node_modules/rx/ts/rx.virtualtime.d.ts(77,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/rx.virtualtime.d.ts(100,35): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.virtualtime.es6.d.ts(6,13): error TS2300: Duplicate identifier 'length'.
.build/node_modules/rx/ts/rx.virtualtime.es6.d.ts(20,17): error TS2300: Duplicate identifier 'count'.
.build/node_modules/rx/ts/rx.virtualtime.es6.d.ts(77,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/rx.virtualtime.es6.d.ts(100,35): error TS2300: Duplicate identifier 'export='."><pre class="notranslate"><code class="notranslate">.build/node_modules/rx/ts/core/abstractobserver.ts(25,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/core/abstractobserver.ts(44,20): error TS2403: Subsequent variable declarations must have the same type. Variable 'AbstractObserver' must be of type 'AbstractObserverStatic', but here has type 'AbstractObserverStatic'.
.build/node_modules/rx/ts/core/anonymousobserver.ts(33,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'AnonymousObserver' must be of type 'AnonymousObserverStatic', but here has type 'AnonymousObserverStatic'.
.build/node_modules/rx/ts/core/concurrency/currentthreadscheduler.ts(8,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/core/concurrency/defaultscheduler.ts(4,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/core/concurrency/defaultscheduler.ts(5,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/core/concurrency/immediatescheduler.ts(4,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/core/concurrency/scheduleditem.ts(6,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/core/concurrency/scheduleditem.ts(7,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/core/concurrency/scheduleditem.ts(8,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/core/concurrency/scheduleditem.ts(9,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/core/concurrency/scheduleditem.ts(10,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/core/concurrency/scheduleditem.ts(11,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/core/concurrency/scheduleditem.ts(23,20): error TS2403: Subsequent variable declarations must have the same type. Variable 'ScheduledItem' must be of type 'ScheduledItemStatic', but here has type 'ScheduledItemStatic'.
.build/node_modules/rx/ts/core/concurrency/scheduleperiodicrecursive.ts(12,20): error TS2403: Subsequent variable declarations must have the same type. Variable 'SchedulePeriodicRecursive' must be of type 'SchedulePeriodicRecursiveStatic', but here has type 'SchedulePeriodicRecursiveStatic'.
.build/node_modules/rx/ts/core/concurrency/scheduler.ts(62,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/core/concurrency/virtualtimescheduler.ts(56,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/core/disposables/booleandisposable.ts(8,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/core/disposables/booleandisposable.ts(19,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'SingleAssignmentDisposable' must be of type 'SingleAssignmentDisposableStatic', but here has type 'SingleAssignmentDisposableStatic'.
.build/node_modules/rx/ts/core/disposables/booleandisposable.ts(26,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/core/disposables/booleandisposable.ts(37,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'SerialDisposable' must be of type 'SerialDisposableStatic', but here has type 'SerialDisposableStatic'.
.build/node_modules/rx/ts/core/disposables/compositedisposable.ts(35,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'CompositeDisposable' must be of type 'CompositeDisposableStatic', but here has type 'CompositeDisposableStatic'.
.build/node_modules/rx/ts/core/disposables/disposable.ts(8,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/core/disposables/disposable.ts(42,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'Disposable' must be of type 'DisposableStatic', but here has type 'DisposableStatic'.
.build/node_modules/rx/ts/core/disposables/refcountdisposable.ts(12,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/core/disposables/refcountdisposable.ts(30,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'RefCountDisposable' must be of type 'RefCountDisposableStatic', but here has type 'RefCountDisposableStatic'.
.build/node_modules/rx/ts/core/es5.ts(3,17): error TS2300: Duplicate identifier 'ObservableOrPromise'.
.build/node_modules/rx/ts/core/es5.ts(5,17): error TS2300: Duplicate identifier 'ArrayLike'.
.build/node_modules/rx/ts/core/es5.ts(8,17): error TS2300: Duplicate identifier 'ArrayOrIterable'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(8,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(15,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(43,5): error TS2300: Duplicate identifier 'hasInstance'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(49,5): error TS2300: Duplicate identifier 'isConcatSpreadable'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(55,5): error TS2300: Duplicate identifier 'iterator'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(61,5): error TS2300: Duplicate identifier 'match'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(67,5): error TS2300: Duplicate identifier 'replace'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(73,5): error TS2300: Duplicate identifier 'search'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(79,5): error TS2300: Duplicate identifier 'species'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(85,5): error TS2300: Duplicate identifier 'split'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(91,5): error TS2300: Duplicate identifier 'toPrimitive'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(97,5): error TS2300: Duplicate identifier 'toStringTag'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(103,5): error TS2300: Duplicate identifier 'unscopables'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(108,5): error TS2300: Duplicate identifier 'done'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(109,5): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(136,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(150,5): error TS2300: Duplicate identifier 'size'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(153,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(159,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(171,5): error TS2300: Duplicate identifier 'size'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(174,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(180,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(189,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(195,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/core/es6-promise.d.ts(34,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/core/es6-promise.d.ts(41,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/core/es6-promise.d.ts(94,5): error TS2300: Duplicate identifier '[Symbol.species]'.
.build/node_modules/rx/ts/core/es6.ts(5,17): error TS2300: Duplicate identifier 'ObservableOrPromise'.
.build/node_modules/rx/ts/core/es6.ts(7,17): error TS2300: Duplicate identifier 'ArrayLike'.
.build/node_modules/rx/ts/core/es6.ts(10,17): error TS2300: Duplicate identifier 'ArrayOrIterable'.
.build/node_modules/rx/ts/core/internal/errors.ts(3,53): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/core/internal/errors.ts(6,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/core/internal/errors.ts(9,66): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/core/internal/errors.ts(12,60): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/core/internal/errors.ts(15,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/core/internal/priorityqueue.ts(6,13): error TS2300: Duplicate identifier 'length'.
.build/node_modules/rx/ts/core/internal/priorityqueue.ts(23,20): error TS2403: Subsequent variable declarations must have the same type. Variable 'PriorityQueue' must be of type 'PriorityQueueStatic', but here has type 'PriorityQueueStatic'.
.build/node_modules/rx/ts/core/joins/plan.ts(2,18): error TS2300: Duplicate identifier 'Plan'.
.build/node_modules/rx/ts/core/linq/groupedobservable.ts(4,9): error TS2300: Duplicate identifier 'key'.
.build/node_modules/rx/ts/core/linq/groupedobservable.ts(5,9): error TS2300: Duplicate identifier 'underlyingObservable'.
.build/node_modules/rx/ts/core/linq/observable/ofarraychanges.ts(4,9): error TS2300: Duplicate identifier 'type'.
.build/node_modules/rx/ts/core/linq/observable/ofarraychanges.ts(5,9): error TS2300: Duplicate identifier 'object'.
.build/node_modules/rx/ts/core/linq/observable/ofarraychanges.ts(6,9): error TS2300: Duplicate identifier 'name'.
.build/node_modules/rx/ts/core/linq/observable/ofarraychanges.ts(7,9): error TS2300: Duplicate identifier 'oldValue'.
.build/node_modules/rx/ts/core/linq/observable/ofarraychanges.ts(8,9): error TS2300: Duplicate identifier 'index'.
.build/node_modules/rx/ts/core/linq/observable/ofarraychanges.ts(9,9): error TS2300: Duplicate identifier 'removed'.
.build/node_modules/rx/ts/core/linq/observable/ofarraychanges.ts(10,9): error TS2300: Duplicate identifier 'added'.
.build/node_modules/rx/ts/core/linq/observable/ofobjectchanges.ts(4,9): error TS2300: Duplicate identifier 'type'.
.build/node_modules/rx/ts/core/linq/observable/ofobjectchanges.ts(5,9): error TS2300: Duplicate identifier 'object'.
.build/node_modules/rx/ts/core/linq/observable/ofobjectchanges.ts(6,9): error TS2300: Duplicate identifier 'name'.
.build/node_modules/rx/ts/core/linq/observable/ofobjectchanges.ts(7,9): error TS2300: Duplicate identifier 'oldValue'.
.build/node_modules/rx/ts/core/linq/observable/timeinterval.ts(5,3): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/core/linq/observable/timeinterval.ts(6,3): error TS2300: Duplicate identifier 'interval'.
.build/node_modules/rx/ts/core/linq/observable/timestamp.ts(5,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/core/linq/observable/timestamp.ts(6,9): error TS2300: Duplicate identifier 'timestamp'.
.build/node_modules/rx/ts/core/notification.ts(40,9): error TS2300: Duplicate identifier 'hasValue'.
.build/node_modules/rx/ts/core/notification.ts(42,9): error TS2300: Duplicate identifier 'kind'.
.build/node_modules/rx/ts/core/notification.ts(43,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/core/notification.ts(44,9): error TS2300: Duplicate identifier 'exception'.
.build/node_modules/rx/ts/core/notification.ts(69,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'Notification' must be of type 'NotificationStatic', but here has type 'NotificationStatic'.
.build/node_modules/rx/ts/core/subjects/anonymoussubject.ts(17,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'AnonymousSubject' must be of type 'AnonymousSubjectStatic', but here has type 'AnonymousSubjectStatic'.
.build/node_modules/rx/ts/core/subjects/asyncsubject.ts(18,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'AsyncSubject' must be of type 'AsyncSubjectStatic', but here has type 'AsyncSubjectStatic'.
.build/node_modules/rx/ts/core/subjects/behaviorsubject.ts(27,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'BehaviorSubject' must be of type 'BehaviorSubjectStatic', but here has type 'BehaviorSubjectStatic'.
.build/node_modules/rx/ts/core/subjects/replaysubject.ts(20,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'ReplaySubject' must be of type 'ReplaySubjectStatic', but here has type 'ReplaySubjectStatic'.
.build/node_modules/rx/ts/core/subjects/subject.ts(17,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/core/subjects/subject.ts(39,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'Subject' must be of type 'SubjectStatic', but here has type 'SubjectStatic'.
.build/node_modules/rx/ts/core/testing/mockobserver.ts(7,9): error TS2300: Duplicate identifier 'messages'.
.build/node_modules/rx/ts/core/testing/mockobserver.ts(14,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'MockObserver' must be of type 'MockObserverStatic', but here has type 'MockObserverStatic'.
.build/node_modules/rx/ts/core/testing/recorded.ts(16,9): error TS2300: Duplicate identifier 'time'.
.build/node_modules/rx/ts/core/testing/recorded.ts(17,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/core/testing/recorded.ts(32,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'Recorded' must be of type 'RecordedStatic', but here has type 'RecordedStatic'.
.build/node_modules/rx/ts/core/testing/subscription.ts(27,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'Subscription' must be of type 'SubscriptionStatic', but here has type 'SubscriptionStatic'.
.build/node_modules/rx/ts/es6-promise.es6.d.ts(34,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/es6-promise.es6.d.ts(41,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/es6-promise.es6.d.ts(94,5): error TS2300: Duplicate identifier '[Symbol.species]'.
.build/node_modules/rx/ts/iterable.es6.d.ts(8,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/iterable.es6.d.ts(15,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/iterable.es6.d.ts(43,5): error TS2300: Duplicate identifier 'hasInstance'.
.build/node_modules/rx/ts/iterable.es6.d.ts(49,5): error TS2300: Duplicate identifier 'isConcatSpreadable'.
.build/node_modules/rx/ts/iterable.es6.d.ts(55,5): error TS2300: Duplicate identifier 'iterator'.
.build/node_modules/rx/ts/iterable.es6.d.ts(61,5): error TS2300: Duplicate identifier 'match'.
.build/node_modules/rx/ts/iterable.es6.d.ts(67,5): error TS2300: Duplicate identifier 'replace'.
.build/node_modules/rx/ts/iterable.es6.d.ts(73,5): error TS2300: Duplicate identifier 'search'.
.build/node_modules/rx/ts/iterable.es6.d.ts(79,5): error TS2300: Duplicate identifier 'species'.
.build/node_modules/rx/ts/iterable.es6.d.ts(85,5): error TS2300: Duplicate identifier 'split'.
.build/node_modules/rx/ts/iterable.es6.d.ts(91,5): error TS2300: Duplicate identifier 'toPrimitive'.
.build/node_modules/rx/ts/iterable.es6.d.ts(97,5): error TS2300: Duplicate identifier 'toStringTag'.
.build/node_modules/rx/ts/iterable.es6.d.ts(103,5): error TS2300: Duplicate identifier 'unscopables'.
.build/node_modules/rx/ts/iterable.es6.d.ts(108,5): error TS2300: Duplicate identifier 'done'.
.build/node_modules/rx/ts/iterable.es6.d.ts(109,5): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/iterable.es6.d.ts(136,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/iterable.es6.d.ts(150,5): error TS2300: Duplicate identifier 'size'.
.build/node_modules/rx/ts/iterable.es6.d.ts(153,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/iterable.es6.d.ts(159,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/iterable.es6.d.ts(171,5): error TS2300: Duplicate identifier 'size'.
.build/node_modules/rx/ts/iterable.es6.d.ts(174,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/iterable.es6.d.ts(180,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/iterable.es6.d.ts(189,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/iterable.es6.d.ts(195,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/rx.aggregates.d.ts(259,34): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.aggregates.es6.d.ts(284,34): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.all.d.ts(22,22): error TS2320: Interface 'IPromise<T>' cannot simultaneously extend types 'Promise<T>' and 'PromiseLike<T>'.
Named property 'then' of types 'Promise<T>' and 'PromiseLike<T>' are not identical.
.build/node_modules/rx/ts/rx.all.d.ts(35,53): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.d.ts(38,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.d.ts(41,66): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.d.ts(44,60): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.d.ts(47,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.d.ts(70,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.d.ts(90,9): error TS2300: Duplicate identifier 'empty'.
.build/node_modules/rx/ts/rx.all.d.ts(232,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/rx.all.d.ts(233,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/rx.all.d.ts(234,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/rx.all.d.ts(235,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/rx.all.d.ts(236,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/rx.all.d.ts(237,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/rx.all.d.ts(255,13): error TS2300: Duplicate identifier 'length'.
.build/node_modules/rx/ts/rx.all.d.ts(269,17): error TS2300: Duplicate identifier 'count'.
.build/node_modules/rx/ts/rx.all.d.ts(314,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.d.ts(332,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.d.ts(354,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.d.ts(433,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/rx.all.d.ts(545,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/rx.all.d.ts(553,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/rx.all.d.ts(557,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/rx.all.d.ts(558,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/rx.all.d.ts(648,9): error TS2300: Duplicate identifier 'hasValue'.
.build/node_modules/rx/ts/rx.all.d.ts(650,9): error TS2300: Duplicate identifier 'kind'.
.build/node_modules/rx/ts/rx.all.d.ts(651,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.all.d.ts(652,9): error TS2300: Duplicate identifier 'exception'.
.build/node_modules/rx/ts/rx.all.d.ts(704,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/rx.all.d.ts(939,9): error TS2300: Duplicate identifier 'type'.
.build/node_modules/rx/ts/rx.all.d.ts(940,9): error TS2300: Duplicate identifier 'object'.
.build/node_modules/rx/ts/rx.all.d.ts(941,9): error TS2300: Duplicate identifier 'name'.
.build/node_modules/rx/ts/rx.all.d.ts(942,9): error TS2300: Duplicate identifier 'oldValue'.
.build/node_modules/rx/ts/rx.all.d.ts(943,9): error TS2300: Duplicate identifier 'index'.
.build/node_modules/rx/ts/rx.all.d.ts(944,9): error TS2300: Duplicate identifier 'removed'.
.build/node_modules/rx/ts/rx.all.d.ts(945,9): error TS2300: Duplicate identifier 'added'.
.build/node_modules/rx/ts/rx.all.d.ts(958,9): error TS2300: Duplicate identifier 'type'.
.build/node_modules/rx/ts/rx.all.d.ts(959,9): error TS2300: Duplicate identifier 'object'.
.build/node_modules/rx/ts/rx.all.d.ts(960,9): error TS2300: Duplicate identifier 'name'.
.build/node_modules/rx/ts/rx.all.d.ts(961,9): error TS2300: Duplicate identifier 'oldValue'.
.build/node_modules/rx/ts/rx.all.d.ts(3221,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.d.ts(3771,18): error TS2300: Duplicate identifier 'Plan'.
.build/node_modules/rx/ts/rx.all.d.ts(4081,3): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.all.d.ts(4082,3): error TS2300: Duplicate identifier 'interval'.
.build/node_modules/rx/ts/rx.all.d.ts(4100,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.all.d.ts(4101,9): error TS2300: Duplicate identifier 'timestamp'.
.build/node_modules/rx/ts/rx.all.d.ts(4762,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/rx.all.d.ts(4787,9): error TS2300: Duplicate identifier 'key'.
.build/node_modules/rx/ts/rx.all.d.ts(4788,9): error TS2300: Duplicate identifier 'underlyingObservable'.
.build/node_modules/rx/ts/rx.all.d.ts(4840,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.all.d.ts(4841,27): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.all.es6.d.ts(32,53): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(35,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(38,66): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(41,60): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(44,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(67,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(87,9): error TS2300: Duplicate identifier 'empty'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(229,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(230,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(231,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(232,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(233,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(234,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(252,13): error TS2300: Duplicate identifier 'length'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(266,17): error TS2300: Duplicate identifier 'count'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(311,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(329,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(351,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(430,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(542,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(550,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(554,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(555,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(645,9): error TS2300: Duplicate identifier 'hasValue'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(647,9): error TS2300: Duplicate identifier 'kind'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(648,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(649,9): error TS2300: Duplicate identifier 'exception'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(701,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(936,9): error TS2300: Duplicate identifier 'type'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(937,9): error TS2300: Duplicate identifier 'object'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(938,9): error TS2300: Duplicate identifier 'name'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(939,9): error TS2300: Duplicate identifier 'oldValue'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(940,9): error TS2300: Duplicate identifier 'index'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(941,9): error TS2300: Duplicate identifier 'removed'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(942,9): error TS2300: Duplicate identifier 'added'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(955,9): error TS2300: Duplicate identifier 'type'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(956,9): error TS2300: Duplicate identifier 'object'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(957,9): error TS2300: Duplicate identifier 'name'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(958,9): error TS2300: Duplicate identifier 'oldValue'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(3243,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(3793,18): error TS2300: Duplicate identifier 'Plan'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4103,3): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4104,3): error TS2300: Duplicate identifier 'interval'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4122,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4123,9): error TS2300: Duplicate identifier 'timestamp'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4784,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4809,9): error TS2300: Duplicate identifier 'key'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4810,9): error TS2300: Duplicate identifier 'underlyingObservable'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4862,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4863,27): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.async.d.ts(73,29): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.async.es6.d.ts(73,29): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.backpressure.d.ts(21,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.backpressure.es6.d.ts(21,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.binding.d.ts(13,31): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.binding.es6.d.ts(13,31): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.coincidence.d.ts(181,9): error TS2300: Duplicate identifier 'key'.
.build/node_modules/rx/ts/rx.coincidence.d.ts(182,9): error TS2300: Duplicate identifier 'underlyingObservable'.
.build/node_modules/rx/ts/rx.coincidence.d.ts(186,35): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.coincidence.es6.d.ts(181,9): error TS2300: Duplicate identifier 'key'.
.build/node_modules/rx/ts/rx.coincidence.es6.d.ts(182,9): error TS2300: Duplicate identifier 'underlyingObservable'.
.build/node_modules/rx/ts/rx.coincidence.es6.d.ts(186,35): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.core.binding.d.ts(4,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.core.binding.es6.d.ts(4,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.core.d.ts(40,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.core.d.ts(60,9): error TS2300: Duplicate identifier 'empty'.
.build/node_modules/rx/ts/rx.core.d.ts(239,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.core.d.ts(257,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.core.d.ts(329,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/rx.core.d.ts(344,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/rx.core.d.ts(345,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/rx.core.d.ts(346,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/rx.core.d.ts(347,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/rx.core.d.ts(348,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/rx.core.d.ts(349,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/rx.core.d.ts(447,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/rx.core.d.ts(455,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/rx.core.d.ts(459,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/rx.core.d.ts(460,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/rx.core.d.ts(541,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/rx.core.d.ts(612,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.core.es6.d.ts(37,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(57,9): error TS2300: Duplicate identifier 'empty'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(236,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(254,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(326,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(341,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(342,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(343,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(344,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(345,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(346,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(444,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(452,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(456,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(457,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(538,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(609,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.core.testing.d.ts(6,13): error TS2300: Duplicate identifier 'length'.
.build/node_modules/rx/ts/rx.core.testing.d.ts(20,17): error TS2300: Duplicate identifier 'count'.
.build/node_modules/rx/ts/rx.core.testing.d.ts(77,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/rx.core.testing.d.ts(127,9): error TS2300: Duplicate identifier 'time'.
.build/node_modules/rx/ts/rx.core.testing.d.ts(128,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.core.testing.d.ts(216,9): error TS2300: Duplicate identifier 'messages'.
.build/node_modules/rx/ts/rx.core.testing.d.ts(293,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.core.testing.es6.d.ts(6,13): error TS2300: Duplicate identifier 'length'.
.build/node_modules/rx/ts/rx.core.testing.es6.d.ts(20,17): error TS2300: Duplicate identifier 'count'.
.build/node_modules/rx/ts/rx.core.testing.es6.d.ts(77,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/rx.core.testing.es6.d.ts(127,9): error TS2300: Duplicate identifier 'time'.
.build/node_modules/rx/ts/rx.core.testing.es6.d.ts(128,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.core.testing.es6.d.ts(216,9): error TS2300: Duplicate identifier 'messages'.
.build/node_modules/rx/ts/rx.core.testing.es6.d.ts(293,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.d.ts(35,53): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.d.ts(38,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.d.ts(41,66): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.d.ts(44,60): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.d.ts(47,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.d.ts(70,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.d.ts(90,9): error TS2300: Duplicate identifier 'empty'.
.build/node_modules/rx/ts/rx.d.ts(269,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.d.ts(287,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.d.ts(309,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.d.ts(388,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/rx.d.ts(403,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/rx.d.ts(404,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/rx.d.ts(405,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/rx.d.ts(406,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/rx.d.ts(407,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/rx.d.ts(408,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/rx.d.ts(522,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/rx.d.ts(530,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/rx.d.ts(534,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/rx.d.ts(535,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/rx.d.ts(625,9): error TS2300: Duplicate identifier 'hasValue'.
.build/node_modules/rx/ts/rx.d.ts(627,9): error TS2300: Duplicate identifier 'kind'.
.build/node_modules/rx/ts/rx.d.ts(628,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.d.ts(629,9): error TS2300: Duplicate identifier 'exception'.
.build/node_modules/rx/ts/rx.d.ts(681,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/rx.d.ts(2489,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.d.ts(2547,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.d.ts(2548,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.es6.d.ts(32,53): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.es6.d.ts(35,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.es6.d.ts(38,66): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.es6.d.ts(41,60): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.es6.d.ts(44,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.es6.d.ts(67,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.es6.d.ts(87,9): error TS2300: Duplicate identifier 'empty'.
.build/node_modules/rx/ts/rx.es6.d.ts(266,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.es6.d.ts(284,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.es6.d.ts(306,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.es6.d.ts(385,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/rx.es6.d.ts(400,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/rx.es6.d.ts(401,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/rx.es6.d.ts(402,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/rx.es6.d.ts(403,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/rx.es6.d.ts(404,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/rx.es6.d.ts(405,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/rx.es6.d.ts(519,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/rx.es6.d.ts(527,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/rx.es6.d.ts(531,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/rx.es6.d.ts(532,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/rx.es6.d.ts(622,9): error TS2300: Duplicate identifier 'hasValue'.
.build/node_modules/rx/ts/rx.es6.d.ts(624,9): error TS2300: Duplicate identifier 'kind'.
.build/node_modules/rx/ts/rx.es6.d.ts(625,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.es6.d.ts(626,9): error TS2300: Duplicate identifier 'exception'.
.build/node_modules/rx/ts/rx.es6.d.ts(678,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/rx.es6.d.ts(2486,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.es6.d.ts(2544,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.es6.d.ts(2545,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.experimental.d.ts(423,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.experimental.es6.d.ts(423,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.joinpatterns.d.ts(3,18): error TS2300: Duplicate identifier 'Plan'.
.build/node_modules/rx/ts/rx.joinpatterns.d.ts(143,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.joinpatterns.es6.d.ts(3,18): error TS2300: Duplicate identifier 'Plan'.
.build/node_modules/rx/ts/rx.joinpatterns.es6.d.ts(143,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.lite.d.ts(35,53): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.d.ts(38,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.d.ts(41,66): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.d.ts(44,60): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.d.ts(47,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.d.ts(70,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.d.ts(90,9): error TS2300: Duplicate identifier 'empty'.
.build/node_modules/rx/ts/rx.lite.d.ts(269,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.d.ts(287,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.d.ts(309,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.d.ts(388,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/rx.lite.d.ts(403,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/rx.lite.d.ts(404,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/rx.lite.d.ts(405,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/rx.lite.d.ts(406,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/rx.lite.d.ts(407,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/rx.lite.d.ts(408,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/rx.lite.d.ts(494,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/rx.lite.d.ts(502,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/rx.lite.d.ts(518,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/rx.lite.d.ts(519,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/rx.lite.d.ts(609,9): error TS2300: Duplicate identifier 'hasValue'.
.build/node_modules/rx/ts/rx.lite.d.ts(611,9): error TS2300: Duplicate identifier 'kind'.
.build/node_modules/rx/ts/rx.lite.d.ts(612,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.lite.d.ts(613,9): error TS2300: Duplicate identifier 'exception'.
.build/node_modules/rx/ts/rx.lite.d.ts(661,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/rx.lite.d.ts(2462,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.d.ts(2799,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.lite.d.ts(2800,9): error TS2300: Duplicate identifier 'timestamp'.
.build/node_modules/rx/ts/rx.lite.d.ts(3102,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.lite.d.ts(3103,28): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(32,53): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(35,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(38,66): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(41,60): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(44,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(67,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(87,9): error TS2300: Duplicate identifier 'empty'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(266,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(284,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(306,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(385,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(400,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(401,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(402,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(403,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(404,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(405,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(491,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(499,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(515,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(516,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(606,9): error TS2300: Duplicate identifier 'hasValue'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(608,9): error TS2300: Duplicate identifier 'kind'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(609,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(610,9): error TS2300: Duplicate identifier 'exception'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(658,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(2459,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(2796,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(2797,9): error TS2300: Duplicate identifier 'timestamp'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(3099,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(3100,28): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.lite.extras.d.ts(225,35): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.lite.extras.es6.d.ts(225,35): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.sorting.d.ts(22,31): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.sorting.es6.d.ts(22,31): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.testing.d.ts(44,9): error TS2300: Duplicate identifier 'time'.
.build/node_modules/rx/ts/rx.testing.d.ts(45,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.testing.d.ts(133,9): error TS2300: Duplicate identifier 'messages'.
.build/node_modules/rx/ts/rx.testing.d.ts(193,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/rx.testing.d.ts(270,31): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.testing.es6.d.ts(44,9): error TS2300: Duplicate identifier 'time'.
.build/node_modules/rx/ts/rx.testing.es6.d.ts(45,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.testing.es6.d.ts(133,9): error TS2300: Duplicate identifier 'messages'.
.build/node_modules/rx/ts/rx.testing.es6.d.ts(193,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/rx.testing.es6.d.ts(270,31): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.time.d.ts(64,3): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.time.d.ts(65,3): error TS2300: Duplicate identifier 'interval'.
.build/node_modules/rx/ts/rx.time.d.ts(283,28): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.time.es6.d.ts(64,3): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.time.es6.d.ts(65,3): error TS2300: Duplicate identifier 'interval'.
.build/node_modules/rx/ts/rx.time.es6.d.ts(283,28): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.virtualtime.d.ts(6,13): error TS2300: Duplicate identifier 'length'.
.build/node_modules/rx/ts/rx.virtualtime.d.ts(20,17): error TS2300: Duplicate identifier 'count'.
.build/node_modules/rx/ts/rx.virtualtime.d.ts(77,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/rx.virtualtime.d.ts(100,35): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.virtualtime.es6.d.ts(6,13): error TS2300: Duplicate identifier 'length'.
.build/node_modules/rx/ts/rx.virtualtime.es6.d.ts(20,17): error TS2300: Duplicate identifier 'count'.
.build/node_modules/rx/ts/rx.virtualtime.es6.d.ts(77,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/rx.virtualtime.es6.d.ts(100,35): error TS2300: Duplicate identifier 'export='.
</code></pre></div>
|
<h1 dir="auto">Problem</h1>
<p dir="auto">Currently TypeScript compiler accepts a single compiler option, <code class="notranslate">target</code>, which specify both version of library to be included during compilation and version of JavaScript for emitting code together.<br>
The behaviour presents limitations in two parts of the pipeline: consuming the default library and granularly controlling how JavaScript will be emitted (e.g. what features to be down-level etc.).<br>
The proposal will mainly focus on the first issue regarding using the default library.</p>
<p dir="auto">The current behavior of <code class="notranslate">target</code> option doesn't allow users to have a fine-grain control on what library or feature of the library to be included, and user cannot independently control library's version from emit JavaScript version. As summarized in <a href="https://github.com/Microsoft/TypeScript/issues/4692" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/4692/hovercard">#4692</a> <em>Proposal: Granular Targeting</em> and <a href="https://github.com/Microsoft/TypeScript/issues/4168" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/4168/hovercard">#4168</a> <em>Normalize our lib files by compiler setting</em></p>
<ul dir="auto">
<li>Emit ES5 JavaScript while using ES6 library during design-time (and vice-versa).</li>
<li>Include only sub-part of the ES6/ESnext library</li>
<li>Modifying default libraries can conflict with users-defined ones.</li>
<li>Using host-specific library.</li>
</ul>
<h2 dir="auto">Workaround</h2>
<p dir="auto">As <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/yortus/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/yortus">@yortus</a> points out in the <a href="https://github.com/Microsoft/TypeScript/issues/4692" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/4692/hovercard">#4692</a> <em>Proposal: Granular Targeting</em> , there are possible workarounds for above issues by maintaing customized version of the default library while <code class="notranslate">target</code> another version of emit JavaScript.<br>
Such approach is cumbersome to maintain and consume any necessary fixes of the default library.</p>
<h2 dir="auto">Related Issues:</h2>
<ul dir="auto">
<li><a href="https://github.com/Microsoft/TypeScript/issues/4692" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/4692/hovercard">#4692</a> Proposal: Granular Targeting</li>
<li><a href="https://github.com/Microsoft/TypeScript/issues/4168" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/4168/hovercard">#4168</a> Normalize our lib files by compiler settings</li>
<li><a href="https://github.com/Microsoft/TypeScript/issues/3215" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/3215/hovercard">#3215</a> New APIs added to lib.d.ts may break client codes. Allow duplicated members in interfaces? Make lib.d.ts overridable?</li>
<li><a href="https://github.com/Microsoft/TypeScript/issues/3005" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/3005/hovercard">#3005</a> Using ES6 type default library when targetting ES5 output</li>
</ul>
<h1 dir="auto">Proposed Solution</h1>
<p dir="auto">There are two parts to the proposed solution:</p>
<ol dir="auto">
<li>Introducing a new compiler flag <code class="notranslate">--lib</code>. The flag will be used to allow users to granularly control the default library.<br>
Note: <code class="notranslate">target</code> flag will remain. Its behaviors with <code class="notranslate">--lib</code> flag will be discussed below.</li>
<li>Breaking down the default library into smaller files, especially ES6 library and any future JavaScript library.</li>
</ol>
<h2 dir="auto">Compiler Flag <code class="notranslate">--lib</code></h2>
<p dir="auto">The flag's options (see below for the full list) allows users to specify what library to be included into the compilation.<br>
The flag's options can be separated into following categories:</p>
<ul dir="auto">
<li>
<p dir="auto">JavaScript only:</p>
<p dir="auto">es3</p>
<p dir="auto">es5</p>
<p dir="auto">es6</p>
</li>
<li>
<p dir="auto">Host only:</p>
<p dir="auto">node</p>
<p dir="auto">dom</p>
<p dir="auto">dom.iterable</p>
<p dir="auto">webworker</p>
<p dir="auto">scripthost</p>
</li>
<li>
<p dir="auto">ES6 or ESNext by-features options:</p>
<p dir="auto">es6.array</p>
<p dir="auto">es6.collection</p>
<p dir="auto">es6.function</p>
<p dir="auto">es6.generator</p>
<p dir="auto">es6.iterable</p>
<p dir="auto">es6.math</p>
<p dir="auto">es6.number</p>
<p dir="auto">es6.object</p>
<p dir="auto">es6.promise</p>
<p dir="auto">es6.proxy</p>
<p dir="auto">es6.reflect</p>
<p dir="auto">es6.regexp</p>
<p dir="auto">es6.string</p>
<p dir="auto">es6.symbol</p>
<p dir="auto">es6.symbol.wellknown</p>
<p dir="auto">es7.array.include</p>
</li>
</ul>
<p dir="auto">The <code class="notranslate">--lib</code> flag is an optional flag and multiple options can be used in combination (e.g <code class="notranslate">--lib es6,dom.iterable</code>) and each option will be mapped to associated library.<br>
So in this example, files: <code class="notranslate">lib.es6.d.ts</code> and <code class="notranslate">lib.dom.iterable.d.ts</code> will be loaded into the compilation..<br>
When <code class="notranslate">--lib</code> is specified, <code class="notranslate">--target</code> will be used solely to indicate version of emitting JavaScript.</p>
<p dir="auto">In additional to above behavior, we still need to determine what to be included when <code class="notranslate">--lib</code> is not specified, should it remain the same, including version of library specifying by <code class="notranslate">--target</code> and all host libraries, or including every library. -> _Current implementation is to include version of the library using <code class="notranslate">--target</code></p>
<p dir="auto">The proposal will only affect when the compiler attempts to create compilation in Program.ts. Other parts of the pipeline will not be affected by the proposal.</p>
<h1 dir="auto">Usage:</h1>
<p dir="auto">The <code class="notranslate">--lib</code> flag will take an options in the form of string separated by comma. Space will not be allowed as a separator. This rule apply to both command line and tsconfig</p>
<p dir="auto">Valid</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="tsc --target es5 --lib es6
tsc --target es5 --lib es5,es6.array"><pre class="notranslate">tsc --target es5 --lib es6
tsc --target es5 --lib es5,es6.array</pre></div>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""compilerOptions": {
...
"lib": "es5,es6.array"
}"><pre class="notranslate"><span class="pl-ent">"compilerOptions"</span>: {
<span class="pl-ii">...</span>
<span class="pl-ent">"lib"</span>: <span class="pl-s"><span class="pl-pds">"</span>es5,es6.array<span class="pl-pds">"</span></span>
}</pre></div>
<p dir="auto">Invalid command-line</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="tsc --target es5--lib es5, es6.array // es6.array will be considered a file-name
tsc --target es5 --lib es5 es6.array // es6.array will be considered a file-name"><pre class="notranslate">tsc --target es5--lib es5, es6.array // es6.array will be considered a file-name
tsc --target es5 --lib es5 es6.array // es6.array will be considered a file-name</pre></div>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""compilerOptions": {
...
"lib": "es5, es6.array"
}"><pre class="notranslate"><span class="pl-ent">"compilerOptions"</span>: {
<span class="pl-ii">...</span>
<span class="pl-ent">"lib"</span>: <span class="pl-s"><span class="pl-pds">"</span>es5, es6.array<span class="pl-pds">"</span></span>
}</pre></div>
<h1 dir="auto">Working Items:</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Breaking up the library (PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="132563514" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/6990" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/TypeScript/pull/6990/hovercard" href="https://github.com/microsoft/TypeScript/pull/6990">#6990</a>, this PR is folded into <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="132320081" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/6974" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/6974/hovercard" href="https://github.com/microsoft/TypeScript/issues/6974">#6974</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Adding compiler options (PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="132320081" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/6974" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/6974/hovercard" href="https://github.com/microsoft/TypeScript/issues/6974">#6974</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Language Service support in VS</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Add node.d.ts and browser.d.ts</li>
</ul>
| 0 |
<h3 dir="auto">Bug report</h3>
<p dir="auto">When creating a legend with a pie graph using the <code class="notranslate">GTK3Cairo</code> backend a TypeError is raised. The issue affects <a href="https://pypi.org/project/matplotlib/#history" rel="nofollow">versions</a> 3.0.0rc2, 3.0.0, 3.0.1, 3.0.2 but not 2.2.3. Likewise this exception is not raised with the backend is <code class="notranslate">GTK3Agg</code>.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib
matplotlib.rcParams['backend'] = 'GTK3Cairo'
import matplotlib.pyplot as plt
fig1, ax1 = plt.subplots()
ax1.pie(
(83, 14, 2),
colors=(
(0.75, 0.86, 1.0),
(0.49, 0.61, 0.73),
(0.24, 0.36, 0.47)
)
)
legend_bbox = fig1.legend(['Sample Text'])
legend_bbox.legendPatch.set_linewidth(0)
plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>
<span class="pl-s1">matplotlib</span>.<span class="pl-s1">rcParams</span>[<span class="pl-s">'backend'</span>] <span class="pl-c1">=</span> <span class="pl-s">'GTK3Cairo'</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">fig1</span>, <span class="pl-s1">ax1</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>()
<span class="pl-s1">ax1</span>.<span class="pl-en">pie</span>(
(<span class="pl-c1">83</span>, <span class="pl-c1">14</span>, <span class="pl-c1">2</span>),
<span class="pl-s1">colors</span><span class="pl-c1">=</span>(
(<span class="pl-c1">0.75</span>, <span class="pl-c1">0.86</span>, <span class="pl-c1">1.0</span>),
(<span class="pl-c1">0.49</span>, <span class="pl-c1">0.61</span>, <span class="pl-c1">0.73</span>),
(<span class="pl-c1">0.24</span>, <span class="pl-c1">0.36</span>, <span class="pl-c1">0.47</span>)
)
)
<span class="pl-s1">legend_bbox</span> <span class="pl-c1">=</span> <span class="pl-s1">fig1</span>.<span class="pl-en">legend</span>([<span class="pl-s">'Sample Text'</span>])
<span class="pl-s1">legend_bbox</span>.<span class="pl-s1">legendPatch</span>.<span class="pl-en">set_linewidth</span>(<span class="pl-c1">0</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/backends/backend_gtk3cairo.py", line 33, in on_draw_event
self._render_figure(allocation.width, allocation.height)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/backends/backend_gtk3cairo.py", line 21, in _render_figure
self.figure.draw(self._renderer)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/figure.py", line 1649, in draw
renderer, self, artists, self.suppressComposite)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/legend.py", line 646, in draw
self.legendPatch.draw(renderer)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/patches.py", line 535, in draw
renderer.draw_path(gc, tpath, affine, rgbFace)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/backends/backend_cairo.py", line 239, in draw_path
_append_path(ctx, path, transform, clip)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/backends/backend_cairo.py", line 163, in _append_path
return _append_paths(ctx, [path], [transform], clip)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/backends/backend_cairo.py", line 104, in _append_paths_slow
*np.concatenate([cur / 3 + points[:2] * 2 / 3,
TypeError: unsupported operand type(s) for /: 'tuple' and 'int'
Traceback (most recent call last):
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/backends/backend_gtk3cairo.py", line 33, in on_draw_event
self._render_figure(allocation.width, allocation.height)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/backends/backend_gtk3cairo.py", line 21, in _render_figure
self.figure.draw(self._renderer)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/figure.py", line 1649, in draw
renderer, self, artists, self.suppressComposite)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/legend.py", line 646, in draw
self.legendPatch.draw(renderer)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/patches.py", line 535, in draw
renderer.draw_path(gc, tpath, affine, rgbFace)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/backends/backend_cairo.py", line 239, in draw_path
_append_path(ctx, path, transform, clip)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/backends/backend_cairo.py", line 163, in _append_path
return _append_paths(ctx, [path], [transform], clip)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/backends/backend_cairo.py", line 104, in _append_paths_slow
*np.concatenate([cur / 3 + points[:2] * 2 / 3,
TypeError: unsupported operand type(s) for /: 'tuple' and 'int'
"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/backends/backend_gtk3cairo.py", line 33, in on_draw_event
self._render_figure(allocation.width, allocation.height)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/backends/backend_gtk3cairo.py", line 21, in _render_figure
self.figure.draw(self._renderer)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/figure.py", line 1649, in draw
renderer, self, artists, self.suppressComposite)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/legend.py", line 646, in draw
self.legendPatch.draw(renderer)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/patches.py", line 535, in draw
renderer.draw_path(gc, tpath, affine, rgbFace)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/backends/backend_cairo.py", line 239, in draw_path
_append_path(ctx, path, transform, clip)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/backends/backend_cairo.py", line 163, in _append_path
return _append_paths(ctx, [path], [transform], clip)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/backends/backend_cairo.py", line 104, in _append_paths_slow
*np.concatenate([cur / 3 + points[:2] * 2 / 3,
TypeError: unsupported operand type(s) for /: 'tuple' and 'int'
Traceback (most recent call last):
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/backends/backend_gtk3cairo.py", line 33, in on_draw_event
self._render_figure(allocation.width, allocation.height)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/backends/backend_gtk3cairo.py", line 21, in _render_figure
self.figure.draw(self._renderer)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/figure.py", line 1649, in draw
renderer, self, artists, self.suppressComposite)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/legend.py", line 646, in draw
self.legendPatch.draw(renderer)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/patches.py", line 535, in draw
renderer.draw_path(gc, tpath, affine, rgbFace)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/backends/backend_cairo.py", line 239, in draw_path
_append_path(ctx, path, transform, clip)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/backends/backend_cairo.py", line 163, in _append_path
return _append_paths(ctx, [path], [transform], clip)
File "<redacted>/.venv/lib/python3.6/site-packages/matplotlib/backends/backend_cairo.py", line 104, in _append_paths_slow
*np.concatenate([cur / 3 + points[:2] * 2 / 3,
TypeError: unsupported operand type(s) for /: 'tuple' and 'int'
</code></pre></div>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">The expected outcome is that a legend with the text "Sample Text" would be displayed and there would be no stack trace.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: Fedora 28 x64</li>
<li>Matplotlib version: 3.0.2 (Installed from PyPi with PIP)</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): GTK3Cairo</li>
<li>Python version: 3.6</li>
<li>Jupyter version (if applicable): N/A</li>
<li>Other libraries: N/A</li>
</ul>
|
<p dir="auto">Saving a figure with <code class="notranslate">plt.savefig</code> in <code class="notranslate">svg</code> file format using the <code class="notranslate">cairo</code> backend results in a <code class="notranslate">TypeError</code>. The Traceback is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" /sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/util/plot.py(814)save_and_close_fig()
-> plt.savefig('plot.svg', transparent=True, dpi=800)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/pyplot.py(689)savefig()
-> res = fig.savefig(*args, **kwargs)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/figure.py(2094)savefig()
-> self.canvas.print_figure(fname, **kwargs)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/backend_bases.py(2075)print_figure()
-> **kwargs)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/backends/backend_cairo.py(569)print_svg()
-> return self._save(fobj, 'svg', *args, **kwargs)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/backends/backend_cairo.py(622)_save()
-> self.figure.draw(renderer)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/artist.py(50)draw_wrapper()
-> return draw(artist, renderer, *args, **kwargs)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/figure.py(1649)draw()
-> renderer, self, artists, self.suppressComposite)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/image.py(138)_draw_list_compositing_images()
-> a.draw(renderer)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/artist.py(50)draw_wrapper()
-> return draw(artist, renderer, *args, **kwargs)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/axes/_base.py(2628)draw()
-> mimage._draw_list_compositing_images(renderer, self, artists)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/image.py(138)_draw_list_compositing_images()
-> a.draw(renderer)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/artist.py(50)draw_wrapper()
-> return draw(artist, renderer, *args, **kwargs)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/legend.py(646)draw()
-> self.legendPatch.draw(renderer)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/artist.py(50)draw_wrapper()
-> return draw(artist, renderer, *args, **kwargs)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/patches.py(535)draw()
-> renderer.draw_path(gc, tpath, affine, rgbFace)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/backends/backend_cairo.py(239)draw_path()
-> _append_path(ctx, path, transform, clip)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/backends/backend_cairo.py(163)_append_path()
-> return _append_paths(ctx, [path], [transform], clip)
> /sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/backends/backend_cairo.py(104)_append_paths_slow()
-> *np.concatenate([cur / 3 + points[:2] * 2 / 3,
(Pdb) points[:2]
array([404.72 , 67.472])
(Pdb) cur
(400.71875, 67.47265625)"><pre class="notranslate"><code class="notranslate"> /sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/util/plot.py(814)save_and_close_fig()
-> plt.savefig('plot.svg', transparent=True, dpi=800)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/pyplot.py(689)savefig()
-> res = fig.savefig(*args, **kwargs)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/figure.py(2094)savefig()
-> self.canvas.print_figure(fname, **kwargs)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/backend_bases.py(2075)print_figure()
-> **kwargs)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/backends/backend_cairo.py(569)print_svg()
-> return self._save(fobj, 'svg', *args, **kwargs)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/backends/backend_cairo.py(622)_save()
-> self.figure.draw(renderer)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/artist.py(50)draw_wrapper()
-> return draw(artist, renderer, *args, **kwargs)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/figure.py(1649)draw()
-> renderer, self, artists, self.suppressComposite)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/image.py(138)_draw_list_compositing_images()
-> a.draw(renderer)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/artist.py(50)draw_wrapper()
-> return draw(artist, renderer, *args, **kwargs)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/axes/_base.py(2628)draw()
-> mimage._draw_list_compositing_images(renderer, self, artists)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/image.py(138)_draw_list_compositing_images()
-> a.draw(renderer)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/artist.py(50)draw_wrapper()
-> return draw(artist, renderer, *args, **kwargs)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/legend.py(646)draw()
-> self.legendPatch.draw(renderer)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/artist.py(50)draw_wrapper()
-> return draw(artist, renderer, *args, **kwargs)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/patches.py(535)draw()
-> renderer.draw_path(gc, tpath, affine, rgbFace)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/backends/backend_cairo.py(239)draw_path()
-> _append_path(ctx, path, transform, clip)
/sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/backends/backend_cairo.py(163)_append_path()
-> return _append_paths(ctx, [path], [transform], clip)
> /sfs/fs5/home-sh/sunip229/opt/miniconda3/envs/py37_forge_jore/lib/python3.7/site-packages/matplotlib/backends/backend_cairo.py(104)_append_paths_slow()
-> *np.concatenate([cur / 3 + points[:2] * 2 / 3,
(Pdb) points[:2]
array([404.72 , 67.472])
(Pdb) cur
(400.71875, 67.47265625)
</code></pre></div>
<p dir="auto">It seams like the value of <code class="notranslate">cur</code> should be an array and not a tuple.</p>
<p dir="auto">The versions of the related programs are:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cairo 1.14.12 h276e583_5 conda-forge
matplotlib 3.0.2 h8a2030e_0 conda-forge
matplotlib-base 3.0.2 py37h20b835b_0 conda-forge
pycairo 1.18.0 py37h4d1f301_0 conda-forge
python 3.7.0 h5001a0f_4 conda-forge"><pre class="notranslate"><code class="notranslate">cairo 1.14.12 h276e583_5 conda-forge
matplotlib 3.0.2 h8a2030e_0 conda-forge
matplotlib-base 3.0.2 py37h20b835b_0 conda-forge
pycairo 1.18.0 py37h4d1f301_0 conda-forge
python 3.7.0 h5001a0f_4 conda-forge
</code></pre></div>
<p dir="auto">The bug occurred at several plots. However, the creation of the plots is rather complex. Thus I have no minimal example that reproduces the bug for now. If this is necessary, however, I can try to construct one.</p>
| 1 |
<p dir="auto">When I tried to install matplotlib I got following error (I used newest version in pip):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/tmp/pip-build-imsaf6c5/matplotlib/setup.py", line 155, in <module>
result = package.check()
File "/tmp/pip-build-imsaf6c5/matplotlib/setupext.py", line 961, in check
min_version='2.3', version=version)
File "/tmp/pip-build-imsaf6c5/matplotlib/setupext.py", line 445, in _check_for_pkg_config
if (not is_min_version(version, min_version)):
File "/tmp/pip-build-imsaf6c5/matplotlib/setupext.py", line 173, in is_min_version
return found_version >= expected_version
File "/home/jb/.pythonz/pythons/CPython-3.4.3/lib/python3.4/distutils/version.py", line 76, in __ge__
c = self._cmp(other)
File "/home/jb/.pythonz/pythons/CPython-3.4.3/lib/python3.4/distutils/version.py", line 343, in _cmp
if self.version < other.version:
TypeError: unorderable types: str() < int()"><pre class="notranslate"><code class="notranslate"> Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/tmp/pip-build-imsaf6c5/matplotlib/setup.py", line 155, in <module>
result = package.check()
File "/tmp/pip-build-imsaf6c5/matplotlib/setupext.py", line 961, in check
min_version='2.3', version=version)
File "/tmp/pip-build-imsaf6c5/matplotlib/setupext.py", line 445, in _check_for_pkg_config
if (not is_min_version(version, min_version)):
File "/tmp/pip-build-imsaf6c5/matplotlib/setupext.py", line 173, in is_min_version
return found_version >= expected_version
File "/home/jb/.pythonz/pythons/CPython-3.4.3/lib/python3.4/distutils/version.py", line 76, in __ge__
c = self._cmp(other)
File "/home/jb/.pythonz/pythons/CPython-3.4.3/lib/python3.4/distutils/version.py", line 343, in _cmp
if self.version < other.version:
TypeError: unorderable types: str() < int()
</code></pre></div>
<p dir="auto">Problem was caused by <code class="notranslate">freetype-config --ftversion</code> command returning unexpected output, that is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="freetype-config --ftversion
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
(...)
warning: GREP_OPTIONS is deprecated; please use an alias or script
2.5.2"><pre class="notranslate"><code class="notranslate">freetype-config --ftversion
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
(...)
warning: GREP_OPTIONS is deprecated; please use an alias or script
2.5.2
</code></pre></div>
<p dir="auto">Warnings were coming from grep that was whining about <code class="notranslate">GREP_OPTIONS</code> set in my enviorment. When I unexported this variable installation procedeed without error.</p>
|
<p dir="auto">As part of Hashdist:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[matplotlib] Building matplotlib/l6hpd5xi44vw, follow log with:
[matplotlib] tail -f /local/certik/tmp/matplotlib-l6hpd5xi44vw-1/build.log
[matplotlib] running [u'/bin/bash', '_hashdist/build.sh']
[matplotlib] environment:
[matplotlib] {'ARTIFACT': u'/local/certik/bld/matplotlib/l6hpd5xi44vw',
[matplotlib] 'BASH': u'/bin/bash',
[matplotlib] 'BUILD': u'/local/certik/tmp/matplotlib-l6hpd5xi44vw-1',
[matplotlib] u'BZIP2_DIR': u'/local/certik/bld/bzip2/yhn7t7sdxdfd',
[matplotlib] u'BZIP2_ID': u'bzip2/yhn7t7sdxdfdkhyie6hg36hqvgccj7rj',
[matplotlib] u'FREETYPE_DIR': u'/local/certik/bld/freetype/3j5vs5xri633',
[matplotlib] u'FREETYPE_ID': u'freetype/3j5vs5xri6335xcnnxh7kt3iudaos7lp',
[matplotlib] 'HASHDIST_CPU_COUNT': '1',
[matplotlib] 'HDIST_CONFIG': '{"gc_roots":"/local/certik/gcroots","build_stores":[{"dir":"/local/certik/bld"}],"source_caches":[{"dir":"/local/certik/src"}],"cache":"/local/certik/cache","build_temp":"/local/certik/tmp"}',
[matplotlib] 'HDIST_IMPORT': u'bzip2/yhn7t7sdxdfdkhyie6hg36hqvgccj7rj freetype/3j5vs5xri6335xcnnxh7kt3iudaos7lp numpy/o7mh7o3cbu5sk2wukmtmo7qeebkdb6sz patchelf/k3rloj265ogtl4dmmmbmyt34dnffryka pkg-config/nnzbjosob2benze3u2c4vhd2swgkevnq png/q24b4y6ojqdwk2nwnblutd4qrjhmlmev python/m327azitptlvocjp2othxwmlsqcmxu3i setuptools/cl5h5p575pm7wzsnkqxnxgbiql45rrkl zlib/3el5ccejre7bcjqgld5gp6iym4ccd5oe',
[matplotlib] 'HDIST_IMPORT_PATHS': u'/local/certik/bld/bzip2/yhn7t7sdxdfd:/local/certik/bld/freetype/3j5vs5xri633:/local/certik/bld/numpy/o7mh7o3cbu5s:/local/certik/bld/patchelf/k3rloj265ogt:/local/certik/bld/pkg-config/nnzbjosob2be:/local/certik/bld/png/q24b4y6ojqdw:/local/certik/bld/python/m327azitptlv:/local/certik/bld/setuptools/cl5h5p575pm7:/local/certik/bld/zlib/3el5ccejre7b',
[matplotlib] 'HDIST_VIRTUALS': '',
[matplotlib] u'NUMPY_DIR': u'/local/certik/bld/numpy/o7mh7o3cbu5s',
[matplotlib] u'NUMPY_ID': u'numpy/o7mh7o3cbu5sk2wukmtmo7qeebkdb6sz',
[matplotlib] 'PATCHELF': u'/local/certik/bld/patchelf/k3rloj265ogt/bin/patchelf',
[matplotlib] u'PATCHELF_DIR': u'/local/certik/bld/patchelf/k3rloj265ogt',
[matplotlib] u'PATCHELF_ID': u'patchelf/k3rloj265ogtl4dmmmbmyt34dnffryka',
[matplotlib] 'PATH': u'/local/certik/bld/python/m327azitptlv/bin:/local/certik/bld/pkg-config/nnzbjosob2be/bin:/local/certik/bld/freetype/3j5vs5xri633/bin:/usr/bin:/bin',
[matplotlib] u'PKG_CONFIG_DIR': u'/local/certik/bld/pkg-config/nnzbjosob2be',
[matplotlib] 'PKG_CONFIG_EXECUTABLE': u'/local/certik/bld/pkg-config/nnzbjosob2be/bin/pkg-config',
[matplotlib] u'PKG_CONFIG_ID': u'pkg-config/nnzbjosob2benze3u2c4vhd2swgkevnq',
[matplotlib] 'PKG_CONFIG_PATH': u'/local/certik/bld/python/m327azitptlv/lib/pkgconfig:/local/certik/bld/png/q24b4y6ojqdw/lib/pkgconfig:/local/certik/bld/freetype/3j5vs5xri633/lib/pkgconfig',
[matplotlib] u'PNG_DIR': u'/local/certik/bld/png/q24b4y6ojqdw',
[matplotlib] u'PNG_ID': u'png/q24b4y6ojqdwk2nwnblutd4qrjhmlmev',
[matplotlib] 'PWD': u'/local/certik/tmp/matplotlib-l6hpd5xi44vw-1',
[matplotlib] 'PYTHON': u'/local/certik/bld/python/m327azitptlv/bin/python',
[matplotlib] 'PYTHONDONTWRITEBYTECODE': u'yes',
[matplotlib] 'PYTHONPATH': u'/local/certik/bld/setuptools/cl5h5p575pm7/lib/python3.4/site-packages:/local/certik/bld/numpy/o7mh7o3cbu5s/lib/python3.4/site-packages',
[matplotlib] u'PYTHON_DIR': u'/local/certik/bld/python/m327azitptlv',
[matplotlib] u'PYTHON_ID': u'python/m327azitptlvocjp2othxwmlsqcmxu3i',
[matplotlib] u'SETUPTOOLS_DIR': u'/local/certik/bld/setuptools/cl5h5p575pm7',
[matplotlib] u'SETUPTOOLS_ID': u'setuptools/cl5h5p575pm7wzsnkqxnxgbiql45rrkl',
[matplotlib] u'ZLIB_DIR': u'/local/certik/bld/zlib/3el5ccejre7b',
[matplotlib] u'ZLIB_ID': u'zlib/3el5ccejre7bcjqgld5gp6iym4ccd5oe'}
[matplotlib] Traceback (most recent call last):
[matplotlib] File "<string>", line 1, in <module>
[matplotlib] File "<string>", line 155, in <module>
[matplotlib] File "/local/certik/tmp/matplotlib-l6hpd5xi44vw-1/setupext.py", line 1031, in check
[matplotlib] min_version='1.2', version=version)
[matplotlib] File "/local/certik/tmp/matplotlib-l6hpd5xi44vw-1/setupext.py", line 446, in _check_for_pkg_config
[matplotlib] if (not is_min_version(version, min_version)):
[matplotlib] File "/local/certik/tmp/matplotlib-l6hpd5xi44vw-1/setupext.py", line 174, in is_min_version
[matplotlib] return found_version >= expected_version
[matplotlib] File "/local/certik/bld/python/m327azitptlv/lib/python3.4/distutils/version.py", line 76, in __ge__
[matplotlib] c = self._cmp(other)
[matplotlib] File "/local/certik/bld/python/m327azitptlv/lib/python3.4/distutils/version.py", line 343, in _cmp
[matplotlib] if self.version < other.version:
[matplotlib] TypeError: unorderable types: str() < int()
[matplotlib] ============================================================================
[matplotlib] Edit setup.cfg to change the build options
[matplotlib]
[matplotlib] BUILDING MATPLOTLIB
[matplotlib] matplotlib: yes [1.4.2]
[matplotlib] python: yes [3.4.2 (default, Dec 4 2014, 10:45:52) [GCC
[matplotlib] 4.4.7 20120313 (Red Hat 4.4.7-11)]]
[matplotlib] platform: yes [linux]
[matplotlib]
[matplotlib] REQUIRED DEPENDENCIES AND EXTENSIONS
[matplotlib] numpy: yes [version 1.8.2]
[matplotlib] six: yes [six was not found.]
[matplotlib] dateutil: yes [dateutil was not found. It is required for date
[matplotlib] axis support. pip/easy_install may attempt to
[matplotlib] install it after matplotlib.]
[matplotlib] pytz: yes [pytz was not found. pip will attempt to install
[matplotlib] it after matplotlib.]
[matplotlib] tornado: yes [tornado was not found. It is required for the
[matplotlib] WebAgg backend. pip/easy_install may attempt to
[matplotlib] install it after matplotlib.]
[matplotlib] pyparsing: yes [pyparsing was not found. It is required for
[matplotlib] mathtext support. pip/easy_install may attempt to
[matplotlib] install it after matplotlib.]
[matplotlib] pycxx: yes [Official versions of PyCXX are not compatible
[matplotlib] with matplotlib on Python 3.x, since they lack
[matplotlib] support for the buffer object. Using local copy]
[matplotlib] libagg: yes [pkg-config information for 'libagg' could not
[matplotlib] be found. Using local copy.]
[matplotlib] freetype: yes [version 2.4.11]
[matplotlib|ERROR] Command '[u'/bin/bash', '_hashdist/build.sh']' returned non-zero exit status 1
[matplotlib|ERROR] command failed (code=1); raising"><pre class="notranslate"><code class="notranslate">[matplotlib] Building matplotlib/l6hpd5xi44vw, follow log with:
[matplotlib] tail -f /local/certik/tmp/matplotlib-l6hpd5xi44vw-1/build.log
[matplotlib] running [u'/bin/bash', '_hashdist/build.sh']
[matplotlib] environment:
[matplotlib] {'ARTIFACT': u'/local/certik/bld/matplotlib/l6hpd5xi44vw',
[matplotlib] 'BASH': u'/bin/bash',
[matplotlib] 'BUILD': u'/local/certik/tmp/matplotlib-l6hpd5xi44vw-1',
[matplotlib] u'BZIP2_DIR': u'/local/certik/bld/bzip2/yhn7t7sdxdfd',
[matplotlib] u'BZIP2_ID': u'bzip2/yhn7t7sdxdfdkhyie6hg36hqvgccj7rj',
[matplotlib] u'FREETYPE_DIR': u'/local/certik/bld/freetype/3j5vs5xri633',
[matplotlib] u'FREETYPE_ID': u'freetype/3j5vs5xri6335xcnnxh7kt3iudaos7lp',
[matplotlib] 'HASHDIST_CPU_COUNT': '1',
[matplotlib] 'HDIST_CONFIG': '{"gc_roots":"/local/certik/gcroots","build_stores":[{"dir":"/local/certik/bld"}],"source_caches":[{"dir":"/local/certik/src"}],"cache":"/local/certik/cache","build_temp":"/local/certik/tmp"}',
[matplotlib] 'HDIST_IMPORT': u'bzip2/yhn7t7sdxdfdkhyie6hg36hqvgccj7rj freetype/3j5vs5xri6335xcnnxh7kt3iudaos7lp numpy/o7mh7o3cbu5sk2wukmtmo7qeebkdb6sz patchelf/k3rloj265ogtl4dmmmbmyt34dnffryka pkg-config/nnzbjosob2benze3u2c4vhd2swgkevnq png/q24b4y6ojqdwk2nwnblutd4qrjhmlmev python/m327azitptlvocjp2othxwmlsqcmxu3i setuptools/cl5h5p575pm7wzsnkqxnxgbiql45rrkl zlib/3el5ccejre7bcjqgld5gp6iym4ccd5oe',
[matplotlib] 'HDIST_IMPORT_PATHS': u'/local/certik/bld/bzip2/yhn7t7sdxdfd:/local/certik/bld/freetype/3j5vs5xri633:/local/certik/bld/numpy/o7mh7o3cbu5s:/local/certik/bld/patchelf/k3rloj265ogt:/local/certik/bld/pkg-config/nnzbjosob2be:/local/certik/bld/png/q24b4y6ojqdw:/local/certik/bld/python/m327azitptlv:/local/certik/bld/setuptools/cl5h5p575pm7:/local/certik/bld/zlib/3el5ccejre7b',
[matplotlib] 'HDIST_VIRTUALS': '',
[matplotlib] u'NUMPY_DIR': u'/local/certik/bld/numpy/o7mh7o3cbu5s',
[matplotlib] u'NUMPY_ID': u'numpy/o7mh7o3cbu5sk2wukmtmo7qeebkdb6sz',
[matplotlib] 'PATCHELF': u'/local/certik/bld/patchelf/k3rloj265ogt/bin/patchelf',
[matplotlib] u'PATCHELF_DIR': u'/local/certik/bld/patchelf/k3rloj265ogt',
[matplotlib] u'PATCHELF_ID': u'patchelf/k3rloj265ogtl4dmmmbmyt34dnffryka',
[matplotlib] 'PATH': u'/local/certik/bld/python/m327azitptlv/bin:/local/certik/bld/pkg-config/nnzbjosob2be/bin:/local/certik/bld/freetype/3j5vs5xri633/bin:/usr/bin:/bin',
[matplotlib] u'PKG_CONFIG_DIR': u'/local/certik/bld/pkg-config/nnzbjosob2be',
[matplotlib] 'PKG_CONFIG_EXECUTABLE': u'/local/certik/bld/pkg-config/nnzbjosob2be/bin/pkg-config',
[matplotlib] u'PKG_CONFIG_ID': u'pkg-config/nnzbjosob2benze3u2c4vhd2swgkevnq',
[matplotlib] 'PKG_CONFIG_PATH': u'/local/certik/bld/python/m327azitptlv/lib/pkgconfig:/local/certik/bld/png/q24b4y6ojqdw/lib/pkgconfig:/local/certik/bld/freetype/3j5vs5xri633/lib/pkgconfig',
[matplotlib] u'PNG_DIR': u'/local/certik/bld/png/q24b4y6ojqdw',
[matplotlib] u'PNG_ID': u'png/q24b4y6ojqdwk2nwnblutd4qrjhmlmev',
[matplotlib] 'PWD': u'/local/certik/tmp/matplotlib-l6hpd5xi44vw-1',
[matplotlib] 'PYTHON': u'/local/certik/bld/python/m327azitptlv/bin/python',
[matplotlib] 'PYTHONDONTWRITEBYTECODE': u'yes',
[matplotlib] 'PYTHONPATH': u'/local/certik/bld/setuptools/cl5h5p575pm7/lib/python3.4/site-packages:/local/certik/bld/numpy/o7mh7o3cbu5s/lib/python3.4/site-packages',
[matplotlib] u'PYTHON_DIR': u'/local/certik/bld/python/m327azitptlv',
[matplotlib] u'PYTHON_ID': u'python/m327azitptlvocjp2othxwmlsqcmxu3i',
[matplotlib] u'SETUPTOOLS_DIR': u'/local/certik/bld/setuptools/cl5h5p575pm7',
[matplotlib] u'SETUPTOOLS_ID': u'setuptools/cl5h5p575pm7wzsnkqxnxgbiql45rrkl',
[matplotlib] u'ZLIB_DIR': u'/local/certik/bld/zlib/3el5ccejre7b',
[matplotlib] u'ZLIB_ID': u'zlib/3el5ccejre7bcjqgld5gp6iym4ccd5oe'}
[matplotlib] Traceback (most recent call last):
[matplotlib] File "<string>", line 1, in <module>
[matplotlib] File "<string>", line 155, in <module>
[matplotlib] File "/local/certik/tmp/matplotlib-l6hpd5xi44vw-1/setupext.py", line 1031, in check
[matplotlib] min_version='1.2', version=version)
[matplotlib] File "/local/certik/tmp/matplotlib-l6hpd5xi44vw-1/setupext.py", line 446, in _check_for_pkg_config
[matplotlib] if (not is_min_version(version, min_version)):
[matplotlib] File "/local/certik/tmp/matplotlib-l6hpd5xi44vw-1/setupext.py", line 174, in is_min_version
[matplotlib] return found_version >= expected_version
[matplotlib] File "/local/certik/bld/python/m327azitptlv/lib/python3.4/distutils/version.py", line 76, in __ge__
[matplotlib] c = self._cmp(other)
[matplotlib] File "/local/certik/bld/python/m327azitptlv/lib/python3.4/distutils/version.py", line 343, in _cmp
[matplotlib] if self.version < other.version:
[matplotlib] TypeError: unorderable types: str() < int()
[matplotlib] ============================================================================
[matplotlib] Edit setup.cfg to change the build options
[matplotlib]
[matplotlib] BUILDING MATPLOTLIB
[matplotlib] matplotlib: yes [1.4.2]
[matplotlib] python: yes [3.4.2 (default, Dec 4 2014, 10:45:52) [GCC
[matplotlib] 4.4.7 20120313 (Red Hat 4.4.7-11)]]
[matplotlib] platform: yes [linux]
[matplotlib]
[matplotlib] REQUIRED DEPENDENCIES AND EXTENSIONS
[matplotlib] numpy: yes [version 1.8.2]
[matplotlib] six: yes [six was not found.]
[matplotlib] dateutil: yes [dateutil was not found. It is required for date
[matplotlib] axis support. pip/easy_install may attempt to
[matplotlib] install it after matplotlib.]
[matplotlib] pytz: yes [pytz was not found. pip will attempt to install
[matplotlib] it after matplotlib.]
[matplotlib] tornado: yes [tornado was not found. It is required for the
[matplotlib] WebAgg backend. pip/easy_install may attempt to
[matplotlib] install it after matplotlib.]
[matplotlib] pyparsing: yes [pyparsing was not found. It is required for
[matplotlib] mathtext support. pip/easy_install may attempt to
[matplotlib] install it after matplotlib.]
[matplotlib] pycxx: yes [Official versions of PyCXX are not compatible
[matplotlib] with matplotlib on Python 3.x, since they lack
[matplotlib] support for the buffer object. Using local copy]
[matplotlib] libagg: yes [pkg-config information for 'libagg' could not
[matplotlib] be found. Using local copy.]
[matplotlib] freetype: yes [version 2.4.11]
[matplotlib|ERROR] Command '[u'/bin/bash', '_hashdist/build.sh']' returned non-zero exit status 1
[matplotlib|ERROR] command failed (code=1); raising
</code></pre></div>
<p dir="auto">The issues <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="14914096" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/2087" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/2087/hovercard" href="https://github.com/matplotlib/matplotlib/issues/2087">#2087</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="47016790" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/3732" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/3732/hovercard" href="https://github.com/matplotlib/matplotlib/issues/3732">#3732</a> seem related.</p>
<p dir="auto">It works in Python 2.7. The dependencies are exactly the same for 2.7 and 3.4. Here is the build script:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ hit show python3.4.linux.yaml script matplotlib
set -e
export HDIST_IN_BUILD=yes
export CPPFLAGS="-I${BZIP2_DIR}/include -I${FREETYPE_DIR}/include -I${NUMPY_DIR}/include -I${PATCHELF_DIR}/include -I${PKG_CONFIG_DIR}/include -I${PNG_DIR}/include -I${PYTHON_DIR}/include -I${SETUPTOOLS_DIR}/include -I${ZLIB_DIR}/include"
export LDFLAGS="-L${BZIP2_DIR}/lib -Wl,-rpath=${BZIP2_DIR}/lib -L${FREETYPE_DIR}/lib -Wl,-rpath=${FREETYPE_DIR}/lib -L${NUMPY_DIR}/lib -Wl,-rpath=${NUMPY_DIR}/lib -L${PATCHELF_DIR}/lib -Wl,-rpath=${PATCHELF_DIR}/lib -L${PKG_CONFIG_DIR}/lib -Wl,-rpath=${PKG_CONFIG_DIR}/lib -L${PNG_DIR}/lib -Wl,-rpath=${PNG_DIR}/lib -L${PYTHON_DIR}/lib -Wl,-rpath=${PYTHON_DIR}/lib -L${SETUPTOOLS_DIR}/lib -Wl,-rpath=${SETUPTOOLS_DIR}/lib -L${ZLIB_DIR}/lib -Wl,-rpath=${ZLIB_DIR}/lib"
export PYTHONPATH=${ARTIFACT}/lib/python/site-packages:$PYTHONPATH
mkdir -p ${ARTIFACT}/lib/python/site-packages
${PYTHON} -c 'import setuptools; __file__="setup.py"; exec(open(__file__).read())' \
install \
--prefix=. --root=${ARTIFACT} \
--single-version-externally-managed"><pre class="notranslate"><code class="notranslate">$ hit show python3.4.linux.yaml script matplotlib
set -e
export HDIST_IN_BUILD=yes
export CPPFLAGS="-I${BZIP2_DIR}/include -I${FREETYPE_DIR}/include -I${NUMPY_DIR}/include -I${PATCHELF_DIR}/include -I${PKG_CONFIG_DIR}/include -I${PNG_DIR}/include -I${PYTHON_DIR}/include -I${SETUPTOOLS_DIR}/include -I${ZLIB_DIR}/include"
export LDFLAGS="-L${BZIP2_DIR}/lib -Wl,-rpath=${BZIP2_DIR}/lib -L${FREETYPE_DIR}/lib -Wl,-rpath=${FREETYPE_DIR}/lib -L${NUMPY_DIR}/lib -Wl,-rpath=${NUMPY_DIR}/lib -L${PATCHELF_DIR}/lib -Wl,-rpath=${PATCHELF_DIR}/lib -L${PKG_CONFIG_DIR}/lib -Wl,-rpath=${PKG_CONFIG_DIR}/lib -L${PNG_DIR}/lib -Wl,-rpath=${PNG_DIR}/lib -L${PYTHON_DIR}/lib -Wl,-rpath=${PYTHON_DIR}/lib -L${SETUPTOOLS_DIR}/lib -Wl,-rpath=${SETUPTOOLS_DIR}/lib -L${ZLIB_DIR}/lib -Wl,-rpath=${ZLIB_DIR}/lib"
export PYTHONPATH=${ARTIFACT}/lib/python/site-packages:$PYTHONPATH
mkdir -p ${ARTIFACT}/lib/python/site-packages
${PYTHON} -c 'import setuptools; __file__="setup.py"; exec(open(__file__).read())' \
install \
--prefix=. --root=${ARTIFACT} \
--single-version-externally-managed
</code></pre></div>
<p dir="auto">And I used the 1.4.2 tarball: <a href="https://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.4.2/matplotlib-1.4.2.tar.gz" rel="nofollow">https://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.4.2/matplotlib-1.4.2.tar.gz</a></p>
<p dir="auto">And I use linux (RHEL6), though we build all the dependencies ourselves.</p>
| 1 |
<p dir="auto">In the section "Compiler/Runtime improvements" of NEWS.md experimental<br>
threading support should be mentioned and explained, how to enable it.</p>
|
<p dir="auto"><a href="http://docs.julialang.org/en/latest/" rel="nofollow">http://docs.julialang.org/en/latest/</a><br>
NEWS.md<br>
docstrings</p>
| 1 |
<p dir="auto">Preface: I'm not sure if this should be classified as a bug, expected behavior, or a longstanding inference rule that would be problematic to change now.</p>
<p dir="auto">From what I can tell numpy looks to be inferring <code class="notranslate">float64</code> instead of <code class="notranslate">uint64</code> when both of the following conditions are met:</p>
<ul dir="auto">
<li>input data contains a number supported by both <code class="notranslate">int64</code> and <code class="notranslate">uint64</code> (0 to 2**63 - 1)</li>
<li>input data contains a number supported by only <code class="notranslate">uint64</code> (2**63 and above)</li>
</ul>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [1]: import sys; import numpy as np; np.__version__, sys.version
Out[1]:
('1.17.3',
'3.7.5 (default, Oct 25 2019, 10:52:18) \n[Clang 4.0.1 (tags/RELEASE_401/final)]')
In [2]: np.array([0, 2**63])
Out[2]: array([0.00000000e+00, 9.22337204e+18])"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">1</span>]: <span class="pl-s1">import</span> <span class="pl-s1">sys</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">np</span>.<span class="pl-s1">__version__</span>, <span class="pl-s1">sys</span>.<span class="pl-s1">version</span>
<span class="pl-v">Out</span>[<span class="pl-c1">1</span>]:
(<span class="pl-s">'1.17.3'</span>,
<span class="pl-s">'3.7.5 (default, Oct 25 2019, 10:52:18) <span class="pl-cce">\n</span>[Clang 4.0.1 (tags/RELEASE_401/final)]'</span>)
<span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">0</span>, <span class="pl-c1">2</span><span class="pl-c1">**</span><span class="pl-c1">63</span>])
<span class="pl-v">Out</span>[<span class="pl-c1">2</span>]: <span class="pl-en">array</span>([<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">9.22337204e+18</span>])</pre></div>
<p dir="auto">Note that dtype is correctly inferred as <code class="notranslate">uint64</code> when all values fall into the <code class="notranslate">uint64</code>-only range:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [3]: np.array([2**63, 2**63 + 1])
Out[3]: array([9223372036854775808, 9223372036854775809], dtype=uint64)"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">3</span>]: <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">2</span><span class="pl-c1">**</span><span class="pl-c1">63</span>, <span class="pl-c1">2</span><span class="pl-c1">**</span><span class="pl-c1">63</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span>])
<span class="pl-v">Out</span>[<span class="pl-c1">3</span>]: <span class="pl-en">array</span>([<span class="pl-c1">9223372036854775808</span>, <span class="pl-c1">9223372036854775809</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">uint64</span>)</pre></div>
<p dir="auto">Likewise, if all values are supported by both <code class="notranslate">int64</code> and <code class="notranslate">uint64</code> the dtype is correctly inferred as <code class="notranslate">int64</code>:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [4]: np.array([0, 2**63 - 1])
Out[4]: array([ 0, 9223372036854775807])"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">4</span>]: <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">0</span>, <span class="pl-c1">2</span><span class="pl-c1">**</span><span class="pl-c1">63</span> <span class="pl-c1">-</span> <span class="pl-c1">1</span>])
<span class="pl-v">Out</span>[<span class="pl-c1">4</span>]: <span class="pl-en">array</span>([ <span class="pl-c1">0</span>, <span class="pl-c1">9223372036854775807</span>])</pre></div>
<p dir="auto">The <code class="notranslate">float64</code> inference is a bit surprising because data that's supported by an integer dtype is inferred as a non-integer dtype. This can lead to problematic behavior because many <code class="notranslate">uint64</code>-only values cannot be represented exactly by <code class="notranslate">float64</code>, so roundtripping through <code class="notranslate">float64</code> can lead to precision loss:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [5]: np.array([2**63 - 1, 2**63, 2**63 + 1]).astype('uint64')
Out[5]:
array([9223372036854775808, 9223372036854775808, 9223372036854775808],
dtype=uint64)"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">5</span>]: <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">2</span><span class="pl-c1">**</span><span class="pl-c1">63</span> <span class="pl-c1">-</span> <span class="pl-c1">1</span>, <span class="pl-c1">2</span><span class="pl-c1">**</span><span class="pl-c1">63</span>, <span class="pl-c1">2</span><span class="pl-c1">**</span><span class="pl-c1">63</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span>]).<span class="pl-en">astype</span>(<span class="pl-s">'uint64'</span>)
<span class="pl-v">Out</span>[<span class="pl-c1">5</span>]:
<span class="pl-en">array</span>([<span class="pl-c1">9223372036854775808</span>, <span class="pl-c1">9223372036854775808</span>, <span class="pl-c1">9223372036854775808</span>],
<span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">uint64</span>)</pre></div>
<p dir="auto">Of course, the example above can be avoided by directly passing <code class="notranslate">dtype='uint64'</code> to <code class="notranslate">np.array</code> but from a user perspective it doesn't seem very intuitive to account for a corner case in inference logic.</p>
<p dir="auto">There are cases where the <code class="notranslate">float64</code> inference makes sense, e.g. <code class="notranslate">[-1, 2**63]</code>, but it seems like the example I pointed out shouldn't be terribly complicated to infer as <code class="notranslate">uint64</code>. That being said, I don't know if this will cause cascading issues, or if this behavior is too longstanding to change.</p>
|
<p dir="auto">I expected to get uint64</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="umax = np.iinfo(np.uint64).max
np.array([umax]).dtype # <-- uint64, as expected
np.array([0, umax]).dtype # <-- float64, surprising"><pre class="notranslate"><code class="notranslate">umax = np.iinfo(np.uint64).max
np.array([umax]).dtype # <-- uint64, as expected
np.array([0, umax]).dtype # <-- float64, surprising
</code></pre></div>
<p dir="auto">There seems to be something special going on inference-wise around the int64 bound:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="imax = np.iinfo(np.int64).max
np.array([imax, umax]).dtype # <-- float64
np.array([imax+1, umax]).dtype # <-- uint64"><pre class="notranslate"><code class="notranslate">imax = np.iinfo(np.int64).max
np.array([imax, umax]).dtype # <-- float64
np.array([imax+1, umax]).dtype # <-- uint64
</code></pre></div>
| 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<p dir="auto">According to <a href="https://github.com/zeit/next.js#configuring-the-ondemandentries">the docs</a> a page is cached for 25sec in development by default. However, when you change something on the API-side or even in the JSX of a page, the page will update (both by HMR and when calling manually using F5).</p>
<p dir="auto">So I'm curious, what exactly is cached here, what exactly do you specify with <code class="notranslate">maxInactiveAge</code>?</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>5.0.0</td>
</tr>
<tr>
<td>node</td>
<td>9.5.0</td>
</tr>
<tr>
<td>OS</td>
<td>Win10</td>
</tr>
</tbody>
</table>
|
<h1 dir="auto">Feature request</h1>
<h2 dir="auto">Is your feature request related to a problem? Please describe.</h2>
<p dir="auto">I want to match <code class="notranslate">**/[foo].tsx</code> when I access <code class="notranslate">/</code> with <code class="notranslate">**/[foo].tsx</code> but no <code class="notranslate">**/index.tsx</code>. But now, it redirects to 404 page.</p>
<p dir="auto">I'd like to use SSR at first, but once reaching the browser, I'd like to use shallow transition.</p>
<p dir="auto">The following situations are possible on the UI:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Home | About | Blog
^^^^
↑
This route is "/" or "/home".
I want "Home" to be displayed on both "/" and "/home"."><pre class="notranslate"><code class="notranslate">Home | About | Blog
^^^^
↑
This route is "/" or "/home".
I want "Home" to be displayed on both "/" and "/home".
</code></pre></div>
<h2 dir="auto">Describe the solution you'd like</h2>
<p dir="auto">If <code class="notranslate">**/[foo].tsx</code> exists and <code class="notranslate">**/index.tsx</code> does not exist, when we access <code class="notranslate">/</code>, matching <code class="notranslate">**/[foo].tsx</code>.</p>
<h2 dir="auto">Describe alternatives you've considered</h2>
<p dir="auto">I considered following solutions.</p>
<ul dir="auto">
<li>Creating <code class="notranslate">index.tsx</code></li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo
|-[bar].tsx
|-index.tsx"><pre class="notranslate"><code class="notranslate">foo
|-[bar].tsx
|-index.tsx
</code></pre></div>
<p dir="auto">However, this method causes SSR twice, for example, transitioning from <code class="notranslate">/</code> to <code class="notranslate">/about</code>.</p>
<ul dir="auto">
<li>Using server (302) redirect.</li>
</ul>
<p dir="auto">But, this method makes <code class="notranslate">/</code> route unusable.</p>
| 0 |
<p dir="auto">If you reload a page, an isolated route will work, but route params will not.</p>
<p dir="auto">Related to:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="93625510" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/2920" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/2920/hovercard" href="https://github.com/angular/angular/issues/2920">#2920</a></p>
<p dir="auto"><a href="http://stackoverflow.com/questions/32429089/how-do-i-support-routeparams-on-page-reload-using-angular-2-dart?noredirect=1#comment52795245_32429089" rel="nofollow">http://stackoverflow.com/questions/32429089/how-do-i-support-routeparams-on-page-reload-using-angular-2-dart?noredirect=1#comment52795245_32429089</a></p>
<p dir="auto">FTA:</p>
<p dir="auto">Im using the Router and RouteParams in Angular 2 Dart.</p>
<p dir="auto">My routes are as follow:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@RouteConfig(const [
const Route(path: '/', component: ViewLanding, as: 'home'),
const Route(path: '/landing', component: ViewLanding, as: 'landing'),
const Route(path: '/flights', component: ViewFlights, as: 'flights'),
const Route(path: '/picker/:cityDepart/:cityArrival/:dateDepart/:dateArrival/', component: ViewFlights, as: 'picker'),
const Route(path: '/order/:id/:level/:dateDepart/:dateArrival/', component: ViewOrder, as: 'order'),
const Route(path: '/order/complete', component: ViewComplete, as: 'orderComplete')
])"><pre class="notranslate"><code class="notranslate">@RouteConfig(const [
const Route(path: '/', component: ViewLanding, as: 'home'),
const Route(path: '/landing', component: ViewLanding, as: 'landing'),
const Route(path: '/flights', component: ViewFlights, as: 'flights'),
const Route(path: '/picker/:cityDepart/:cityArrival/:dateDepart/:dateArrival/', component: ViewFlights, as: 'picker'),
const Route(path: '/order/:id/:level/:dateDepart/:dateArrival/', component: ViewOrder, as: 'order'),
const Route(path: '/order/complete', component: ViewComplete, as: 'orderComplete')
])
</code></pre></div>
<p dir="auto">// Application Entry Point</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="void main() {
print('-- Main.dart 2 --');
bootstrap(Tickets, [
routerInjectables,
client_classes,
// The base path of your application
bind(APP_BASE_HREF).toValue('/'),
// uncomment this if you want to use '#' in your url
bind(LocationStrategy).toClass(HashLocationStrategy)
]);
}"><pre class="notranslate"><code class="notranslate">void main() {
print('-- Main.dart 2 --');
bootstrap(Tickets, [
routerInjectables,
client_classes,
// The base path of your application
bind(APP_BASE_HREF).toValue('/'),
// uncomment this if you want to use '#' in your url
bind(LocationStrategy).toClass(HashLocationStrategy)
]);
}
</code></pre></div>
<p dir="auto">This works fine with router-outlet / router-link / router.navigate</p>
<p dir="auto">However, on page reload - i don't get a positive match for routes with params. IE: if i refresh <a href="http://localhost:8080/#/picker/SAN/SFO/2015-01-01/2015-04-02" rel="nofollow">http://localhost:8080/#/picker/SAN/SFO/2015-01-01/2015-04-02</a> - i goto the parent view with no child routes. This symptom is true for any route with params.</p>
<p dir="auto">Navigating directly to or refreshing to: <a href="http://localhost:8080/#/flights/" rel="nofollow">http://localhost:8080/#/flights/</a> - works as expected - the ViewFlights component is instantiated</p>
<p dir="auto"><strong>Symptoms:</strong><br>
routing with params fails.</p>
<p dir="auto"><strong>Question:</strong><br>
How do i define route configurations to work with parameters on refresh</p>
<p dir="auto"><strong>Links:</strong><br>
<a href="https://github.com/rightisleft/web_apps_dart/blob/angular2/web/main.dart">https://github.com/rightisleft/web_apps_dart/blob/angular2/web/main.dart</a><br>
<a href="https://github.com/rightisleft/web_apps_dart/blob/angular2/lib/client/tickets.dart">https://github.com/rightisleft/web_apps_dart/blob/angular2/lib/client/tickets.dart</a></p>
|
<p dir="auto">When user visits URL like the <a href="http://example.com/path/part?queryParam=value" rel="nofollow">http://example.com/path/part?queryParam=value</a>, there is no access to the "queryParam" via RouteParams in the component that is configured to match the "/path/part" route.</p>
<p dir="auto">When the RootRouter class calls to the navigate method in its constructor, it passes in as a parameter only the path part of a URL discarding all query string parameters.</p>
| 1 |
<p dir="auto">I made tests a bit too verbose in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="275857315" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/11616" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/11616/hovercard" href="https://github.com/facebook/react/pull/11616">#11616</a>.<br>
Might be a good time to revisit how we write them now.</p>
<p dir="auto">There's a few separate issues:</p>
<ul dir="auto">
<li>
<p dir="auto">Asserting on warning messages is too verbose. Need a DEV block, call <code class="notranslate">spyOnDev</code>, normalize stack, etc. Ideally I wish there was a higher level helper that lets us "push" expected warning assertions and validate them as they happen. It should handle component stacks automatically without having to copy-paste the normalization helper everywhere.</p>
</li>
<li>
<p dir="auto">In some cases I added actual duplication in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="275857315" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/11616" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/11616/hovercard" href="https://github.com/facebook/react/pull/11616">#11616</a>, in particular for cases that throw in development but don't throw in production. Maybe need a <code class="notranslate">toThrowInDev()</code>? Although on the other hand this pattern needs to be highly visible so maybe extracting common code in a closure is good enough.</p>
</li>
</ul>
|
<p dir="auto">Conditional Rendering Components JSX-Control-Statement produces incorrect coverage in if / else branches. We are using it in our project and we want official Facebook's opinion about these as whether it will be updated with babel's AST for future support. If not please warn the developers that they will get incorrect branch coverage. See the reported issue below.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="314235072" data-permission-text="Title is private" data-url="https://github.com/istanbuljs/nyc/issues/812" data-hovercard-type="issue" data-hovercard-url="/istanbuljs/nyc/issues/812/hovercard" href="https://github.com/istanbuljs/nyc/issues/812">istanbuljs/nyc#812</a></p>
<ol dir="auto">
<li>Will facebook support any approach similar to JSX-Control-Statements in the future?</li>
<li>If facebook does not support any approach like above, facebook should warn it's developers about using such library due to incorrect coverages.</li>
<li>Issue consistent in jest and nyc since they both use babel's AST.</li>
</ol>
<p dir="auto"><a href="https://github.com/AlexGilleran/jsx-control-statements">https://github.com/AlexGilleran/jsx-control-statements</a></p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br>
Feature(?)<br>
<strong>What is the current behavior?</strong><br>
Incorrect Coverage</p>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
Correct Coverage Report on custom conditional rendered components.</p>
| 0 |
<p dir="auto">The weekly build with nightly wheels from numpy and pandas<br>
has failed. Check the logs for any updates that need to be<br>
made in matplotlib.<br>
<a href="https://github.com/matplotlib/matplotlib/actions/runs/3072055013">https://github.com/matplotlib/matplotlib/actions/runs/3072055013</a></p>
|
<p dir="auto">The weekly build with nightly wheels from numpy and pandas<br>
has failed. Check the logs for any updates that need to be<br>
made in matplotlib.<br>
<a href="https://github.com/matplotlib/matplotlib/actions/runs/3163174215">https://github.com/matplotlib/matplotlib/actions/runs/3163174215</a></p>
| 1 |
<p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>Playwright Version: 1.30</li>
<li>Operating System: Windows</li>
<li>Node.js version: 14.17.3</li>
<li>Browser: Firefox</li>
</ul>
<p dir="auto"><strong>Describe the bug</strong></p>
<p dir="auto">We created one windows docker container with the image that only starts playwright server with all the dependencies installed in it. When we connected to that container from our local client test for firefox browser, it got timeout. This issue comes only first time connection. All subsequent tests pass after first failure.</p>
<p dir="auto">Here are the container logs -</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2023-02-24T09:07:33.491Z pw:server [id=1] serving connection: /
2023-02-24T09:07:33.757Z pw:server [id=1] engaged launch mode for "firefox"
2023-02-24T09:07:33.757Z pw:proxy Starting socks proxy server on port 49158
2023-02-24T09:07:33.757Z pw:server [id=1] started socks proxy on port 49158
2023-02-24T09:07:36.273Z pw:browser <launching> C:\Users\ContainerAdministrator\AppData\Local\ms-playwright\firefox-1372\firefox\firefox.exe -no-remote -headless -profile C:\Users\ContainerAdministrator\AppData\Local\Temp\playwright_firefoxdev_profile-gejPlh -juggler-pipe -silent
2023-02-24T09:07:36.273Z pw:browser <launched> pid=2156
2023-02-24T09:07:37.867Z pw:browser [pid=2156][err] *** You are running in headless mode.
2023-02-24T09:07:38.992Z pw:browser [pid=2156][out]
2023-02-24T09:07:38.992Z pw:browser [pid=2156][out] Juggler listening to the pipe
2023-02-24T09:07:38.992Z pw:protocol SEND ► {"id":1,"method":"Browser.enable","params":{"attachToDefaultContext":false}}
2023-02-24T09:07:38.992Z pw:protocol SEND ► {"id":2,"method":"Browser.getInfo"}
2023-02-24T09:07:38.992Z pw:protocol SEND ► {"id":3,"method":"Browser.setBrowserProxy","params":{"type":"socks","bypass":[],"host":"127.0.0.1","port":49158}}
2023-02-24T09:07:39.164Z pw:protocol ◀ RECV {"id":1}
2023-02-24T09:07:39.164Z pw:protocol ◀ RECV {"id":2,"result":{"version":"Firefox/108.0.2","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0"}}
2023-02-24T09:07:39.164Z pw:protocol ◀ RECV {"id":3}
2023-02-24T09:07:39.594Z pw:browser [pid=2156][out] Crash Annotation GraphicsCriticalError: |[0][GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt (t=32.655) [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
2023-02-24T09:07:39.688Z pw:protocol SEND ► {"id":4,"method":"Browser.createBrowserContext","params":{"removeOnDetach":true}}
2023-02-24T09:07:39.891Z pw:protocol ◀ RECV {"id":4,"result":{"browserContextId":"2be0e955-3782-4c1b-951a-db88f76ee078"}}
2023-02-24T09:07:39.891Z pw:protocol SEND ► {"id":5,"method":"Browser.setDownloadOptions","params":{"browserContextId":"2be0e955-3782-4c1b-951a-db88f76ee078","downloadOptions":{"behavior":"saveToDisk","downloadsDir":"C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\playwright-artifacts-PlDz2G"}}}
2023-02-24T09:07:39.891Z pw:protocol SEND ► {"id":6,"method":"Browser.setDefaultViewport","params":{"browserContextId":"2be0e955-3782-4c1b-951a-db88f76ee078","viewport":{"viewportSize":{"width":1280,"height":720},"deviceScaleFactor":1}}}
2023-02-24T09:07:39.891Z pw:protocol SEND ► {"id":7,"method":"Browser.setLocaleOverride","params":{"browserContextId":"2be0e955-3782-4c1b-951a-db88f76ee078","locale":"en-US"}}
2023-02-24T09:07:39.891Z pw:protocol SEND ► {"id":8,"method":"Browser.setExtraHTTPHeaders","params":{"browserContextId":"2be0e955-3782-4c1b-951a-db88f76ee078","headers":[{"name":"Accept-Language","value":"en-US"}]}}
2023-02-24T09:07:39.891Z pw:protocol SEND ► {"id":9,"method":"Browser.setColorScheme","params":{"browserContextId":"2be0e955-3782-4c1b-951a-db88f76ee078","colorScheme":"light"}}
2023-02-24T09:07:39.891Z pw:protocol SEND ► {"id":10,"method":"Browser.setReducedMotion","params":{"browserContextId":"2be0e955-3782-4c1b-951a-db88f76ee078","reducedMotion":"no-preference"}}
2023-02-24T09:07:39.891Z pw:protocol SEND ► {"id":11,"method":"Browser.setForcedColors","params":{"browserContextId":"2be0e955-3782-4c1b-951a-db88f76ee078","forcedColors":"none"}}
2023-02-24T09:07:39.969Z pw:protocol ◀ RECV {"id":5}
2023-02-24T09:07:39.985Z pw:protocol ◀ RECV {"id":6}
2023-02-24T09:07:39.985Z pw:protocol ◀ RECV {"id":7}
2023-02-24T09:07:39.985Z pw:protocol ◀ RECV {"id":8}
2023-02-24T09:07:39.985Z pw:protocol ◀ RECV {"id":9}
2023-02-24T09:07:39.985Z pw:protocol ◀ RECV {"id":10}
2023-02-24T09:07:39.985Z pw:protocol ◀ RECV {"id":11}
2023-02-24T09:07:40.251Z pw:protocol SEND ► {"id":12,"method":"Browser.newPage","params":{"browserContextId":"2be0e955-3782-4c1b-951a-db88f76ee078"}}
2023-02-24T09:07:46.094Z pw:protocol ◀ RECV {"method":"Browser.attachedToTarget","params":{"sessionId":"65e3a260-9b14-4408-846a-0df0cb09ef69","targetInfo":{"targetId":"6b1ab5a2-7871-426b-8752-eac220cb2dc5","type":"page","browserContextId":"2be0e955-3782-4c1b-951a-db88f76ee078"}}}
2023-02-24T09:07:46.094Z pw:protocol SEND ► {"method":"Page.setInitScripts","params":{"scripts":[{"script":"","worldName":"__playwright_utility_world__"}]},"id":13,"sessionId":"65e3a260-9b14-4408-846a-0df0cb09ef69"}
2023-02-24T09:07:47.501Z pw:protocol ◀ RECV {"id":12,"result":{"targetId":"6b1ab5a2-7871-426b-8752-eac220cb2dc5"}}
2023-02-24T09:07:47.501Z pw:browser [pid=2156][err] JavaScript error: resource://gre/modules/URIFixup.sys.mjs, line 302: NS_ERROR_FAILURE: Should pass a non-null uri
2023-02-24T09:07:47.516Z pw:browser [pid=2156][out] console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\playwright_firefoxdev_profile-gejPlh\\search.json.mozlz4", (void 0)))
2023-02-24T09:08:33.245Z pw:server [id=1] disconnected. error: undefined
2023-02-24T09:08:33.245Z pw:protocol SEND ► {"id":14,"method":"Browser.setRequestInterception","params":{"browserContextId":"2be0e955-3782-4c1b-951a-db88f76ee078","enabled":false}}
2023-02-24T09:08:33.245Z pw:server [id=1] starting cleanup
2023-02-24T09:08:33.245Z pw:browser [pid=2156] <gracefully close start>
2023-02-24T09:08:43.412Z pw:browser [pid=2156][out] WARNING: At least one completion condition is taking too long to complete. Conditions: [{"name":"Extension shutdown: webcompat@mozilla.org","state":{"state":"Startup: Run manifest, asyncEmitManifestEntry(\"background\")"},"filename":"resource://gre/modules/addons/XPIProvider.jsm","lineNumber":2629,"stack":["resource://gre/modules/addons/XPIProvider.jsm:startup/<:2629","resource://gre/modules/AsyncShutdown.jsm:observe:560","chrome://juggler/content/protocol/BrowserHandler.js:Browser.close:140"]},{"name":"Extension shutdown: webcompat-reporter@mozilla.org","state":{"state":"Startup: Run manifest, asyncEmitManifestEntry(\"background\")"},"filename":"resource://gre/modules/addons/XPIProvider.jsm","lineNumber":2629,"stack":["resource://gre/modules/addons/XPIProvider.jsm:startup/<:2629","resource://gre/modules/AsyncShutdown.jsm:observe:560","chrome://juggler/content/protocol/BrowserHandler.js:Browser.close:140"]},{"name":"Extension shutdown: pictureinpicture@mozilla.org","state":{"state":"Startup: Run manifest, asyncEmitManifestEntry(\"background\")"},"filename":"resource://gre/modules/addons/XPIProvider.jsm","lineNumber":2629,"stack":["resource://gre/modules/addons/XPIProvider.jsm:startup/<:2629","resource://gre/modules/AsyncShutdown.jsm:observe:560","chrome://juggler/content/protocol/BrowserHandler.js:Browser.close:140"]},{"name":"Extension shutdown: formautofill@mozilla.org","state":{"state":"Startup: Run manifest, asyncEmitManifestEntry(\"background\")"},"filename":"resource://gre/modules/addons/XPIProvider.jsm","lineNumber":2629,"stack":["resource://gre/modules/addons/XPIProvider.jsm:startup/<:2629","resource://gre/modules/AsyncShutdown.jsm:observe:560","chrome://juggler/content/protocol/BrowserHandler.js:Browser.close:140"]},{"name":"Extension shutdown: addons-search-detection@mozilla.com","state":{"state":"Startup: Run manifest, asyncEmitManifestEntry(\"background\")"},"filename":"resource://gre/modules/addons/XPIProvider.jsm","lineNumber":2629,"stack":["resource://gre/modules/addons/XPIProvider.jsm:startup/<:2629","resource://gre/modules/AsyncShutdown.jsm:observe:560","chrome://juggler/content/protocol/BrowserHandler.js:Browser.close:140"]}] Barrier: profile-change-teardown
2023-02-24T09:09:03.257Z pw:browser [pid=2156] <kill>
2023-02-24T09:09:03.257Z pw:browser [pid=2156] <will force kill>
2023-02-24T09:09:03.579Z pw:browser [pid=2156] taskkill stdout: SUCCESS: The process with PID 2968 (child process of PID 2220) has been terminated.
SUCCESS: The process with PID 2220 (child process of PID 2156) has been terminated.
SUCCESS: The process with PID 2156 (child process of PID 1988) has been terminated.
2023-02-24T09:09:03.579Z pw:browser [pid=2156] <process did exit: exitCode=1, signal=null>
2023-02-24T09:09:03.579Z pw:browser [pid=2156] starting temporary directories cleanup
2023-02-24T09:09:03.720Z pw:browser [pid=2156] finished temporary directories cleanup
2023-02-24T09:09:03.720Z pw:browser [pid=2156] <gracefully close end>
2023-02-24T09:09:03.720Z pw:server [id=1] finished cleanup"><pre class="notranslate"><code class="notranslate">2023-02-24T09:07:33.491Z pw:server [id=1] serving connection: /
2023-02-24T09:07:33.757Z pw:server [id=1] engaged launch mode for "firefox"
2023-02-24T09:07:33.757Z pw:proxy Starting socks proxy server on port 49158
2023-02-24T09:07:33.757Z pw:server [id=1] started socks proxy on port 49158
2023-02-24T09:07:36.273Z pw:browser <launching> C:\Users\ContainerAdministrator\AppData\Local\ms-playwright\firefox-1372\firefox\firefox.exe -no-remote -headless -profile C:\Users\ContainerAdministrator\AppData\Local\Temp\playwright_firefoxdev_profile-gejPlh -juggler-pipe -silent
2023-02-24T09:07:36.273Z pw:browser <launched> pid=2156
2023-02-24T09:07:37.867Z pw:browser [pid=2156][err] *** You are running in headless mode.
2023-02-24T09:07:38.992Z pw:browser [pid=2156][out]
2023-02-24T09:07:38.992Z pw:browser [pid=2156][out] Juggler listening to the pipe
2023-02-24T09:07:38.992Z pw:protocol SEND ► {"id":1,"method":"Browser.enable","params":{"attachToDefaultContext":false}}
2023-02-24T09:07:38.992Z pw:protocol SEND ► {"id":2,"method":"Browser.getInfo"}
2023-02-24T09:07:38.992Z pw:protocol SEND ► {"id":3,"method":"Browser.setBrowserProxy","params":{"type":"socks","bypass":[],"host":"127.0.0.1","port":49158}}
2023-02-24T09:07:39.164Z pw:protocol ◀ RECV {"id":1}
2023-02-24T09:07:39.164Z pw:protocol ◀ RECV {"id":2,"result":{"version":"Firefox/108.0.2","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0"}}
2023-02-24T09:07:39.164Z pw:protocol ◀ RECV {"id":3}
2023-02-24T09:07:39.594Z pw:browser [pid=2156][out] Crash Annotation GraphicsCriticalError: |[0][GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt (t=32.655) [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
2023-02-24T09:07:39.688Z pw:protocol SEND ► {"id":4,"method":"Browser.createBrowserContext","params":{"removeOnDetach":true}}
2023-02-24T09:07:39.891Z pw:protocol ◀ RECV {"id":4,"result":{"browserContextId":"2be0e955-3782-4c1b-951a-db88f76ee078"}}
2023-02-24T09:07:39.891Z pw:protocol SEND ► {"id":5,"method":"Browser.setDownloadOptions","params":{"browserContextId":"2be0e955-3782-4c1b-951a-db88f76ee078","downloadOptions":{"behavior":"saveToDisk","downloadsDir":"C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\playwright-artifacts-PlDz2G"}}}
2023-02-24T09:07:39.891Z pw:protocol SEND ► {"id":6,"method":"Browser.setDefaultViewport","params":{"browserContextId":"2be0e955-3782-4c1b-951a-db88f76ee078","viewport":{"viewportSize":{"width":1280,"height":720},"deviceScaleFactor":1}}}
2023-02-24T09:07:39.891Z pw:protocol SEND ► {"id":7,"method":"Browser.setLocaleOverride","params":{"browserContextId":"2be0e955-3782-4c1b-951a-db88f76ee078","locale":"en-US"}}
2023-02-24T09:07:39.891Z pw:protocol SEND ► {"id":8,"method":"Browser.setExtraHTTPHeaders","params":{"browserContextId":"2be0e955-3782-4c1b-951a-db88f76ee078","headers":[{"name":"Accept-Language","value":"en-US"}]}}
2023-02-24T09:07:39.891Z pw:protocol SEND ► {"id":9,"method":"Browser.setColorScheme","params":{"browserContextId":"2be0e955-3782-4c1b-951a-db88f76ee078","colorScheme":"light"}}
2023-02-24T09:07:39.891Z pw:protocol SEND ► {"id":10,"method":"Browser.setReducedMotion","params":{"browserContextId":"2be0e955-3782-4c1b-951a-db88f76ee078","reducedMotion":"no-preference"}}
2023-02-24T09:07:39.891Z pw:protocol SEND ► {"id":11,"method":"Browser.setForcedColors","params":{"browserContextId":"2be0e955-3782-4c1b-951a-db88f76ee078","forcedColors":"none"}}
2023-02-24T09:07:39.969Z pw:protocol ◀ RECV {"id":5}
2023-02-24T09:07:39.985Z pw:protocol ◀ RECV {"id":6}
2023-02-24T09:07:39.985Z pw:protocol ◀ RECV {"id":7}
2023-02-24T09:07:39.985Z pw:protocol ◀ RECV {"id":8}
2023-02-24T09:07:39.985Z pw:protocol ◀ RECV {"id":9}
2023-02-24T09:07:39.985Z pw:protocol ◀ RECV {"id":10}
2023-02-24T09:07:39.985Z pw:protocol ◀ RECV {"id":11}
2023-02-24T09:07:40.251Z pw:protocol SEND ► {"id":12,"method":"Browser.newPage","params":{"browserContextId":"2be0e955-3782-4c1b-951a-db88f76ee078"}}
2023-02-24T09:07:46.094Z pw:protocol ◀ RECV {"method":"Browser.attachedToTarget","params":{"sessionId":"65e3a260-9b14-4408-846a-0df0cb09ef69","targetInfo":{"targetId":"6b1ab5a2-7871-426b-8752-eac220cb2dc5","type":"page","browserContextId":"2be0e955-3782-4c1b-951a-db88f76ee078"}}}
2023-02-24T09:07:46.094Z pw:protocol SEND ► {"method":"Page.setInitScripts","params":{"scripts":[{"script":"","worldName":"__playwright_utility_world__"}]},"id":13,"sessionId":"65e3a260-9b14-4408-846a-0df0cb09ef69"}
2023-02-24T09:07:47.501Z pw:protocol ◀ RECV {"id":12,"result":{"targetId":"6b1ab5a2-7871-426b-8752-eac220cb2dc5"}}
2023-02-24T09:07:47.501Z pw:browser [pid=2156][err] JavaScript error: resource://gre/modules/URIFixup.sys.mjs, line 302: NS_ERROR_FAILURE: Should pass a non-null uri
2023-02-24T09:07:47.516Z pw:browser [pid=2156][out] console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\playwright_firefoxdev_profile-gejPlh\\search.json.mozlz4", (void 0)))
2023-02-24T09:08:33.245Z pw:server [id=1] disconnected. error: undefined
2023-02-24T09:08:33.245Z pw:protocol SEND ► {"id":14,"method":"Browser.setRequestInterception","params":{"browserContextId":"2be0e955-3782-4c1b-951a-db88f76ee078","enabled":false}}
2023-02-24T09:08:33.245Z pw:server [id=1] starting cleanup
2023-02-24T09:08:33.245Z pw:browser [pid=2156] <gracefully close start>
2023-02-24T09:08:43.412Z pw:browser [pid=2156][out] WARNING: At least one completion condition is taking too long to complete. Conditions: [{"name":"Extension shutdown: webcompat@mozilla.org","state":{"state":"Startup: Run manifest, asyncEmitManifestEntry(\"background\")"},"filename":"resource://gre/modules/addons/XPIProvider.jsm","lineNumber":2629,"stack":["resource://gre/modules/addons/XPIProvider.jsm:startup/<:2629","resource://gre/modules/AsyncShutdown.jsm:observe:560","chrome://juggler/content/protocol/BrowserHandler.js:Browser.close:140"]},{"name":"Extension shutdown: webcompat-reporter@mozilla.org","state":{"state":"Startup: Run manifest, asyncEmitManifestEntry(\"background\")"},"filename":"resource://gre/modules/addons/XPIProvider.jsm","lineNumber":2629,"stack":["resource://gre/modules/addons/XPIProvider.jsm:startup/<:2629","resource://gre/modules/AsyncShutdown.jsm:observe:560","chrome://juggler/content/protocol/BrowserHandler.js:Browser.close:140"]},{"name":"Extension shutdown: pictureinpicture@mozilla.org","state":{"state":"Startup: Run manifest, asyncEmitManifestEntry(\"background\")"},"filename":"resource://gre/modules/addons/XPIProvider.jsm","lineNumber":2629,"stack":["resource://gre/modules/addons/XPIProvider.jsm:startup/<:2629","resource://gre/modules/AsyncShutdown.jsm:observe:560","chrome://juggler/content/protocol/BrowserHandler.js:Browser.close:140"]},{"name":"Extension shutdown: formautofill@mozilla.org","state":{"state":"Startup: Run manifest, asyncEmitManifestEntry(\"background\")"},"filename":"resource://gre/modules/addons/XPIProvider.jsm","lineNumber":2629,"stack":["resource://gre/modules/addons/XPIProvider.jsm:startup/<:2629","resource://gre/modules/AsyncShutdown.jsm:observe:560","chrome://juggler/content/protocol/BrowserHandler.js:Browser.close:140"]},{"name":"Extension shutdown: addons-search-detection@mozilla.com","state":{"state":"Startup: Run manifest, asyncEmitManifestEntry(\"background\")"},"filename":"resource://gre/modules/addons/XPIProvider.jsm","lineNumber":2629,"stack":["resource://gre/modules/addons/XPIProvider.jsm:startup/<:2629","resource://gre/modules/AsyncShutdown.jsm:observe:560","chrome://juggler/content/protocol/BrowserHandler.js:Browser.close:140"]}] Barrier: profile-change-teardown
2023-02-24T09:09:03.257Z pw:browser [pid=2156] <kill>
2023-02-24T09:09:03.257Z pw:browser [pid=2156] <will force kill>
2023-02-24T09:09:03.579Z pw:browser [pid=2156] taskkill stdout: SUCCESS: The process with PID 2968 (child process of PID 2220) has been terminated.
SUCCESS: The process with PID 2220 (child process of PID 2156) has been terminated.
SUCCESS: The process with PID 2156 (child process of PID 1988) has been terminated.
2023-02-24T09:09:03.579Z pw:browser [pid=2156] <process did exit: exitCode=1, signal=null>
2023-02-24T09:09:03.579Z pw:browser [pid=2156] starting temporary directories cleanup
2023-02-24T09:09:03.720Z pw:browser [pid=2156] finished temporary directories cleanup
2023-02-24T09:09:03.720Z pw:browser [pid=2156] <gracefully close end>
2023-02-24T09:09:03.720Z pw:server [id=1] finished cleanup
</code></pre></div>
|
<p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>Playwright Version: 1.21.0</li>
<li>Operating System: Windows</li>
<li>Node.js version: 12.4</li>
<li>Browser: Firefox</li>
<li>Extra: [any specific details about your environment]</li>
</ul>
<p dir="auto">While Launching the Firefox browser in mcr.microsoft.com/windows:1809</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2022-04-21T10:30:15.990Z pw:server [id=1] engaged launch mode for "firefox"
[0] 2022-04-21T10:30:17.490Z pw:browser <launching> C:\Users\ContainerAdministrator\AppData\Local\ms-playwright\firefox-1319\firefox\firefox.exe -no-remote -headless -profile C:\Users\ContainerAdministrator\AppData\Local\Temp\playwright_firefoxdev_profile-u8MLHc -juggler-pipe -silent
[0] 2022-04-21T10:30:17.505Z pw:browser <launched> pid=2396
[0] 2022-04-21T10:30:17.521Z pw:protocol SEND ► {"id":1,"method":"Browser.enable","params":{"attachToDefaultContext":false}}
[0] 2022-04-21T10:30:17.521Z pw:protocol SEND ► {"id":2,"method":"Browser.getInfo"}
[0] 2022-04-21T10:30:17.818Z pw:browser [pid=2396][err] *** You are running in headless mode.
[0] 2022-04-21T10:30:20.209Z pw:browser [pid=2396][out]
[0] 2022-04-21T10:30:20.209Z pw:browser [pid=2396][out] Juggler listening to the pipe
[0] 2022-04-21T10:30:20.506Z pw:protocol ◀ RECV {"id":2,"result":{"version":"Firefox/97.0.1","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0"}}
[0] 2022-04-21T10:30:20.553Z pw:browser [pid=2396][out] console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\playwright_firefoxdev_profile-u8MLHc\\search.json.mozlz4", (void 0)))
[0] 2022-04-21T10:30:21.287Z pw:browser [pid=2396][out] Crash Annotation GraphicsCriticalError: |[0][GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt (t=37.0051) [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
[0] 2022-04-21T10:30:23.083Z pw:protocol ◀ RECV {"id":1}
[0] 2022-04-21T10:30:23.630Z pw:protocol SEND ► {"id":3,"method":"Browser.createBrowserContext","params":{"removeOnDetach":true}}
[0] 2022-04-21T10:30:23.630Z pw:protocol ◀ RECV {"id":3,"result":{"browserContextId":"a8d90e81-299f-4328-a6df-e03e0d55fe9a"}}
[0] 2022-04-21T10:30:23.630Z pw:protocol SEND ► {"id":4,"method":"Browser.setDownloadOptions","params":{"browserContextId":"a8d90e81-299f-4328-a6df-e03e0d55fe9a","downloadOptions":{"behavior":"saveToDisk","downloadsDir":"C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\playwright-artifacts-BO5ZuU"}}}
[0] 2022-04-21T10:30:23.630Z pw:protocol SEND ► {"id":5,"method":"Browser.setDefaultViewport","params":{"browserContextId":"a8d90e81-299f-4328-a6df-e03e0d55fe9a","viewport":{"viewportSize":{"width":1280,"height":720},"deviceScaleFactor":1}}}
[0] 2022-04-21T10:30:23.630Z pw:protocol SEND ► {"id":6,"method":"Browser.setIgnoreHTTPSErrors","params":{"browserContextId":"a8d90e81-299f-4328-a6df-e03e0d55fe9a","ignoreHTTPSErrors":true}}
[0] 2022-04-21T10:30:23.630Z pw:protocol SEND ► {"id":7,"method":"Browser.setLocaleOverride","params":{"browserContextId":"a8d90e81-299f-4328-a6df-e03e0d55fe9a","locale":"en-US"}}
[0] 2022-04-21T10:30:23.630Z pw:protocol SEND ► {"id":8,"method":"Browser.setExtraHTTPHeaders","params":{"browserContextId":"a8d90e81-299f-4328-a6df-e03e0d55fe9a","headers":[{"name":"Accept-Language","value":"en-US"}]}}
[0] 2022-04-21T10:30:23.630Z pw:protocol SEND ► {"id":9,"method":"Browser.setColorScheme","params":{"browserContextId":"a8d90e81-299f-4328-a6df-e03e0d55fe9a","colorScheme":"light"}}
[0] 2022-04-21T10:30:23.630Z pw:protocol SEND ► {"id":10,"method":"Browser.setReducedMotion","params":{"browserContextId":"a8d90e81-299f-4328-a6df-e03e0d55fe9a","reducedMotion":"no-preference"}}
[0] 2022-04-21T10:30:23.630Z pw:protocol SEND ► {"id":11,"method":"Browser.setForcedColors","params":{"browserContextId":"a8d90e81-299f-4328-a6df-e03e0d55fe9a","forcedColors":"none"}}
[0] 2022-04-21T10:30:23.630Z pw:protocol ◀ RECV {"id":4}
[0] 2022-04-21T10:30:23.630Z pw:protocol ◀ RECV {"id":5}
[0] 2022-04-21T10:30:23.630Z pw:protocol ◀ RECV {"id":6}
[0] 2022-04-21T10:30:23.630Z pw:protocol ◀ RECV {"id":7}
[0] 2022-04-21T10:30:23.630Z pw:protocol ◀ RECV {"id":8}
[0] 2022-04-21T10:30:23.630Z pw:protocol ◀ RECV {"id":9}
[0] 2022-04-21T10:30:23.630Z pw:protocol ◀ RECV {"id":10}
[0] 2022-04-21T10:30:23.630Z pw:protocol ◀ RECV {"id":11}
[0] 2022-04-21T10:30:24.490Z pw:protocol SEND ► {"id":12,"method":"Browser.newPage","params":{"browserContextId":"a8d90e81-299f-4328-a6df-e03e0d55fe9a"}}
[0] 2022-04-21T10:30:25.912Z pw:protocol ◀ RECV {"method":"Browser.attachedToTarget","params":{"sessionId":"c14e3a8e-25fe-4936-b97d-53a7f20d7827","targetInfo":{"targetId":"1fc6545d-32af-4e66-b9b0-d64c58a572af","type":"page","browserContextId":"a8d90e81-299f-4328-a6df-e03e0d55fe9a"}}}
[0] 2022-04-21T10:30:25.927Z pw:protocol SEND ► {"method":"Page.setInitScripts","params":{"scripts":[{"script":"","worldName":"__playwright_utility_world__"}]},"id":13,"sessionId":"c14e3a8e-25fe-4936-b97d-53a7f20d7827"}
[0] 2022-04-21T10:30:26.693Z pw:protocol ◀ RECV {"id":12,"result":{"targetId":"1fc6545d-32af-4e66-b9b0-d64c58a572af"}}
[0] 2022-04-21T10:31:01.938Z pw:protocol SEND ► {"id":14,"method":"Browser.removeBrowserContext","params":{"browserContextId":"a8d90e81-299f-4328-a6df-e03e0d55fe9a"}}
[0] 2022-04-21T10:31:01.954Z pw:protocol ◀ RECV {"method":"Browser.detachedFromTarget","params":{"sessionId":"c14e3a8e-25fe-4936-b97d-53a7f20d7827","targetId":"1fc6545d-32af-4e66-b9b0-d64c58a572af"}}
[0] 2022-04-21T10:31:01.954Z pw:protocol ◀ RECV {"id":14}
[0] 2022-04-21T10:31:02.235Z pw:protocol SEND ► {"id":15,"method":"Browser.createBrowserContext","params":{"removeOnDetach":true}}
[0] 2022-04-21T10:31:02.235Z pw:protocol ◀ RECV {"id":15,"result":{"browserContextId":"98ee6220-26ed-4b9f-a7a3-1750819f897a"}}
[0] 2022-04-21T10:31:02.235Z pw:protocol SEND ► {"id":16,"method":"Browser.setDownloadOptions","params":{"browserContextId":"98ee6220-26ed-4b9f-a7a3-1750819f897a","downloadOptions":{"behavior":"saveToDisk","downloadsDir":"C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\playwright-artifacts-BO5ZuU"}}}
[0] 2022-04-21T10:31:02.235Z pw:protocol SEND ► {"id":17,"method":"Browser.setDefaultViewport","params":{"browserContextId":"98ee6220-26ed-4b9f-a7a3-1750819f897a","viewport":{"viewportSize":{"width":1280,"height":720},"deviceScaleFactor":1}}}
[0] 2022-04-21T10:31:02.235Z pw:protocol SEND ► {"id":18,"method":"Browser.setIgnoreHTTPSErrors","params":{"browserContextId":"98ee6220-26ed-4b9f-a7a3-1750819f897a","ignoreHTTPSErrors":true}}
[0] 2022-04-21T10:31:02.235Z pw:protocol SEND ► {"id":19,"method":"Browser.setLocaleOverride","params":{"browserContextId":"98ee6220-26ed-4b9f-a7a3-1750819f897a","locale":"en-US"}}
[0] 2022-04-21T10:31:02.235Z pw:protocol SEND ► {"id":20,"method":"Browser.setExtraHTTPHeaders","params":{"browserContextId":"98ee6220-26ed-4b9f-a7a3-1750819f897a","headers":[{"name":"Accept-Language","value":"en-US"}]}}
[0] 2022-04-21T10:31:02.235Z pw:protocol SEND ► {"id":21,"method":"Browser.setColorScheme","params":{"browserContextId":"98ee6220-26ed-4b9f-a7a3-1750819f897a","colorScheme":"light"}}
[0] 2022-04-21T10:31:02.235Z pw:protocol SEND ► {"id":22,"method":"Browser.setReducedMotion","params":{"browserContextId":"98ee6220-26ed-4b9f-a7a3-1750819f897a","reducedMotion":"no-preference"}}
[0] 2022-04-21T10:31:02.235Z pw:protocol SEND ► {"id":23,"method":"Browser.setForcedColors","params":{"browserContextId":"98ee6220-26ed-4b9f-a7a3-1750819f897a","forcedColors":"none"}}
[0] 2022-04-21T10:31:02.251Z pw:protocol ◀ RECV {"id":16}
[0] 2022-04-21T10:31:02.251Z pw:protocol ◀ RECV {"id":17}
[0] 2022-04-21T10:31:02.251Z pw:protocol ◀ RECV {"id":18}
[0] 2022-04-21T10:31:02.251Z pw:protocol ◀ RECV {"id":19}
[0] 2022-04-21T10:31:02.251Z pw:protocol ◀ RECV {"id":20}
[0] 2022-04-21T10:31:02.251Z pw:protocol ◀ RECV {"id":21}
[0] 2022-04-21T10:31:02.251Z pw:protocol ◀ RECV {"id":22}
[0] 2022-04-21T10:31:02.251Z pw:protocol ◀ RECV {"id":23}
[1] [2022-04-21T10:31:02.360Z] "Start time: 1650537015912, End time: 1650537062360 and Duration: 46.448 seconds"
[0] 2022-04-21T10:33:26.681Z pw:browser [pid=2396][err] JavaScript error: resource://activity-stream/lib/PersonalityProvider/PersonalityProvider.jsm, line 68: TypeError: / is not a valid URL.
[0] 2022-04-21T10:35:27.293Z pw:browser [pid=2396][err] JavaScript error: resource://activity-stream/lib/PersonalityProvider/PersonalityProvider.jsm, line 68: TypeError: / is not a valid URL."><pre class="notranslate"><code class="notranslate">2022-04-21T10:30:15.990Z pw:server [id=1] engaged launch mode for "firefox"
[0] 2022-04-21T10:30:17.490Z pw:browser <launching> C:\Users\ContainerAdministrator\AppData\Local\ms-playwright\firefox-1319\firefox\firefox.exe -no-remote -headless -profile C:\Users\ContainerAdministrator\AppData\Local\Temp\playwright_firefoxdev_profile-u8MLHc -juggler-pipe -silent
[0] 2022-04-21T10:30:17.505Z pw:browser <launched> pid=2396
[0] 2022-04-21T10:30:17.521Z pw:protocol SEND ► {"id":1,"method":"Browser.enable","params":{"attachToDefaultContext":false}}
[0] 2022-04-21T10:30:17.521Z pw:protocol SEND ► {"id":2,"method":"Browser.getInfo"}
[0] 2022-04-21T10:30:17.818Z pw:browser [pid=2396][err] *** You are running in headless mode.
[0] 2022-04-21T10:30:20.209Z pw:browser [pid=2396][out]
[0] 2022-04-21T10:30:20.209Z pw:browser [pid=2396][out] Juggler listening to the pipe
[0] 2022-04-21T10:30:20.506Z pw:protocol ◀ RECV {"id":2,"result":{"version":"Firefox/97.0.1","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0"}}
[0] 2022-04-21T10:30:20.553Z pw:browser [pid=2396][out] console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\playwright_firefoxdev_profile-u8MLHc\\search.json.mozlz4", (void 0)))
[0] 2022-04-21T10:30:21.287Z pw:browser [pid=2396][out] Crash Annotation GraphicsCriticalError: |[0][GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt (t=37.0051) [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
[0] 2022-04-21T10:30:23.083Z pw:protocol ◀ RECV {"id":1}
[0] 2022-04-21T10:30:23.630Z pw:protocol SEND ► {"id":3,"method":"Browser.createBrowserContext","params":{"removeOnDetach":true}}
[0] 2022-04-21T10:30:23.630Z pw:protocol ◀ RECV {"id":3,"result":{"browserContextId":"a8d90e81-299f-4328-a6df-e03e0d55fe9a"}}
[0] 2022-04-21T10:30:23.630Z pw:protocol SEND ► {"id":4,"method":"Browser.setDownloadOptions","params":{"browserContextId":"a8d90e81-299f-4328-a6df-e03e0d55fe9a","downloadOptions":{"behavior":"saveToDisk","downloadsDir":"C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\playwright-artifacts-BO5ZuU"}}}
[0] 2022-04-21T10:30:23.630Z pw:protocol SEND ► {"id":5,"method":"Browser.setDefaultViewport","params":{"browserContextId":"a8d90e81-299f-4328-a6df-e03e0d55fe9a","viewport":{"viewportSize":{"width":1280,"height":720},"deviceScaleFactor":1}}}
[0] 2022-04-21T10:30:23.630Z pw:protocol SEND ► {"id":6,"method":"Browser.setIgnoreHTTPSErrors","params":{"browserContextId":"a8d90e81-299f-4328-a6df-e03e0d55fe9a","ignoreHTTPSErrors":true}}
[0] 2022-04-21T10:30:23.630Z pw:protocol SEND ► {"id":7,"method":"Browser.setLocaleOverride","params":{"browserContextId":"a8d90e81-299f-4328-a6df-e03e0d55fe9a","locale":"en-US"}}
[0] 2022-04-21T10:30:23.630Z pw:protocol SEND ► {"id":8,"method":"Browser.setExtraHTTPHeaders","params":{"browserContextId":"a8d90e81-299f-4328-a6df-e03e0d55fe9a","headers":[{"name":"Accept-Language","value":"en-US"}]}}
[0] 2022-04-21T10:30:23.630Z pw:protocol SEND ► {"id":9,"method":"Browser.setColorScheme","params":{"browserContextId":"a8d90e81-299f-4328-a6df-e03e0d55fe9a","colorScheme":"light"}}
[0] 2022-04-21T10:30:23.630Z pw:protocol SEND ► {"id":10,"method":"Browser.setReducedMotion","params":{"browserContextId":"a8d90e81-299f-4328-a6df-e03e0d55fe9a","reducedMotion":"no-preference"}}
[0] 2022-04-21T10:30:23.630Z pw:protocol SEND ► {"id":11,"method":"Browser.setForcedColors","params":{"browserContextId":"a8d90e81-299f-4328-a6df-e03e0d55fe9a","forcedColors":"none"}}
[0] 2022-04-21T10:30:23.630Z pw:protocol ◀ RECV {"id":4}
[0] 2022-04-21T10:30:23.630Z pw:protocol ◀ RECV {"id":5}
[0] 2022-04-21T10:30:23.630Z pw:protocol ◀ RECV {"id":6}
[0] 2022-04-21T10:30:23.630Z pw:protocol ◀ RECV {"id":7}
[0] 2022-04-21T10:30:23.630Z pw:protocol ◀ RECV {"id":8}
[0] 2022-04-21T10:30:23.630Z pw:protocol ◀ RECV {"id":9}
[0] 2022-04-21T10:30:23.630Z pw:protocol ◀ RECV {"id":10}
[0] 2022-04-21T10:30:23.630Z pw:protocol ◀ RECV {"id":11}
[0] 2022-04-21T10:30:24.490Z pw:protocol SEND ► {"id":12,"method":"Browser.newPage","params":{"browserContextId":"a8d90e81-299f-4328-a6df-e03e0d55fe9a"}}
[0] 2022-04-21T10:30:25.912Z pw:protocol ◀ RECV {"method":"Browser.attachedToTarget","params":{"sessionId":"c14e3a8e-25fe-4936-b97d-53a7f20d7827","targetInfo":{"targetId":"1fc6545d-32af-4e66-b9b0-d64c58a572af","type":"page","browserContextId":"a8d90e81-299f-4328-a6df-e03e0d55fe9a"}}}
[0] 2022-04-21T10:30:25.927Z pw:protocol SEND ► {"method":"Page.setInitScripts","params":{"scripts":[{"script":"","worldName":"__playwright_utility_world__"}]},"id":13,"sessionId":"c14e3a8e-25fe-4936-b97d-53a7f20d7827"}
[0] 2022-04-21T10:30:26.693Z pw:protocol ◀ RECV {"id":12,"result":{"targetId":"1fc6545d-32af-4e66-b9b0-d64c58a572af"}}
[0] 2022-04-21T10:31:01.938Z pw:protocol SEND ► {"id":14,"method":"Browser.removeBrowserContext","params":{"browserContextId":"a8d90e81-299f-4328-a6df-e03e0d55fe9a"}}
[0] 2022-04-21T10:31:01.954Z pw:protocol ◀ RECV {"method":"Browser.detachedFromTarget","params":{"sessionId":"c14e3a8e-25fe-4936-b97d-53a7f20d7827","targetId":"1fc6545d-32af-4e66-b9b0-d64c58a572af"}}
[0] 2022-04-21T10:31:01.954Z pw:protocol ◀ RECV {"id":14}
[0] 2022-04-21T10:31:02.235Z pw:protocol SEND ► {"id":15,"method":"Browser.createBrowserContext","params":{"removeOnDetach":true}}
[0] 2022-04-21T10:31:02.235Z pw:protocol ◀ RECV {"id":15,"result":{"browserContextId":"98ee6220-26ed-4b9f-a7a3-1750819f897a"}}
[0] 2022-04-21T10:31:02.235Z pw:protocol SEND ► {"id":16,"method":"Browser.setDownloadOptions","params":{"browserContextId":"98ee6220-26ed-4b9f-a7a3-1750819f897a","downloadOptions":{"behavior":"saveToDisk","downloadsDir":"C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\playwright-artifacts-BO5ZuU"}}}
[0] 2022-04-21T10:31:02.235Z pw:protocol SEND ► {"id":17,"method":"Browser.setDefaultViewport","params":{"browserContextId":"98ee6220-26ed-4b9f-a7a3-1750819f897a","viewport":{"viewportSize":{"width":1280,"height":720},"deviceScaleFactor":1}}}
[0] 2022-04-21T10:31:02.235Z pw:protocol SEND ► {"id":18,"method":"Browser.setIgnoreHTTPSErrors","params":{"browserContextId":"98ee6220-26ed-4b9f-a7a3-1750819f897a","ignoreHTTPSErrors":true}}
[0] 2022-04-21T10:31:02.235Z pw:protocol SEND ► {"id":19,"method":"Browser.setLocaleOverride","params":{"browserContextId":"98ee6220-26ed-4b9f-a7a3-1750819f897a","locale":"en-US"}}
[0] 2022-04-21T10:31:02.235Z pw:protocol SEND ► {"id":20,"method":"Browser.setExtraHTTPHeaders","params":{"browserContextId":"98ee6220-26ed-4b9f-a7a3-1750819f897a","headers":[{"name":"Accept-Language","value":"en-US"}]}}
[0] 2022-04-21T10:31:02.235Z pw:protocol SEND ► {"id":21,"method":"Browser.setColorScheme","params":{"browserContextId":"98ee6220-26ed-4b9f-a7a3-1750819f897a","colorScheme":"light"}}
[0] 2022-04-21T10:31:02.235Z pw:protocol SEND ► {"id":22,"method":"Browser.setReducedMotion","params":{"browserContextId":"98ee6220-26ed-4b9f-a7a3-1750819f897a","reducedMotion":"no-preference"}}
[0] 2022-04-21T10:31:02.235Z pw:protocol SEND ► {"id":23,"method":"Browser.setForcedColors","params":{"browserContextId":"98ee6220-26ed-4b9f-a7a3-1750819f897a","forcedColors":"none"}}
[0] 2022-04-21T10:31:02.251Z pw:protocol ◀ RECV {"id":16}
[0] 2022-04-21T10:31:02.251Z pw:protocol ◀ RECV {"id":17}
[0] 2022-04-21T10:31:02.251Z pw:protocol ◀ RECV {"id":18}
[0] 2022-04-21T10:31:02.251Z pw:protocol ◀ RECV {"id":19}
[0] 2022-04-21T10:31:02.251Z pw:protocol ◀ RECV {"id":20}
[0] 2022-04-21T10:31:02.251Z pw:protocol ◀ RECV {"id":21}
[0] 2022-04-21T10:31:02.251Z pw:protocol ◀ RECV {"id":22}
[0] 2022-04-21T10:31:02.251Z pw:protocol ◀ RECV {"id":23}
[1] [2022-04-21T10:31:02.360Z] "Start time: 1650537015912, End time: 1650537062360 and Duration: 46.448 seconds"
[0] 2022-04-21T10:33:26.681Z pw:browser [pid=2396][err] JavaScript error: resource://activity-stream/lib/PersonalityProvider/PersonalityProvider.jsm, line 68: TypeError: / is not a valid URL.
[0] 2022-04-21T10:35:27.293Z pw:browser [pid=2396][err] JavaScript error: resource://activity-stream/lib/PersonalityProvider/PersonalityProvider.jsm, line 68: TypeError: / is not a valid URL.
</code></pre></div>
| 1 |
<h5 dir="auto">ISSUE TYPE</h5>
<p dir="auto">bug report</p>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">ec2_group module</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<p dir="auto">ansible 1.9.0.1<br>
configured module search path = None</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">OSX</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Running an ec2_group task fails if the group already exists if and it contains a rule with a cidr_ip that is not either 0.0.0.0/0 or of the form x.x.x.x/32. Rules with cidr_ips such as x.x.x.x/24 succeed the first time, then fail on subsequent runs.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">Comment in one of the cidr_ip lines to create a task that will either be idempotent or not, as indicated:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: Create security group
ec2_group:
name: "foo"
description: test security group
region: eu-west-1
rules:
- proto: tcp
from_port: 80
to_port: 80
# cidr_ip: 0.0.0.0/0 # succeeds on repeated runs
# cidr_ip: 194.82.50.2/32 # succeeds on repeated runs
# cidr_ip: 194.82.50.2/24 # succeeds first time, then fails on repeated runs
# cidr_ip: 194.82.50.2/25 # succeeds first time, then fails on repeated runs"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Create security group</span>
<span class="pl-ent">ec2_group</span>:
<span class="pl-ent">name</span>: <span class="pl-s"><span class="pl-pds">"</span>foo<span class="pl-pds">"</span></span>
<span class="pl-ent">description</span>: <span class="pl-s">test security group</span>
<span class="pl-ent">region</span>: <span class="pl-s">eu-west-1</span>
<span class="pl-ent">rules</span>:
- <span class="pl-ent">proto</span>: <span class="pl-s">tcp</span>
<span class="pl-ent">from_port</span>: <span class="pl-c1">80</span>
<span class="pl-ent">to_port</span>: <span class="pl-c1">80</span>
<span class="pl-c"><span class="pl-c">#</span> cidr_ip: 0.0.0.0/0 # succeeds on repeated runs</span>
<span class="pl-c"><span class="pl-c">#</span> cidr_ip: 194.82.50.2/32 # succeeds on repeated runs</span>
<span class="pl-c"><span class="pl-c">#</span> cidr_ip: 194.82.50.2/24 # succeeds first time, then fails on repeated runs</span>
<span class="pl-c"><span class="pl-c">#</span> cidr_ip: 194.82.50.2/25 # succeeds first time, then fails on repeated runs</span></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [localhost] **************************************************************
TASK: [foo | Create security group] *******************************************
ok: [localhost]
PLAY RECAP ********************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate">PLAY [localhost] **************************************************************
TASK: [foo | Create security group] *******************************************
ok: [localhost]
PLAY RECAP ********************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=0
</code></pre></div>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [localhost] **************************************************************
TASK: [foo | Create security group] *******************************************
failed: [localhost] => {"failed": true, "parsed": false}
Traceback (most recent call last):
File "/Users/rsslldnphy/.ansible/tmp/ansible-tmp-1427989467.61-110551427980538/ec2_group", line 2187, in <module>
main()
File "/Users/rsslldnphy/.ansible/tmp/ansible-tmp-1427989467.61-110551427980538/ec2_group", line 302, in main
group.authorize(rule['proto'], rule['from_port'], rule['to_port'], ip, grantGroup)
File "/usr/local/lib/python2.7/site-packages/boto/ec2/securitygroup.py", line 203, in authorize
dry_run=dry_run)
File "/usr/local/lib/python2.7/site-packages/boto/ec2/connection.py", line 3191, in authorize_security_group
params, verb='POST')
File "/usr/local/lib/python2.7/site-packages/boto/connection.py", line 1226, in get_status
raise self.ResponseError(response.status, response.reason, body)
boto.exception.EC2ResponseError: EC2ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>InvalidPermission.Duplicate</Code><Message>the specified rule "peer: 194.82.50.0/24, TCP, from port: 80, to port: 80, ALLOW" already exists</Message></Error></Errors><RequestID>7b8b6394-82d5-422d-a037-0aa90c4f0edd</RequestID></Response>
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/Users/rsslldnphy/web.retry
localhost : ok=0 changed=0 unreachable=0 failed=1"><pre class="notranslate"><code class="notranslate">PLAY [localhost] **************************************************************
TASK: [foo | Create security group] *******************************************
failed: [localhost] => {"failed": true, "parsed": false}
Traceback (most recent call last):
File "/Users/rsslldnphy/.ansible/tmp/ansible-tmp-1427989467.61-110551427980538/ec2_group", line 2187, in <module>
main()
File "/Users/rsslldnphy/.ansible/tmp/ansible-tmp-1427989467.61-110551427980538/ec2_group", line 302, in main
group.authorize(rule['proto'], rule['from_port'], rule['to_port'], ip, grantGroup)
File "/usr/local/lib/python2.7/site-packages/boto/ec2/securitygroup.py", line 203, in authorize
dry_run=dry_run)
File "/usr/local/lib/python2.7/site-packages/boto/ec2/connection.py", line 3191, in authorize_security_group
params, verb='POST')
File "/usr/local/lib/python2.7/site-packages/boto/connection.py", line 1226, in get_status
raise self.ResponseError(response.status, response.reason, body)
boto.exception.EC2ResponseError: EC2ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>InvalidPermission.Duplicate</Code><Message>the specified rule "peer: 194.82.50.0/24, TCP, from port: 80, to port: 80, ALLOW" already exists</Message></Error></Errors><RequestID>7b8b6394-82d5-422d-a037-0aa90c4f0edd</RequestID></Response>
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/Users/rsslldnphy/web.retry
localhost : ok=0 changed=0 unreachable=0 failed=1
</code></pre></div>
<p dir="auto">Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="65955056" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/1068" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/1068/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/1068">ansible/ansible-modules-core#1068</a></p>
|
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">yum</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.0.0"><pre class="notranslate"><code class="notranslate">ansible 2.2.0.0
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">CentOS release 6.9 (Final) on source and target.</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">When yum has error about "Warning: RPMDB altered outside of yum", ansible's yum command fails with "Failure talking to yum: list index out of range".</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: install anything with yum
yum: name={{ item }} state=present
with_items:
- nodejs
# or any package"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">install anything with yum</span>
<span class="pl-ent">yum</span>: <span class="pl-s">name={{ item }} state=present</span>
<span class="pl-ent">with_items</span>:
- <span class="pl-s">nodejs</span>
<span class="pl-c"><span class="pl-c">#</span> or any package</span></pre></div>
<p dir="auto">On target, someone installed an rpm manually, outside of yum. So running <code class="notranslate">yum history list</code> returns the history, followed by the message "Warning: RPMDB altered outside of yum."</p>
<p dir="auto">As far as I understand it, this situation shouldn't prevent you from installing new things with yum.</p>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">Installs new package</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="failed: [stats.dev.scivantage.com] (item=[u'nodejs']) => {"failed": true, "item": ["nodejs"], "msg": "Failure talking to yum: list index out of range"}"><pre class="notranslate"><code class="notranslate">failed: [stats.dev.scivantage.com] (item=[u'nodejs']) => {"failed": true, "item": ["nodejs"], "msg": "Failure talking to yum: list index out of range"}
</code></pre></div>
<p dir="auto">After fixing the condition on the target (by running <code class="notranslate">rpm --rebuilddb</code>, <code class="notranslate">yum clean all</code>, then installing something manually with yum), the ansible command worked again.</p>
| 0 |
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/change-text-inside-an-element-using-jquery" rel="nofollow">Change Text Inside an Element Using jQuery</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My code:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
<script>
$(document).ready(function() {
$("#target1").addClass("animated bounce");
$("h3").html("<em>jQuery Playground</em>");
});
$(document).ready(function() {
$("#target4").html("<>#target4</em>");
});
</script>
<!-- Only change code above this line. -->
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>
"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">script</span><span class="pl-kos">></span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">ready</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-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">addClass</span><span class="pl-kos">(</span><span class="pl-s">"animated bounce"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"h3"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">html</span><span class="pl-kos">(</span><span class="pl-s">"<em>jQuery Playground</em>"</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">$</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">ready</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-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target4"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">html</span><span class="pl-kos">(</span><span class="pl-s">"<>#target4</em>"</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-ent">script</span><span class="pl-kos">></span>
<span class="pl-c"><!-- Only change code above this line. --></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">container-fluid</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h3</span> <span class="pl-c1">class</span>="<span class="pl-s">text-primary text-center</span>"<span class="pl-kos">></span>jQuery Playground<span class="pl-kos"></</span><span class="pl-ent">h3</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">row</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h4</span><span class="pl-kos">></span>#left-well<span class="pl-kos"></</span><span class="pl-ent">h4</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">left-well</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target1</span>"<span class="pl-kos">></span>#target1<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target2</span>"<span class="pl-kos">></span>#target2<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target3</span>"<span class="pl-kos">></span>#target3<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h4</span><span class="pl-kos">></span>#right-well<span class="pl-kos"></</span><span class="pl-ent">h4</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">right-well</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target4</span>"<span class="pl-kos">></span>#target4<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target5</span>"<span class="pl-kos">></span>#target5<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target6</span>"<span class="pl-kos">></span>#target6<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div>
| 1 |
|
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> df = pd.DataFrame([[True, True, True]], columns=['key', 'a', 'a'])
>>> df.groupby('key').any()
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></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-c1">True</span>, <span class="pl-c1">True</span>, <span class="pl-c1">True</span>]], <span class="pl-s1">columns</span><span class="pl-c1">=</span>[<span class="pl-s">'key'</span>, <span class="pl-s">'a'</span>, <span class="pl-s">'a'</span>])
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">df</span>.<span class="pl-en">groupby</span>(<span class="pl-s">'key'</span>).<span class="pl-en">any</span>()
<span class="pl-v">ValueError</span>: <span class="pl-v">Buffer</span> <span class="pl-s1">has</span> <span class="pl-s1">wrong</span> <span class="pl-s1">number</span> <span class="pl-s1">of</span> <span class="pl-en">dimensions</span> (<span class="pl-s1">expected</span> <span class="pl-c1">1</span>, <span class="pl-s1">got</span> <span class="pl-c1">2</span>)</pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">This throws because of the below line:</p>
<p dir="auto"></p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/pandas-dev/pandas/blob/0801b8c9090752c1342962aecd03e9a0468adbd4/pandas/core/groupby/groupby.py#L2024">pandas/pandas/core/groupby/groupby.py</a>
</p>
<p class="mb-0 color-fg-muted">
Line 2024
in
<a data-pjax="true" class="commit-tease-sha" href="/pandas-dev/pandas/commit/0801b8c9090752c1342962aecd03e9a0468adbd4">0801b8c</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="L2024" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2024"></td>
<td id="LC2024" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">mask</span> <span class="pl-c1">=</span> <span class="pl-en">isnull</span>(<span class="pl-s1">obj</span>.<span class="pl-s1">values</span>).<span class="pl-en">view</span>(<span class="pl-s1">np</span>.<span class="pl-s1">uint8</span>) </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto">Cython is expecting a one dimensional array of masks, but <code class="notranslate">self._iterate_slices()</code> which contains the above statement will provide a multi-dimensional array. Therefore, when the Cython function gets called with <code class="notranslate">mask</code> it is a multi-dimensional object and causes the <code class="notranslate">ValueError</code>.</p>
<p dir="auto">I'm not sure if this is the expected behavior of <code class="notranslate">self._iterate_slices()</code> or not. If so, there may be implications in other parts of the module.</p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<h2 dir="auto">INSTALLED VERSIONS</h2>
<p dir="auto">commit: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pandas-dev/pandas/commit/0801b8c9090752c1342962aecd03e9a0468adbd4/hovercard" href="https://github.com/pandas-dev/pandas/commit/0801b8c9090752c1342962aecd03e9a0468adbd4"><tt>0801b8c</tt></a><br>
python: 3.6.4.final.0<br>
python-bits: 64<br>
OS: Darwin<br>
OS-release: 17.6.0<br>
machine: x86_64<br>
processor: i386<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: en_US.UTF-8<br>
LOCALE: en_US.UTF-8</p>
<p dir="auto">pandas: 0.24.0.dev0+184.g0801b8c90<br>
pytest: 3.4.1<br>
pip: 10.0.1<br>
setuptools: 38.5.1<br>
Cython: 0.27.3<br>
numpy: 1.14.1<br>
scipy: 1.0.0<br>
pyarrow: 0.8.0<br>
xarray: 0.10.0<br>
IPython: 6.2.1<br>
sphinx: 1.7.0<br>
patsy: 0.5.0<br>
dateutil: 2.6.1<br>
pytz: 2018.3<br>
blosc: None<br>
bottleneck: 1.2.1<br>
tables: 3.4.2<br>
numexpr: 2.6.4<br>
feather: 0.4.0<br>
matplotlib: 2.1.2<br>
openpyxl: 2.5.0<br>
xlrd: 1.1.0<br>
xlwt: 1.3.0<br>
xlsxwriter: 1.0.2<br>
lxml: 4.1.1<br>
bs4: 4.6.0<br>
html5lib: 1.0.1<br>
sqlalchemy: 1.2.5<br>
pymysql: 0.8.0<br>
psycopg2: 2.7.4 (dt dec pq3 ext lo64)<br>
jinja2: 2.10<br>
s3fs: 0.1.3<br>
fastparquet: 0.1.4<br>
pandas_gbq: 0.4.1<br>
pandas_datareader: None<br>
gcsfs: None</p>
</details>
|
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# error
In [27]: pd.DataFrame([[1, 1]], columns=['x','x']).iat[0,0]
TypeError: len() of unsized object
# ok
In [26]: pd.DataFrame([[1, 1]], columns=['x','y']).iat[0,0]
Out[26]: 1"><pre class="notranslate"><code class="notranslate"># error
In [27]: pd.DataFrame([[1, 1]], columns=['x','x']).iat[0,0]
TypeError: len() of unsized object
# ok
In [26]: pd.DataFrame([[1, 1]], columns=['x','y']).iat[0,0]
Out[26]: 1
</code></pre></div>
<p dir="auto">I have some weird issue in a DataFrame I'm creating from a row-based array.<br>
Using python3 and pandas 0.17.1 (from debian unstable), I get:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="df = pandas.DataFrame(data=data[1:], columns=data[0])
df.iat[0, 0]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/pandas/core/indexing.py", line 1555, in __getitem__
return self.obj.get_value(*key, takeable=self._takeable)
File "/usr/lib/python3/dist-packages/pandas/core/frame.py", line 1808, in get_value
series = self._iget_item_cache(col)
File "/usr/lib/python3/dist-packages/pandas/core/generic.py", line 1116, in _iget_item_cache
lower = self.take(item, axis=self._info_axis_number, convert=True)
File "/usr/lib/python3/dist-packages/pandas/core/generic.py", line 1371, in take
convert=True, verify=True)
File "/usr/lib/python3/dist-packages/pandas/core/internals.py", line 3628, in take
axis=axis, allow_dups=True)
File "/usr/lib/python3/dist-packages/pandas/core/internals.py", line 3510, in reindex_indexer
indexer, fill_tuple=(fill_value,))
File "/usr/lib/python3/dist-packages/pandas/core/internals.py", line 3536, in _slice_take_blocks_ax0
slice_or_indexer, self.shape[0], allow_fill=allow_fill)
File "/usr/lib/python3/dist-packages/pandas/core/internals.py", line 4865, in _preprocess_slice_or_indexer
return 'fancy', indexer, len(indexer)
TypeError: len() of unsized object"><pre class="notranslate"><code class="notranslate">df = pandas.DataFrame(data=data[1:], columns=data[0])
df.iat[0, 0]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/pandas/core/indexing.py", line 1555, in __getitem__
return self.obj.get_value(*key, takeable=self._takeable)
File "/usr/lib/python3/dist-packages/pandas/core/frame.py", line 1808, in get_value
series = self._iget_item_cache(col)
File "/usr/lib/python3/dist-packages/pandas/core/generic.py", line 1116, in _iget_item_cache
lower = self.take(item, axis=self._info_axis_number, convert=True)
File "/usr/lib/python3/dist-packages/pandas/core/generic.py", line 1371, in take
convert=True, verify=True)
File "/usr/lib/python3/dist-packages/pandas/core/internals.py", line 3628, in take
axis=axis, allow_dups=True)
File "/usr/lib/python3/dist-packages/pandas/core/internals.py", line 3510, in reindex_indexer
indexer, fill_tuple=(fill_value,))
File "/usr/lib/python3/dist-packages/pandas/core/internals.py", line 3536, in _slice_take_blocks_ax0
slice_or_indexer, self.shape[0], allow_fill=allow_fill)
File "/usr/lib/python3/dist-packages/pandas/core/internals.py", line 4865, in _preprocess_slice_or_indexer
return 'fancy', indexer, len(indexer)
TypeError: len() of unsized object
</code></pre></div>
<p dir="auto">Interestingly, I can otherwise manage the dataframe just fine.<br>
The same code, running under python2.7 shows no issue.</p>
<p dir="auto">What could be the cause of such error?</p>
| 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.