Skip to content

After updating to 1.4.0 the react-native extension no longer accepted as a debugger (for some people) #10148

Closed

Description

  • VSCode Version: 1.4.0
  • OS Version: OSX 10.11.6

See microsoft/vscode-react-native#276 for original report by Ferhat Kurtulmuş (@aferust)

Steps to Reproduce:

  1. Have React Native Tools extension installed
  2. Update vscode to 1.4.0
  3. 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.

Activity

  1. aferust commented on Aug 5, 2016

    @aferust

    in addition to my bug report, vscode runs normally after downgrading to 0.10.10.

  2. kyo504 commented on Aug 5, 2016

    @kyo504

    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.

  3. aferust commented on Aug 5, 2016

    @aferust

    Daniel Jung (@kyo504)
    Could you please give me a download link for 1.3.1? My version of 0.10.10 is too old.

  4. isidorn commented on Aug 5, 2016

    @isidorn

    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

    react

  5. aferust commented on Aug 5, 2016

    @aferust

    Thank you both Daniel Jung (@kyo504) and Isidor Nikolic (@isidorn). vscode insider worked perfectly!

  6. kyo504 commented on Aug 8, 2016

    @kyo504

    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?

  7. MSLaguana commented on Aug 12, 2016

    @MSLaguana
    MemberAuthor

    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?

  8. 22 remaining items

  9. added
    bug
    on Aug 25, 2016
  10. isidorn commented on Aug 25, 2016

    @isidorn

    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.

  11. weinand commented on Aug 25, 2016

    @weinand
    Contributor

    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.

  12. isidorn commented on Aug 25, 2016

    @isidorn

    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.

  13. weinand commented on Aug 25, 2016

    @weinand
    Contributor

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

  14. added
    verified
    on Sep 1, 2016
  15. Crash-- commented on Sep 27, 2016

    @Crash--

    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

    1. First I had to reconfigure the environnements after the upgrade
    2. 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

    1. 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
    
  16. MSLaguana commented on Sep 27, 2016

    @MSLaguana
    MemberAuthor

    I'll also add that since this is using 0.2.0 of our extension, the enableBrekapointsFor typo has been fixed, so that should not be a factor.

  17. isidorn commented on Sep 27, 2016

    @isidorn

    Quentin Valmori (@Crash--) please create a new issue for this - thank you

  18. Crash-- commented on Sep 27, 2016

    @Crash--

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

  19. isidorn commented on Sep 27, 2016

    @isidorn

    Quentin Valmori (@Crash--) yes please create a new issue - thanks

  20. locked and limited conversation to collaborators on Nov 18, 2017
  21. added a commit that references this issue on Sep 6, 2026
    9b2f460
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*caused-by-extensionbugdebugverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions