Bug 577108

Summary: file_prompt now requires existing file
Product: [Eclipse Project] Platform Reporter: Stefan Roethlein <stefan8421>
Component: IDEAssignee: Nikita Nemkin <nikita>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: digga1404, loskutov, nikita
Version: 4.20   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=571571
Whiteboard:

Description Stefan Roethlein CLA 2021-11-06 10:49:12 EDT
Up to Eclipse 2020-09 (4.17) by using ${file_prompt} in the "Arguments" of a java- run-configuration (.launch), I could select a directory and type in the name of a new, non-existing file (which was then created by my java-Application).
In Eclipse 2021-06 (and 2021-09, i.e 4.20 / 4.21) this stopped working: after selecting a directory and entering the name of the to-be-created, non-existing file, Eclipse (i.e the file-chooser-dialog) now complains "file not existing" and refuses to start the application.
Comment 1 Andrey Loskutov CLA 2021-11-09 09:44:20 EST
Probably regression from bug 571571. The code in org.eclipse.debug.internal.ui.stringsubstitution.FilePrompt simply asks FileDialog to give the selected path.

However, there are various tools that use that in different places (and may add extra validation on top) - please provide a simple example which value in which argument exactly is not working anymore.
Comment 2 Nikita Nemkin CLA 2021-11-11 08:28:24 EST
I'll check if Bug 571571 inadvertently changed this behavior.