NO

Author Topic: IDE hangout when no mode selected (V11 RC1-2)  (Read 3615 times)

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
IDE hangout when no mode selected (V11 RC1-2)
« on: August 10, 2021, 09:40:13 AM »
When for whichever reason no mode is selected, Release, Debug or else, and you press the compile 'Project Options' button, appears a message that invites to select a mode, but pressing any button the IDE hangs.
The only mode to solve is to kill the IDE process.
I.e. it happens when opening an old project and its conversion to the new format, or when creating a new project in a workspace.
It was already present with older versions where the mode selection was present.
The picture shows what happens.


EDIT:
How to reproduce:
 1- Create a project standalone (not in a workspace)
 2- from menu choose: File => new_Project  (you can also use the toolbar 'new' icon then choose 'project')
 3- From the new project dialog select 'add to existing workspace'.
 4- the freshly created project is added to the just created workspace with no mode selected.
 5- press the 'Project Options' button and get the IDE hangout.

I can't exclude that there are other ways to produce the problem.
« Last Edit: August 14, 2021, 07:14:39 PM by frankie »
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

Offline John Z

  • Member
  • *
  • Posts: 860
Re: IDE hangout when no mode selected (V11 RC1-2)
« Reply #1 on: August 10, 2021, 01:56:43 PM »
Interesting - I tried to replicate in version 10.  commented out the selection in the ppj
Code: [Select]
#
# PROJECT FILE generated by "Pelles C for Windows, version 10.00".
# WARNING! DO NOT EDIT THIS FILE.
#

POC_PROJECT_VERSION = 9.00#
POC_PROJECT_TYPE = 11#
#POC_PROJECT_MODE = Release#
In this case the UI responded appropriately as shown in the attached.
Did the version 11 ppj actually contain the
Code: [Select]
!if "$(POC_PROJECT_MODE)" == "Release"
...
!elseif "$(POC_PROJECT_MODE)" == "Debug"
...
!else
!error "Unknown mode."
!endif
section?  This info could help troubleshoot...

John Z

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: IDE hangout when no mode selected (V11 RC1-2)
« Reply #2 on: August 10, 2021, 03:04:30 PM »
Interesting - I tried to replicate in version 10.  commented out the selection in the ppj
Code: [Select]
#
# PROJECT FILE generated by "Pelles C for Windows, version 10.00".
# WARNING! DO NOT EDIT THIS FILE.
#

POC_PROJECT_VERSION = 9.00#
POC_PROJECT_TYPE = 11#
#POC_PROJECT_MODE = Release#
In this case the UI responded appropriately as shown in the attached.
Press the project options icon.
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

Offline John Z

  • Member
  • *
  • Posts: 860
Re: IDE hangout when no mode selected (V11 RC1-2)
« Reply #3 on: August 10, 2021, 04:33:30 PM »
OK  :) Now that does hang in version 10....
but pressing any button the IDE hangs.
Missed the 'any BUTTON' part ..... but in version 10 it is only the "Project Options" button not build or compile.  Version 10 also hangs the program using the Menu item "Project Options", but not the build, clean, compile.

John Z

Update: Version 9.00.9 does not have the issue.  Both button and menu use show a dialog box when there is no active mode. 
« Last Edit: August 10, 2021, 05:28:30 PM by John Z »

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: IDE hangout when no mode selected (V11 RC1-2)
« Reply #4 on: August 10, 2021, 06:43:29 PM »
OK  :) Now that does hang in version 10....
but pressing any button the IDE hangs.
Missed the 'any BUTTON' part ..... but in version 10 it is only the "Project Options" button not build or compile.  Version 10 also hangs the program using the Menu item "Project Options", but not the build, clean, compile.

John Z

Update: Version 9.00.9 does not have the issue.  Both button and menu use show a dialog box when there is no active mode.
My wrong John. The button is the 'project option'.
I remember that for version 9 was the same. I didn't complained because the new release was coming... Anyway doesn't matter anymore...  ;D
I'll fix the first post.
« Last Edit: August 10, 2021, 06:47:00 PM by frankie »
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

Offline John Z

  • Member
  • *
  • Posts: 860
Re: IDE hangout when no mode selected (V11 RC1-2)
« Reply #5 on: August 10, 2021, 09:52:27 PM »
Frankie - I had no doubts you were right.  In fact I didn't even try version 11 because your reputation and my respect for your contributions.

I was just trying version 10, then version 9, to hopefully help Pelle pinpoint the issue or code change easier.  Being a bit paranoid it takes me a while to let go of older versions.  So at the moment 9, 10 and 11 are running on three different systems  :-[  oh well.....


Best Regards,
John Z