This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Autocomplete is not working for class instances passed as parameters for closures. I set up the Lumen micro-framework and opened one of the migration files. 'Illuminate' and descendant folders are located under the 'Vendor' folder. So the folders structure is: /app /bootstrap /database/migrations/create_quotes_table.php (this file's listing is below) ... /vendor/illuminate/database/Schema/Blueprint.php Please take a look at the example. <?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateQuotesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('quotes', function (Blueprint $table) { $table-> // autocomplete is not working here $table->increments('id'); // but here Ctrl+click to navigate to function def works fine. $table->timestamps(); }); } If I add /* @var $table Blueprint*/ before $table variable autocomplete works fine. Is there any other workarounds(without code edit) for such situations? Thank you!
Created attachment 164053 [details] step 1
Created attachment 164054 [details] step 2
Created attachment 164055 [details] step 3
With regards to the previous three screenshots, see this thread around this problem as discussed in the netbeans php slack channel: https://netbeans.slack.com/archives/C2SJG5PRR/p1491738149384714
(In reply to dylanv from comment #4) > With regards to the previous three screenshots, see this thread around this > problem as discussed in the netbeans php slack channel: > > https://netbeans.slack.com/archives/C2SJG5PRR/p1491738149384714 You should always write/attach exact information(your steps, screenshots, sample code/project, e.t.c.) to the issue. Because information in the slack may be deleted, and all people cannot look at it soon.
Sample code: <?php class AutoPopup { public static function test(string $string, callable $callable) { } public function something() { } } class Anon { public function test() { AutoPopup::test('test', function(AutoPopup $test) { $test- // type ">" }); } } This occurs in a method. (doesn't occur in a function) Steps to reproduce: 1. Type ">" after the $test- 2. A popup window for CC is shown (Auto Popup) 3. There is no method However, if CC is run after it is typed(i.e. $test->[Ctrl] + [Space]), members are shown. I'll look at it. Thanks.
Fixed. Please try to test it if possible. Probably, it will be available tomorrow or later. http://hg.netbeans.org/web-main/rev/e5d87f8b8d86 Thanks.
Integrated into 'main-silver', will be available in build *201704110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/e5d87f8b8d86 User: Junichi Yamamoto <junichi11@netbeans.org> Log: #268825 - Closures autocomplete is not working
*** Bug 246211 has been marked as a duplicate of this bug. ***