Skip to content

[VSCode 0.10.10] VS Code 0.10.10 support #25

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

Closed
lelong37 opened this issue Mar 8, 2016 · 14 comments
Closed

[VSCode 0.10.10] VS Code 0.10.10 support #25

lelong37 opened this issue Mar 8, 2016 · 14 comments
Assignees

Comments

@lelong37
Copy link

lelong37 commented Mar 8, 2016

Not sure if it's because I updated to 0.10.10 but now getting this error:

image

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch on iOS Device",
            "type": "nativescript",
            "platform": "ios",
            "request": "launch",
            "appRoot": ".",
            "sourceMaps": true,
            "diagnosticLogging": false,
            "stopOnEntry": true,
            "emulator": false
        },
        {
            "name": "Attach on iOS Device",
            "type": "nativescript",
            "platform": "ios",
            "request": "attach",
            "appRoot": ".",
            "sourceMaps": true,
            "diagnosticLogging": false,
            "emulator": false
        },
        {
            "name": "Launch on iOS Emulator",
            "type": "nativescript",
            "platform": "ios",
            "request": "launch",
            "appRoot": ".",
            "sourceMaps": true,
            "diagnosticLogging": false,
            "stopOnEntry": true,
            "emulator": true
        },
        {
            "name": "Attach on iOS Emulator",
            "type": "nativescript",
            "platform": "ios",
            "request": "attach",
            "appRoot": ".",
            "sourceMaps": true,
            "diagnosticLogging": false,
            "emulator": true
        },
        {
            "name": "Launch on Android Device",
            "type": "nativescript",
            "platform": "android",
            "request": "launch",
            "appRoot": ".",
            "sourceMaps": true,
            "diagnosticLogging": false,
            "stopOnEntry": true,
            "emulator": false
        },
        {
            "name": "Launch on Android Emulator",
            "type": "nativescript",
            "platform": "android",
            "request": "launch",
            "appRoot": ".",
            "sourceMaps": true,
            "diagnosticLogging": false,
            "stopOnEntry": true,
            "emulator": true
        },
        {
            "name": "Attach on Android Device",
            "type": "nativescript",
            "platform": "android",
            "request": "attach",
            "appRoot": ".",
            "sourceMaps": false,
            "diagnosticLogging": false,
            "emulator": false
        },
        {
            "name": "Attach on Android Emulator",
            "type": "nativescript",
            "platform": "android",
            "request": "attach",
            "appRoot": ".",
            "sourceMaps": false,
            "diagnosticLogging": false,
            "emulator": true
        }
    ]
}
@ivanbuhov
Copy link
Contributor

When does the message show up? Which debug configuration caused this message to show up? Make sure you have the latest extension version by reinstalling it. Also, you can try removing your launch.json file and generating it again from the little gear icon in the Debug Panel. If the error is still there, set diagnosticLogging to true in the debug configuration you are using and send the log in the Debugger Console.

@lelong37
Copy link
Author

lelong37 commented Mar 8, 2016

Thanks @ivanbuhov, I've uninstalled the VSCode plugin and have deleted the launch.json a few times as well as rebooting. The message shows up on pretty much any debug configuration, I'm using Launch on IOS Emulator most frequently. Will send the log to you first thing tomorrow.

@ivanbuhov ivanbuhov self-assigned this Mar 8, 2016
@ivanbuhov
Copy link
Contributor

Hi @lelong37
I reproduced the issue. There are some changes in VS Code 0.10.10 which cause this behavior. To fix it, change the appRoot setting value from . to ${workspaceRoot} in every configuration in launch.json file.
The issue is already fixed in master branch: 1ec44c3

@Daxito
Copy link

Daxito commented Mar 9, 2016

I changed . for ${workspaceRoot} but everytime I add a breakpoint it gives me this error, I also see those warnings, any idea?

screen shot 2016-03-08 at 9 02 52 pm
screen shot 2016-03-08 at 9 04 30 pm

@rajagottumukkala
Copy link

I have the same issue

@ivanbuhov
Copy link
Contributor

@Daxito just ignore the warnings, they will be gone in the next version of the extension. We are investigating the other issue ("Unexpected end of input" error message). It seems it will require changes in the extension. Till then, I suggest downgrading to VS Code 0.10.9.

@lelong37
Copy link
Author

image

image

@ivanbuhov tried everything, still can't debug, here is the log as requested.

CpResource scmobileapp/Resources/sclogo.png build/emulator/scmobileapp.app/sclogo.png
    cd /Users/lelong37/Sources/sc11/scmobile-app/platforms/ios
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/lelong37/.nvm/versions/node/v4.2.1/bin:/Applications/Genymotion\\ Shell.app/Contents/MacOS/:/Applications/Genymotion.app/Contents/MacOS:/Users/lelong37/Library/Android-SDK/platform-tools:/Users/lelong37/Library/Android-SDK/tools:/usr/local/lib/dnx/runtimes/dnx-mono.1.0.0-rc1-update1/bin:/Users/lelong37/.dnx/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin"
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/lelong37/Sources/sc11/scmobile-app/platforms/ios/scmobileapp/Resources/sclogo.png /Users/lelong37/Sources/sc11/scmobile-app/platforms/ios/build/emulator/scmobileapp.app
CpResource scmobileapp/Resources/[email protected] build/emulator/scmobileapp.app/[email protected]
    cd /Users/lelong37/Sources/sc11/scmobile-app/platforms/ios
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/lelong37/.nvm/versions/node/v4.2.1/bin:/Applications/Genymotion\\ Shell.app/Contents/MacOS/:/Applications/Genymotion.app/Contents/MacOS:/Users/lelong37/Library/Android-SDK/platform-tools:/Users/lelong37/Library/Android-SDK/tools:/usr/local/lib/dnx/runtimes/dnx-mono.1.0.0-rc1-update1/bin:/Users/lelong37/.dnx/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin"
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/lelong37/Sources/sc11/scmobile-app/platforms/ios/scmobileapp/Resources/[email protected] /Users/lelong37/Sources/sc11/scmobile-app/platforms/ios/build/emulator/scmobileapp.app
CpResource scmobileapp/Resources/[email protected] build/emulator/scmobileapp.app/[email protected]
    cd /Users/lelong37/Sources/sc11/scmobile-app/platforms/ios
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/lelong37/.nvm/versions/node/v4.2.1/bin:/Applications/Genymotion\\ Shell.app/Contents/MacOS/:/Applications/Genymotion.app/Contents/MacOS:/Users/lelong37/Library/Android-SDK/platform-tools:/Users/lelong37/Library/Android-SDK/tools:/usr/local/lib/dnx/runtimes/dnx-mono.1.0.0-rc1-update1/bin:/Users/lelong37/.dnx/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin"
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/lelong37/Sources/sc11/scmobile-app/platforms/ios/scmobileapp/Resources/[email protected] /Users/lelong37/Sources/sc11/scmobile-app/platforms/ios/build/emulator/scmobileapp.app
CpResource scmobileapp/Resources/splashscreen.9.png build/emulator/scmobileapp.app/splashscreen.9.png
    cd /Users/lelong37/Sources/sc11/scmobile-app/platforms/ios
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/lelong37/.nvm/versions/node/v4.2.1/bin:/Applications/Genymotion\\ Shell.app/Contents/MacOS/:/Applications/Genymotion.app/Contents/MacOS:/Users/lelong37/Library/Android-SDK/platform-tools:/Users/lelong37/Library/Android-SDK/tools:/usr/local/lib/dnx/runtimes/dnx-mono.1.0.0-rc1-update1/bin:/Users/lelong37/.dnx/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin"
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/lelong37/Sources/sc11/scmobile-app/platforms/ios/scmobileapp/Resources/splashscreen.9.png /Users/lelong37/Sources/sc11/scmobile-app/platforms/ios/build/emulator/scmobileapp.app
CpResource scmobileapp/Resources/user_profileimage.png build/emulator/scmobileapp.app/user_profileimage.png
    cd /Users/lelong37/Sources/sc11/scmobile-app/platforms/ios
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/lelong37/.nvm/versions/node/v4.2.1/bin:/Applications/Genymotion\\ Shell.app/Contents/MacOS/:/Applications/Genymotion.app/Contents/MacOS:/Users/lelong37/Library/Android-SDK/platform-tools:/Users/lelong37/Library/Android-SDK/tools:/usr/local/lib/dnx/runtimes/dnx-mono.1.0.0-rc1-update1/bin:/Users/lelong37/.dnx/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin"
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/lelong37/Sources/sc11/scmobile-app/platforms/ios/scmobileapp/Resources/user_profileimage.png /Users/lelong37/Sources/sc11/scmobile-app/platforms/ios/build/emulator/scmobileapp.app
CpResource scmobileapp/Resources/[email protected] build/emulator/scmobileapp.app/[email protected]
    cd /Users/lelong37/Sources/sc11/scmobile-app/platforms/ios
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/lelong37/.nvm/versions/node/v4.2.1/bin:/Applications/Genymotion\\ Shell.app/Contents/MacOS/:/Applications/Genymotion.app/Contents/MacOS:/Users/lelong37/Library/Android-SDK/platform-tools:/Users/lelong37/Library/Android-SDK/tools:/usr/local/lib/dnx/runtimes/dnx-mono.1.0.0-rc1-update1/bin:/Users/lelong37/.dnx/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin"
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/lelong37/Sources/sc11/scmobile-app/platforms/ios/scmobileapp/Resources/[email protected] /Users/lelong37/Sources/sc11/scmobile-app/platforms/ios/build/emulator/scmobileapp.app
  ›CpResource scmobileapp/Resources/[email protected] build/emulator/scmobileapp.app/[email protected]
    cd /Users/lelong37/Sources/sc11/scmobile-app/platforms/ios
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/lelong37/.nvm/versions/node/v4.2.1/bin:/Applications/Genymotion\\ Shell.app/Contents/MacOS/:/Applications/Genymotion.app/Contents/MacOS:/Users/lelong37/Library/Android-SDK/platform-tools:/Users/lelong37/Library/Android-SDK/tools:/usr/local/lib/dnx/runtimes/dnx-mono.1.0.0-rc1-update1/bin:/Users/lelong37/.dnx/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin"
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/lelong37/Sources/sc11/scmobile-app/platforms/ios/scmobileapp/Resources/[email protected] /Users/lelong37/Sources/sc11/scmobile-app/platforms/ios/build/emulator/scmobileapp.app
CpResource scmobileapp/Resources/[email protected] build/emulator/scmobileapp.app/[email protected]
    cd /Users/lelong37/Sources/sc11/scmobile-app/platforms/ios
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/lelong37/.nvm/versions/node/v4.2.1/bin:/Applications/Genymotion\\ Shell.app/Contents/MacOS/:/Applications/Genymotion.app/Contents/MacOS:/Users/lelong37/Library/Android-SDK/platform-tools:/Users/lelong37/Library/Android-SDK/tools:/usr/local/lib/dnx/runtimes/dnx-mono.1.0.0-rc1-update1/bin:/Users/lelong37/.dnx/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin"
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/lelong37/Sources/sc11/scmobile-app/platforms/ios/scmobileapp/Resources/[email protected] /Users/lelong37/Sources/sc11/scmobile-app/platforms/ios/build/emulator/scmobileapp.app
  ›Command failed: The debug process exited unexpectedly code:null
Command failed: The debug process exited unexpectedly code:null
  ›Error: The debug process exited unexpectedly code:null
    at Object.errP (/Users/lelong37/.vscode/extensions/Telerik.nativescript-0.1.1/out/webkit/utilities.js:369:13)
    at /Users/lelong37/.vscode/extensions/Telerik.nativescript-0.1.1/out/webkit/webKitDebugAdapter.js:68:26
    at process._tickCallback (node.js:369:9)
  ›To client: {"seq":0,"type":"response","request_seq":2,"command":"launch","success":false,"message":"[NativeScript-Debug-Adapter] The debug process exited unexpectedly code:null"}
  ›From client: disconnect({"restart":false})
  ›To client: {"seq":0,"type":"response","request_seq":3,"command":"disconnect","success":true}

@valentinstoychev

@ivanbuhov
Copy link
Contributor

It seems VS Code 0.10.10 comes with some breaking changes. We are working on fixes of these issues but they will be included in the next version of the extension. It will be published as soon as possible. Till then I suggest you downgrading to VS Code 0.10.9.

@lelong37 I can't reproduce the issue. What is the result of executing tns debug ios --emulator from the command line? Can you debug the app with the NativeScript Inspector app.

@cime
Copy link

cime commented Mar 10, 2016

VS Code 0.10.10 on Windows, Launch on Android Device (with ${workspaceRoot} fix):

vsc-tns

@ivanbuhov ivanbuhov changed the title [NativeScript-Debug-Adapter] Path must be a string. Received undefined [VSCode 0.10.10] VS Code 0.10.10 support Mar 11, 2016
@nativescript-community nativescript-community locked and limited conversation to collaborators Mar 11, 2016
@ivanbuhov
Copy link
Contributor

I extracted all the bugs mentioned here in their own issues:
#27
#28
#29

@nativescript-community nativescript-community unlocked this conversation Mar 11, 2016
@burkeholland
Copy link

@lelong37 I had that same error and it was because i was trying to run on my device when my device wasn't attached.

@ivanbuhov
Copy link
Contributor

NativeScript for VSCode v0.2.0 is live in the VS Code marketplace. It supports VS Code 0.10.10.

@sitefinitysteve
Copy link

@ivanbuhov Anything new or just fix the incompatibilities?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants