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 253744 - [81cat] Cache folder doesn't exists file updated in project dir instead of user dir.
Summary: [81cat] Cache folder doesn't exists file updated in project dir instead of us...
Status: RESOLVED FIXED
Alias: None
Product: qa
Classification: Unclassified
Component: Test Specifications (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jiri Prox
URL:
Keywords:
: 254519 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-07-24 14:04 UTC by -Silver-
Modified: 2016-01-20 11:06 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 -Silver- 2015-07-24 14:04:39 UTC
Test description:
  Purpose: This suite describes compiling a building project
  Setup: Locate the directory, where are stored compiled classes. The location   should be {userdir}/var/cache/index/{index_version}/sX/classes, where X is a decimal number
  Comments: The test cases should be performed in a row since they depends on result of previous case.

Steps:
    Open class from the project
    Clean it
    Make sure CoS is enabled
    Make some modification and save 

Expected result:
    The related .class file is updated, but only in userdir, Need to Compile batch is not dispalyed. Compile actions are enabled

Actual result:
    The cache dir is not created from Netbeans 8.1beta (I can see it in Netbeans 8.0.1). When I save the file the class is updated into the project dir and not into the userdir.
Comment 1 -Silver- 2015-07-24 14:22:33 UTC
I linked also another test case to this issue because seems related.
When I compile a copy from the cache folder to the project folder is expected but it seems that the cache folder is not created and that the code is directly compiled into the project folder instead to be copied from that folder.
Comment 2 Tomas Zezula 2015-07-28 09:22:51 UTC
The cache dir is correctly created in the ${cachedir}/index. Without the ${cachedir}/index nothing will work as the caches are used by all languages features.

Also the COS behaviour is a bit complicated than the test spec:
1)The classes are copied to build/classes after the fist run
2)The incremental updates of classes in the build/classes after save file is done by COSSynchronizingIndexer immediately after java indexing.

This behaviour is there from the NB 6.1, so the test spec in wrong.
Comment 3 stwr 2015-08-21 05:11:42 UTC
Actually once project is cleaned the class file does not appear nowhere if COS is enabled. I am not really sure how does it work right now. I am monitoring the cache and it does not change since several minutes. No new files, no modified files.

Product Version: NetBeans IDE Dev (Build 201508200002)
Java: 1.8.0_60-ea; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-ea-b25
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 4 Jiri Prox 2015-08-24 13:11:10 UTC
*** Bug 254519 has been marked as a duplicate of this bug. ***
Comment 5 Jiri Prox 2016-01-20 11:06:45 UTC
Test spec fixed