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.

Bug 245088 - After choose a folder, list disappears
Summary: After choose a folder, list disappears
Status: STARTED
Alias: None
Product: javascript
Classification: Unclassified
Component: RequireJS (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-16 14:18 UTC by Christian Lenz
Modified: 2016-07-21 09:07 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Module completion (12.79 KB, image/png)
2014-06-16 14:18 UTC, Christian Lenz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Lenz 2014-06-16 14:18:30 UTC
Created attachment 147696 [details]
Module completion

When I have a module with dependencies to other modules and I type define([""]... and inside "" I do ctrl + space, I got the list with folders and other js files as you can see it in the screenshot.

When I choose the folder, the list disappears and I see ["folder/"]. I waited for a few seconds, because I thought that the list with the modules inside folder appears but it doesn't.

For me what I expect that the new list of modules inside folders should appear to choose an other module very quick and not that I have to use ctrl + space again.


Regards

Chris
Comment 1 Petr Pisl 2014-06-18 13:03:05 UTC
I'm not able to do this. The problem is in editor infrastructure, which calls autoquery only if the text was added by user. What I add is that the autoquery is called after typing / in a string.

I will try investigate more and keep this issue as enhancement.
Comment 2 Christian Lenz 2014-06-19 07:42:58 UTC
At the moment, if I type "r" I got the list, require is a folder in my example, I choose it and what happens is this "require/" so the slash will be added. Is it a difference between I type the / or you insert it after the text as it is still in?
Comment 3 Petr Pisl 2014-06-19 07:52:57 UTC
Yes, as I wrote, the editor infrastructure filter autoquery code completion out, when it's a text added to the document is not typed by the user. And inserting text through code completion (like a folder name "folder1/") is not typed text by user, but is inserted by the infrastructure.

Another solution would be to insert only the name of folder without the slash at the end, so user will have to type the slash and then the code completion will be invoked automatically again. But IMHO this is not the right. 

I see your original request as the right one, so I will try to find out some way, how to achieve this.
Comment 4 Christian Lenz 2014-06-19 08:51:07 UTC
Maybe I can live witht he workaround with the "folder" and then type / and after this, do is as an improvement maybe. But it's only my opinion. Thx for the great work on this requirejs support.
Comment 5 Quality Engineering 2014-06-20 02:33:18 UTC
Integrated into 'main-silver', will be available in build *201406200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/51429f703ec9
User: Petr Pisl <ppisl@netbeans.org>
Log: #245088 - After choose a folder, list disappears
Comment 6 Christian Lenz 2015-01-19 09:15:55 UTC
It is ok as it is, but I would prefer that when I type js and it adds js/ that directly after adding, opens the new completion, if it's possible.
Comment 7 Christian Lenz 2016-07-21 09:07:58 UTC
Afaik, in html files for <script src="app/.... it is possible or in Java I don't know atm, but in some cases that the auto completion for files/folders comes up automatically without hit ctrl + space.