WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Editing node.js (JavaScript) files (after opening a folder), where a file requires another module (same folder), if you want to see the definition of a symbol (F12 or right-lick "Go to Definition") stopped working with latest update Version 0.10.10 (0.10.10)

I use this feature frequently. It used to work fine.

Issue 2:
From @justin-romano on February 3, 2016 21:56

It just does nothing unless its a local variable.

I would have suspected this would present a list of all possible matching items in the source.

Its almost as if its not even indexing the code. I am working in a source base of millions of lines of JS so it would be nice.

Products like resharper and visual assist do this better.

Copied from original issue: microsoft/vscode#2683
Issue 1:
When using a date field, say

->add('endAt', 'date', array(
'format' => \IntlDateFormatter::LONG,
'years' => range(date('Y'), date('Y') + 10),
))

all options are translated:

State
Locale
Domain
Id
Message Preview

missing
fr
forms
2015
2015

missing
fr
forms
2016
2016

missing
fr
forms
2017
2017

missing
fr
forms
janvier
janvier

missing
fr
forms
1
1

missing
fr
forms
2
2

missing
fr
forms
3
3

I don't know if it's really an issue but I don't like seeing red in the web profiler!

Issue 2:
I use BirthdayType (for which parent DateType so the problem is the same).

->add('birthday', 'birthday', [
'label' => 'my_custom.translation_message',
'required' => true,
'format' => 'dd MMMM yyyy',
// 'translation_domain' => false,
// 'choice_translation_domain' => false,
])

On Symfony 2.7.3 I get gazillion (more than 100) missing message warnings.

If I uncomment choice_translation_domain – the option is not recognized.

If I uncomment translation_domain – the warnings disappear, but my label does not get translated.

I believe, DateType and BirthdayType should have choice_translation_domain so that label does get translated while there would not be warnings for each year in the widget (ChoiceType).
Issue 1:
Andreas Senft opened SPR-759 and commented

I just had a look at the implementation of AopUtils#getAllInterfacesForClassAsList.

I remember that I usually implemented similar methods using a Set. If multiple classes in a hierarchy implement the same interfaces the resulting list would yield duplicate entries.

Beside the cosmetic effect it could also affect performance when operations on the returned interfaces will be performed multiple times.

Maybe it's not a too common case, but I see it from time to time. So I would suggest to use a Set here.

Regards,

Andreas

Affects: 1.1.5

Issue 2:
George Baxter opened SPR-8737 and commented

Java has a concurrency issue when examining annotations on a method or method parameters (synchronized around a jam-wide weak hash map). In high concurrency environments, this becomes a bottleneck. The only current solution is to cache the annotations.

Currently, the MethodParameter class could cache the annotations based on the declaring class, the method and the parameter index. We might have been able to extend MethodParameter class to provide this caching, but unfortunately, the object is instantiated directly within the HandlerMethodInvoker.resolveHandlerArguments(..) (private method).

Currently a critical issue for us.

Affects: 3.0.5, 3.0.6

Issue Links:

#13936 monitor contention at org.springframework.core.MethodParameter.getParameterAnnotations() ("duplicates")
Issue 1:
Since upgrading to 2.3, I am now receiving occasional errors where a session record insert is failing because of a duplicate primary key. I have narrowed down the stack trace to the PDOSessionHandler's read() function.

It seems that the session ID doesn't exist at the initial SELECT statement, but does exist by the time the INSERT is attempted. This isn't happening with all users -- only a select few. Could this be because of simultaneous requests being submitted?

I can't seem to figure out any explanation for how this could happen. It seems that the record is being created between the SELECT and INSERT statements. Perhaps this issue always existed, but the addition of the PDO exceptions is now exposing it.

Any suggestions or information is appreciated. Thank you!

Issue 2:
Recently I've had the need to override Profiler (in order to export the hash used), and EnvParametersResource (in order to do a clever dotenv integration).

I'm finding that overriding these classes requires me to copy quite a few private variables.

e.g.

class EnvParametersResource implements SelfCheckingResourceInterface, \Serializable
{
/**
* @var string
*/
private $prefix;

/**
* @var string
*/
private $variables;

Could I request that these private member variables be made protected to allow people to easily extend these classes without a lot of copy/paste or code duplication?
Issue 1:
Version

2.6.13

Reproduction link

https://codesandbox.io/s/quizzical-wildflower-mp7tm

Steps to reproduce

create a component with scoped slot

put at least 2 children inside this scoped slot

make the first child conditionally rendered with V-IF directive

The V-IF directive in the first child will control the rendering of all the other siblings inside the scoped slot. This only happens if the first child inside the scoped slot uses V-IF - or if it is an HTML comment.

What is expected?

The V-IF should only affect the tag/component it is applied to - but not the siblings.

What is actually happening?

If the first child in any scoped slot is an HTML comment (and V-IF with a falsy argument actually renders HTML comment) - all the rest children in the scoped slot are not rendered.

The function "normalizeScopedSlot" in vue.runtime.esm.js for v2.6.13 is slightly different (and buggy) than v2.6.12.

In 2.6.12 the rendering is skipped if there is only 1 child in the scoped slot and this child is a comment.

However, in 2.6.13 there is no check for the number of children and the rendering of all children is skipped if the first child is both (a) comment and (b) not an async factory.

Issue 2:
Version

2.6.13

Reproduction link

https://codesandbox.io/s/recursing-dream-0zdf5?file=/src/App.vue

Steps to reproduce

<template>
<ComponentWithSlot>
<template #slot-name>
<span v-if="false">...</span>
<span>This is shown in 2.6.12, but not in 2.6.13.</span>
</template>
</ComponentWithSlot>
</template>

What is expected?

The text after the v-if node should be shown.

What is actually happening?

It was shown in 2.6.12, but isn't shown in 2.6.13 anymore.
Issue 1:
the syntax checker and mobile viewer have had compounding issues for me as a work through this tutorial in firefox.

this is how this challenge loaded without my changing any of the text. The mobile view shows duplicated content which doesn't match the code

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-create-a-bootstrap-headline has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

The sidebar (for clarity, I am referring to the area shown in the attached screenshot) seems to scroll with a mind of its own. I have noticed this on several of the Bootstrap challenges (I did not see this on any HTML challenges). This is usually just a minor nuisance, but can be quite annoying when you are trying to hit a button to go to the next challenge (or submit a bug!).

In addition, the cursor seems to be off in the text editor portion. Typing and selecting text can be off by one line.
Issue 1:
Today I've started JS chunk and I can see every assert for every step. Asserts still have "grayed-out" class, but are visible.

For example here: http://freecodecamp.com/challenges/waypoint-declare-string-variables

Issue 2:
Challenge Confirm the Ending has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0.

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

My code:

function confirmEnding(str, target) {
// "Never give up and good luck will find you."
// -- Falcor

//return str.endsWith(target); - more elegant way
/*
if(str.endsWith(target)){
return true;
}
else{
return false;
} */

var str2 = str.substr(str.length - target.length);

if(str2 === target){
return true;
}
else{
return false;
}
}

confirmEnding("Bastian", "n");

Hello FCC,

I noticed that this challenge have some very simple solution which uses endsWith(http://www.w3schools.com/jsref/jsref_endswith.asp) JavaScript method to resolve this problem, so I would like to point that this challenge dosen't make sense when you can do it in one line of code. I'm sorry if I posted this on wrong place or bothering someone too much.

Kind regards,

Nemanja
Issue 1:
I used

@-ms-viewport{

width : auto

}

It seems to fix the issue, tested on Lumia 920 GDR3

Issue 2:
I am using a navbar on windows phone 8 (lumia 920) and it doesn't seem to collapse at all (in landscape or portrait).

I tried removing the following from bootstrap.css (as per a suggestion on a previous bug report):

@-ms-viewport {

width: device-width;

}

which fixed the navbar, but obviously I don't know what knock-on effects that might have.

Slicc
Issue 1:
Attempting to load any ts file into a worker where an import map is used fails within the worker. It results in a relative import path error.

We extensively use import maps in our project to keep it clean and prevent having a lot of relative paths "../../../" in our imports.

Issue 2:
Steps to reproduce

Create the following files under the same directory:

import_map.json

{
"imports": {
"fmt/": "https://deno.land/std@0.55.0/fmt/"
}
}

color.ts

import { red } from "fmt/colors.ts";

console.log(red("hello world"));

main.ts

new Worker(new URL('./color.ts', import.meta.url).href, {type: 'module'})

Run this command:

deno run --allow-read --importmap=import_map.json --unstable main.ts

Expected output

hello world

Actual output

error: Uncaught Error: relative import path "fmt/colors.ts" not prefixed with / or ./ or ../ Imported from "file:///color.ts"

Environment

deno 1.1.3
Issue 1:
There are 82 files in the information at the top but certainly not 82 files in the result. I cannot find the plugin that provides this functionality so have posted here.

Issue 2:
I'm looking for a word in a project. I know the first result doesn't have what I want. I hide the first result, but there are no more results. I need to scroll to trigger the rest of the results to be fetched, and then I can hide the first listing.

/cc @benogle
Issue 1:
Bug report

Describe the bug

The with-ant-design-less example is lack off hot reloading and client-side rendering for css

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

Hot reloading problem:

Go to 'asserts/antd-custom.less'

Change the primary color

Save

The new primary color is not applied via hot reloading

Client-side rendering for css:

Create a new page called "test.js" and less file called "test.less" then define simple css in it (e.g p {color: red})

Import style "test.less" file into "test.js" and define a paragrah tag for testing

Create a Link component inside index page to navigate to test page

When navigating from index.js to test.js, although the test.less is merged into style.css file in /_next/static/style.css, the paragraph tag was not applied red color . If I refresh the test page, everything works fine

Expected behavior

I really appreciate if anyone can tell me the appropriate way to use Ant design in Next.js with custom less style with hot reloading, client-side rendering by answering the questions below:

What should I use to create an Ant Design Layout for all pages (the new implementation _app.js or _document.js?). I've tried to use this example (using _document.js and add ant design style into style tag), but the ant design icon part not working.

I want to import .less style for each page, e.g pageA has pageA.less ,page B has pageB.less, how can I do that ?

System information

OS: [e.g. Ubuntu]

Browser (if applies) [e.g. chrome]

Version of Next.js: [e.g. 6.0.3]

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

Expected Behavior

Current Behavior

Steps to Reproduce (for bugs)

Context

Your Environment

Tech
Version

next

node

OS

browser

etc
Issue 1:
Julia-0.3.0-prerelease-d2d9bd93ed for OSX 10.6 64-bit crashes instantly at launch on an iMac model iMac10,1 with Mac OS X 10.6.8 processor Intel Core 2 Duo 3.06 GHz

I don't have any debug tools on this machine but I think it is an illegal instruction.

Julia 0.2 for OSX 10.6 64-bit works.

Issue 2:
julia> versioninfo()
Julia Version 0.3.0-prerelease+1358
Commit cb26338* (2014-02-01 14:56 UTC)
Platform Info:
System: Windows (i686-w64-mingw32)
CPU: Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz
WORD_SIZE: 32
BLAS: libopenblas (DYNAMIC_ARCH NO_AFFINITY)
LAPACK: libopenblas
LIBM: libopenlibm

julia> a=[1:5]
5-element Array{Int32,1}:
1
2
3
4
5

Then calling a[a.>3] crashes the REPL on 32-bit Vista.

I have also tried this win32-prerelease on 64-bit Win7 and it works fine.
Issue 1:
Numpy amax method raises warning when input is an array that contains NaN. I do not recall that numpy did this in previous versions. Also, from the documentation, it says that amax shall propagate NaN, so I would expect it to return NaN without raising a warning.

Reproducing code example:

import numpy as np
b = np.arange(5, dtype=float)
b[2] = np.NaN
np.amax(b)

NaN is returned, as expected, but a RuntimeWarning is issued, which I did not expect.

Error message:

C:\Python\WinPython\WPy-3710\python-3.7.1.amd64\lib\site-packages\numpy\core_methods.py:26: RuntimeWarning: invalid value encountered in reduce return umr_maximum(a, axis, None, out, keepdims)

Numpy/Python version information:

1.14.6 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)]

Issue 2:
numpy.maximum now raises a RuntimeWarning when encountering a NaN, but the documentation says it propagates NaNs and even goes to the trouble of saying exactly how they are propagated, which makes it seem like it shouldn't give a warning.

Reproducing code example:

In [1]: import numpy as np

In [2]: x = np.array([1, 2, np.nan], dtype=float)

In [3]: np.maximum(x, x)
/home/tudor/anaconda3/bin/ipython:1: RuntimeWarning: invalid value encountered in maximum
#!/home/tudor/anaconda3/bin/python
Out[3]: array([ 1., 2., nan])

Numpy/Python version information:

In [6]: import sys, numpy; print(numpy.__version__, sys.version)
1.15.1 3.6.6 |Anaconda custom (64-bit)| (default, Jun 28 2018, 17:14:51)
[GCC 7.2.0]
Issue 1:
Pkg.clone supports cloning a package via a registered package name. If you supply a package name that is not registered the following occurs in Julia v0.4

julia> Pkg.clone("Foo")
INFO: Cloning Foo from Foo
fatal: repository 'Foo' does not exist
ERROR: unlink: no such file or directory (ENOENT)
in unlink at fs.jl:102
in rm at file.jl:59
in clone at pkg/entry.jl:162
in clone at pkg/entry.jl:186
in anonymous at pkg/dir.jl:31
in cd at file.jl:22
in cd at pkg/dir.jl:31
in clone at pkg.jl:34

In Julia v0.5.0-rc3 this succeeds with no warning or error:

julia> Pkg.clone("Foo")
INFO: Cloning Foo from Foo
INFO: Computing changes...

Issue 2:
.julia/v0.5 » julia
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.4.1 (2015-11-08 10:33 UTC)
_/ |\__'_|_|_|\__'_| |
|__/ | x86_64-apple-darwin15.0.0

julia> Pkg.clone("WTF")
INFO: Cloning WTF from WTF
fatal: repository 'WTF' does not exist
ERROR: unlink: no such file or directory (ENOENT)
in unlink at fs.jl:102
in rm at file.jl:59
in clone at pkg/entry.jl:162
in clone at pkg/entry.jl:186
in anonymous at pkg/dir.jl:31
in cd at file.jl:22
in cd at pkg/dir.jl:31
in clone at pkg.jl:34

_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.5.0-dev+1351 (2015-11-18 15:34 UTC)
_/ |\__'_|_|_|\__'_| | jcb/findlib/2277b09* (fork: 1 commits, 0 days)
|__/ | x86_64-apple-darwin15.0.0

julia> Pkg.clone("WTF")
INFO: Cloning WTF from WTF
INFO: Computing changes...

julia> using WTF
ERROR: ArgumentError: WTF not found in path.
Run Pkg.add("WTF") to install the WTF package
in require at ./loading.jl:321
in eval at ./boot.jl:263
Issue 1:
System information (version)

OpenCV => :4.0.1 Android pack

Detailed description

When using Opencv Javacamera2View , I get a green color on the camera preview. When i switch to JavaCameraView, the camera diplays well.

Issue 2:
System information (version)

OpenCV => 3.2.0

Operating System / Platform => RHEL 7

Compiler => GCC 6.2.1 20161010 (for GNAT Pro 17.1 20170104)

Detailed description

When doing a matrix operation, if the output matrix is of an incompatible type the results will neither be converted to the correct type, nor will any warning/error be thrown.

One of these things should happen because the current behavior leads to some very dangerous and difficult to find bugs.

Steps to reproduce

cv::Mat testmat1(3,3, CV_16S, cv::Scalar(0));
cv::Mat testmat2(3,3, CV_32F, cv::Scalar(0));

testmat1.at<int16_t>(1,1) = 50;

cv::blur(testmat1, testmat2, cv::Size(3,3));

std::cout << testmat2.at<float>(1,1) << std::endl;

This doesn't give the expected output of 5.55555556.
Issue 1:
Currently the scheduler through the Threads.@spawn macro will assign to random thread #'s, including the primary thread. There may be times where there is a "traffic cop" activity on Thread 1 that can be impacted if a heavy-computational (in essence, blocking) task is put onto that thread. It would be nice if there was a way to cordon off Thread 1 from spawning in those cases.

Issue 2:
If I run the following code in a REPL (v0.4.5), I find that the REPL becomes very unresponsive. It will take many seconds to respond to just typing a few letters. In contrast, if I run the same code in an iJulia notebook, the iJulia notebook remains responsive to typing, even if it takes longer to evaluate things. It would be nice if the REPL remained responsive as well.

function dowork(n)
t = 0.0
for i=1:n
t+= @elapsed sort(rand(10^5))
yield()
end
t
end

for i=1:100 @schedule dowork(1000) end
Issue 1:
Using ng-content inside ngFor produce a single content.

For example:

@Component({
selector: 'some-component',
template: `
<div *ngFor="#x of arr">
<ng-content></ng-content>
</div>
`
});
class SomeComponent {
arr = [1,2,3];
}

@Component({
selector: 'app'
template: `
<some-component> data </some-component>
`,
directives: [SomeComponent]
})
class App {}

produces the word "data" a single time instead of three times. (plunker: https://plnkr.co/edit/p6YA4dAsuiybTjtnSBnz)

Issue 2:
When a component has a ng-content within a ng-for only one ng-content is rendered.

Component with the for and content ( list.ts )

<li *ng-for="#item of listRows">
<ng-content></ng-content>
</li>

Component using the List component ( app.ts )

<list [list-rows]="myRows" >
<listRow ></listRow>
</list>

Can see the code with the problem here http://plnkr.co/edit/RbvRWV0O1jiWoCcs6dAF?p=preview

Maybe @tbosch can see the problem here
Issue 1:
Even as a developer with quite some experience with web development, I found the HTMK5 and CSS3 waypoints interesting. However, this changed in the last 15 waypoints which covered just two topics: hex code and rgb values: with a lot of repetition(e.g. three waypoints for how to change colour to red, blue and green).

I think reducing the number of waypoints will be more productive to the user.

Issue 2:
Challenge http://freecodecamp.com/challenges/waypoint-use-rgb-to-color-elements-green has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

I don't need to repeat the same task six times with slightly different colours, simpler option is far better. Once for each colour type and mention the cheat sheet for colour values. http://www.pagetutor.com/common/bgcolors1536.html http://www.zoology.ubc.ca/~alathea/howto_html/colorchart.png

http://www.visibone.com/color/hexagon_800.gif

and mention that there are tiny utilities which do colour picking.
Issue 1:
Environment

Windows build number: 1903, build 18362
Windows Terminal version (if applicable): Windows Terminal (Preview) Version: 0.5.2681.0

Any other software?
Terminal Font: Fira Code

Steps to reproduce

In CMD: mode con

Expected behavior

Lines value equals initialRows value defined in profile config.

Actual behavior

Terminal size is smaller than defined:

Issue 2:
Description of the new feature/enhancement

Currently, there are 4 pixels of distance between each of the top of the tabs and the top of the maximized window:

According to the Fitts' Law, the time to interact with a component is a function of the distance from the mouse pointer to the component, and the area of the component. As a special case, because the computer screen is bounded, the four screen borders (and the four corners) have infinite area, making them extremely easy and fast to use.

However, the Windows Terminal (version 0.6.2951.0) places the tabs just 4 pixels away from the screen border, making it very frustrating to click (even more so because users are already used to tabs in Chrome and Firefox).

Further reading:

https://blogs.msdn.microsoft.com/jensenh/2006/08/22/giving-you-fitts/

http://particletree.com/features/visualizing-fittss-law/

https://blog.codinghorror.com/fitts-law-and-infinite-width/

https://en.wikipedia.org/wiki/Fitts%27s_law

Proposed technical implementation details (optional)

The tabs should touch the screen border when the terminal is maximized. Just like how Chrome and Firefox also behave.

Footnote: I tried searching if this issue had been reported before, but I found nothing. This issue here should be included into #1625.
Issue 1:
Here is an example:

julia> x = 2

2

julia> x.2

0.4

Issue 2:
I'm very new to Julia--I just downloaded it today--so I'm not sure if this the "bug" I'm reporting is desired behavior, and I'm also not sure if the vocabulary I'm using to describe it is correct for Julia:

As I was playing around with Julia, I was surprised to find that attempting to access attributes of a variable using an integer is interpreted as multiplying the variable by a constant:

~/repos/julia$ ./julia
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "help()" to list help topics
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.3.0-prerelease+2917 (2014-05-06 14:30 UTC)
_/ |\__'_|_|_|\__'_| | Commit 32b5cce (0 days old master)
|__/ | x86_64-linux-gnu

julia> x = 4
4

julia> x.3
1.2

julia>

I think I understand what's going on here--x.3 is the same thing as .3x. Now, I think it's very cool that Julia permits syntax like .3x, but it just seems to me like you'd want x.3 to raise a syntax error instead.