WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
[Enter steps to reproduce below:]

...

...

Atom Version: 0.169.0

System: linux 3.13.0-44-generic

Thrown From: Atom Core

Stack Trace

Uncaught Error: spawn /opt/atom/atom (deleted) ENOENT

At events.js:85

Error: spawn /opt/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:746:11)
at Process.ChildProcess._handle.onexit (child_process.js:1047:32)
at child_process.js:1138:20
at process._tickCallback (node.js:386:11)

Commands

-0:12.6 core:move-left (atom-text-editor.editor)
2x -0:12.1 editor:select-to-end-of-word (atom-text-editor.editor)
-0:10.7 core:move-up (atom-text-editor.editor)
-0:10.4 core:move-left (atom-text-editor.editor)
2x -0:10.0 editor:select-to-end-of-word (atom-text-editor.editor)
-0:08.8 core:move-up (atom-text-editor.editor)
-0:08.5 core:move-left (atom-text-editor.editor)
2x -0:08.1 editor:select-to-end-of-word (atom-text-editor.editor)
-0:06.7 core:move-up (atom-text-editor.editor)
-0:06.4 core:move-left (atom-text-editor.editor)
2x -0:05.5 editor:select-to-end-of-word (atom-text-editor.editor)
-0:04.2 core:move-up (atom-text-editor.editor)
-0:03.9 core:move-left (atom-text-editor.editor)
2x -0:03.5 editor:select-to-end-of-word (atom-text-editor.editor)
-0:01.6 core:backspace (atom-text-editor.editor)
-0:00.0 core:save (atom-text-editor.editor)

Config

{
"core": {
"ignoredNames": [
".git .bak .hv *~"
],
"projectHome": "/git/"
},
"editor": {
"fontFamily": "ubuntu",
"fontSize": 13,
"showInvisibles": true,
"showIndentGuide": true
}
}

Installed Packages

# User
color-picker, v1.2.6
language-batch, v0.3.2

# Dev
No dev packages

Issue 2:
TEMPORARY WORKAROUND: ln -s /usr/share/atom/atom "/usr/share/atom/atom (deleted)"

Uncaught Error: spawn /opt/atom/atom (deleted) ENOENT

Atom Version: 0.152.0

System: linux 3.13.0-40-generic

Thrown From: Atom Core

Steps To Reproduce

...

...

Stack Trace

At events.js:85

Error: spawn /opt/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
Issue 1:
Filed TypeStrong/ntypescript#19, but it was closed due to not being nTypeScript specific. Opening here.

TypeScript Version:

Latest nTypeScript release

Code

tsconfig.json:

{
"compilerOptions": {
"target": "ES5",
"module": "system",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false,
"outDir": "javascript"
},
"files": [
"./typescript/main.ts",
"./typed/sha.js.d.ts"
],
"exclude": [
"node_modules"
]
}

main.ts:

/// <reference path="../typings/browser.d.ts"/>

import "angular2/bundles/angular2-polyfills";

import {bootstrap} from "angular2/platform/browser";
import {AppComponent} from "./app.component";
import {ROUTER_PROVIDERS} from "angular2/router";

bootstrap(AppComponent, [ROUTER_PROVIDERS]);

Expected behavior:

everything should compile successfully

Actual behavior:

node_modules/ntypescript/bin/lib.d.ts(1266,14): error TS2300: Duplicate identifier 'PropertyKey'.
typings/browser/ambient/es6-shim/index.d.ts(8,14): error TS2300: Duplicate identifier 'PropertyKey'.

Issue 2:
Core-js definition file defines a PropertyKey like the one in lib.es6.d.ts, now that this is in the main library, this is breaking the core-js compilation.

See https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/core-js/core-js.d.ts#L21

Possible fix, rename the type declaration to something else now, to avoid breaking changes with the next TS release.
Issue 1:
Symfony version(s) affected: 2.8.39

PHP Version: 7.1.17

Description

[InvalidArgumentException]

When I run the console command: php bin/console -e=dev , I get an error:

The file "/path_to_project/project/app/config/config_=dev.yml" does not exist.

But when I do this through: php bin/console --env=dev, everything is ok

How to reproduce

php bin/console -e=dev

Issue 2:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
yes

RFC?
no

Symfony version
3.4.5

Hi...

when coding I was used to setting an alias as so:

alias dev='./bin/console -e=dev'

But since I upgraded to 3.4.5 I got this error:

$ bin/console -e=dev c:c

In FileLocator.php line 44:

The file "/var/www/html/app/config/config_=dev.yml" does not exist.

It seems now the good syntax is either

./bin/console -edev c:c
# Or
./bin/console --env=dev c:c

It seems to me that it is a breaking change (not a huge one of course but still...)

Regards,

Adrien
Issue 1:
Q
A

Bug report?
yes

Feature request?
yes

BC Break report?
no

RFC?
no

Symfony version
4.1.0

Sorry if this is a duplicate - I THOUGHT I opened this issue already, but cannot find it.

When autowiring a controller argument fails (e.g. no service exists to match the type-hint), you see a very generic message:

Controller "App\Controller\LiftController::indexAction()" requires that you provide a value for the "$foo" argument. Either the argument is nullable and no null value has been provided, no default value has been provided or because there is a non optional argument after this one.

But, if this argument is not provided due to some autowiring error, the system, the error could/should report that instead - e.g.:

Cannot autowire service "App\Controller\BarController": argument "$foo" of method "indexAction()" has type "App\Controller\Foo" but this class was not found.

This is non-trivial, as the autowiring errors would need to be stored, and the argument resolver system would need some new way of reporting why the argument may not have been matched. I've talked about this with @nicolas-grekas a long time ago: it's one of the rough spots for action DI.

Issue 2:
When I will use FOSUserBundle I have this error:

An exception has been thrown during the rendering of a template ("Warning: strtr() expects parameter 1 to be string, array given in .../vendor/symfony/symfony/src/Symfony/Component/Translation/IdentityTranslator.php line 62") in "FOSUserBundle:Registration:confirmed.html.twig".

The same problem as #1687.

Any idea? Thanks
Issue 1:
There is a bug on the class transform, which does not match spec 1:1. When a constructor is not defined, the parent constructor should be called with ...args, which means calling Array.prototype[Symbol.iterator] under the hood.

Input Code

Array.prototype[Symbol.iterator] = () => console.log('potato');
class Foo extends Error() {}
new Foo();

Babel/Babylon Configuration (.babelrc, package.json, cli command)

Tried with REPL, es2015 preset.

Expected Behavior

potato should appear in the console.

Current Behavior

potato does not appear in the console :( Essentially because no Symbol.iterator is pulled in.

Possible Solution

Transform:

(Foo.__proto__ || Object.getPrototypeOf(Foo)).apply(this, arguments)

Into:

(Foo.__proto__ || Object.getPrototypeOf(Foo))(...args)

And let the spread/rest be recompiled to use the iterator.

Context

See an V8 issue for that. It's probably a very edge case anyway, but having the strict class transformer and the loose one, I'd expect the strict to be strict, not semi-loose :)

Issue 2:
Input Code

Array.prototype[Symbol.iterator] = function() {
throw new Error();
}
class c {} ;
class b extends c {}
new b();

Babel Configuration (.babelrc, package.json, cli command)

presets -latest

Expected Behavior

→ cat test2.js
Array.prototype[Symbol.iterator] = function() {
throw new Error();
}
class c {} ;
class b extends c {}
var y = new b();

→ ./out.gn/x64.debug/d8 test2.js
test2.js:2: Error
throw new Error();
^
Error
at Array.(anonymous function) (test2.js:2:9)
at b (test2.js:5:1)
at test2.js:6:9

Current Behavior

No error

Possible Solution

Context

Your Environment

software
version

Babel

node

npm

Operating System
Issue 1:
Version

2.6.10

Reproduction link

https://test.ipalfish.com/klian/web/dist/m/picture/vip-code.html?from=singlemessage&isappinstalled=0

Steps to reproduce

config project by vue-cli 3.0, then load page in wechat devtools

see the error below:

libs.213765e4.js:1 Uncaught SyntaxError: Invalid regular expression: /[^a-zA-ZÂ·Ã€-Ã–Ã˜-Ã¶Ã¸-Í½Í¿-á¿¿â€Œ-â€�â€¿-â�€â�°-â†�â°€-â¿¯ã€�-íŸ¿ï¤€-ï·�ï·°-ï¿½.$_\d]/: Range out of order in character class

at RegExp ()

at Module. (libs.213765e4.js:1)

at Module.2b0e (libs.213765e4.js:1)

at r (vip-code.f5f61c2a.js:1)

at Object.a1c6 (vip-code.f5f61c2a.js:1)

at r (vip-code.f5f61c2a.js:1)

at Module.56d7 (vip-code.f5f61c2a.js:1)

at r (vip-code.f5f61c2a.js:1)

at Object.17 (vip-code.f5f61c2a.js:1)

at r (vip-code.f5f61c2a.js:1)

What is expected?

render successfully

What is actually happening?

report an error

it seem to a bug in vue.esm.js line 478

var unicodeLetters = 'a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-

it only happen when production

config.devtool = isDev ? 'cheap-module-eval-source-map' : 'hidden-source-map'

Issue 2:
in my component,i use some custom element just for making it won't be effected by other style.

such as:

<template>
<!--'my-el' is just a common dom el,not component-->
<my-el></my-el>
</template>

but,vue always warm that ''Unknown custom element...',how to ignore it without runing 'Vue.config.silent = true'?
Issue 1:
On at least two electron apps I noticed that tray icons would disappear after gnome has been locked and unlocked.

My system / these apps:

Kernel: 5.6.4-arch1-1

Desktop: GNOME Shell 3.36.1

mattermost-desktop 4.4.0-4

riot-desktop: 1.5.15-1

electron: v8.2.2

Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Expected Behavior

Tray icons should be visible after locking and unlocking the screen.

Actual Behavior

Tray icons appear just fine after the app has been started first. Then they disappear after the screen has been locked at least once.

To Reproduce

Start one of the apps in question, activate tray icons. See the tray icon is visible. Lock the screen and unlock again. The tray icon is now missing

Additional Information

By random chance, I noticed a similar bugreport which mentions a fix for the telegram desktop app. There seems to be a problem with the icon counter, but the telegram app does not use electron. However, maybe it helps.

Issue 2:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Electron Version

13

What operating system are you using?

Ubuntu

Operating System Version

Ubuntu 20

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

Electron imports package, no error messages

Actual Behavior

There is and error message when I'm trying to import es6 module to electron main process (specifically ib-tws-api), which breaks the app:

A JavaScript error occurred in the main process
Uncaught Exception:
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /home/amz/projects/test/electron-boilerplate/node_modules/ib-tws-api/index.js
require() of ES modules is not supported.
require() of /home/amz/projects/test/electron-boilerplate/node_modules/ib-tws-api/index.js from /home/amz/projects/test/electron-boilerplate/app/main.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /home/amz/projects/test/electron-boilerplate/node_modules/ib-tws-api/package.json.

I'm using electron-boilerplate here, but I don't whink it matters.

Not sure if it's really a bug, but I couldn't figure it out. There has to be the way to import this package. I searched everywhere and couldn't find any solutions. I'm sure I could just convert the package to use commonjs, but I think there are simpler ways.

Testcase Gist URL

No response

Additional Information

No response
Issue 1:
ISSUE TYPE

[x] - Bug Report

COMPONENT NAME

Playbook & Inventory

ANSIBLE VERSION

ansible 2.3.0.0
config file =
configured module search path = Default w/o overrides
python version = 2.7.13 (default, Dec 18 2016, 07:03:39) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)]

CONFIGURATION

OS / ENVIRONMENT

N/A

SUMMARY

Inventory:

[slave]
10.0.0.1:1222

[master]
10.0.0.1:9322

Playbook:

- hosts: master
tasks:
- name: Display all variables/facts known for a host
debug:
var: hostvars[inventory_hostname]
verbosity: 4

Ansible connects to port 1222 instead of 9322 as expected.

EXPECTED RESULTS

Ansible to connect to port 9322 as per the host group

ACTUAL RESULTS

$ ansible-playbook -vvvv -i inventory playbook.yml
Loading callback plugin default of type stdout, v2.0 from /usr/local/Cellar/ansible/2.3.0.0_2/libexec/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc

PLAYBOOK: playbook.yml ****************************************************************************************************************************************************************************************************************************************************
1 plays in playbook.yml

PLAY [master] ******************************************************************************************************************************************************************************************************************************************************************

TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************************************************
Using module file /usr/local/Cellar/ansible/2.3.0.0_2/libexec/lib/python2.7/site-packages/ansible/modules/system/setup.py
<10.0.0.1> ESTABLISH CONNECTION FOR USER: root on PORT 1222 TO 10.0.0.1
<10.0.0.1> CONNECTION: pid 83121 waiting for lock on 8
<10.0.0.1> CONNECTION: pid 83121 acquired lock on 8

Issue 2:
hosts: S6_scanner_dc1

tasks:

set_fact: datacenter={{ dc }}

hosts: S6_scanner_{{ datacenter }}

tasks:

shell: echo {{ datacenter }}

In this playbook, the variable "datacenter" is well substituted in the shell command but it is not in the hosts declaration of the 2nd play.

Ansible version used : 1.2

If I pass the variable as an extra_vars in ansible-playbook command, it works fine.

ansible-playbook myplaybook.yml -e "datacenter=dc1"

hosts: S6_scanner_{{ datacenter }}

tasks:

shell: echo {{ datacenter }}

The best use case would be that it works between plays but also even if we include playbooks. For ex:

hosts: S6_scanner_dc1

tasks:

set_fact: datacenter={{ dc }}

include anotherplaybook.yml => could reuse var in this playbook
Issue 1:
A common requirement for a filterBy search in ... is to specify multiple keys to look, but not all of them (as that might produce false positives from fields irrelevant/invisible to the user).

Below is a crude modification of filterBy, dubbed filterByKeys. Usage example:

<li v-repeat="users | filterByKeys searchText in 'firstname' 'lastname'">{{username}}</li>

Would it be possible to add this filter to the core (or perhaps replace filterBy with it, as it should be backwards compatible)?

Currently, keeping this in a separate custom filters file requires duplicating the contains function and pulling in the same requirements as for array-filters.js itself.

var filterByKeys = function(){
// Convert arguments to an actual Array
var args = [].slice.call(arguments)
var arr = args.shift()
var search = args.shift()
// cast to lowercase string
search = ('' + search).toLowerCase()
// strip optional 'in'
if (args[0] == 'in'){
delete args[0]
}
// if left with 0 keys, fall back to all keys
var keys = args.length > 0 ? args : Object.keys(args);

// filter input array
return arr.filter(function (item) {
var result = false
keys.forEach(function(datakey){
result = result || contains(Path.get(item, datakey), search)
})
return result;
})
}

PS. Possible issues might arise from the arguments conversion as that is a bit funky and I'm not 100% sure of browser compatibility

Issue 2:
Version

2.5.17

Reproduction link

https://jsfiddle.net/jsotron5000/eywraw8t/464522/

Steps to reproduce

Run the JSFiddle and open up dev tools.

You will see the Vue warning about duplicate default slots even though there is only one slot in the template.

What is expected?

No warning when using child components slotted into a renderless component.

What is actually happening?

A warning is displayed saying there are duplicate default slots when there is only one.

Here is another JSFiddle with a use case where this bug would occur:

https://jsfiddle.net/jsotron5000/eywraw8t/464242/

It is a renderless tabs component that works with another component (TabItem) which can be passed in through a slot.

The TabContainer component looks at the TabItem components and relays them to the parent component through a scoped slot.

The warning only displays when doing anything with the child vnodes inside the render function.

If you replace the children prop in the JSFiddle with just a hard coded array there is no warning.
Issue 1:
we do a post, passing the cookies from the previous response as the cookies:

requests.post(...,cookies=resp.cookies...)

the request function of the Session class appears to be presuming the cookies are always a dict, even though the comments indicate it could also be a cookiejar.

self.cookies = cookiejar_from_dict(cookies, cookiejar=self.cookies, overwrite=False)

the only way we can get it to work is if we use:

requests.post(...,cookies=resp.cookies.get_dict...)

Thanks

Issue 2:
Could not find an issue raised for this, not sure if this was an expected change either. This is reproducible on master.

Existing code fails on update to requests-2.0.1. The cause seems to be triggered by the change at kennethreitz@012f033#diff-28e67177469c0d36b068d68d9f6043bfR326

The parameter cookies expects either Dict or CookieJar. Treating MozillaCookieJar as a dict triggers the error in this instance.

The following code highlights the issue:

import sys
import requests
from os.path import expanduser

if sys.version_info.major >= 3:
from http.cookiejar import MozillaCookieJar
else:
from cookielib import MozillaCookieJar

URL = 'https://bugzilla.redhat.com'
COOKIE_FILE = expanduser('~/.bugzillacookies')

cookiejar = MozillaCookieJar(COOKIE_FILE)
cookiejar.load()

requests.get(URL, cookies=cookiejar)

The following AttributeError is thrown:

Traceback (most recent call last):
File "rtest.py", line 16, in <module>
requests.get(URL, cookies=cookiejar)
File "/tmp/rtestenv/lib/python2.7/site-packages/requests/api.py", line 55, in get
return request('get', url, **kwargs)
File "/tmp/rtestenv/lib/python2.7/site-packages/requests/api.py", line 44, in request
return session.request(method=method, url=url, **kwargs)
File "/tmp/rtestenv/lib/python2.7/site-packages/requests/sessions.py", line 327, in request
self.cookies = cookiejar_from_dict(cookies, cookiejar=self.cookies, overwrite=False)
File "/tmp/rtestenv/lib/python2.7/site-packages/requests/cookies.py", line 410, in cookiejar_from_dict
cookiejar.set_cookie(create_cookie(name, cookie_dict[name]))
AttributeError: MozillaCookieJar instance has no attribute '__getitem__'
Issue 1:
Atom running on Manjaro Linux 64bits.

When launching a new Firefox window via dragging an open tab outside the window, if you drag over Atom, the program will shut down.

This is error message displayed on the terminal:

The program 'atom' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAtom (invalid Atom parameter)'.
(Details: serial 784 error_code 5 request_code 20 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)

Issue 2:
Atom Version: 0.129.0

Video of me triggering the bug: http://ara.sh/private/atom-crash.ogv

Reproducible every time.

Environment:

Ubuntu 14.04 (all updates installed as of filing this issue)

Unity desktop environment

Repro steps:

Launch atom from the Terminal

Open a Firefox window (or use an existing one)

Drag the Firefox tab anywhere over the Atom window

Actual behavior:

It crashes

Expected behavior:

Not crash :-)

Additional Information:

The terminal prints out the following after the crash:

[7950:0920/180947:ERROR:browser_main_loop.cc(161)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[7950:0920/180947:ERROR:browser_main_loop.cc(189)] GTK theme error: Unable to locate theme engine in module_path: "pixmap",
ATTENTION: default value of option force_s3tc_enable overridden by environment.
App load time: 88ms
[7984:0920/180947:INFO:renderer_main.cc(227)] Renderer process started
[7950:0920/180948:INFO:CONSOLE(18)] "Window load time: 778ms", source: /opt/atom/resources/app/src/window-bootstrap.js (18)
The program 'atom' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAtom (invalid Atom parameter)'.
(Details: serial 1360 error_code 5 request_code 20 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
Issue 1:
I used Dropdowns jQuery plugins to mouse wheel click don't work.

I want use Dropdowns jQuery plugins and mouse wheel click, both.

I am using Windows XP/Firefox 19.0.2/jQuery-1.7.1

Issue 2:
Issue: middle mouse click on a link in Firefox, nothing happens.

Expected behavior: middle mouse click on a link, open in new browser tab.

Live example: http://twitter.github.com/bootstrap/

Tested on Win7/Firefox19 Safemode/Non-Safemode failed. IE9/Chrome25 ok.

Notice it when I upgrade to bootstrap v2.3.1.

Switch back to v2.3 and the middle button works again.
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gke/2424/

Failed: [k8s.io] Kubectl client [k8s.io] Kubectl run job should create a job from an image when restart is OnFailure [Conformance] {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:1082
Oct 24 09:14:06.985: Failed getting job e2e-test-nginx-job: the server could not find the requested resource
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:1073

Previous issues for this test: #28584 #32045 #34833

Issue 2:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gke/2414/

Failed: [k8s.io] Kubectl client [k8s.io] Kubectl run job should create a job from an image when restart is OnFailure [Conformance] {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:1082
Oct 24 06:10:16.418: Failed getting job e2e-test-nginx-job: the server could not find the requested resource
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:1073

Previous issues for this test: #28584 #32045 #34833