?
avatar trananhmanh89
trananhmanh89
20 Sep 2017

Netbeans 8.2 autocomplete doesn't work on joomla 3.8.

With joomla 3.7 or lower, it's works fine.

Any one got the same issue ? ?

avatar trananhmanh89 trananhmanh89 - open - 20 Sep 2017
avatar joomla-cms-bot joomla-cms-bot - change - 20 Sep 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 20 Sep 2017
avatar trananhmanh89 trananhmanh89 - change - 20 Sep 2017
The description was changed
avatar trananhmanh89 trananhmanh89 - edited - 20 Sep 2017
avatar mbabker
mbabker - comment - 20 Sep 2017

There are two options to help with IDE resolution. As previously announced, the core libraries were namespaced and the old class names do not exist as real classes anymore, but are still accessible through aliasing. The below scripts can be used to generate files to help your IDE correctly resolve the old class names.

avatar mbabker mbabker - change - 20 Sep 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-09-20 14:23:30
Closed_By mbabker
avatar mbabker mbabker - close - 20 Sep 2017
avatar joomdonation
joomdonation - comment - 20 Sep 2017

@mbabker The subGenerator comes with Joomla core is not working. I made a PR #17925 to fix it but the class name is still wrong (all class name are in lower case) as explained in the PR

I had to modify some code to get correct result. So if someone needs this option, get this zip file, unzip it and save it to the root folder of your Joomla installation and it will be OK
stubs.zip

avatar trananhmanh89
trananhmanh89 - comment - 20 Sep 2017

Awesome ?

avatar PhocaCz
PhocaCz - comment - 3 Oct 2017

@joomdonation

Hi Tuan,

works great with Eclipse.

Thank you, Jan

avatar joomdonation
joomdonation - comment - 3 Oct 2017

I'm glad it helps :)

avatar rbuelund
rbuelund - comment - 5 Oct 2017

The zip file also worked in PHPStorm - BUT - getParams is still not getting recognized ??

            $app = JFactory::getApplication();
	// Load the parameters.
	$params = $app->getParams();
avatar mbabker
mbabker - comment - 5 Oct 2017

The getParams method only exists on the site application class. Since JFactory::getApplication() has a docblock that returns the base CMS application class, it won't exist in the autocomplete stuff unless you put an inline docblock in your code to force it to resolve.

/** @var JApplicationSite|\Joomla\CMS\Application\SiteApplication $app */
$app = JFactory::getApplication();
$params = $app->getParams();
avatar rbuelund
rbuelund - comment - 5 Oct 2017

Ok - thank you !

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 28 Oct 2017

@fishtime please open a new Issue as Comments on closed Threads didn't get much Notice.

Add a Comment

Login with GitHub to post a comment