[ENHANCEMENT]: Add a warning or error message if user tries to compile a component without any view or anything (totally empty) #1125

Open
opened 2024-05-06 12:20:45 +00:00 by saman2 · 0 comments
Member

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

### 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_
saman2 added the
enhancement
label 2024-05-06 12:20:45 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joomla/Component-Builder#1125
No description provided.