sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: next.js
Issue: Parallel routes (and possibly more) are broken in dev mode with custom server when NODE_ENV is not set
Labels: Parallel & Intercepting Routes

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
    Operating System:
      Platform: darwin
      Arch: x64
      Version: Darwin Kernel Version 22.4.0: Mon Mar  6 21:00:17 PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64
    Binaries:
      Node: 18.16.0
      npm: 9.5.1
      Yarn: N/A
      pnpm: N/A
    Relevant packages:
      next: 13.4.5-canary.0
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 4.9.5
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

App directory (appDir: true)

### Link to the code that reproduces this issue or a replay of the bug

https://github.com/hesalx/nextjs-appdir-custom-server

### To Reproduce

1. Create a page that renders parallel routes
2. Implement custom server such as the one from https://nextjs.org/docs/pages/building-your-application/configuring/custom-server
3. Compare `next dev` to running the custom server: pages with parallel routes work with next server but not with custom server

Using the reproduction repo:
1. `npm run dev`
2. `curl -I http://localhost:3000/about` - 200 OK
3. Close the NextJS server
4. `npm run dev:server`
5. `curl -I http://localhost:3000/about` - 404 Not Found

### Describe the Bug

Next.js CLI (`next dev`) forces `process.env.NODE_ENV` to be defined, however this is not the case for any other way to run Next.js such as with a custom server.

When `NODE_ENV` is not set (`undefined`) the underlying page cache is being set up incorrectly (basically in a production mode). Because the dev mode relies on cache being a no-op, the server fails to observe components that were compiled on-the-fly. In the case of a parallel route a missing page/component results in 404 for the entire route.

This behaviour is very confusing and took significant effort to debug. 

Problematic code: https://github.com/vercel/next.js/blob/7adb273b02404949784f9211438e1d5d32e3b6ee/packages/next/src/server/require.ts#L16-L27
https://github.com/vercel/next.js/blob/7adb273b02404949784f9211438e1d5d32e3b6ee/packages/next/src/server/require.ts#L44-L46
https://github.com/vercel/next.js/blob/7adb273b02404949784f9211438e1d5d32e3b6ee/packages/next/src/server/require.ts#L89-L91

### Expected Behavior

A custom server in dev mode works identically to `next dev` in terms of parallel routes and `appDir: true`.

Programmatic use of `next({ dev: true })` should respect the value of `dev` in all of the underlying modules.

### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

Custom Server
Repository: ant-design
Issue: Table scroll max-content  时 , 超长文本不换行的问题,  会造成列标题垂直排版
Labels: help wanted,Inactive

### Reproduction link

[https://stackblitz.com/edit/react-p6tnnf?file=demo.tsx](https://stackblitz.com/edit/react-p6tnnf?file=demo.tsx)

### Steps to reproduce

如题

### What is expected?

如题

### What is actually happening?

如题

| Environment | Info |
| --- | --- |
| antd | undefined |
| React | react |
| System | macos |
| Browser | chrome latest |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: pytorch
Issue: [Utils][tensorboard]Enhancement: Include 'max_outputs' parameter in torch.utils.tensorboard.summary's 'image' method
Labels: triaged,module: tensorboard

### 🚀 The feature, motivation and pitch

## Issue Description ##
The `image` function in `torch.utils.tensorboard.summary` does not have a `max_outputs` parameter, even though it is mentioned in the function's documentation. The `max_outputs` parameter is important for controlling the number of images included in the summary, but it is currently missing in the implementation.

## code in origin tensorboard ##
  ```def image(name, data, step=None, max_outputs=3, description=None)```
https://github.com/tensorflow/tensorboard/blob/fd75a84d30b85bdc80986da01fbf014f363ca3b7/tensorboard/plugins/image/summary_v2.py#L27

## code in torch.utils.tensorboard ##
 ``` def add_image(self, tag, img_tensor, global_step=None, walltime=None, dataformats="CHW")```
https://github.com/pytorch/pytorch/blob/0e72ada9bba2693e55fd7177ab4d2af826d7d15f/torch/utils/tensorboard/writer.py#LL563C4-L565C7

According to the documentation, the `max_outputs` parameter should determine the maximum number of images to be included in the summary. However, in the current implementation, there is no handling or usage of this parameter.
https://github.com/pytorch/pytorch/blob/0e72ada9bba2693e55fd7177ab4d2af826d7d15f/torch/utils/tensorboard/summary.py#L424

## Expected Behavior ##
I would expect the `image` function in `torch.utils.tensorboard.summary` to accept and utilize the `max_outputs` parameter, similar to the functionality provided by the native TensorBoard.

## Steps to Reproduce (if applicable) ##
N/A

## Environment Information (if applicable) ##
N/A

## Additional Context ##
I believe adding the `max_outputs` parameter to the `image` function in `torch.utils.tensorboard.summary` would enhance the functionality and compatibility of the module with the native TensorBoard implementation.


### Alternatives

_No response_

### Additional context

## Additional Context ##
I believe the addition of the 'max_outputs' parameter to the 'image' method in torch.utils.tensorboard.summary would greatly enhance the flexibility and compatibility of the module. Currently, users are unable to control the number of images included in the summary, which can lead to excessive or insufficient visualizations in certain scenarios.

By introducing the 'max_outputs' parameter, users would have the ability to specify the maximum number of images to be included in the summary, aligning with the behavior of the native TensorBoard implementation. This would provide consistency and allow for better customization and interpretation of the summary results.

Additionally, the 'max_outputs' parameter is already mentioned in the function's documentation, indicating that it was likely intended to be implemented but was unintentionally omitted.

I believe this enhancement would greatly benefit PyTorch users who rely on the tensorboard.summary module for visualizations and analysis of their models.
Repository: ant-design
Issue: InputNumber组件的自动回显导致Form.Item没有清空错误提示
Labels: Inactive,improvement

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/vibrant-joji-bb1jr6?file=/src/App.js)

### Steps to reproduce

在InputNumber输入框输入0，会触发输入框回显为1，并出现错误提示“不能为空”

### What is expected?

期望输入框内容跟错误提示对应，如果输入框内容是空，则出现“不能为空”，否则不出现“不能为空”

### What is actually happening?

输入框有值并且出现错误提示

| Environment | Info |
| --- | --- |
| antd | 5.3.2 |
| React | 18.2.0 |
| System | windows10 |
| Browser | chorme 113.0.5672.127 |

---
业务场景需要validateTrigger为onBlur

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: ant-design
Issue: table组件「自定义筛选菜单功能」使用useState定义columns，columns中的render无法获取其他声明的state值。
Labels: Inactive,unconfirmed

### Reproduction link

[https://stackblitz.com/edit/react-kdtlyz?file=demo.js](https://stackblitz.com/edit/react-kdtlyz?file=demo.js)

### Steps to reproduce

打开重现链接后，直接在name表头输入关键词「Jim」，Enter即可

### What is expected?

「Jim」关键字高亮

### What is actually happening?

「Jim」关键字不高亮

| Environment | Info |
| --- | --- |
| antd | 5.5.1 |
| React | 18.2.0 |
| System | Mac |
| Browser | Chrome 113.0.5672.126 (正式版本) (arm64)  |

---
发现是「renderName」方法中，未获取到最新的「searchedColumn」值导致的，具体为何「searchedColumn」未获取最新值不清楚

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: Python
Issue: Source for `simple_neural_network.py` is member-only
Labels: awaiting triage

### What would you like to share?

I want to try to improve the implementation `neural_network /simple_neural_network.py` because it's currently one of the slowest files by far during build tests and because I find some details of the implementation to be sorta strange. However, the [source](https://towardsdatascience.com/forward-propagation-in-neural-networks-simplified-math-and-code-version-bbcfef6f9250) referenced in the file is a member-only Medium article, so I can't check how the algorithm was originally derived and implemented. If someone here is a Medium member and can access the original article, please relay its contents to me so I can verify the implementation. Going forward, we should definitely find a similar, free-to-read article to replace the currently referenced source.

### Additional information

_No response_
Repository: ant-design
Issue: Menu Antd re-paint too many times when i move mouse in-out (check by React Developer Tools)
Labels: Inactive,⚡️ Performance,unconfirmed

### Reproduction link

[https://4x.ant.design/components/menu/](https://4x.ant.design/components/menu/)

### Steps to reproduce

https://4x.ant.design/components/menu/

### What is expected?

When hovering, Menu re-paint just an item

### What is actually happening?

Menu re-paint all items 

| Environment | Info |
| --- | --- |
| antd | 4.24.4 |
| React | 17.0.2 |
| System | Ubuntu 22 |
| Browser | Chrome |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: angular
Issue: required inputs shouldn't always have to be exposed by composed directive 
Labels: area: core,core: host directives

### Which @angular/* package(s) are the source of the bug?

core

### Is this a regression?

No

### Description

If a directive (let's named it `ReusableDirective`) exposes a required input (`foo`), and is used as a host directive by another directive (`ComposedDirective`), then the compiler forces the composed directive to expose the required input. 

This is problematic when the whole point of the composed directive is precisely to provide a default or computed value for the required input. 

For example: 

```ts
@Directive({
  selector: '[app-reusable]',
  standalone: true,
})
class ReusableDirective {
  @Input({ required: true }) foo!: string;

  // do something useful with foo here, but that's irrelevant
}

@Directive({
  selector: '[app-composed]',
  standalone: true,
  hostDirectives: [ReusableDirective],
})
class ComposedDirective {
  constructor(reusable: ReusableDirective) {
    reusable.foo = 'hello';
  }
}
```

### Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/stackblitz-starters-85nxmu?description=An%20angular-cli%20project%20based%20on%20@angular/animations,%20@angular/common,%20@angular/compiler,%20@angular/core,%20@angular/forms,%20@angular/platform-browser,%20@angular/platform-browser-dynamic,%20@angular/router,%20core-js,%20rxjs,%20tslib%20and%20zone.js&file=src%2Fmain.ts&title=Angular%20Starter

### Please provide the exception or error you saw

```
Required input 'foo' from host directive ReusableDirective must be exposed.
```


### Please provide the environment you discovered this bug in (run `ng version`)

```
Angular CLI: 16.0.2
Node: 18.16.0
Package Manager: yarn 1.22.19
OS: darwin x64

Angular: 16.0.2
... animations, cli, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1600.2
@angular-devkit/build-angular   16.0.2
@angular-devkit/core            16.0.2
@angular-devkit/schematics      16.0.2
@angular/cdk                    16.0.1
@schematics/angular             16.0.2
rxjs                            7.8.1
typescript                      5.0.4
```


### Anything else?

This just hit me in a real situation: ng-bootstrap's typeahead directive's `ngbTypeahead` input is marked as requird in the latest version, and we have several custom `fooTypeahead` and `barTypeahead` directives which simply use ngbTypeahead as a host directive and provide this required input.
Repository: pytorch
Issue: pytorch java api documentation is not clear and does not cover example 
Labels: module: docs,triaged,oncall: mobile,oncall: java

### 📚 The doc issue

The pytorch java api doc is unclear and does not include examples which makes it hard to understand and makes the documentation incomplete

### Suggest a potential alternative/fix

- more example can be included 
- how to's in java
- more description

cc @svekars @carljparker
Repository: godot
Issue: Autoload global variables behaving inconsistently, properties not having types inferred
Labels: bug,topic:core,topic:gdscript

### Godot version

v4.0.3.stable.mono.official [5222a99f5]

### System information

- OS: Windows 11
- Godot Version: 4.0.3.stable.mono
- Rendering Driver: Any
- Rendering Method: Any

### Issue description

I've noticed some strange behaviors arising from the use of static typing (along with type casting in general) with autoload global variables.

Here are my findings so far:
- Creating an autoload from a .tscn file will cause the singleton node referenced by the global variable to be unconvertible to the type of the script specified after `class_name`, if it exists.
- Creating an autoload from a .gd file, however, _does_ allow the variable to be converted to the custom type.
- Properties of custom reference types in an autoload will _not_ be inferred with the `:=` operator if the autoload is .tscn-based, but _will_ if it is .gd-based.
- Properties of custom reference types in an autoload class will not have their own custom properties appear in the auto-completion menu, if the autoload is accessed with its global variable. The auto-completion menu will only reflect the built-in classes they're derived from. Creating a variable of the singleton's custom type (which is only possible with .gd autoloads) and then accessing the reference property that way is the only way I can find that allows the auto-completion to accurately reflect the current type of the reference.

The best way I can work around this while maintaining type safety is by only using .gd-based autoloads, but unless I store an explicit reference to the singleton as its proper type, I won't be able to see the full classes of its custom properties.

### Steps to reproduce

In the main scene's script, `main.gd`:
```gdscript
class_name Main extends Node

var number: int = 7

func _enter_tree() -> void:
    Global.main = self
    Global2.main = self

func _ready() -> void:
    # Does not autofill number property, will also fail to infer type
    var num_a := Global.main.number
    
    # Does not autofill number property, but will properly infer type
    var num_b := Global2.main.number
    
    # Autofills number property, but casting fails when using a .tscn autoload
    var global_1 := Global as _Global
    var num_c := global_1.main.number
    
    # Autofills number property, and casting succeeds when using a .gd autoload
    var global_2 := Global2 as _Global2
    var num_d := global_2.main.number
```

In the first singleton script, `global.gd`, loaded as a **.tscn**:
```gdscript
class_name _Global extends Node

var main: Main
```

In the second singleton script, `global_2.gd`, loaded as a **.gd**:
```gdscript
class_name _Global2 extends Node

var main: Main
```

The autoload configuration:
![image](https://github.com/godotengine/godot/assets/31663251/749add78-46fc-439e-acf3-da8e2e126edb)


### Minimal reproduction project

[TypeBug.zip](https://github.com/godotengine/godot/files/11601357/TypeBug.zip)
Repository: godot
Issue: More architectures need -latomic to build godot
Labels: bug,platform:linuxbsd,topic:buildsystem

### Godot version

3.5.1-stable

### System information

Debian unstable on armel machine.

### Issue description

Similar to the issue in #54393 for FreeBSD, Linux builds on at least armel and riscv64 also need to be linked to the atomic library.  I tried to modify the scons build rules to get this working on armel, but had to give up as none of the approaches I tried worked.  I tried modifying platform/x11/detect.py.  The issue is reported to Debian as https://bugs.debian.org/1019868.

This is the proposed fix for the debian build, solving the issue outside scons:

```
diff --git a/debian/rules b/debian/rules
index f46330e3..51ceee03 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,11 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
 
+# Link with libatomic on archs where it is needed.
+ifeq ($(DEB_HOST_ARCH),$(filter $(GCC_MINOR),armel riscv64))
+       export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic -Wl,--as-needed
+endif
+
 override_dh_clean:
        dh_clean
        scons -c
```

### Steps to reproduce

Try building 3.5.1 on Debian unstable using a armel machine.

### Minimal reproduction project

N/A
Repository: vscode
Issue: Support a toolbar with labels on each side in diff editor
Labels: feature-request,diff-editor

It would be great to have support for a bar on each side of the diff editor above the editor contents to put in a label and actions, similar to the merge editor:

![image](https://github.com/microsoft/vscode/assets/900690/5dc67a2c-81fe-4db4-9dc7-939bb4816418)

I would use this for the "Resolve save conflicts" flow to make it much easier to understand for users.
Repository: godot
Issue: HSplitContainer makes Tree focus outlines flicker back and forth
Labels: bug,topic:gui

### Godot version

4

### System information

Windows

### Issue description

I get some strange visual effects when  running a scene that has `HSplitContainer` with children like `Tree` or `ItemList`

This is with Trees

https://github.com/godotengine/godot/assets/16458555/b900a5cc-73e2-48a8-b8da-cc887f13f442



### Steps to reproduce

- Add `HSplitContainer`
- Add 2 `Tree` child nodes
- Drag the offset handle like in the video above


### Minimal reproduction project

-
Repository: pytorch
Issue: [feature request] PyTorch support for sub-interpreters with PEP 684 accepted and release in Python 3.12
Labels: triaged,module: python frontend

### 🚀 The feature, motivation and pitch

It appears that sub-interpretor support for Python in PEP 684 https://discuss.python.org/t/pep-684-a-per-interpreter-gil/ is advancing and will be merged soon (https://github.com/python/cpython/blob/main/Misc/NEWS.d/3.12.0b1.rst, https://github.com/python/cpython/pull/104210, https://github.com/ericsnowcurrently/multi-core-python/wiki/0-The-Plan)

Any updates on eventual support of sub-interpreters in PyTorch? 

Also, a question would be of zero-copy in-RAM IPC data exchange: maybe via named pipes? Some mmaps? shm? 

I found older issues asking the same:
- https://github.com/pytorch/pytorch/issues/23490
- https://github.com/pytorch/pytorch/issues/10950

This might be important for working in hosted multi-threaded environments where every thread runs its own Python / PyTorch code. This is also related to the current torch.compile / export / mini-interpreters story: https://discuss.pytorch.org/t/torch-compiles-deployment-story-to-non-python-host-processes/180943. This scenario was explicitly supported with TorchScript / TorchJit, but seems not yet developed for torch.compile, but it's an important usecase too (similar to API's OnnxRuntime is currently offering)

cc @albanD @colesbury 

### Alternatives

_No response_

### Additional context

_No response_
Repository: PowerToys
Issue: Support USD files as 3D scenes in Peek
Labels: Idea-Enhancement,Needs-Triage,Product-Peek

### Description of the new feature / enhancement

USD files would be viewed as 3D scenes instead of text files when previewed with Peek.

In a similar fashion to the [macOS USD preview](https://support.apple.com/en-me/guide/preview/prvwd129f236/mac), basic 3d controls would available: zooming, panning, and rotating the camera.

![Screenshot 2023-05-30 at 09 30 28](https://github.com/microsoft/PowerToys/assets/79143715/76ab9164-9cd7-49e4-970d-e26f0ff8638f)


### Scenario when this would be used?

This feature is strongly relevant for developers and artists working on a USD pipelines, where USD files needs to be opened quickly on a regular basis.

### Supporting information

USD files types:
- .usd
- .usda
- .usdc
- .usdz

(The following information are pasted from #13982)

Check out [Activision repository](https://github.com/Activision/USDShellExtension) to find out more.

[Demo USD file](https://github.com/Activision/USDShellExtension/blob/main/docs/preview.png)

Supporting information
Document:
https://graphics.pixar.com/usd/docs/Introduction-to-USD.html

File explorer preview USD
https://github.com/Activision/USDShellExtension

Export to glTF from USD
https://github.com/google/usd_from_gltf
Repository: rust
Issue: Overflow evaluating the requirement when using GATs
Labels: T-compiler,C-bug,fixed-by-next-solver,A-GATs

While #39959 and #111313 are discussing the same issue, in this case, it looks like there's a problem with GATs (generic associated types) or probably HRTBs (higher-rank trait bounds). Try removing the generic lifetime `'a` and the problem will be solved.

<!--
Thank you for finding an Internal Compiler Error! 🧊  If possible, try to provide
a minimal verifiable example. You can read "Rust Bug Minimization Patterns" for
how to create smaller examples.
http://blog.pnkfx.org/blog/2019/11/18/rust-bug-minimization-patterns/
-->

### Code

```Rust
trait Foo {
    type A<'a>;
}

trait Alias
where
    for<'a> Self: Foo<A<'a> = <Self as Alias>::AliasA<'a>>,
{
    type AliasA<'a>: From<u8>;
}

impl<T> Alias for T
where
    T: Foo,
    for<'a> <T as Foo>::A<'a>: From<u8>,
{
    type AliasA<'a> = <T as Foo>::A<'a>;
}
```


### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.71.0-nightly (e77366b57 2023-05-16)
binary: rustc
commit-hash: e77366b57b799dfa3ce1fcb850c068723a3213ee
commit-date: 2023-05-16
host: x86_64-unknown-linux-gnu
release: 1.71.0-nightly
LLVM version: 16.0.2
```

### Error output

```
error[E0275]: overflow evaluating the requirement `Self: Alias`
  --> examples/generic_error2.rs:5:1
   |
5  | trait Alias
   | ^^^^^^^^^^^
   |
   = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`generic_error2`)
note: required for `Self` to implement `Alias`
  --> examples/generic_error2.rs:12:9
   |
12 | impl<T> Alias for T
   |         ^^^^^     ^
...
15 |     for<'a> <T as Foo>::A<'a>: From<u8>,
   |                                -------- unsatisfied trait bound introduced here
   = note: 63 redundant requirements hidden
   = note: required for `Self` to implement `Alias`
```