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 251715 - IllegalArgumentException: The file /Applications/XAMPP/xamppfiles/htdocs/sushininja_mock/public_html/scss/_setting.scss is not owned by QuerySupport roots: /Applications/XAMPP/htdocs/sushininja_mock
Summary: IllegalArgumentException: The file /Applications/XAMPP/xamppfiles/htdocs/sush...
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Editor (show other bugs)
Version: 8.1
Hardware: All All
: P1 normal with 1 vote (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-08 07:36 UTC by Exceptions Reporter
Modified: 2016-06-30 01:51 UTC (History)
13 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 216627


Attachments
stacktrace (3.03 KB, text/plain)
2015-04-08 07:36 UTC, Exceptions Reporter
Details
stacktrace (3.08 KB, text/plain)
2015-07-12 18:50 UTC, xGarlics
Details
stacktrace (3.03 KB, text/plain)
2015-07-15 15:29 UTC, zmirc
Details
project structure (11.10 KB, image/png)
2015-07-16 16:42 UTC, zmirc
Details
file inside /app that references file outside /app (a sister folder) (13.15 KB, image/png)
2015-07-16 16:43 UTC, zmirc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2015-04-08 07:36:42 UTC
This bug was originally marked as duplicate of bug 247279, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201504070001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.31-b07, Java(TM) SE Runtime Environment, 1.8.0_31-b13
OS: Mac OS X

User Comments:
GUEST: write @import "compass","setting"; to scss file.
and type 'm'.
and save the file.

rene_szabo: Control + Space for sugestions




Stacktrace: 
java.lang.IllegalArgumentException: The file /Applications/XAMPP/xamppfiles/htdocs/sushininja_mock/public_html/scss/_setting.scss is not owned by QuerySupport roots: /Applications/XAMPP/htdocs/sushininja_mock
   at org.netbeans.modules.parsing.spi.indexing.support.QuerySupport$Query$Factory.file(QuerySupport.java:516)
   at org.netbeans.modules.css.indexing.api.CssIndex.getIndexModel(CssIndex.java:185)
   at org.netbeans.modules.css.prep.editor.CPUtils.getIndexModels(CPUtils.java:103)
   at org.netbeans.modules.css.prep.editor.CPCssEditorModule.getVariableCompletionProposals(CPCssEditorModule.java:314)
   at org.netbeans.modules.css.prep.editor.CPCssEditorModule.getCompletionProposals(CPCssEditorModule.java:139)
   at org.netbeans.modules.css.editor.module.CssModuleSupport.getCompletionProposals(CssModuleSupport.java:384)
Comment 1 Exceptions Reporter 2015-04-08 07:36:44 UTC
Created attachment 153092 [details]
stacktrace
Comment 2 xGarlics 2015-07-12 18:50:25 UTC
Created attachment 154578 [details]
stacktrace

Error while autocomplete CSS classes.
Comment 3 zmirc 2015-07-15 15:29:31 UTC
Created attachment 154657 [details]
stacktrace

I triggered autocomplete in a LESS file.
Comment 4 Milutin Kristofic 2015-07-16 12:26:25 UTC
Should be fixed in Bug #247279. Do you have a reproducible steps? Are the files symbolic links? Can you describe your folder tree?

For example why
/Applications/XAMPP/xamppfiles/htdocs/sushininja_mock/public_html/scss/_setting.scss is not in /Applications/XAMPP/htdocs/sushininja_mock ?
Comment 5 zmirc 2015-07-16 16:42:14 UTC
(In reply to Milutin Kristofic from comment #4)
> Should be fixed in Bug #247279. Do you have a reproducible steps? Are the
> files symbolic links? Can you describe your folder tree?
> 
> For example why
> /Applications/XAMPP/xamppfiles/htdocs/sushininja_mock/public_html/scss/
> _setting.scss is not in /Applications/XAMPP/htdocs/sushininja_mock ?

In my case (see https://bugzilla-attachments-251715.netbeans.org/bugzilla/attachment.cgi?id=154657 ) there are no symbolic links. The files exist there.

I will add 1 attachment that shows the project structure.
It is a HTML 5 project, which has it's app root in /app.

/bower_components (outside /app but in the same project/folder) is a folder where all dependencies are downloaded with Bower, based on bower.json.

I will add 1 more attachment that shows how the file which triggers the error (java.lang.IllegalArgumentException: The file D:\NetBeansProjects\wordmaps3-spa\bower_components\selectize\dist\less\selectize.less is not owned by QuerySupport roots: D:\NetBeansProjects\wordmaps3-spa\app) is referenced in a less file that exists at /app/less/selectize.less. That file does import the original selectize.less from bower_components and overrides some variables

So the issue might be about the fact that I reference a file outside of project/s app folder (/app), even though /bower_components is in the same parent folder as /app (as you can see in the files structure attachment)

I hope this helps. Thank you. :)
Comment 6 zmirc 2015-07-16 16:42:42 UTC
Created attachment 154685 [details]
project structure
Comment 7 zmirc 2015-07-16 16:43:32 UTC
Created attachment 154686 [details]
file inside /app that references file outside /app (a sister folder)
Comment 8 Milutin Kristofic 2015-07-17 14:27:47 UTC
Thank you, I can reproduce it now. I will look for a fix/solution.
Comment 9 Exceptions Reporter 2015-08-16 19:25:05 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=216627
Comment 10 zmirc 2015-08-20 10:02:40 UTC
You're welcome. I'm glad that you can reproduce it.

I can say that now it's simply a pain in the ...
This error happens for each every 2-3 characters that I type in a .less file
It makes it very hard to work in a .less file. X_X

I currently use NB DEV 201508180002.

You can see the 2 stacktraces I reported today for this bug. Direct link: http://statistics.netbeans.org/exceptions/detail.do?id=216627
Comment 11 Exceptions Reporter 2015-12-11 14:34:19 UTC
This bug already has 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=216627
Comment 12 giulio_a 2016-02-03 09:55:15 UTC
Same exception for me in my environment.

· Netbeans 8.1 stable
· OpenJDK Runtime Environment (build 1.8.0_71-b15) on Fedora Linux 64bit

This exception is raised only in CSS editor. This is the folder structure (in abstract) of the project that raises this exception:

· Project root dir: /path/html/root
· /path/html/root/wordpress is a symlink to /path/html/wp

Everytime I open and edit a css in the project, this exception is raised to a PNG file (??) contained in a subfolder of /path/html/wp.

This is the notification I receive from NB:

java.lang.IllegalArgumentException: The file /path/html/wp/wp-content/themes/mytheme/images/bottone_read_more.png is not owned by QuerySupport roots: /path/html/root

This makes CSS editor unable to code completion. Very annoying.

I hope this bug, that affects only CSS editor, could be closed ASAP.

Thank you.
Comment 13 Milutin Kristofic 2016-06-29 12:44:36 UTC
Thank you for reproducible steps and patience. It should be fixed in http://hg.netbeans.org/web-main/rev/edc6089ccf79
Comment 14 Quality Engineering 2016-06-30 01:51:58 UTC
Integrated into 'main-silver', will be available in build *201606300002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/edc6089ccf79
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #251715 - IllegalArgumentException: The file /Applications/XAMPP/xamppfiles/htdocs/sushininja_mock/public_html/scss/_setting.scss is not owned by QuerySupport roots