Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Extension doesn't work when installed onto a cPanel account #845

Closed
craigrileyuk opened this issue May 16, 2024 · 1 comment
Closed
Assignees
Labels
bug Something isn't working Stale Stale label

Comments

@craigrileyuk
Copy link

craigrileyuk commented May 16, 2024

Description

Tried to use this extension using the remote install functionality on a couple of cPanel accounts and it fails on every save with the following error:

2024-05-16 19:50:59.405 [error] [shufo.vscode-blade-formatter] provider FAILED
2024-05-16 19:50:59.405 [error] Error: EACCES: permission denied, scandir '/home'
	at readdirSync (node:fs:1527:3)
	at module.exports (/home/myusername/.vscode-server/extensions/shufo.vscode-blade-formatter-0.24.2/node_modules/escalade/sync/index.js:13:23)
	at F (/home/myusername/.vscode-server/extensions/shufo.vscode-blade-formatter-0.24.2/node_modules/@shufo/tailwindcss-class-sorter/dist/main.cjs:1:1497)
	at /home/myusername/.vscode-server/extensions/shufo.vscode-blade-formatter-0.24.2/node_modules/blade-formatter/dist/bundle.cjs:9:5730
	at String.replace (<anonymous>)
	at Function.replace (/home/myusername/.vscode-server/extensions/shufo.vscode-blade-formatter-0.24.2/node_modules/lodash/lodash.js:14608:48)
	at F.sortTailwindcssClasses (/home/myusername/.vscode-server/extensions/shufo.vscode-blade-formatter-0.24.2/node_modules/blade-formatter/dist/bundle.cjs:9:5503)
	at /home/myusername/.vscode-server/extensions/shufo.vscode-blade-formatter-0.24.2/node_modules/blade-formatter/dist/bundle.cjs:9:3446

In cPanel, you don't have access to the /home directory that it's trying to read. I looked for a config setting to change the project root but there don't seem to be any.

Expected Behavior

Extension to work when installed on a remote server running cPanel.

Actual Behavior

Permission denied

Additional Context

--- Server Info ---

Platform: Linux
OS: AlmaLinux v9.4.0
Software: cPanel & WHM v120.0.5
Laravel Blade Formatter version: v0.24.2
Remote mount path (VSCode root dir): /home/myusername/public_html

--- VSCode Client info ---

Version: 1.88.1 (Universal)
Commit: e170252f762678dec6ca2cc69aba1570769a5d39
Date: 2024-04-10T17:42:52.765Z (1 mo ago)
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Darwin x64 21.6.0 (MacOS)

@craigrileyuk craigrileyuk added the bug Something isn't working label May 16, 2024
Copy link
Contributor

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 github-actions bot added the Stale Stale label label Jul 16, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale Stale label
Projects
None yet
Development

No branches or pull requests

1 participant