Closed kenny1983 closed 3 years ago
Hi @kenny1983 and sorry for long response. Unfortunately we could not reproduce your error with following steps:
1) Init bare Expo project via command expo init ExpoProject -t bare-minimum@sdk-40
2) Execute expo eject
in created ExpoProject root
3) Execute following commands one by one
adb tcpip 5555
adb connect <DEVICE_ID>: 5555
adb reverse tcp: 8081 tcp: 8081
4) Confirmed that adb devices
correctly shows connected device.
5) Ran the following debug config from VS Code:
{
"name": "Run and Debug",
"request": "launch",
"type": "reactnative",
"cwd": "$ {workspaceFolder}",
"platform": "android"
}
6) Waiting for the building and installation of the application on the device 7) After starting the application, open DevMenu and enable debug mode 8) Success
If you are unable to reproduce this error with our steps too, then it would be very helpful if you could provide a small demo project that reproduces this error and steps for reproduce it.
Hi @JiglioNero,
After waiting for your response and not getting one for almost a week, I gave up and uninstalled this extension. After receiving your response this morning, I have reinstalled the extension and can confirm that the error is no longer occuring.
If I happen to come across any further problems, I'll be sure to let you guys know. Thanks đ
@kenny1983 We are glad that your problem has been resolved, please feel free to contact us at any time :+1:
Thanks, @JiglioNero , will do!
đ What is the bug? How can we reproduce it?
Hi guys! First of all thanks for this awesome extension; it used to work great when I was working in a managed Expo project, but now that I have ejected, I'm struggling to get it to work properly. Steps taken to set this up:
adb connect <my phone's IP>:5555
andadb reverse tcp:8081 tcp:8081
.adb devices
correctly shows my connected device.Debug
).Expected behavior
App loads normally and execution pauses at breakpoint set in VS Code.
Debug output
Debug Console
```text Launching the application Attaching to the application Starting debugger app worker. Established a connection with the Proxy (Packager) to the React Native application ```React Native output channel
```text [Info] Packager is already running. [Info] Prewarming bundle cache. This may take a while ... [Info] About to get: http://localhost:19000/index.bundle?platform=android [Thu Sep 02 2021 10:06:37.429] BUNDLE ./index.js [Warning] The Bundle Cache was prewarmed. [Info] Building and running application. events.js:352 throw er; // Unhandled 'error' event ^ Error: EPERM: operation not permitted, lstat 'd:\Dev\Hobby_Programming\Web\React-Native\Meals2U\android\app\build\generated\res\react\debug\raw\node_modules_expo_vectoricons_build_vendor_reactnativevectoricons_fonts_fontisto.ttf' Emitted 'error' event on NodeWatcher instance at: at NodeWatcher.Developer Tools console
```text console.ts:137 [Extension Host] (node:4412) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.(Use `Code --trace-deprecation ...` to show where the warning was created) S @ console.ts:137 TMScopeRegistry.ts:45 Overwriting grammar scope name to file mapping for scope source.java. Old grammar file: file:///c%3A/Program%20Files/Microsoft%20VS%20Code/resources/app/extensions/java/syntaxes/java.tmLanguage.json. New grammar file: file:///c%3A/Users/Kenny/.vscode/extensions/redhat.java-0.81.0/syntaxes/java.tmLanguage.json register @ TMScopeRegistry.ts:45 console.ts:137 [Extension Host] Congratulations, your extension "vscode-postgres" is now active! console.ts:137 [Extension Host] previousVersion 1.2.2 mainThreadExtensionService.ts:63 [[object Object]]s.tmpDir is not a function $onExtensionRuntimeError @ mainThreadExtensionService.ts:63 mainThreadExtensionService.ts:64 TypeError: s.tmpDir is not a function at e._sendFirstFileOnDisk (c:\Users\Kenny\.vscode\extensions\msjsdiag.vscode-react-native-1.6.1\dist\rn-extension.js:1:25358) at Timeout._onTimeout (c:\Users\Kenny\.vscode\extensions\msjsdiag.vscode-react-native-1.6.1\dist\rn-extension.js:1:24162) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) $onExtensionRuntimeError @ mainThreadExtensionService.ts:64 notificationsAlerts.ts:40 The terminal process "C:\WINDOWS\System32\cmd.exe" terminated with exit code: 1. onDidChangeNotification @ notificationsAlerts.ts:40 mainThreadExtensionService.ts:63 [[object Object]]s.tmpDir is not a function $onExtensionRuntimeError @ mainThreadExtensionService.ts:63 mainThreadExtensionService.ts:64 TypeError: s.tmpDir is not a function at e._sendFirstFileOnDisk (c:\Users\Kenny\.vscode\extensions\msjsdiag.vscode-react-native-1.6.1\dist\rn-extension.js:1:25358) at Timeout._onTimeout (c:\Users\Kenny\.vscode\extensions\msjsdiag.vscode-react-native-1.6.1\dist\rn-extension.js:1:24162) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) $onExtensionRuntimeError @ mainThreadExtensionService.ts:64 mainThreadExtensionService.ts:63 [[object Object]]s.tmpDir is not a function $onExtensionRuntimeError @ mainThreadExtensionService.ts:63 mainThreadExtensionService.ts:64 TypeError: s.tmpDir is not a function at e._sendFirstFileOnDisk (c:\Users\Kenny\.vscode\extensions\msjsdiag.vscode-react-native-1.6.1\dist\rn-extension.js:1:25358) at Timeout._onTimeout (c:\Users\Kenny\.vscode\extensions\msjsdiag.vscode-react-native-1.6.1\dist\rn-extension.js:1:24162) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) $onExtensionRuntimeError @ mainThreadExtensionService.ts:64 mainThreadExtensionService.ts:63 [[object Object]]s.tmpDir is not a function $onExtensionRuntimeError @ mainThreadExtensionService.ts:63 mainThreadExtensionService.ts:64 TypeError: s.tmpDir is not a function at e._sendFirstFileOnDisk (c:\Users\Kenny\.vscode\extensions\msjsdiag.vscode-react-native-1.6.1\dist\rn-extension.js:1:25358) at Timeout._onTimeout (c:\Users\Kenny\.vscode\extensions\msjsdiag.vscode-react-native-1.6.1\dist\rn-extension.js:1:24162) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) $onExtensionRuntimeError @ mainThreadExtensionService.ts:64 mainThreadExtensionService.ts:63 [[object Object]]s.tmpDir is not a function $onExtensionRuntimeError @ mainThreadExtensionService.ts:63 mainThreadExtensionService.ts:64 TypeError: s.tmpDir is not a function at e._sendFirstFileOnDisk (c:\Users\Kenny\.vscode\extensions\msjsdiag.vscode-react-native-1.6.1\dist\rn-extension.js:1:25358) at Timeout._onTimeout (c:\Users\Kenny\.vscode\extensions\msjsdiag.vscode-react-native-1.6.1\dist\rn-extension.js:1:24162) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) $onExtensionRuntimeError @ mainThreadExtensionService.ts:64 mainThreadExtensionService.ts:63 [[object Object]]s.tmpDir is not a function $onExtensionRuntimeError @ mainThreadExtensionService.ts:63 mainThreadExtensionService.ts:64 TypeError: s.tmpDir is not a function at e._sendFirstFileOnDisk (c:\Users\Kenny\.vscode\extensions\msjsdiag.vscode-react-native-1.6.1\dist\rn-extension.js:1:25358) at Timeout._onTimeout (c:\Users\Kenny\.vscode\extensions\msjsdiag.vscode-react-native-1.6.1\dist\rn-extension.js:1:24162) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) $onExtensionRuntimeError @ mainThreadExtensionService.ts:64 mainThreadExtensionService.ts:63 [[object Object]]s.tmpDir is not a function $onExtensionRuntimeError @ mainThreadExtensionService.ts:63 mainThreadExtensionService.ts:64 TypeError: s.tmpDir is not a function at e._sendFirstFileOnDisk (c:\Users\Kenny\.vscode\extensions\msjsdiag.vscode-react-native-1.6.1\dist\rn-extension.js:1:25358) at Timeout._onTimeout (c:\Users\Kenny\.vscode\extensions\msjsdiag.vscode-react-native-1.6.1\dist\rn-extension.js:1:24162) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) ```Environment
Please tell us about your system and your project:
npx react-native doctor
ornpx expo doctor
if your project is using Expo:N.B. I believe the errors are false positives since I do have Python and Android Studio installed :@
npx ... doctor
commands in general seem to always have these kinds of issues for me...envinfo
:MTIA for any help to debug this frustrating issue đ