WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Good first issue.

throw new Error("abcd");

gives the output

That second line, the "source name" is always the same as the first frame. The line number is written in three places and one of them is invisible here.

I'd rather see something like this:

Issue 2:
Summary

Deno has panicked when run bellow code at interactive mode.

const str = "🌍🤖😸🎉";
console.log(str.slice(0,3));

Error message

root@523db2214abf:/# RUST_BACKTRACE=1 deno
Deno 1.21.3
exit using ctrl+d or close()
> const str = "🌍🤖😸🎉";
undefined
> console.log(str.slice(0,3));
🌍�

============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.

Platform: linux x86_64
Version: 1.21.3
Args: ["deno"]

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error("unexpected end of hex escape", line: 1, column: 113)', /home/runner/work/deno/deno/core/inspector.rs:724:66
stack backtrace:
0: rust_begin_unwind
at ./rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:498:5
1: core::panicking::panic_fmt
at ./rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/panicking.rs:116:14
2: core::result::unwrap_failed
at ./rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/result.rs:1690:5
3: core::result::Result<T,E>::unwrap
4: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
5: <futures_util::future::select::Select<A,B> as core::future::future::Future>::poll
6: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
7: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
8: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
9: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
10: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
11: deno::tools::repl::run::{{closure}}
12: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
13: deno::main::{{closure}}
14: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
15: deno_runtime::tokio_util::run_basic
16: deno::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
root@523db2214abf:/#

But when I run code from stdin, it looks work fine.

root@8bf9e7714971:/# deno run - < `tty`
const str = "🌍🤖😸🎉";
console.log(str.slice(0,3));
🌍�
root@8bf9e7714971:/#

Environments

root@8bf9e7714971:/# uname -a
Linux 8bf9e7714971 5.10.104-linuxkit #1 SMP PREEMPT Thu Mar 17 17:05:54 UTC 2022 x86_64 GNU/Linux
Issue 1:
This code:

mod A {
struct X;

mod B {
use A::X;
pub fn foo(_: X) {}
}
}

Triggers:

src\main.rs:6:23: 6:24 error: private type in exported type signature
src\main.rs:6 pub fn foo(_: X) {}

The foo function is only visible to A and B, and X is also visible to both A and B, so I don't see why this would be forbidden.

This was introduced in the rustc 1.0.0-nightly (f4e0ce66a 2015-03-19) (built 2015-03-20) nightly. With the 2015-03-17, this works.

Issue 2:
type items don't work with enums.

#[derive(Debug)]
enum Foo {
Bar,
Baz,
}
type Loz = Foo;
fn main() {
let y = Loz::Bar;
println!("{:?}", y);
}

On the stable channel the following error occurs:

<anon>:8:13: 8:21 error: type `Foo` does not implement any method in scope named `Bar`
<anon>:8 let y = Loz::Bar;
^~~~~~~~
error: aborting due to previous error
playpen: application terminated with error code 101```
Issue 1:
OBJLoader2 is now around for a while and I think that especially the Parser has reached at least feature parity with the other implementation. It currently has less known bugs and the code is now more accessible to others than it has been in the past (code reviews&verification in R90 and R91).

OBJLoader is more widely used and replacing it with OBJLoader2 will only be smooth once the following issues and questions are solved and answers are found together with you:

Any external dependency LoaderSupport needs to be removed. The current dev version of OBJLoader2 already solved this.

The dev version sill contains the generic MeshBuilder. It provides among other things a mesh building function which uses data directly or data from web worker (buffers as Transferables). It could stay inside OBJLoader, but logically it should be outside violating the first assumption. I currently don't have a good answer for this problem. One solution is to put MeshBuilder inside `WorkerLoader´ where it is needed, but then it cannot be used here. I don't like having code duplicates. Do you at all see that this is a useful feature for other loader or beyond? What's you opinion?

Reduce LOCs as much as possible. Due to the second point, more overall features (see table below) and MTL utility function (which should be kept as dependency is not enforced) it is currently twice as big as OBJLoader

Async loading/parsing currently available with OBJLoader2/LoaderSupport will be realized by Generic WorkerLoader.

The following table outlines the major features of both loaders:

Feature
OBJLoader
OBJLoader2

Handle all face types
[x]
[x]

Support for points and lines
[x]
[x]

Negative face indices
[x]
[x]

Support Ngons
[x]
[x]

Flat/Smooth Multi-Materials
[ ]
[x]

Indexed Rendering
[ ]
[x]

Handle Face-Type change inside group
[x]
[x]

Deactivate console logging
[ ]
[x]

Load MTLs via MTLLoader if desired
[ ]
[x]

Progress can be tracked in the dev branch mentioned above and in the external OBJLoader2 repo.

I hope you agree that the time has come to replace OBJLoader and we can maintain one implementation in the future.

Three.js version

Dev

r91

Issue 2:
I found some problem on loader .obj

Some face on model missing.

What's the problem?
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

I expected process.env.NODE_ENV on the client/browser to correspond to environment variable set when app is run:

package.json

"scripts": {
"dev": "next",
"staging": "NODE_ENV=staging next",
"build": "next build",
"start": "next start"
}

Expected process.env.NODE_ENV to be 'staging' when running npm run staging:

components/Page.js

class Page extends React.Component {
componentDidMount () {
console.log('process.env.NODE_ENV', process.env.NODE_ENV) // expected 'staging' to be printed here when running `npm run staging`
console.log('process.env.BUILD_VERSION', process.env.BUILD_VERSION) // '1.0.0'
}

render () {
...
}
}

Current Behavior

console.log(process.env.NODE_ENV) prints 'development' on the client/browser with npm run staging regardless of the actual NODE_ENV value.

I've attempted to override the default DefinePlugin webpack config here to no avail:

next.config.js

module.exports = {
webpack: (config, { dev }) => {
config.plugins.push(
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
'process.env.BUILD_VERSION': JSON.stringify(pkg.version)
})
)
return config
}
}

It seems that process.env.NODE_ENV is set to 'development' or 'production' based ondev in the default webpack config.

https://github.com/zeit/next.js/blob/e451218900b16e721db10413734ca7a964c53677/server/build/webpack.js#L102-L106

How can I override this behaviour and have process.env.NODE_ENV on the client reference the actual NODE_ENV value?

Context

I would like to set app variables based on NODE_ENV on the client

Your Environment

Tech
Version

next
^4.4.0-canary.3

node
6.11.5

OS
macOS siera 10.12.6

browser
Google Chrome Version 63.0.3239.132

Issue 2:
Hi, i have a question about minification.

As i have read now in next we use Terser plugin to do it, but it seems that i am missing something because i try to catch errors with bugsnag and i need source map and minified files to upload to bugsnag. So the question is how to create source maps for serverless files? For static components its ok, its creating both of it map.js and min.js and uploads completely fine, but for serverless files i cant do it. The thing is when i used Uglify with Terser my error was coming from the path:

/zeit/8fc9cc9/.next/serverless/pages/webpack:/pages/borked.js

When i stopped using uglifyJS the error was coming from:

pages/borked.js

And the path to get min and map files from next is:

publicPath: isServer ?
".next/serverless/"
: "*/_next/"

For Terser plugin the code is

if (config.optimization && config.optimization.minimizer) {
for (const plugin of config.optimization.minimizer) {
if (plugin['constructor']['name'] === 'TerserPlugin') {
plugin.options.parallel = true;
plugin.options.sourceMap = true;
break;
}
}
}

Thanks for your help, I appreciate it.
Issue 1:
Challenge Name

https://www.freecodecamp.com/challenges/create-a-form-element

However, this issue has come up on all of my challenges. It didn't happen at first, but then it started happening some challenges ago and persisted, though I'm not sure on which one specifically.

Issue Description

Whenever I begin the challenge and try to start typing the code, the cursor will not move to the last line of the code. For example, on this challenge the last line of the code is []. When I try to select this element or I try to place my cursor somewhere in the middle of it (say, on the word 'text'), the cursor won't move and I can't select. It only begins working properly when I hit backspace as though to delete the element. That's when the browser suddenly recognizes the element and then I can freely move the cursor. Also, it should be noted that when I do hit backspace on the line before this input element, the browser deletes not something from the previous line but something from the bugged line below.

Browser Information

Browser Name, Version: Chrome, 57.0.2987.110

Operating System: MacOS Sierra, 10.12.4

Mobile, Desktop, or Tablet: Desktop

Your Code

<form action="/submit-cat-photo">
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="#">cat photos</a>.</p>

<a href="#"><img class="smaller-image thick-green-border" alt="A cute orange cat lying on its back. " src="https://bit.ly/fcc-relaxing-cat"></a>

<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<input type="text" placeholder="cat photo URL">

Issue 2:
In all the exercises, we the users are forced to press the enter key before writing any code.

Update:

We have locked the conversation temporarily on this thread to collaborators only, this has been resolved in staging, and will be live soon.

The fix can be confirmed on the beta website.

The workaround currently on production website is:

Press the Enter key on the challenge editor and then proceed with the challenge.

Apologies for the inconvenience meanwhile.

Reach us in the chat room if you need any assistance.
Issue 1:
Send the same command to all the active tabs within windows terminal

I hope windows terminal come with a feature that it can send the same command to all the active tabs.

Let's say we open 4 tabs within terminal,then each tab have a connection to a SSH server. and we want to know the status of the firewall on those server by issue "systemctl status firewalld" . but we want do it in one time. not one by one for each connection in these 4 tabs.

This feature had been implement in SecureCRT.

Bellow is the steps to send the same command to all active tabs in SecureCRT.

This can be done using the 'Chat Window'.

Select 'Chat Window' from the 'View' menu so that the window will be displayed.

Then just right click inside the 'Chat Window' and select the 'Send Chat to All Tabs' option in the pop-up menu.

Once enabled, any commands entered in the 'Chat Window' will be sent to all tabs when 'Enter' is pressed.

It will be very handy in daily task if it can be like that.

Issue 2:
Description of the new feature/enhancement

When launching a new tab, if any error occurs during the startup of the tab (e.g. an error from the command being run), Terminal needs to display the error rather than just close the tab.

This would help the user to better understand why the tab hasn't successfully opened.

An example of where this is useful is SSH terminal connections. The ssh command can fail for a number of reasons, e.g. ssh-agent isn't running, connection to server timed out, etc. At the moment, Terminal just closes the newly opened tab without any explanation.
Issue 1:
[Enter steps to reproduce below:]

Opened atom from terminal while running fish shell.

Waited... Silent-sync package started its synchronisation.

Atom Version: 0.190.0

System: Mac OS X 10.10.3

Thrown From: Atom Core

Stack Trace

Uncaught Error: spawn /bin/sh EAGAIN

At events.js:141

Error: spawn /bin/sh EAGAIN
at exports._errnoException (util.js:734:11)
at Process.ChildProcess._handle.onexit (child_process.js:1035:32)
at child_process.js:1127:20
at process._tickCallback (node.js:357:13)

Commands

6x -7:30.3 core:close (atom-text-editor.editor.is-focused)

Config

{
"core": {
"themes": [
"one-dark-ui",
"one-dark-syntax"
]
},
"editor": {
"invisibles": {},
"fontSize": 12
}
}

Installed Packages

# User
script, v2.18.0
silent-sync, v1.1.5

# Dev
No dev packages

Issue 2:
Uncaught Error: spawn /bin/sh EAGAIN

Atom Version: 0.161.0

System: Mac OS X 10.10.1

Thrown From: Atom Core

Steps To Reproduce

Install atomatgit plugin

Attempt to launch it via command palette

Stack Trace

At events.js:85

Error: spawn /bin/sh EAGAIN
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:
Strict mypy mode gives such errors:

base/api/users/controllers.py:4: error: Module 'fastapi' has no attribute 'Depends'
base/api/users/controllers.py:4: error: Module 'fastapi' has no attribute 'HTTPException'

on such import statement:

from fastapi import Depends, HTTPException

Tried using

from fastapi import Depends as Depends
from fastapi import HTTPException as HTTPException

as per recommendations in tiangolo/typer#112 discussion. But the errors remain.

It seems that adding all to the init.py files for the stuff that's reexported is a way to go (as per python/mypy#7042 discussion).

Thanks for considering this!

Issue 2:
Description

I want to use the jwt auth, and learn the tutorial about it. There are sth confused me:

@router.post('/token')
async def login(form_data: OAuth2PasswordRequestForm = Depends()):
user = await authenticate_user(form_data.username, form_data.password)
if not user:
raise HTTPException(status_code=400, detail='incorrect username')
access_token_expires = timedelta(minutes=ACCESS_TOKEN_EXPIRE_MINUTES)
access_token = await create_access_token(data={'sub': user.username}, expires_delta=access_token_expires)
return {'access_token': access_token, 'token_type': 'bearer'}

If login success, the token will be returned , and next time you send other request need auth like

oauth2_scheme = OAuth2PasswordBearer(tokenUrl='/token')
async def get_current_user(token: str=Depends(oauth2_scheme)):
pass

How does it works the next request was added a header with Authorization: Bear automically? Where does the token returned stored?

When I replace the Form with json, the following requests after login are failing to be with Auth Header

async def login(user_data: schemas.UserLogin):
pass

I am sorry about my English and less experience about auth in Web, wish you could solve my confusion. Thanks in advance.
Issue 1:
nicolas de loof opened SPR-1018 and commented

Some classes don't expose a plublic setter for internal list (as an example, commons-configuration CompositeConfiguration) bue some addXXX(item) method.

As suggested in http://forum.springframework.org/viewtopic.php?t=3617

a beanPostProcessor can be used to setup a bean from a List using iterative call to the add method.

Affects: 1.2.2

Attachments:

patch_spring.txt (4.60 kB)

Issue Links:

#4961 Please improve BeanFactory support for containers & collections ("duplicates")

5 votes, 3 watchers

Issue 2:
Ben Hutchison opened SPR-230* and commented

Objects that contain other objects (common examples include Swing Containers and the Collections classes) frequently cannot have their initial state specified through setting javabeans properties alone.

This is a request for the spring core to include extensions to the syntax of the applicationContext.xml to allow such objects to be setup completely from XML. Some reasonably conveinient syntax is needed that allows methods like "add()" to be invoked on the bean at construction time. Ideally, I think the syntax should allow any arbritrary methods to be called on a bean during preparation.

There is a clear precendent to be found in the design of the java.beans.XMLEncoder/Decoder classes, designed to support long term bean perisstence. Consider the extract below generated by XML-serializing a List:

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

<java version="1.4.2_03" class="java.beans.XMLDecoder">

<object class="java.util.ArrayList">

<void method="add">

<string>item</string>

</void>

</object>

</java>

Evidently, it was recognized as an important feature as its present from the first release of the peristence mechanism.

Consider what is not readily doable from XML without this feature:

Cannot create any Swing component heirarchies.

Cannot initialize custom collections (ie anything not a vanilla set/map/list impl), unless it provides a copy-constructor.

Cannot init arbritrary state on objects which do not observe the get/setXXX convention (and legacy code is littered with them).

Affects: 1.0.2

Attachments:

SPR-230.patch (137.30 kB)

Issue Links:

#7195 Allow setting of properties without a javabean setter ("is duplicated by")

#7222 Support JavaBean Eventing methods in Spring ("is duplicated by")

#7488 "adder" injection in addition to "setter" (invoke addXX() instead of setXX()) ("is duplicated by")

#5727 support "add"-style List injection ("is duplicated by")

32 votes, 28 watchers
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

When Dialog closes, Tooltip should not appear again.

Current Behavior

Tooltip appears again, need to have a click somewhere to let it disappears.

Steps to Reproduce (for bugs)

Wrap a Button that will open a Dialog on click with a Tooltip

Hover on the Button, Tooltip appears

Click on the Button, Tooltip disappears, Dialog opens.

Close Dialog, Tooltip appears again. Need to have another click to let it disappears

https://codesandbox.io/s/7k0xp95o0j

Your Environment

Tech
Version

Material-UI
v1.0.0-beta.21

React
16.0.0

browser
Chrome Canary 64.0.3265.0

Issue 2:
I have a RaisedButton I am trying to label with a KaTeX rendered span. The content of the label is hidden behind the button and the button is clickable far underneath the button.

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

Expected Behavior

The button should render with the label visible and only be clickable over the actual button.

Current Behavior

Here is a screenshot of what I am seeing:

The label can be seen hiding behind the button. This also occurs on buttons with no overflow, but then it just looks like a blue button...

Steps to Reproduce (for bugs)

Here is a codesandbox.io: https://codesandbox.io/s/92484n34z4

Create a RaisedButton with some katex in the label

Hover over the space beneath the button and notice that it is clickable

Notice the label is not visible

Context

I am trying to render a series of several buttons with possible responses to a math problem prompt.

Your Environment

Tech
Version

Material-UI
0.19.3

React
16.0.0

browser
Chrome

katex
0.8.3
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18898.1000]
Windows Terminal version: commit 6c7dfd2ce45841d32f3990147506de2f7903485d

Steps to reproduce

Open the Terminal app and try to type any character that requires Alt-Gr, e.g., {, [ or \ on a German keyboard (probably affects other locales too).

Expected behavior

The terminal should show the character(s).

Actual behavior

The terminal shows control sequences or nothing:

Issue 2:
Your Windows build number:

10.0.18362.86

What you're doing and what's happening:

Trying to enter the @ sign on a Swedish keyboard in a PowerShell console using Alt Gr + 2.

See animated gif:

What's wrong / what should be happening instead:

Windows terminal shows digit-argument instead of outputting the @ sign as expected.

It's possible this is a PEBKAC error somehow but the problem doesn't show up in the normal PowerShell console... 😓
Issue 1:
This is also present in Julia v1.1:

julia> struct ProductSpace{T<:Tuple}
end

julia> using StaticArrays
[ Info: Precompiling StaticArrays [90137ffa-7385-5640-81b9-e52037218182]

julia> function convert_space(::Type{ProductSpace{Tuple{SVector{M,T},T}}}, x::SVector{N,T}) where {N,M,T}
end
convert_space (generic function with 1 method)

julia> function convert_space(::Type{ProductSpace{Tuple{T,SVector{M,T}}}}, x::SVector{N,T}) where {N,M,T}
end
ERROR: StackOverflowError:
Stacktrace:
[1] top-level scope at REPL[4]:1

julia> versioninfo()
Julia Version 1.3.0-DEV.121
Commit dc6c7c7e6f (2019-04-27 03:49 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin18.5.0)
CPU: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.1 (ORCJIT, skylake)

Issue 2:
I'm making a new issue for an older issue (#22239) that was partially fixed. The problem is a StackOverflow error in the following minimal working example:

bar(::Type{Val{Tuple{Tuple{T},T}}}, ::Val{T}) where {T} = 1
bar(::Type{Val{Tuple{T,Tuple{T}}}}, ::Val{T}) where {T} = 2

The output using the current nightly build is:

ERROR: LoadError: StackOverflowError:
Stacktrace:
[1] top-level scope
[2] include at ./boot.jl:306 [inlined]
[3] include_relative(::Module, ::String) at ./loading.jl:1072
[4] include(::Module, ::String) at ./sysimg.jl:29
[5] exec_options(::Base.JLOptions) at ./client.jl:327
[6] _start() at ./client.jl:455
in expression starting at /tmp/mwe.jl:2

As @martinholters pointed out in #22239, the error results from typeintersect as follows:

julia> typeintersect(Tuple{Type{Tuple{T,Val{T}}}, Val{T}} where T, Tuple{Type{Tuple{Val{T},T}}, Val{T}} where T)
ERROR: StackOverflowError:
Stacktrace:
[1] typeintersect(::Any, ::Any) at ./reflection.jl:469
[2] top-level scope

Above examples were tested today on master:

julia> versioninfo()
Julia Version 0.7.0-DEV.4594
Commit 29a1719f95 (2018-03-15 22:41 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, ivybridge)
Environment:

The examples do also lead to similar errors on 0.6.2.
Issue 1:
Since 2.7, it's recommended to use absolute_url to generate absolute assets URL (http://symfony.com/blog/new-in-symfony-2-7-the-new-asset-component).

However, in a console command, absolute_url does not rely on request_context and, therefore, cannot generate reliable asset URLs...

Reproduction:

Clone: lemoinem/symfony-standard@c5bcfb4 (branch: bug/absolute-url-in-command)

(No DB, nor mailer config required)

Command: php app/console TEST:absolute-url

Issue 2:
Hi,

I m trying to send emails from the CLI (with a valid scheme/host)

For the {{ url('app_homepage') }} => it works (cf http://symfony.com/doc/current/cookbook/console/sending_emails.html#configuring-the-request-context-per-command)

For the {{ absolute_url(asset('img/app.jpg')) }} => does not work

Is this a bug or I should use a different way to succeed ?

Many thanks for your answers,

Cheers,