Bug 577108 - file_prompt now requires existing file
Summary: file_prompt now requires existing file
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.20   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nikita Nemkin CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-06 10:49 EDT by Stefan Roethlein CLA
Modified: 2021-11-11 08:28 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.