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 247647 - Files are shown but ignored by editor when added by git pull
Summary: Files are shown but ignored by editor when added by git pull
Status: RESOLVED INVALID
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-02 14:06 UTC by antoniocs
Modified: 2014-10-07 04:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of the files I am referring to (3.61 KB, image/png)
2014-10-02 14:06 UTC, antoniocs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description antoniocs 2014-10-02 14:06:09 UTC
Created attachment 149678 [details]
Screenshot of the files I am referring to

I am working on a project which is using git, so I can work at home and at the office.

I have added two new files to the project (and added them to git) on my home machine. 
When I did a git pull on my work machine I can see the new files but the icons are grayed out and I get nothing in the navigator or any other help component from netbeans. 

I have tried re-parsing the project but that does nothing.
Comment 1 Alexander Simon 2014-10-02 14:44:04 UTC
Hi antoniocs,

Did you put NetBeans project (nbproject folder) in git?

Alexander
Comment 2 antoniocs 2014-10-02 14:46:43 UTC
No, the nbproject is not under version control
I did add the folder to the .gitignore file.

(In reply to Alexander Simon from comment #1)
> Hi antoniocs,
> 
> Did you put NetBeans project (nbproject folder) in git?
> 
> Alexander
Comment 3 Alexander Simon 2014-10-02 15:18:59 UTC
The IDE does not have any chance to understand what is changed.
Right way is put nbproject in git and put nbroject/private in the ignore list.
Comment 4 antoniocs 2014-10-02 15:25:10 UTC
Ok, but the files did appear in the Project treeview without any action from my part. 
So now how can I just tell netbeans to treat these files the same as it treats the other .c files?

(In reply to Alexander Simon from comment #3)
> The IDE does not have any chance to understand what is changed.
> Right way is put nbproject in git and put nbroject/private in the ignore
> list.
Comment 5 Alexander Simon 2014-10-02 15:33:27 UTC
(In reply to antoniocs from comment #4)
> Ok, but the files did appear in the Project treeview without any action from
> my part. 
> So now how can I just tell netbeans to treat these files the same as it
> treats the other .c files?
There is 2 ways:
1. project properties->code assistance->advanced->extra source files
2. build the project (and reconfigure if your platform is windows)
Comment 6 Vladimir Kvashin 2014-10-06 23:46:51 UTC
(In reply to Alexander Simon from comment #5)
... and reconfigure if your platform is windows
I guess nobody but cnd dev team knows what "reconfigure" means :)
I think you meant pressing a button "Configure Code Assistance" that resides at the left of the build output window, right?
Comment 7 Alexander Simon 2014-10-07 04:59:22 UTC
(In reply to Vladimir Kvashin from comment #6)
> (In reply to Alexander Simon from comment #5)
> ... and reconfigure if your platform is windows
> I guess nobody but cnd dev team knows what "reconfigure" means :)
> I think you meant pressing a button "Configure Code Assistance" that resides
> at the left of the build output window, right?
yes