ILSpy icon indicating copy to clipboard operation
ILSpy copied to clipboard

Save project - single fail lead to total crash

Open greenozon opened this issue 6 months ago • 6 comments

Steps to reproduce

  1. get any binary
  2. save as project
  3. it should fail & stop

Error message shown

regular ILSpy error

Expectations

Is it possible to skip a single fail on a single function and continue project saving until the end? right now it fully stops and there is no any chanve to move forward even having a single error in millions of routines...

Details

  • ILSpy version 10.0.0.8039-preview1+fa4108e450e0045d1632f5f0207cc8a840f73196
  • .NET version 10.0.0-preview.5.25277.114+ddf39a1b4690fbe23aea79c78da67004a5c31094

greenozon avatar Jul 08 '25 14:07 greenozon

Idea aloud - or maybe this is happening only on debug builds??

greenozon avatar Jul 08 '25 14:07 greenozon

Nope, release build has same problem of sudden stop...

greenozon avatar Jul 08 '25 14:07 greenozon

@siegfriedpammer could it be done in current implementation of ILSpy? or this is new feature req

greenozon avatar Jul 08 '25 17:07 greenozon

What do you mean? Sure this is a new feature request, but it could be done in the current release, even if it takes a bit of work, breaking changes are allowed, as the next release will be a major release (10.0).

siegfriedpammer avatar Jul 08 '25 17:07 siegfriedpammer

I mean if say a binary has 10 classes and 100 functions overall and during saving a project (full decompilation) we hit at least 1 error -> all process stops maybe it's OK but sometimes one needs a full project including .sln file/proj file even with fails in some .cs files ... in this case I could for example try out other decompiles (eg dnSpy) and replace fault ...

greenozon avatar Jul 08 '25 17:07 greenozon

@siegfriedpammer any ideas if this is feasible...

greenozon avatar Jul 28 '25 22:07 greenozon