You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
After updating to 1.4.0 the react-native extension no longer accepted as a debugger (for some people) #10148
*caused-by-extensionIssue identified to be caused by an extensionbugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded
Check whether "React Native" is an option when configuring a new project for debugging
When I attempted to replicate the issue on windows 10 and OSX 10.11.4 I was unable to and the extension continued to work normally, with "React Native" appearing in the list of possible debuggers. Ferhat Kurtulmuş (@aferust) has attempted to re-install the extension and it continues to not show up as a debugging option.
I also had the same problem and it's okay after rolling back vscode 1.3.1. Interesting thing is that when I installed vscode(1.4) and RN extentsion on my new iMac it worked fine. The problem occurs when vscode is updated.
Ferhat Kurtulmuş (@aferust) I'm sorry but even though I install vscode insiders(1.5.0-insiders), I still got the same error. When I trigger build, it fails with message like "reactnative not supported". Any thought on this?
Isidor Nikolic (@isidorn) this has hit more people. Any idea if it is something to do with our extension that we can fix, or is updating to the insiders build the best hope?
The issue was the the flow language support contributed an empty enableBreakpointsFor which led to the issue on our side when merging these attributes for adapters that contribute the same type.
There was an exception in the developer tools (F1 > toggle developer tools) which made this clear.
Isidor Nikolic (@isidorn) why wasn't this exception not reported as an error for the flow extension? I remember that we once had this annoying notification that reported extension errors?
In addition, an exception in the flow extension should not prevent the React Native extension from loading correctly.
Please create issues for these two problems.
Andre Weinand (@weinand) it was not reported because there was no underlying issue in the flow or the react extension. Flow extension properly contributes 'enableBreakpointsFor' while the react had a mistype thus not contributing anything. An extension does not have to contribute the 'enableBreakpointsFor'.
I agree that one extension should not prevent another from loading correctly and with this bugfix we have fixed this issue. Of course there may be others which we are currently unware of.
VS Code had a bug in the code that merges debugger contributions: the merge code would fail if one contribution is empty.
This (rare) corner case was hit by the combination of the React Native and the Flow extension:
The typo enableBrekapointsFor resulted in an empty contribution and the Flow extension had another (unnecessary) contribution for enableBreakpointsFor. This made the merge code fail for the React Native debugger and the contribution of the debug type reactnative was dropped.
For my case it was not the flow extension but an another one (something like jsx beautify).
Here is my initial report :
Actual Behavior
First I had to reconfigure the environnements after the upgrade
When I want to run the debuger I got "Le processus de l'adapptateur de débogage s'est terminé de manière inattendue" "Ouvrir launch.json"
Expected Behavior
I want the debuger to be launched!
Software versions
React-Native VS Code extension version: React Native Tools 0.2.0
VSCode version: Version 1.5.3 (1.5.3)
OS platform and version: macOS 10.11.6
React Native version: RN 0.33
Outputs (Include if relevant)
Output of the Debug Console (View -> Toggle Debug Console):
Output of the React-Native output channel (View -> Toggle Output -> Select React-Native in ListBox):
Output of the Developer Tools console (Help -> Toggle Developer Tools -> Select Console tab):
messageService.ts:119Le processus de l'adaptateur de débogage s'est terminé de manière inattendue : Error: Le processus de l'adaptateur de débogage s'est terminé de manière inattendue
at Object._ [as create] (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:34:29245)
at file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:119:8772
at Object.m [as _notify] (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:30:13448)
at Object.B.enter (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:30:16953)
at n.Class.define._run (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:30:18274)
at n.Class.define._chainedError (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:30:17633)
at n (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:30:15456)
at n.Class.define.then (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:30:19083)
at Object.R.enter (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:30:15525)
at n.Class.define._run (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:30:18274)
at n.Class.define._setCompleteValue (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:30:17968)e.doShow @ messageService.ts:119
messageService.ts:119Le processus de l'adaptateur de débogage s'est terminé de manière inattenduee.doShow @ messageService.ts:119
*caused-by-extensionIssue identified to be caused by an extensionbugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded
Activity
aferust commentedon Aug 5, 2016
in addition to my bug report, vscode runs normally after downgrading to 0.10.10.
kyo504 commentedon Aug 5, 2016
I also had the same problem and it's okay after rolling back vscode 1.3.1. Interesting thing is that when I installed vscode(1.4) and RN extentsion on my new iMac it worked fine. The problem occurs when vscode is updated.
aferust commentedon Aug 5, 2016
Daniel Jung (@kyo504)
Could you please give me a download link for 1.3.1? My version of 0.10.10 is too old.
isidorn commentedon Aug 5, 2016
Works for me. There might be some issue with the update mechanism on your particular machine
Ferhat Kurtulmuş (@aferust) you can get the latest vscode insiders here https://code.visualstudio.com/insiders
aferust commentedon Aug 5, 2016
Thank you both Daniel Jung (@kyo504) and Isidor Nikolic (@isidorn). vscode insider worked perfectly!
kyo504 commentedon Aug 8, 2016
Ferhat Kurtulmuş (@aferust) I'm sorry but even though I install vscode insiders(1.5.0-insiders), I still got the same error. When I trigger build, it fails with message like "reactnative not supported". Any thought on this?
MSLaguana commentedon Aug 12, 2016
Isidor Nikolic (@isidorn) this has hit more people. Any idea if it is something to do with our extension that we can fix, or is updating to the insiders build the best hope?
22 remaining items
isidorn commentedon Aug 25, 2016
The issue was the the flow language support contributed an empty
enableBreakpointsForwhich led to the issue on our side when merging these attributes for adapters that contribute the same type.There was an exception in the developer tools (F1 > toggle developer tools) which made this clear.
weinand commentedon Aug 25, 2016
Isidor Nikolic (@isidorn) why wasn't this exception not reported as an error for the flow extension? I remember that we once had this annoying notification that reported extension errors?
In addition, an exception in the flow extension should not prevent the React Native extension from loading correctly.
Please create issues for these two problems.
isidorn commentedon Aug 25, 2016
Andre Weinand (@weinand) it was not reported because there was no underlying issue in the flow or the react extension. Flow extension properly contributes 'enableBreakpointsFor' while the react had a mistype thus not contributing anything. An extension does not have to contribute the 'enableBreakpointsFor'.
I agree that one extension should not prevent another from loading correctly and with this bugfix we have fixed this issue. Of course there may be others which we are currently unware of.
weinand commentedon Aug 25, 2016
Jimmy Thomson (@MSLaguana) here is the summary of our investigation:
VS Code had a bug in the code that merges debugger contributions: the merge code would fail if one contribution is empty.
This (rare) corner case was hit by the combination of the React Native and the Flow extension:
The typo
enableBrekapointsForresulted in an empty contribution and the Flow extension had another (unnecessary) contribution forenableBreakpointsFor. This made the merge code fail for the React Native debugger and the contribution of the debug typereactnativewas dropped.Crash-- commentedon Sep 27, 2016
I ran into a similar issue with v1.5.3.
For my case it was not the flow extension but an another one (something like jsx beautify).
Here is my initial report :
Actual Behavior
Expected Behavior
Software versions
Outputs (Include if relevant)
MSLaguana commentedon Sep 27, 2016
I'll also add that since this is using 0.2.0 of our extension, the
enableBrekapointsFortypo has been fixed, so that should not be a factor.isidorn commentedon Sep 27, 2016
Quentin Valmori (@Crash--) please create a new issue for this - thank you
Crash-- commentedon Sep 27, 2016
Isidor Nikolic (@isidorn) I created an issue here microsoft/vscode-react-native#309 but Jimmy Thomson (@MSLaguana) asked me to repost here... If I need to create a new issue, I will...
isidorn commentedon Sep 27, 2016
Quentin Valmori (@Crash--) yes please create a new issue - thanks
debug: null guard when having multiple enableBreakpointsFor contribut…