Bug 342971 - sync! Command Broken
Summary: sync! Command Broken
Status: RESOLVED FIXED
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: konsole integration (show other bugs)
Version: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-17 16:31 UTC by David E. Narvaez
Modified: 2015-01-20 14:23 UTC (History)
0 users

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 David E. Narvaez 2015-01-17 16:31:09 UTC
As of 96127a98, the sync! command is broken because the path returned from the document controller is a URI.

Reproducible: Always

Steps to Reproduce:
1. Open a file
2. Go to Konsole view
3. sync!

Actual Results:  
$ sync!
bash: cd: file:///home/david/Projects/kdevplatform/shell: No such file or directory

Expected Results:  
The konsole part should cd to the directory of the document

I can give this bug a try if someone tells me whether the document controller should return a local path for local files or if the shell script should fix the URI before trying a cd.
Comment 1 David E. Narvaez 2015-01-20 14:23:24 UTC
Git commit a61d43e283635be2a6e0ab44fb9d890e9a7cfc97 by David E. Narvaez.
Committed on 20/01/2015 at 14:22.
Pushed by narvaez into branch 'master'.

Remove Protocol from URI

The document controller will always return a URI, even for local files,
so the protocol needs to be stripped.
REVIEW: 122163

M  +3    -0    util/kdevplatform_shell_environment.sh

http://commits.kde.org/kdevplatform/a61d43e283635be2a6e0ab44fb9d890e9a7cfc97