nativescript-vscode-extension icon indicating copy to clipboard operation
nativescript-vscode-extension copied to clipboard

Extension fails to attach when updating from ns-cli 7.1 to 7.2

Open fraune opened this issue 3 years ago • 9 comments

Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 7.2.1
  • Cross-platform modules: tns-core-modules has 6.5.26
  • Android Runtime: 6.5.3
  • iOS Runtime: 6.5.4
  • Plugin(s): NativeScript 0.12.0 (plugin for VS code)
  • VSCode: 1.54.2

Describe the bug VS Code giving the following error when trying to attach debugger: NativeScript CLI not found. Use 'nativescript.tnsPath' workspace setting to explicitly set the absolute path to the NativeScript CLI.. This doesn't seem to be a problem when I downgrade the CLI to 7.1.2, but the problem exists for me on CLI 7.2.*.

To Reproduce

  1. Update NativeScript CLI to latest (7.2.1) via npm i -g nativescript.
  2. Launch app via ns run --no-hmr
  3. While in the working folder in VS Code, attach on iOS

Expected behavior Debugger should attach and set breakpoints should be hit.

Sample project Not sharing at this time...

Additional context I am working in a NativeScript 6 project with ns-cli 7, due to dependency package support problems. Never had trouble with the debugger until an update to ns-cli 7.2+.

fraune avatar Mar 15 '21 16:03 fraune