sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: go/types,cmd/compile/internal/types2: extend types.Info with implicit conversions from assignability
Labels: NeedsInvestigation,compiler/runtime

Currently, a statement like `a = b` may require an implicit conversion of `b` to `a`'s type before the assignment can happen. In particular, for conversions to interface type, these generally require a run-time operation to change the value representation. (An implicit conversion can also happen for assignments between defined types and their underlying type literal or assignments from unrestricted channel types to send/receive-only channel types; but these are more of a formality, since Go implementations in practice use identical value representations for these cases.)

go/types provides enough information for users to infer/reconstruct these implicit conversions, but go/types already has to handle this as part of type checking anyway. So we might as well surface the information to users, so they don't have to remember all of the cases where implicit conversions happen.

My thoughts were along the lines of either:

1. Add a `types.Info.ImplicitTypes` map of type `map[ast.Expr]types.Type`, which will record the type that the expression needs to be implicitly converted, if it differs from `types.Info.Types[e].Type`. (E.g., for `var x int = int(42)`, `int(42)` would not need an entry in this map, because `int(42)` is already the same type as it's assigned to; but `var x interface{} = int(42)` would have an entry.)
2. Same idea, but extend `types.TypeAndValue` with an extra `Implicit Type` field. Might be simpler/cleaner in some use cases, but it also implies more memory consumption (which I think at least gopls is very sensitive to).

Further, for N:1 assignments, I'd suggest the ImplicitTypes be present and a synthesized Tuple type if any of the respective tuple elements need implicit conversion. For example:

```
type MyBool bool
var f func() (int, int)
var g func(interface{}, interface{})
var a int
var b interface{}
var x MyBool

a, b = f() // 'f()' has Type (int, int); but ImplicitType (int, interface{}), due to assignment to a,b

g(f()) // 'f()' has Type (int, int); but ImplicitType (interface{}, interface{}), due to passing to g()

b, x = b.(int) // 'b.(int)' has Type (int, MyBool†); but ImplicitType (interface{}, MyBool), due to assignment to b,x
// † cmd/compile's legacy typechecker produces 'MyBool' in this case, but I think 'bool' or 'untyped bool' would be okay too
```

Incidentally, I think having a way to record separate types for the expression in isolation vs expression in context could help with cases like #13061.

/cc @griesemer @findleyr
Repository: terminal
Issue: GetConsoleScreenBufferInfoEx doesn't return the actual palette
Labels: Product-Conpty,Area-Server,Issue-Task,Priority-3

### Windows Terminal version (or Windows build number)

1.9.1523.0

### Other Software

_No response_

### Steps to reproduce

1. Compile the following code:
```C++
#include <iomanip>
#include <iostream>

#include <windows.h>


int main()
{
	CONSOLE_SCREEN_BUFFER_INFOEX Info{ sizeof(Info) };
	if (!GetConsoleScreenBufferInfoEx(GetStdHandle(STD_OUTPUT_HANDLE), &Info))
		return 1;

	for (const auto& i: Info.ColorTable)
	{
		std::cout << std::hex << std::setw(8) << std::setfill('0') << i << '\n';
	}

	std::cout.flush();
}

```
2. Set WT palette to "Vintage" in settings
3. Run the compiled code

### Expected Behavior

The same colour codes as in the corresponding section of `C:\Program Files\WindowsApps\Microsoft.WindowsTerminalPreview_1.9.1523.0_x64__8wekyb3d8bbwe\defaults.json`:
```
000000
800000
008000
808000
000080
800080
008080
C0C0C0
808080
FF0000
00FF00
FFFF00
0000FF
FF00FF
00FFFF
FFFFFF
```

### Actual Behavior

It looks like the default Windows 10 palette is returned instead:

```
000c0c0c
00da3700
000ea113
00dd963a
001f0fc5
00981788
00009cc1
00cccccc
00767676
00ff783b
000cc616
00d6d661
005648e7
009e00b4
00a5f1f9
00f2f2f2
```
Repository: rust
Issue: Functions/closures do not coerce to trait objects and give confusing diagnostics
Labels: A-diagnostics,T-compiler,A-coercions,D-confusing,A-trait-objects

Bad case:

```rust
pub trait Foo {}
impl Foo for fn() {}

pub fn bar() {}
const FOOBAR: &'static dyn Foo = &bar;
```

```
error[E0277]: the trait bound `fn() {bar}: Foo` is not satisfied
 --> bug.rs:5:34
  |
5 | const FOOBAR: &'static dyn Foo = &bar;
  |                                  ^^^^ the trait `Foo` is not implemented for `fn() {bar}`
  |
  = note: required for the cast to the object type `dyn Foo`
```

Worse case:

```rust
pub trait Foo {}
impl Foo for fn() {}

const FOOBAR: &'static dyn Foo = &||{};
```

```
error[E0277]: the trait bound `[closure@bug.rs:5:35: 5:39]: Foo` is not satisfied
 --> bug.rs:5:34
  |
5 | const FOOBAR: &'static dyn Foo = &||{};
  |                                  ^^^^^ the trait `Foo` is not implemented for `[closure@bug.rs:5:35: 5:39]`
  |
  = note: required for the cast to the object type `dyn Foo`
```

In all cases, the workaround is to cast to the function type, for example `&(||{} as fn())`. But this is not obvious, not hinted by the diagnostic, and it is surprising that it is required. Moreover, it can in one case produce an even worse diagnostic:

```
error[E0308]: mismatched types
 --> bug.rs:5:34
  |
5 | const FOOBAR: &'static dyn Foo = &(bar as fn(_));
  |                                  ^^^^^^^^^^^^^^^ one type is more general than the other
  |
  = note: expected trait `Foo`
             found trait `Foo`
```

It would be most convenient if no casting would be needed. If casting is unavoidable however, the diagnostic could at least hint this.

These are minimal cases with minimally complicated types. In practice the problem will be less clear. Consider for example that the type signature shown in the diagnostic may include implied lifetime details. It is then easy to mistakenly assume that the lifetimes are the problem.

A practical use of this coercion is making type-safe arrays of pointers to functions with diverse signatures. In such a context it can be especially annoying to have to write each signature twice (in the function/closure definition and in the cast).
Repository: react
Issue: [DevTools] Show which hooks (names) changed in the Profiler
Labels: Component: Developer Tools,React Core Team

Hooks are the preferred way for writing stateful React components, but there are a few things about them that still lag behind the class component API: profiling (since DevTools just shows “hooks changed” rather than which ones changed).

Building on top of the initial named hooks release _and_ the experimental `enableProfilerChangedHookIndices` feature flag, the Profiler should show the “names” of hooks that changed between renders. (Because this would be expensive to eagerly calculate, we would need to add a post-processing phase to the profiler, like Chrome has, where we loaded and parsed names<sup>1</sup>.) 

Note that this issue will also resolve #16477.

<sup>1</sup> We may only want to do this for components that are still mounted in the Fiber tree.
Repository: three.js
Issue: Support for multiple XRProjectionLayers
Labels: Enhancement

**Is your feature request related to a problem? Please describe.**

The best illustration of the problem is if you want to do the following: 
1. create an XRProjectionLayer with some 3D environment
2. create a XRQuadLayer with some media (photo / video)
3. create an XRProjectionLayer for controllers / hands / cursors to always be the last thing rendered (top) 

Currently there is no way to define the elements from a scene that should be included in projLayer1 and also define the other elements that should be on projLayer2.

**Describe the solution you'd like**

Ideally you'd be able to do something like:

` session.updateRenderState({ layers: [projLayer1, mediaLayer, projLayer2] });`

Potentially, projLayer1 and projLayer2 could each be defined by an instance of a new class called XRProjectionLayerGroup that extends THREE.Group. The WebXRManager could check the scene children for instances of XRProjectionLayerGroup to create multiple projection layers.  

The current implementation of xr layers seems to only allow the creation of a single projection layer from a single threejs scene / renderer. As you can see [here](https://github.com/mrdoob/three.js/blob/d0340e3a147e290fa86d14bc3ed97d8e1c20602e/examples/webxr_vr_layers.html#L208) the projection layer is session.renderState.layers[ 0 ]  which is set by the WebXRManager. For someone to create a second projection layer from a group of elements within the same scene, I believe they'd have to implement their own version of WebXRManager and they'd also have to figure out how to render the two groups of elements separately.
Repository: PowerToys
Issue: When installing elevate privileges before downloading files
Labels: Issue-Bug,Area-Setup/Install

### Description of the new feature / enhancement

When installing, elevate privileges and get the user's authorisation before downloading any files.

Currently it downloads a bunch of .NET files, then asks for authorisation, then if you don't have admin rights you've already downloaded a bunch of files for no reason.

### Scenario when this would be used?

When installing, so that people aren't unnecessarily downloading files that might never be used.

### Supporting information

_No response_
Repository: PowerToys
Issue: Change name color when editing zone
Labels: FancyZones-Editor,Product-FancyZones,Area-User Interface,Area-Accessibility,Cost-Small

I use Dark Mode. When editing a layout, its name is dark blue, making the name difficult to read on the dark grey background.
![image](https://user-images.githubusercontent.com/34351954/125375975-01196200-e358-11eb-9641-26519516eee4.png)
Repository: TypeScript
Issue: [Meta] Support Inline Completions related features.
Labels: Suggestion,In Discussion

# Suggestion

<!--
  Please fill in each section completely. Thank you!
-->

## 🔍 Search Terms
inline, completions
<!--
  💡 Did you know? TypeScript has over 2,000 open suggestions!
  🔎 Please search thoroughly before logging new feature requests as most common ideas already have a proposal in progress.
  The "Common Feature Requests" section of the FAQ lists many popular requests: https://github.com/Microsoft/TypeScript/wiki/FAQ#common-feature-requests

  Replace the text below:
-->


## ✅ Viability Checklist

<!--
   Suggestions that don't meet all these criteria are very, very unlikely to be accepted.
   We always recommend reviewing the TypeScript design goals before investing time writing
   a proposal for ideas outside the scope of the project.
-->
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, new syntax sugar for JS, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).


## ⭐ Suggestion

VScode has supported inline completions: https://github.com/microsoft/vscode/blob/main/src/vs/vscode.proposed.d.ts#L2576.

Let's find out what can we do with the new API.
Repository: ant-design
Issue: 如何在树形table内 使用rowspan 合并多行
Labels: Inactive

- [ ] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/shuxingshujuzhanshi-antd4167-forked-736pq?file=/index.js)

### Steps to reproduce
设置index ===0 rowspan = 2

### What is expected?
希望合并的包括子行 而不是只有父级
![image](https://user-images.githubusercontent.com/39515047/125405578-7897d180-e3ea-11eb-8599-cb29a5f5b94e.png)


### What is actually happening?
因为父子行index 相同  导致合并效果与预期不符，请问如何实现预期效果呢
![screenshot-20210713-145657](https://user-images.githubusercontent.com/39515047/125405721-9b29ea80-e3ea-11eb-88fb-2a2bba4ce381.png)

| Environment | Info |
|---|---|
| antd | 4.16.7 |
| React | 17.0.2 |
| System | window |
| Browser | chrome 91.0.4472.124 |


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: pytorch
Issue: [nn] Passing dtype to `_stacklevel` argument in `log_softmax` silently works
Labels: module: bc-breaking,module: nn,triaged,module: deprecation,module: functional UX,topic: bc breaking

Docs: https://pytorch.org/docs/stable/generated/torch.nn.functional.log_softmax.html

Signature: `torch.nn.functional.log_softmax(input, dim=None, _stacklevel=3, dtype=None)`

Passing `torch.dtype` to `_stacklevel` should ideally raise an error but it works silently discarding the dtype.

```python
>>> import torch
>>> t = torch.ones(2,2)
>>> torch.nn.functional.log_softmax(t, 0, torch.float64)
tensor([[-0.6931, -0.6931],
        [-0.6931, -0.6931]]) # Not torch.float64
```

`dtype` should have earlier position than `_stacklevel`. Also ideally `_stacklevel` should be a kwarg-only argument. But those changes would be BC-breaking.


cc @ezyang @gchanan @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki @zou3519 @ngimel
Repository: flutter
Issue: DropdownButtonFormField changes not absorbing Form onChanged Function
Labels: framework,f: material design,has reproducible steps,found in release: 2.2,found in release: 2.4,team-design,triaged-design

I tried to get Form field if any changes happen then run few operations. But, DropdownButtonFormField changes not listen Form onchanged funciton.

```
Form(
onChanged: () {
print('change Happned');
},
key: _formKey,
child: DropdownButtonFormField<String>(
                        isExpanded: true,
                        decoration: InputDecoration(
                            labelText: 'Label',
                            isDense: true,
                            contentPadding:
                                EdgeInsets.symmetric(
                                    vertical: 6.0)),
                        value: _emailAddressLabelValue,
                        focusNode: _emailAddressLabelNode,
                        hint: Text('Label'),
                        items: <String>[
                          'Home',
                          'Work',
                          'Other'
                        ]
                            .map((label) => DropdownMenuItem(
                                  child: Text(
                                    label,
                                    overflow:
                                        TextOverflow.ellipsis,
                                  ),
                                  value: label,
                                ))
                            .toList(),
                        onChanged: (value) {
                                setState(() {
                                  _emailAddressLabelValue =
                                      value!;
                                });
                              },
                      )
)
```
Repository: ant-design
Issue: Menu组件在左侧收起情况下，点击某个菜单，菜单会消失
Labels: Inactive

- [ ] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### What problem does this feature solve?
这是列子：https://codesandbox.io/s/suoqineiqiancaidan-antd4167-forked-lfggy?file=/index.js
我的页面布局现在是这样，左侧是菜单，头部有个标签页切换，会记录我打开的菜单。
现在我左侧菜单是收缩起来的情况，inlineCollapsed={true}，然后点击我菜单项，我打开的菜单页一下就消失了，我想连续点击多打开几个标签页，又得重新去选择菜单，很麻烦。


### What does the proposed API look like?
期望有个参数控制，默认菜单页是点击以后关闭的，当我设置某个参数后，点击菜单项，不会关闭。


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: vscode
Issue: editor.scrollbar.scrollByPage doesn't work correctly when Option-clicking (Mac)
Labels: feature-request,macos,editor-scrollbar


Issue Type: <b>Bug</b>

The new editor.scrollbar.scrollByPage set to true now works correctly (Mac) (thanks) when clicking in the elevator area of scroll bars. However, Option-clicking in the elevator should jump the thumbar to the clicked-on position according to normal Mac behavior. Currently (1.58), this does not happen but instead behaves as a normal click.

VS Code version: Code 1.58.0 (2d23c42a936db1c7b3b06f918cde29561cc47cd6, 2021-07-08T06:54:17.694Z)
OS version: Darwin x64 15.6.0
Restricted Mode: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM)2 Duo CPU     P8600  @ 2.40GHz (2 x 2400)|
|GPU Status|2d_canvas: unavailable_software<br>gpu_compositing: disabled_software<br>metal: disabled_off<br>multiple_raster_threads: disabled_off<br>oop_rasterization: disabled_off<br>opengl: disabled_off<br>rasterization: disabled_software<br>skia_renderer: disabled_off_ok<br>video_decode: disabled_software<br>webgl: unavailable_software<br>webgl2: unavailable_software|
|Load (avg)|2, 4, 3|
|Memory (System)|8.00GB (0.31GB free)|
|Process Argv|-psn_0_2917064|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (44)</summary>

Extension|Author (truncated)|Version
---|---|---
lua-debug|act|1.41.0
ada|Ada|22.0.8
Bookmarks|ale|13.1.0
pascal|ale|9.3.0
pascal-formatter|ale|2.5.0
project-manager|ale|12.3.0
rtf|ale|2.3.0
vscode-mac-color-picker|dae|1.0.2
textpad-icon-theme|dam|1.19.21
vscode-markdownlint|Dav|0.42.1
vscode-great-icons|emm|2.1.79
ada-snippets|Ent|0.3.0
vscode-faust|gle|1.1.0
vscode-lyx|gyt|0.0.4
fortran-ls|han|0.6.2
latex-workshop|Jam|8.19.2
svn-scm|joh|2.13.6
language-julia|jul|1.2.5
keen-neutral-icon-theme|kee|1.0.8
linter-gfortran|krv|2.2.2
octave|lea|0.1.1
eps-preview|mkv|0.1.0
python|ms-|2021.6.944021595
vscode-pylance|ms-|2021.7.2
jupyter|ms-|2021.8.1013163132
cpptools|ms-|1.5.1
postscript|mxs|1.0.1
vscode-json-editor|nic|0.3.0
vsc-octave-debugger|pau|0.4.17
bib|phr|0.3.0
seti-icons|qin|0.1.3
ipf|qms|1.0.1
lualint|sat|0.0.5
bash-beautify|sha|0.1.1
markdown-preview-enhanced|shd|0.5.22
octave|toa|0.0.3
pdf|tom|1.1.0
vscode-lua|tri|0.12.4
vscode-icons|vsc|11.5.0
vscode-icons-mac|way|7.25.3
debug|web|0.25.1
txt-syntax|xsh|0.1.6
markdown-all-in-one|yzh|3.4.0
json|Zai|2.0.2

(4 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551:30311712
vspre833:30321513
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscus158:30321503
pythonvsuse255:30335481
vscod805cf:30301675
pythonvspyt200:30331937
vscextlangct:30333562
binariesv615:30325510
bridge0708:30335490

```

</details>

<!-- generated by issue reporter -->
Repository: deno
Issue: Proposal: Make import map works in X-Typescript-Types
Labels: suggestion

Currently, X-Typescript-Types can only work with http/https url (including internal reference)

Those response are invalid:
(note: assuming that all referenced names are defined in import maps)
`X-Typescript-Types: <a working url but it import some library that need import map to work, aka peer dependencies>`
`X-Typescript-Types: ~/my-local-override.d.ts`
Repository: PowerToys
Issue: [KBM] Auto-select keymap according to keyboard being typed on
Labels: Idea-Enhancement,Product-Keyboard Shortcut Manager

### Description of the new feature / enhancement

The feature that is provided by https://github.com/gmcouto/RightKeyboard would be a logical addition to the Keyboard Manager. When starting to type on an external keyboard it makes sense to automatically switch to the appropriate keymap for that keyboard, and back when resuming to type on another keyboard with another matching layout.

### Scenario when this would be used?

E.g. when using multilingual keyboards in different incompatible writing systems. I have a Bluetooth Cyrillic keyboard and a normal Latin laptop keyboard. There is a logical one-to-one correspondence between what keyboard is being typed on and what keyboard layout (US-Intl / RUS) to switch to. Doing so manually is annoying and error-prone, even when using the Alt-Shift shortcut provided by Windows.
The https://github.com/gmcouto/RightKeyboard is already a working solution, but conceptually this feature would really fit well in the Keyboard Manager of Powertoys.

### Supporting information

_No response_
Repository: go
Issue: x/mobile:  The network of built iOS framework did not follow iOS system proxy setting
Labels: NeedsInvestigation,mobile

<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.16.4 darwin/amd64
</pre>

### Does this issue reproduce with the latest release?
Yes


### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/miller/Library/Caches/go-build"
GOENV="/Users/miller/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/miller/go/pkg/mod"
GOOS="darwin"
GOPATH="/Users/miller/go"
GOPROXY="direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.16.4"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/miller/work/mobile_lib-up/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/yl/g7gxm3p11wx1jmf9db2jtlh80000gn/T/go-build3020972396=/tmp/go-build -gno-record-gcc-switches -fno-common"
</pre></details>

### What did you do?

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
-->

We use gomobile bind command to build iOS framework library, the library is just using net/http to do a simple http request to google or some website.

When we using Xcode to include the iOS framework we built and then build the iOS app, everything is working fine as usual.

But if we set system proxy in iOS setting or using other apps (e.g. Charles or other vpn/proxy apps) to set system proxy, 
we found the IOS framework library is not following the system proxy setting, it goes the original network setting without proxy.
Which leads the issue that network cannot work correctly. For some case that the network only allowed internal proxy, for example in some company corporate network.

gomobile build command:
<pre>
gomobile bind -ldflags -X 'gitlab.xxx/mobile_lib/libs.version=v0.2.29' -X 'gitlab.xxxx/mobile_lib/pkg/logger.osType=ios' -X 'gitlab.xxxx/mobile_lib/pkg/logger.version=v0.2.29'  -target=ios -v -o out/ios/anv gitlab.xxxx/mobile_lib/libs
</pre>

gomobile version:
<pre>
golang.org/x/mobile v0.0.0-20200329125638-4c31acba0007
</pre>

### What did you expect to see?
The network of built iOS framework should respect system proxy setting

### What did you see instead?