sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: TypeError: Cannot read properties of undefined (reading 'implicitContext')
Labels: debt,chat

I am seeing this stack after installing the Copilot extension without being signed in:

```
Cannot read properties of undefined (reading 'implicitContext'): TypeError: Cannot read properties of undefined (reading 'implicitContext')
    at ChatImplicitContextContribution.updateImplicitContext (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/contrib/chat/browser/contrib/chatImplicitContext.js:49:26)
    at UniqueContainer.value (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/contrib/chat/browser/contrib/chatImplicitContext.js:38:72)
    at Emitter._deliver (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/common/event.js:966:22)
    at Emitter.fire (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/common/event.js:995:18)
    at ChatWidgetService.register (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/contrib/chat/browser/chatWidget.js:1008:30)
    at new ChatWidget (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/contrib/chat/browser/chatWidget.js:164:42)
    at InstantiationService._createInstance (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/platform/instantiation/common/instantiationService.js:130:24)
    at InstantiationService.createInstance (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/platform/instantiation/common/instantiationService.js:101:27)
    at ChatViewPane.renderBody (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/workbench/contrib/chat/browser/chatViewPane.js:129:70)
    at ChatViewPane.render (vscode-file://vscode-app/Users/bpasero/Development/Microsoft/vscode/out/vs/base/browser/ui/splitview/paneview.js:202:18)
```
Repository: deno
Issue: Bug: `dns.lookupService` is not a function
Labels: bug,node compat

The `node:dns` module exports a `.lookupService()` function that we seem to be missing. See https://nodejs.org/api/dns.html#dnslookupserviceaddress-port-callback

## Steps to reproduce:

Run this snippet:

```ts
import dns from "node:dns";
dns.lookupService("127.0.0.1", 22, (err, hostname, service) => {
  console.log(hostname, service);
  // Prints: localhost ssh
});
```

Version: Deno 2.0.0
Repository: react-native
Issue: Issue with rendering a list of elements in React Native FlatList or using the array mapping method.
Labels: Issue: Author Provided Repro,Component: FlatList,Needs: Author Feedback,Newer Patch Available,Type: Old Architecture

### Description

Hi,

I’m encountering an issue with the FlatList in React Native (or when using the array mapping method). The rendered items are stacking on top of the previous ones. Below is the code I'm working with. Could you please help me resolve this behavior?

Thank you!

### Steps to reproduce

`import { useState } from 'react';
import {
  Text,
  SafeAreaView,
  StyleSheet,
  FlatList,
  View,
  TouchableOpacity,
} from 'react-native';

export default function App() {
  const [showOptions, setShowOptions] = useState(false);
  const [activeCard, setActiveCard] = useState(null);

  return (
    <SafeAreaView style={styles.container}>
      <FlatList
        data={[0, 1, 2, 3, 4, 5]}
        renderItem={({ item, index }) => (
          <View style={styles.card}>
            <TouchableOpacity
              style={styles.button}
              onPress={() => {
                setShowOptions(true);
                setActiveCard(index);
              }}
            >
              <Text style={styles.buttonText}>Click me</Text>
            </TouchableOpacity>
            {showOptions && activeCard === index && (
              <View style={styles.optionsContainer}></View>
            )}
          </View>
        )}
        ItemSeparatorComponent={() => <View style={styles.separator} />}
        contentContainerStyle={styles.listContent}
      />
    </SafeAreaView>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    backgroundColor: '#ecf0f1',
    padding: 8,
  },
  card: {
    height: 100,
    width: '100%',
    backgroundColor: 'green',
    borderRadius: 8,
    position: 'relative',
  },
  button: {
    position: 'absolute',
    bottom: 10,
    right: 10,
  },
  buttonText: {
    color: '#fff',
    fontWeight: 'bold',
  },
  optionsContainer: {
    backgroundColor: 'yellow',
    borderRadius: 8,
    height: 80,
    width: '50%',
    position: 'absolute',
    top: 80,
  },
  separator: {
    height: 20,
  },
  listContent: {
    padding: 20,
    paddingBottom: 100,
  },
});
`

This is the code


### React Native Version

0.73.0

### Affected Platforms

Runtime - Android, Runtime - iOS, Runtime - Web

### Output of `npx react-native info`

```text
NA
```


### Stacktrace or Logs

```text
NA
```


### Reproducer

https://snack.expo.dev/nGlFBl-YeXppULXrGhsy9

### Screenshots and Videos


https://github.com/user-attachments/assets/141325b0-1851-4067-8328-ce2b5a5f26d8
Repository: godot
Issue: [Editor] Disabling `JSON` Feature Stops `.json` Files from Showing in the FileSystem
Labels: discussion,topic:editor

### Tested versions

v4.3.stable.official [77dcf97d8] & latest master

### System information

Godot v4.4.dev.mono (af77100e3) - Windows 10.0.17763 - Multi-window, 4 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4060 Ti (NVIDIA; 32.0.15.6109) - AMD Ryzen 9 5900X 12-Core Processor (24 threads)

### Issue description

When the `JSON` feature is turned off in `Editor/Managed Editor Feature Profiles` windows, Godot Editor also stops showing the `*.json` files in `FileSystemDock`, even if the `json` extension is set from the `EditorSettings/Docks/FileSystem/TextFile Extensions`.
Such behavior should be documented if intended.
Or, when the JSON feature is off, the JSON file should be imported as plain text files (as opposed to Resource).

### Steps to reproduce

1. Create a new Project
2. Create a JSON file in the FileSystem
3. Goto  `Editor/Managed Editor Feature Profiles` and disable the `JSON` feature

https://github.com/user-attachments/assets/97e2929b-82b5-4163-b6ff-687c7cbdedf2

### Minimal reproduction project (MRP)

N/A
Repository: ollama
Issue: How to add support for RWKV?
Labels: model request

Hi! I would like to try to make RWKV v6 models working with ollama.
llama.cpp has it supported already.
- Currently ollama fails to load the model due to a bug in llama.cpp. Here's the fix PR: https://github.com/ggerganov/llama.cpp/pull/9907
- Another issue is the chat template. I wonder how should a chat template be added for a new model? Specifically, how does ollama decide which template to use when loading a modelfile?

Thanks!
Repository: flutter
Issue: Wrong dateHelpText in MaterialLocalizationIt - flutter_localizations
Labels: framework,a: internationalization,P2,team-design,triaged-design

### Steps to reproduce

The current value for `dataHelpText` used in `MaterialLocalizationIt` is `"mm/gg/aaaa"` but it should be `"gg/mm/aaaa"`, as the standard order for dates in Italian is day/month/year (giorno/mese/anno in Italian)

### Expected results

`String get dateHelpText => `gg/mm/aaaa';`

### Actual results

`String get dateHelpText => 'mm/gg/aaaa';`

### Code sample

Permalink to the line of code: https://github.com/flutter/flutter/blob/2430f00a01a72c6d80085e1afdf179374e06355f/packages/flutter_localizations/lib/src/l10n/generated_material_localizations.dart#L21192

### 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

Not applicable
Repository: neovim
Issue: LSP: disable wrapping in hover window
Labels: enhancement,lsp,floatwin

### Problem

Context: https://github.com/juanfranblanco/vscode-solidity/issues/467.

Some LSPs display the hover text wrapped:
![Image](https://github.com/user-attachments/assets/d8460692-f24f-4cc2-bbee-358ca28c3ded)

The solution would be to do `set nowrap` automatically, as mentioned here https://github.com/juanfranblanco/vscode-solidity/issues/467#issuecomment-2416302302.

### Expected behavior

The text should not wrap, the window should instead have dynamic calculated dimensions according to the text.
Repository: godot
Issue: Huge performance regression using Tr() when moving project from 3.5.3 to 3.6 (.net)
Labels: bug,regression,topic:gui,performance

### Tested versions

- Reproducible in 3.6 .net C# and all beta/rc .net builds
- Not reproducible in 3.5.3 .net C#

### System information

Windows 11 - Godot 3.5.3 .net - GLES 3 - RTX4080 - 14900k

### Issue description

For my existing project I noticed a huge performance regression when switching from 3.5.3 .net to 3.6 .net  

When updating multiple tooltips (~20-30) at once that have multiple text fragments (~20) that are all translated using the Tr() translation server I notice huge frame drops from 60 fps down to 15 fps. We have 6 translation files that together have ~6000 lines in 13 languages. The exact same project ran at stable 60 frames in 3.5.3. 

### Steps to reproduce

Run the MRP in 3.5.3 .net and 3.6 .net. Check cpu load and fps. Update multiple labels with multiple longer translation tags utilising 6 translation files with ~6000 lines in total with 13 languages.

### Minimal reproduction project (MRP)

Run this project in 3.5.3 .net and in 3.6 .net and check cpu load and fps.
[Godot3.6PerformanceIssue.zip](https://github.com/user-attachments/files/17394079/Godot3.6PerformanceIssue.zip)
Repository: next.js
Issue: Page is not rendered if router.push({static path with query params})
Labels: bug,Navigation

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/nostalgic-butterfly-m4yqwg?file=%2Fpackage.json

### To Reproduce

1. I use static export and app routes, all my components are client components
2. Reproduse in production env
3. Example: router.push("/login?firstVisit=true") -> login page is not rendered, router.push("/login") -> works
4. I also do prefetch for router.push("/login")

If I have query params in url the page is not rendered.

### Current vs. Expected behavior

Login page should render for router.push("/login?firstVisit=true")

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6000
  Available memory (MB): 32768
  Available CPU cores: 10
Binaries:
  Node: 20.11.1
  npm: 10.2.4
  Yarn: 1.22.19
  pnpm: 7.25.1
Relevant Packages:
  next: 14.2.10
  eslint-config-next: 14.2.5
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.5.4
Next.js Config:
  output: export
```


### Which area(s) are affected? (Select all that apply)

Navigation

### Which stage(s) are affected? (Select all that apply)

Other (Deployed)

### Additional context

_No response_
Repository: ui
Issue: [bug]: `CarouselContent` should be `overflow-hidden w-full h-full` not `overflow-hidden`
Labels: bug

### Describe the bug

In a scenario where carousel size is determined by the container, not the content (item) passing

```tsx
<CarouselContent className="w-full h-full">
```

won't work since the className is accepted by the second child

```tsx
const CarouselContent = React.forwardRef<
  HTMLDivElement,
  React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => {
  const { carouselRef, orientation } = useCarousel()

  return (
    <div ref={carouselRef} className="overflow-hidden">
      <div
        ref={ref}
        className={cn(
          "flex",
          orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
          className
        )}
        {...props}
      />
    </div>
  )
})
```


I am trying to use carousel in a definitive grid, and grid area, where content should follow the sizing, as the size is overriden (ignored by CarouselContent, I think its a wrong design. (or at least make it more atomic or allow className separation)

### Affected component/components

Carousel

### How to reproduce

```tsx
<CarouselContent className="w-full h-full">
```

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
MacOS
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: deno
Issue: `deno remove` doesn't remove the package from node_modules folder
Labels: bug,node compat

Version: Deno 2.0.0
Repository: material-ui
Issue: InfoOutlineRounded 
Labels: package: icons,enhancement

### Summary

I saw that almost all Icons for warnings have a Rounded Outline Version only the one for the Info Icon is missing.
Can you please add the InfoOutlineRounded Icon?

import InfoRoundedIcon from '@mui/icons-material/InfoRounded';
import HelpOutlineRoundedIcon from '@mui/icons-material/HelpOutlineRounded';

### Examples

https://mui.com/material-ui/material-icons/?theme=Rounded&query=Info

### Motivation

_No response_

**Search keywords**: material-icons
Repository: ui
Issue: [feat]: Drawer Component: Auto-Adjust Handle Position to Match Swipe Direction
Labels: area: request

### Feature description

I would a small improvement to the drawer component when we change the direction. i think that small div at the top should move automatically to the right and becomes vertical in the case where the `direction == 'left'`, same goes for other directions, it should adapt to reflect the current swiping direction
here is a figure that illustrate the idea
![image](https://github.com/user-attachments/assets/41e4f43f-cb03-4bac-b1f8-af6aa3e22d94)


### Affected component/components

drawer 

### Additional Context

Additional details here...

### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues and PRs
Repository: next.js
Issue: Unable to use imported objects from client components in server components
Labels: bug,Runtime,Turbopack

### Link to the code that reproduces this issue

https://stackblitz.com/edit/stackblitz-starters-xotxrf?file=app%2Fpage.tsx

### To Reproduce

1. Start the application in Development
1. Check the logs for a log of test string that gets imported from the `ClientComponent.tsx`
1. Notice that instead of seeing the string, you see `null`
2. Notice that, if the `console.log` on line 4 of `page.tsx` is commented and then uncommented, you do see the test string in the logs on the first render

### Current vs. Expected behavior

Currently, It looks like imports from client components into server component are proxied. I would expect to be able to import and use an object or other primitive from a client component, in any other component.

This bug was previously reported in https://github.com/vercel/next.js/issues/66212, and supposedly fixed in https://github.com/vercel/next.js/pull/66990, but from testing it seems to still be a problem, both with and without turbopack.

From the issue that previously reported this:

>This used to work prior to Next.js 14 (13.5.6) but for some reason doesn't work now. I have an inkling as to why (bundling and wanting to separate the interweaving of client and server components) but this break a pattern we use for colocating queries (GraphQL, GROQ etc.) with our components.
>
>If anybody can point me to somewhere in the Next.js documentation explaining this behavior I would appreciate it as right now this type of bundling breaks everything I expect out of ES Modules.

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.0.0: Mon Aug 12 20:52:12 PDT 2024; root:xnu-11215.1.10~2/RELEASE_ARM64_T6020
  Available memory (MB): 32768
  Available CPU cores: 10
Binaries:
  Node: 20.18.0
  npm: 10.8.2
  Yarn: 1.22.22
  pnpm: 9.12.1
Relevant Packages:
  next: 15.0.0-rc.1
  eslint-config-next: 15.0.0-rc.1
  react: 19.0.0-rc-83825814-20241015
  react-dom: 19.0.0-rc-83825814-20241015
  typescript: 5.6.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Runtime, Turbopack

### Which stage(s) are affected? (Select all that apply)

next dev (local), next build (local), Vercel (Deployed)

### Additional context

 I understand the fix has been reverted from 14 due to it being a breaking change, but I'm expecting it to be there in canary.
Repository: vscode
Issue: debug.onDidChangeActiveDebugSession not always fired when active session implicitly changes after old active session terminated
Labels: bug,debug

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.94.1 (Universal)
- OS Version: Sequoia 15.0.1

Version: 1.94.1 (Universal)
Commit: e10f2369d0d9614a452462f2e01cdc4aa9486296
Date: 2024-10-05T05:44:32.189Z
Electron: 30.5.1
ElectronBuildId: 10262041
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 24.0.0

Steps to Reproduce:

1. Subscribe to `debug.onDidTerminateDebugSession` and `debug.onDidChangeActiveDebugSession`
2. Start two debug sessions.
3. Click on the second one in the call stack view to make it active.
4. Press terminate on the second session via the popup button in the call stack view

Correctly receive the `terminate` event but not always a `active session changed` event.

When the second session is killed, the UI correctly reverts to show the state of the first session - so it is now de facto the active one. E.g. variables and buttons update. The combo box in the toolbar updates to reflect the only remaining session (but doesn't disappear, despite there being only one session to show).

It causes us a problem as we have our own custom debug type and a UI panel that we update to reflect the active debug session, showing a diagram relevant to the active session (if one of ours). When the second session is terminated and the first one becomes active by default, we should update the UI as well, but we don't get the event. And because the vscode UI has de facto changed to have the first one active (but without firing an event), there isn't anything the user can do that will trigger that event to fire.

I'm running our extension from vscode in the extension host.
Repository: deno
Issue: Deno compile could not resolve `fork` in a right way maybe?
Labels: bug,needs info,compile

# Version
```
deno 2.0.0 (stable, release, x86_64-unknown-linux-gnu)
v8 12.9.202.13-rusty
typescript 5.6.2
```
# Problem Description
Suppose there are two files main.js and echo.js
I use `fork` of `node:child_process` to fork `echo.js` in `main.js` and then use
`createServer` of `node:net` to create a socket server and listen at `127.0.0.1:7788`,
=== 1. It will be working well if I just run `deno run -A main.js`
```bash
cus :: ~/app/tttttttttttt » deno run -A main.js
Listening on 127.0.0.1:7788
hello
hello
```
=== 2. But if I use `deno compile -A` and then run the executable file, `EADDRINUSE` will happen.
server
```
cus :: ~/app/tttttttttttt » ./main
Listening on 127.0.0.1:7788
error: Uncaught Error: listen EADDRINUSE: address already in use 127.0.0.1:7788
    at __node_internal_captureLargerStackTrace (ext:deno_node/internal/errors.ts:93:9)
    at __node_internal_uvExceptionWithHostPort (ext:deno_node/internal/errors.ts:124:10)
    at Server._setupListenHandle [as _listen2] (node:net:1180:16)
    at _listenInCluster (node:net:1012:12)
    at doListen (node:net:1022:7)
    at Array.processTicksAndRejections (ext:deno_node/_next_tick.ts:39:15)
    at eventLoopTick (ext:core/01_core.js:172:29)
error: Uncaught Error: Channel closed
    at ChildProcess.target.send (ext:deno_node/internal/child_process.ts:1185:19)
    at Server.<anonymous> (file:///tmp/deno-compile-main/tttttttttttt/main.js:12:9)
    at Server.emit (ext:deno_node/_events.mjs:393:28)
    at TCP._onconnection (node:net:1127:8)
    at TCP.#accept (ext:deno_node/internal_binding/tcp_wrap.ts:356:12)
    at eventLoopTick (ext:core/01_core.js:175:7)
cus :: ~/app/tttttttttttt 1 »
```
client
```
~ » telnet 127.0.0.1 7788
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Connection closed by foreign host.
```
It looks that `deno compile` could not make fork and listen work together.
# Minimal Reproducible Implementation
echo.js
```js
import process from 'node:process';

let shouldQuit = false;

process.on('message', (data) => {
  if (data.action === 'quit') {
    shouldQuit = true;
    return;
  }
  if (data.action === 'request') {
    process.send({ action: 'response', data: data.data });
  }
});

(async () => {
  while (true) {
    if (shouldQuit) {
      break;
    }
    await new Promise((rs) => {
      setTimeout(() => {
        rs();
      }, 1004);
    });
  }
})();
```

main.js
```js
import { fork } from 'node:child_process';
import { createServer } from 'node:net';

const child = fork('./echo.js');
child.on('message', (data) => {
  if (data.action === 'response') {
    console.log(data.data);
  }
});

const server = createServer((localSocket) => {
  child.send({ action: 'request', data: 'hello' });
  localSocket.write('You connected, and you disconnect now.\n');
  localSocket.destroy();
});

const LOCAL_PORT = 7788;

server.listen(LOCAL_PORT, '127.0.0.1', () => {
  console.log(`Listening on 127.0.0.1:${LOCAL_PORT}`);
});
```