ios-jsc icon indicating copy to clipboard operation
ios-jsc copied to clipboard

Inspector: Crash after trying to save changed file in Inspector

Open Natalia-Hristova opened this issue 6 years ago • 0 comments

Make sure to check the existing issues in this repository

If there is no issue for your problem, tell us about it

iOS Inspector crashes after trying to save edited file

Please, provide the following version numbers that your issue occurs with:

  • CLI: 4.2.2
  • Runtime(s): "tns-ios" 4.2.0

Please, tell us how to recreate the issue in as much detail as possible.

Describe the steps to reproduce it.

  1. tns debug ios --inspector
  2. In Inspector's Resources tab change some .js file and try to save it

Result:

TypeError:​ InspectorFrontendHost.save is not a function. (In 'InspectorFrontendHost.save(suggestedName, saveData.content, base64Encoded, forceSaveAs || saveData.forceSaveAs)​', 'InspectorFrontendHost.save' is undefined)​ (at FileUtilities.js:​55:​35)​
    saveDataToFile @ FileUtilities.js:​55:​35
    _save @ Main.js:​2005:​22
    ?​ @ [native code]​
    _handleKeyDown @ KeyboardShortcut.js:​82:​42

Is there any code involved?

  • provide a code example to recreate the problem
  • (EVEN BETTER) provide a .zip with application or refer to a repository with application where the problem is reproducible.

Natalia-Hristova avatar Aug 21 '18 14:08 Natalia-Hristova