Results 1 to 7 of 7

Thread: Bug in VS Code Plugin since VS Code Update (>1.31)

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Aug 2014
    Posts
    2
    Vote Rating
    1
      1  

    Default Bug in VS Code Plugin since VS Code Update (>1.31)

    Hi,

    After installing the latest version of VS Code (v1.31.1) it seems to have triggered a bug in the plugin which stops the plugin from loading.

    Code:
    Activating extension 'Sencha.vscode-extjs' failed: Callback must be a function.
    t._logMessageInConsole @ extensionService.ts:800
    console.ts:134 [Extension Host] Activating extension 'Sencha.vscode-extjs' failed: Callback must be a function.
    t.log @ console.ts:134
    console.ts:134 [Extension Host] Activating extension `Sencha.vscode-extjs` failed:  Callback must be a function
    Stack is as follows:

    Code:
    [Extension Host] Here is the error stack:  TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
    	at maybeCallback (fs.js:157:9)
    	at Object.fs.writeFile (fs.js:1290:14)
    	at Object.<anonymous> ([...]\.vscode\extensions\sencha.vscode-extjs-1.0.1\out\src\Logger.js:28:8)
            ...
    The problematic line seems to be:

    Code:
    fs.writeFile(path.join(Platform_1.default.settingsDir, 'vscode-extjs.log'), '');
    Changing to:

    Code:
    fs.writeFile(path.join(Platform_1.default.settingsDir, 'vscode-extjs.log'), '', function(){});
    or alternatively...
    Code:
    fs.writeFileSync(path.join(Platform_1.default.settingsDir, 'vscode-extjs.log'), '');
    resolves the issue and the plugin loads again.

    VS Code version info:

    Version: 1.31.1 (user setup)
    Commit: 1b8e8302e405050205e69b59abb3559592bb9e60
    Date: 2019-02-12T02:20:54.427Z
    Electron: 3.1.2
    Chrome: 66.0.3359.181
    Node.js: 10.2.0
    V8: 6.6.346.32
    OS: Windows_NT x64 10.0.16299

  2. #2
    Ext Team Member
    Join Date
    Sep 2017
    Posts
    886
    Answers
    5
    Vote Rating
    -463
      0  

    Default

    Hi there- thank you for bringing this to our attention. I have shared this with the support team and asked that they look into this at their earliest convenience. Your patience is greatly appreciated!

    Kind Regards,

    Michele

  3. #3
    Sencha Premium User
    Join Date
    Dec 2007
    Location
    Netherlands
    Posts
    42
    Vote Rating
    11
      0  

    Default

    I can confirm this, please fix this as soon as possible.

  4. #4
    Sencha Premium User
    Join Date
    Jul 2018
    Posts
    2
    Vote Rating
    0
      0  

    Default

    Could you please give us a release date with the fix?

    Thanks!

  5. #5
    Ext Team Member
    Join Date
    Sep 2017
    Posts
    886
    Answers
    5
    Vote Rating
    -463
      0  

    Default

    Hi there-

    Has anyone opened a ticket through the support portal?
    We do suggest using the support portal when you need assistance with a capability of a Sencha product, you have identified a situation where a products behavior is inconsistent with the product documentation and might indicate a software bug, or when the communication between you and Sencha needs to be private.

    Thank you,

    Michele


  6. #6
    Sencha User
    Join Date
    Nov 2018
    Location
    Alabama
    Posts
    1
    Vote Rating
    0
      0  

    Default

    I can confirm that the change in the line of code mentioned by drifter2412 fixes the issues with the extension not working that I was seeing locally.

  7. #7
    Sencha Premium User
    Join Date
    Apr 2011
    Posts
    46
    Answers
    1
    Vote Rating
    4
      0  

    Default

    Thank you very much, the Plugin works.

Similar Threads

  1. New to plugin and to VS Code - how I configure it?
    By ssamayoa in forum Visual Studio Code Plugin
    Replies: 1
    Last Post: 15 Feb 2017, 3:18 PM
  2. How to sync code on code viewer of Sencha Architect and real source code ?
    By veeva_hiroyuki_nagata in forum Sencha Architect 4.x: Q&A
    Replies: 1
    Last Post: 30 Nov 2016, 5:44 AM
  3. Sencha Visual Studio Code Plugin 1.0 Early Access Update is Now Available
    By mitchellsimoens in forum Visual Studio Code Plugin
    Replies: 0
    Last Post: 23 Nov 2016, 12:48 AM
  4. Plugin needs Activation Code ...
    By feldtAtDimap in forum JetBrains IDE Plugin
    Replies: 16
    Last Post: 25 Mar 2016, 11:07 AM
  5. Replies: 5
    Last Post: 21 Dec 2012, 6:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •