blade-formatter icon indicating copy to clipboard operation
blade-formatter copied to clipboard

Buffer() DeprecationWarning on VS Code v1.49

Open netway-pairote opened this issue 5 years ago • 2 comments

The issue occurs only the first time enable blade-formatter, after that it works just fine.

Steps to Reproduce

  1. On VS Code v1.49, install the extension.
  2. Set user config (~/.config/Code/User/settings.json)
  "editor.formatOnSave": true,
  "[blade]": {
    "editor.autoClosingBrackets": "always",
    "editor.defaultFormatter": "shufo.vscode-blade-formatter"
  },
  1. Open any blade.php file, make a change and save. It will show warning notification, and waiting for something.

Saving 'xxxxxx.blade.php': Running 'Laravel Blade formatter' Formatter ([configure](command:workbench.action.openSettings...

  1. Click 'cancel', on the warning notification to stop it. I found the following warning on VS Code output panel, BLADE Language Server channel.

[Error - 8:18:13 AM] (node:7037) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

Noted that if I make change on the blade file again, it will works as expected.

netway-pairote avatar Sep 13 '20 02:09 netway-pairote

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.67. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Sep 13 '20 02:09 issue-label-bot[bot]

@netway-pairote Thanks for reporting issue! I'll try reproducing it.

shufo avatar Sep 14 '20 14:09 shufo

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Dec 06 '22 01:12 github-actions[bot]