WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
VSCode Version: 0.10.11

OS Version: OS X 10.11.1 (15B42)

Steps to Reproduce:

Press Control + Command + Space to bring up the emoji insert modal

Click one

Additionally, to actually see the emoji in VSC (instead of an empty square), I have to press backspace one time with the cursor to the right of the emoji.

I know this is a dumb bug, but figured I would log it anyway.

Keep up the great work, VSC is awesome.

Issue 2:
Open in Command Prompt currently opens cmd.exe, it would be nice to customize it to run e.g. Cmder or ConEmu which are much better alternatives.
Issue 1:
Screenshots below, basically when I copy and paste a line of code, I more-often-than-not get this cascading effect that is quite frustrating as I need to realign lines (or blocks) of code when I deliberately copied a prefixed new line so I could just hold paste.

COPY

PASTE

EXPECTED

Issue 2:
When copying a segment of code that starts with a new-line followed by tabbed-in code while "Auto Indent On Paste" is enabled, consecutive pastes will each be an additional tab deeper. I tested this with C++, Java, and JavaScript which makes me believe it is not a problem with the language specs.

Here is an example in the form of an animated gif:

It isn't just comments that this happens with, but it does require the previous line to be selected. Specifically, this happens when the copy-buffer matches a regex like /^\n\s+[^\s]/. That is, it starts with a newline, followed by one or more whitespace characters and then a non-whitespace character. And the previous line must be a blank line.
Issue 1:
VSCode Version: 0.10.12-insider

OS Version: Centos 7.2.1511 (Core)

Steps to Reproduce:

Installed/unzipped to /opt/VSCode-linux-x64

dbl clicked code-insiders icon from Files app

after a few seconds the following error is dropped down in the code editor:

Error Extension host terminated unexpectedly. Please reload the window to recover.

Issue 2:
Investigate:

FYI, the app only runs about 10 seconds before croaking and it fails 100% of the time.
Issue 1:
Router in Next 8 supports url objects { pathname: ... } but types support only string. It's bug or that feature was removed?

Issue 2:
Bug report

Describe the bug

After upgrading to next canary (future v9) from 8.1.1, I got a few TypeScript errors when calling Router.push(url) and Router.replace(url) with object-like URLs.

This seems like a regression in built-in typings compared to the third-party ones (@types/*). Related to #6644.

To Reproduce

import { Router, useRouter } from "next/router";

const router: Router = useRouter();

// 👍
router.push("/about");
router.replace("/about");

// ❌ Argument of type '{ pathname: string; }' is not assignable to parameter of type 'string'.ts(2345)
router.push({ pathname: "/about" });
router.replace({ pathname: "/about" });

Expected behavior

I expected url-like objects to be still acceptable. Not sure if new typings are simply incomplete or objects are arguments are being deprecated.

https://github.com/zeit/next.js/blob/cc497568b4b226498069c9a7adbdc03e689b8526/packages/next-server/lib/router/router.ts#L208-L226

Typings in @types/next-server:

Definition of UrlLike type

Usage in push() and replace()

There exists a local Url type in next/client, which seems like what's needed. Should it be moved to next-server/router?

https://github.com/zeit/next.js/blob/b60985b2be964dcac436d025a1943ded6454deaf/packages/next/client/link.tsx#L24

It's already used in <Link /> prop types.

One more thing: useRouter() returns any because of how RouterContext is typed 🤔

https://github.com/zeit/next.js/blob/cc497568b4b226498069c9a7adbdc03e689b8526/packages/next/client/router.ts#L125-L127

https://github.com/zeit/next.js/blob/b1fdffec75a7a7ce24693e4e1974714ac7733551/packages/next-server/lib/router-context.ts#L3

System information

Version of Next.js: 8.1.1-canary.69
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/1652 on 2010-10-28 by @gerritholl, assigned to unknown.

It would be good if .tofile() supported anything with a write-method. I was debugging my code and wanted to see exactly what my_array.tofile(sys.stdout, ' ') would write. However, as I was working in WingIDE, sys.stdout was actually a StringIO, and this code failed.

type(r[field])

<type 'numpy.float32'>

sys.stdout

<StringIO.StringIO instance at 0x161a170>

r[field].tofile(sys.stdout, ' ', '%s')

Traceback (most recent call last):

File "", line 1, in

IOError: first argument must be a string or open file

See also: http://projects.scipy.org/numpy/ticket/949

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/1634 on 2010-10-11 by trac user foobaron, assigned to unknown.

aArray = numpy.fromfile(signalfile, numpy.dtype('u1'), number_of_bytes)

signalfile = <StringIO.StringIO instance at 0xa0008ec>1

-->

IOError: first argument must be an open file

used python version: 2.6.5
Issue 1:
Issue originally made by David Aurelio (davidaurelio)

Bug information

Babel version: repl / 6.11.4

Node version: 6.3.1

Options

just paste in the repl

Input code

for (let i = 0, {length} = a; i < length; i++);

Description

If using destructuring in a loop header, the corresponding variable declaration are wrapped in an IIFE, which effectively hides these variables from the surrounding code.

Input code:

for (let i = 0, {length} = a; i < length; i++);

output:

for (function () {
var i = 0;var _a = a;
var length = _a.length;
}(); i < length; i++) {}

http://babeljs.io/repl/#?evaluate=false&lineWrap=false&presets=es2015%2Creact%2Cstage-0%2Cstage-1%2Cstage-2%2Cstage-3&experimental=false&loose=false&spec=false&code=%0Afor%20(let%20i%20%3D%200%2C%20%7Blength%7D%20%3D%20a%3B%20i%20%3C%20length%3B%20i%2B%2B)%3B

Issue 2:
With the latest version of babel and its presets (6.1.18 (babel-core 6.1.21)), running babel --preset es2015 script.js with script.js containing:

let list = [1, 2, 3, 4]
for ( let i = 0, { length } = list; i < length; i++ ) {
console.log( i + ': ' + list[i] )
}

…gives:

'use strict';

var list = [1, 2, 3, 4];
for ((function () {
var i = 0;var length = list.length;
})(); i < length; i++) {
console.log(i + ': ' + list[i]);
}

…which is totally wrong. The IIFE hides the declared variables from the for-loop body.

This issue wasn't there in version 6.0.14 at least.
Issue 1:
I'm trying to get Emacs/readline style navigation keys working in Windows, and PowerToys is 90% of the way there but not quite. The issue is that I need to remap a shortcut (Ctrl + A) to a single key (Home). I can remap a shortcut to a shortcut, or a key to a key, but not mix the two. And, as far as I know, there's no existing shortcut for go to beginning/end of line.

Issue 2:
Summary of the new feature/enhancement

a feature that allows to control the window level(s) of (every) app(s) window(s)...

Or at least the option to make one window stay on top of others or all

Wasnt that promised or already there?
Issue 1:
I tried using the @types/pdfjs-dist package and had problems.

TS2339: Property GlobalWorkerOptions does not exist

import * as pdflib from 'pdfjs-dist';

pdflib.GlobalWorkerOptions.workerSrc = '......';

Issue 2:
Voting for Ramda stub: http://ramdajs.com/

Work in progress: https://github.com/donnut/typescript-ramda
Issue 1:
related #4088

related #7867

I think this should raise as this is not clear how this should work (e.g. should you get all the other levels set to nan?)

or see my comment below, maybe just document?

In [11]: s = pd.Series(np.arange(9),index=pd.MultiIndex.from_product([['A','B','C'],['foo','bar','baz']],names=['one','two'])).sortlevel()

In [12]: s
Out[12]:
one two
A bar 1
baz 2
foo 0
B bar 4
baz 5
foo 3
C bar 7
baz 8
foo 6
dtype: int64

In [13]: s.reindex(['A','B','D'],level=0)
Out[13]:
one two
A bar 1
baz 2
foo 0
B bar 4
baz 5
foo 3
dtype: int64

Issue 2:
I'm moving this to an issue so it's easier to track and I can split into separate, smaller, pull requests. (previously was #3924).

For right now, the goal is to take care of the low-hanging fruit (the really obvious items that should be TypeError, ValueError, etc.) and then potentially take on more of the code base later.

Packages/Files where exceptions have been changed (will be checked off once test cases are edited for them)

merge

stats/common

tools/tile

core/common

core/format

core/frame

pandas/sparse

pandas/tseries

core/internals

core/index

core/panel

core/series

core/panelnd

rpy/common

io/excel

More to come...
Issue 1:
From @kristianmandrup on March 2, 2016 11:59

Trying to create a React component as a class. Currently my file is called GiftedMessengerExample.js and detected as Javascript (Salsa)

Following guidelines here: https://babeljs.io/blog/2015/06/07/react-on-es6-plus

Converting method into a property declaration with arrow function. However, when I do this, the IDE complains that this is only supported with TypeScript .ts files.

However, if I change the extension to .ts it complains about my JSX and type declarations for React imports such as Text and StyleSheet etc.

Please fix this :)

class GiftedMessengerExample extends Component {

handleSend = (message = {}, rowID = null) => {
this._gm.setMessageStatus('ErrorButton', rowID);
}

Copied from original issue: microsoft/vscode#3628

Issue 2:
From @nwehrle on February 9, 2016 21:17

I use eslint to lint my jsx files. Before I switched to salsa, the linting inside the editor worked fine. After switching to salsa the linting fails inside the editor.

Salsa is enabled:

Linting from the shell still works without any errors or warnings.

I expect vscode to not show any linting errors.

System:

OSX 10.11.2

vscode 0.10.8

db71ac615ddf9f33b133ff2536f5d33a77d4774e

jsconfig.json:

{
"compilerOptions": {
"target": "ES6",
"module": "system",
"experimentalDecorators": true
},

"exclude": [
"node_modules"
]
}

User settings:

{
"javascript.validate.enable": false,
"editor.tabSize": 2,
"files.trimTrailingWhitespace": true,
// Migrated from previous "File | Auto Save" setting:
"files.autoSave": "onFocusChange"
}

Partial eslintrc:

"rules": {
"func-names": 0,
"no-unused-expressions": 0,
"id-length": 0,
"no-multi-spaces": 0,
"no-mixed-spaces-and-tabs": 2,

"no-unused-vars": [1, {"vars": "all", "args": "none"}],
"react/jsx-uses-react": 1,
"react/prop-types": 0,
"no-console": 0
},
"plugins": [
"react"
]

Copied from original issue: microsoft/vscode#2866
Issue 1:
I guess this could be considered a feature request. The current way of configuring and building Julia is honestly pretty messy and fails frequently, even with a vanilla GCC build on linux and no special options. This is especially an issue when building dependencies, as variables frequently either get passed incorrectly, or don't get passed at all. It would be cleaner and more standard to use something along the lines of autoconf to take care of all of the configuration for the whole package, including deps. The configure scripts can/should be nested. I think this will make the build process a lot cleaner and more reliable. Thanks

Issue 2:
I think #30817 changed show(io, "text/plain", ::Array{Day}) etc. On cb7a569 (and in Julia 1.0 and 1.1) it was:

julia> Day.(1:3)
3-element Array{Day,1}:
1 day
2 days
3 days

But now (c0e9182) it's:

julia> Day.(1:3)
3-element Array{Day,1}:
Day(1)
Day(2)
Day(3)

Furthermore, confusingly (to me), Matrix{Day} still prints human readable form:

julia> [Day(1) Day(2)]
1×2 Array{Day,2}:
1 day 2 days

However, @omus and others approved the following behavior in #30200:

julia> fill(d, 2)
2-element Array{Date,1}:
Date(2018, 12, 7)
Date(2018, 12, 7)

julia> fill(d, 2, 2)
2×2 Array{Date,2}:
2018-12-07 2018-12-07
2018-12-07 2018-12-07

So maybe the current behavior of Vector{Day} and Matrix{Day} is intentional? (But, to be honest, I was confused why ndims of an array changes how elements are printed.)

Another confusing part is that show(io, ::Array{Day}) still shows human-readable form. Shouldn't it closer to repr than 3-argument show?

julia> show(Day.(1:2))
Day[1 day, 2 days]

Note that the output of Dict{Day,Day} and Vector{Pair{Day,Day}} are not changed. It has been (and is):

julia> Dict(Day(1) => Day(2))
Dict{Day,Day} with 1 entry:
1 day => 2 days

julia> [Day(1) => Day(2)]
1-element Array{Pair{Day,Day},1}:
1 day => 2 days

What is the intended printing behavior of Day, Date, and alike in the containers?

See also: #30683
Issue 1:
I'm considering using amphtml with nextjs.

I have found that currently all custom scripts are disallowed (apart of special version of iframe, useless in this case) on amphtml.

The soloution could be turning off React on client side:

Prevent from adding react.js to page

Make sure all used components are SSR-only compatible

I have seen my next.js page working with js disabled in browser. But maybe I am missing something important to consider? What kind of difficulties may I approach?

[x ] I have searched the issues of this repository and believe that this is not a duplicate.

Issue 2:
can not swich react 16 to inferno, i try to clone https://github.com/zeit/next.js/tree/canary/examples/using-inferno but not work

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

Expected Behavior

Next.js 4 requires React 16

Current Behavior

Steps to Reproduce (for bugs)

next build

next start

Next.js 4 requires React 16

Context

Your Environment

Tech
Version

next
4

node
9

OS
osx

browser
chrome

etc
Issue 1:
No solid repro for this unfortunately. What I recall doing (Ubuntu 16.04):

Copying:

a {
background-color: var(--css-var);
}

ctrl+n

Save as "b.scss"

Paste

Issue 2:
Chrome has been supporting some nice improvements for the console, like:

console.group('foo'): starts to group console content

console.groupEnd('foo') stops the 'foo' group

As well as colors inside console text using c-like printf parameters where you may specify css styling:

console.log('Controller: %c%s', 'color:#8;', $route.current.$$route.controller);

This results in much more readable console output:

Since VSCode does not parse these layout/color instructions, the end result is barely readable:
Issue 1:
You can see it at 👇🏽

https://github.com/UltiRequiem/random_item/runs/5634376469?check_suite_focus=true

============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.

Platform: linux x8[6](https://github.com/UltiRequiem/random_item/runs/5634376469?check_suite_focus=true#step:8:6)_64
Version: 1.20.1
Args: ["deno", "coverage", "--unstable", "--lcov", "./cov"]

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: BadJson(Error("invalid unicode code point", line: 1, column: 1843))', cli/tools/coverage/mod.rs:1[7](https://github.com/UltiRequiem/random_item/runs/5634376469?check_suite_focus=true#step:8:7)3:57
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Issue 2:
Hi, I am having an issue where the output of deno coverage appears inaccurate. I was able to narrow it down to a minimal example; instructions below. I hope it is reproducible. The problem goes away if the emojis or the unused function h are removed. Removing a single emoji removes line 2 from the coverage report, but still inaccurately keeps line 3. I have not tested it with other emojis ☺️

This is the mod.ts file:

export default function () {
return "📣❓";
}

function h() {}

This is the mod_test.ts file:

import f from "./mod.ts";

Deno.test("test", () => {
f()
});

These are the shell commands:

deno test --coverage=.cov
deno coverage .cov
rm -rf .cov

This is the output of deno coverage. As far as I understand it, line 2 and 3 should be covered:

cover file:///home/mod.ts ... 25.000% (1/4)
2 | return "📣❓";
3 | }
-----|-----
5 | function h() {}

This is the output of deno --version:

deno 1.11.0 (release, x86_64-unknown-linux-gnu)
v8 9.1.269.35
typescript 4.3.2
Issue 1:
Electron version:1.3.4

Operating system:window 7

event.preventDefault();Can't stop the loading in the iframe events in the rendering process.

Issue 2:
It would be very useful to get events related to navigation:

will-navigate: when the webview is about to navigate (url have been changed but no requests have been emited yet). It could eventually be cancelled with event.preventDefault())

page-url-set: like page-title-set but for url. It is different than before-navigate because it should also handle anchor changes and HTML5 url set without navigating (with history.pushState and history.replaceState)

did-navigate: after the navigation has occured (i.e. when a new entry have been pushed to history and canGoBack/canGoForward/canGo... may have changed)
Issue 1:
run GODEBUG=gctrace=1 ./all.bash

go_bootstrap segv's because global addresses are not initialized yet in parsedebugvars() and we get a nil pointer exception.

Issue 2:
pclntab_test.go calls the assembler and linker:

go tool asm -o pclinetest.o pclinetest.asm
go tool link -H linux -E main -o pclinetest pclinetest.o

The link fails on plan9 with entry not text: main in Entryvalue (cmd/link/internal/ld/lib.go), where the LSym type was 26, translating to SXREF, but was expected to be STEXT.

This is the test that the plan9/amd64 builder is currently failing.

Versions

OS: 9front amd64

Go: head of master and 1.5.1
Issue 1:
Hi,

I have a bundle which uses PrependExtensionInterface to change configuration of other bundles as explained here http://symfony.com/doc/current/cookbook/bundles/prepend_extension.html

Altough the prepended configs are taken into account without problem in the application, the "php app/console debug:config" command shows the configuration as if no values were prepended.

Tested in the stable 2.6 release.

Issue 2:
When changing the config of a different Bundle, as described here:

http://symfony.com/doc/current/cookbook/bundles/prepend_extension.html

it works perfect as described.

But when I run "console config:debug" on the Bundle I have changed the configuration for, it does not show my changes via the prependExtensionConfig method and only shows the parameters from the config.yml

So in short: config:debug is not able to debug prependExtensionConfig statements.

PS: I am using Symfony 2.5.6
Issue 1:
In my JS project I have a few functions that look like this:

function doSomethingAsync(options) {
if (!options.someCondition) {
return Promise.reject('You are missing something');
}

return new Promise((resolve, reject) => {
// do something async and then resolve or reject
});
}

This causes every single line inside this function to be underlined in red (which is visually kind of distracting, especially if a function has 50+ lines). I think it would be best to just underline the return statements, instead of every line.

I can workaround this by moving the if condition inside the function body of the promise, but I'm wondering if this is really a valid error? I guess the problem here is that the return type of Promise.reject is Promise<void> while new Promise returns Promise<{}> (according to IntelliSense).

I figured that this error is coming from TypeScript and not VS Code, but I thought I'd still post it here.

Issue 2:
See attached screen shot, I have many snippets defined and they are the only entries that show up when I auto complete inside an object literal, which is weird imho:
Issue 1:
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

I expect When after input onChange ,that will detect the length and when bigger than zero the reducers will change to true and make the component change

Current Behavior

When after input onChange,every thing go well but the input lost focus

Steps to Reproduce (for bugs)

build a Appbar with redux , title with a Textfield ,onChange dispatch action to reducers

Appbar.js

<AppBar title={
<Textfield
value={...reducers1}
onChange={(e)=>{e.target.value.length>0?action2(true):action2(false)
....action1
}
}/>

build a New js file With Drawer (Inside have menu and menuItem)And SomeComponent

New.js

render(){return(
<div>
{bool(from reducers2)?<a/>:<b/>}
<Drawer
docked={false}
open={reducers3}
onRequestChange={(bool) =>action3(bool)}>
<Menu>
<MenuItem primaryText ="sth"/>
<Menu/>
</Drawer>
</div>)

3.And When you try to trigger reducers2 to make component changed from a to b thought action2

4.And the component will changed but the textfield will lost focus

5.but if you change menuitem to listitem ,that will avoid the problem occurs

Context

I try many way to solve that ,and at last , i find that should be some conflict between app bar input with some component , so i just try to delete and add some component to find out which component have problem,at last ,i found that menuitem have problem with that ,but instead of listitem can solve it

Your Environment

Tech
Version

Material-UI
0,20,0

React
15.6.1

browser
firefox 57.0.4

redux
3.7.2

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

Expected Behavior

When clicking the delete icon on chip, it only activates the onRequestDelete()

Current Behavior

When clicking the delete icon on chip, it activates both onRequestDelete() and onClick()

Steps to Reproduce (for bugs)

When I use Chip in my code, and test my code on Chrome, when I click the delete icon, it should only activate the onRequestDelete() action, but it also activates onClick(), it also happens when I copy the example and paste it in my code. Is there anyone knows why? Thanks a lot!

Context

Your Environment

Tech
Version

Material-UI
0.17.0

React
15.4.2

browser
Chrome

etc
Issue 1:
Challenge iterate-over-arrays-with-map has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Safari/602.1.50.

Please describe how to reproduce this issue, and include links to screenshots if possible.

Hi!

I did the coding as requested by using the .map notation; the result of the code looks good and the checkmarks show its passing the related tests;

The issue is, that the last check is not passed saying "You should only modify the array with map." although the code uses the .map notation;

May I ask you to have a look at the challenge - I've checked the forums and it seems there are currently more people with the same issue around without any solution...

Kind regards,

Toni

var oldArray = [1,2,3,4,5];

// Only change code below this line.

var newArray = oldArray.map(function(test){
test+=3;
return test;
});

console.log(newArray);

```

Issue 2:
As a user, the initial email address I used to create my account will remain my email address even if I have a different email address on GitHub.

As a user, when I visit the /signin path, I only see an option to sign up with email, or to click a link that says "click here if you already have an account" - which then takes me to a sign in view with both email and GitHub login options.

Disable the ability for GitHub OAuth to create a new account

Add the original email validation as being discussed in #15205

edit(@BerkeleyTrue): Updated user stories

edit(@raisedadead): Updated user stories for email validation
Issue 1:
type Dev
child::Ptr{Mod}
end

type Mod
parent::Ptr{Dev}
end

results: "ERROR: Mod not defined"

in c, i can do

typedef struct Mod Mod;

and use Mod *my_mod as opque type (until define Mod)

Issue 2:
Currently this doesn't work:

type Foo
a::Bar
end

type Bar
b::Foo
end

A nice way to handle it is to automatically insert forward declarations for all types defined in a file after lowering. That way as long as the types are in the same file it will Just Work™.