blade-formatter
blade-formatter copied to clipboard
Buffer() DeprecationWarning on VS Code v1.49
The issue occurs only the first time enable blade-formatter, after that it works just fine.
Steps to Reproduce
- On VS Code v1.49, install the extension.
- Set user config (~/.config/Code/User/settings.json)
"editor.formatOnSave": true,
"[blade]": {
"editor.autoClosingBrackets": "always",
"editor.defaultFormatter": "shufo.vscode-blade-formatter"
},
- 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...
- 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.
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.
@netway-pairote Thanks for reporting issue! I'll try reproducing it.
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