-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After updating to 1.4.0 the react-native extension no longer accepted as a debugger (for some people) #10148
Comments
in addition to my bug report, vscode runs normally after downgrading to 0.10.10. |
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. |
@kyo504 |
Works for me. There might be some issue with the update mechanism on your particular machine |
@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? |
@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? |
@kyo504 I would like to better understand what problem you are really seeing. The initial problem description from above talks about a missing "React Native" entry in the list of possible debuggers when creating the launch config for a new project. You are seeing a "reactnative not supported" when triggering a build. Since I do not know where this message originates from it would be great if you can provide a screenshot that shows the problem in the UI. In addition could please verify that the RN extension is listed when you open the extension viewlet. |
@MSLaguana you said that this has hit more people. Could you please provide the specific details of the issues they are seeing. From the information I see in this issue it is not clear whether this only a missing debug type or a missing RN extension. |
@weinand I was just letting you know that more people have reported hitting this issue at microsoft/vscode-react-native#276 My understanding is that the missing "React Native" entry in the list of possible debuggers and "reactnative not supported" are both symptoms of the same underlying issue; that vscode is not registering our extension as providing a debugger for some people. If someone has already created a launch.json then they get "reactnative not supported" since that is the name of the debugger that is in their launch.json, and if they have not created one then they find "React Native" missing in the list when they attempt to do so. |
@MSLaguana the debugger produces a different message for an unknown debug type: And @kyo504 saw the "reactnative not supported" message when triggering a build. I just want to make sure that we are investigating in the correct direction... |
@MSLaguana there is a typo in the |
Ah, thanks for pointing that out. I'll fix that straight away. I would be surprised if that was the cause though, since it only impacts some people. |
Tried fixing the |
@weinand any other suggestions, or ways we could try to get more information on how vscode is interpreting the extension? |
The same problem. I fixed the typo in I tried the nightly build too. The bug still exists. VSCode: 1.4 + React Native Tools 0.1.5 |
To summarize:
Does it help if the users manually delete the extension from the extensions folder and then reinstall it? |
It doesn't help. |
Can you try installing the powershell, go or the c++ extension and double check if powershel / go / c++ are offered as possible debuggers when creating a new launch.json? |
I already have Go and yes I can see it along with c++ nodejs and vscode extension targets |
Could someone who experiences this problem try to disable (uninstall) all extensions but the React Native extension and then verify that the problem still exists. |
@weinand already done that multiple times edit: I stand corrected. The culprit is flow extension !!! |
@weinand It works after I uninstalled all other extensions (VS Code Insiders). |
@yimingtang can you confirm that the flow extension is the culprit? |
@isidorn could you please install the flow extension and try whether you can reproduce this? |
@weinand Awesome, you got it! |
The issue was the the flow language support contributed an empty There was an exception in the developer tools (F1 > toggle developer tools) which made this clear. |
@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? |
@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. |
@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: |
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)
|
I'll also add that since this is using 0.2.0 of our extension, the |
@Crash-- please create a new issue for this - thank you |
@isidorn I created an issue here microsoft/vscode-react-native#309 but @MSLaguana asked me to repost here... If I need to create a new issue, I will... |
@Crash-- yes please create a new issue - thanks |
See microsoft/vscode-react-native#276 for original report by @aferust
Steps to Reproduce:
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. @aferust has attempted to re-install the extension and it continues to not show up as a debugging option.
The text was updated successfully, but these errors were encountered: