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.
Summary: | foreach and with completion issues | ||
---|---|---|---|
Product: | web | Reporter: | Marek Fukala <mfukala> |
Component: | Knockout | Assignee: | Petr Hejl <phejl> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jtulach, ppisl |
Priority: | P2 | ||
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | Mac OS X | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 230501 | ||
Bug Blocks: |
Description
Marek Fukala
2013-05-22 14:16:11 UTC
To reproduce the issue you need to remove the rest of the code to the point where you want to test the completion so the "auto-learning-completion" won't provide the items seen in the code. 1) Depends on #230501. 2) I have a patch for that in my local repo. Though there might be some more minor issues in type resolution is core JS module. 2) fixed in web-main 75d46ba1a613 Theoretically this should be fixed. However in this Marek's sample the array is not properly resolved afaik. The relevant part of virtual source is (^) for cursor: (function() { var $root = ko.$bindings; var $parent = ko.$bindings; var $parents = [ko.$bindings]; var $index = 0; with (ko.$bindings) { var $data = lidickove[0]; with (lidickove[0]) { (^); } } }); The properties of lidickove[0] is not offered in cc. The similar case with "with" works ok: (function() { var $root = ko.$bindings; var $parent = ko.$bindings; var $parents = [ko.$bindings]; with (ko.$bindings) { var $data = pepa; with (pepa) { (^); } } }); Tests added - web-main c012b37bceb4. Integrated into 'main-golden', will be available in build *201306142301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/75d46ba1a613 User: Petr Hejl <phejl@netbeans.org> Log: #230123 - foreach and with completion issues It looks like the problem is in SemiTypeResolverVisitor which still does not support arrays. I'll try to fix it. Hopefully should be fixed in web-main. 9189cb4092df a4a23ce73a2e 59ff80604f60 |