Bug 360347 - Cannot create-open file by full path
Summary: Cannot create-open file by full path
Status: RESOLVED INTENTIONAL
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: general (show other bugs)
Version: git master
Platform: Compiled Sources Linux
: LO normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: junior-jobs, triaged
Depends on:
Blocks:
 
Reported: 2016-03-10 09:29 UTC by Alexander Potashev
Modified: 2018-09-26 23:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Potashev 2016-03-10 09:29:25 UTC
In short: cannot open "/tmp/1.cpp" if it does not exist.

Reproducible: Always

Steps to Reproduce:
1. Make sure "/tmp/1.cpp" and "~/1.cpp" do not exist.
2. Press Ctrl+O to start the file open dialog in KDevelop.
3. Go into root directory.
4. Enter either "/tmp/1.cpp" or "~/1.cpp" into the filename text edit field.
5. Click Open.

Actual Results:  
The filename field is cleared, nothing else happens.

Expected Results:  
Should open "/tmp/1.cpp" which will appear as a new empty document in KDevelop.
Comment 1 Kevin Funk 2016-04-01 09:10:24 UTC
@Alexander: Want to give it a try and prepare a patch?
Comment 2 Kevin Funk 2017-01-08 19:34:06 UTC
@Alexander: In what other app do you see this behavior by the way?

I'm urged to close this as a WONTFIX. Doesn't look like we can get QFileDialog to do what we want easily... We use QFileDialog::getOpenFileUrls which will only give us existing files.

[1] https://github.com/KDE/kdevplatform/blob/d42d074299295308f22d36fe4ce456e26e4cd398/shell/documentcontroller.cpp#L149
Comment 3 Andrew Crouthamel 2018-09-26 22:15:39 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Alexander Potashev 2018-09-26 23:04:42 UTC
OK, I understand there's no clean solution with Qt. Kate has the same problem.