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

Tailwind content scanning in Python files #188

Open
thejoeejoee opened this issue Aug 17, 2023 · 0 comments
Open

Tailwind content scanning in Python files #188

thejoeejoee opened this issue Aug 17, 2023 · 0 comments
Labels
🟰 dev-bug Bug not affecting the users 👨‍💻 frontend frontend related

Comments

@thejoeejoee
Copy link
Member

Including python files in Tailwind content scanning paths ends with permission denied:

TAILWIND_CONTENT_PATH="/usr/src/fiesta/**/*.py"
buena-fiesta-webpack-1      | ERROR in ./src/css/main.css (./src/css/main.css.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!./src/css/main.css)
buena-fiesta-webpack-1      | Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):
buena-fiesta-webpack-1      | Error: EPERM: operation not permitted, open '/usr/src/fiesta/apps/sections/forms/plugin_configuration.py'
buena-fiesta-webpack-1      |  @ ./src/css/main.css
buena-fiesta-webpack-1      |  @ ./src/main.js 1:0-24
buena-fiesta-webpack-1      |
buena-fiesta-webpack-1      | ERROR in ./src/css/main.css
buena-fiesta-webpack-1      | Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
buena-fiesta-webpack-1      | HookWebpackError: Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):
buena-fiesta-webpack-1      | Error: EPERM: operation not permitted, open '/usr/src/fiesta/apps/sections/forms/plugin_configuration.py'
buena-fiesta-webpack-1      |     at tryRunOrWebpackError (/usr/src/app/node_modules/webpack/lib/HookWebpackError.js:88:9)
buena-fiesta-webpack-1      |     at __webpack_require_module__ (/usr/src/app/node_modules/webpack/lib/Compilation.js:5067:12)
buena-fiesta-webpack-1      |     at __webpack_require__ (/usr/src/app/node_modules/webpack/lib/Compilation.js:5024:18)
buena-fiesta-webpack-1      |     at /usr/src/app/node_modules/webpack/lib/Compilation.js:5095:20
buena-fiesta-webpack-1      |     at symbolIterator (/usr/src/app/node_modules/neo-async/async.js:3485:9)
buena-fiesta-webpack-1      |     at done (/usr/src/app/node_modules/neo-async/async.js:3527:9)
buena-fiesta-webpack-1      |     at Hook.eval [as callAsync] (eval at create (/usr/src/app/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
buena-fiesta-webpack-1      |     at /usr/src/app/node_modules/webpack/lib/Compilation.js:5002:43
buena-fiesta-webpack-1      |     at symbolIterator (/usr/src/app/node_modules/neo-async/async.js:3482:9)
buena-fiesta-webpack-1      |     at timesSync (/usr/src/app/node_modules/neo-async/async.js:2297:7)
buena-fiesta-webpack-1      | -- inner error --
buena-fiesta-webpack-1      | Error: Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):
buena-fiesta-webpack-1      | Error: EPERM: operation not permitted, open '/usr/src/fiesta/apps/sections/forms/plugin_configuration.py'
buena-fiesta-webpack-1      |     at Object.<anonymous> (/usr/src/app/node_modules/css-loader/dist/cjs.js!/usr/src/app/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!/usr/src/app/src/css/main.css:1:7)
buena-fiesta-webpack-1      |     at /usr/src/app/node_modules/webpack/lib/javascript/JavascriptModulesPlugin.js:452:10
buena-fiesta-webpack-1      |     at Hook.eval [as call] (eval at create (/usr/src/app/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:7:1)
buena-fiesta-webpack-1      |     at /usr/src/app/node_modules/webpack/lib/Compilation.js:5069:39
buena-fiesta-webpack-1      |     at tryRunOrWebpackError (/usr/src/app/node_modules/webpack/lib/HookWebpackError.js:83:7)
buena-fiesta-webpack-1      |     at __webpack_require_module__ (/usr/src/app/node_modules/webpack/lib/Compilation.js:5067:12)
buena-fiesta-webpack-1      |     at __webpack_require__ (/usr/src/app/node_modules/webpack/lib/Compilation.js:5024:18)
buena-fiesta-webpack-1      |     at /usr/src/app/node_modules/webpack/lib/Compilation.js:5095:20
buena-fiesta-webpack-1      |     at symbolIterator (/usr/src/app/node_modules/neo-async/async.js:3485:9)
buena-fiesta-webpack-1      |     at done (/usr/src/app/node_modules/neo-async/async.js:3527:9)
buena-fiesta-webpack-1      |
buena-fiesta-webpack-1      | Generated code for /usr/src/app/node_modules/css-loader/dist/cjs.js!/usr/src/app/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!/usr/src/app/src/css/main.css
buena-fiesta-webpack-1      | 1 | throw new Error("Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):\nError: EPERM: operation not permitted, open '/usr/src/fiesta/apps/sections/forms/plugin_configuration.py'");
buena-fiesta-webpack-1      |  @ ./src/main.js 1:0-24
buena-fiesta-webpack-1      |
buena-fiesta-webpack-1      | ERROR in webpack/runtime/hot module replacement
buena-fiesta-webpack-1      | EPERM: operation not permitted, open '/usr/src/app/node_modules/webpack/lib/hmr/HotModuleReplacement.runtime.js'
buena-fiesta-webpack-1      |
buena-fiesta-webpack-1      | ERROR in webpack/runtime/hot module replacement
buena-fiesta-webpack-1      | EPERM: operation not permitted, open '/usr/src/app/node_modules/webpack/lib/hmr/HotModuleReplacement.runtime.js'
buena-fiesta-webpack-1      |
buena-fiesta-webpack-1      | ERROR in webpack/runtime/jsonp chunk loading
buena-fiesta-webpack-1      | EPERM: operation not permitted, open '/usr/src/app/node_modules/webpack/lib/hmr/JavascriptHotModuleReplacement.runtime.js'
buena-fiesta-webpack-1      |
buena-fiesta-webpack-1      | 3 errors have detailed information that is not shown.
buena-fiesta-webpack-1      | Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
buena-fiesta-webpack-1      |
buena-fiesta-webpack-1      | webpack 5.88.2 compiled with 5 errors in 4451 ms

HTML files during the same build completes successfully and Tailwind successfully scans thems. Even solution with manual globing fails, so the problem is not in the glob, but in the loading the py files through webpack loaders.

@thejoeejoee thejoeejoee added 🟰 bug Bug affecting the users javascript labels Aug 17, 2023
@github-actions github-actions bot mentioned this issue Aug 26, 2023
@thejoeejoee thejoeejoee added 👨‍💻 frontend frontend related and removed javascript labels Sep 29, 2023
@thejoeejoee thejoeejoee added 🟰 dev-bug Bug not affecting the users and removed 🟰 bug Bug affecting the users labels Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🟰 dev-bug Bug not affecting the users 👨‍💻 frontend frontend related
Projects
None yet
Development

No branches or pull requests

1 participant