profile
viewpoint

Ask questionsNot all success patterns were matched. (error code 712)

Actual Behavior

I'm trying to debug a RN project but it gives error on below. I'm using my pc on Turkish language so package installed on TR as by default. But it found same error output on EN and I will post on below.

I checked this issue but I'm not using any package runner at same time. I just open project folder on VS Code and hit the debug button. By the way my launch.json file:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Debug Android",
            "cwd": "${workspaceFolder}",
            "type": "reactnative",
            "request": "launch",
            "platform": "android",
            "sourceMaps": true,
            "outDir": "${workspaceRoot}/.vscode/.react"
        },
    ]
}

Expected Behavior

  1. Proper debug session.

Software versions

  • React-Native VS Code extension version: 0.11.0
  • VSCode version: 1.38.1
  • OS platform and version: Windows_NT x64 10.0.18362
  • NodeJS version: 10.11.0
  • React Native version: 0.60.4
  • Expo SDK version (include if relevant): -

Outputs (Include if relevant)

  • Output of the Debug Console (View -> Toggle Debug Console):
OS: win32 x64
Adapter node: v10.11.0 x64
vscode-chrome-debug-core: 6.7.46
Hata ayıklanamadı. Bilinmeyen hata: Başarı desenlerinin tümü eşleşmedi. 
 Bu durum, "react-native run-android" komutunun başarısız olduğu anlamına gelir. 
 Lütfen, Görünüm -> Çıkışı Aç/Kapat -> React Native, 
 Görünüm -> Çıkışı Aç/Kapat -> React Native: android Çalıştır çıkış pencerelerini gözden geçirin. (error code 712)
  • Output of the React-Native output channel (View -> Toggle Output -> Select React-Native in ListBox):
[Info] Paketleyici başlatılıyor

┌──────────────────────────────────────────────────────────────────────────────┐
│                                                                              │
│  Running Metro Bundler on port 8081.                                         │
│                                                                              │
│  Keep Metro running while developing on any JS projects. Feel free to        │
│  close this tab and run your own Metro instance if you prefer.               │
│                                                                              │
│  https://github.com/facebook/react-native                                    │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘

Looking for JS files in
   c:\Users\ezran\Desktop\SADELABS\testPRO 

[Info] Paketleyici başlatıldı.

[Info] Toplu paket önbelleği önceden hazırlanıyor. Bu işlem biraz zaman alabilir...

[Info] Şu alınmak üzere: http://localhost:8081/index.bundle?platform=android

Loading dependency graph, done.
[Warning] Toplu Paket Önbelleği önceden hazırlandı.

[Info] Uygulama oluşturuluyor ve çalıştırılıyor.

 BUNDLE  [android, dev] ./index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (971/971), done.

[Error] Error: Bilinmeyen hata: Başarı desenlerinin tümü eşleşmedi. 
 Bu durum, "react-native run-android" komutunun başarısız olduğu anlamına gelir. 
 Lütfen, Görünüm -> Çıkışı Aç/Kapat -> React Native, 
 Görünüm -> Çıkışı Aç/Kapat -> React Native: android Çalıştır çıkış pencerelerini gözden geçirin. (error code 712)
 BUNDLE  [android, dev] ./index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (1/1), done.
(ENGLISH:)
[Error] Error: Unknown error: not all success patterns were matched. It means that "react-native run-android" command failed. Please, check the View -> Toggle Output -> React Native, View -> Toggle Output -> React Native: Run android output windows. (error code 712)
  • Output of the Developer Tools console (Help -> Toggle Developer Tools -> Select Console tab):
statusbar.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
workbench.desktop.main.js:sourcemap:3579 [Extension Host] debugger listening on port 61172
workbench.desktop.main.js:sourcemap:230 [Extension Host] vscode-customcss is active!
workbench.desktop.main.js:sourcemap:230 [Extension Host] (node:19356) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
t.log @ workbench.desktop.main.js:sourcemap:230
workbench.desktop.main.js:sourcemap:230 [Extension Host] (node:19356) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
t.log @ workbench.desktop.main.js:sourcemap:230
2workbench.desktop.main.js:sourcemap:1504   ERR Tree element not found: [object Object]: Error: Tree element not found: [object Object]
    at s.getElementLocation (file:///C:/Users/ezran/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:124:791)
    at s.isCollapsed (file:///C:/Users/ezran/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:124:65)
    at q.isCollapsed (file:///C:/Users/ezran/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1009:19)
    at W.revealMarkersForCurrentActiveEditor (file:///C:/Users/ezran/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:5714:628)
    at W.autoReveal (file:///C:/Users/ezran/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:5714:485)
    at W.onActiveEditorChanged (file:///C:/Users/ezran/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:5711:775)
    at W._register.e (file:///C:/Users/ezran/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:5710:789)
    at d.fire (file:///C:/Users/ezran/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:107:488)
    at setTimeout (file:///C:/Users/ezran/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:103:913)
microsoft/vscode-react-native

Answer questions ezranbayantemur

It seems no problem. Just only one warning for "Simulator target does not support for Android." bla bla, but I don't think it's about debugging. I testing on real device and it's open the app.

[Warning] simulator hedefi Android platformu için desteklenmiyor. 
 Android uygulamasını başlatmak için belirli bir cihaz veya simülatör kullanmak istiyorsanız
 lütfen bunun yerine cihaz kimliğini ('adb devices' çıkışındaki gibi) belirtin.

[Info] android/local.properties dosyasında tanımlanan Android SDK konumu kullanılıyor: C:\Users\ezran\AppData\Local\Android\Sdk.

[Info] React Native Paketleyicisi başlatılıyor.

info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1041 file(s) to forward-jetify. Using 8 workers...
info Installing the app...
> Task :@react-native-community_async-storage:preBuild UP-TO-DATE
> Task :@react-native-community_async-storage:preDebugBuild UP-TO-DATE
> Task :@react-native-community_async-storage:compileDebugAidl NO-SOURCE
> Task :@react-native-community_async-storage:checkDebugManifest UP-TO-DATE
> Task :@react-native-community_async-storage:compileDebugRenderscript NO-SOURCE

...
...

SO MANY PACKAGES..

...
...

> Task :react-native-vector-icons:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
> Task :app:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
> Task :app:processDebugJavaRes NO-SOURCE
> Task :app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
> Task :app:packageDebug UP-TO-DATE

> Task :app:installDebug
05:19:18 V/ddms: execute: running am get-config
05:19:19 V/ddms: execute 'am get-config' on 'aa62dc2a' : EOF hit. Read: -1
05:19:19 V/ddms: execute: returning
Installing APK 'app-debug.apk' on 'General Mobile 4G Dual - 7.1.1' for app:debug
05:19:19 D/app-debug.apk: Uploading app-debug.apk onto device 'aa62dc2a'
05:19:19 D/Device: Uploading file onto device 'aa62dc2a'
05:19:19 D/ddms: Reading file permision of C:\Users\ezran\Desktop\SADELABS\testPRO\android\app\build\outputs\apk\debug\app-debug.apk as: rwx------
05:19:21 V/ddms: execute: running pm install -r -t "/data/local/tmp/app-debug.apk"
05:19:31 V/ddms: execute 'pm install -r -t "/data/local/tmp/app-debug.apk"' on 'aa62dc2a' : EOF hit. Read: -1
05:19:31 V/ddms: execute: returning
05:19:31 V/ddms: execute: running rm "/data/local/tmp/app-debug.apk"
05:19:31 V/ddms: execute 'rm "/data/local/tmp/app-debug.apk"' on 'aa62dc2a' : EOF hit. Read: -1
05:19:31 V/ddms: execute: returning
Installed on 1 device.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings

BU�LD SUCCESSFUL in 28s
117 actionable tasks: 2 executed, 115 up-to-date
info Connecting to the development server...
info Starting the app on "aa62dc2a"...
Starting: Intent { cmp=com.testproject/.MainActivity }
useful!

Related questions

[Error] TypeError: ConfigUtils(...).configFilenameAsync is not a function hot 134
Can't attach packager for debugging hot 106
Error while executing command 'react-native.cmd run-android --no-packager' (error code 101) hot 99
/bin/sh: 1: adb: not found on Linux hot 55
Cannot bind listener: operation not permitted hot 49
Error while executing command 'react-native run-ios --simulator --no-packager' hot 39
Error while executing command 'react-native.cmd run-android --no-packager': Error while executing command 'react-native.cmd run-android --no-packager' (error code 101) hot 33
Cannot read property 'getCurrentUserAsync' of undefined hot 26
Cannot bind listener: operation not permitted hot 23
Current workspace does not contain React Native projects hot 22
Unable to resolve module `../Components/AccessibilityInfo/AccessibilityInfo` message hot 21
Version 0.13 breaks running packager from VS Code from different folder hot 15
Could not debug - error code 604 hot 13
Current workspace does not contain React Native projects hot 11
Expo app doesn't connect to packager hot 10
Github User Rank List