Bug 497041 - IllegalArgumentException when trying to debug an express application
Summary: IllegalArgumentException when trying to debug an express application
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: Debug (show other bugs)
Version: 3.8.0   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Victor Rubezhny CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-29 18:56 EDT by Orlando Rincon CLA
Modified: 2016-06-29 18:56 EDT (History)
0 users

See Also:


Attachments
Express project (5.79 KB, application/zip)
2016-06-29 18:56 EDT, Orlando Rincon CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Orlando Rincon CLA 2016-06-29 18:56:03 EDT
Created attachment 262801 [details]
Express project

When tried to debug an express project (whose entry point is a non JavaScript file), I am getting IllegalArgument exceptions as stated below.

Steps to reproduce:
1) Import attached project
2) (OPTIONAL) run npm install
3) Create a new Node.js debug configuration. Set the project to the one you import and the main file as bin/www file.
4) Run the debug session

************
java.lang.IllegalArgumentException: Path must include project and resource name: /expressJs
	at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)
	at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:2074)
	at org.eclipse.core.internal.resources.Container.getFile(Container.java:193)
	at org.eclipse.wst.jsdt.chromium.debug.core.ChromiumSourceComputer.computeSourceContainers(ChromiumSourceComputer.java:49)
	at org.eclipse.debug.internal.core.sourcelookup.SourcePathComputer.computeSourceContainers(SourcePathComputer.java:71)
	at org.eclipse.debug.core.sourcelookup.containers.DefaultSourceContainer.createSourceContainers(DefaultSourceContainer.java:117)
	at org.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer.getSourceContainers(CompositeSourceContainer.java:133)
	at org.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer.findSourceElements(CompositeSourceContainer.java:48)
	at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupParticipant.findSourceElements(AbstractSourceLookupParticipant.java:70)
	at org.eclipse.wst.jsdt.chromium.debug.core.ChromiumSourceDirector$LookupParticipant.findSourceElementsSuper(ChromiumSourceDirector.java:136)
	at org.eclipse.wst.jsdt.chromium.debug.core.ChromiumSourceDirector$LookupParticipant.access$0(ChromiumSourceDirector.java:135)
	at org.eclipse.wst.jsdt.chromium.debug.core.ChromiumSourceDirector$LookupParticipant$SuperClassAccess.findSourceElements(ChromiumSourceDirector.java:147)
	at org.eclipse.wst.jsdt.chromium.debug.core.ChromiumSourceDirector$2.findSourceElements(ChromiumSourceDirector.java:165)
	at org.eclipse.wst.jsdt.chromium.debug.core.ChromiumSourceDirector$LookupParticipant.findSourceElements(ChromiumSourceDirector.java:132)
	at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:142)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:505)
	at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:785)
	at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:344)
	at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:741)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)