sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: Set Selected ListView element, dynamically by code
Labels: c: new feature,framework,f: scrolling,c: proposal,P3,team-framework,triaged-framework

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case

     The problem is that there seems to be no way to set one particular ListView element based on input from another widget.

I have an application that has
1. Horizontal ListView with Flatbuttons (a lot of them like English alphabets), so all elements are not on screen at the same time.
2. PageView that has an equal number of pages as the ListView

When one of the FlatButtons in ListView is clicked, it animates the PageView to the page that has the same index as the pressed FlatButton in ListView, this works because there is a method animateToPage which takes the input of the index to go to.

One the other hand, if the page view is scrolled independently of ListView, there seems to be no way to animate ListView to highlight the FlatButton or bring it to focus or just on screen if it was not in the visible area of screen, corresponding to the page on display by scrolling PageView.

Jumpto or animateto are not much help as they work on different arithmetic which seems unrelated to index of the page.

I am looking for something that can realize the a Widget like below:
![snap](https://user-images.githubusercontent.com/51916021/88933094-3e87fb00-d27f-11ea-949a-c2159d6e0364.PNG)

This is still a problem.



## Proposal


It would be real nice if there could be a SETTER method or VARIABLE that could define the currently selected ListView/CustomScrollView item.
This should allow the item to be brought to focus preferable at the center of the visible screen area of the area occupied by ListView, in case the ListView item is off screenand needs to be scrolled to, to be reached.
Repository: pytorch
Issue: assertRaisesRegxWithHighlight isn't triggered correctly
Labels: oncall: jit


Patch:
https://github.com/pytorch/pytorch/pull/42259/files

Run:
test_any_return_type_disallowed

cc @gmagogsfm
Repository: neovim
Issue: Unlisted buffers of regular files should change to listed upon loading in window.
Labels: enhancement

<!-- Before reporting: search existing issues and check the FAQ. -->

- `nvim --version`: NVIM v0.5.0-590-gb39edb5b6
with hidden option on.

- Operating system/version: Linux

### Actual behaviour
I write a new file with `:w mynew.txt`. The new buffer created for this is unlisted.
I change to this buffer with `:b#`. The buffer is still unlisted.

### Expected behaviour
Loading the new buffer into a window should be enough to make this file listed without the extra `:edit` or `:set buflisted` commands.
Repository: godot
Issue: GDScript: no parser error when `super()` doesn't called in derived class
Labels: bug,topic:gdscript,regression

**Godot version:** v4.0.dev.custom_build 5ba46ddf8

**OS/device including version:** windows 10

**Issue description:**
it should remind to call `super()` if base class doesn't have any default constructor
```gdscript
class A:
	func _init(p):
		pass

class B extends A:
	func _init():  <-- no parser error here
		pass
		
```
Repository: godot
Issue: Can't use node path mode for Get translation node in vs
Labels: topic:visualscript

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version: v3.2.2.stable.official**
<!-- Specify commit hash if using non-official build. -->


**OS/device including version: GLES3**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->


**Issue description:** I change Set Mode from Self to Node Path for Get translation, but it can't find selected node in running. It seems like only can get self translation.
And, I find my vs file can run in root object. When I set target is RigidBody it can get world position, but when I set target is position3D(1) it get relative position. I realize Get translation node is get position for parent. 
I'm a beginner, I don't find a way to get world position for now. I don't know if the engine have this function. If it haven't, I hope it will add this function in future.
<!-- What happened, and what was expected. -->


**Steps to reproduce:**


**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
[test_godot.zip](https://github.com/godotengine/godot/files/5000531/test_godot.zip)
Repository: electron
Issue: Suggestion: Specify domains to be excluded from websecurity
Labels: enhancement :sparkles:

<!--  As an open source project with a dedicated but small maintainer team, it can sometimes take a long time for issues to be addressed so please be patient and we will get back to you as soon as we can.
-->

### Preflight Checklist
<!-- Please ensure you've completed the following steps by replacing [ ] with [x]-->

* [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
* [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
* [X] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

### Problem Description
So I have this music app that utliizes youtube. I'd like to add stuff to the youtube embed like an audio visualizer. Due to cross origin iframe rules this is impossible even with header modifacation. I'd like to use the contentDocument and contentWindow attributes to connect audionodes from the parent page. I know i can do this by turning websecurity off but the music app also supports other sites some which can possibly be malicious and take advantage of websecurity being off. 

### Proposed Solution
A. An special header sent allowing a parent page with a domain in the list of domains specified in the header to execute javascript.
B. A list of hosts that don't have websecurity applied to them that can be passed to webpreferences. So 
Suppose site A is on the host list
If site A iframes site B:
site A can execute javascript but site B can't iframe another site and execute js on it. 

### Alternatives Considered
I've considered injecting javascript into the iframe but looking webcontents and webframe I can only find the frames for devtools and the page but I can't find a frame for the iframe so I can't execute the js. 

### Additional Information
I'd like a nice solution to this. I don't want to end up injecting the javascript via webcontents or something and transferring data via post message because I'd have to exchange data on both sides.
Repository: excalidraw
Issue: Improve selection
Labels: enhancement

Right now selection observes z-index, but not size of the element. This is suboptimal. Consider this drawing:

<img width="456" alt="Screen Shot 2020-07-29 at 22 49 01" src="https://user-images.githubusercontent.com/1473433/88885627-b4438680-d1ed-11ea-848d-38bbcfa1c86f.png">

If I want to select the little orange dots, and I drew them before the lines and boxes, it's impossible. I first have to painstakingly send all the elements back, to be able to reach the element.

Instead, the algo should be like this:

1) Get all elements under cursor using the current hit test algo
2) Find the "relative size" to the cursor. There are basically 3 cases:
  a) Element is so small that it basically covered by cursor (like my orange dots)
  b) Element is linear
  c) Element is not linear
3) To choose which element to select: Go in the above order, and within each category go by z-index

In practice: If I'm click on a tiny dot, select it, even if there's a line/shape above it. If I'm clicking on a line, select it, even if there's a shape above it.

^ This is a conceptual algorithm, a real one might avoid having to do actual collision detection with every object under cursor.
Repository: flutter
Issue: Move autorolled code into separate licenses_golden files
Labels: team,engine,P2,team-engine,triaged-engine

Currently, updating any code (adding or removing any paths) in third_party is a nightmare. In theory, the process is:
1. Do all the normal work of updating the code
2. Run the license script, updating license and licenses_golden files as necessary
3. Upload the patch (and get it reviewed)
4. Wait for it to clear all the bots
5. Land it

In practice, that almost never works, because between step 2 and step 5, it's very likely that the Dart and/or Skia auto-roller will run, which touches `licenses_golden/licenses_third_party`. Importantly, in addition to whatever other changes it makes, it will change the signature at the top of that file.

So now you have to go back to step 2 and try again. It's already reviewed, so you don't need to wait for that, and maybe you're careful to constantly check back during step 4 (lowering overall productivity due to the interrupts), so the elapsed time until 5 is shorter. Maybe you're lucky this time. Or maybe not, because another auto-roll landed, and now you have to go back to step 2. All that's collided is the signature, but you still have to start the process again. And hope you're luckier this time. And that you don't have a meeting, or lose track of time while working on something else and forget to constantly check on step 4 and miss the window until you're sent back to step 2 yet again. I've been through this cycle 5 times on one PR before.

It would likely make things substantially less painful if we required that any auto-rolled code be split out from licenses_third_party into its own file so the autorollers aren't constantly fighting anyone trying to update code in third_party manually.

@Hixie for thoughts or other solutions.
Repository: go
Issue: x/website: include release date on dl page
Labels: NeedsInvestigation,FeatureRequest,website

It would be nice if the releases also had a line including the date they were released. I couldn't remember if I had rebuilt AMI's for 1.15rc1 or just beta1, but if the release date was present on the dl page, I would have been able to do so.
Repository: rust
Issue: Tracking Issue for the use of `?` in constants
Labels: C-tracking-issue,A-const-eval

The `?` operator expands to invoking `Try::into_result` for the argument and `Into::into` for the error of the result. In order to support these, we need to

* Figure out traits-in-const: https://github.com/rust-lang/rust/issues/110395
* stabilize `impl const Trait for Type` items https://github.com/rust-lang/rust/issues/67792
* implement `const Try` for `Result` and `Option` in libstd
* users need to implement `const Into` for their error types
    * Since we have an `impl<T> From<T> for T`, we have to make this a const impl, too, as well as the `impl<T: From<U>, U> Into<T> for U` impl
Repository: go
Issue: bytes: articulate the doc to show results of Split() given various inputs
Labels: Documentation,NeedsInvestigation

It would be nice if `bytes.Split()` documented whether it returns an empty slice as the first/last slice of subslices if the input starts with the separator sequence or ends with the separator sequence, and also what does `bytes.Split()` return given an empty input: empty slice or a slice containing a single element - an empty slice.
Repository: godot
Issue: Errors for Android and iOS plugins
Labels: bug,platform:ios,platform:android,topic:editor,topic:porting

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
<!-- Specify commit hash if using non-official build. -->
Godot 3.2.3.beta

**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
MacOSX 10.15.5 (19F101)

**Issue description:**
<!-- What happened, and what was expected. -->
I use custom android build and many remote plugins as described in this gdap file:
```
[config]

name="Amplitude"
binary_type="remote"
binary="ru.mobilap.godot:godot-amplitude:+"

[dependencies]

local=[]
remote=[]
custom_maven_repos=["https://dl.bintray.com/mobilap/maven/"]
```

When I open project I get in console a lot of errors:
```
ERROR: _get_modified_time: Failed to get modified time for: ru.mobilap.godot:godot-amplitude:+.
   At: drivers/unix/file_access_unix.cpp:321.
```

**Steps to reproduce:**
Use any remote Android plugin and open project in godot emulator.

**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
Repository: TypeScript
Issue: HTMLImageElement#crossOrigin should use literal union type from allowable values
Labels: Bug,Domain: lib.d.ts

**TypeScript Version:**  Nightly 2020-07-29

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** htmlimageelement crossorigin 

**Code**

````ts
const i = new Image(10, 10);
// @ts-expect-error
i.crossOrigin = "abc"; // Must be "anonymous" or "use-credentials"
````

**Expected behavior:**

Type should be defined with string literals, per this [MDN page](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/crossOrigin)

**Actual behavior:**

Property is typed as `string | null`.

----

[Playground Link](https://www.typescriptlang.org/play/?ts=4.0.0-dev.20200730&ssl=4&ssc=1&pln=1&pc=20#code/MYewdgzgLgBAljAvDMBTA7jAkgWwIYDmqAFAIwAMANDBQJQDcAsAFAD0rMAAlBALSoAPAA6pgUfgCcJICSzgA6YNIgQA8hLgE4YJDABEeAEbA9TZkA)
Repository: TypeScript
Issue: Improve intellisense for classes that have static methods
Labels: Suggestion,Experience Enhancement

## Search Terms
intellisense static methods on top

## Suggestion
Static methods should appear on top of intellisense suggestions.
Or, add a way to hide other methods (see screenshot)

## Use Cases
It would allow to access method name faster rather than search through whole of unneeded methods.

## Examples
[link to playground](https://www.typescriptlang.org/play/#code/MYGwhgzhAEAqCmEAu0DeAoaXoAcCuARiAJbDTJhKnQDm8SSAntALzQAUAlKwHxoC+6QegTIAdEA)
![image](https://user-images.githubusercontent.com/3505777/88914562-79803380-d26b-11ea-9ab7-0820ee6ac166.png)

## Checklist

My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: pytorch
Issue: Is it possible that one-version pytorch supports two gpu (GTX TITAN X and TITAN) using at the same time?
Labels: module: cuda,triaged

## 🐛 Bug

I have two individual gpu cards on my computer (of which are GTX TITAN X and TITAN), but when I use pytorch to create a tensor on gpu TITAN X, it shows that "Cuda error: no kernel image is available for execution on the device". It is okay to create a tensor on gpu TITAN.

Actually I noticed this issue [Cuda error: no kernel image is available for execution on the device #31285](https://github.com/pytorch/pytorch/issues/31285) when I first install Pytorch with only one gpu TITAN on my computer. And I did what the answers suggested under this issue. (Yes I install Pytorch from source due to the limited cuda compute capacity for TITAN)

Recently I just got another gpu card TITAN X, so I install it on my computer. But I just cannot use the existing Pytorch to support the TITAN X.

Here is one example code of this error:
```
import torch
a=torch.rand(2,3).cuda(0)
b=torch.rand(2,3).cuda(1)
```
When runing the second line, it works normally (as device 0 refers to the old gpu card TITAN). When running the third line, it throws the error "Cuda error: no kernel image is available for execution on the device".

So I am wondering is it possible that one-version pytorch supports two gpu (GTX TITAN X and TITAN) using at the same time?

## Environment

 - PyTorch Version (e.g., 1.0): 1.7.0a0+e7a09b4 (kind of weird)
 - OS (e.g., Linux): Ubuntu 18.04 LTS
 - How you installed PyTorch (`conda`, `pip`, source): conda
 - Build command you used (if compiling from source): install from source code according to the tutorial offcially
 - Python version: 3.7
 - CUDA/cuDNN version: 10.2 CUDA
 - GPU models and configuration: TITAN (works fine) and TITAN X (cannot work under this version of torch)
 - Any other relevant information:

## Additional context

<!-- Add any other context about the problem here. -->


cc @ngimel
Repository: opencv
Issue: why cuda module's PointFilter use round towards zero not round towards nearest
Labels: category: gpu/cuda (contrib),needs investigation

##### Detailed description

I have read the source code of cuda module for cv::cuda::warpAffine function. 
But I found that cuda module implements Nearest Interpolation use PointFilter which is not using nearest method.

Why is that? Is it a bug?

##### Steps to reproduce
https://github.com/opencv/opencv/blob/a2f7ef9d210e5be5741c6e3109c233672534a1ed/modules/core/include/opencv2/core/cuda/filters.hpp#L73
Repository: TypeScript
Issue: proposal-record-tuple
Labels: Suggestion,Waiting for TC39

https://github.com/tc39/proposal-record-tuple is stage-2.
I haven't found related issue and I created this.
I'm a little worry about the global Record object and our utils type Record<>.
Repository: pytorch
Issue: frame_length reference in pytorch.stft documentation
Labels: module: docs,triaged

## 📚 Documentation

Hi,

On the web page https://pytorch.org/docs/master/generated/torch.stft.htmlwhich documents torch.stft, normalization is defined as follows:

f normalized is True (default is False), the function returns the normalized STFT results, i.e., multiplied by (frame_length)−0.5(\text{frame\_length})^{-0.5}(frame_length)−0.5 .

But frame_length is not defined anywhere on the page.  I think frame_length should be "win_length", which later on the page is defined to be the size of a window frame.

Bruce Maggs


cc @jlin27
Repository: rust
Issue: Support for converting OpenOptions to c_int on UNIX
Labels: T-libs-api,C-feature-request,A-io

AFAICT, there's no public API for converting OpenOptions to c_int on UNIX platforms, meaning you cannot use an OpenOptions to open a file yourself using a lower level API from C. For example, this means that I cannot just re-use the OpenOptions type from std in ringbahn, which opens a file using io-uring instead of using the open syscall.

Some way under `std::os::unix` to convert OpenOptions to c_int would be helpful to avoid duplication. Ideally it would be a method on `OpenOptionsExt`, but I'm not sure how that could be non-breaking since there is no obvious default implementation. It may just have to be a free function.
Repository: excalidraw
Issue: Umbrella: Line editing improvements
Labels: enhancement

### features

- [x] support editing multiple points at once
	- [x] support box-select for selecting multiple points (we'll need to not exit editor on pointerdown or if dragging occurred)
- [ ] add hover state for points
- [ ] Add ability to add a point on either side of a linear element #1895
- [x] support SHIFT to lock line angle when dragging a point same as we allow for 2-point lines
- [ ] support dragging soft-merged terminal points as if it was a single point (alternative would be to actually merge them, but it would change rendering for non-sharp lines) https://github.com/excalidraw/excalidraw/issues/2035

### bugs

- [ ] the uncommitted point when you hold Alt is not removed immediately after Alt release (you need to move cursor afterwards) #2002

### UX/undecided

- [ ] Auto-closing shapes ("merging" start and end points) is often not what you want when drawing precision shapes. Not sure what's the best default here.
- [ ] You often drag the whole line instead of a point if your click was misplaced.
Repository: TypeScript
Issue: Overload resolution selects most narrow overload when `any` is involved
Labels: Bug

<!-- 🚨 STOP 🚨 STOP 🚨 STOP 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section!

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ

Please fill in the *entire* template below.
-->

<!--
Please try to reproduce the issue with the latest published version. It may have already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly
-->
**TypeScript Version:**  4.0.0-dev.20200730

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** any overload

**Code**

```ts
declare class Endpoint {}

declare function getEndpoint(index: number): Endpoint | undefined;
declare function getEndpoint(index: 0): Endpoint;

declare const i1: number | undefined;
const e1 = getEndpoint(i1 ?? 0); // Endpoint | undefined, as expected

declare const i2: any;
const e2 = getEndpoint(i2); // Endpoint, expected Endpoint | undefined
```

**Expected behavior:**
The type of `e2` should include `undefined`, since we cannot know that the most narrow overload always matches.

**Actual behavior:**
It does not.

I understand that it is not always possible to select a sound overload, especially when the possible argument types are not strictly subsets of each other. However choosing the most narrow overload does not seem correct.
Take this extension of the repro for example:

```ts
declare class Endpoint {}

declare function getEndpoint(index: number): Endpoint | undefined;
declare function getEndpoint(index: 1 | 2): "FOOBAR";
declare function getEndpoint(index: 0): Endpoint;

declare const i3: any;
const e3 = getEndpoint(i3);
```
Here, `e3` is inferred as `Endpoint`. When I change the argument in the 2nd overload to `1` instead of `1 | 2`, `e3` suddenly has type `"FOOBAR"`. I would argue that it is not possible to narrow to any overload here, since `i3` could be any `number` (or even any other type). 
Therefore I believe that the most sound result would be the union of all return types, that is `Endpoint | undefined | "FOOBAR"`.

**Playground Link:** [Playground Link](https://www.staging-typescript.org/play?ssl=3&ssc=1&pln=12&pc=1#code/CYUwxgNghgTiAEkoGdnwKIDtgAcD2AlpgC7wDeAvgLABQtoSc8AZgK6ZjEF6bwDmIYllyESACiKgAHgC54mVgFsARiBgBKOcPxFSAH3jtQzIiGABueuGhM2HLj36Dto4hOwhZ8AAzwDARk14ACIAMQB5cIAhAEEAJWDLGgYbBDtObl4BIWwdcUlPOW8gl10kq0YEMB5kUgJ-OQUVNT9DDxNMMyTqzFr4EH94AF4nHJFdCUGAfimfdXN4AHpFjFzXVqMQDrMAGngUfqkccGIzWgrUxBq6gCY5KEwAT27r-pvh0dL8m-mlla-iHtPMdOGZVuMSBt2qZgLQgA)

**Related Issues:** none found that seems to match this one