There was a task:
[x] Execute Tasks
${ProjDirPath}/Project_Settings/Debugger/MC9S08LG32.tcl [Debugger shell script] [x] First [x] Subsequent
I unchecked Execute Tasks, but that did not help.
I saw that the problem also affected my original SM6.1 project which I had not had problems with before--even that project could no longer be flashed. so I reinstalled Code Warrior 10.2 (I haven't gotten to update 1.0.0.0 yet)--and that seemed to work. I got the executable IICEX8 (a copy of SM6.1 with modified sources) flashed. But then I copied that project to another: IICEX8_SLV, modified sources and built it--the error has returned. However, in the interim I was getting java.lang.NullPointerException sometimes when I click on the Flashbutton--sometimes when opening CodeWarrior. I don't recall how I recovered--I openedand closed CW a few times. Anyway, no more NPE's but I have the "Error importing task" if I try to flash -any- task. Thinking it might be workspace related I tried removing.metadata, it created a new one, but I had no projects when opening my workspace, so I am back to the old .metadata. There may be a way of regenerating a corrupt .metadata,but I don't know what it is
Regarding the NPE--looking at my .log I see
----------------------------------------------------------
ENTRY org.eclipse.debug.core 4 2 2012-05-23 13:33:36.290
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.debug.core".
!STACK 0
java.lang.ClassCastException: com.freescale.cdt.debug.cw.core.LaunchConfigurationWorkingCopyNonSaveable cannot be cast to org.eclipse.debug.internal.core.LaunchConfiguration
at org.eclipse.debug.internal.core.LaunchConfiguration.equals(LaunchConfiguration.java:318)
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.launchConfigurationRemoved(AbstractSourceLookupDirector.java:364)
All I can try now is download CW again. Maybe you have to do that as part of the copy-task procedure--I wouldn't be too surprised.
Thanks for your reply BK.