WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Do you want to request a feature or report a bug?

bug

What is the current behavior?

Webpack is a dependency on this Angular project, and when I attempt to run the project on Windows 7 (this is important as it seems to be a problem on Windows 7 only!), I get the following error message. As it turns out, it is an error in Webpack:

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.context: The provided value "c:\\web-my\\insurance" is not an absolute path!
- configuration.output.path: The provided value "c:\\web-my\\insurance\\dist" is not an absolute path!

I fixed it quickly by modifying line 20 in schemas\ajv.absolutePath.js from:

const passes = expected === /^(?:[A-Z]:\\|\/)/.test(data);

to:

const passes = expected === /^(?:[A-Za-z]:\\|\/)/.test(data);

I am not sure if this is the best solution, though.

If the current behavior is a bug, please provide the steps to reproduce.

Checkout the angular project at https://github.com/AngularClass/angular2-webpack-starter and attempt to run in on Windows 7. Then see your console.

What is the expected behavior?

No errors. The paths should work, even on Windows 7.

If this is a feature request, what is motivation or use case for changing the behavior?

N/A

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.

The error occurs on Windows 7 (this is probably the key information), node v6.9.2, npm v4.0.5, webpack 2.3.1.

Issue 2:
Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Webpack fails with error on any path, e.g.:

configuration.context: The provided value “d:\projects\project\src” is not an absolute path!

If the current behavior is a bug, please provide the steps to reproduce.

Windows 10

Git Bash

Node v6.9.1

npm v4.0.0

Create a webpack project and specify a context path, e.g. context: path.resolve(__dirname, 'src')

run webpack with the specified config.

What is the expected behavior?

Webpack uses the path as specified.

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.

Windows 10

Git Bash

Node v6.9.1

npm v4.0.0
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
yes

RFC?
yes/no

Symfony version
2.8

There was recently a change to the UniqueEntity Validator: symfony/doctrine-bridge@40941a3

This has changed it's behaviour. It used to "return" if any value was null. Now, it continues if a value is null.

This means that if you have 1 null value and 1 non null value, it only matches the criteria to the single value.

I think this is quite a big BC break. Would love to get some feedback on this change.

We now have validation that is failing when we use 2 fields (one has a value and the other is null). We need it to only validate if both are not null.

Issue 2:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
2.8.17

Scenario: I'm validating an entity like this

$validator->validate($device, [
new UniqueEntity([
'fields' => ['accountId', 'tenantUuid'],
'em' => $provisioningEm
])
]);

If accountId happens to be null, UniqueEntityValidator will now exclude it from the constraint list (since commit 1e3421d ), failing later on because $criteria[$fields[0]] is an invalid array access: fields[0] is the string "accountId", which is not in $criteria.

Reverting lines 88-94 to the version before the commit linked above fixes the issue.
Issue 1:
Bug report

What is the current behavior?

Im using Wallpaper

and I Get a node: urls error

App • ERROR • Renderer in node:util

UnhandledSchemeError: Reading from "node:util" is not handled by plugins (Unhandled scheme) .
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.

This might be a duplicate, but i dont understand the other issues because they were'nt providing a clear solution

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

Other relevant information:

webpack version: 5

Node.js version: 16.x.x

Operating System: MacOS

Additional tools: Quasar, VueJs

Issue 2:
Feature request

What is the expected behavior?

Ability to force bundling of a module

What is motivation or use case for adding/changing the behavior?

It is impossible to dynamically import a module using import(moduleName) with moduleName being a variable

How should this be implemented in your opinion?

In settings, there should be an array of bundled modules, the modules within it will be bundled even if they're not required in the project itself

Are you willing to work on this yourself?

no
Issue 1:
See

flutter/packages/flutter_tools/lib/src/commands/analyze_once.dart

Line 93
in
befe019

// De-duplicate the dartanalyzer command output (https://github.com/dart-lang/sdk/issues/25697).

dart-lang/sdk#25697 was fixed at dart-lang/sdk@eae2bf2

Now you can replace issues with an int. Nice!

Issue 2:
Steps to Reproduce

Flutter create a new project. Set the Team in Xcode and run the project from Xcode on a connected device. This results in : Thread 1: signal SIGPIPE . It is possible to make the app run by pressing the Continue program execution button in the debug area about 3 times.
Issue 1:
Code Sample, a copy-pastable example if possible

from io import StringIO
df = pd.read_csv(StringIO('''Date,A\n8/23/2017,a\n8/22/2017,b\n8/24/2017,c'''), parse_dates=['Date'])
print(df)
print(type(pd.datetime(2017, 8, 22).date()))
print(type(df['Date'][1]))
df_sub = df[df['Date'] == pd.datetime(2017, 8, 22).date()]

Error returned

Traceback (most recent call last):
File "<pyshell#72>", line 1, in <module>
df_sub = df[df['Date'] == pd.datetime(2017, 8, 22).date()]
File "C:\Python35\lib\site-packages\pandas\core\ops.py", line 877, in wrapper
res = na_op(values, other)
File "C:\Python35\lib\site-packages\pandas\core\ops.py", line 806, in na_op
y = libindex.convert_scalar(x, _values_from_object(y))
File "pandas\_libs\index.pyx", line 494, in pandas._libs.index.convert_scalar
File "pandas\_libs\index.pyx", line 509, in pandas._libs.index.convert_scalar
ValueError: cannot set a Timestamp with a non-timestamp

Problem description

I just upgraded to pandas version '0.21.0rc1'. The df_sub line above used to work in a prior version. Should a Timestamp and a datetime.date be comparable like it used to in a previous version? Not a huge issue for me but my intent is to just report it in-case it requires attention.

Expected Output

Date A
1 2017-08-22 b

Helpful Links

May be a similar or related issue: #17965

convert_scalar location: https://github.com/pandas-dev/pandas/blob/master/pandas/_libs/index.pyx#L494

Output of pd.show_versions()

[paste the output of pd.show_versions() here below this line]

INSTALLED VERSIONS

commit: None

python: 3.5.2.final.0

python-bits: 64

OS: Windows

OS-release: 7

machine: AMD64

processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel

byteorder: little

LC_ALL: None

LANG: None

LOCALE: English_United States.1252

pandas: 0.21.0rc1

pytest: None

pip: 9.0.1

setuptools: 20.10.1

Cython: 0.25.2

numpy: 1.13.3

scipy: 0.19.1

pyarrow: None

xarray: None

IPython: 5.2.2

sphinx: None

patsy: 0.4.1

dateutil: 2.6.1

pytz: 2017.2

blosc: None

bottleneck: None

tables: 3.3.0

numexpr: 2.6.2

feather: None

matplotlib: 2.0.0rc2

openpyxl: None

xlrd: 1.0.0

xlwt: None

xlsxwriter: 0.9.6

lxml: None

bs4: 4.5.3

html5lib: 0.9999999

sqlalchemy: 1.1.11

pymysql: None

psycopg2: None

jinja2: 2.9.5

s3fs: None

fastparquet: None

pandas_gbq: None

pandas_datareader: None

Issue 2:
This should probably work

In [16]: df = pd.DataFrame({'A':[pd.Timestamp('20130101'), np.nan]})

In [17]: df
Out[17]:
A
0 2013-01-01
1 NaT

In [18]: pd.Timestamp('20130101').to_pydatetime()>=df.A
Out[18]:
0 True
1 False
Name: A, dtype: bool

In [20]: pd.Timestamp('20130101').to_pydatetime().date()>=df.A
ValueError: cannot set a Timestamp with a non-timestamp
Issue 1:
I found the 2 semi colons on the screen during the on going html & css and bootstrap series in the front end course.

I have randomly selected the below 2 waypoint links and the screenshots for the reference:-

1 - http://www.freecodecamp.com/challenges/waypoint-house-our-page-within-a-bootstrap-container-fluid-div

2- http://www.freecodecamp.com/challenges/waypoint-add-borders-around-your-elements

Wondering about these semi colons. Of course, they aren't any obstacles during the course. Thought it might a confusion for a newbie.

Issue 2:
Two semicolons at the top and bottom of the phone screen.
Issue 1:
Bug Report

Current Behavior

Unhandled promise rejection TypeError:traget is not iterable!

Input Code

Expected behavior/code

Environment

Babel version(s): 7.4.5

Possible Solution

Additional context/Screenshots

other

I have seen the same problem 7395

and the pr 7400

but it didn't solve the problem.

I build my project with webpack ,i fix it as the picture show

9872

Issue 2:
Bug Report

Current Behavior

Dynamic imports are not working in IE10. The following error is shown in the console: "Unhandled promise rejectionTypeError: Target is not iterable". @babel/preset-env is used with core-js@3. .browserslistrc contains ie <= 10.

Input Code

https://github.com/jorenvanhee/dynamic-imports-with-preset-env-test

Run npm i && npm run build and visit /index.html in IE10.

import('./answer').then((module) => {
console.log(module.default);
});

Expected behavior/code

42 should be logged in the console.

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

https://github.com/jorenvanhee/dynamic-imports-with-preset-env-test

Environment

Babel version(s): 7.4.3

Node/npm version: Node 10.15.1/npm 6.5

How you are using Babel: loader

Additional context/Screenshots
Issue 1:
std::f32 doc page has impl Float for f32 at the top and at the bottom.

The bottom one seems to have more elements though it's not clear why.

Their styling is the same so it's not obvious if they should mean 2 different things.

Something should change so either they don't look like misshapen clones or it's clear what they mean.

Issue 2:
Here's an example I just got:

src/anthill/execution/kind.rs:124:32: 125:29 error: cannot infer an appropriate lifetime due to conflicting requirements
src/anthill/execution/kind.rs:124 dictionary.name_to_kind.find(&name)
src/anthill/execution/kind.rs:125 };
src/anthill/execution/kind.rs:124:32: 124:55 note: first, the lifetime cannot outlive the expression at 124:32...
src/anthill/execution/kind.rs:124 dictionary.name_to_kind.find(&name)
^~~~~~~~~~~~~~~~~~~~~~~
src/anthill/execution/kind.rs:124:32: 124:55 note: ...due to the following expression
src/anthill/execution/kind.rs:124 dictionary.name_to_kind.find(&name)
^~~~~~~~~~~~~~~~~~~~~~~
src/anthill/execution/kind.rs:124:32: 125:29 note: but, the lifetime must be valid for the method call at 124:32...
src/anthill/execution/kind.rs:124 dictionary.name_to_kind.find(&name)
src/anthill/execution/kind.rs:125 };
src/anthill/execution/kind.rs:124:32: 124:55 note: ...due to the following expression
src/anthill/execution/kind.rs:124 dictionary.name_to_kind.find(&name)
^~~~~~~~~~~~~~~~~~~~~~~

Now, I'm developing some experience with lifetimes so I have some intuition about what I did wrong. And I appreciate the effort that went into this error message! But still, saying "the lifetime can't outlive the expression X in location Y because it must be valid at the function call at exactly the same expression X in the same location Y" - that's not exactly explaining things in a way that is understandable to a newcomer (which I still am).

Perhaps there's a better way to phrase the problem, and possibly eliminate the duplications?
Issue 1:
Add Font Awesome Icons to all of our Buttons

https://www.freecodecamp.com/challenges/add-font-awesome-icons-to-all-of-our-buttons

Issue Description

In this challenge as you know the buttons for Like, Info and Delete you add cool icons to the end of the text in each button. I am wondering why for the trashcan on the delete button it goes off the previewer page and thus you cannot see it. Makes it look not clean is this a bug or could there be something I am missing about how the .col-xs-4 work?

Browser Information

Browser Name, Version: Chrome

Operating System: Windows 10

Mobile, Desktop, or Tablet: Desktop

Your Code

<div class="row">
<div class="col-xs-4">
<button class="btn btn-block btn-primary"><i class="fa fa-thumbs-up"></i> Like</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-info">Info<i class="fa fa-info-circle"></i></button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-danger">Delete<i class="fa fa-trash"></i></button>
</div>
</div>

Screenshot

Issue 2:
Forewarning, this may be bike-shedding worthy....

Workspace

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36. (Chrome on Windows 7)

Setting

The CatPhoto is where you make an web page and one component is adding three buttons like below.

Problem

But then you will eventually make it into something like this below.

Notice that the red Delete button is squished and on the side (this is mostly a desktop problem; mobile user won't have the same issue -- see below)

Mobile Version

Solution

So I propose two things:

Change the "Delete" button into a "Edit" button so it'll fit on the button better.

This is fairly easy. You'll just need to change this in the challenge seeds starting with the challenge Warn your Users of a Dangerous Action where the button is added.

Then change the challenges up until the last one on Line up Form Elements Responsively with Bootstrap.

You could also change the icon if appropriate.

Add new challenge to add in making all three of those buttons also have the class btn-sm to make the text inside the button not seem all smushed.

This one will require a little more effort in making an entirely new challenge, which may be unnecessary.

Example:

<button class="btn btn-block btn-info btn-sm"><i class="fa fa-info-circle"></i> Info</button>

If the proposed changes were made, the finished app will look like this:
Issue 1:
VSCode Version: 1.1.1

OS Version: Windows 10

Steps to Reproduce:

launch a command line with admin privileges

from this command line, type "code .". Observe VS Code open

Launch a command line without admin privileges

from this command line, type "code .".

Expected:

VS Code opens in a new window

Actual:

Nothing, no error message, no indication of anything.

Issue 2:
VSCode Version: 1.1.1

OS Version: Windows 10 1511 (10586.318)

Steps to Reproduce:

Close all Code instances, then run Code as administrator (a new blank Code instance with administrator right)

In File Explorer, right click a text file and Open with Code, nothing will happen.

Note: there are multiple other ways to trigger this issue, the above repro is just an example.

Note 2: If you already have a code instance running without administrator running, the above issue will not get triggered. That's why the very first step is to close all Code instances.
Issue 1:
"@types/react": "16.7.13" works.

"@types/react": "16.7.14" and "@types/react": "16.7.18" (latest) throws this error.

Using "typescript": "3.2.2".

Issue 2:
I tried using the latest react-router/index.d.ts file in this repo and had problems.

[ x] 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).

[ x] I want to talk about react-router/index.d.ts and history.d.ts.

The authors of that type definition are cc/ @ngbrown

Sergey Buturlakin https://github.com/sergey-buturlakin, Yuichi Murata https://github.com/mrk21, Václav Ostrožlík https://github.com/vasek17, Nathan Brown https://github.com/ngbrown

When I install react-router I get the following errors

ERROR in /Projects/REACT/rangle/typescript-react-redux-starter/typings/browser/ambient/react-router/index.d.ts
(32,22): error TS2305: Module 'HistoryModule' has no exported member 'LocationDescriptor'.

ERROR in /Projects/REACT/rangle/typescript-react-redux-starter/typings/browser/ambient/react-router/index.d.ts
(111,30): error TS2305: Module 'HistoryModule' has no exported member 'LocationDescriptor'.

ERROR in /Projects/REACT/rangle/typescript-react-redux-starter/typings/browser/ambient/react-router/index.d.ts
(211,31): error TS2305: Module 'HistoryModule' has no exported member 'LocationDescriptor'.

Steps to reproduce

Clone https://github.com/rangle/typescript-react-redux-starter and get it running, i.e. npm install; npm run dev

run node_modules/typings/dest/bin.js install react-router --ambient --save

run npm run dev

Expected Behavior

Typings throw no errors

Actual Behavior

Typings compilation throws three errors

I can see from the code that history.d.ts doesn't export the LocationDescriptor type, but it's used in the react-router type definition.
Issue 1:
Python requests library changes URL in some situations.

it removes some parameters

for example

url = "https://www.example.com/test?"

it removes ? in the request when I see it in Burp proxy

it changes to

https://www.example.com/test

because I'm pentesting web applications I need to send for example quotation mark too and other things which will be removed by library automatically.

I need following path:

after ? must be empty

Issue 2:
As spending about 10 minutes figuring out how to log raw request/responses in requests, I eventually came across the following SO article, which references an obscure part of the documentation.

It would be nice if there was a clear section in the docs which explains how to do this, as it's not very clear and took quite a bit of searching. A quick copy/paste (or a complete move) would suffice. Thoughts?
Issue 1:
Win10 Pro OS:

Ok I'm no rocket scientist but I installed the new "PowerToys.msi" file and when I opened the program from the taskbar icon using "Settings" the box opens up to a blank screen. I have only 3 options to choose from the taskbar icon..."Settings, About and Exit".

Rebooted thinking that would help...NOT

Removed and re-installed...NOT

Stumped on why it does not work...

I know it's a beta but I was hoping for a bit more...

Issue 2:
Environment

W10 Pro V1903 Build 18362.295

PowerToys: 0.11.0

Settings Screen

Windows build number: [run "ver" at a command prompt]
PowerToys version:
PowerToy module for which you are reporting the bug (if applicable):

Steps to reproduce

Just installed and attempted to open settings. Screen is totally blank/empty.

I 'repaired - same issue.

Uninstalled, reboot and reinstall - same issue.

Expected behavior

Expect to see config options

Actual behavior

Blank window.

Screenshots

https://i.imgur.com/a7oWKgp.png
Issue 1:
Tested with latest tip.

ENODATA is not supported on e.g. FreeBSD but ENOATTR is supported more
widely. In Linux it is a synonym for ENODATA.

The attached patch makes ENOATTR work on Linux.

Attachments:

err.diff (1448 bytes)

Issue 2:
by m@mihasya.com:

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. in a method, create an array using literal syntax
2. take that array's slice using [:] syntax
3. return the slice
4. try to access the slice from caller

Simplest reproducing program, courtesy of dominikh (Dominik Honnef) who helped me look
at this:
http://play.golang.org/p/Yl6EXET0fc

My original program, reproducing roughly the steps that triggered this in a real project
(much more elaborate):
http://play.golang.org/p/s1WGRen-te

What is the expected output?
0 3 foo
1 3 bar
0 3 foo
1 3 bar

What do you see instead?
0 3 foo
1 3 bar
0 3 foo
1 4457167 [string too long]

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
Linux 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 2013 x86_64
x86_64 x86_64 GNU/Linux

Which version are you using? (run 'go version')
1.1 (dominikh confirms this happens on tip as well)

Please provide any additional information below.
This is a strange and elusive bug; essentially, when using a slice that is produced
using the [:] notation on an array as a return value, the caller gets a bogus pointer.
When I initially came across this bug, I was getting "invalid memory address or nil
pointer dereference" panics in the json Marshal function when trying to serialize
the return value (I was testing an HTTP framework, so I just had a method return the
slice of [2]string{foo, bar}). When I tried to printf the value it was trying to pass to
Marshal, it printed a bunch of binary data with strings that I recognized from other
parts of the program, obviously causing serious concern.

Below are 2 programs that will reproduce this in various forms. dominikh from #go-nuts
helped me look at this and actually narrowed it down a bit further than my initial
repro, which just reproduced the sequence of events that happened in my program. His
notes below:

"These are all the details I could find:

- It breaks when using method values; it doesn't break when using
function values.
- It breaks when allowing inlining; it doesn't break when not allowing
inlining
- It breaks both with Go 1.1 and Go tip, so that makes bisecting it
somewhat easier."

Additional "fun" info:
- if you call printf("%p", foo[:]) in the "broken" method in the
second program, it "fixes" the issue; I'm guessing this tips off the compiler
somehow. I discovered this while trying to see if I could demonstrate the pointer having
the wrong address
Issue 1:
Electron version: 1.6.12 (electron-prebuilt-compile)

Operating system: Windows 10

Expected behavior

I am writing application in react. I want to create eventListener, which will send by ipcRenderer url of first webview, to another. Also some links should be blocked. I tried a lot of evens, but finally ended with 'will-navigate' and event.preventDefault().

Actual behavior

Will-navigate doesn't work at all. It doesn't display even console logs. I checked other events. F.g did-navigate or did-navigate-in-page and from these events I received respones.

How to reproduce

ReactDOM.findDOMNode(this).addEventListener('did-navigate-in-page',(event) =>{ console.log("did-navigate-in-page")});

ReactDOM.findDOMNode(this).addEventListener('did-navigate',(event, url) =>{ console.log("did-navigate")});

ReactDOM.findDOMNode(this).addEventListener('will-navigate',(event, url) =>{ console.log("will-navigate")})

And responses are:

did-navigate-in-page
did-navigate

Issue 2:
for some reason, the will-navigate event handler does not fire from the renderer process, i have only tested for the will-navigate event listener, am not sure if this is the behaviour of other webContents event listeners

Expected behavior

the webContents will-navigate event handler should fire and prevent the window from navigating

Actual behavior

the webContents will-navigate event does not fire, instead the window navigates

How to reproduce

main.js

const { BrowserWindow, app } = require("electron");

app.on("ready", () => {
let win = new BrowserWindow({});

win.on("close", () => {
win = null;
app.quit();
});

win.webContents.openDevTools({
mode: "detached"
});
win.loadURL(`file://${__dirname}/index.html`);
});

index.html

<!doctype html>

<html>
<head>
<title> Webcontents from renderer proces </title>
</head>
<body>
<p> Drag and Drop Something Here</p>

<script>
const { remote: { getCurrentWindow } } = require("electron");
const webContents = getCurrentWindow().webContents;
console.log(webContents);
webContents.on("will-navigate", (evt,filePath) => {
evt.preventDefault();
console.log(filePath);
});
</script>
</body>
</html>

Electron version: 1.7.11

Operating system: Gnu/Linux