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

nightly (1.9.0-dev.20160429)

Code

class AAA {
fieldA: string;
}

class BBB {
fieldB: string;
}

class AA {
data: AAA;
}

class BB {
data: BBB;
}

class A {
d: AA;
}

class B {
d: BB;
}

function main(x: A | B) {
for (let i of [1, 1]) {
if (x instanceof A) {
x.d.data.fieldA;
} else if (x instanceof B) {
x.d.data.fieldB; // Not compiles here.
}
}
}

Expected behavior:

To access to the fieldB field of BBB class inside of block } else if (x instanceof B) {

Actual behavior:

The compiler raises the follow error: TS2339: Property 'fieldB' does not exist on type 'AAA'..

The behavior in the version 1.8.10 is correct.

Issue 2:
TypeScript Version:

1.8.6

Visual Studio Version:

2015 Enterprise Update 1

Code

"use strict";

function giveString(): Promise<string> {
return new Promise((resolve, reject) => {
resolve("Yay");
});
}

async function main() {
let awaited = await giveString();
console.log(awaited);
}

main();

Expected behavior:

No IntelliSense Errors, since I think this is valid for ECMAScript 6 (which is set as target version in the Project Properties), and when I choose start, it compiles and runs fine, too.

Actual behavior:

Instead, I get multiple IntelliSense errors including

TS1311 Async functions are only available when targeting ECMAScript 6 and higher.

TS2304 Cannot find name 'Promise'.
Issue 1:
Does a way exist to allow a user to edit or delete a Datasource created in a (PostgreSQL) database with the Upload CSV feature, but not allowing him/her to edit or delete Datasources that have not been created by that same user?

For example, admin user could have created some demo Datasources. Also, some users may have created some useful Datasources.

A new registered user could have permissions to upload CSV and create a new Datasource, but shouldn't be able to delete or edit existing ones. Is that already feasible?

Issue 2:
Does a way exist to allow a user to edit or delete a Datasource created in a (PostgreSQL) database with the Upload CSV feature, but not allowing him/her to edit or delete Datasources that have not been created by that same user?

For example, admin user could have created some demo Datasources. Also, some users may have created some useful Datasources.

A new registered user could have permissions to upload CSV and create a new Datasource, but shouldn't be able to delete or edit existing ones. Is that already feasible?
Issue 1:
📝 Provide a description of the new feature

I have been asked on a couple of occasions to find a way to stop Caps lock from get hit accidentally, or stop it from being used completely.

So a way to set Cap lock to a "Do Nothing" option in Keyboard Manager would be useful for for this, Just use the Shift key to Uppercase a letter as needed.

Thanks for the Great work you all have been doing so far on this project.

If you'd like to see this feature implemented, add a 👍 reaction to this post.

Issue 2:
📝 Ability to "Split" a Fancy Zones zone in 2 (vert/horiz).

Similar to how you can merge 2 zones, maybe if you only select 1 zone, give it a 'split' option for vertical / horizontal, or even a little popup for setting width/height via pixels and an info box showing it's current size?

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Issue 1:
To quote 4.19.1 of the spec:

4.19.3 The <, >, <=, >=, ==, !=, ===, and !== operators

These operators require one or both of the operand types to be assignable to the other. The result is always of the Boolean primitive type.

Any
Boolean
Number
String
Other

Any
Boolean
Boolean
Boolean
Boolean
Boolean

Boolean
Boolean
Boolean

Number
Boolean

Boolean

String
Boolean

Boolean

Other
Boolean

Boolean

This has probably unintended consequences in the case of union types:

var x: string | number = "hello";
var y: number = 10;
var z: string | number = -1;

if (x < y && x <= z) {
}

The question is: is this still desirable behavior?

@ahejlsberg @RyanCavanaugh @danquirk @mhegazy @JsonFreeman

Issue 2:
TypeScript Version:

1.8.10

Now that VS Code can nicely log the traffic to the tsserver in an output window a failed request should return a stack trace if the request failed because of an exception. This would ease tracking down problem.

The TS team could also consider setting up an AppInsight end point for logging. The TS extension in VS Code could then log telemetry data to that end point.
Issue 1:
I create menu in render process. But the console.log below is not executed for top level menu items.

var remote = require('remote'),
Menu = remote.require('menu'),
MenuItem = remote.require('menu-item');

var tmp = [{
label: 'menu item',
click: function() {
console.log('menu item clicked'); // not executed
}
}];

var menu = Menu.buildFromTemplate(tmp);
Menu.setApplicationMenu(menu);

Issue 2:
It looks like there are plenty of options like visible, enable, etc in the menu-item but I couldn't find any way to do something with the menu after creating it. One of many failed attemps..

var menu = Menu.buildFromTemplate(template);
menu.items[3].visible = false;
menu.items[3].enable = false;
Issue 1:
React version: 16.13.0

eslint-plugin-react-hooks version: 4.0.2

When I upgraded from ^2.0.0 to 4.0.2, this bug started happening:

Steps To Reproduce

When you optionally chain, there is a bug with exhaustive-deps:

With no optional chaining, there is no issue

With optional chaining, we see an eslint error

The error is

React Hook useEffect has a missing dependency: 'test?.includes'. Either include it or remove the dependency array. eslint(react-hooks/exhaustive-deps)

Which auto fixes to:

(in addition to being incorrect, this causes issues with the eslint eslint@typescript-eslint/unbound-method rule)

Issue 2:
Please add these files with full license text to the NPM distribution packages. Unfortunately, from the legal standpoint, simply specifying the name of the license is not enough, because it's unclear where to get the EXACT (legally binding) text of that license. This is a major roadblock on our way to using the module, seriously.

Thanks a lot for the great code, and thanks in advance for fixing this blocker.
Issue 1:
In this example, a line has been removed after line 13:

Issue 2:
You can't select multiple lines and press Cmd-shift-D and have them duplicated unlike Sublime or Textmate. In fact duplicate doesn't work if there is anything selected and duplicated only single line.

I expect:

To be able to duplicate multiple lines.

To duplicate current line regardless of the selected text. Or just duplicate the selection, but not silently ignore the command.

From support/b89ae7f4a02211e3886a0ac80a315a00#C3
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.5.3

Operating System version: xxx

Java version: xxx

Step to reproduce this issue

configurators 里面的参数不能动态生效

Expected Result

动态生效

Actual Result

不生效

Just put your stack trace here!

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.3

Operating System version: macOs sierra

Java version: 1.8

Steps to reproduce this issue

define two dubbo protocols with different port, like below.

@Configuration
public class DubboConfiguration {

@Bean
public ProtocolConfig config1() {
ProtocolConfig config = new ProtocolConfig();
config.setId("dubbo1");
config.setName("dubbo");
config.setPort(20880);
return config;
}

@Bean
public ProtocolConfig config2() {
ProtocolConfig config = new ProtocolConfig();
config.setId("dubbo2");
config.setName("dubbo");
config.setPort(20770);
return config;
}
}

specify dubbo bean id "dubbo1" as Service annotation protocol, but not spring bean name "config1".

@Service(protocol = "dubbo1")

startup the provider and see output log, and see application failed to start without dubbo1 protocol.

***************************
APPLICATION FAILED TO START
***************************

Description:

A component required a bean named 'dubbo1' that could not be found.

If we are specify config1 as the protocol, the application can start up succeed. When ServiceBean initialize, it will get reference bean from spring, cannot recognize dubbo properties.

@service(protocol = "config1")

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

The application start up succeed.

Actual Result

The application start up failed without dubbo1 protocol.
Issue 1:
Often I'll have Code open and then try to open a new file either through code.bat, "Open With Code", or even from the Start Menu and nothing will happen. I assume this has been reported several times before, but couldn't find anything as there are lots of issues reported here.

VSCode Version: 1.0.0

OS Version: 10.14335

Steps to Reproduce:

Not 100% sure of the steps to get this to happen every time

Have code running already with some files open (1 or more instances of it)

Right click on a file and select Open with Code

Nothing starts up - no additional code.exes show up in Task Manager

If I then close all of the active Code windows and try again, things work.

This means that I then lose my active files :(

Issue 2:
VSCode Version: 0.10.11

OS Version: Windows 10

Steps to Reproduce:

Open VS Code

In Explorer, double click a file that's associated with VS Code or right click and use "Open in Code".

Often, nothing happens unless I close the previous instance of Code. Sometimes, it works.
Issue 1:
https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-prn2/v/973915_407301976052310_852666674_n.jpg?oh=a5b563d74a06911ff7f752a397a4df52&oe=51C2C120&__gda__=1371717602_c1ad37717bc1f318d637c94e233a8b41

Issue 2:
When looking at the carousel example on my iPhone, and open the responsive menu, the carousel indicators are not hidden and are visible (bleed through) inside the menu.
Issue 1:
Sorry if this issue exists already, I searched but couldn't find anything.

Issue: Currently I have atom 0.123.0 installed on windows 8. If I launch atom from the start menu, Help>Version shows 0.123.0. If I launch atom by opening a file from Windows Explorer, Help>Version shows 0.115.0. This may be the first version of atom I installed, but I think it was a few versions before that (110-113, I'd guess).

Expected Behavior: Regardless of how atom launches, the most current version should launch.

Attempted Solutions: I've tried telling windows to Open With atom from a few different locations, including the shim in /ProgramData/chocolatey/, and the shortcut on the start menu, which I know launches the right version.

Any assistance is appreciated. I'm currently in between projects, so I am not writing much code, so I don't mind trying any suggestions, debug, etc, even if it kills things for a little bit.

Issue 2:
I've just updated Atom via Chocolatey to 0.123. Version still shows 0.116.
Issue 1:
For some small example data, on my system (and one other), operator.lshift and operator.rshift randomly return incorrect results.

PC 1:

macOS 10.13.2

Anaconda (latest)

Python 3.6.4

Numpy 1.13.3

PC 2:

Same as PC 1, except Numpy 1.14.0

New Conda env

Third config:

PC 1, but with system Python 2.7 and a clean VENV

Numpy 1.14.0

Simple test (only fails on some data) and doesn't fail on third configuration. But it can be reproduced reliably.

import numpy as np

if __name__ == '__main__':
x = np.load('x.npy')
y = np.load('y.npy')

print(x.shape) # (2, 3, 4)
print(y.shape) # (2, 3, 4)

print(x.shape == y.shape) # True

print(x[0, 2, 0] << y[0, 2, 0]) # 1476395008
print((x << y)[0, 2, 0]) # 0

print(x[0, 2, 0] << y[0, 2, 0] == (x << y)[0, 2, 0]) # False

Attaching example data/project on which this happens (produced with np.save):

numpy_test.zip

I strongly suspect this isn't really a Numpy bug, but maybe Python 3 related or possibly related to the compiler Anaconda uses.

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/1856 on 2011-06-02 by trac user klasj, assigned to unknown.

The bitshift operations, both right and left cycles when they are shifted more bits than

the length of the datatype. This happens for both int32 and int64 but not for int16,

unsigned integers works as expected. In the example below version 1.6.1 is used but

this is also present in at least 1.5.0.

In [1]: import numpy as np

In [2]: np.right_shift(np.int32(8),32)

Out[2]: 8

In [3]: np.right_shift(np.int64(8),64)

Out[3]: 8

In [4]: np.right_shift(np.int16(8),16)

Out[4]: 0

In [5]: np.left_shift(np.int32(8),32)

Out[5]: 8

In [6]: np.left_shift(np.int64(8),64)

Out[6]: 8

In [7]: np.left_shift(np.int16(8),16)

Out[7]: 524288

In [8]: np.version.full_version

Out[8]: '1.6.1.dev-08953ea'
Issue 1:
I suspect most of the plugins don't work with noconflict mode, but I haven't tested them.

I have bootstrap and jquery ui on the same page. jQuery ui starts, and creates $.fn.tooltip. Then bootstrap starts and overwrites it, then I do:

$.fn.bsTooltip = $.fn.tooltip.noConflict();
$('.my-element').bsTooltip()

But, because of this:

$.fn.tooltip = function ( option ) {
return this.each(function () {
var $this = $(this)
, data = $this.data('tooltip') // HARDCODED TOOLTIP STRING
, options = typeof option == 'object' && option
if (!data) $this.data('tooltip', (data = new Tooltip(this, options)))
if (typeof option == 'string') data[option]()
})
}

and this:

var Tooltip = function (element, options) {
this.init('tooltip', element, options) // HARDCODED TOOLTIP STRING
}

It fails, because the getOptions function is getting everything based on the this.type, which is set by the Tooltip class as 'tooltip'...including the tooltip data, but that's hardcoded to 'tooltip' in the first code block.

Issue 2:
Does exists a method to avoid the conflict between Bootstrap's Tooltips and jQuery UI Tooltip method?

I know that I can download jQuery UI without the tooltip component ... but if I would have this component too ... is possible to have tooltips working together?

Bootstrap 2.2.2

jQuery UI 1.9.2

( sorry for the bad english :-) )
Issue 1:
Can we possible add a feature to the Index command that gives the option of returning the source of the existing item on failure to update/insert. The failure would probably be caused by a version conflict. I have scenarios were multiple (external) nodes need to update the same key with different values and possibly the same value. If I get the source back it would remove the need for me to have to query for it on failure to figure out what state I am in.

Issue 2:
So I was wondering if it would be possible to add a feature to UPDATE for returning the old source of a document that exist before the update is applied. This would be useful in scenarios where you want to update a document and possibly take additional actions if the update caused certain values in the document to change. The current alternative is to do a GET operation before the update, but then you can run into possible timing issues. Not mention you take the additional network call to perform the GET.
Issue 1:
Here is a classic example of creating a React class in es6:

export class Counter extends React.Component {
componentWillReceiveProps(nextProps, nextContext) {
...
}

shouldComponentUpdate(nextProps, nextState, nextContext) {
...
}
render() {
...
}
}

There are a few things I find bothersome with the lifecycle method names:

Problem

Including 'component' in the method name is redundant

Since we are extending a class, Liskov substitution tells us that we the subclass we are implementing should implement the behaviors of Component. Since we know our class is a Component, saying componentWillReceiveProps is redundant, we could just as well say willReceiveProps.

This redundancy may seem trivial, but it is more typing, more boilerplate, and thus, more error-prone.

The name is non-orthogonal

componentWillMount

componentDidMount

componentWillReceiveProps

shouldComponentUpdate <- 😕

componentWillUpdate

componentDidUpdate

componentWillUnmount

I end up typing componentShouldUpdate more often than I would like to admit. At best, this is a distraction, at worst, it is a subtle source of bugs.

Proposed Solution

Add alias methods fore the lifecycle methods

componentWillMount ----> willMount

componentDidMount ----> didMount

componentWillReceiveProps ----> willReceiveProps

shouldComponentUpdate ----> shouldUpdate

componentWillUpdate ----> willUpdate

componentDidUpdate ----> didUpdate

componentWillUnmount ----> willUnmount

Now, this will obviously require a deprecation cycle as we need to warn users that are using these method names for other reasons. It seems to be somewhat common (a quick search on Github shows many people doing this).

Conclusion

Although this may seem like bike-shedding, I think this is important and will save time/agony for the long future of React users (old and new).

❤️

Issue 2:
Pardon the stupid joke.

I was curious what was the rationale (if there is one) behind having 'component' in the lifecycle methods. To me it seems unnecessary as they are clearly in the context of a component. What would make sense to me though is grouping the lifecycle methods like this:

class Example extends React.Component {

lifecycle: {
willMount() {...},
didMount() {...},
willReceiveProps() {...},
//especially weird that shouldComponentUpdate is the only method that has 'component' in the middle
shouldUpdate() {...},
willUpdate() {...},
didUpdate() {...},
willUnmount() {...},
}

}
Issue 1:
http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/511/steps/test/logs/stdio

tests::rustpkg_library_target
tests::test_install_git
tests::test_package_version

I am going to xfail these for now, because they're causing a lot of buildbot failures.

Issue 2:
WIth rust 0.6 master, and incoming, I get an internal compile error:

error: internal compiler error: node_id_to_type: no type for node `expr 0 as int id=13)`

This is a simple test case that reproduces the error:

pub mod buffer_binding {
use super::BufferType;

pub struct Context { handle : BufferType }
}

pub enum BufferType {
ArrayBuffer = 0 as int
}

Strangely, the error only happens when the enumeration is defined after the submodule.
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.19041.264]
PowerToys version: 0.18
PowerToy module for which you are reporting the bug (if applicable): Run

Steps to reproduce

search for a window that is open

start menu shortcut appears before the WindowWalker window that is currently open. For example, "Whatsapp desktop" appears before the actual "whatsapp desktop" window that's open.

Note: shortcut doesn't work in some cases when the window is already open. Perhaps combine in these situations?

Expected behavior

I should have the open window show up ahead of the app shortcut.

Screenshots

Issue 2:
Summary of the new feature/enhancement

It would be more useful if already running programs are shown first in the results list in the quick launcher (like the old WindowWalker). Or maybe an option to change the priority.

Proposed technical implementation details (optional)

In the results list, the running programs should be first in the list.
Issue 1:
Hey,

This is just feedback really, but the map progress that used to display at the top of the map page with each section and how far you were through was really handy because you could quickly see which sections you still needed to do and how far through the challenges you were on each section and overall.

In the new map layout you have to expand each section and scroll through to see which checkpoints are not ticked off, which is more time consuming and it is easy to miss the odd one.

It makes it harder to know how far you have progressed.

Issue 2:
I like the new look and layout of the site, but think this is a missing feature.

I would like to see the same kind of simple overview of my progress (using progress bars) and also quick links to different sections of the curriculum at the top like I could before.
Issue 1:
If I do a search in page for \n\s+href="\#" it finds a couple of results. If I then do a global search for the same thing, there are no results. The options are the same: regex, case insensitive.

Issue 2:
In a normal Find \s matches a line break but in Project Find it does not.

file1

obj.method1().method2()

file2

obj
.method1()
.method2()

With a normal Find and RegEx turned on obj[\s]*\.method1 will find a match in both files, but a Project Find will only find file1
Issue 1:
Dropdowns try to center their chosen value when the popup opens up. If the dropdown is placed on top of the screen (or the list of values is long enough), that's not possible. So you get a scrolling animation while the popup settles.

This is jarring at best and annoying at worst since it delays user action (can't tap on any value until the animation ends [typically a second]).

It would be great if Flutter can precompute whether the centering is possible and if not prevent the scrolling.

Issue 2:
See gif, this is in the Buttons > Dropdown demo.
Issue 1:
[Enter steps to reproduce below:]

Open Atom

Update Atom

Crash

Atom Version: 0.175.0

System: Mac OS X 10.10

Thrown From: Atom Core

Stack Trace

Uncaught Error: EEXIST, file already exists '/Users/taylorlapeyre/.atom/storage'

At /Users/taylorlapeyre/.atom/packages/auto-update-packages/node_modules/fs-plus/node_modules/mkdirp/index.js:74

undefined

Commands

Config

{
"core": {},
"editor": {
"fontFamily": "inconsolata-g",
"fontSize": 14
}
}

Installed Packages

# User
auto-update-packages, v0.2.1
language-haml, v0.15.0
language-x86, v0.1.0
scroll-past-end, v0.1.9

# Dev
No dev packages

Issue 2:
[Enter steps to reproduce below:]

...

...

Atom Version: 0.165.0

System: Mac OS X 10.10.1

Thrown From: Atom Core

Stack Trace

Uncaught Error: EEXIST, file already exists '/Users/812studio/.atom/storage'

At /Applications/Atom.app/Contents/Resources/app/node_modules/mkdirp/index.js:74

undefined

Commands

-0:02.4 project-manager:toggle (input.hidden-input)
-0:00.0 core:confirm (input.hidden-input)

Config

{
"core": {
"themes": [
"brownerd-ui",
"brownerd-syntax"
],
"ignoredNames": [
".git",
".svn",
".DS_Store"
],
"disabledPackages": [
"term",
"linter-scss-lint",
"linter-tidy",
"linter-jshint",
"autocomplete-plus",
"linter-csslint"
]
},
"editor": {
"showIndentGuide": true,
"fontFamily": "Source Code Pro",
"lineHeight": 1.5,
"fontSize": 14,
"softWrap": true
}
}

Installed Packages

# User
ScssBundle, v0.4.0
Stylus, v0.4.0
auto-update-packages, v0.2.1
brownerd-syntax, v0.1.0
brownerd-ui, v0.1.0
color-picker, v1.2.6
editorconfig, v0.2.2
emmet, v2.3.0
less-autocompile, v0.3.3
linter, v0.9.0
linter-js-yaml, v0.1.3
minimap, v3.4.9
project-manager, v1.14.1
tabs-to-spaces, v0.8.0
terminal, v0.28.0

# Dev
No dev packages
Issue 1:
I think that the modal plugin would benefit from the following enhancement:

when the remote option is specified (either using JS or data-remote attribute), the content should be loaded into .modal-content instead of .modal-body .

This would allow folks to customize the modal-header (including title) and footer as well and allow more flexibility and reuse of code...

What do you think?

Issue 2:
I want to reuse the modal for different URL's. Now I cannot set the Header/Footer + a bigger modal gets double scrollbars now :-(

Is there a way to replace the modal completely so I can remote load the modal-header/body and footer?