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.
I successfully generate the test file, I can edit it and so on and it launches from command line. But when I'm launchig it from NetBeans I'm getting a message that test file could not be found
Provide your NetBeans (Help > About) and PHPUnit version, please. Also, provide exact steps to reproduce. Thanks a lot.
Product Version: NetBeans IDE Dev (Build 200908022240) Java: 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02 System: Windows Vista version 6.0 running on x86; Cp1251; ru_RU (nb) Userdir: C:\Users\Eugene\.netbeans\6.8m1
My PHPUnit version is 3.3.17
> Also, provide exact steps to reproduce. Sorry, still INCOMPLETE because I really don't know what you are doing exactly; or better, could you attach a sample project I can investigate? That would help a lot. Moreover, please, try to use some newer NetBeans version (Milestone 2 is out, Beta should be available soon, maybe today). Thanks a lot.
The issue is seen only the very first time I configuring tests for project. 1. I have a project checked out (from svn) 2. I'm adding a bootstrap file in project properties. Netbeans tells that it cannot upload files on save. I'm seeing such a message boxes very often when changing project preferences. I'm clicking "No" (Don't disable the functionality for this session). Btw, uploading to my SFTP works fine in 6.8 M1. The message is there only when editing project preferences. 3. I'm choosing tools > generate PHPUnit tests from file's context menu in "projects" tab. Netbeans asks about tests folder location. I'm choosing tests folder that is already there (in the root of project folder). Netbeans time again shows message box that it's unable to upload files on save. I'm clicking "No" again. 4. The test file is being generated. 5. I'm going back to Tested file and launching test. 6. Netbeans says that test file could not be found. 7. I'm restarting Netbeans and all tests are being generated and run without any troubles. 8. So the defect is there only during the very first session. I'm not using nightlies up from the middle of September or the M2 because I'm getting a null pointer exception while uploading files via SFTP. The connection is ok (I'm testing it in "Manage connection"). But when saving the actual file there's the exception. So it makes the entire IDE useless :( I've sent numerous reports via the embedded report generator. So there must be ticket(s) here.
And thank you very very much for your work!
Please, could you try to reproduce this issue with at least Beta? Or don't be afraid to use development builds [1], they are pretty stable in this phase (FCS should be released quite soon). There were many fixes in copying-sources as well as PHPUnit functionality since M1. Thanks a lot. [1] http://bertram.netbeans.org/hudson/job/PHP-build/?
I was able to reproduce, I just created new project, created PHPUnit test and tried to run it via Test action on the tested class. I will fix it, however, this is not P2 because work around exists and is pretty simple. Product Version: NetBeans IDE Dev (Build 091023) Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01 System: Linux version 2.6.28-16-generic running on amd64; UTF-8; cs_CZ (nb)
Also helps to run Source > Scan for external changes (no need to restart IDE then).
*** Issue 175383 has been marked as a duplicate of this issue. ***
This issue appears after fixing classpath for sources (test-directory is ignored even if it's underneath source-directory). Back to P2 because it affects everything - code completion, go to type etc. I will look at it and fix it asap.
Problem in RepositoryUpdater, Víťa knows about it (the "nearest" source root should be the owner). Thanks a lot for fixing it.
http://hg.netbeans.org/jet-main/rev/a0a53abdbd40
Integrated into 'main-golden', will be available in build *200911050201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/a0a53abdbd40 User: Vita Stejskal <vstejskal@netbeans.org> Log: #175056: fixing getOwningSource root to work with nested roots