WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
1. What is a short input program that triggers the error?
package foo
type Foo interface {
X()
}
func Test(f Foo) {
_ = f.(struct{Foo})
}

package main
import (
"local/foo"
)

func main() {
foo.Test(nil)
}

2. What is the full compiler output?
./tst.go:3: impossible type assertion:
struct {} does not implement foo.Foo (missing X method)
./tst.go:7: internal compiler error: typename <T>

3. What version of the compiler are you using? (Run it with the -V flag.)

6g version go1.1.2

This might be the same as issue #5974.

Issue 2:
Running `go get` on Linux (Ubuntu 12.04) produces errors for go.net/ipv6 dependencies

$ go get ./...

# code.google.com/p/go.net/ipv6
code.google.com/p/go.net/ipv6/control_rfc3542_linux.go:83: undefined: syscall.SizeofIPv6MTUInfo
code.google.com/p/go.net/ipv6/control_rfc3542_linux.go:112: undefined: syscall.SizeofIPv6MTUInfo
code.google.com/p/go.net/ipv6/control_rfc3542_linux.go:113: undefined: syscall.SizeofIPv6MTUInfo
code.google.com/p/go.net/ipv6/control_rfc3542_linux.go:142: undefined: syscall.IPv6MTUInfo
code.google.com/p/go.net/ipv6/icmp.go:30: defer requires function call, not conversion
code.google.com/p/go.net/ipv6/icmp.go:37: defer requires function call, not conversion
code.google.com/p/go.net/ipv6/icmp.go:44: defer requires function call, not conversion
code.google.com/p/go.net/ipv6/icmp_linux.go:10: undefined: syscall.ICMPv6Filter
code.google.com/p/go.net/ipv6/sockopt_rfc3542_linux.go:13: undefined: syscall.GetsockoptIPv6MTUInfo
code.google.com/p/go.net/ipv6/sockopt_rfc3542_linux.go:33: undefined: syscall.GetsockoptICMPv6Filter
code.google.com/p/go.net/ipv6/sockopt_rfc3542_linux.go:33: too many errors
Issue 1:
Hi,

For my project I need to load/unload various models avoiding main JS thread to get blocked (models are a little heavy in MB) So I tried this approach:

Worker code

importScripts( "lib/dev.three.js/build/Three.js" );

function privateComponentLoaded( geometry ) {
postMessage( geometry );
self.close();
}

self.onmessage = function(event) {
var componentLoader = new THREE.JSONLoader();
componentLoader.load( event.data, self.privateComponentLoaded );
};

Main code

var _self = this;

var worker = new Worker( "ComponentLoaderWorker.js" );
worker.onmessage = function(event) {
_self.createComponent( event.data );
};
worker.onerror = function(error) { console.error( "Worker error: Error al cargar" ) };
worker.postMessage( myURL );

this.createComponent = function ( geometry ) {

myMesh = new THREE.Mesh( geometry, new THREE.MeshFaceMaterial() );

myObj.add( myMesh );
};

Error given by chrome for previous code

Uncaught TypeError: Object has no method 'computeBoundingSphere' Three.js:133

I checked that line and what crashed was this:

this.geometry.computeBoundingSphere()

So I came up to the conclusion that geometry was not a ThreeJS geometry due to JSON communication parsing from Worker to main thread.

So I think Worker support has to be implemented inside JSONLoader directly. However, maybe the geometry can be recovered somehow or maybe I'm missing something important.

What I think needs to be done

The worker has to just do the XMLHttpRequest Then, the main thread has to call createModel so geometry object gets created. What do you think?

I think if we also put the createModel function inside worker we will come to the same problem I have here (although it could be desirable to have this inside worker too in the name of performance for main thread)

I think I can try to do this changes in JSONLoader.

Issue 2:
Currently (0b340e7) the GLTFExporter generates new meshes, buffer views and accessors, referencing buffers full of duplicated data even if the geometry / attribute is reused in the scene.

Steps to reproduce:

Create a single BoxBufferGeometry is and attach to three different meshes.

Add the meshes to a scene.

Export the scene using the GLTFExporter.parse()-method.

Fiddle that recreates this problem: https://jsfiddle.net/jxg9b67a/3/

The resulting GLTF object has three different nodes (as expected), but also three different meshes. Additionally each mesh references unique accessors with unique bufferviews referencing a single buffer but at different offsets (meaning that the all the data is duplicated to multiple positions).

Expected behaviour according to the GLTF spec would be that the GLTF object has three nodes, all referencing a single mesh.

Note that if the meshes use different materials, different objects will have to be created; but they could still reference the same accessors for attributes and index.
Issue 1:
A clear and concise description of what the bug is.

This is my first time using Superset and I followed the instructions here

https://superset.apache.org/installation.html#start-with-docker

Expected results

I was able to clone and run docker-compose up successfully.

I opened http://localhost:8088 on my browser and entered admin for both username and password.

Actual results

I got an Invalid login. Please try again. message

Screenshots

How to reproduce the bug

I followed https://superset.apache.org/installation.html#start-with-docker

Environment

superset version: NA

python version: 3.7.3

node.js version: 11.0..0

npm version: 6.14.4

Issue 2:
A clear and concise description of what the bug is.

Expected results

Successful login

what you expected to happen.

Actual results

Trying admin username and admin as password. Getting

Invalid login. Please try again.

what actually happens.

Screenshots

If applicable, add screenshots to help explain your problem.

How to reproduce the bug

Go to '...'

Click on '....'

Scroll down to '....'

See error

Environment

(please complete the following information):

Running docker setup
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Should not get deprecated warning when fresh install.

Current Behavior

I am receiving deprecated warn:

npm WARN deprecated node-uuid@1.4.8: Use uuid module instead

Steps to Reproduce (for bugs)

Go to this blog: https://zeit.co/blog/next4

Copy how to start: npm i next@latest react@latest react-dom@latest

Install and receive warning

Context

This warning didn't effect me but deprecated modules should be replaced.

Your Environment

Tech
Version

next
4.1.4

node
8.9.0

OS
Linux Mint

browser
-

npm
5.5.1

Issue 2:
In our application we have forms and want to prompt the user when they click the browser's Back or Forward buttons to notify them they will lose their data if they continue.

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

Although it is similar in nature to this issue that has been marked as Exploration

Expected Behavior

When user clicks back button, window.onbeforeunload function that is defined fires

Current Behavior

Browser redirects user to previous page without triggering window.onbeforeunload action

Special Notes

If I navigate directly to the page with the form by typing in the url, clicking the Back button correctly triggers window.onbeforeunload.

If I navigate away from the page with the form by typing in the url for another page, the window.onbeforeunload event fires correctly.

If I navigate to the page using links within the application, clicking the Back button does not trigger window.onbeforeunload.

I think this has something to do with they way the browser is treating our application when the user navigates within the application using Next Links. Instead of seeing each view as its own page and loading/unloading the page resources as the user navigates, it sees the entire application as just one page, thereby never loading/unloading resources and thus not triggering window.onbeforeunload.
Issue 1:
Since release of 2.0.0 the sdist / *.tar.gz release is not present in pypi package repo. This will prevent automated pipelines from ingesting the release and generating customized wheels that is usually the process in bigger companies.

Considering that we already have the tooling to create sdist packages as part of CI code present in the codebase, Please kindly re-instate sdist as part of generic release process and make sdist available as part of pypi artifacts.

Thanks

-Ali

Issue 2:
Source package distribution in PyPi repository

To ensure that the correct libraries are linked, we rely on the source distribution package like https://files.pythonhosted.org/packages/db/f7/43fecb94d66959c1e23aa53d6161231dca0e93ec500224cf31b3c4073e37/lxml-4.6.2.tar.gz (lxml https://pypi.org/project/lxml/#files ). It would be great if the source distribution is also included in https://pypi.org/project/apache-airflow/#files

Acceptance Criteria

apache_airflow-2.0.0.tar.gz should be present in https://pypi.org/project/apache-airflow/#files

Are you willing to submit a PR?

Yes.

Related Issues

No
Issue 1:
Uncaught Error: spawn /usr/share/atom/atom (deleted) ENOENT

Atom Version: 0.161.0

System: linux 3.11.0-19-generic

Thrown From: Atom Core

Steps To Reproduce

...

...

Stack Trace

At events.js:85

Error: spawn /usr/share/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)

Issue 2:
TEMPORARY WORKAROUND: ln -s /usr/share/atom/atom "/usr/share/atom/atom (deleted)"

Uncaught Error: spawn /opt/atom/atom (deleted) ENOENT

Atom Version: 0.152.0

System: linux 3.13.0-40-generic

Thrown From: Atom Core

Steps To Reproduce

...

...

Stack Trace

At events.js:85

Error: spawn /opt/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
Issue 1:

Issue 2:
When using acl:set with --class-scope, it seems that I need to specify an ID:

app/console acl:set --class-scope --user=PartKeepr/AuthBundle/Entity/User:admin VIEW PartKeepr/PartBundle/Entity/Part

[InvalidArgumentException]
The code "PartKeepr/PartBundle/Entity/Part" is not supported

As it is a class scope, it shouldn't be necessary to specify an ID.
Issue 1:
On revision 134/135 (and maybe more versions but not on 131 and below) there seems to be a slow glTF loading time with some glTF models.

Steps to reproduce the behavior:

Go to donmccurdy's gltf-viewer.

Click on the upload button.

Select this file.

Experience a huge lag.

Platform:

Device: [Desktop]

OS: [Windows

Browser: [Chrome]

Three.js version: [r134, r135]

Issue 2:
Describe the bug

The introduction of SRGB8_ALPHA8 in #22551 improved the render quality of sRGB textures, but also added significant synchronous conversion times that block the main thread. Every sRGB texture adds to the total blocking time, resulting in a poor user experience, especially when the scene contains many textures.

To Reproduce

Steps to reproduce the behavior:

Set encoding of any Uint8 RGBA texture to sRGBEncoding. (WebGL 2 context is required.)

Render a scene that uses the texture.

See the main thread being blocked for a noticeable period of time during the first frame.

Code

The following example loads a cube map and sets its encoding to sRGBEncoding:

https://codesandbox.io/s/srgb8-alpha8-wv3jf?runonclick=1&file=/index.js

Live example

LinearEncoding (0.16 seconds blocking) (Refresh to see small freeze)

sRGBEncoding (1.49 seconds blocking) (Refresh to see long freeze)

The blocking behaviour can also be observed in live examples that load GLTF models, such as https://threejs.org/examples/?q=gltf#webgl_loader_gltf.

Expected behavior

Ideally, the main thread should not be blocked at all. Blocking time should at least be reduced as much as possible.

Screenshots

With LinearEncoding or sRGBEncoding pre r133
With sRGBEncoding since r133

Longest blocking time = 160 ms
Longest blocking time = 1496 ms

Platform:

Device: Desktop

OS: Windows

Browser: Chrome, Brave, Firefox

Three.js version: r133
Issue 1:
I tried using the @types/ramda 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).

Authors: @donnut @mdekrey @mrdziuban @sbking @afharo @teves-castro @1M0reBug @hojberg @charlespwd @samsonkeung @angeloocana @raynerd @googol @moshensky @ethanresnick @leighman @CaptJakk

Hi. I'm trying to use R.pipe with R.filter, but I couldn't get the typing to work. But if I ignore the typings by adding // @ts-ignore the code works. I'm not asking this on StackOverflow because I'm almost sure it's a bug on the typings.

This doesn't work (the typings, the code is great, as ignoring the error part with // @ts-ignore makes it work

const searchRegexp = /\.dev\.test\.io/;
const env = 'prod';
const data = [
'https://testing.dev.test.io',
'https://testing2.local.dev.test.io',
'https://testing3.dev.test.io',
];

const values = pipe<string[], string[], string[], string[]>(
map(v => v.trim()),

/*
Below line throws:

Argument of type 'Filter<{}>' is not assignable to parameter of type '(x: string[]) => string[]'.
Type '{}[]' is not assignable to type 'string[]'.
Type '{}' is not assignable to type 'string'. (2345)
*/
filter(v => !(contains('.local.', v) && env !== 'dev')),

map(v => v.replace(searchRegexp, env === 'prod' ? '.test.com' : `.${env}.test.io`)),
)(data.split(','));

This works (both typings & code)

const searchRegexp = /\.dev\.test\.io/;
const env = 'prod';
const data = [
'https://testing.dev.test.io',
'https://testing2.local.dev.test.io',
'https://testing3.dev.test.io',
];

const values = pipe<string[], string[], string[], string[]>(
map(v => v.trim()),
// adding this extra anonymous function here, makes everything to work
list => filter(v => !(contains('.local.', v) && env !== 'dev'), list),
map(v => v.replace(searchRegexp, env === 'prod' ? '.test.com' : `.${env}.test.io`)),
)(data.split(','));

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

Authors: @tomwanzek @Ledragon @gustavderdrache

I just looked at the release notes for the RC1 of D3 Version 5. d3-fetch will be added in as a replacement for d3-request.

So we'll need definitions for it proactively for D3 v5.
Issue 1:
Here is a minimal working example.

module MWE

module A
struct S
x
end
export S
end

module B
using ..A
f(x::S) = x # stops "working" if I comment it out
S() = S(1)
end

end # module

MWE.A.S() # works!

I tried to find if the issue is already posted but I couldn't find any. I checked the MWE with 1.1.0-DEV.98 and 1.0.0.

Issue 2:
Not sure if this is intended:

julia> UUID
ERROR: UndefVarError: UUID not defined

julia> using Random: UUID

julia> UUID(x::String) = UUID(rand(UInt128)) # OK?
UUID

julia> UUID("foo")
8c68d00a-33d1-777d-c4a1-0a41759d1581

julia> using Base: getindex

julia> struct Foo end

julia> getindex(::Foo) = print("Hello")
ERROR: error in method definition: function Base.getindex must be explicitly imported to be extended
Issue 1:
[ x] I have searched the issues of this repository and believe that this is not a duplicate.

This isn't an issue with the project.

This CodeSandBox linked to in this doc page is missing the WithTheme.js file.

I don't know how (or if it's possible) to PR from CodeSandBox. Here's a fork.

Thanks

Issue 2:
Problem description

When using this with react-starter-kit it generates warnng:

(program):44 Warning: React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server: (client) ;width:100%;display:flex;padding-left:24 (server) ;width:100%;display:-webkit-box,-moz-box

I've looked at other related issues and know this has been a reoccuring theme. It seems that everywhere the process.env.NODE_ENV is set the same.

Steps to reproduce

Open an instance with chrome (v. 50) using react-starter-kit as boilerplate.

Versions

Material-UI: 0.15.0 and ^0.15.0-beta.2

React: 15.1.0

Browser: Chrome 50.0.2661.102 (64-bit)
Issue 1:
On 3/4/2015 on playpen, the following code:

trait Foo {
type A;
}

struct FooStruct;

impl Foo for FooStruct {
type A = <FooStruct as Foo>::A;
}

fn main() { }

...gives the following error:

thread 'rustc' has overflowed its stack
Illegal instruction (core dumped)
playpen: application terminated with error code 132

This may be considered a duplicate of issue #20551, which notes a similar problem with recursive trait bounds. I figured this may be unique given that this involves a recursive associated type on a trait, rather than a recursive trait itself.

Issue 2:
This works:

fn main() {
let mut nums=vec![10i,11,12,13];
let index=nums.len()-2;
*nums.get_mut(index)=2;
}

I would like to be able to write this instead:

fn main() {
let mut nums=vec![10i,11,12,13];
*nums.get_mut(nums.len()-2)=2;
}

But:

test.rs:3:16: 3:20 error: cannot borrow `nums` as immutable because it is also borrowed as mutable
test.rs:3 *nums.get_mut(nums.len()-2)=2;
^~~~
test.rs:3:3: 3:7 note: previous borrow of `nums` occurs here; the mutable borrow prevents subsequent moves, borrows, or modification of `nums` until the borrow ends
test.rs:3 *nums.get_mut(nums.len()-2)=2;
^~~~

Lexically, the receivers appears before the parameters, but semantically it appears later, which is when I'd expect the borrow to happen.
Issue 1:
Right now getting a direction or spot light's direction is somewhat complex and only present in the renderers, rather than as a method on the SpotLight and DirectionalLight classes.

Specifically to get the true direction of a light one uses this code:

https://github.com/mrdoob/three.js/blob/master/src/renderers/WebGLRenderer.js#L5020

https://github.com/mrdoob/three.js/blob/master/examples/js/renderers/SVGRenderer.js#L225

https://github.com/mrdoob/three.js/blob/master/examples/js/renderers/WebGLDeferredRenderer.js#L431

I would like to move the repeated code from the renderers into the base Light class. Thus I would like to add to Light this (and use it in the renderers):

THREE.Light.prototype.getWorldDirection = function() {

var targetPosition = new THREE.Vector3();

return function ( optionalTarget ) {

var direction = optionalTarget || new THREE.Vector3();

if( this.target ) {

direction.setFromMatrixPosition( this.matrixWorld );
targetPosition.setFromMatrixPosition( this.target.matrixWorld );
direction.sub( targetPosition );
direction.normalize();
}

return direction;

};

}();

I added the check for this.target because in order to share the code between SpotLight and DirectionalLight it had to go on the base class, and thus it may be used by Lights that do not have a this.target on them.

PS. I am proposing this because I would have to again duplicate this code in the new batching renderer.

Issue 2:
Description of the problem

A WebGLRenderer is used to render a scene with:

a sprite

background color set (or renderer gets clear color set) to another color than black (e.g. blue)

Next, the scene's background color (or render clear color) is set to black, and the scene rendered again. The background color will stay the same value as before.

For example see: https://jsfiddle.net/w9t5h1h2/3/

In the example, double-clicking the canvas will cycle the background color between black, red and blue. You can see that it never gets set back to black, but rather keeps the red color when it should have been black. Setting the color to blue/red again works.

The problem seems to be caused by the SpritePlugin calling renderer.resetGLState(), which resets the tracked currentClearColor to black, while leaving the context's clear color untouched.

A workaround is to use nearly-black (0x000001) for the background instead of black.

Three.js version

Dev

r85

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS
Issue 1:
I'm trying to create a panel with three tabs.

I have a strange problem, if I add the "col-xs-12 col-sm-12 col-md-8 col-lg-6" classes the panel background won't match the form height,

http://jsfiddle.net/YXuNr/15/

not growing

while it's perfectly fine if I remove the responsive classes

http://jsfiddle.net/YXuNr/16/

growing correctly

I've checked the html and apparently it's all good, I wouldn't like to force a min-height on these panels, do you have any idea how to fix this? (I've also tried to assign a background and removing the alert alert-info from the tab-pane, but it won't grow anyway.

Issue 2:
I cannot close alerts on a iPhone 4S.

An example can be duplicated on http://twitter.github.com/bootstrap/components#alerts
Issue 1:
As per the following issue ->

#11780

Compiler is not available in AOT. Do we have this available in near future in upcoming releases of Angular ?

regards

Vasuneet Arya

Issue 2:
When I run a command

>"node_modules/.bin/ngc" -p ./

I get the error:

Error: Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function (position 65:17 in the original .ts file), resolving symbol COMPILER_PROVIDERS in .../node_modules/@angular/compiler/src/compiler.d.ts,

That all is related to this piece of code

@NgModule({
...
providers: [
COMPILER_PROVIDERS
],
})
export class AppModule {}

Once COMPILER_PROVIDERS are not declared

providers: [
// COMPILER_PROVIDERS

then AOT works as expected... just ... as also expected, the app is not working (simply, COMPILER_PROVIDERS are needed for it)

I did see this "encouraging disclaimer"

/**
* @module
* @description
* Entry point for all APIs of the compiler package.
*
* <div class="callout is-critical">
* <header>Unstable APIs</header>
* <p>
* All compiler apis are currently considered experimental and private!
* </p>
* <p>
* We expect the APIs in this package to keep on changing. Do not rely on them.
* </p>
* </div>

So - it is experimental, private, "I cannot rely on it" ... but I need it.

Please, am I doing something wrong? or is intended ... COMPILER_PROVIDERS will never be supported by AOT?
Issue 1:
Venkatt Guhesan opened SPR-692 and commented

I have a simple application where the following scenerio:

LoginController extends SimpleFormController

LoginValidator implements Validator

Within LoginController I override the following method:

protected ModelAndView onSubmit(HttpServletRequest request,

HttpServletResponse response,

Object command,

BindException errors)

throws Exception

on proper validation with no errors, I would expect the app to call the "onSubmit" method with the defined signature but it does not. If on the other hand I override, the following method:

protected ModelAndView onSubmit(Object command)

throws Exception

it calls the "onSubmit" method properly but I need to access the request scope to set a variable in the session.

Why does it not work when I implement the onSubmit(request,response,command,errors)? I have tried both Spring - 1.1.3 and 1.1.4 JARs.

PS: There is only one onSubmit method in the class. I have verified to make sure there were nother onSubmit methods...

Thanks

Venkatt Guhesan

Affects: 1.1.3, 1.1.4

Issue Links:

#5521 invalid doSubmit method executed for SimpleFormController ("is duplicated by")

Issue 2:
Kevin Wright opened SPR-7562 and commented

The start of forElementType() is defined as:

if (getType().equals(elementType)) {

return this;

}

Unfortunately, this fails when the TypeDescriptor represents a List<List<...>>

When calling getElementType(), the call stack will be getElementType() -> getElementTypeDescriptor() -> forElementType()

at which point, the elementType field will still be null.

The equality check will therefore see that List<null> == List<null>, and so the TypeDescriptor will be returned as its own element descriptor.

This leads to a recursive definition, where the descriptor now represents a List<List<List<...<List<List<... etc.

Affects: 3.0.3

Issue Links:

#11948 StackOverflowError when converting nested Lists ("duplicates")