Joomla-cms: Netbeans autocomplete doesn't work on joomla 3.8

Created on 20 Sep 2017  路  9Comments  路  Source: joomla/joomla-cms

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 馃槶 ?

No Code Attached Yet

Most helpful comment

@mbabker The subGenerator comes with Joomla core is not working. I made a PR https://github.com/joomla/joomla-cms/pull/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

All 9 comments

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.

@mbabker The subGenerator comes with Joomla core is not working. I made a PR https://github.com/joomla/joomla-cms/pull/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

Awesome 馃憤

@joomdonation

Hi Tuan,

works great with Eclipse.

Thank you, Jan

I'm glad it helps :)

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

            $app = JFactory::getApplication();
    // Load the parameters.
    $params = $app->getParams();

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();

Ok - thank you !

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brianteeman picture brianteeman  路  6Comments

brianteeman picture brianteeman  路  5Comments

dougbevan picture dougbevan  路  4Comments

alex7r picture alex7r  路  4Comments

ghazal picture ghazal  路  4Comments