sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Tracking Issue for `macro_metavar_expr_concat`
Labels: T-lang,C-tracking-issue,S-tracking-unimplemented,B-experimental,F-macro_metavar_expr_concat

This is a tracking issue for the experimental feature *macro metavariable expression `concat`* (RFC pending).
The feature gate for the issue is `#![feature(macro_metavar_expr_concat)]`.

Provides a modern alternative to the `concat_idents!` macro.

```rust
#![feature(macro_metavar_expr_concat)]

macro_rules! many_idents {
    ($a:ident, $c:ident) => {
        const ${concat($a, B, $c, D)}: i32 = 1;
    };
}

fn main() {
    many_idents!(A, C);
    assert_eq!(ABCD, 1);
}
```

### About experimental features

An experimental feature is one that has not yet had an RFC. The idea is to allow implementation work to proceed to better inform an upcoming RFC. Experimental features cannot be stabilized without first having an RFC. The existence of an experimental feature does not indicate lang team consensus that the feature is desirable, only that there is a problem that is worthy of being solved and that the idea has enough merit to consider exploring. See [the lang team process page][experimental] for more details.

[experimental]: https://lang-team.rust-lang.org/how_to/experiment.html

### About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however *not* meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

### Steps / History

- [x] Implementation (https://github.com/rust-lang/rust/pull/118958)
- [ ] Write an RFC
- [ ] Adjust documentation ([see instructions on rustc-dev-guide][doc-guide])
- [ ] Formatting for new syntax has been added to the [Style Guide] ([nightly-style-procedure])
- [ ] Stabilization PR ([see instructions on rustc-dev-guide][stabilization-guide])

[stabilization-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#stabilization-pr
[doc-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#documentation-prs
[nightly-style-procedure]: https://github.com/rust-lang/style-team/blob/master/nightly-style-procedure.md 
[Style Guide]: https://github.com/rust-lang/rust/tree/master/src/doc/style-guide

### Unresolved Questions

* [ ] Should the syntax use commas? https://github.com/rust-lang/rust/pull/118958#discussion_r1435269076
* [x] Should numeric literals be allowed? (yes) https://github.com/rust-lang/rust/pull/118958#discussion_r1520260272
* [ ] Which span should the resulting identifier have? Should it be related to the macro, the concatenated values, or customizable? https://github.com/rust-lang/rust/pull/118958#discussion_r1572498354
* [ ] What should be done with `r#foo` raw identifiers? https://github.com/rust-lang/rust/pull/118958#discussion_r1638431513

### References

* https://github.com/rust-lang/rust/issues/83527
Repository: flutter
Issue: [Android] TextFormField onFieldSubmitted function did not call when pressing Enter key on the number keypad of external keyboards.
Labels: a: text input,platform-android,framework,has reproducible steps,P3,team-text-input,triaged-text-input,found in release: 3.22,found in release: 3.24

### Steps to reproduce

Connected External keyboard to android phone
type some word in textformfield and press numkey enter 
onFieldSubmitted() did not call but when press enter key it's working

```dart
TextFormField(
onFieldSubmitted: (str) {
}
)
```

### Expected results

Should work onFieldSubmitted() method

### Actual results

Did not call

### Code sample

<details open><summary>Code sample</summary>

```dart
[Paste your code here]
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

```
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 3.22.0-0.2.pre, on Microsoft Windows [Version 10.0.22631.3447], locale en-US)
[✓] Windows Version (Installed version of Windows is version 10 or higher)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Chrome - develop for the web
[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.9.6)
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.88.1)
[✓] Connected device (3 available)
[✓] Network resources
```
---------
```
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.6, on Microsoft Windows [Version 10.0.22631.3447], locale en-US)
[✓] Windows Version (Installed version of Windows is version 10 or higher)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Chrome - develop for the web
[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.9.6)
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.88.1)
[✓] Connected device (3 available)
[✓] Network resources
```
Repository: godot
Issue: DirAccess.get_current_dir() returning inconsistent trailing / between macOS and Windows
Labels: bug,topic:core,topic:porting

### Tested versions

4.3dev4

### System information

macOS 14.4.x and Windows 11

### Issue description

[DirAccess.get_current_dir()](https://docs.godotengine.org/en/stable/classes/class_diraccess.html#class-diraccess-method-get-current-dir) returns the current directory path of a DirAccess object. However, it seems that on macOS it can return the path with a "/" at the end, while on windows it does not. 

This is an issue if you want to use this path to build other paths since you can't rely on it being the same between platforms.

### Steps to reproduce

1. Have a project with a subfolder in your res:// project folder. In this example "graphics".
2. Run the following code:
```
var dirAccessTest:DirAccess = DirAccess.open("res://graphics/")
print("dirAccessTest.get_current_dir(): "+dirAccessTest.get_current_dir())
```
On macOS this will print out 
`dirAccessTest.get_current_dir(): res://graphics/`
On windows it will print out
`dirAccessTest.get_current_dir(): res://graphics`

If you instead init the DirAccess with a path without trailing slash `dirAccessTest:DirAccess = DirAccess.open("res://graphics")` it works the same on both platforms (and still accesses the correct directory), so I'm guessing this is the intended and expected behavior and it's just a case of the macOS DirAccess implementation not properly removing any trailing slash it was initiated with for `get_current_dir()`

### Minimal reproduction project (MRP)

The script lines above should be sufficient to reproduce the issue.
Repository: neovim
Issue: nvim_eval_statusline() can return the default statusline
Labels: enhancement,api,needs:discussion,complexity:low,statusline

### Problem

An old limitation of N/Vim is that the default internal logic for empty 'statusline' option, is not exposed as a 'statusline' *expression*. We added `nvim_eval_statusline()` which is very nice, but still can't use it to get the default statusline result.

### Expected behavior

`nvim_eval_statusline()` should be able to yield the default statusline. It could look like any of : 

- Passing empty string: `nvim_eval_statusline('')`
- or, a new opts flag: `nvim_eval_statusline('',{default=true, ...})`
Repository: material-ui
Issue: [docs-infra] Show plan on API pages
Labels: bug 🐛,scope: docs-infra

### Current behavior

https://mui.com/x/api/date-pickers/mobile-date-range-picker/ doesn't show the plan in the h1 

<img width="568" alt="SCR-20240421-qgbk" src="https://github.com/mui/material-ui/assets/3165635/3f4f8e8f-7bd3-4302-b353-0275bafe3ef7">

while we do for demos: 

<img width="534" alt="SCR-20240421-qgeu" src="https://github.com/mui/material-ui/assets/3165635/6f6a511a-eea5-4856-a2fa-a0accea9d60c">

https://mui.com/x/react-date-pickers/date-time-range-field/

### Expected behavior

Show the plan

### Context

It looks like we could implement this like similar to how we are implementing the `getComponentImports()` function:

https://github.com/mui/material-ui/blob/c435f65536a0b84ee86140790761daa97f7ec8cf/packages/api-docs-builder/ApiBuilders/ComponentApiBuilder.ts#L750

Meaning, having each package define what is Pro, Premium, MIT based on the filename location.

### Your environment

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```
</details>


**Search keywords**: -
Repository: storybook
Issue: [Bug]: Global decorators external ressources ignored by storybook-build in version 8
Labels: bug,needs triage

### Describe the bug

Global decorators imports containing CSS are not included in stories of the final storybook build

### To Reproduce

Create a React project with Vite ans install Storybook 8  

Export a decorator from `preview.tsx`

```
const preview: Preview = {
  decorators: [
    (Story) => (
      <Provider>
        <Story />
      </Provider>
    ),
  ],
  parameters,
};

```
Execute `storybook build`

Serve the `storybook-static` folder

### System

```bash
Storybook Environment Info:

  System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
  Binaries:
    Node: 18.12.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.19.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.15.4 - ~\AppData\Local\pnpm\pnpm.CMD <----- active
  Browsers:
    Edge: Chromium (123.0.2420.97)
  npmPackages:
    @storybook/addon-a11y: ^8.0.8 => 8.0.8 
    @storybook/addon-actions: ^8.0.8 => 8.0.8 
    @storybook/addon-essentials: ^8.0.8 => 8.0.8 
    @storybook/addon-interactions: ^8.0.8 => 8.0.8 
    @storybook/addon-links: ^8.0.8 => 8.0.8 
    @storybook/addon-themes: ^8.0.8 => 8.0.8 
    @storybook/blocks: ^8.0.8 => 8.0.8 
    @storybook/manager-api: ^8.0.8 => 8.0.8
    @storybook/react: ^8.0.8 => 8.0.8
    @storybook/react-vite: ^8.0.8 => 8.0.8
    @storybook/test: ^8.0.8 => 8.0.8
    @storybook/test-runner: ^0.17.0 => 0.17.0
    @storybook/theming: ^8.0.8 => 8.0.8
    eslint-plugin-storybook: ^0.8.0 => 0.8.0
    storybook: ^8.0.8 => 8.0.8
```


### Additional context

_No response_
Repository: flutter
Issue: Provide documentation on how to setup iOS Privacy Manifest for Flutter Modules
Labels: platform-ios,d: api docs,a: existing-apps,c: proposal,P2,team-ios,triaged-ios

As per the new guidelines for iOS Privacy Manifest need to be added in the iOS apps being submitted from May 1, 2024. Flutter community is active working on the changes required for apps and packages.

However, there does not seem to be much resources about adding the Privacy Manifests for Flutter Modules and how to go about these for Module specific code.

Needed help with defining manifests for the Flutter Modules
Repository: go
Issue: cmd/go: reject leading dot in module name
Labels: help wanted,NeedsInvestigation,GoCommand

### Go version

go1.22.1

### Output of `go env` in your module/workspace:

```shell
GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/Users/mgo/Library/Caches/go-build'
GOENV='/Users/mgo/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/mgo/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/mgo/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/Users/mgo/sdk/go1.22.1'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/Users/mgo/sdk/go1.22.1/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.22.1'
GCCGO='gccgo'
AR='ar'
CC='clang'
CXX='clang++'
CGO_ENABLED='1'
GOMOD='/Users/mgo/Documents/testGoApi/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/dn/076kyhqn5knf9lgnb0v9m5980000gn/T/go-build2843189004=/tmp/go-build -gno-record-gcc-switches -fno-common
```


### What did you do?

It is happening when everything is in different folder , and initiated with different packages , that is why i cannot link [go.dev/play](https://go.dev/play)

but i can link the github repo with a branch that this is happening

https://github.com/Mgrdich/testGoApi/tree/bug/issue/golang

https://github.com/Mgrdich/testGoApi/blob/fd329312a1472c5d3c5269f792a438d999e43829/internal/routes/person.go#L18

https://github.com/Mgrdich/testGoApi/blob/fd329312a1472c5d3c5269f792a438d999e43829/internal/middlewares/movies.go#L28


https://github.com/Mgrdich/testGoApi/blob/fd329312a1472c5d3c5269f792a438d999e43829/internal/middlewares/id_context.go#L14




### What did you see happen?

i keep getting this compile time error

```
panic: R_USEIFACE in .com/internal/middlewares..dict.CheckSlugId[.com/internal/models.Person] references type:.com/internal/util.GetByIDFunc[.com/internal/models.Person] which is not a type or itab

goroutine 1 [running]:
cmd/link/internal/ld.(*deadcodePass).flood(0x14000026910)
	cmd/link/internal/ld/deadcode.go:208 +0xfd4
cmd/link/internal/ld.deadcode(0x1400015e000)
	cmd/link/internal/ld/deadcode.go:433 +0x58
cmd/link/internal/ld.Main(_, {0x10, 0x20, 0x1, 0x1f, 0x1e, 0x7c00000, {0x0, 0x0, 0x0}, ...})
	cmd/link/internal/ld/main.go:353 +0x1180
main.main()
	cmd/link/main.go:72 +0xbd4
```

as i noticed it is happening something with the folder and package structure

* i did check for cyclical reference none was there.
* i am not returning nil references
* i did raise this issue in golang discord community , they could not figure it out they told me to open an issue.


### What did you expect to see?

It return the correct error , with description that module name is invalid.
Repository: godot
Issue: Exported enum variable defaults to 0 even if first enum int value is set to non-0, when using c#
Labels: discussion,topic:dotnet

### Tested versions

4.2.stable

### System information

Godot v4.2.1.stable.mono - Arch Linux #1 SMP PREEMPT_DYNAMIC Thu, 11 Apr 2024 01:47:33 +0000 - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 Ti (nvidia; 550.67) - AMD Ryzen 5 7600X 6-Core Processor (12 Threads)

### Issue description

having an exported enum variable that uses an enum with a first value that isnt 0, e.g. `enum SomeEnum { One = 1, Two, Three }`, doesnt default to 1 when the export var is unchanged in the editor

if you click on another value and then back to the first one, it works as expected but shows an icon to revert back to the default

### Steps to reproduce

refer to MRP

### Minimal reproduction project (MRP)

[enum-mrp.zip](https://github.com/godotengine/godot/files/15052821/enum-mrp.zip)
Repository: ollama
Issue: got error msg : "Error: invalid file magic" whle creating custom model causallm_7b.Q5_K_M.gguf 
Labels: bug

### What is the issue?

Hi,
I tried to create a new model using this [CausalLM](https://huggingface.co/TheBloke/CausalLM-7B-GGUF/tree/main)  but i didn't work and gave me this output.
How can I solve the issue?

error msg:
transferring model data
creating model layer
Error: invalid file magic

model file FROM ./causallm_7b.Q5_K_M.gguf
terminal command: ollama create c7b -f ./causallm.mf

### OS

macOS

### GPU

_No response_

### CPU

_No response_

### Ollama version

0.1.3.2
Repository: ollama
Issue: Advertise existence to local network using NSD or mDNS SD
Labels: feature request

It would be very cool if ollama could publish itself to the local network as a discoverable service such that other devices on the local network could use NSD to discover that there is an instance locally accessible. this would greatly help unify how companion applications work (e.g. a mobile app that would let you remotely query the ollama on the local network)
Repository: rust
Issue: Improve error[E0492]: statics cannot refer to interior mutable data
Labels: A-diagnostics,T-compiler

### Code

```Rust
static STATIC_REF: &AtomicIsize = &AtomicIsize::new(0);
```


### Current output

```Shell
error[E0492]: statics cannot refer to interior mutable data
 --> src/lib.rs:3:35
  |
3 | static STATIC_REF: &AtomicIsize = &AtomicIsize::new(0);
  |                                   ^^^^^^^^^^^^^^^^^^^^ this borrow of an interior mutable value may end up in the final value
  |
  = help: to fix this, the value can be extracted to a separate `static` item and then referenced
```


### Desired output

```Shell
error[E0492]: statics cannot refer to anonymous interior mutable data
 --> src/lib.rs:3:35
  |
3 | static STATIC_REF: &AtomicIsize = &AtomicIsize::new(0);
  |                                   ^^^^^^^^^^^^^^^^^^^^ this borrow of an interior mutable value may end up in the final value
  |
  = help: to fix this, the value can be extracted to a separate `static` item and then referenced
```


### Rationale and extra context

more discussion here: https://users.rust-lang.org/t/why-compiler-error-e0492-statics-cannot-refer-to-interior-mutable-data/110266

### Other cases

_No response_

### Rust Version

```Shell
rustc 1.77.2 (25ef9e3d8 2024-04-09)
binary: rustc
commit-hash: 25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04
commit-date: 2024-04-09
host: x86_64-pc-windows-msvc
release: 1.77.2
LLVM version: 17.0.6
```


### Anything else?

_No response_
Repository: next.js
Issue: Next.js Tutorial Acme Dashboard Edit Invoice error.
Labels: examples

### 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: arm64
  Version: Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:25 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6030
  Available memory (MB): 18432
  Available CPU cores: 12
Binaries:
  Node: 21.7.3
  npm: 10.5.0
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.2.2 // Latest available version is detected (14.2.2).
  eslint-config-next: 14.0.0
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.2.2
Next.js Config:
  output: N/A
```


### Which example does this report relate to?

I do not know

### What browser are you using? (if relevant)

123.0.6312.124

### How are you deploying your application? (if relevant)

local machine and Vercel

### Describe the Bug

When going through the https://nextjs.org/learn/dashboard-app tutorial I discovered a bug when editing an amount value in the "edit an invoice" portion.  If you attempt to change the amount from anything to a value between 10.20 and 10.22  I removed the try catch block to generate this error message

![image](https://github.com/vercel/next.js/assets/167342798/bb2eeaf1-b4b4-4769-97e3-52cf8517142e)


### Expected Behavior

You should be able to use the values between 10.20 and 10.22

### To Reproduce

Edit an invoice and attempt to use any of the amounts 10.20, 10.21, 10.22
Repository: pytorch
Issue: Variant of slice that doesn't perform clamp behavior
Labels: triaged,module: dynamic shapes

### 🐛 Describe the bug

Internal xref: https://fb.workplace.com/groups/6829516587176185/posts/7105446536249854/

When slicing into a tensor with data-dependent sizes, it is common to fail on these lines:

```
    if end_val < start_val:
        end_val = start_val
    elif end_val > sizes[dim]:
        end_val = sizes[dim]
```

The default behavior of slice is to clamp out of bounds start/end.

It would be useful to have a version of slice like https://gist.github.com/ezyang/0be810584a988ae5893961d77a3eacdd where the end/start are guaranteed to be in bounds, and so we can simply insert deferred runtime asserts testing in-boundedness

### Versions

main
Repository: excalidraw
Issue: `Store` improvements
Labels: store,initiative

`Store` was introduced as part of the multiplayer undo / redo #7348, in order to abstract away capturing of local `Change`s to the elements and the (observed) appState. At the time, it was designed to be plugged in front of the existing `History`, without affecting too much the rest of the codebase.

Hence we accepted some tradeoffs, which we should now reconsider, refactor away and improve as part of this initiative.

```[tasklist]
### Tasks
- [ ] https://github.com/excalidraw/excalidraw/issues/7921
- [ ] https://github.com/excalidraw/excalidraw/issues/7923
- [ ] https://github.com/excalidraw/excalidraw/issues/7930
- [ ] https://github.com/excalidraw/excalidraw/issues/7931
- [ ] https://github.com/excalidraw/excalidraw/issues/7922
- [ ] https://github.com/excalidraw/excalidraw/issues/7925
- [ ] https://github.com/excalidraw/excalidraw/issues/7926
- [ ] https://github.com/excalidraw/excalidraw/issues/7927
- [ ] https://github.com/excalidraw/excalidraw/issues/7928
- [ ] https://github.com/excalidraw/excalidraw/issues/7939
```
Repository: neovim
Issue: Lua: vim.func functional utils
Labels: enhancement,lua

## Problem

This issue tracks some known functions that we want in `vim.func`.

Related: `vim.iter` https://github.com/neovim/neovim/issues/23233

## Expected behavior

from https://github.com/neovim/neovim/pull/8677#issuecomment-403737119 : 

- (transparent?) coroutine support https://www.lua.org/pil/9.3.html
- "once"
- memoize / LRU
- partial application (currying? ~~but see also the caveats mentioned [here](https://github.com/moriyalb/lamda#notice)~~ [counterpoint](https://github.com/neovim/neovim/issues/28449#issuecomment-2068856725)) 
    - [curry](https://github.com/vigemus/iron.nvim/blob/eac8f6330/lua/iron/utils.lua#L25) (this is an applied example)

## References

- https://lua-stdlib.github.io/functional/modules/functional.html