[ENHANCEMENT]: Add a warning or error message if user tries to compile a component without any view or anything (totally empty) #1125
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#1125
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Enhancement Details
Hi
my JCB version: 3.2.0
Joomla version: 3.10.12
PHP version: 8.3.3
What I wanted and what I did:
I was developing a plugin with JCB called pluginA, and bc I wanted to set different author and license details for this plugin, I created a new component called compA. I set required fields and the author and license details. Then I added the plugin to the component, went to compiler, set Components to "compA" and Joomla Version to "Joomla 3", and compiled the component. I got "The () was Successfully Compiled!" message. And "Path:" & "URL:" were empty. And when I clicked the "Download" button, the page just refreshed. (compiler result: https://ibb.co/3SybTV1)
I also got the below error and notice message:
Error
You do not have a global power plugin setup, so the powers plugin autoloader could not be added.
Notice
Dynamic folder(s) were detected.
A method (setDynamicF0ld3rs) was added to the install script.php of this package to insure that the folder(s) are copied into the correct place when this component is installed!
The reason:
After a lot of debugging, one of my colleagues figured out the problem. My compA didn't have any views, and JCB won't compile components that don't have views.
Suggestion:
I believe adding an error or warning message in this situation would be a lot helpful and make JCB more polished.
Which part of the extension will be affected by this enhancement?
Compilation of component
Additional Context
No response