| Summary: | ISourceLookupDirector does not make honor to new ISourceLocator added programatically | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] JSDT | Reporter: | Leopoldo (Polo) Miranda <polomm> | ||||||
| Component: | Debug | Assignee: | Michael Rennie <Michael_Rennie> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Michael Rennie <Michael_Rennie> | ||||||
| Severity: | normal | ||||||||
| Priority: | P2 | CC: | thatnitind | ||||||
| Version: | 3.2 | Keywords: | readme | ||||||
| Target Milestone: | 3.4 M3 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | |||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 367806 | ||||||||
| Attachments: |
|
||||||||
|
Description
Leopoldo (Polo) Miranda
Created attachment 204771 [details]
patch
Testing the default source lookup from the IDE the scenario works as expected. I did find a case where a script node that had no JS-like extension would fail to be found (which is what this patch fixes).
Leopoldo, can you post more of your code on how you are composing your launch, etc ? I am thinking there is a missing initialization step that is not happening.
I applied the patch to HEAD with a minor update. For this particular scenario, I've changed the following line
myLaunch.setSourceLocator((ISourceLocator) launchManager.newSourceLocator("org.eclipse.wst.jsdt.debug.core.sourceLocator"));
by this
JavaScriptSourceDirector myJSdirector = (JavaScriptSourceDirector) launchManager.newSourceLocator("org.eclipse.wst.jsdt.debug.core.sourceLocator");
myJSdirector.initializeParticipants();
myLaunch.setSourceLocator(myJSdirector);
Having this update I'm now able to open/locate resources from a pro grammatically JS launch.
(In reply to comment #3) > Having this update I'm now able to open/locate resources from a pro > grammatically JS launch. Thanks for reporting back Leopoldo, I will mark this bug as a readme in case anyone else encounters a similar issue. |