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 175056 - test file is being created but cannot be found upon launch
Summary: test file is being created but cannot be found upon launch
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P2 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords:
: 175383 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-20 22:59 UTC by beyondcompute
Modified: 2009-11-05 10:17 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 beyondcompute 2009-10-20 22:59:26 UTC
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
Comment 1 Tomas Mysik 2009-10-21 09:38:10 UTC
Provide your NetBeans (Help > About) and PHPUnit version, please.

Also, provide exact steps to reproduce.

Thanks a lot.
Comment 2 beyondcompute 2009-10-22 15:53:01 UTC
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
Comment 3 beyondcompute 2009-10-22 15:56:48 UTC
My PHPUnit version is 3.3.17
Comment 4 Tomas Mysik 2009-10-22 16:19:28 UTC
> 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.
Comment 5 beyondcompute 2009-10-22 16:48:13 UTC
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.
Comment 6 beyondcompute 2009-10-22 16:48:53 UTC
And thank you very very much for your work!
Comment 7 Tomas Mysik 2009-10-26 15:37:56 UTC
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/?
Comment 8 Tomas Mysik 2009-10-26 15:47:44 UTC
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)
Comment 9 Tomas Mysik 2009-10-26 16:14:45 UTC
Also helps to run Source > Scan for external changes (no need to restart IDE then).
Comment 10 Tomas Mysik 2009-10-27 15:24:55 UTC
*** Issue 175383 has been marked as a duplicate of this issue. ***
Comment 11 Tomas Mysik 2009-10-27 15:24:57 UTC
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.
Comment 12 Tomas Mysik 2009-11-02 14:46:59 UTC
Problem in RepositoryUpdater, Víťa knows about it (the "nearest" source root should be the owner).

Thanks a lot for fixing it.
Comment 13 Vitezslav Stejskal 2009-11-03 12:57:35 UTC
http://hg.netbeans.org/jet-main/rev/a0a53abdbd40
Comment 14 Quality Engineering 2009-11-05 10:17:11 UTC
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