ahamed / jext-cli Goto Github PK
View Code? Open in Web Editor NEWThis is a Joomla Component Builder CLI tool for creating a Joomla! 4 component using the terminal.
License: MIT License
This is a Joomla Component Builder CLI tool for creating a Joomla! 4 component using the terminal.
License: MIT License
Describe the bug
Everithing worked correctly until "Generating the component metadata..."
Then an error happened
Do you confirm component creation [yes]?
Generating the component metadata...
PHP Warning: file_put_contents(/jext.json): Failed to open stream: Permission denied in C:\Users\User\Downloads\Browser\jext-cli-1.0.0-beta.1\src\Controllers\BaseController.php on line 141
Warning: file_put_contents(/jext.json): Failed to open stream: Permission denied in C:\Users\User\Downloads\Browser\jext-cli-1.0.0-beta.1\src\Controllers\BaseController.php on line 141
Metadata generation completed.
Creating component core files...
PHP Fatal error: Uncaught Exception: You are too early to get the meta data or the `jext.json` file has been deleted! in C:\Users\User\Downloads\Browser\jext-cli-1.0.0-beta.1\src\Controllers\BaseController.php:108
Stack trace:
#0 C:\Users\User\Downloads\Browser\jext-cli-1.0.0-beta.1\src\Controllers\ComponentController.php(184): Ahamed\Jext\Controllers\BaseController->getMeta('restaurant-mana...')
#1 C:\Users\User\Downloads\Browser\jext-cli-1.0.0-beta.1\src\Controllers\ComponentController.php(328): Ahamed\Jext\Controllers\ComponentController->createComponentFiles()
#2 C:\Users\User\Downloads\Browser\jext-cli-1.0.0-beta.1\src\Application.php(70): Ahamed\Jext\Controllers\ComponentController->run(Array)
#3 C:\Users\User\Downloads\Browser\jext-cli-1.0.0-beta.1\bin\jext-cli(11): Ahamed\Jext\Application->run(Array)
#4 {main}
thrown in C:\Users\User\Downloads\Browser\jext-cli-1.0.0-beta.1\src\Controllers\BaseController.php on line 108
Fatal error: Uncaught Exception: You are too early to get the meta data or the `jext.json` file has been deleted! in C:\Users\User\Downloads\Browser\jext-cli-1.0.0-beta.1\src\Controllers\BaseController.php:108
Stack trace:
#0 C:\Users\User\Downloads\Browser\jext-cli-1.0.0-beta.1\src\Controllers\ComponentController.php(184): Ahamed\Jext\Controllers\BaseController->getMeta('restaurant-mana...')
#1 C:\Users\User\Downloads\Browser\jext-cli-1.0.0-beta.1\src\Controllers\ComponentController.php(328): Ahamed\Jext\Controllers\ComponentController->createComponentFiles()
#2 C:\Users\User\Downloads\Browser\jext-cli-1.0.0-beta.1\src\Application.php(70): Ahamed\Jext\Controllers\ComponentController->run(Array)
#3 C:\Users\User\Downloads\Browser\jext-cli-1.0.0-beta.1\bin\jext-cli(11): Ahamed\Jext\Application->run(Array)
#4 {main}
thrown in C:\Users\User\Downloads\Browser\jext-cli-1.0.0-beta.1\src\Controllers\BaseController.php on line 108
I'm on windows using xampp
PHP 8.0.2 (cli) (built: Feb 3 2021 18:36:40) ( ZTS Visual C++ 2019 x64 )
Copyright (c) The PHP Group
Zend Engine v4.0.2, Copyright (c) Zend Technologies
Composer version 2.0.11 2021-02-24 14:57:23
I get an error when I try to modify, Save failed with the following error: Another item has the same alias (remember it may be a trashed item).
could it be my mistake?
Resolved
one possible solution is to change src/Table/Table.php row 106 (id!==) to (id!=):
if ($ table-> load (array ('alias' => $ this-> alias)) && ($ table-> id! == $ this-> id || $ this-> id === 0))
{
$ this-> setError (Text :: _ ('COM_NOTES_ERROR_UNIQUE_ALIAS'));
return false;
}
To:
if ($ table-> load (array ('alias' => $ this-> alias)) && ($ table-> id! = $ this-> id || $ this-> id === 0))
{
$ this-> setError (Text :: _ ('COM_NOTES_ERROR_UNIQUE_ALIAS'));
return false;
}
Describe the bug
SQL created in /administrator/components/com_example/sql/install.mysql.utf8.sql for notes table even if --no-sample-view specified
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No table creation
Actual behavior
File contains CREATE TABLE IF NOT EXISTS #__remository_notes
etc.
Is your feature request related to a problem? Please describe.
Actual applications do not all follow the pattern of list and edit (or similar)
Describe the solution you'd like
An option to not have a plural version of the view in jext-cli --view
Describe alternatives you've considered
Deleting out unwanted views - but this is laborious and unreliable
Describe the bug
When trying to use search in the backend
500 Unknown column 'a.name' in 'where clause' Unknown column 'a.name' in 'where clause'
Is your feature request related to a problem? Please describe.
The newly created component needs to be converted into an installable package, a non trivial task
Describe the solution you'd like
A jext-cli command to export a component. Or a script - see possible example below
Describe alternatives you've considered
I wrote a script, see below.
Additional context
Possible bash script for the purpose attached.
Describe the bug
When trying to use search in the backend
500 Unknown column 'a.name' in 'where clause' Unknown column 'a.name' in 'where clause'
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Actual behavior
What did you get except the expected behavior?
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Is your feature request related to a problem? Please describe.
It is always easier to start with a framework than with nothing
Describe the solution you'd like
Create default.xml in the new folder directory alongside default.php
Describe alternatives you've considered
Start from scratch
I have installed the default generated component and added two notes. Both notes have a unique alias.
When editing an existing note and then save it, an error occurs: "Another item has the same alias (remember it may be a trashed item)".
I think this is a bug in the store method in /administrator/components/<component_name>/src/Table/NoteTable.php
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.