Bug 342971

Summary: sync! Command Broken
Product: [Developer tools] kdevplatform Reporter: David E. Narvaez <david.narvaez>
Component: konsole integrationAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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