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 256785 - CSS code completion broken in scss file when @import is used
Summary: CSS code completion broken in scss file when @import is used
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Preprocessors (SASS, LESS, ...) (show other bugs)
Version: 8.1
Hardware: PC Linux
: P1 normal with 1 vote (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-25 14:57 UTC by JanGen
Modified: 2016-06-29 12:47 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description JanGen 2015-11-25 14:57:47 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Linux version 3.13.0-68-generic running on amd64
Java; VM; Vendor = 1.8.0_60
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.60-b23

Reproducibility: Happens every time

STEPS:
  * Open scss file
  * @import "another.scss";

ACTUAL:
 no CSS cc 

EXPECTED:
  CSS cc working

Comment @import statement out:
//@import "another.scss"
CSS cc starts working
Comment 1 luk123 2016-03-11 06:41:43 UTC
In Less files also.

Code completion does not work even when the edited file is imported in another file.

Windows version NetBeans IDE 8.1 (Build 201510222201).
Comment 2 Milutin Kristofic 2016-05-31 10:20:22 UTC
Hi JanGen, luk123,
can you please better describe steps, because I cannot reproduce this behavior.

* I have newstyle.scss empty file
* I write @import "another.scss"
* I have still cc (I can press @ and then i have @import, or  font-size in .test{})
* I create empty another.scss
* I have error in another.scss like @import()

I always have cc. 

I tested 
Product Version: NetBeans IDE 8.1 (Build 201510222201)
and
Product Version: NetBeans IDE Dev (Build 20160530-85aba4aa859e)
Comment 3 JanGen 2016-06-01 13:51:43 UTC
Maybe it's related to symlinks (outside project dir). 

My setup is style.scss that imports __bootstrap.scss that imports 

@import "bootstrap/type.scss";
@import "bootstrap/code.scss";

And the bootstrap map is a symlink to a sass map in a bootstrap git directory.

TEST FAILED
 * test.scss
 * imports a symlinked import.scss outside project dir -> no CC

TEST PASSED
* test.scss
* imports a symlinked import.scss in project dir -> CC

So I think it is related to symlinks outside the project dir.
Comment 4 Milutin Kristofic 2016-06-29 12:47:21 UTC
This is similar bug as Bug #251715 . It should be fixed with http://hg.netbeans.org/web-main/rev/edc6089ccf79 . At least your case is now working now, when symlink is inside project folder and it's original file outside.