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 256585 - [ConvertorProjects] Can not upload library files
Summary: [ConvertorProjects] Can not upload library files
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
: 257142 257445 257699 258978 259017 259128 (view as bug list)
Depends on:
Blocks: 253339
  Show dependency tree
 
Reported: 2015-11-13 14:54 UTC by SoboLAN
Modified: 2016-05-26 01:58 UTC (History)
10 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot with problem (60.35 KB, image/png)
2015-11-13 14:54 UTC, SoboLAN
Details
How it looks like for project-specific files (41.18 KB, image/png)
2015-11-13 14:55 UTC, SoboLAN
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SoboLAN 2015-11-13 14:54:49 UTC
Created attachment 157325 [details]
Screenshot with problem

I used 8.0.2 for some time and everything worked perfectly.

After upgrading to 8.1 I noticed that I can't upload library files (files that are created/brought with composer) any more.

A lot more context:

- I have a PHP project, with a composer.json file
- In that file I specify many libraries
- The libraries are stored in the folder %project_root%/vendor (I think this is standard for Composer)
- My "vendor" folder is present in the ".gitignore" file
- The entire project also exists on some remote server

What should happen:
1). If I right-click a file from my project, the "Upload" command should be available and it should work
2). If I open a file from my project (the ones I write), the window title should be %project_name%
3). If I right-click a file from somewhere in the "vendor" folder, the "Upload" command should be available and it should work
4). If I open a file from "vendor" folder, the window title should still be %project_name%

What actually happens:
- Nr. 1 Works OK
- Nr. 2 Works OK
- Nr. 3: The "Upload" command is greyed out
- Nr. 4: The title is not %project_name% . Instead, it changes to be the name of the folder which contains that specific file

I think that, because nr. 4 does not work it changes the title of the "current project", which makes Netbeans think that the file is actually from another project and therefore no "Upload" command should be available.

I attached some screenshots, maybe it will make it clear what is going on.

I repeat: this worked fine in Netbeans 8.0.2.
Comment 1 SoboLAN 2015-11-13 14:55:57 UTC
Created attachment 157326 [details]
How it looks like for project-specific files
Comment 2 Tomas Mysik 2015-11-18 09:02:15 UTC
Thanks for your report. The reason is that now NetBeans recognizes all directories with composer.json as a separate NetBeans project - we need to fix it and provide it in some patch for NB 8.1.

Meanwhile, as a work around, you can rename composer.json file (to e.g. composer2.json), restart IDE and it should work then as before. Sorry for inconveniences!

Thanks.
Comment 3 Tomas Mysik 2015-11-30 07:20:53 UTC
One more possible workaround - disable Composer plugin in Tools > Plugins (if you don't use it, of course).

Thanks.
Comment 4 Tomas Mysik 2016-01-14 12:35:41 UTC
*** Bug 257445 has been marked as a duplicate of this bug. ***
Comment 5 Tomas Mysik 2016-01-27 09:22:53 UTC
*** Bug 257699 has been marked as a duplicate of this bug. ***
Comment 6 Garcha 2016-01-28 06:18:58 UTC
Thanks, now I understand the problem. 
Cheers
Comment 7 Tomas Mysik 2016-01-28 13:57:56 UTC
*** Bug 257722 has been marked as a duplicate of this bug. ***
Comment 8 Tomas Mysik 2016-01-28 13:58:51 UTC
*** Bug 257142 has been marked as a duplicate of this bug. ***
Comment 9 Garcha 2016-01-28 19:21:19 UTC
I tried all the suggested methods but nothing helped. Problem still exists :/
Comment 10 Tomas Mysik 2016-01-29 07:20:52 UTC
(In reply to Garcha from comment #9)
> I tried all the suggested methods but nothing helped. Problem still exists :/

In such a case, feel free to report a new issue BUT:

- provide exact steps to reproduce; or better
- attach a sample project we can investigate.

Also, do not forget to attach your IDE log [1].

Thanks.
[1] http://wiki.netbeans.org/FaqLogMessagesFile
Comment 11 SoboLAN 2016-02-08 10:50:17 UTC
This has been open for some time now. No fix ? :(
Comment 12 Tomas Mysik 2016-04-25 05:37:33 UTC
*** Bug 258978 has been marked as a duplicate of this bug. ***
Comment 13 Tomas Mysik 2016-04-25 05:38:26 UTC
From issue 258978:

Under the "File" menu the following entries are grayed out:
Close Project (Composer Project Name)
Close Other Projects
Project Properties (Composer Project Name)
Comment 14 Tomas Mysik 2016-04-26 11:32:04 UTC
*** Bug 259017 has been marked as a duplicate of this bug. ***
Comment 15 Tomas Mysik 2016-05-19 08:00:51 UTC
Issue #259128 seems to be related (a "duplicate") of this one.
Comment 16 Tomas Zezula 2016-05-24 13:39:32 UTC
*** Bug 259128 has been marked as a duplicate of this bug. ***
Comment 17 Tomas Zezula 2016-05-24 14:51:31 UTC
Fixed jet-main 30a7856c49fe
Comment 18 Quality Engineering 2016-05-26 01:58:26 UTC
Integrated into 'main-silver', will be available in build *201605260002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/30a7856c49fe
User: Tomas Zezula <tzezula@netbeans.org>
Log: #256585:[ConvertorProjects] Can not upload library files