WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
On Windows the Menu does not behave very native. For one, pressing Alt should select the first menu ("File"). Then, pressing Arrow-Left or Right I cannot navigate between the menu items. Arrow-Up and down works within the menu.

Issue 2:
Electron is missing a basic standard feature of the menu system in Windows whereby the user can activate any menu and then use the left and right arrow keys to navigate the entire menu bar.

Here is a short video on youtube which illustrates this behavior at ~0:56.
Issue 1:
OS-X Mountain Lion

Python version 3.3.1

Matplotlib version 1.2.0 Revision 1

Almost all text is being partially displayed. For instance, in the example in Text properties and layout, the text at the center displays as "mid" rather than "middle". Most other text in that plot is similarly truncated.

Issue 2:
To get the estimated (x,y,z) coordinate of a mouse event in a 3D figure we must parse these values from the string generated by Axes3D.format_coord. Wouldn't it be more useful to factor that out into a separate method (coord?) giving access to x, y, z = proj3d.inv_transform(xd, yd, z, self.M)? format_coord would then simply convert that to the formatted string.

The question of how to extract these coordinates has been asked a few times on SO:

http://stackoverflow.com/questions/6748184/matplotlib-plot-surface-get-the-x-y-z-values-written-in-the-bottom-right-cor

http://stackoverflow.com/questions/28954611/how-to-extract-3d-mouse-coordinate-on-mouse-click-in-matplotlib-in-python

and aside from duplicating the code within format_coord the best we can do is parse the values out of the generated string.
Issue 1:
What does 'go version' print?
go version devel +26aa53304a48 Fri Mar 07 16:08:12 2014 -0500 linux/amd64

What steps reproduce the problem?
If possible, include a link to a program on play.golang.org.

package main
// #cgo pkg-config: cairo
// #include <cairo/cairo.h>
import "C"
//export test
func test(x *C.cairo_t) {}
func main() {}

What happened?
COMPILER OUTPUT
# command-line-arguments
Go type not supported in export: [0]byte
Go type not supported in export: [0]byte
...CGO1.GO FILE
func test(x *[0]byte,) {}
_CGO_EXPORT.H FILE
extern void test(int* p0);

What should have happened instead?
COMPILER OUTPUT
[successful build]
...CGO1.GO FILE
func test(x *_Ctype_cairo_t,) {}
_CGO_EXPORT.H FILE
extern void test(cairo_t* p0);

Please provide any additional information below.
In this case, cairo/cairo.h defines cairo_t as
typedef struct _cairo cairo_t;
but _cairo is never explicitly defined, which is possibly what is confusing cgo.

Issue 2:
Calling with reflection with embedded types seems to be broken.

Here is a short snippet showing the issue:

package main
import "reflect"
type A struct{}
type B struct{A}
func (a *A) S() { println("Hi!") }
func main() {
b := &B{}
b.S()
reflect.NewValue(b).Method(0).Call([]reflect.Value{})
}

b.S() works, but the next line fails with:

panic: type mismatch: *main.A != *main.B

Looking at the source of Call():

if v := fv.first; v != nil {
// Hard-wired first argument.
if fv.isInterface {
// v is a single uninterpreted word
memmove(addr(ptr), v.getAddr(), ptrSize)
off = ptrSize
} else {
// v is a real value
tv := v.Type()
typesMustMatch(t.In(0), tv)
n := tv.Size()
memmove(addr(ptr), v.getAddr(), n)
off = n
delta = 1
}
}

It looks to my untrained eye like the type checking might be relaxed in the second case
too, in the same way that was done with interfaces in the first case.

The only possible way to reach this code path is via the Method() function, which I
believe is already a proof that the type is indeed acceptable as the receiver of the
given call.

Am I missing something, or could this check be removed?
Issue 1:
I deleted the node_modules directory and reinstalled it, then I met this problem

how can I make it works correctly, please help me

Issue 2:
I just upgraded to next@6.0.0, I use a custom server, when I try to run dev, I get an error.

npm run dev

> frontend-next@1.0.0 dev /Users/foo/gitlab/next-project/backend
> babel-node ./src/server.js

/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:328
throw e;
^

Error: Plugin 0 specified in "/Users/foo/gitlab/next-project/backend/node_modules/next/babel.js" provided an invalid property of "default" (While processing preset: "/Users/foo/gitlab/next-project/backend/node_modules/next/babel.js")
at Plugin.init (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/plugin.js:131:13)
at Function.normalisePlugin (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:152:12)
at /Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:184:30
at Array.map (<anonymous>)
at Function.normalisePlugins (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
at OptionManager.mergeOptions (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
at /Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:265:14
at /Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:323:22
at Array.map (<anonymous>)
at OptionManager.resolvePresets (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! frontend-next@1.0.0 dev: `babel-node ./src/server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the frontend-next@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/foo/.npm/_logs/2018-04-30T08_41_09_819Z-debug.log

UPDATE all this passed after upgrading all babel packages to v7

Now this is the new error.... See below for complete error message

ERROR Failed to compile with 1 errors 10:32:07

error in ./pages/_document.js

Module build failed: Error: [BABEL] /Users/foo/gitlab/zyombo/backend/pages/_document.js: .value is not a valid Plugin property
Issue 1:
Migrated issue, originally created by Dmytro Starosud (@dima-starosud)

This is using sqlalchemy 1.2.0b3.

Please consider following code snippet.

class A(Base):
__tablename__ = 'a'
id = Column(Integer, primary_key=True)
value = Column(String)

mapper = inspect(A).mapper
print('Initial', mapper.all_orm_descriptors.keys())

A.value_2 = hybrid_property(lambda me: me.value)
configure_mappers()
print('Added', mapper.all_orm_descriptors.keys())

del A.value_2
configure_mappers()
print('Deleted', mapper.all_orm_descriptors.keys())

from sqlalchemy.orm.mapper import _memoized_configured_property
_memoized_configured_property.expire_instance(mapper)
print('Expired', mapper.all_orm_descriptors.keys())

>>>
Initial ['value', '__mapper__', 'id']
Added ['value', 'value_2', '__mapper__', 'id']
Deleted ['value', 'value_2', '__mapper__', 'id']
Expired ['value', '__mapper__', 'id']

I think _memoized_configured_property is not supposed to be used outside lib code.

Is there official way to do this?

Issue 2:
Migrated issue, originally created by Dmytro Starosud (@dima-starosud)

This is using sqlalchemy 1.2.0b3.

I've faced weird behavior shown in following code snippet. Assertion in that test fails. But if you comment either #1 or #2 or both it will pass.

Base = declarative_base()

class Target(Base):
__tablename__ = 'target'
id = Column(Integer, primary_key=True)

descriptors = lambda: inspect(Target).all_orm_descriptors.keys()

# these two calls make test fail
configure_mappers() #1
descriptors() #2

Target.value = hybrid_property(lambda _: 'Hello!')
configure_mappers()
assert 'value' in descriptors()

Please let me know if I get it wrong.

Thanks a lot in advance!
Issue 1:
Electron Version:

4.0.6

Operating System:

windows 10 1803

Expected Behavior

It shd print using PrintToPDF() when requested from the renderer

Actual Behavior

Upon the print request everything freezes

To Reproduce

//RENDERER

await ipc.sendSync("ExecuteBackendFx", { fxName: "PrintToPDF", fxArgs: null });

//MAIN

global.PrintToPDF = async () => {

let out = await new Promise((resolve, reject) => {

mainWindow.webContents.printToPDF(

{

marginsType: 0,

printBackground: false,

printSelectionOnly: false,

landscape: false

},

function(error1, data1) {

fs.writeFile(rootDir + "/UI/Temp/print.pdf", (data1, error1) => {

resolve("Success");

});

}

);

}

});

return out;

}

Additional Information

It prints normally when the request comes from the backend directly.for eg calling the function directly from the debug on VSCODE

Issue 2:
Electron Version:

4.0.6

Operating System:

windows 10 1803

Expected Behavior

It shd print using PrintToPDF() when requested from the renderer

Actual Behavior

Upon the print request from the renderer using await everything freezes

To Reproduce

//RENDERER

await ipc.sendSync("ExecuteBackendFx", { fxName: "PrintToPDF", fxArgs: null });

//MAIN

global.PrintToPDF = async () => {

let out = await new Promise((resolve, reject) => {

mainWindow.webContents.printToPDF(

{

marginsType: 0,

printBackground: false,

printSelectionOnly: false,

landscape: false

},

function(error1, data1) {

fs.writeFile(rootDir + "/UI/Temp/print.pdf", (data1, error1) => {

resolve("Success");

});

}

);

}

});

return out;

}

Additional Information

CALL STACK

WebContents.printToPDF (c:\BucksWild\node_modules\electron\dist\resources\electron.asar\browser\api\web-contents.js:218)

dataOut (c:\BucksWild\main.js:310)

global.PrintToPDF (c:\BucksWild\main.js:308)

ExecuteBackendFx (c:\BucksWild\IPCEVENTS.js:131)

InitializeEvents.ipc.on (c:\BucksWild\IPCEVENTS.js:157)

emit (events.js:182)

(anonymous function) (c:\BucksWild\node_modules\electron\dist\resources\electron.asar\browser\api\web-contents.js:355)

emit (events.js:182)

Unable to open 'web-contents.js': File not found (file:///c:/BucksWild/node_modules/electron/dist/resources/electron.asar/browser/api/web-contents.js).

It prints normally when the request comes from the backend directly.for eg calling the function directly from the debug on VSCODE
Issue 1:
Version

2.6.10

Reproduction link

https://jsfiddle.net/shenron/kbuymoz0/

Steps to reproduce

Create a watcher, and reject a promise inside.

What is expected?

Vue should capture the reject with errorCaptured

What is actually happening?

The reject has not been captured

Issue 2:
Hi,

I am trying to build components (here) which use a settable computed property bound to the parent vm with prop. These components may also need to set a default value for it, calling the property setter during compilation.

Rather than setting up custom events which duplicate the role of prop, it seemed cleaner to make these changes to vue. What do you think?
Issue 1:
In the lovely FirstPersonCamera object, the onMouseDown event calls the function event.preventDefault() which, of course, prevents clicking the mouse from doing what it usually does. However, I want to have a text box overlay in certain cases that can work in conjunction with the FirstPersonCamera. Currently, the event listener for the mouse click overrides all mouse clicks anywhere, meaning clicking on a textbox doesn't give it focus (and presumably this affects a host of other issues). Can you make the event listeners specific to the dom element of the renderer?

Issue 2:
Description of the problem

The WebGLRenderer already calculates whether an object is frustum culled, using an internal Frustum.

It'd be nice if this information was exposed so that we don't have to duplicate the Scene traversal and calculations with our own Frustum outside of the renderer.

A couple ideas:

Maybe Mesh objects can have an onFrustumCullChange property that is undefined or null by default. If it is set to a function, then when the frustum culling for the object changes the function can be called with true or false.

Another idea would be to just set a boolean flag on the Mesh objects, but this would make logic relying on it be one frame behind. In most cases it wouldn't be a problem. The user could make the property into a getter/setter to achieve the same feature as the onFrustumCullChange idea.

Any other ways to do it without requiring a second traversal and calculations?

Three.js version

Dev

Browser

All of them

OS

All of them
Issue 1:
three.js's documentation contains a bunch of fake hyperlinks; anchor tags which do not have an href attribute but instead rely on JavaScript onclick events to navigate.

These links can't be opened in new tabs by middle-clicking or by right-clicking. The links also don't show a URL preview in the status bar when the user hovers over them.

This is terrible for usability and should be universally discouraged across the web.

Example:

Open https://threejs.org/docs/index.html#api/en/animation/AnimationAction

Try to middle-click the blue AnimationClips text which appears to be a hyperlink.

Try to right-click the same text and open the link in a new tab or new window.

You can't.

The links should have a proper href attribute added to them.

Issue 2:
Hi mrdoob/team,

Many times while going through the documentation I would like to ctrl/cmd+click on links pointing to particular class documentation to open in new tab. Because the elements don't even contain href attribute, it simply doesn't work. Similarly, I can't right click and "Open in new tab".

I'm not providing an example because you can pick any documentation page and look for any documentation-linked class name to see the problem.

The documentation of three.js is pretty good and I'm thankful! Just wondering if it'd not be too much work to perhaps update the onclick listener / setFragmentUrl function to consider if a modifier is pressed. (I understand the lack of href is because you want the doc page to be like an SPA).

Thank you for your consideration and have a great day,

Michal
Issue 1:
It's one of the feature I'd love have in Atom.

It should save tabs, open files, root directories, cursor position,...

Do you think it can be integrated ?

Issue 2:
A feature I love about ST2 and iA Writer, which I'm missing in Atom, is when you quit the app with open windows (including unsaved documents), they all appear again when you reopen.

This has saved me countless times in my workflow to handle having to do a system restart for software update, etc and not have to take time to save all my unsaved docs, etc.

It's also nice because I generally have five or six open projects that I just keep minimized in the editor for ease of access. It would be great to have such a feature in Atom.
Issue 1:
Describe the bug

When you use the copy method from the InstancedBufferGeometry the instanceCount attribute is copied by defualt. This could lead to errors, since the copy method accepts any kind of geometry and for this reason the instanceCount could be set to undefined.

To Reproduce

call InstancedBufferGeometry .copy passing a BufferGeometry of a Geometry and the instanceCount will be set to undefined

Expected behavior

The copy method should check the type of the geometry passed as input and only if it is an InstancedBufferGeometry the instanceCount should be copied.

Platform:

All

Three.js version: [master]

Issue 2:
Describe the bug

In r117 (#19135) you renamed maxInstancedCount to instanceCount AND changed the default value from undefined to Infinity. However, there is a rare case when it still becomes undefined: copying from a non-instanced geometry.

To Reproduce

If you call instancedGeo.copy(simpleGeo); it overwrites Infinity with undefined. Then, during rendering, it is converted to NaN and passed to drawElementsInstancedANGLE.

See the changes:

In r116 this undefined value perfectly worked, so we have a regression here.

I cannot provide a small working example yet, just a code review.

Expected behavior

InstancedBufferGeometry.copy() should be able to copy from any BufferGeometry, instanced or not.

Platform:

Device: any

OS: any

Browser: any

Three.js version: r117 and up
Issue 1:
julia> @code_warntype (Int ∘ identity)(1)

gives

Variables:
#self#::getfield(Base, Symbol("##57#58")){DataType,typeof(identity)}
x::Tuple{Int64}

Body:
begin
return ((Core.getfield)(#self#::getfield(Base, Symbol("##57#58")){DataType,typeof(identity)}, :f)::DataType)((Core.getfield)(x::Tuple{Int64}, 1)::Int64)::Any
end::Any

Similar, when Int is replaced by another type.

Issue 2:
There seems to be a performance regression in fft as demonstrated below:

slowdown2.jl

function ch(nsteps, u)
w = complex(u)

p = plan_fft!(w)
q = plan_ifft!(w)

for n in 1:nsteps
w = p*w
w = q*w
end
w
end

srand(1)
u = rand(2^16)
ch(5, u)
@time ch(100, u)

Julia 0.4.6:

_% /usr/bin/julia slowdown2.jl
0.299310 seconds (246 allocations: 1.015 MB)

Julia 0.5 RC3:

_% /usr/local/julia/bin/julia slowdown2.jl
3.104827 seconds (271 allocations: 1.015 MB)

Here is the versioninfo:

Julia 0.4.6:

_% /usr/bin/julia -e 'versioninfo()'
Julia Version 0.4.6
Commit 2e358ce* (2016-06-19 17:16 UTC)
Platform Info:
System: Linux (x86_64-redhat-linux)
CPU: Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
WORD_SIZE: 64
BLAS: libopenblas (DYNAMIC_ARCH NO_AFFINITY Nehalem)
LAPACK: libopenblasp.so.0
LIBM: libopenlibm
LLVM: libLLVM-3.3

Julia 0.5 RC3:

_% /usr/local/julia/bin/julia -e 'versioninfo()'
Julia Version 0.5.0-rc3+0
Commit e6f843b (2016-08-22 23:43 UTC)
Platform Info:
System: Linux (x86_64-unknown-linux-gnu)
CPU: Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Nehalem)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.7.1 (ORCJIT, westmere)
Issue 1:
Hi,

I have a simple IconMenu which is not controlled. Once the menu is displayed and any MenuItem is clicked, the menu closes as expected. However clicking anywhere after this logs the error -

Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the IconMenu component.

The call-stack is -

warning @ bundle.js:2198

getInternalInstanceReadyForUpdate @ bundle.js:5913

ReactUpdateQueue.enqueueSetState @ bundle.js:6060

ReactComponent.setState @ bundle.js:15918

close @ bundle.js:54613

requestClose @ bundle.js:42206

componentClickAway @ bundle.js:42210

onClickAway @ bundle.js:42509

And a bigger issue is that the error count per click keeps increasing on every subsequent menu show/dismiss cycle. E.g. during the very first occurrence, only one error is reported per click. The next time I click on the icon to show the menu and then dismiss it by selecting some item, two errors are reported per click. This would happen if the menu is not cleaning up events correctly and would eventually lead to leaks.

Issue 2:
This is a new regression only observed in 0.14.2, downgrading to 0.14.1 removes warning.

On umounting any IconMenu component, I receive the following warning and stacktrace that is entirely within Material UI:

Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the IconMenu

component.warning @ warning.js:45

getInternalInstanceReadyForUpdate @ ReactUpdateQueue.js:34

ReactUpdateQueue.enqueueSetState @ ReactUpdateQueue.js:181

ReactComponent.setState @ ReactComponent.js:65

close @ icon-menu.js:174

requestClose @ popover.js:207

componentClickAway @ popover.js:211

onClickAway @ render-to-layer.js:99

Clicking anywhere at all triggers the warning again, as if the popover was still active.
Issue 1:
$ go version
go version devel +f2e954f463e0 Thu Aug 29 10:16:09 2013 +0200 linux/amd64

steps that will reproduce the problem:
1. $ cd $GOPATH/src
$ unzip path/to/attached/delfile.zip
2. $ go install delfile
$ ../bin/delfile
prints "still there"
3. $ rm delfile/deleted.go
$ go install delfile
$ ../bin/delfile
prints "still there"

the expected output of the second go install is:
# delfile
./main.go:4: undefined: deleted

same behavior is observed for non command/main packages.

Attachments:

delfile.zip (598 bytes)

Issue 2:
by AndersEdmanXYZ:

running go get to fetch pkg from external sources need extra tools to be installed as
listed in http://code.google.com/p/go-wiki/wiki/GoGetTools

Documentation
in http://golang.org/cmd/go/ description of go get is external tool need not mentioned

error response could be more helpfull: Example:
c:\Go>go get code.google.com/p/draw2d/draw2d
# cd .; hg clone -U https://code.google.com/p/draw2d
C:\Go\src\pkg\code.google.com\p\draw2d
package code.google.com/p/draw2d/draw2d: exec: "hg": executable file not found
in %PATH%

Improved response could mention that needed "hg" is required external sw that
must be installed

Which operating system are you using?
Windows

Which version are you using? (run 'go version')
1.0.3
Issue 1:
VSCode Version:

1.1.1

OS Version:

RHEL 7.2

Steps to Reproduce:

type Ctrl+P and ext install csharp

The status bar at the left bottom remains "installing" status. It doesn' t finish for several hours.

I get into this situation only csharp extension. I can install other extensions such as go, python.

I have a workaround that I install csharp extension other Linux distro machine and copy ~/.vscode/extensions/ms-vscode.csharp-1.0.11 to RHEL machine.

However, I'd like to know the root cause. Could you help me?

Issue 2:
VSCode Version:1.2.0

OS Version:ubuntu 16.4

on a remote server or while editing root needed config files from builtin terminal i have to use vim at the moment .

Is there or will there be a functionality to pipe file into current code pane from builtin terminal
Issue 1:
Since #1987, our SxS manifest is auto-generated, so it's certainly possible to run the terminal unpackaged again. However, we need the resources.pri that's only generated by building the CascadiaPackage project. Ideally, we'd be able to rebuild the terminal code (with bx, #2168), and launch it using openterm. We need to figure out a way to get openterm to build the appx's resources.pri for us, and not re-build every time openterm is called.

Issue 2:
I've built successful from command line using the following command.

msbuild /p:Configuration=Release /p:Platform=x64 /p:PlatformToolset=v142 /p:TargetPlatformVersion=10.0.18362.0 /p:PreferredToolArchitecture=x64 OpenConsole.sln

I'm trying to find a possible solution for deploying from the command line. Is adding /p:DeployOnBuild=true enough? What other things need be done if necessary? Any guidance on what Deploy does, e.g. copying files to where, writing some environmental variables?