WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Nuri opened SPR-1779 and commented

The new FORM tags have acouple issues to be handled in my opinion:

no getter methods for the fields like onchange so derived tags can access

TagWriter needs to be public not package private so derived tags can override the write writeTagContent

some fields are protected and others are private, should be consistent

HTML readonly and disabled attributes should be added to HtmlInput Tags

TagSupport.release methods should reset local fields

I think these will help improve the library.

Nuri

Affects: 2.0 M3

Issue 2:
Karl Moore opened SPR-3411 and commented

Lots of people seem to be copying and pasting the XML documents for the Spring reference manual. There are several examples that look like this.

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

org.xml.sax.SAXParseException: SchemaLocation: schemaLocation value = 'http://www.springframework.org/schema/beans/spring-beans-2.0.xsd' must have even number of URI's.

People are reporting problems with this and changing to this fixes it.

<beans xmlns="http://www.springframework.org/schema/beans"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

As people are taking this out of the reference manual there are quite a few instances of this problem being raised.

Affects: 2.0.4

Issue Links:

#8056 Wrong bean configuration xml file header in Spring 2.0.4 PDF Reference Manual : missing data in xsi:schemaLocation ("duplicates")
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

When navigating from one page to another, the new page should have its focus set on <body> as the document root.

Current Behavior

It's not like this using next/link. Due to being a single page app the focus remains on the link that has been clicked.

The page scrolls to the top to give a visual indication of a page change, but the focus doesn't change.

Steps to Reproduce (for bugs)

I've created an example app to better demonstrate the problem:

https://nextjs-focus-problem-zishcmqatc.now.sh/

Its repo is here: https://github.com/osartun/example-focus-problem

Context

I've noticed the problem while navigating my site with a screen reader and keyboard input. My site has a Next page link at the bottom of the page (see here, fyi: I fixed the problem with a work around on my site, so you can't reproduce it there).

After clicking and navigating to the next page, tabbing through the links started at the bottom of the page where the Next page link was.

Proposed solution

next/link scrolls to the top of the page after a successful navigation.

https://github.com/zeit/next.js/blob/42e21288a91b2f58d90c3cc782766611de30630f/lib/link.js#L77

I think that should be extended with:

document.body.focus();

Issue 2:
The withRouter HOC passes undefined for the router prop in SSR with custom routes. The client render works as expected, causing a React server/client checksum error.

I use next-routes, but others on Slack are having the same issue when using app.render in server.js.

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

Context

I am attempting to style active links.

Your Environment

Tech
Version

next
v3.2.1

node
v8.4.0
Issue 1:
It seems that Android Studio is not required to do flutter dev (I'm trying to add support for Dart Code) but the output of flutter doctor makes it seem like it is:

[X] Android Studio (not installed)
• Android Studio not found. Download from https://developer.android.com/studio/index.html
(or visit https://flutter.io/setup/#android-setup for detailed instructions).

I think it'd be better to tweak this to make it clearer that it's optional. I was hoping to use flutter doctor in my IDE integration to help the user get set up, but it doesn't seem right to fail the check and ask them to install another IDE when they've specifically chosen to use Code for development.

Issue 2:
I use flutter mainly in conjunction with Android Studio. But I get warnings for IntelliJ Community Edition (which I use mainly for java work) and Visual Studio Code (which I use for other languages).

So I get output like:

[√] Flutter (Channel beta, v1.0.0, on Microsoft Windows [Version 10.0.16299.785], locale en-US)
[√] Android Studio (version 3.2)
[!] IntelliJ IDEA Community Edition (version 2018.2)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
[√] VS Code, 64-bit edition (version 1.28.2)
[!] Connected device
! No devices available

So is there a way to remove IntelliJ IDEA from that output?
Issue 1:
How can I insert functions via import into a .js file?

My source test script (test.js):

import anime from 'animejs';
import flatpickr from "flatpickr";

const eee = 'test-eee';
console.log(eee);

I use gulp-babel as JavaScript Transpiler.

My babel devDependencies.

"@babel/core": "^7.2.2",
"@babel/helper-module-imports": "^7.0.0",
"@babel/plugin-transform-modules-commonjs": "^7.2.0",
"@babel/preset-env": "^7.2.3"

My .babelrc:

{
"presets": [
[
"@babel/preset-env", {
"debug": true,
"modules": false
}
]
],
"plugins": [
[
"@babel/plugin-transform-modules-commonjs", {
"noInterop": true
}
]
]
}

After I started the gulp task I get the following:

"use strict";

var _animejs = require("animejs");

var _flatpickr = require("flatpickr");

var eee = 'test-eee';
console.log(eee);

But now animejs and flatpickr should be included in the file.

Issue 2:
Ran babel-doctor and am getting these errors. How would I fix this? Not sure where babel-runtime would be.

✖ Found these duplicate packages:

- babel-runtime x 23
- babel-template x 7
- babel-traverse x 14
- babel-types x 11
- babel-helper-define-map x 1
- babel-helper-function-name x 2
- babel-helper-replace-supers x 1
- babel-helper-regex x 1
- babel-messages x 15
- babel-helper-get-function-arity x 3
- babel-code-frame x 15
- babel-helper-optimise-call-expression x 1

Recommend running `npm dedupe`

✖ We found some outdated packages:

- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29

Found potential issues on your machine :(
Issue 1:
Hey all! I started using your type definitions for Hls.js and they're awesome! I ran into a couple of roadblocks with missing types including:

Missing from Hls.Events:

NON_NATIVE_TEXT_TRACKS_FOUND

CUES_PARSED

Missing from Hls:

audioTrack

audioTracks

streamController

manualLevel

levelController

removeLevel

Incomplete types:

Hls.Level

Please let me know if there's anything I can do to further clarify the details/assist in getting the types updated. Thanks!

Check the Infrastructure status updates thread for known issues.

Leave a message on the DefinitelyTyped Gitter.

If you know how to fix the issue, make a pull request instead.

I tried using the @types/xxxx package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @jgainfort @brookback @adripanico @Beraliv @drax98

If you do not mention the authors the issue will be ignored.

Issue 2:
I tried using the types-2.0 node/index.d.ts file in this repo and had problems.

After installing @types/node i got multiple errors:

(1,21): error TS2307: Cannot find module 'fs'.
(3,23): error TS2307: Cannot find module 'path'.
(80,41): error TS2304: Cannot find name 'process'.
(5,12): error TS2304: Cannot find name 'global'.
(6,5): error TS2304: Cannot find name 'require'.

On master branch version of node definitions everything is ok.

For example for fs module i have import like

import * as fs from 'fs';

For require and global i have no imports.
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/2085 on 2012-03-19 by @sandrotosi, assigned to unknown.

Hello,

running numpy test suite with python versions 2.7.3rc1 and 3.2.3rc1 (as available in Debian), returns this errors:

2.7.3rc1

Running unit tests for numpy
NumPy version 1.6.1
NumPy is installed in /build/buildd-python-numpy_1.6.1-6-i386-lYkcLV/python-numpy-1.6.1/debian/tmp/usr/lib/python2.7/dist-packages/numpy
Python version 2.7.3rc1 (default, Mar 10 2012, 00:01:06) [GCC 4.6.3]
nose version 1.1.2
.........................Debug memory block at address p=0xaa13400: API 'm'
8 bytes originally requested
The 3 pad bytes at p-3 are FORBIDDENBYTE, as expected.
The 4 pad bytes at tail=0xaa13408 are FORBIDDENBYTE, as expected.
The block was made by call #1026630 to debug malloc/realloc.
Data at p: a3 03 00 00 00 00 00 00
Fatal Python error: bad ID: Allocated using API 'm', verified using API 'o'

3.2.3rc1

Running unit tests for numpy
NumPy version 1.6.1
NumPy is installed in /build/buildd-python-numpy_1.6.1-6-i386-lYkcLV/python-numpy-1.6.1/debian/tmp/usr/lib/python3/dist-packages/numpy
Python version 3.2.3rc1 (default, Mar 9 2012, 20:32:02) [GCC 4.6.3]
nose version 1.1.2
/usr/lib/python3/dist-packages/nose/core.py:247: ResourceWarning: unclosed file <_io.TextIOWrapper name='/usr/lib/python3/dist-packages/nose/usage.txt' mode='r' encoding='ANSI_X3.4-1968'>
os.path.dirname(__file__), 'usage.txt'), 'r').read()
.........................Debug memory block at address p=0xa625310: API 'm'
8 bytes originally requested
The 3 pad bytes at p-3 are FORBIDDENBYTE, as expected.
The 4 pad bytes at tail=0xa625318 are FORBIDDENBYTE, as expected.
The block was made by call #1475913 to debug malloc/realloc.
Data at p: a3 03 00 00 00 00 00 00
Fatal Python error: bad ID: Allocated using API 'm', verified using API 'o'
Aborted

It might be something related to newer CPython versions, given testsuite executed on 2.6.7 works fine, but I'm asking you first, just to be sure.

Regards,

Sandro

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/1578 on 2010-08-10 by trac user mbudisic, assigned to unknown.

I am trying to build my entire Python stack from source on x86_64 machine under CentOS, GCC 4.5.0, with custom compiled ATLAS. Numpy builds but its test crash with SIGABRT signal, when "numpy.test()" is run.

This is output into Python shell before exit.

test_from_unicode (test_defchararray.TestBasic) ... Debug memory block at address p=0x17941d0: API 'm'
4 bytes originally requested
The 7 pad bytes at p-7 are FORBIDDENBYTE, as expected.
The 8 pad bytes at tail=0x17941d4 are FORBIDDENBYTE, as expected.
The block was made by call #814353 to debug malloc/realloc.
Data at p: ff fe 00 00
Fatal Python error: bad ID: Allocated using API 'm', verified using API 'o'

I'm attaching full gdb backtrace and pystack outputs.
Issue 1:
Is your feature request related to a problem? Please describe.

Possibility to use a shared material for customDepthMaterial while changing uniforms on a per object basis

Describe the solution you'd like

add support for onBeforeRender to WebGLShadowMap

You would expect onBeforeRender to work just like it does for normal object rendering.

Issue 2:
Object3D.onBeforeRender not triggered when depthmaterial for shadows are rendered.

renderBufferDirect method does not trigger the onBeforeRender function

Three.js version

Dev

r96

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)
Issue 1:
When I perform

import stuff from './stuff';

in babel-node CLI, it silently works but trying to access stuff on the following lines throws a ReferenceError: stuff is not defined.

Issue 2:
When using an ES6 import at the babel-node REPL, it fails.

Example sources:

// foo.js
import bar from './bar'
console.log(bar)

// bar.js
exports.baz = 1

babel generates the following code for foo.js:

'use strict';

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

var _bar = require('./bar');

var _bar2 = _interopRequireDefault(_bar);

console.log(_bar2['default']);

Passing the generated code from babel to iojs works fine:

$ babel foo.js | iojs
{ baz: 1 }

If you run the same module by hand at the REPL, or pipe it in, it fails:

$ cat foo.js | babel-node
> import bar from './bar'
'use strict'
> console.log(bar)
repl:3
console.log(bar);
^
ReferenceError: bar is not defined
at repl:3:13
at Object.exports.runInThisContext (vm.js:54:17)
at _eval (/home/tomxtobin/npm/lib/node_modules/babel/bin/_babel-node:54:13)
at REPLServer.replEval (/home/tomxtobin/npm/lib/node_modules/babel/bin/_babel-node:136:14)
at bound (domain.js:254:14)
at REPLServer.runBound [as eval] (domain.js:267:12)
at REPLServer.<anonymous> (repl.js:309:12)
at emitOne (events.js:77:13)
at REPLServer.emit (events.js:166:7)
at REPLServer.Interface._onLine (readline.js:208:10)

But if you pass the file as an argument to babel-node it works fine:

$ babel-node foo.js
{ bar: 1 }

If you keep everything in the REPL on the same line, it also works fine:

> import bar from './bar'; console.log(bar)
{ baz: 1 }
undefined

Versions:

$ babel --version
5.2.16
$ iojs --version
v2.0.0
Issue 1:
At flask.testing:81, there exists the block below added in e97253e:

if 'json' in kwargs:
...
# push a context so flask.json can use app's json attributes
with app.app_context():
kwargs['data'] = json_dumps(kwargs.pop('json'))

This enables the werkzeug client to use app or blueprint defaults for the JSONEncode to use. However this invokes an app context and consequently (and surprisingly) the handlers handlers registered to the app context lifecycle.

Since this behavior only happens when the json kwarg is used on the test client, it can lead to surprising behavior in tests that make use of json and inconsistent behavior between tests that do and do not use json. A more expected behavior would be to have consistent behavior both when and when not using the json kwarg.

I also do not see any other usages of the app_context context manager in flask.testing, so this doesn't seem like a pattern that should be expected (not that I'm well versed in Flasks internal patterns, so take that for what its worth).

I discovered this because Flask-SQLALchemy registers an app context teardown that removes the session and unexpectedly rolls back a session mid testcase. I imagine this behavior is not unique to Flask-SQLAlchemy.

I propose removing the app_context context handler surrounding the json_dumps call, since

this was the behavior prior to e97253e

the general flask pattern is already to wrap the higher level calls in an app context, so there is unlikely to be significant impact

json_dumps already degrades gracefully when there is no app context

the behavior change is constrained to the testing utilities

I can submit the PR for this if there's appetite, since it's just a couple of lines.

Python3, flask 1.02.

Issue 2:
The new blueprint template lookup scheme where the templates folder is just added to the searchpath instead of doing some weird stuff with the names as before. The documentation has to be clearer about that.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

https://material-ui.com/api/card-header/

CardHeader allows to put in the title, subheader, and avatar but no way to add action button.

Yes, i can use workarounds, create some css etc but i believe it should be solved elegantly with action property.

Issue 2:
Form elements like a <Checkbox/> don't preserve their state, if they live in a expandable/collapsible <CardText expandable={'true'}>. This is due the content of any expandable is completely removed from the DOM and recreated later again.

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

Expected Behavior

The state of form elements should be preserved in expandable <Card/>s.

Current Behavior

The state of form elements is not preserved in expandable <Card/>s.

Steps to Reproduce (for bugs)

Given the following:

<Card initiallyExpanded={true} >
<CardHeader
showExpandableButton={true}
actAsExpander={true}
/>
<CardText expandable={true}>
<Checkbox />
</CardText>
</Card>

Check the checkbox

Collapse the card

Expand the card

Checkbox is unchecked

Context

I try to design a huge form, which is separated into sections. Each <Card/> is a section. The sections should be collapsible.

Your Environment

"dependencies": {
"@types/material-ui": "^0.18.4",
"@types/react": "^16.0.25",
"@types/react-dom": "^16.0.3",
"@types/react-redux": "^5.0.13",
"@types/webpack": "^3.8.1",
"awesome-typescript-loader": "^3.4.0",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-preset-env": "^1.6.1",
"material-ui": "^0.19.4",
"node-sass": "^4.7.2",
"react": "^16.1.1",
"react-dom": "^16.1.1",
"react-redux": "^5.0.6",
"redux": "^3.7.2",
"redux-devtools-extension": "^2.13.2",
"sass-loader": "^6.0.6",
"style-loader": "^0.19.0",
"styled-components": "^2.2.3",
"ts-node": "^3.3.0",
"typescript": "^2.6.1",
"typings-for-css-modules-loader": "^1.7.0",
"webpack": "^3.8.1"
}
Issue 1:
I'm confused about the customizing and updating operations in Bootstrap.

let's say that i customize some less variables from the customizer page to change colors, sizes ...etc. than i want to update my Bootstrap to the next future version.

have i customize the settings again? because the updates will take me back to the default settings and if i decide to customize it again i should remember my last settings!

let me know about some tips to avoid this hard work, and do an XML file that will be downloaded with the customizer package in order to use it again with newer versions.

Issue 2:
The new site has the awesome customization screen, but unless you manage your bookmarks like a champ, there's no clear mapping between which custom builds on your system correspond to which URLs on the site. It would rock socks if the URL of the custom build was in the header comment in the generated source files.

For example, In bootstrap.css, you could have something like:

/*!
* Bootstrap v3.0.0
* Custom build generated by http://getbootstrap.com/customize/?id=6277349
*
Issue 1:
Each time I do Cmd-Shift-P and Install Extensions it takes ages for the list of extensions to come up. Like literally a minute or more.

And it doesn't seem to cache the result. It's like it has to download them each time, even if it's only a second or two after I last pulled it up.

Frustrating - like using yum in Fedora used to be.

apt-get in Ubuntu would cache results and was always more perfomant and responsive, with a slight cost in synchronisation with the latest available packages.

It would work for me if it downloaded the latest package list when requested - and continued to download it even when it loses focus and closes. And then uses that cached list until the program is restarted, or does the same background load if it is opened again after ten minutes.

That way I have a delay the first time I open it, but I can keep working. At the moment I have to literally stop working on_anything and wait for the list to load.

Issue 2:
ext install is slow with slow internet connection to fetch extensions list, is this possible cache the results?

or use git instead of fetch list every time (vsoGalleryService.ts)?
Issue 1:
Electron Version:

8.0.0

Operating System:

Windows 10

Last Known Working Electron version:

Expected Behavior

In most cases, desktopCaptuerer has been working fine, with the expected source names including Entire Screen in a single-monitor setup and Screen 1 and Screen 2 when there are two.

Actual Behavior

However, in certain two-monitor setups, the source names only include Entire Screen instead of the expected Screen 1 and Screen 2. So desktopCapturer is only able to record one of the screens. I am not sure what differentiates these setups from others. OS is Windows 10 across the board.

To Reproduce

Screenshots

Additional Information

Issue 2:
Electron version: 1.7.10

Operating system: Mac 10.13.1

Expected behavior

可以启动adb service通过adb devices 获取到设备id

Actual behavior

A JavaScript error occurred in the main process

Uncaught Exception:

Error : spawn ENOTDIR

adb放置在resources/mac/adb，代码写在src/index.js中，整体的目录结构如下：

resources // adb二进制文件
src //源代码
.babelrc
package.json

代码：

import os from 'os';
import path from 'path';
import childProcess from 'child_process';
const spawn = childProcess.spawn;
const PLATFORM = {
MAC: 'mac',
WINDOWS: 'windows',
UNKNOWN: 'unknown'
}
function fetchPlatform(){
switch(os.platform()){
case 'darwin':
return PLATFORM.MAC;
break;
case 'win32':
return PLATFORM.WINDOWS;
break;
default:
return PLATFORM.UNKNOWN;
break;
}
}
const platform = fetchPlatform();
const rootDir = path.resolve(__dirname,'../');
const RESOURCES = path.resolve(rootDir,'resources')
const _adbPath = path.resolve(RESOURCES,platform);
function fetchAdbPath(){
switch(platform){
case PLATFORM.MAC:
return path.resolve(_adbPath,'adb');
break;
case PLATFORM.WINDOWS:
return path.resolve(_adbPath, 'adb.exe');
break;
default:
return false;
break;
}
}
export function start_server(callback){
let adbExecPath = fetchAdbPath();
if (adbExecPath){
let adb = spawn(adbExecPath,['start-server']);
adb.stdout.on('data', function (data) {
console.log('stdout: ' + data);
});
adb.stderr.on('data', function (data) {
console.log('stderr: ' + data);
});
adb.on('exit', function (code) {
typeof callback === 'function' && callback(code);
});
adb.stdin.end();
} else {
throw new Error('Not Found Android Debug Bridge');
}
}

How to reproduce

将上述代码做为一个npm包，假设叫adb-test-a，然后在electron工程里，npm install adb-test-a，调用start_server，必抛错误：Error : spawn ENOTDIR。
Issue 1:
It has something to do with this hack:

/* Core language traits */

#[cfg(notest)] pub mod kinds;
#[cfg(notest)] pub mod ops;
#[cfg(notest)] pub mod cmp;

// Make core testable by not duplicating lang items. See #2912
#[cfg(test)] extern mod realcore(name = "core", vers = "0.6");
#[cfg(test)] pub use kinds = realcore::kinds;
#[cfg(test)] pub use ops = realcore::ops;
#[cfg(test)] pub use cmp = realcore::cmp;

Issue 2:
fn f(x: i32) -> i32 {
f(x)
}

fn main() {
println!("{}", f(0));
}

0
Program ended.

http://is.gd/46GQ4K

Note we get a stack overflow as expected(!?) with -O0 (observation by mboeh)