List Info

Thread: Tests won't compile in trunk. Won't run, neither.




Tests won't compile in trunk. Won't run, neither.
user name
2007-09-09 18:26:10
Newbie Subclipse builder here.

It looks like in rev 3245, Steve Elsemore checked in some
changes to 
allow not automatically creating a new directory when
sharing a project. 
  That added a new bool parameter to
SVNWorkspaceRoot.shareProject, but 
the tests weren't updated to match, so both
SubclipseTest.java and 
ShareProjectTest.java have errors.

I added a "true" to the tests in my local copy,
since that seems to have 
been the old behavior, but I'm guessing that this also
implies that 
there are no tests for the new "false" condition
yet... It doesn't look 
to me like Subclipse is going for full test coverage anyway,
but just 
thought I'd mention it.

So, now that they compile... uh... does anyone know how to
run them?  I 
tried just running subclipse-test.launch, but I get:

org.eclipse.core.internal.resources.ResourceException:
Resource 
'/project1' is not open.
	at 
org.eclipse.core.internal.resources.Project.checkAccessible(
Project.java:97)
	at
org.eclipse.core.internal.resources.Project.hasNature(Projec
t.java:467)
	at 
org.eclipse.dltk.ruby.internal.ui.RubyProjectDecorator.decor
ate(RubyProjectDecorator.java:24)
	at 
org.eclipse.ui.internal.decorators.LightweightDecoratorDefin
ition.decorate(LightweightDecoratorDefinition.java:259)
	at 
org.eclipse.ui.internal.decorators.LightweightDecoratorManag
er$LightweightRunnable.run(LightweightDecoratorManager.java:
71)
	at
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at
org.eclipse.core.runtime.Platform.run(Platform.java:857)
	at 
org.eclipse.ui.internal.decorators.LightweightDecoratorManag
er.decorate(LightweightDecoratorManager.java:336)
	at 
org.eclipse.ui.internal.decorators.LightweightDecoratorManag
er.getDecorations(LightweightDecoratorManager.java:322)
	at 
org.eclipse.ui.internal.decorators.DecorationScheduler$1.ens
ureResultCached(DecorationScheduler.java:369)
	at 
org.eclipse.ui.internal.decorators.DecorationScheduler$1.run
(DecorationScheduler.java:329)
	at
org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
org.eclipse.core.internal.resources.ResourceException:
Resource 
'/project1' is not open.
	at 
org.eclipse.core.internal.resources.Project.checkAccessible(
Project.java:97)
	at
org.eclipse.core.internal.resources.Project.hasNature(Projec
t.java:467)
	at 
org.eclipse.dltk.ruby.internal.ui.RubyProjectDecorator.decor
ate(RubyProjectDecorator.java:24)
	at 
org.eclipse.ui.internal.decorators.LightweightDecoratorDefin
ition.decorate(LightweightDecoratorDefinition.java:259)
	at 
org.eclipse.ui.internal.decorators.LightweightDecoratorManag
er$LightweightRunnable.run(LightweightDecoratorManager.java:
71)
	at
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at
org.eclipse.core.runtime.Platform.run(Platform.java:857)
	at 
org.eclipse.ui.internal.decorators.LightweightDecoratorManag
er.decorate(LightweightDecoratorManager.java:336)
	at 
org.eclipse.ui.internal.decorators.LightweightDecoratorManag
er.getDecorations(LightweightDecoratorManager.java:322)
	at 
org.eclipse.ui.internal.decorators.DecorationScheduler$1.ens
ureResultCached(DecorationScheduler.java:369)
	at 
org.eclipse.ui.internal.decorators.DecorationScheduler$1.run
(DecorationScheduler.java:329)
	at
org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
org.eclipse.core.internal.resources.ResourceException:
Resource 
'/project1' is not open.
	at 
org.eclipse.core.internal.resources.Project.checkAccessible(
Project.java:97)
	at
org.eclipse.core.internal.resources.Project.hasNature(Projec
t.java:467)
	at 
org.eclipse.dltk.ruby.internal.ui.RubyProjectDecorator.decor
ate(RubyProjectDecorator.java:24)
	at 
org.eclipse.ui.internal.decorators.LightweightDecoratorDefin
ition.decorate(LightweightDecoratorDefinition.java:259)
	at 
org.eclipse.ui.internal.decorators.LightweightDecoratorManag
er$LightweightRunnable.run(LightweightDecoratorManager.java:
71)
	at
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at
org.eclipse.core.runtime.Platform.run(Platform.java:857)
	at 
org.eclipse.ui.internal.decorators.LightweightDecoratorManag
er.decorate(LightweightDecoratorManager.java:336)
	at 
org.eclipse.ui.internal.decorators.LightweightDecoratorManag
er.getDecorations(LightweightDecoratorManager.java:322)
	at 
org.eclipse.ui.internal.decorators.DecorationScheduler$1.ens
ureResultCached(DecorationScheduler.java:369)
	at 
org.eclipse.ui.internal.decorators.DecorationScheduler$1.run
(DecorationScheduler.java:329)
	at
org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
org.eclipse.core.internal.resources.ResourceException:
Resource 
'/project1' is not open.
	at 
org.eclipse.core.internal.resources.Project.checkAccessible(
Project.java:97)
	at
org.eclipse.core.internal.resources.Project.hasNature(Projec
t.java:467)
	at 
org.eclipse.dltk.ruby.internal.ui.RubyProjectDecorator.decor
ate(RubyProjectDecorator.java:24)
	at 
org.eclipse.ui.internal.decorators.LightweightDecoratorDefin
ition.decorate(LightweightDecoratorDefinition.java:259)
	at 
org.eclipse.ui.internal.decorators.LightweightDecoratorManag
er$LightweightRunnable.run(LightweightDecoratorManager.java:
71)
	at
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at
org.eclipse.core.runtime.Platform.run(Platform.java:857)
	at 
org.eclipse.ui.internal.decorators.LightweightDecoratorManag
er.decorate(LightweightDecoratorManager.java:336)
	at 
org.eclipse.ui.internal.decorators.LightweightDecoratorManag
er.getDecorations(LightweightDecoratorManager.java:322)
	at 
org.eclipse.ui.internal.decorators.DecorationScheduler$1.ens
ureResultCached(DecorationScheduler.java:369)
	at 
org.eclipse.ui.internal.decorators.DecorationScheduler$1.run
(DecorationScheduler.java:329)
	at
org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
org.eclipse.core.internal.resources.ResourceException:
Resource 
'/project1' is not open.
	at 
org.eclipse.core.internal.resources.Project.checkAccessible(
Project.java:97)
	at
org.eclipse.core.internal.resources.Project.hasNature(Projec
t.java:467)
	at 
org.eclipse.dltk.ruby.internal.ui.RubyProjectDecorator.decor
ate(RubyProjectDecorator.java:24)
	at 
org.eclipse.ui.internal.decorators.LightweightDecoratorDefin
ition.decorate(LightweightDecoratorDefinition.java:259)
	at 
org.eclipse.ui.internal.decorators.LightweightDecoratorManag
er$LightweightRunnable.run(LightweightDecoratorManager.java:
71)
	at
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at
org.eclipse.core.runtime.Platform.run(Platform.java:857)
	at 
org.eclipse.ui.internal.decorators.LightweightDecoratorManag
er.decorate(LightweightDecoratorManager.java:336)
	at 
org.eclipse.ui.internal.decorators.LightweightDecoratorManag
er.getDecorations(LightweightDecoratorManager.java:322)
	at 
org.eclipse.ui.internal.decorators.DecorationScheduler$1.ens
ureResultCached(DecorationScheduler.java:369)
	at 
org.eclipse.ui.internal.decorators.DecorationScheduler$1.run
(DecorationScheduler.java:329)
	at
org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
org.eclipse.core.internal.resources.ResourceException:
Resource 
'/project1' is not open.
	at 
org.eclipse.core.internal.resources.Project.checkAccessible(
Project.java:97)
	at
org.eclipse.core.internal.resources.Project.hasNature(Projec
t.java:467)
	at 
org.eclipse.dltk.ruby.internal.ui.RubyProjectDecorator.decor
ate(RubyProjectDecorator.java:24)
	at 
org.eclipse.ui.internal.decorators.LightweightDecoratorDefin
ition.decorate(LightweightDecoratorDefinition.java:259)
	at 
org.eclipse.ui.internal.decorators.LightweightDecoratorManag
er$LightweightRunnable.run(LightweightDecoratorManager.java:
71)
	at
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at
org.eclipse.core.runtime.Platform.run(Platform.java:857)
	at 
org.eclipse.ui.internal.decorators.LightweightDecoratorManag
er.decorate(LightweightDecoratorManager.java:336)
	at 
org.eclipse.ui.internal.decorators.LightweightDecoratorManag
er.getDecorations(LightweightDecoratorManager.java:322)
	at 
org.eclipse.ui.internal.decorators.DecorationScheduler$1.ens
ureResultCached(DecorationScheduler.java:369)
	at 
org.eclipse.ui.internal.decorators.DecorationScheduler$1.run
(DecorationScheduler.java:329)
	at
org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

I do see it create /project1 in the newly launched
Eclipse-under-test's 
Project Explorer; is there something else I need to
configure?  My six 
minutes of Java experience have not prepared me for this.

Jay Levitt

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesubclipse.tigris.org
For additional commands, e-mail: dev-helpsubclipse.tigris.org


Re: Tests won't compile in trunk. Won't run, neither.
user name
2007-09-09 19:49:04
On 9/9/07, Jay Levitt <lists-subclipseshopwatch.org> wrote:
> Newbie Subclipse builder here.
>
> It looks like in rev 3245, Steve Elsemore checked in
some changes to
> allow not automatically creating a new directory when
sharing a project.
>   That added a new bool parameter to
SVNWorkspaceRoot.shareProject, but
> the tests weren't updated to match, so both
SubclipseTest.java and
> ShareProjectTest.java have errors.

The tests are not used.  I have never run them before.  I
think if you
look at the history of the project it maybe has 1 commit in
the last
three years.

-- 
Thanks

Mark Phippard
http://markphip.blogspo
t.com/

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesubclipse.tigris.org
For additional commands, e-mail: dev-helpsubclipse.tigris.org


Re: Tests won't compile in trunk. Won't run, neither.
user name
2007-09-09 20:47:30
On 9/9/2007 8:49 PM, Mark Phippard wrote:
> On 9/9/07, Jay Levitt <lists-subclipseshopwatch.org> wrote:
>> Newbie Subclipse builder here.
>>
>> It looks like in rev 3245, Steve Elsemore checked
in some changes to
>> allow not automatically creating a new directory
when sharing a project.
>>   That added a new bool parameter to
SVNWorkspaceRoot.shareProject, but
>> the tests weren't updated to match, so both
SubclipseTest.java and
>> ShareProjectTest.java have errors.
> 
> The tests are not used.  I have never run them before. 
I think if you
> look at the history of the project it maybe has 1
commit in the last
> three years.

Wow.  OK.  This explains a lot.

Jay

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesubclipse.tigris.org
For additional commands, e-mail: dev-helpsubclipse.tigris.org


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )