WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Currently VS Code prevents opening a folder more than once which makes it impossible to work on a project in multiple windows (e.g. on multiple displays).

@bpasero @dbaeumer @egamma @alexandrudima please raise any obstacles and issues you might foresee with this request.

Issues found so far:

we use the workspace path as identifier to communicate back from debug target to debug host

we need to verify cross platform that there is no code causing issues when running over the same root folder (e.g. file watchers)

Please note: Initially I've created this feature request for a specific use case: enable debugging of multiple processes.

In the meantime, debugging of multiple processes has become possible without the need for opening a folder more than once (see #13426). But instead of closing this item (as no longer necessary), I've repurposed it by removing the specific debug use case.

For transparency you can find the original comment below:

Currently it is not possible to debug more than one process from a single VS Code project (= window)

because VS Code prevents opening a folder more than once.

The workaround is to open VS code on a subfolder within the original folder, which means to restructure the project (which is not desirable).

This feature request asks for lifting the constraint and allowing to open a project folder multiple times.

Issue 2:
Ubuntu 12.04, vscode 0.10.1

Currently when you run Code if there is an instances already running (or shift clicking the app icon in Windows/Ubuntu) it will activate the currently opened window. This should open a new instance, the same goes for opening a new instance of Code with a folder as an argument when an instance is already open.

It's a very common use case for many developers to have multiple editors with the same folder open.

Repro:

Code (open instance of vscode)

Code

Expected:

A new instance of vscode is opened

Actual:

The current instance of vscode is activated
Issue 1:
Challenge http://beta.freecodecamp.com/challenges/waypoint-target-the-same-element-with-multiple-jquery-selectors has an issue.

Completed task appropriately, though was not able to continue due to code not being recognized properly by the code checking for the right answers.

in BETA FCC

Issue 2:
Challenge http://beta.freecodecamp.com/challenges/waypoint-target-the-same-element-with-multiple-jquery-selectors has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

instructions say to add class 'button-primary' but tests against 'btn-primary'
Issue 1:
references "Docked DevTools for #11627".

Issue 2:
Hi

object webContents has method openDevTools which allows to define way how DevTools will be opened. If detached or docked (bottom, right).

Is there plan to extend 's method openDevTools() in same way?

By means to have same optional parameter [option] which allows me to open DevTools docked in BrowserWindow (bottom, or right).
Issue 1:
Original report at SourceForge, opened Thu Jul 10 16:47:32 2008

I'm using Ubuntu 7.10. I have used the Synaptic manager to install Matplotlib (numpy and scipy as well). Before that I tried installing them via the download and build. I think that I have removed those efforts but I'm not certain of that. I'm now trying to install basemap but it doesn't seem to be working. I get the following when I try to build and install it. What am I doing wrong?

drew@drew-linux:/Programs/PyROMS/basemap-0.99$ python setup.py build

checking for GEOS lib in /usr/local ....

checking for GEOS lib in /sw ....

checking for GEOS lib in /opt ....

checking for GEOS lib in /opt/local ....

checking for GEOS lib in /home/drew ....

Traceback (most recent call last):

File "setup.py", line 80, in

geos_include_dirs=[os.path.join(GEOS_dir,'include'),numpy.get_include()]

File "/usr/lib/python2.5/posixpath.py", line 62, in join

elif path == '' or path.endswith('/'):

AttributeError: 'NoneType' object has no attribute 'endswith'

drew@drew-linux:/Programs/PyROMS/basemap-0.99$ python setup.py install

checking for GEOS lib in /usr/local ....

checking for GEOS lib in /sw ....

checking for GEOS lib in /opt ....

checking for GEOS lib in /opt/local ....

checking for GEOS lib in /home/drew ....

Traceback (most recent call last):

File "setup.py", line 80, in

geos_include_dirs=[os.path.join(GEOS_dir,'include'),numpy.get_include()]

File "/usr/lib/python2.5/posixpath.py", line 62, in join

elif path == '' or path.endswith('/'):

AttributeError: 'NoneType' object has no attribute 'endswith'

Issue 2:
Bug report

Bug summary

When adding text, if you use the (undocumented) kwarg font, it works but overwrites previous kwargs like fontsize and fontstyle with defaults. This does not happen if you use other kwarg options like fontname, name, fontdict['name'], etc instead of font.

Code for reproduction

import matplotlib.pyplot as plt
fig, ax = plt.subplots(figsize=(4.5, 5))
ax.axis('off')
name = 'DejaVu Sans Mono'

ax.text(0, 1.05, "kwarg fontsize", fontsize=20, name=name)
ax.text(0, 0.95, "kwarg fontsize", name=name, fontsize=20)

ax.text(0, 0.8, "kwarg fontname", fontsize=20, fontname=name)
ax.text(0, 0.7, "kwarg fontname", fontname=name, fontsize=20)

ax.text(0, 0.55, "kwarg fontdict['font']", fontsize=20, fontdict={'font': name})
ax.text(0, 0.45, "kwarg fontdict['font']", fontdict={'font': name}, fontsize=20)

ax.text(0, 0.3, "kwarg fontdict['name']", fontsize=20, fontdict={'name': name})
ax.text(0, 0.2, "kwarg fontdict['name']", fontdict={'name': name}, fontsize=20)

ax.text(0, 0.05, "kwarg font", fontsize=20, font=name)
ax.text(0, -0.05, "kwarg font", font=name, fontsize=20)
plt.show()

Actual outcome

Expected outcome

One of these 2 options:

It should produce the correct results regardless of kwarg order.

kwarg font shouldn't work at all.

Matplotlib version

Matplotlib version: 3.3.4

Matplotlib backend: Qt5Agg

Python version: 3.9.1

Installed via conda.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.0+

Operating System version: mac

Java version: 1.8

Steps to reproduce this issue

start telnet and user select,like this

When selct 1,I hope choose hello(HelloRequest),but Dubbo choose hello(HelloRequestV2).

When select 2,Dubbo has some error!

This bug is caused by methodList.get(Integer.parseInt(message)) in SelectTelnetHandler。

Select should use 1~2 ,But methodList use 0-1！

public String telnet(Channel channel, String message) {
if (message == null || message.length() == 0) {
return "Please input the index of the method you want to invoke, eg: \r\n select 1";
}
List<Method> methodList = (List<Method>) channel.getAttribute(InvokeTelnetHandler.INVOKE_METHOD_LIST_KEY);
if (CollectionUtils.isEmpty(methodList)) {
return "Please use the invoke command first.";
}
if (!StringUtils.isInteger(message) || Integer.parseInt(message) < 1 || Integer.parseInt(message) > methodList.size()) {
return "Illegal index ,please input select 1~" + methodList.size();
}
Method method = methodList.get(Integer.parseInt(message));
channel.setAttribute(SELECT_METHOD_KEY, method);
channel.setAttribute(SELECT_KEY, Boolean.TRUE);
String invokeMessage = (String) channel.getAttribute(InvokeTelnetHandler.INVOKE_MESSAGE_KEY);
return invokeTelnetHandler.telnet(channel, invokeMessage);
}

Issue 2:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.6-snapshot

files:

https://github.com/apache/dubbo/blob/master/dubbo-rpc/dubbo-rpc-rmi/src/main/java/org/apache/dubbo/rpc/protocol/rmi/RmiProtocol.java#L91

https://github.com/apache/dubbo/blob/master/dubbo-rpc/dubbo-rpc-rmi/src/main/java/org/apache/dubbo/rpc/protocol/rmi/RmiProtocol.java#L99

This check is useless, invocation cannot be null here, since new RmiRemoteInvocation(...) always is non-null.
Issue 1:
Now if using "/components/layout", layout component is unmounting and animations don't work

layout.render:

const { pathname } = this.props.url
let key = pathname.split('/')[ 1 ] || 'root'

return (
<TransitionGroup>
{ React.cloneElement( this.props.children, { key: key } ) }
</TransitionGroup>
)

sorry for my bad english

need to implement transitions

Issue 2:
Having animated route transitions would be nice, as this is one of the many benefits through client-side routing. Doing so should be left up to the user in my opinion (some people prefer CSS transitions over more fine-grained control with react-motion etc). As I understand it, one would need to modify the top-level App component.

The client entry file seems to look for a globally assigned __NEXT_DATA__.app variable but I can't find any documentation on that.
Issue 1:
by Benny.TPNG:

What does 'go version' print?
go1.3.3 windows/amd64
go1.3.3 linux/amd64

What steps reproduce the problem?
1. go run main.go

What happened?
The 2nd request will fail with EOF.

What should have happened instead?
Both requests should succeed without error.

Please provide any additional information below.
The server is an IIS reverse proxy to a go http server.

Response header sample:
HTTP/1.1 200 OK
Date: Tue, 18 Nov 2014 11:12:09 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Content-Type: application/json;charset=utf-8
Date: Tue, 18 Nov 2014 11:12:08 GMT
Transfer-Encoding: chunked
Via: 1.1 203.80.2.39 (IIRF v2.1)

Attachments:

main.go (399 bytes)

Issue 2:
by erik.westrup:

The resulting ELF produced does not contain a ".debug_gdb_script" section.
Thus no Go runtime support for Go is loaded when running the ELF in GDB.

> What does 'go version' print?

go version devel +e3ff5d42017d Mon Mar 10 07:57:58 2014 +0100 linux/amd64

> What steps reproduce the problem?
1. $ hg clone -u release https://code.google.com/p/go
$ cd go
$ hg update default
$ src/all.bash
2. $ go build hello.go
3. $ readelf -S hello | grep -c debug_gdb_script
0

> What happened?
No debug gdb script path included.

> What should have happened instead?
$ readelf -S hello | grep -c debug_gdb_script
1
which happens on the release-branch.go1.2 branch.

> Please provide any additional information below.
Has the way of loading the debug_gdb_script changed intentionally?
Issue 1:
If you have a popover show manually on page load, but are refreshing the page from down the page a bit, the popover will load at the top of the browser regardless of how far you are from the original element. I created a barebones repo at http://jtbowler.com/demo/. Just scroll down a bit and refresh and you'll see what I mean.

Issue 2:
look here:

http://jsbin.com/yalohofo/1/

The layout of the tooltips gets screwed up, if the tooltips are created when outside of the viewport !
Issue 1:
ISSUE TYPE

Feature Idea

COMPONENT NAME

contrib/inventory/azure_rm.py

lib/ansible/module_utils/azure_rm_common.py

ANSIBLE VERSION

New feature - latest

SUMMARY

Not all Azure cloud are public azure with endpoint to 'https://management.azure.com/'

For instance:

Azure China: 'https://management.chinacloudapi.cn/'

Gov Azure: 'https://management.usgovcloudapi.net/'

German Azure: 'https://management.microsoftazure.de/'

Currently the azure_rm module provides no possibility to do configure that. This has to be done at two place:

Inside the authentication ServicePrincipalCredentials or UserPassCredentials by adding `resource="endpoint"

Inside the client by using base_url parameter

Example:

endpoint = 'https://management.usgovcloudapi.net/'
self.azure_credentials = UserPassCredentials(
self.credentials['ad_user'],
self.credentials['password'],
resource=endpoint
)
self._compute_client = ComputeManagementClient(
self.azure_credentials,
self.subscription_id,
base_url=endpoint
)

Code MUST check that endpoint is ending with a /, since this is requirement from AD and you will get an invalid token otherwise. Should be done at the SDK level, but it's not done for now, so double-check here is safer.

I'll try to do a PR asap, just wanted to track this down.

Issue 2:
ISSUE TYPE

Feature Idea

COMPONENT NAME

azure_rm_common.py

SUMMARY

The current definition of the azure_rm common module utils doesn't allow overriding the various built-in endpoints (auth, table/blob storage, service bus, etc). This will be necessary to allow connection to other Azure instances (eg, AzureChinaCloud, private Azure Stack instances).

The new Python SDK seems to support overriding the endpoints via host_base, so we should add the override capability to the env credential mapping and common module utility code.

List of AzureChinaCloud endpoint URLs is at: Azure/azure-sdk-for-python#284
Issue 1:
For a project of mine I usually head over to the customize page to create a bundle. I check off some stuff I don't need and get the resulting zip file for inclusion in the project. Now, after the 2.2.2 release there's a error.txt file in the CSS directory included that reads

A less error occured trying to build your bundle. You've likely entered an
invalid input into the less variable field. Check your syntax and try again!

thanks!

{"type":"Parse","message":"Syntax Error on line 792","index":25106,
"filename":"bootstrap.css", "line":792,"column":11,"extract":["
*margin: -5px 0 5px;"," ove rflow: hidden;"," background-color: @top;"]}

It will happen even if no customization is performed (leaving the check boxes as they were).

Issue 2:
I'm trying to get Bootsrap through Customize, but every time I get a blank boostrap.css and file error.txt with the error:

A less error occured trying to build your bundle.

You've likely entered an invalid input into the less variable field. Check your syntax and try again!

thanks!

{"type": "Parse", "message": "Syntax Error on line 792", "index": 25106, "filename": "bootstrap.css", "line": 792, "column": 11, "extract ": [" * margin:-5px 0 5px; "," ove rflow: hidden; "," background-color: @ top; "]}

My Settings: all items marked, except Icons.

What is the problem?
Issue 1:
Electron Version: 2.0.7

Operating System (Platform and Version): MacOS 10.13.6

Last known working Electron version:

Expected Behavior

When a renderer process in a BrowserView is closed, I expect the window.onbeforeunload event to fire.

Actual behavior

It does not fire in a BrowserView renderer.

To Reproduce

Run this code in an Electron fiddle https://gist.github.com/ccnokes/88d847e32a8a2e6ba1eca15cb9e5bc47

When the window opens, close it (but don't quit the app)

Note that there's no message received from the renderer

Also note that you can comment in the same code with a onbeforeunload event that works when it's run in a BrowserWindow but not in a BrowserView

Let me know if you want a repo.

Possibly related to #5661?

Issue 2:
Output of node_modules/.bin/electron --version: v3.0.7

Operating System (Platform and Version): macOS Mojave 10.14.2, Darwin 18.2.0 Darwin Kernel Version 18.2.0: Mon Nov 12 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64 x86_64

Output of node_modules/.bin/electron --version on last known working Electron version (if applicable): n/a

Expected Behavior

Imagine there are two cookies with the same name on the same domain and path:

manually set using Cookies object

set by server

I would expect the second cookie to replace the first one when it's received from server.

Actual behavior

Both cookies are sent in the same request.

Request header:

Cookie: MyCookie=1; MyCookie=2

Cookies seen by electron (note the difference in domain):

require('electron').remote.session.defaultSession.cookies.get({}, (e,c) => console.log(JSON.stringify(c, null, 2)))
[
{
"name": "MyCookie",
"value": "1",
"domain": ".localhost",
"hostOnly": false,
"path": "/",
"secure": false,
"httpOnly": true,
"session": true
},
{
"name": "MyCookie",
"value": "2",
"domain": "localhost",
"hostOnly": true,
"path": "/",
"secure": false,
"httpOnly": false,
"session": true
}
]

To Reproduce

set a cookie using electron.remote.session.defaultSession.cookies.set

go to a website which gives you the same cookie with another value in response

send another request to this website

check cookies in the last request

https://github.com/antelle/electron-quick-start

If you provide a URL, please list the commands required to clone/setup/run your repo e.g.

$ git clone https://github.com/antelle/electron-quick-start
$ npm install
$ npm start || electron .

After this, wait for 2-3 seconds.

Please note: it will try to start a server on port 80 and then navigate to http://localhost. If it's not possible, most likely there will be an error.

Screenshots

Cookie header is displayed on this screenshot:

Additional Information

Browsers should send one cookie, not two of them.

In real life, it results in "We've detected a problem with you cookie settings" screen returned by Google.
Issue 1:
If you try to sort by "fieldname", and "fieldname" is the name of a mapped field as specified by "index_name", you get parse error stating that no mapping was found for that field. It doesn't seem right that you can search by the index_name but not sort by it, hence this bug. Without a fix for this I may be forced to put my data in the document twice, so that I can have an actual field with the correct name instead of using index_name.

Discussion on the forum:

https://groups.google.com/forum/#!topic/elasticsearch/6-BWdQTPTH0

Reproduced in 1.4 via this gist:

https://gist.github.com/pmishev/11375297

Issue 2:
I have the following problem writing an own query parser from my own package:

My query parser has to internally create another Elasticsaearch query and parse it (which is actually a workaround: I need to create a MoreLikeThis query, but I dont want to replicate all code to generate the native Lucene Query). So I use MoreLikeThisQueryBuilder to create a BytesReference of the newly constructed query, so I can parse it to a Lucene Query.

Of course I cannot do the parseContext.parseInnerQuery, because the newly constructed query is in a separate BytesReference. Instead I do the same trick like WrappedQuery:

final BytesReference querySource = QueryBuilders.moreLikeThisQuery(FIELDNAME_MLT)
.ids(Integer.toString(id))
.include(true)
.percentTermsToMatch(.5f)
.minTermFreq(0)
.minDocFreq(5)
.maxQueryTerms(25)
.boostTerms(1.0f)
.buildAsBytes();
// hack for parsing this as inner query
try (XContentParser qSourceParser = XContentFactory.xContent(querySource).createParser(querySource)) {
final QueryParseContext context = cloneParseContext();
context.reset(qSourceParser);
return context.parseInnerQuery();
} catch (IOException ioe) {
throw new AssertionError("IOException cannot happen here.", ioe);
}

The problem is now: I need to clone the QueryParseContext. WrappedQueryParser just creates a new instance, but it needs the index name (easy to get) and IndexQueryParserService. Unfortunately, the latter is package private.

I would be happy if this could be solved. As this above stuff is used quite often, I think the best solution would be to allow to clone ParseContext or add a method to create a new one from an existion one (copy constructor). The other way would be to make the field accessible.

The current workaround is to use reflection to get the field...
Issue 1:
Code Sample, a copy-pastable example if possible

>>> import pandas as pd
>>> test = list(range(5))
>>> a = pd.Series(test, index=test)
>>> a.index
Int64Index([0, 1, 2, 3, 4], dtype='int64')
>>> 0.5**a.index
Float64Index([0.0, 1.0, 1.41421356237, 1.73205080757, 2.0], dtype='float64')

Problem description

The index doesn't seem to behave properly when it is being raised to the power. It is not giving the correct values. It seems to work well with other operations like multiplication.

Expected Output

Float64Index(array([ 1. , 0.5 , 0.25 , 0.125 , 0.0625]), dtype='float64')

Output of pd.show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None

pandas: 0.19.2

nose: None

pip: 9.0.1

setuptools: 27.2.0

Cython: None

numpy: 1.11.3

scipy: 0.18.1

statsmodels: None

xarray: 0.9.1

IPython: 5.1.0

sphinx: None

patsy: None

dateutil: 2.6.0

pytz: 2016.10

blosc: None

bottleneck: None

tables: None

numexpr: None

matplotlib: 1.5.3

openpyxl: None

xlrd: 1.0.0

xlwt: None

xlsxwriter: None

lxml: None

bs4: None

html5lib: None

httplib2: None

apiclient: None

sqlalchemy: None

pymysql: None

psycopg2: None

jinja2: 2.9.4

boto: None

pandas_datareader: None

Issue 2:
Code Sample, a copy-pastable example if possible

index = pd.Float64Index(range(1, 11))

expected_pow_values = 2.0**index.values
actual_pow_values = 2.0**index
similar_pow_values = 2.0**np.arange(len(index))

expected_mul_values = 2.0*index.values
actual_mul_values = 2.0*index

other_way_around = index**2.0
same_as = index.values**2.0

Problem description

Using the pow '**' operator on an index object results in a behaviour different than when using the '' operator. The pow result implies that the values being used are not index.values, which one would expect given the behaviour of other operators (, -, +, / ...).

This problem only arises when the index object is the second argument.

Expected Output

expected output would be the result of 2.0**index.values

Output of pd.show_versions()

commit: None

python: 2.7.13.final.0

python-bits: 64

OS: Windows

OS-release: 10

machine: AMD64

processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel

byteorder: little

LC_ALL: None

LANG: None

LOCALE: None.None

pandas: 0.19.1

nose: None

pip: 9.0.1

setuptools: 32.2.0

Cython: None

numpy: 1.12.0rc1

scipy: 0.18.1

statsmodels: 0.8.0rc1

xarray: None

IPython: 5.1.0

sphinx: 1.4.8

patsy: 0.4.1

dateutil: 2.6.0

pytz: 2016.10

blosc: None

bottleneck: None

tables: None

numexpr: None

matplotlib: 1.5.3

openpyxl: 2.4.1

xlrd: 1.0.0

xlwt: 1.1.2

xlsxwriter: None

lxml: 3.7.0

bs4: None

html5lib: 0.9999999

httplib2: None

apiclient: None

sqlalchemy: None

pymysql: None

psycopg2: None

jinja2: 2.8

boto: None