Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334447 - [codan] ResourceException finding markers
Summary: [codan] ResourceException finding markers
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-codan (show other bugs)
Version: 8.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 8.0   Edit
Assignee: Elena Laskavaia CLA
QA Contact: Elena Laskavaia CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-14 20:42 EST by Marc-André Laperle CLA
Modified: 2011-05-13 11:05 EDT (History)
1 user (show)

See Also:


Attachments
Call stack from log (2.15 KB, text/plain)
2011-01-14 20:42 EST, Marc-André Laperle CLA
no flags Details
Fix ResourceException when finding makers (1.04 KB, patch)
2011-01-14 20:45 EST, Marc-André Laperle CLA
cdtdoug: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marc-André Laperle CLA 2011-01-14 20:42:16 EST
Created attachment 186867 [details]
Call stack from log

Using 8.0.0.201101141202

I'm not sure how to trigger this but I have a lot of exceptions when I type.
I have a weird project setup, that might explain it.

-Base (project closed)
-Main (project open)
  -Base (folder but same as the project)

Attached it the call stack from the Error log
Comment 1 Marc-André Laperle CLA 2011-01-14 20:45:23 EST
Created attachment 186868 [details]
Fix ResourceException when finding makers

This should fix the exception but it probably hides a deeper problem.
Comment 2 Elena Laskavaia CLA 2011-01-14 22:06:58 EST
I think your patch is fine it just trips over closed projects
Comment 3 Elena Laskavaia CLA 2011-01-17 21:16:30 EST
thanks for the patch
Comment 4 CDT Genie CLA 2011-01-17 21:23:03 EST
*** cdt cvs genie on behalf of elaskavaia ***
Bug 334447 - exception on closed project - patch committed

[*] CodanMarkerProblemReporter.java 1.21 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/CodanMarkerProblemReporter.java?root=Tools_Project&r1=1.20&r2=1.21